@hardfin/cli 0.1.1-dev.66 → 0.1.1-dev.68

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.
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="d0ee2ed5-ee69-52ea-a9b8-71f6c3047c1a")}catch(e){}}();
3
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="ecc2e78f-98ec-58dd-bde6-7a32993b4e48")}catch(e){}}();
4
4
  import { a as defineCommand, i as GLOBAL_FLAGS, r as ExitCode, t as toInvocation } from "./scrub-BZ0egWxC.js";
5
5
  import { n as toAnswer$1, r as toCompletion, t as PATH_VALUES } from "./completion-tree-DLC6ARLR.js";
6
6
  import { createRequire } from "node:module";
@@ -1273,7 +1273,7 @@ const FAILURE_CODES = {
1273
1273
  invalid_arguments: "The command was given the wrong positional arguments",
1274
1274
  missing_flag: "A flag the command needs was not given",
1275
1275
  invalid_flag: "A flag was given a value it does not take",
1276
- invalid_input: "A file the command was given cannot be read, or does not hold JSON",
1276
+ invalid_input: "A file the command was given cannot be read, does not hold JSON, or holds a field the command does not take",
1277
1277
  empty_request: "The command would change nothing, because no field was given",
1278
1278
  output_required: "The answer is a file, and needs --output or a pipe",
1279
1279
  not_confirmed: "The change was not confirmed. Pass --yes to confirm it without a terminal",
@@ -1719,7 +1719,13 @@ async function runOperation(operation, input) {
1719
1719
  writeFailure("invalid_input", given.message, input.isJSON);
1720
1720
  return ExitCode.USAGE;
1721
1721
  }
1722
- const missing = operation.bodyFlags.concat(operation.upload?.fields ?? []).filter((flag) => flag.required && input.flags[toOptionKey(flag.name)] === void 0 && !hasPath(given, flag.jsonPath));
1722
+ const unknown = given && operation.body ? toUnknownField(operation.body, given, "") : void 0;
1723
+ if (unknown) {
1724
+ writeFailure("invalid_input", `${toBodyName(input.flags["input"])} ${unknown}`, input.isJSON);
1725
+ return ExitCode.USAGE;
1726
+ }
1727
+ const unset = toUnsetNames(input.flags);
1728
+ const missing = operation.bodyFlags.concat(operation.upload?.fields ?? []).filter((flag) => flag.required && input.flags[toOptionKey(flag.name)] === void 0 && !unset.has(flag.name) && !hasPath(given, flag.jsonPath));
1723
1729
  if (missing.length > 0) {
1724
1730
  writeFailure("missing_flag", `this command needs ${missing.map((flag) => `--${flag.name}`).join(", ")}`, input.isJSON);
1725
1731
  return ExitCode.USAGE;
@@ -1860,6 +1866,34 @@ function toGivenBody(source) {
1860
1866
  if (typeof read !== "object" || read === null || Array.isArray(read)) return new InputFailure(`the body in ${source === "-" ? "standard input" : source} must be a JSON object, such as {"name": "Acme"}`);
1861
1867
  return read;
1862
1868
  }
1869
+ function toBodyName(source) {
1870
+ return source === "-" ? "the body in standard input" : `the body in ${toText(source)}`;
1871
+ }
1872
+ /**
1873
+ * toUnknownField says where a body holds a field the document does not define, and what is
1874
+ * taken there instead. The API would quietly drop such a field, so a misspelled one is caught here.
1875
+ */
1876
+ function toUnknownField(shape, value, path) {
1877
+ if (Array.isArray(value)) {
1878
+ if (!shape.items) return;
1879
+ for (const [index, element] of value.entries()) {
1880
+ const unknown = toUnknownField(shape.items, element, `${path}[${index}]`);
1881
+ if (unknown) return unknown;
1882
+ }
1883
+ return;
1884
+ }
1885
+ if (typeof value !== "object" || value === null || !shape.fields) return;
1886
+ for (const [name, field] of Object.entries(value)) {
1887
+ const named = path === "" ? name : `${path}.${name}`;
1888
+ const known = Object.hasOwn(shape.fields, name) ? shape.fields[name] : void 0;
1889
+ if (!known) {
1890
+ const taken = Object.keys(shape.fields).join(", ");
1891
+ return `has no field called ${named}, which this command does not take. ${path === "" ? "The body" : path} takes ${taken}`;
1892
+ }
1893
+ const unknown = toUnknownField(known, field, named);
1894
+ if (unknown) return unknown;
1895
+ }
1896
+ }
1863
1897
  /** hasPath reports whether a body already holds a value at a field's path. */
1864
1898
  function hasPath(body, path) {
1865
1899
  let holder = body;
@@ -1914,10 +1948,14 @@ function toApart(operation, flags, body) {
1914
1948
  }
1915
1949
  }
1916
1950
  }
1951
+ /** toUnsetNames answers the flags --unset names, without their leading dashes. */
1952
+ function toUnsetNames(flags) {
1953
+ const named = flags["unset"];
1954
+ return new Set((Array.isArray(named) ? named : named === void 0 ? [] : [named]).map((name) => toText(name).replace(/^--/, "")));
1955
+ }
1917
1956
  /** toOverlap refuses clearing an object while also setting one of its fields. */
1918
1957
  function toOverlap(operation, flags) {
1919
- const named = flags["unset"];
1920
- const unset = new Set((Array.isArray(named) ? named : named === void 0 ? [] : [named]).map((name) => toText(name).replace(/^--/, "")));
1958
+ const unset = toUnsetNames(flags);
1921
1959
  const sent = operation.bodyFlags.filter((flag) => flags[toOptionKey(flag.name)] !== void 0 || unset.has(flag.name));
1922
1960
  for (const whole of sent) {
1923
1961
  const part = sent.find((flag) => flag.jsonPath.length > whole.jsonPath.length && whole.jsonPath.every((name, index) => flag.jsonPath[index] === name));
@@ -4184,8 +4222,11 @@ const ARGUMENTS_SCHEMA = {
4184
4222
  description: "JSON sent to the command on standard input, which it reads when given --input -"
4185
4223
  }
4186
4224
  },
4187
- required: ["args"]
4225
+ required: ["args"],
4226
+ additionalProperties: false
4188
4227
  };
4228
+ /** The fields a tool call's arguments may hold, which are the ones the tools declare. */
4229
+ const ARGUMENT_FIELDS = Object.keys(ARGUMENTS_SCHEMA.properties);
4189
4230
  /**
4190
4231
  * Two tools, so a client can let a read run without asking and ask before anything changes.
4191
4232
  * The commands themselves are resources, which cost nothing until one is read.
@@ -4408,10 +4449,14 @@ async function toToolResult(request, commands, run, toReadOnly) {
4408
4449
  if (name !== READ_TOOL.name && name !== WRITE_TOOL.name && name !== DELETE_TOOL.name) throw new ProtocolFailure(-32602, `a call names its tool, and this server offers ${READ_TOOL.name}, ${WRITE_TOOL.name} and ${DELETE_TOOL.name}`, request.id ?? null);
4409
4450
  const reason = toReadOnly();
4410
4451
  if (name !== READ_TOOL.name && reason !== void 0) return toError(`this server is read-only, because ${reason}. Nothing is changed through it, and write access is for the person to grant`);
4411
- const called = params?.["arguments"];
4412
- const args = called?.args;
4452
+ const given = params?.["arguments"];
4453
+ if (typeof given !== "object" || given === null || Array.isArray(given)) return toError("arguments must be an object holding args, such as {\"args\": [\"asset\", \"list\"]}");
4454
+ const unknown = Object.keys(given).find((field) => !ARGUMENT_FIELDS.includes(field));
4455
+ if (unknown !== void 0) return toError(`arguments has no field called ${unknown}. A call takes ${ARGUMENT_FIELDS.join(" and ")}`);
4456
+ const called = given;
4457
+ const args = called.args;
4413
4458
  if (!Array.isArray(args) || args.some((entry) => typeof entry !== "string")) return toError("args must be a list of strings, such as [\"asset\", \"list\"]");
4414
- if (called?.input !== void 0 && typeof called.input !== "string") return toError("input must be a string holding JSON, such as {\"name\": \"Acme\"}");
4459
+ if (called.input !== void 0 && typeof called.input !== "string") return toError("input must be a string holding JSON, such as {\"name\": \"Acme\"}");
4415
4460
  const refused = toRefusedArgument(args);
4416
4461
  if (refused) return toError(refused);
4417
4462
  const asked = args;
@@ -4424,7 +4469,7 @@ async function toToolResult(request, commands, run, toReadOnly) {
4424
4469
  if (command !== void 0) return toError(`${command} is run by a person at a terminal, not through this server. Run hardfin ${command} yourself, then call this tool again`);
4425
4470
  const wrong = toWrongTool(name, toAccessOf(parsed));
4426
4471
  if (wrong) return toError(wrong);
4427
- const outcome = await run(asked, called?.input);
4472
+ const outcome = await run(asked, called.input);
4428
4473
  const text = toBounded([outcome.code === 0 ? toFittedList(outcome.stdout) : outcome.stdout, outcome.stderr].filter((part) => part.trim() !== "").join("\n"));
4429
4474
  const failure = outcome.code === 0 ? void 0 : toFailure(outcome);
4430
4475
  return {
@@ -5424,7 +5469,63 @@ const commands = [
5424
5469
  nullable: true,
5425
5470
  schema: toNumber(z.number().int())
5426
5471
  }
5427
- ]
5472
+ ],
5473
+ body: { "fields": {
5474
+ "allocatedIndirect": { "fields": {
5475
+ "amount": {},
5476
+ "isoCode": {}
5477
+ } },
5478
+ "billOfMaterials": { "fields": {
5479
+ "amount": {},
5480
+ "isoCode": {}
5481
+ } },
5482
+ "costCurrencyCode": {},
5483
+ "depreciationModel": {},
5484
+ "description": {},
5485
+ "directLabor": { "fields": {
5486
+ "amount": {},
5487
+ "isoCode": {}
5488
+ } },
5489
+ "freightInbound": { "fields": {
5490
+ "amount": {},
5491
+ "isoCode": {}
5492
+ } },
5493
+ "freightOutbound": { "fields": {
5494
+ "amount": {},
5495
+ "isoCode": {}
5496
+ } },
5497
+ "functionalStatus": {},
5498
+ "inInventoryDate": {},
5499
+ "inServiceDate": {},
5500
+ "installation": { "fields": {
5501
+ "amount": {},
5502
+ "isoCode": {}
5503
+ } },
5504
+ "interest": { "fields": {
5505
+ "amount": {},
5506
+ "isoCode": {}
5507
+ } },
5508
+ "itemId": {},
5509
+ "locationId": {},
5510
+ "salvageValue": { "fields": {
5511
+ "amount": {},
5512
+ "isoCode": {}
5513
+ } },
5514
+ "serial": {},
5515
+ "simpleCostBasis": { "fields": {
5516
+ "amount": {},
5517
+ "isoCode": {}
5518
+ } },
5519
+ "tariffs": { "fields": {
5520
+ "amount": {},
5521
+ "isoCode": {}
5522
+ } },
5523
+ "tax": { "fields": {
5524
+ "amount": {},
5525
+ "isoCode": {}
5526
+ } },
5527
+ "usefulLife": {}
5528
+ } }
5428
5529
  }),
5429
5530
  {
5430
5531
  name: "move",
@@ -5473,7 +5574,16 @@ const commands = [
5473
5574
  "shipAtTimezone": ["string", "null"]
5474
5575
  },
5475
5576
  schema: z.array(z.string())
5476
- }]
5577
+ }],
5578
+ body: { "fields": { "moves": { "items": { "fields": {
5579
+ "assetId": {},
5580
+ "deliverAt": {},
5581
+ "deliverAtTimezone": {},
5582
+ "destinationId": {},
5583
+ "originId": {},
5584
+ "shipAt": {},
5585
+ "shipAtTimezone": {}
5586
+ } } } } }
5477
5587
  })]
5478
5588
  }, {
5479
5589
  name: "plan",
@@ -5507,7 +5617,13 @@ const commands = [
5507
5617
  "shipAt": ["string", "null"]
5508
5618
  },
5509
5619
  schema: z.array(z.string())
5510
- }]
5620
+ }],
5621
+ body: { "fields": { "moves": { "items": { "fields": {
5622
+ "assetId": {},
5623
+ "deliverAt": {},
5624
+ "id": {},
5625
+ "shipAt": {}
5626
+ } } } } }
5511
5627
  })]
5512
5628
  }]
5513
5629
  },
@@ -5600,7 +5716,18 @@ const commands = [
5600
5716
  valueName: "value",
5601
5717
  schema: z.string()
5602
5718
  }
5603
- ]
5719
+ ],
5720
+ body: { "fields": {
5721
+ "description": {},
5722
+ "functionalStatus": {},
5723
+ "inInventoryDate": {},
5724
+ "initialLocationId": {},
5725
+ "metadata": { "items": { "fields": {
5726
+ "fieldId": {},
5727
+ "value": {}
5728
+ } } },
5729
+ "serial": {}
5730
+ } }
5604
5731
  }),
5605
5732
  {
5606
5733
  name: "accounting",
@@ -5989,7 +6116,58 @@ const commands = [
5989
6116
  nullable: true,
5990
6117
  schema: toNumber(z.number().int())
5991
6118
  }
5992
- ]
6119
+ ],
6120
+ body: { "fields": {
6121
+ "allocatedIndirect": { "fields": {
6122
+ "amount": {},
6123
+ "isoCode": {}
6124
+ } },
6125
+ "billOfMaterials": { "fields": {
6126
+ "amount": {},
6127
+ "isoCode": {}
6128
+ } },
6129
+ "costCurrencyCode": {},
6130
+ "depreciationModel": {},
6131
+ "directLabor": { "fields": {
6132
+ "amount": {},
6133
+ "isoCode": {}
6134
+ } },
6135
+ "freightInbound": { "fields": {
6136
+ "amount": {},
6137
+ "isoCode": {}
6138
+ } },
6139
+ "freightOutbound": { "fields": {
6140
+ "amount": {},
6141
+ "isoCode": {}
6142
+ } },
6143
+ "inServiceDate": {},
6144
+ "installation": { "fields": {
6145
+ "amount": {},
6146
+ "isoCode": {}
6147
+ } },
6148
+ "interest": { "fields": {
6149
+ "amount": {},
6150
+ "isoCode": {}
6151
+ } },
6152
+ "isInServiceDateManagedAutomatically": {},
6153
+ "salvageValue": { "fields": {
6154
+ "amount": {},
6155
+ "isoCode": {}
6156
+ } },
6157
+ "simpleCostBasis": { "fields": {
6158
+ "amount": {},
6159
+ "isoCode": {}
6160
+ } },
6161
+ "tariffs": { "fields": {
6162
+ "amount": {},
6163
+ "isoCode": {}
6164
+ } },
6165
+ "tax": { "fields": {
6166
+ "amount": {},
6167
+ "isoCode": {}
6168
+ } },
6169
+ "usefulLife": {}
6170
+ } }
5993
6171
  }), {
5994
6172
  name: "in-service-management",
5995
6173
  summary: "In service management commands",
@@ -6015,7 +6193,8 @@ const commands = [
6015
6193
  negatable: true,
6016
6194
  required: true,
6017
6195
  schema: z.boolean()
6018
- }]
6196
+ }],
6197
+ body: { "fields": { "automatic": {} } }
6019
6198
  })]
6020
6199
  }]
6021
6200
  },
@@ -6103,7 +6282,17 @@ const commands = [
6103
6282
  "REGULATORY"
6104
6283
  ])
6105
6284
  }
6106
- ]
6285
+ ],
6286
+ body: { "fields": {
6287
+ "adjustmentType": {},
6288
+ "amount": { "fields": {
6289
+ "amount": {},
6290
+ "isoCode": {}
6291
+ } },
6292
+ "effectiveDate": {},
6293
+ "notes": {},
6294
+ "reason": {}
6295
+ } }
6107
6296
  })]
6108
6297
  },
6109
6298
  {
@@ -6315,7 +6504,15 @@ const commands = [
6315
6504
  "USD"
6316
6505
  ])
6317
6506
  }
6318
- ]
6507
+ ],
6508
+ body: { "fields": {
6509
+ "customerId": {},
6510
+ "date": {},
6511
+ "salePrice": { "fields": {
6512
+ "amount": {},
6513
+ "isoCode": {}
6514
+ } }
6515
+ } }
6319
6516
  }),
6320
6517
  defineOperation({
6321
6518
  name: "clear",
@@ -6336,7 +6533,8 @@ const commands = [
6336
6533
  valueName: "value",
6337
6534
  required: true,
6338
6535
  schema: z.string()
6339
- }]
6536
+ }],
6537
+ body: { "fields": { "date": {} } }
6340
6538
  }),
6341
6539
  defineOperation({
6342
6540
  name: "get",
@@ -6418,7 +6616,15 @@ const commands = [
6418
6616
  "USD"
6419
6617
  ])
6420
6618
  }
6421
- ]
6619
+ ],
6620
+ body: { "fields": {
6621
+ "customerId": {},
6622
+ "date": {},
6623
+ "salePrice": { "fields": {
6624
+ "amount": {},
6625
+ "isoCode": {}
6626
+ } }
6627
+ } }
6422
6628
  }),
6423
6629
  defineOperation({
6424
6630
  name: "delete",
@@ -6504,7 +6710,15 @@ const commands = [
6504
6710
  nullable: true,
6505
6711
  schema: z.string()
6506
6712
  }
6507
- ]
6713
+ ],
6714
+ body: { "fields": {
6715
+ "disposalDate": {},
6716
+ "disposalPrice": { "fields": {
6717
+ "amount": {},
6718
+ "isoCode": {}
6719
+ } },
6720
+ "disposalReason": {}
6721
+ } }
6508
6722
  })]
6509
6723
  },
6510
6724
  {
@@ -6573,7 +6787,11 @@ const commands = [
6573
6787
  valueName: "value",
6574
6788
  required: true,
6575
6789
  schema: z.string()
6576
- }]
6790
+ }],
6791
+ body: { "fields": {
6792
+ "name": {},
6793
+ "url": {}
6794
+ } }
6577
6795
  })]
6578
6796
  },
6579
6797
  {
@@ -6635,7 +6853,13 @@ const commands = [
6635
6853
  required: true,
6636
6854
  schema: toNumber(z.number().int())
6637
6855
  }
6638
- ]
6856
+ ],
6857
+ body: { "fields": {
6858
+ "effectiveDate": {},
6859
+ "notes": {},
6860
+ "reason": {},
6861
+ "usefulLifeMonths": {}
6862
+ } }
6639
6863
  })]
6640
6864
  }
6641
6865
  ]
@@ -6731,7 +6955,7 @@ const commands = [
6731
6955
  schema: z.array(z.string())
6732
6956
  },
6733
6957
  {
6734
- name: "include-no-customer",
6958
+ name: "for-projects-without-customer",
6735
6959
  queryName: "includeNoCustomer",
6736
6960
  description: "True to list the charges of projects that have no customer. With customers it adds them to those customers' charges, and without customers it lists only them",
6737
6961
  schema: z.boolean()
@@ -6806,7 +7030,8 @@ const commands = [
6806
7030
  valueName: "value",
6807
7031
  nullable: true,
6808
7032
  schema: z.string()
6809
- }]
7033
+ }],
7034
+ body: { "fields": { "cancellationReason": {} } }
6810
7035
  }),
6811
7036
  defineOperation({
6812
7037
  name: "mark-billable",
@@ -6882,7 +7107,17 @@ const commands = [
6882
7107
  "USD"
6883
7108
  ])
6884
7109
  }
6885
- ]
7110
+ ],
7111
+ body: { "fields": {
7112
+ "billingEligibleDate": {},
7113
+ "quantity": {},
7114
+ "servicePeriodEnd": {},
7115
+ "servicePeriodStart": {},
7116
+ "totalPriceOverride": { "fields": {
7117
+ "amount": {},
7118
+ "isoCode": {}
7119
+ } }
7120
+ } }
6886
7121
  }),
6887
7122
  defineOperation({
6888
7123
  name: "mark-not-billable",
@@ -6903,7 +7138,8 @@ const commands = [
6903
7138
  valueName: "value",
6904
7139
  nullable: true,
6905
7140
  schema: z.string()
6906
- }]
7141
+ }],
7142
+ body: { "fields": { "expectedBillableDate": {} } }
6907
7143
  }),
6908
7144
  defineOperation({
6909
7145
  name: "revert-cancellation",
@@ -7109,7 +7345,21 @@ const commands = [
7109
7345
  required: true,
7110
7346
  schema: z.string()
7111
7347
  }
7112
- ]
7348
+ ],
7349
+ body: { "fields": {
7350
+ "billingAddress": {},
7351
+ "billingContact": { "fields": {
7352
+ "email": {},
7353
+ "name": {},
7354
+ "phone": {}
7355
+ } },
7356
+ "comment": {},
7357
+ "domain": {},
7358
+ "externalId": {},
7359
+ "isCustomer": {},
7360
+ "isSupplier": {},
7361
+ "name": {}
7362
+ } }
7113
7363
  }),
7114
7364
  defineOperation({
7115
7365
  name: "get",
@@ -7233,7 +7483,22 @@ const commands = [
7233
7483
  valueName: "value",
7234
7484
  schema: z.string()
7235
7485
  }
7236
- ]
7486
+ ],
7487
+ body: { "fields": {
7488
+ "billingAddress": {},
7489
+ "billingContact": { "fields": {
7490
+ "email": {},
7491
+ "name": {},
7492
+ "phone": {}
7493
+ } },
7494
+ "comment": {},
7495
+ "domain": {},
7496
+ "externalId": {},
7497
+ "isArchived": {},
7498
+ "isCustomer": {},
7499
+ "isSupplier": {},
7500
+ "name": {}
7501
+ } }
7237
7502
  })
7238
7503
  ]
7239
7504
  },
@@ -7552,7 +7817,21 @@ const commands = [
7552
7817
  required: true,
7553
7818
  schema: z.uuid()
7554
7819
  }
7555
- ]
7820
+ ],
7821
+ body: { "fields": {
7822
+ "contactId": {},
7823
+ "fileIds": { "items": {} },
7824
+ "fromLocationId": {},
7825
+ "items": { "items": { "fields": {
7826
+ "itemId": {},
7827
+ "requestedQuantity": {}
7828
+ } } },
7829
+ "orderNotes": {},
7830
+ "projectId": {},
7831
+ "promiseDeliveryDate": {},
7832
+ "promiseShipDate": {},
7833
+ "toLocationId": {}
7834
+ } }
7556
7835
  }),
7557
7836
  defineOperation({
7558
7837
  name: "get",
@@ -7648,7 +7927,20 @@ const commands = [
7648
7927
  nullable: true,
7649
7928
  schema: z.uuid()
7650
7929
  }
7651
- ]
7930
+ ],
7931
+ body: { "fields": {
7932
+ "contactId": {},
7933
+ "fromLocationId": {},
7934
+ "items": { "items": { "fields": {
7935
+ "itemId": {},
7936
+ "requestedQuantity": {}
7937
+ } } },
7938
+ "orderNotes": {},
7939
+ "projectId": {},
7940
+ "promiseDeliveryDate": {},
7941
+ "promiseShipDate": {},
7942
+ "toLocationId": {}
7943
+ } }
7652
7944
  }),
7653
7945
  defineOperation({
7654
7946
  name: "cancel",
@@ -7669,7 +7961,8 @@ const commands = [
7669
7961
  valueName: "value",
7670
7962
  required: true,
7671
7963
  schema: z.string()
7672
- }]
7964
+ }],
7965
+ body: { "fields": { "cancellationReason": {} } }
7673
7966
  }),
7674
7967
  defineOperation({
7675
7968
  name: "close",
@@ -7796,7 +8089,11 @@ const commands = [
7796
8089
  valueName: "value",
7797
8090
  required: true,
7798
8091
  schema: z.string()
7799
- }]
8092
+ }],
8093
+ body: { "fields": {
8094
+ "name": {},
8095
+ "url": {}
8096
+ } }
7800
8097
  })]
7801
8098
  }
7802
8099
  ]
@@ -8011,7 +8308,15 @@ const commands = [
8011
8308
  "YRD"
8012
8309
  ])
8013
8310
  }
8014
- ]
8311
+ ],
8312
+ body: { "fields": {
8313
+ "acceptsBulkSerials": {},
8314
+ "description": {},
8315
+ "name": {},
8316
+ "sku": {},
8317
+ "type": {},
8318
+ "unitOfMeasure": {}
8319
+ } }
8015
8320
  }),
8016
8321
  defineOperation({
8017
8322
  name: "get",
@@ -8030,7 +8335,7 @@ const commands = [
8030
8335
  defineOperation({
8031
8336
  name: "update",
8032
8337
  summary: "Update item",
8033
- example: "hardfin item update item_7Hq2Lm9XcR4tWz8K --field fieldId=<value>,order=<value>,section=<value>",
8338
+ example: "hardfin item update item_7Hq2Lm9XcR4tWz8K --field-position fieldId=<value>,order=<value>,section=<value>",
8034
8339
  method: "PATCH",
8035
8340
  path: "/item/{itemKey}",
8036
8341
  pathParameters: [{
@@ -8057,7 +8362,7 @@ const commands = [
8057
8362
  schema: z.string()
8058
8363
  },
8059
8364
  {
8060
- name: "field",
8365
+ name: "field-position",
8061
8366
  jsonPath: ["fields"],
8062
8367
  description: "New positions for a DEVICE item's fields",
8063
8368
  valueName: "fieldId=,order=,section=",
@@ -8107,7 +8412,20 @@ const commands = [
8107
8412
  "SERVICE"
8108
8413
  ])
8109
8414
  }
8110
- ]
8415
+ ],
8416
+ body: { "fields": {
8417
+ "acceptsBulkSerials": {},
8418
+ "description": {},
8419
+ "fields": { "items": { "fields": {
8420
+ "fieldId": {},
8421
+ "order": {},
8422
+ "section": {}
8423
+ } } },
8424
+ "isArchived": {},
8425
+ "name": {},
8426
+ "sku": {},
8427
+ "type": {}
8428
+ } }
8111
8429
  }),
8112
8430
  {
8113
8431
  name: "accounting",
@@ -8480,7 +8798,56 @@ const commands = [
8480
8798
  nullable: true,
8481
8799
  schema: toNumber(z.number().int())
8482
8800
  }
8483
- ]
8801
+ ],
8802
+ body: { "fields": {
8803
+ "allocatedIndirect": { "fields": {
8804
+ "amount": {},
8805
+ "isoCode": {}
8806
+ } },
8807
+ "billOfMaterials": { "fields": {
8808
+ "amount": {},
8809
+ "isoCode": {}
8810
+ } },
8811
+ "costCurrencyCode": {},
8812
+ "depreciationModel": {},
8813
+ "directLabor": { "fields": {
8814
+ "amount": {},
8815
+ "isoCode": {}
8816
+ } },
8817
+ "freightInbound": { "fields": {
8818
+ "amount": {},
8819
+ "isoCode": {}
8820
+ } },
8821
+ "freightOutbound": { "fields": {
8822
+ "amount": {},
8823
+ "isoCode": {}
8824
+ } },
8825
+ "installation": { "fields": {
8826
+ "amount": {},
8827
+ "isoCode": {}
8828
+ } },
8829
+ "interest": { "fields": {
8830
+ "amount": {},
8831
+ "isoCode": {}
8832
+ } },
8833
+ "salvageValue": { "fields": {
8834
+ "amount": {},
8835
+ "isoCode": {}
8836
+ } },
8837
+ "simpleCostBasis": { "fields": {
8838
+ "amount": {},
8839
+ "isoCode": {}
8840
+ } },
8841
+ "tariffs": { "fields": {
8842
+ "amount": {},
8843
+ "isoCode": {}
8844
+ } },
8845
+ "tax": { "fields": {
8846
+ "amount": {},
8847
+ "isoCode": {}
8848
+ } },
8849
+ "usefulLife": {}
8850
+ } }
8484
8851
  })]
8485
8852
  },
8486
8853
  {
@@ -8546,7 +8913,13 @@ const commands = [
8546
8913
  nullable: true,
8547
8914
  schema: toNumber(z.number().int())
8548
8915
  }
8549
- ]
8916
+ ],
8917
+ body: { "fields": {
8918
+ "fieldType": {},
8919
+ "label": {},
8920
+ "order": {},
8921
+ "section": {}
8922
+ } }
8550
8923
  }),
8551
8924
  defineOperation({
8552
8925
  name: "update",
@@ -8570,7 +8943,8 @@ const commands = [
8570
8943
  description: "The field's new display name, which cannot be empty",
8571
8944
  valueName: "value",
8572
8945
  schema: z.string()
8573
- }]
8946
+ }],
8947
+ body: { "fields": { "label": {} } }
8574
8948
  }),
8575
8949
  defineOperation({
8576
8950
  name: "delete",
@@ -8679,7 +9053,7 @@ const commands = [
8679
9053
  schema: z.array(z.string())
8680
9054
  },
8681
9055
  {
8682
- name: "include-organization",
9056
+ name: "for-organization",
8683
9057
  queryName: "includeOrganization",
8684
9058
  description: "Whether the customer filter also matches your organization's own locations, which on its own returns only those",
8685
9059
  schema: z.boolean()
@@ -8842,7 +9216,27 @@ const commands = [
8842
9216
  nullable: true,
8843
9217
  schema: toEnum(["SITE", "ZONE"])
8844
9218
  }
8845
- ]
9219
+ ],
9220
+ body: { "fields": {
9221
+ "address": { "fields": {
9222
+ "addressLine1": {},
9223
+ "addressLine2": {},
9224
+ "city": {},
9225
+ "country": {},
9226
+ "formattedAddress": {},
9227
+ "postalCode": {},
9228
+ "state": {}
9229
+ } },
9230
+ "consignee": {},
9231
+ "customerId": {},
9232
+ "description": {},
9233
+ "isInventory": {},
9234
+ "isInventoryOverride": {},
9235
+ "isTransient": {},
9236
+ "name": {},
9237
+ "parentLocationId": {},
9238
+ "type": {}
9239
+ } }
8846
9240
  }),
8847
9241
  defineOperation({
8848
9242
  name: "get",
@@ -9006,7 +9400,27 @@ const commands = [
9006
9400
  nullable: true,
9007
9401
  schema: toEnum(["SITE", "ZONE"])
9008
9402
  }
9009
- ]
9403
+ ],
9404
+ body: { "fields": {
9405
+ "address": { "fields": {
9406
+ "addressLine1": {},
9407
+ "addressLine2": {},
9408
+ "city": {},
9409
+ "country": {},
9410
+ "formattedAddress": {},
9411
+ "postalCode": {},
9412
+ "state": {}
9413
+ } },
9414
+ "consignee": {},
9415
+ "customerId": {},
9416
+ "description": {},
9417
+ "isArchived": {},
9418
+ "isInventory": {},
9419
+ "isInventoryOverride": {},
9420
+ "isTransient": {},
9421
+ "name": {},
9422
+ "type": {}
9423
+ } }
9010
9424
  }),
9011
9425
  {
9012
9426
  name: "zones",
@@ -9472,7 +9886,63 @@ const commands = [
9472
9886
  nullable: true,
9473
9887
  schema: z.uuid()
9474
9888
  }
9475
- ]
9889
+ ],
9890
+ body: { "fields": {
9891
+ "contractSignedOn": {},
9892
+ "customerId": {},
9893
+ "defaultLocationId": {},
9894
+ "description": {},
9895
+ "endOn": {},
9896
+ "fileIds": { "items": {} },
9897
+ "inheritPreviousLineItems": {},
9898
+ "initialWorkflowStageId": {},
9899
+ "installDate": {},
9900
+ "lineItems": { "items": { "fields": {
9901
+ "activationDate": {},
9902
+ "aggregationKey": {},
9903
+ "billingFrequency": {},
9904
+ "chargeFrequency": {},
9905
+ "chargeSchedule": {},
9906
+ "details": {},
9907
+ "endOn": {},
9908
+ "fixedPrice": { "fields": {
9909
+ "amount": {},
9910
+ "isoCode": {}
9911
+ } },
9912
+ "id": {},
9913
+ "invoiceFrequency": {},
9914
+ "invoiceMode": {},
9915
+ "itemId": {},
9916
+ "locationId": {},
9917
+ "milestonePhases": { "fields": {
9918
+ "entries": { "items": { "fields": {
9919
+ "name": {},
9920
+ "percentage": {}
9921
+ } } },
9922
+ "mode": {}
9923
+ } },
9924
+ "pricingMode": {},
9925
+ "quantity": {},
9926
+ "startOn": {},
9927
+ "totalOverride": { "fields": {
9928
+ "amount": {},
9929
+ "isoCode": {}
9930
+ } },
9931
+ "transactionType": {},
9932
+ "unitPrice": { "fields": {
9933
+ "amount": {},
9934
+ "isoCode": {}
9935
+ } }
9936
+ } } },
9937
+ "name": {},
9938
+ "previousProjectId": {},
9939
+ "startOn": {},
9940
+ "totalContractValue": { "fields": {
9941
+ "amount": {},
9942
+ "isoCode": {}
9943
+ } },
9944
+ "workflowId": {}
9945
+ } }
9476
9946
  }),
9477
9947
  defineOperation({
9478
9948
  name: "get",
@@ -9880,7 +10350,77 @@ const commands = [
9880
10350
  nullable: true,
9881
10351
  schema: z.uuid()
9882
10352
  }
9883
- ]
10353
+ ],
10354
+ body: { "fields": {
10355
+ "acceptanceDate": {},
10356
+ "billingAddress": {},
10357
+ "billingContactEmail": {},
10358
+ "billingContactName": {},
10359
+ "billingContactPhone": {},
10360
+ "contractSignedOn": {},
10361
+ "customerId": {},
10362
+ "defaultLocationId": {},
10363
+ "description": {},
10364
+ "discount": { "fields": {
10365
+ "amount": {},
10366
+ "isoCode": {}
10367
+ } },
10368
+ "endOn": {},
10369
+ "goLiveDate": {},
10370
+ "installDate": {},
10371
+ "isArchived": {},
10372
+ "lineItems": { "items": { "fields": {
10373
+ "activationDate": {},
10374
+ "aggregationKey": {},
10375
+ "billingFrequency": {},
10376
+ "chargeFrequency": {},
10377
+ "chargeSchedule": {},
10378
+ "details": {},
10379
+ "endOn": {},
10380
+ "fixedPrice": { "fields": {
10381
+ "amount": {},
10382
+ "isoCode": {}
10383
+ } },
10384
+ "id": {},
10385
+ "invoiceFrequency": {},
10386
+ "invoiceMode": {},
10387
+ "itemId": {},
10388
+ "locationId": {},
10389
+ "milestonePhases": { "fields": {
10390
+ "entries": { "items": { "fields": {
10391
+ "name": {},
10392
+ "percentage": {}
10393
+ } } },
10394
+ "mode": {}
10395
+ } },
10396
+ "pricingMode": {},
10397
+ "quantity": {},
10398
+ "startOn": {},
10399
+ "totalOverride": { "fields": {
10400
+ "amount": {},
10401
+ "isoCode": {}
10402
+ } },
10403
+ "transactionType": {},
10404
+ "unitPrice": { "fields": {
10405
+ "amount": {},
10406
+ "isoCode": {}
10407
+ } }
10408
+ } } },
10409
+ "memo": {},
10410
+ "name": {},
10411
+ "paymentTerm": {},
10412
+ "previousProjectId": {},
10413
+ "purchaseOrderNumber": {},
10414
+ "siteVisitDate": {},
10415
+ "startOn": {},
10416
+ "totalContractValue": { "fields": {
10417
+ "amount": {},
10418
+ "isoCode": {}
10419
+ } },
10420
+ "trainingDate": {},
10421
+ "workflowId": {},
10422
+ "workflowStageId": {}
10423
+ } }
9884
10424
  }),
9885
10425
  {
9886
10426
  name: "line-item",
@@ -9891,7 +10431,7 @@ const commands = [
9891
10431
  subcommands: [defineOperation({
9892
10432
  name: "update",
9893
10433
  summary: "Patch project line item",
9894
- example: "hardfin project line-item update proj_7hq2lm9xcr4twz8k ppb_4tn8wq2zkv7mx9cr --charge isCustomModified=<value>,label=<value>,pricingMode=<value>,quantity=<value>,sequence=<value>,status=<value>,triggerType=<value> --milestone-phases-entry name=<value>,percentage=<value>",
10434
+ example: "hardfin project line-item update proj_7hq2lm9xcr4twz8k ppb_4tn8wq2zkv7mx9cr --charge isCustomModified=<value>,label=<value>,pricingMode=<value>,quantity=<value>,sequence=<value>,status=<value>,triggerType=<value> --milestone-phase name=<value>,percentage=<value>",
9895
10435
  method: "PATCH",
9896
10436
  path: "/project/{projectKey}/line-item/{lineItemKey}",
9897
10437
  pathParameters: [{
@@ -10077,7 +10617,7 @@ const commands = [
10077
10617
  ])
10078
10618
  },
10079
10619
  {
10080
- name: "generate",
10620
+ name: "regenerate-charges",
10081
10621
  jsonPath: ["generate"],
10082
10622
  description: "True to replace the line item's charges with the schedule its billing plan produces, and is not sent together with charges. A periodic plan needs its dates and its cadence, and generation is refused once a charge is INVOICED",
10083
10623
  negatable: true,
@@ -10137,7 +10677,7 @@ const commands = [
10137
10677
  schema: z.null()
10138
10678
  },
10139
10679
  {
10140
- name: "milestone-phases-entry",
10680
+ name: "milestone-phase",
10141
10681
  jsonPath: ["milestonePhases", "entries"],
10142
10682
  description: "The phases, in order",
10143
10683
  valueName: "name=,percentage=",
@@ -10235,7 +10775,63 @@ const commands = [
10235
10775
  "USD"
10236
10776
  ])
10237
10777
  }
10238
- ]
10778
+ ],
10779
+ body: { "fields": {
10780
+ "activationDate": {},
10781
+ "billingFrequency": {},
10782
+ "chargeFrequency": {},
10783
+ "chargeMode": {},
10784
+ "chargeSchedule": {},
10785
+ "charges": { "items": { "fields": {
10786
+ "expectedBillableDate": {},
10787
+ "id": {},
10788
+ "isCustomModified": {},
10789
+ "label": {},
10790
+ "pricingMode": {},
10791
+ "quantity": {},
10792
+ "sequence": {},
10793
+ "servicePeriodEnd": {},
10794
+ "servicePeriodStart": {},
10795
+ "status": {},
10796
+ "totalPrice": { "fields": {
10797
+ "amount": {},
10798
+ "isoCode": {}
10799
+ } },
10800
+ "triggerType": {},
10801
+ "unitPrice": { "fields": {
10802
+ "amount": {},
10803
+ "isoCode": {}
10804
+ } }
10805
+ } } },
10806
+ "details": {},
10807
+ "fixedPrice": { "fields": {
10808
+ "amount": {},
10809
+ "isoCode": {}
10810
+ } },
10811
+ "generate": {},
10812
+ "invoiceFrequency": {},
10813
+ "invoiceMode": {},
10814
+ "itemId": {},
10815
+ "locationId": {},
10816
+ "milestonePhases": { "fields": {
10817
+ "entries": { "items": { "fields": {
10818
+ "name": {},
10819
+ "percentage": {}
10820
+ } } },
10821
+ "mode": {}
10822
+ } },
10823
+ "pricingMode": {},
10824
+ "quantity": {},
10825
+ "totalOverride": { "fields": {
10826
+ "amount": {},
10827
+ "isoCode": {}
10828
+ } },
10829
+ "transactionType": {},
10830
+ "unitPrice": { "fields": {
10831
+ "amount": {},
10832
+ "isoCode": {}
10833
+ } }
10834
+ } }
10239
10835
  }), {
10240
10836
  name: "charges",
10241
10837
  summary: "Charges commands",
@@ -10608,7 +11204,25 @@ const commands = [
10608
11204
  required: true,
10609
11205
  schema: z.uuid()
10610
11206
  }
10611
- ]
11207
+ ],
11208
+ body: { "fields": {
11209
+ "carrier": { "fields": {
11210
+ "name": {},
11211
+ "trackingNumber": {},
11212
+ "type": {}
11213
+ } },
11214
+ "externalPurchaseOrderNumber": {},
11215
+ "fromLocationId": {},
11216
+ "items": { "items": { "fields": {
11217
+ "itemId": {},
11218
+ "requestedQuantity": {}
11219
+ } } },
11220
+ "orderNotes": {},
11221
+ "promiseDeliveryDate": {},
11222
+ "promiseShipDate": {},
11223
+ "supplierId": {},
11224
+ "toLocationId": {}
11225
+ } }
10612
11226
  }),
10613
11227
  defineOperation({
10614
11228
  name: "get",
@@ -10806,7 +11420,25 @@ const commands = [
10806
11420
  nullable: true,
10807
11421
  schema: z.uuid()
10808
11422
  }
10809
- ]
11423
+ ],
11424
+ body: { "fields": {
11425
+ "carrier": { "fields": {
11426
+ "name": {},
11427
+ "trackingNumber": {},
11428
+ "type": {}
11429
+ } },
11430
+ "externalPurchaseOrderNumber": {},
11431
+ "fromLocationId": {},
11432
+ "items": { "items": { "fields": {
11433
+ "itemId": {},
11434
+ "requestedQuantity": {}
11435
+ } } },
11436
+ "orderNotes": {},
11437
+ "promiseDeliveryDate": {},
11438
+ "promiseShipDate": {},
11439
+ "supplierId": {},
11440
+ "toLocationId": {}
11441
+ } }
10810
11442
  }),
10811
11443
  defineOperation({
10812
11444
  name: "resync-3pl-files",
@@ -10841,7 +11473,8 @@ const commands = [
10841
11473
  valueName: "value",
10842
11474
  required: true,
10843
11475
  schema: z.string()
10844
- }]
11476
+ }],
11477
+ body: { "fields": { "cancellationReason": {} } }
10845
11478
  }),
10846
11479
  {
10847
11480
  name: "file",
@@ -10954,7 +11587,11 @@ const commands = [
10954
11587
  valueName: "value",
10955
11588
  required: true,
10956
11589
  schema: z.string()
10957
- }]
11590
+ }],
11591
+ body: { "fields": {
11592
+ "name": {},
11593
+ "url": {}
11594
+ } }
10958
11595
  })]
10959
11596
  }
10960
11597
  ]
@@ -11326,7 +11963,25 @@ const commands = [
11326
11963
  required: true,
11327
11964
  schema: z.uuid()
11328
11965
  }
11329
- ]
11966
+ ],
11967
+ body: { "fields": {
11968
+ "carrier": { "fields": {
11969
+ "name": {},
11970
+ "trackingNumber": {},
11971
+ "type": {}
11972
+ } },
11973
+ "fromLocationId": {},
11974
+ "items": { "items": { "fields": {
11975
+ "itemId": {},
11976
+ "requestedQuantity": {}
11977
+ } } },
11978
+ "orderNotes": {},
11979
+ "promiseDeliveryDate": {},
11980
+ "promiseShipDate": {},
11981
+ "returnReason": {},
11982
+ "returnType": {},
11983
+ "toLocationId": {}
11984
+ } }
11330
11985
  }),
11331
11986
  defineOperation({
11332
11987
  name: "get",
@@ -11535,7 +12190,25 @@ const commands = [
11535
12190
  nullable: true,
11536
12191
  schema: z.uuid()
11537
12192
  }
11538
- ]
12193
+ ],
12194
+ body: { "fields": {
12195
+ "carrier": { "fields": {
12196
+ "name": {},
12197
+ "trackingNumber": {},
12198
+ "type": {}
12199
+ } },
12200
+ "fromLocationId": {},
12201
+ "items": { "items": { "fields": {
12202
+ "itemId": {},
12203
+ "requestedQuantity": {}
12204
+ } } },
12205
+ "orderNotes": {},
12206
+ "promiseDeliveryDate": {},
12207
+ "promiseShipDate": {},
12208
+ "returnReason": {},
12209
+ "returnType": {},
12210
+ "toLocationId": {}
12211
+ } }
11539
12212
  }),
11540
12213
  defineOperation({
11541
12214
  name: "resync-3pl-files",
@@ -11570,7 +12243,8 @@ const commands = [
11570
12243
  valueName: "value",
11571
12244
  required: true,
11572
12245
  schema: z.string()
11573
- }]
12246
+ }],
12247
+ body: { "fields": { "cancellationReason": {} } }
11574
12248
  }),
11575
12249
  {
11576
12250
  name: "file",
@@ -11683,7 +12357,11 @@ const commands = [
11683
12357
  valueName: "value",
11684
12358
  required: true,
11685
12359
  schema: z.string()
11686
- }]
12360
+ }],
12361
+ body: { "fields": {
12362
+ "name": {},
12363
+ "url": {}
12364
+ } }
11687
12365
  })]
11688
12366
  }
11689
12367
  ]
@@ -12123,7 +12801,37 @@ const commands = [
12123
12801
  required: true,
12124
12802
  schema: z.uuid()
12125
12803
  }
12126
- ]
12804
+ ],
12805
+ body: { "fields": {
12806
+ "carrier": { "fields": {
12807
+ "name": {},
12808
+ "trackingNumber": {},
12809
+ "type": {}
12810
+ } },
12811
+ "deliveredAt": {},
12812
+ "deliveredAtTimezone": {},
12813
+ "expectedDeliveredOn": {},
12814
+ "expectedShippedOn": {},
12815
+ "fromLocationId": {},
12816
+ "fulfillmentOrderNumber": {},
12817
+ "items": { "items": { "fields": {
12818
+ "externalReference": {},
12819
+ "itemId": {},
12820
+ "quantity": {},
12821
+ "serials": { "items": {} }
12822
+ } } },
12823
+ "purchaseOrderNumber": {},
12824
+ "returnOrderNumber": {},
12825
+ "shipmentNote": {},
12826
+ "shipmentType": {},
12827
+ "shippedAt": {},
12828
+ "shippedAtTimezone": {},
12829
+ "shippingCost": { "fields": {
12830
+ "amount": {},
12831
+ "isoCode": {}
12832
+ } },
12833
+ "toLocationId": {}
12834
+ } }
12127
12835
  }),
12128
12836
  defineOperation({
12129
12837
  name: "get",
@@ -12416,7 +13124,38 @@ const commands = [
12416
13124
  nullable: true,
12417
13125
  schema: z.uuid()
12418
13126
  }
12419
- ]
13127
+ ],
13128
+ body: { "fields": {
13129
+ "carrier": { "fields": {
13130
+ "name": {},
13131
+ "trackingNumber": {},
13132
+ "type": {}
13133
+ } },
13134
+ "deliveredAt": {},
13135
+ "deliveredAtTimezone": {},
13136
+ "deliveryNote": {},
13137
+ "expectedDeliveredOn": {},
13138
+ "expectedShippedOn": {},
13139
+ "fromLocationId": {},
13140
+ "fulfillmentOrderNumber": {},
13141
+ "items": { "items": { "fields": {
13142
+ "externalReference": {},
13143
+ "itemId": {},
13144
+ "quantity": {},
13145
+ "serials": { "items": {} }
13146
+ } } },
13147
+ "purchaseOrderNumber": {},
13148
+ "receiptNote": {},
13149
+ "returnOrderNumber": {},
13150
+ "shipmentNote": {},
13151
+ "shippedAt": {},
13152
+ "shippedAtTimezone": {},
13153
+ "shippingCost": { "fields": {
13154
+ "amount": {},
13155
+ "isoCode": {}
13156
+ } },
13157
+ "toLocationId": {}
13158
+ } }
12420
13159
  }),
12421
13160
  defineOperation({
12422
13161
  name: "cancel",
@@ -12443,7 +13182,11 @@ const commands = [
12443
13182
  description: "True to also remove the shipping cost recorded for the shipment",
12444
13183
  negatable: true,
12445
13184
  schema: z.boolean()
12446
- }]
13185
+ }],
13186
+ body: { "fields": {
13187
+ "cancellationReason": {},
13188
+ "removeLinkedShippingCost": {}
13189
+ } }
12447
13190
  }),
12448
13191
  defineOperation({
12449
13192
  name: "deliver",
@@ -12490,7 +13233,13 @@ const commands = [
12490
13233
  nullable: true,
12491
13234
  schema: z.string()
12492
13235
  }
12493
- ]
13236
+ ],
13237
+ body: { "fields": {
13238
+ "deliveredAt": {},
13239
+ "deliveredAtTimezone": {},
13240
+ "deliveryLocationId": {},
13241
+ "deliveryNote": {}
13242
+ } }
12494
13243
  }),
12495
13244
  defineOperation({
12496
13245
  name: "receive",
@@ -12558,7 +13307,19 @@ const commands = [
12558
13307
  nullable: true,
12559
13308
  schema: z.string()
12560
13309
  }
12561
- ]
13310
+ ],
13311
+ body: { "fields": {
13312
+ "items": { "items": { "fields": {
13313
+ "externalReference": {},
13314
+ "itemId": {},
13315
+ "quantity": {},
13316
+ "serials": { "items": {} }
13317
+ } } },
13318
+ "receiptNote": {},
13319
+ "receiveLocationId": {},
13320
+ "receivedAt": {},
13321
+ "receivedAtTimezone": {}
13322
+ } }
12562
13323
  }),
12563
13324
  defineOperation({
12564
13325
  name: "ship",
@@ -12655,7 +13416,23 @@ const commands = [
12655
13416
  "USD"
12656
13417
  ])
12657
13418
  }
12658
- ]
13419
+ ],
13420
+ body: { "fields": {
13421
+ "items": { "items": { "fields": {
13422
+ "externalReference": {},
13423
+ "itemId": {},
13424
+ "quantity": {},
13425
+ "serials": { "items": {} }
13426
+ } } },
13427
+ "shipLocationId": {},
13428
+ "shipmentNote": {},
13429
+ "shippedAt": {},
13430
+ "shippedAtTimezone": {},
13431
+ "shippingCost": { "fields": {
13432
+ "amount": {},
13433
+ "isoCode": {}
13434
+ } }
13435
+ } }
12659
13436
  }),
12660
13437
  {
12661
13438
  name: "tracking",
@@ -12743,7 +13520,11 @@ const commands = [
12743
13520
  description: "The address the link points to, which cannot be empty, and an update sends it, name, or both",
12744
13521
  valueName: "value",
12745
13522
  schema: z.string()
12746
- }]
13523
+ }],
13524
+ body: { "fields": {
13525
+ "name": {},
13526
+ "url": {}
13527
+ } }
12747
13528
  }),
12748
13529
  defineOperation({
12749
13530
  name: "delete",
@@ -12897,5 +13678,5 @@ async function toReported(error, isJSON, resolved, level = "error") {
12897
13678
  //#endregion
12898
13679
  export { toCli, toParseExitCode, toReported, wasReportAttempted, writeCrash };
12899
13680
 
12900
- //# sourceMappingURL=program-Dn5_vLMu.js.map
12901
- //# debugId=d0ee2ed5-ee69-52ea-a9b8-71f6c3047c1a
13681
+ //# sourceMappingURL=program-DgQuzFjb.js.map
13682
+ //# debugId=ecc2e78f-98ec-58dd-bde6-7a32993b4e48