zinkee 0.1.55 → 0.1.57

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@ import {
2
2
  buildJsonSuccess,
3
3
  getSchemaFieldTypeDefinitions,
4
4
  resolveSchemaFieldType
5
- } from "./chunk-FIWBICYE.js";
5
+ } from "./chunk-RHSXS2M4.js";
6
6
 
7
7
  // src/utils/examples.ts
8
8
  var SAMPLE_UUID = "550e8400-e29b-41d4-a716-446655440001";
@@ -264,7 +264,7 @@ var specificExamples = {
264
264
  "schemaId": "2eb8bdcf-6d9c-4fbb-9018-7fa8180f4c5e",
265
265
  "slug": "codex-demo",
266
266
  "folder": {
267
- "id": "00000000-0000-0000-0000-000000000000",
267
+ "id": "4b2e9f1c-7a3d-4e8b-9c5f-2d1a6e8b0c37",
268
268
  "name": "root",
269
269
  "isRoot": true
270
270
  }
@@ -1037,11 +1037,11 @@ var specificExamples = {
1037
1037
  }`
1038
1038
  },
1039
1039
  {
1040
- description: "Move a schema back to the root folder (root is always UUID 00000000-0000-0000-0000-000000000000).",
1041
- command: "zinkee --json navigation resources move 5223cbc8-8c6c-4694-93bc-dd176364df9b --to 00000000-0000-0000-0000-000000000000",
1040
+ description: "Move a schema back to the root folder. It is named `root`; its UUID differs per workspace, and the CLI sends the one it resolves.",
1041
+ command: "zinkee --json navigation resources move 5223cbc8-8c6c-4694-93bc-dd176364df9b --to root",
1042
1042
  raw: `{
1043
1043
  "resourceId": "5223cbc8-8c6c-4694-93bc-dd176364df9b",
1044
- "targetFolderId": "00000000-0000-0000-0000-000000000000"
1044
+ "targetFolderId": "4b2e9f1c-7a3d-4e8b-9c5f-2d1a6e8b0c37"
1045
1045
  }`
1046
1046
  }
1047
1047
  ],
@@ -1176,11 +1176,11 @@ var specificExamples = {
1176
1176
  }`
1177
1177
  },
1178
1178
  {
1179
- description: "Publish directly at the teamspace root (root folder UUID is always 00000000-0000-0000-0000-000000000000).",
1180
- command: "zinkee --json teamspace resources publish customer-records --to 00000000-0000-0000-0000-000000000000",
1179
+ description: "Publish directly at the teamspace root. The root folder is named `root`; its UUID differs per workspace, and the CLI sends the one it resolves.",
1180
+ command: "zinkee --json teamspace resources publish customer-records --to root",
1181
1181
  raw: `{
1182
1182
  "resourceId": "customer-records",
1183
- "targetFolderId": "00000000-0000-0000-0000-000000000000"
1183
+ "targetFolderId": "6d3a8e2f-1c4b-4f9a-8e7d-5b2c0a9f1e64"
1184
1184
  }`
1185
1185
  }
1186
1186
  ],
@@ -1328,8 +1328,8 @@ var specificExamples = {
1328
1328
  }`
1329
1329
  },
1330
1330
  {
1331
- description: "Create a multi-select REFERENCE variable with a filter. Complex filters go via --raw because --filter only accepts raw expressions.",
1332
- command: `zinkee --json displays variables create 0f6f062f-1478-4df2-96a1-c495d037d260 --raw '{"type":"REFERENCE","name":"Active customers","source":{"schemaId":"contacts","fieldId":"contact-name"},"defaultValues":[],"allowMultiple":true,"staticVariable":false,"filters":[{"origin":{"schemaId":"contacts","fieldId":"status"},"comparisonOperator":"ANY_OF","values":["1","2"]}]}'`,
1331
+ description: "Create a multi-select REFERENCE variable with a filter. Complex filters go via --raw because --filter only accepts raw expressions. Filter origins take UUIDs (no slugs); option-field values are option names.",
1332
+ command: `zinkee --json displays variables create 0f6f062f-1478-4df2-96a1-c495d037d260 --raw '{"type":"REFERENCE","name":"Active customers","source":{"schemaId":"contacts","fieldId":"contact-name"},"defaultValues":[],"allowMultiple":true,"staticVariable":false,"filters":[{"origin":{"schemaId":"2eb8bdcf-6d9c-4fbb-9018-7fa8180f4c5e","fieldId":"a8f1d7e3-2b5c-4d9e-8a1b-3c4d5e6f7890"},"comparisonOperator":"ANY_OF","values":["Open","In Progress"]}]}'`,
1333
1333
  raw: `{
1334
1334
  "type": "REFERENCE",
1335
1335
  "name": "Active customers",
@@ -1343,11 +1343,11 @@ var specificExamples = {
1343
1343
  "filters": [
1344
1344
  {
1345
1345
  "origin": {
1346
- "schemaId": "contacts",
1347
- "fieldId": "status"
1346
+ "schemaId": "2eb8bdcf-6d9c-4fbb-9018-7fa8180f4c5e",
1347
+ "fieldId": "a8f1d7e3-2b5c-4d9e-8a1b-3c4d5e6f7890"
1348
1348
  },
1349
1349
  "comparisonOperator": "ANY_OF",
1350
- "values": ["1", "2"]
1350
+ "values": ["Open", "In Progress"]
1351
1351
  }
1352
1352
  ]
1353
1353
  }`
@@ -1416,17 +1416,17 @@ var specificExamples = {
1416
1416
  }`
1417
1417
  },
1418
1418
  {
1419
- description: "Replace the reference filters of the variable.",
1420
- command: `zinkee --json displays variables update 0f6f062f-1478-4df2-96a1-c495d037d260 aaaaaaaa-1111-4111-a111-111111111111 --raw '{"filters":[{"origin":{"schemaId":"contacts","fieldId":"status"},"comparisonOperator":"ANY_OF","values":["2","3"]}]}'`,
1419
+ description: "Replace the reference filters of the variable. Filter origins take UUIDs (no slugs); option-field values are option names.",
1420
+ command: `zinkee --json displays variables update 0f6f062f-1478-4df2-96a1-c495d037d260 aaaaaaaa-1111-4111-a111-111111111111 --raw '{"filters":[{"origin":{"schemaId":"2eb8bdcf-6d9c-4fbb-9018-7fa8180f4c5e","fieldId":"a8f1d7e3-2b5c-4d9e-8a1b-3c4d5e6f7890"},"comparisonOperator":"ANY_OF","values":["In Progress","Done"]}]}'`,
1421
1421
  raw: `{
1422
1422
  "filters": [
1423
1423
  {
1424
1424
  "origin": {
1425
- "schemaId": "contacts",
1426
- "fieldId": "status"
1425
+ "schemaId": "2eb8bdcf-6d9c-4fbb-9018-7fa8180f4c5e",
1426
+ "fieldId": "a8f1d7e3-2b5c-4d9e-8a1b-3c4d5e6f7890"
1427
1427
  },
1428
1428
  "comparisonOperator": "ANY_OF",
1429
- "values": ["2", "3"]
1429
+ "values": ["In Progress", "Done"]
1430
1430
  }
1431
1431
  ]
1432
1432
  }`
@@ -1858,15 +1858,15 @@ var specificExamples = {
1858
1858
  }`
1859
1859
  },
1860
1860
  {
1861
- description: "Add query filters with --filter. The CLI parses the expression and emits the structured comparisonOperator payload the API expects.",
1862
- command: `zinkee --json displays widgets update 0f6f062f-1478-4df2-96a1-c495d037d260 11111111-1111-4111-a111-111111111111 --filter "status:eq:2" --filter "amount:gte:500"`,
1861
+ description: "Add query filters with --filter. The CLI parses the expression and emits the structured comparisonOperator payload the API expects. Option-field values are option names.",
1862
+ command: `zinkee --json displays widgets update 0f6f062f-1478-4df2-96a1-c495d037d260 11111111-1111-4111-a111-111111111111 --filter "status:eq:Done" --filter "amount:gte:500"`,
1863
1863
  raw: `{
1864
1864
  "query": {
1865
1865
  "filters": [
1866
1866
  {
1867
1867
  "origin": { "fieldId": "status" },
1868
1868
  "comparisonOperator": "EQUAL",
1869
- "values": ["2"]
1869
+ "values": ["Done"]
1870
1870
  },
1871
1871
  {
1872
1872
  "origin": { "fieldId": "amount" },
@@ -2144,7 +2144,7 @@ var specificExamples = {
2144
2144
  "name": "Orders",
2145
2145
  "slug": "orders",
2146
2146
  "folder": {
2147
- "id": "00000000-0000-0000-0000-000000000000",
2147
+ "id": "4b2e9f1c-7a3d-4e8b-9c5f-2d1a6e8b0c37",
2148
2148
  "name": "root",
2149
2149
  "isRoot": true
2150
2150
  },
@@ -2789,7 +2789,7 @@ var specificExamples = {
2789
2789
  }
2790
2790
  },
2791
2791
  {
2792
- "id": "00000000-0000-0000-0000-000000000000",
2792
+ "id": "4b2e9f1c-7a3d-4e8b-9c5f-2d1a6e8b0c37",
2793
2793
  "order": 99,
2794
2794
  "name": "root",
2795
2795
  "resources": [],
@@ -2860,7 +2860,7 @@ var specificExamples = {
2860
2860
  "folderId": "f45a251d-3ea0-4b41-bfe8-c0f44c8ad54a",
2861
2861
  "movedResourceCount": 3,
2862
2862
  "targetFolder": {
2863
- "id": "00000000-0000-0000-0000-000000000000",
2863
+ "id": "6d3a8e2f-1c4b-4f9a-8e7d-5b2c0a9f1e64",
2864
2864
  "name": "root",
2865
2865
  "isRoot": true
2866
2866
  }
@@ -4470,4 +4470,4 @@ function withResponseEnvelope(example, commandName) {
4470
4470
  export {
4471
4471
  getCommandExamples
4472
4472
  };
4473
- //# sourceMappingURL=examples-UJZKITVW.js.map
4473
+ //# sourceMappingURL=examples-BA4M5QSJ.js.map