diff --git a/src/lib/clients/management/generated/types.gen.ts b/src/lib/clients/management/generated/types.gen.ts index 84a11bdd..bac44897 100644 --- a/src/lib/clients/management/generated/types.gen.ts +++ b/src/lib/clients/management/generated/types.gen.ts @@ -136,7 +136,6 @@ export type Project = { teamId: number; resourceId: number; msVersion: string; - workloadType: 'production' | 'dev'; readOnly: boolean; status: string; paused: boolean; diff --git a/test/commands/project/__snapshots__/add.test.ts.snap b/test/commands/project/__snapshots__/add.test.ts.snap index 9d2a9562..70fbe59d 100644 --- a/test/commands/project/__snapshots__/add.test.ts.snap +++ b/test/commands/project/__snapshots__/add.test.ts.snap @@ -89,7 +89,7 @@ exports[`meili project add > sends the flags as the project body with the token, { "exitCode": 0, "stderr": "", - "stdout": "{"id":343,"name":"demo","projectUid":"ms-abc","url":"https://ms-abc.sfo.meilisearch.io","masterKey":"****9z8y","teamId":12,"resourceId":3,"msVersion":"v1.54.0","workloadType":"production","readOnly":false,"status":"running","paused":false,"createdAt":"2026-10-14T10:00:00Z","resource":{"id":3,"name":"build","displayName":"Build","plan":"build","regionId":1}} + "stdout": "{"id":343,"name":"demo","projectUid":"ms-abc","url":"https://ms-abc.sfo.meilisearch.io","masterKey":"****9z8y","teamId":12,"resourceId":3,"msVersion":"v1.54.0","readOnly":false,"status":"running","paused":false,"createdAt":"2026-10-14T10:00:00Z","resource":{"id":3,"name":"build","displayName":"Build","plan":"build","regionId":1}} ", } `; @@ -105,37 +105,35 @@ Check when it is ready: meili project view --id 343 Once it is Running, save its URL and master key in the config file: meili config sync-with-cloud --project-name demo ", - "stdout": " id 343 - name demo - projectUid ms-abc - url null - masterKey ****9z8y - teamId 12 - resourceId 3 - resource Build - msVersion v1.54.0 - workloadType production - readOnly false - status creating - paused false - createdAt 2026-10-14T10:00:00Z + "stdout": " id 343 + name demo + projectUid ms-abc + url null + masterKey ****9z8y + teamId 12 + resourceId 3 + resource Build + msVersion v1.54.0 + readOnly false + status creating + paused false + createdAt 2026-10-14T10:00:00Z ", } `; exports[`meili project add > tells a human in a terminal that the project runs and is in the config file, with --wait --sync-config 1`] = ` -" id 343 - name demo - projectUid ms-abc - url https://ms-abc.sfo.meilisearch.io - teamId 12 - resourceId 3 - resource Build - msVersion v1.54.0 - workloadType production - readOnly false - status running - paused false - createdAt 2026-10-14T10:00:00Z +" id 343 + name demo + projectUid ms-abc + url https://ms-abc.sfo.meilisearch.io + teamId 12 + resourceId 3 + resource Build + msVersion v1.54.0 + readOnly false + status running + paused false + createdAt 2026-10-14T10:00:00Z " `; diff --git a/test/commands/project/__snapshots__/list.test.ts.snap b/test/commands/project/__snapshots__/list.test.ts.snap index dae7e892..1058de40 100644 --- a/test/commands/project/__snapshots__/list.test.ts.snap +++ b/test/commands/project/__snapshots__/list.test.ts.snap @@ -13,7 +13,7 @@ exports[`meili project list > lists the projects in the envelope the API returns { "exitCode": 0, "stderr": "", - "stdout": "{"page":1,"limit":20,"total":2,"totalPages":1,"results":[{"id":343,"name":"demo","projectUid":"ms-abc","url":"https://ms-abc.sfo.meilisearch.io","masterKey":"projectmasterkey9z8y","teamId":12,"resourceId":3,"msVersion":"v1.54.0","workloadType":"production","readOnly":false,"status":"running","paused":false,"createdAt":"2026-10-14T10:00:00Z","resource":{"id":3,"name":"build","displayName":"Build","plan":"build","regionId":1}},{"id":344,"name":"staging","projectUid":"ms-abc","url":"https://ms-def.sfo.meilisearch.io","masterKey":"projectmasterkey9z8y","teamId":12,"resourceId":3,"msVersion":"v1.54.0","workloadType":"production","readOnly":false,"status":"running","paused":false,"createdAt":"2026-10-14T10:00:00Z","resource":{"id":3,"name":"build","displayName":"Build","plan":"build","regionId":1}}]} + "stdout": "{"page":1,"limit":20,"total":2,"totalPages":1,"results":[{"id":343,"name":"demo","projectUid":"ms-abc","url":"https://ms-abc.sfo.meilisearch.io","masterKey":"projectmasterkey9z8y","teamId":12,"resourceId":3,"msVersion":"v1.54.0","readOnly":false,"status":"running","paused":false,"createdAt":"2026-10-14T10:00:00Z","resource":{"id":3,"name":"build","displayName":"Build","plan":"build","regionId":1}},{"id":344,"name":"staging","projectUid":"ms-abc","url":"https://ms-def.sfo.meilisearch.io","masterKey":"projectmasterkey9z8y","teamId":12,"resourceId":3,"msVersion":"v1.54.0","readOnly":false,"status":"running","paused":false,"createdAt":"2026-10-14T10:00:00Z","resource":{"id":3,"name":"build","displayName":"Build","plan":"build","regionId":1}}]} ", } `; diff --git a/test/commands/project/__snapshots__/update.test.ts.snap b/test/commands/project/__snapshots__/update.test.ts.snap index 0852de2f..23e38f0d 100644 --- a/test/commands/project/__snapshots__/update.test.ts.snap +++ b/test/commands/project/__snapshots__/update.test.ts.snap @@ -53,7 +53,7 @@ exports[`meili project update > sends the new name for the project of --id, and { "exitCode": 0, "stderr": "", - "stdout": "{"id":343,"name":"renamed","projectUid":"ms-abc","url":"https://ms-abc.sfo.meilisearch.io","masterKey":"projectmasterkey9z8y","teamId":12,"resourceId":3,"msVersion":"v1.54.0","workloadType":"production","readOnly":false,"status":"running","paused":false,"createdAt":"2026-10-14T10:00:00Z","resource":{"id":3,"name":"build","displayName":"Build","plan":"build","regionId":1}} + "stdout": "{"id":343,"name":"renamed","projectUid":"ms-abc","url":"https://ms-abc.sfo.meilisearch.io","masterKey":"projectmasterkey9z8y","teamId":12,"resourceId":3,"msVersion":"v1.54.0","readOnly":false,"status":"running","paused":false,"createdAt":"2026-10-14T10:00:00Z","resource":{"id":3,"name":"build","displayName":"Build","plan":"build","regionId":1}} ", } `; @@ -68,20 +68,19 @@ Simplified view. See the project in full: meili project view --id 343. See every ✓ Config entry demo is renamed to demo-2. ", - "stdout": " id 343 - name demo-2 - projectUid ms-abc - url https://ms-abc.sfo.meilisearch.io - masterKey projectmasterkey9z8y - teamId 12 - resourceId 3 - resource Build - msVersion v1.54.0 - workloadType production - readOnly false - status running - paused false - createdAt 2026-10-14T10:00:00Z + "stdout": " id 343 + name demo-2 + projectUid ms-abc + url https://ms-abc.sfo.meilisearch.io + masterKey projectmasterkey9z8y + teamId 12 + resourceId 3 + resource Build + msVersion v1.54.0 + readOnly false + status running + paused false + createdAt 2026-10-14T10:00:00Z ", } `; diff --git a/test/commands/project/__snapshots__/view.test.ts.snap b/test/commands/project/__snapshots__/view.test.ts.snap index 700763cb..29a0beb5 100644 --- a/test/commands/project/__snapshots__/view.test.ts.snap +++ b/test/commands/project/__snapshots__/view.test.ts.snap @@ -4,7 +4,7 @@ exports[`meili project view > gets one project with --id, or with --project and { "exitCode": 0, "stderr": "", - "stdout": "{"id":344,"name":"staging","projectUid":"ms-abc","url":"https://ms-def.sfo.meilisearch.io","masterKey":"projectmasterkey9z8y","teamId":12,"resourceId":3,"msVersion":"v1.54.0","workloadType":"production","readOnly":false,"status":"running","paused":false,"createdAt":"2026-10-14T10:00:00Z","resource":{"id":3,"name":"build","displayName":"Build","plan":"build","regionId":1}} + "stdout": "{"id":344,"name":"staging","projectUid":"ms-abc","url":"https://ms-def.sfo.meilisearch.io","masterKey":"projectmasterkey9z8y","teamId":12,"resourceId":3,"msVersion":"v1.54.0","readOnly":false,"status":"running","paused":false,"createdAt":"2026-10-14T10:00:00Z","resource":{"id":3,"name":"build","displayName":"Build","plan":"build","regionId":1}} ", } `; @@ -58,19 +58,18 @@ Project 344 of team 12 • Meilisearch v1.54.0 Plan Build on resource 3, region 1 ", - "stdout": " id 344 - name staging - projectUid ms-abc - url https://ms-def.sfo.meilisearch.io - masterKey projectmasterkey9z8y - teamId 12 - resourceId 3 - msVersion v1.54.0 - workloadType production - readOnly false - status running - paused false - createdAt 2026-10-14T10:00:00Z + "stdout": " id 344 + name staging + projectUid ms-abc + url https://ms-def.sfo.meilisearch.io + masterKey projectmasterkey9z8y + teamId 12 + resourceId 3 + msVersion v1.54.0 + readOnly false + status running + paused false + createdAt 2026-10-14T10:00:00Z resource id 3 name build diff --git a/test/helpers/management-handlers.ts b/test/helpers/management-handlers.ts index fd025167..c17172f0 100644 --- a/test/helpers/management-handlers.ts +++ b/test/helpers/management-handlers.ts @@ -31,7 +31,6 @@ export const project: Project = { teamId: 12, resourceId: 3, msVersion: "v1.54.0", - workloadType: "production", readOnly: false, status: "running", paused: false,