Skip to content

Commit d99a264

Browse files
Merge #1568
1568: fix: add `dumpCreation` in type `TaskTypes` r=brunoocasali a=nicolasvienot # Pull Request ## Related issue Fixes #1567 Meilisearch tasks type can be `dumpCreation` but it's missing in the type `TaskTypes` in `meilisearch-js`. See tasks documentation here: https://www.meilisearch.com/docs/reference/api/tasks#type ## What does this PR do? - Add `dumpCreation` in type `TaskTypes` - Reorder in alphabetical order ## PR checklist Please check if your PR fulfills the following requirements: - [x] Does this PR fix an existing issue, or have you listed the changes applied in the PR description (and why they are needed)? - [x] Have you read the contributing guidelines? - [x] Have you made sure that the title is accurate and descriptive of the changes? Thank you so much for contributing to Meilisearch! Co-authored-by: nicolasvienot <[email protected]>
2 parents 67974f9 + 0645ac2 commit d99a264

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/types/types.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -351,16 +351,17 @@ export const enum TaskStatus {
351351
}
352352

353353
export const enum TaskTypes {
354-
INDEX_CREATION = 'indexCreation',
355-
INDEX_UPDATE = 'indexUpdate',
356-
INDEX_DELETION = 'indexDeletion',
357354
DOCUMENTS_ADDITION_OR_UPDATE = 'documentAdditionOrUpdate',
358355
DOCUMENT_DELETION = 'documentDeletion',
359-
SETTINGS_UPDATE = 'settingsUpdate',
356+
DUMP_CREATION = 'dumpCreation',
357+
INDEX_CREATION = 'indexCreation',
358+
INDEX_DELETION = 'indexDeletion',
360359
INDEXES_SWAP = 'indexSwap',
361-
TASK_DELETION = 'taskDeletion',
360+
INDEX_UPDATE = 'indexUpdate',
361+
SETTINGS_UPDATE = 'settingsUpdate',
362362
SNAPSHOT_CREATION = 'snapshotCreation',
363363
TASK_CANCELATION = 'taskCancelation',
364+
TASK_DELETION = 'taskDeletion',
364365
}
365366

366367
export type TasksQuery = {

0 commit comments

Comments
 (0)