@hardfin/cli 0.1.1-dev.67 → 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]="
|
|
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,
|
|
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,6 +1719,11 @@ async function runOperation(operation, input) {
|
|
|
1719
1719
|
writeFailure("invalid_input", given.message, input.isJSON);
|
|
1720
1720
|
return ExitCode.USAGE;
|
|
1721
1721
|
}
|
|
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
|
+
}
|
|
1722
1727
|
const unset = toUnsetNames(input.flags);
|
|
1723
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));
|
|
1724
1729
|
if (missing.length > 0) {
|
|
@@ -1861,6 +1866,34 @@ function toGivenBody(source) {
|
|
|
1861
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"}`);
|
|
1862
1867
|
return read;
|
|
1863
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
|
+
}
|
|
1864
1897
|
/** hasPath reports whether a body already holds a value at a field's path. */
|
|
1865
1898
|
function hasPath(body, path) {
|
|
1866
1899
|
let holder = body;
|
|
@@ -4189,8 +4222,11 @@ const ARGUMENTS_SCHEMA = {
|
|
|
4189
4222
|
description: "JSON sent to the command on standard input, which it reads when given --input -"
|
|
4190
4223
|
}
|
|
4191
4224
|
},
|
|
4192
|
-
required: ["args"]
|
|
4225
|
+
required: ["args"],
|
|
4226
|
+
additionalProperties: false
|
|
4193
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);
|
|
4194
4230
|
/**
|
|
4195
4231
|
* Two tools, so a client can let a read run without asking and ask before anything changes.
|
|
4196
4232
|
* The commands themselves are resources, which cost nothing until one is read.
|
|
@@ -4413,10 +4449,14 @@ async function toToolResult(request, commands, run, toReadOnly) {
|
|
|
4413
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);
|
|
4414
4450
|
const reason = toReadOnly();
|
|
4415
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`);
|
|
4416
|
-
const
|
|
4417
|
-
|
|
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;
|
|
4418
4458
|
if (!Array.isArray(args) || args.some((entry) => typeof entry !== "string")) return toError("args must be a list of strings, such as [\"asset\", \"list\"]");
|
|
4419
|
-
if (called
|
|
4459
|
+
if (called.input !== void 0 && typeof called.input !== "string") return toError("input must be a string holding JSON, such as {\"name\": \"Acme\"}");
|
|
4420
4460
|
const refused = toRefusedArgument(args);
|
|
4421
4461
|
if (refused) return toError(refused);
|
|
4422
4462
|
const asked = args;
|
|
@@ -4429,7 +4469,7 @@ async function toToolResult(request, commands, run, toReadOnly) {
|
|
|
4429
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`);
|
|
4430
4470
|
const wrong = toWrongTool(name, toAccessOf(parsed));
|
|
4431
4471
|
if (wrong) return toError(wrong);
|
|
4432
|
-
const outcome = await run(asked, called
|
|
4472
|
+
const outcome = await run(asked, called.input);
|
|
4433
4473
|
const text = toBounded([outcome.code === 0 ? toFittedList(outcome.stdout) : outcome.stdout, outcome.stderr].filter((part) => part.trim() !== "").join("\n"));
|
|
4434
4474
|
const failure = outcome.code === 0 ? void 0 : toFailure(outcome);
|
|
4435
4475
|
return {
|
|
@@ -5429,7 +5469,63 @@ const commands = [
|
|
|
5429
5469
|
nullable: true,
|
|
5430
5470
|
schema: toNumber(z.number().int())
|
|
5431
5471
|
}
|
|
5432
|
-
]
|
|
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
|
+
} }
|
|
5433
5529
|
}),
|
|
5434
5530
|
{
|
|
5435
5531
|
name: "move",
|
|
@@ -5478,7 +5574,16 @@ const commands = [
|
|
|
5478
5574
|
"shipAtTimezone": ["string", "null"]
|
|
5479
5575
|
},
|
|
5480
5576
|
schema: z.array(z.string())
|
|
5481
|
-
}]
|
|
5577
|
+
}],
|
|
5578
|
+
body: { "fields": { "moves": { "items": { "fields": {
|
|
5579
|
+
"assetId": {},
|
|
5580
|
+
"deliverAt": {},
|
|
5581
|
+
"deliverAtTimezone": {},
|
|
5582
|
+
"destinationId": {},
|
|
5583
|
+
"originId": {},
|
|
5584
|
+
"shipAt": {},
|
|
5585
|
+
"shipAtTimezone": {}
|
|
5586
|
+
} } } } }
|
|
5482
5587
|
})]
|
|
5483
5588
|
}, {
|
|
5484
5589
|
name: "plan",
|
|
@@ -5512,7 +5617,13 @@ const commands = [
|
|
|
5512
5617
|
"shipAt": ["string", "null"]
|
|
5513
5618
|
},
|
|
5514
5619
|
schema: z.array(z.string())
|
|
5515
|
-
}]
|
|
5620
|
+
}],
|
|
5621
|
+
body: { "fields": { "moves": { "items": { "fields": {
|
|
5622
|
+
"assetId": {},
|
|
5623
|
+
"deliverAt": {},
|
|
5624
|
+
"id": {},
|
|
5625
|
+
"shipAt": {}
|
|
5626
|
+
} } } } }
|
|
5516
5627
|
})]
|
|
5517
5628
|
}]
|
|
5518
5629
|
},
|
|
@@ -5605,7 +5716,18 @@ const commands = [
|
|
|
5605
5716
|
valueName: "value",
|
|
5606
5717
|
schema: z.string()
|
|
5607
5718
|
}
|
|
5608
|
-
]
|
|
5719
|
+
],
|
|
5720
|
+
body: { "fields": {
|
|
5721
|
+
"description": {},
|
|
5722
|
+
"functionalStatus": {},
|
|
5723
|
+
"inInventoryDate": {},
|
|
5724
|
+
"initialLocationId": {},
|
|
5725
|
+
"metadata": { "items": { "fields": {
|
|
5726
|
+
"fieldId": {},
|
|
5727
|
+
"value": {}
|
|
5728
|
+
} } },
|
|
5729
|
+
"serial": {}
|
|
5730
|
+
} }
|
|
5609
5731
|
}),
|
|
5610
5732
|
{
|
|
5611
5733
|
name: "accounting",
|
|
@@ -5994,7 +6116,58 @@ const commands = [
|
|
|
5994
6116
|
nullable: true,
|
|
5995
6117
|
schema: toNumber(z.number().int())
|
|
5996
6118
|
}
|
|
5997
|
-
]
|
|
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
|
+
} }
|
|
5998
6171
|
}), {
|
|
5999
6172
|
name: "in-service-management",
|
|
6000
6173
|
summary: "In service management commands",
|
|
@@ -6020,7 +6193,8 @@ const commands = [
|
|
|
6020
6193
|
negatable: true,
|
|
6021
6194
|
required: true,
|
|
6022
6195
|
schema: z.boolean()
|
|
6023
|
-
}]
|
|
6196
|
+
}],
|
|
6197
|
+
body: { "fields": { "automatic": {} } }
|
|
6024
6198
|
})]
|
|
6025
6199
|
}]
|
|
6026
6200
|
},
|
|
@@ -6108,7 +6282,17 @@ const commands = [
|
|
|
6108
6282
|
"REGULATORY"
|
|
6109
6283
|
])
|
|
6110
6284
|
}
|
|
6111
|
-
]
|
|
6285
|
+
],
|
|
6286
|
+
body: { "fields": {
|
|
6287
|
+
"adjustmentType": {},
|
|
6288
|
+
"amount": { "fields": {
|
|
6289
|
+
"amount": {},
|
|
6290
|
+
"isoCode": {}
|
|
6291
|
+
} },
|
|
6292
|
+
"effectiveDate": {},
|
|
6293
|
+
"notes": {},
|
|
6294
|
+
"reason": {}
|
|
6295
|
+
} }
|
|
6112
6296
|
})]
|
|
6113
6297
|
},
|
|
6114
6298
|
{
|
|
@@ -6320,7 +6504,15 @@ const commands = [
|
|
|
6320
6504
|
"USD"
|
|
6321
6505
|
])
|
|
6322
6506
|
}
|
|
6323
|
-
]
|
|
6507
|
+
],
|
|
6508
|
+
body: { "fields": {
|
|
6509
|
+
"customerId": {},
|
|
6510
|
+
"date": {},
|
|
6511
|
+
"salePrice": { "fields": {
|
|
6512
|
+
"amount": {},
|
|
6513
|
+
"isoCode": {}
|
|
6514
|
+
} }
|
|
6515
|
+
} }
|
|
6324
6516
|
}),
|
|
6325
6517
|
defineOperation({
|
|
6326
6518
|
name: "clear",
|
|
@@ -6341,7 +6533,8 @@ const commands = [
|
|
|
6341
6533
|
valueName: "value",
|
|
6342
6534
|
required: true,
|
|
6343
6535
|
schema: z.string()
|
|
6344
|
-
}]
|
|
6536
|
+
}],
|
|
6537
|
+
body: { "fields": { "date": {} } }
|
|
6345
6538
|
}),
|
|
6346
6539
|
defineOperation({
|
|
6347
6540
|
name: "get",
|
|
@@ -6423,7 +6616,15 @@ const commands = [
|
|
|
6423
6616
|
"USD"
|
|
6424
6617
|
])
|
|
6425
6618
|
}
|
|
6426
|
-
]
|
|
6619
|
+
],
|
|
6620
|
+
body: { "fields": {
|
|
6621
|
+
"customerId": {},
|
|
6622
|
+
"date": {},
|
|
6623
|
+
"salePrice": { "fields": {
|
|
6624
|
+
"amount": {},
|
|
6625
|
+
"isoCode": {}
|
|
6626
|
+
} }
|
|
6627
|
+
} }
|
|
6427
6628
|
}),
|
|
6428
6629
|
defineOperation({
|
|
6429
6630
|
name: "delete",
|
|
@@ -6509,7 +6710,15 @@ const commands = [
|
|
|
6509
6710
|
nullable: true,
|
|
6510
6711
|
schema: z.string()
|
|
6511
6712
|
}
|
|
6512
|
-
]
|
|
6713
|
+
],
|
|
6714
|
+
body: { "fields": {
|
|
6715
|
+
"disposalDate": {},
|
|
6716
|
+
"disposalPrice": { "fields": {
|
|
6717
|
+
"amount": {},
|
|
6718
|
+
"isoCode": {}
|
|
6719
|
+
} },
|
|
6720
|
+
"disposalReason": {}
|
|
6721
|
+
} }
|
|
6513
6722
|
})]
|
|
6514
6723
|
},
|
|
6515
6724
|
{
|
|
@@ -6578,7 +6787,11 @@ const commands = [
|
|
|
6578
6787
|
valueName: "value",
|
|
6579
6788
|
required: true,
|
|
6580
6789
|
schema: z.string()
|
|
6581
|
-
}]
|
|
6790
|
+
}],
|
|
6791
|
+
body: { "fields": {
|
|
6792
|
+
"name": {},
|
|
6793
|
+
"url": {}
|
|
6794
|
+
} }
|
|
6582
6795
|
})]
|
|
6583
6796
|
},
|
|
6584
6797
|
{
|
|
@@ -6640,7 +6853,13 @@ const commands = [
|
|
|
6640
6853
|
required: true,
|
|
6641
6854
|
schema: toNumber(z.number().int())
|
|
6642
6855
|
}
|
|
6643
|
-
]
|
|
6856
|
+
],
|
|
6857
|
+
body: { "fields": {
|
|
6858
|
+
"effectiveDate": {},
|
|
6859
|
+
"notes": {},
|
|
6860
|
+
"reason": {},
|
|
6861
|
+
"usefulLifeMonths": {}
|
|
6862
|
+
} }
|
|
6644
6863
|
})]
|
|
6645
6864
|
}
|
|
6646
6865
|
]
|
|
@@ -6736,7 +6955,7 @@ const commands = [
|
|
|
6736
6955
|
schema: z.array(z.string())
|
|
6737
6956
|
},
|
|
6738
6957
|
{
|
|
6739
|
-
name: "
|
|
6958
|
+
name: "for-projects-without-customer",
|
|
6740
6959
|
queryName: "includeNoCustomer",
|
|
6741
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",
|
|
6742
6961
|
schema: z.boolean()
|
|
@@ -6811,7 +7030,8 @@ const commands = [
|
|
|
6811
7030
|
valueName: "value",
|
|
6812
7031
|
nullable: true,
|
|
6813
7032
|
schema: z.string()
|
|
6814
|
-
}]
|
|
7033
|
+
}],
|
|
7034
|
+
body: { "fields": { "cancellationReason": {} } }
|
|
6815
7035
|
}),
|
|
6816
7036
|
defineOperation({
|
|
6817
7037
|
name: "mark-billable",
|
|
@@ -6887,7 +7107,17 @@ const commands = [
|
|
|
6887
7107
|
"USD"
|
|
6888
7108
|
])
|
|
6889
7109
|
}
|
|
6890
|
-
]
|
|
7110
|
+
],
|
|
7111
|
+
body: { "fields": {
|
|
7112
|
+
"billingEligibleDate": {},
|
|
7113
|
+
"quantity": {},
|
|
7114
|
+
"servicePeriodEnd": {},
|
|
7115
|
+
"servicePeriodStart": {},
|
|
7116
|
+
"totalPriceOverride": { "fields": {
|
|
7117
|
+
"amount": {},
|
|
7118
|
+
"isoCode": {}
|
|
7119
|
+
} }
|
|
7120
|
+
} }
|
|
6891
7121
|
}),
|
|
6892
7122
|
defineOperation({
|
|
6893
7123
|
name: "mark-not-billable",
|
|
@@ -6908,7 +7138,8 @@ const commands = [
|
|
|
6908
7138
|
valueName: "value",
|
|
6909
7139
|
nullable: true,
|
|
6910
7140
|
schema: z.string()
|
|
6911
|
-
}]
|
|
7141
|
+
}],
|
|
7142
|
+
body: { "fields": { "expectedBillableDate": {} } }
|
|
6912
7143
|
}),
|
|
6913
7144
|
defineOperation({
|
|
6914
7145
|
name: "revert-cancellation",
|
|
@@ -7114,7 +7345,21 @@ const commands = [
|
|
|
7114
7345
|
required: true,
|
|
7115
7346
|
schema: z.string()
|
|
7116
7347
|
}
|
|
7117
|
-
]
|
|
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
|
+
} }
|
|
7118
7363
|
}),
|
|
7119
7364
|
defineOperation({
|
|
7120
7365
|
name: "get",
|
|
@@ -7238,7 +7483,22 @@ const commands = [
|
|
|
7238
7483
|
valueName: "value",
|
|
7239
7484
|
schema: z.string()
|
|
7240
7485
|
}
|
|
7241
|
-
]
|
|
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
|
+
} }
|
|
7242
7502
|
})
|
|
7243
7503
|
]
|
|
7244
7504
|
},
|
|
@@ -7557,7 +7817,21 @@ const commands = [
|
|
|
7557
7817
|
required: true,
|
|
7558
7818
|
schema: z.uuid()
|
|
7559
7819
|
}
|
|
7560
|
-
]
|
|
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
|
+
} }
|
|
7561
7835
|
}),
|
|
7562
7836
|
defineOperation({
|
|
7563
7837
|
name: "get",
|
|
@@ -7653,7 +7927,20 @@ const commands = [
|
|
|
7653
7927
|
nullable: true,
|
|
7654
7928
|
schema: z.uuid()
|
|
7655
7929
|
}
|
|
7656
|
-
]
|
|
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
|
+
} }
|
|
7657
7944
|
}),
|
|
7658
7945
|
defineOperation({
|
|
7659
7946
|
name: "cancel",
|
|
@@ -7674,7 +7961,8 @@ const commands = [
|
|
|
7674
7961
|
valueName: "value",
|
|
7675
7962
|
required: true,
|
|
7676
7963
|
schema: z.string()
|
|
7677
|
-
}]
|
|
7964
|
+
}],
|
|
7965
|
+
body: { "fields": { "cancellationReason": {} } }
|
|
7678
7966
|
}),
|
|
7679
7967
|
defineOperation({
|
|
7680
7968
|
name: "close",
|
|
@@ -7801,7 +8089,11 @@ const commands = [
|
|
|
7801
8089
|
valueName: "value",
|
|
7802
8090
|
required: true,
|
|
7803
8091
|
schema: z.string()
|
|
7804
|
-
}]
|
|
8092
|
+
}],
|
|
8093
|
+
body: { "fields": {
|
|
8094
|
+
"name": {},
|
|
8095
|
+
"url": {}
|
|
8096
|
+
} }
|
|
7805
8097
|
})]
|
|
7806
8098
|
}
|
|
7807
8099
|
]
|
|
@@ -8016,7 +8308,15 @@ const commands = [
|
|
|
8016
8308
|
"YRD"
|
|
8017
8309
|
])
|
|
8018
8310
|
}
|
|
8019
|
-
]
|
|
8311
|
+
],
|
|
8312
|
+
body: { "fields": {
|
|
8313
|
+
"acceptsBulkSerials": {},
|
|
8314
|
+
"description": {},
|
|
8315
|
+
"name": {},
|
|
8316
|
+
"sku": {},
|
|
8317
|
+
"type": {},
|
|
8318
|
+
"unitOfMeasure": {}
|
|
8319
|
+
} }
|
|
8020
8320
|
}),
|
|
8021
8321
|
defineOperation({
|
|
8022
8322
|
name: "get",
|
|
@@ -8035,7 +8335,7 @@ const commands = [
|
|
|
8035
8335
|
defineOperation({
|
|
8036
8336
|
name: "update",
|
|
8037
8337
|
summary: "Update item",
|
|
8038
|
-
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>",
|
|
8039
8339
|
method: "PATCH",
|
|
8040
8340
|
path: "/item/{itemKey}",
|
|
8041
8341
|
pathParameters: [{
|
|
@@ -8062,7 +8362,7 @@ const commands = [
|
|
|
8062
8362
|
schema: z.string()
|
|
8063
8363
|
},
|
|
8064
8364
|
{
|
|
8065
|
-
name: "field",
|
|
8365
|
+
name: "field-position",
|
|
8066
8366
|
jsonPath: ["fields"],
|
|
8067
8367
|
description: "New positions for a DEVICE item's fields",
|
|
8068
8368
|
valueName: "fieldId=,order=,section=",
|
|
@@ -8112,7 +8412,20 @@ const commands = [
|
|
|
8112
8412
|
"SERVICE"
|
|
8113
8413
|
])
|
|
8114
8414
|
}
|
|
8115
|
-
]
|
|
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
|
+
} }
|
|
8116
8429
|
}),
|
|
8117
8430
|
{
|
|
8118
8431
|
name: "accounting",
|
|
@@ -8485,7 +8798,56 @@ const commands = [
|
|
|
8485
8798
|
nullable: true,
|
|
8486
8799
|
schema: toNumber(z.number().int())
|
|
8487
8800
|
}
|
|
8488
|
-
]
|
|
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
|
+
} }
|
|
8489
8851
|
})]
|
|
8490
8852
|
},
|
|
8491
8853
|
{
|
|
@@ -8551,7 +8913,13 @@ const commands = [
|
|
|
8551
8913
|
nullable: true,
|
|
8552
8914
|
schema: toNumber(z.number().int())
|
|
8553
8915
|
}
|
|
8554
|
-
]
|
|
8916
|
+
],
|
|
8917
|
+
body: { "fields": {
|
|
8918
|
+
"fieldType": {},
|
|
8919
|
+
"label": {},
|
|
8920
|
+
"order": {},
|
|
8921
|
+
"section": {}
|
|
8922
|
+
} }
|
|
8555
8923
|
}),
|
|
8556
8924
|
defineOperation({
|
|
8557
8925
|
name: "update",
|
|
@@ -8575,7 +8943,8 @@ const commands = [
|
|
|
8575
8943
|
description: "The field's new display name, which cannot be empty",
|
|
8576
8944
|
valueName: "value",
|
|
8577
8945
|
schema: z.string()
|
|
8578
|
-
}]
|
|
8946
|
+
}],
|
|
8947
|
+
body: { "fields": { "label": {} } }
|
|
8579
8948
|
}),
|
|
8580
8949
|
defineOperation({
|
|
8581
8950
|
name: "delete",
|
|
@@ -8684,7 +9053,7 @@ const commands = [
|
|
|
8684
9053
|
schema: z.array(z.string())
|
|
8685
9054
|
},
|
|
8686
9055
|
{
|
|
8687
|
-
name: "
|
|
9056
|
+
name: "for-organization",
|
|
8688
9057
|
queryName: "includeOrganization",
|
|
8689
9058
|
description: "Whether the customer filter also matches your organization's own locations, which on its own returns only those",
|
|
8690
9059
|
schema: z.boolean()
|
|
@@ -8847,7 +9216,27 @@ const commands = [
|
|
|
8847
9216
|
nullable: true,
|
|
8848
9217
|
schema: toEnum(["SITE", "ZONE"])
|
|
8849
9218
|
}
|
|
8850
|
-
]
|
|
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
|
+
} }
|
|
8851
9240
|
}),
|
|
8852
9241
|
defineOperation({
|
|
8853
9242
|
name: "get",
|
|
@@ -9011,7 +9400,27 @@ const commands = [
|
|
|
9011
9400
|
nullable: true,
|
|
9012
9401
|
schema: toEnum(["SITE", "ZONE"])
|
|
9013
9402
|
}
|
|
9014
|
-
]
|
|
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
|
+
} }
|
|
9015
9424
|
}),
|
|
9016
9425
|
{
|
|
9017
9426
|
name: "zones",
|
|
@@ -9477,7 +9886,63 @@ const commands = [
|
|
|
9477
9886
|
nullable: true,
|
|
9478
9887
|
schema: z.uuid()
|
|
9479
9888
|
}
|
|
9480
|
-
]
|
|
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
|
+
} }
|
|
9481
9946
|
}),
|
|
9482
9947
|
defineOperation({
|
|
9483
9948
|
name: "get",
|
|
@@ -9885,7 +10350,77 @@ const commands = [
|
|
|
9885
10350
|
nullable: true,
|
|
9886
10351
|
schema: z.uuid()
|
|
9887
10352
|
}
|
|
9888
|
-
]
|
|
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
|
+
} }
|
|
9889
10424
|
}),
|
|
9890
10425
|
{
|
|
9891
10426
|
name: "line-item",
|
|
@@ -9896,7 +10431,7 @@ const commands = [
|
|
|
9896
10431
|
subcommands: [defineOperation({
|
|
9897
10432
|
name: "update",
|
|
9898
10433
|
summary: "Patch project line item",
|
|
9899
|
-
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-
|
|
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>",
|
|
9900
10435
|
method: "PATCH",
|
|
9901
10436
|
path: "/project/{projectKey}/line-item/{lineItemKey}",
|
|
9902
10437
|
pathParameters: [{
|
|
@@ -10082,7 +10617,7 @@ const commands = [
|
|
|
10082
10617
|
])
|
|
10083
10618
|
},
|
|
10084
10619
|
{
|
|
10085
|
-
name: "
|
|
10620
|
+
name: "regenerate-charges",
|
|
10086
10621
|
jsonPath: ["generate"],
|
|
10087
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",
|
|
10088
10623
|
negatable: true,
|
|
@@ -10142,7 +10677,7 @@ const commands = [
|
|
|
10142
10677
|
schema: z.null()
|
|
10143
10678
|
},
|
|
10144
10679
|
{
|
|
10145
|
-
name: "milestone-
|
|
10680
|
+
name: "milestone-phase",
|
|
10146
10681
|
jsonPath: ["milestonePhases", "entries"],
|
|
10147
10682
|
description: "The phases, in order",
|
|
10148
10683
|
valueName: "name=,percentage=",
|
|
@@ -10240,7 +10775,63 @@ const commands = [
|
|
|
10240
10775
|
"USD"
|
|
10241
10776
|
])
|
|
10242
10777
|
}
|
|
10243
|
-
]
|
|
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
|
+
} }
|
|
10244
10835
|
}), {
|
|
10245
10836
|
name: "charges",
|
|
10246
10837
|
summary: "Charges commands",
|
|
@@ -10613,7 +11204,25 @@ const commands = [
|
|
|
10613
11204
|
required: true,
|
|
10614
11205
|
schema: z.uuid()
|
|
10615
11206
|
}
|
|
10616
|
-
]
|
|
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
|
+
} }
|
|
10617
11226
|
}),
|
|
10618
11227
|
defineOperation({
|
|
10619
11228
|
name: "get",
|
|
@@ -10811,7 +11420,25 @@ const commands = [
|
|
|
10811
11420
|
nullable: true,
|
|
10812
11421
|
schema: z.uuid()
|
|
10813
11422
|
}
|
|
10814
|
-
]
|
|
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
|
+
} }
|
|
10815
11442
|
}),
|
|
10816
11443
|
defineOperation({
|
|
10817
11444
|
name: "resync-3pl-files",
|
|
@@ -10846,7 +11473,8 @@ const commands = [
|
|
|
10846
11473
|
valueName: "value",
|
|
10847
11474
|
required: true,
|
|
10848
11475
|
schema: z.string()
|
|
10849
|
-
}]
|
|
11476
|
+
}],
|
|
11477
|
+
body: { "fields": { "cancellationReason": {} } }
|
|
10850
11478
|
}),
|
|
10851
11479
|
{
|
|
10852
11480
|
name: "file",
|
|
@@ -10959,7 +11587,11 @@ const commands = [
|
|
|
10959
11587
|
valueName: "value",
|
|
10960
11588
|
required: true,
|
|
10961
11589
|
schema: z.string()
|
|
10962
|
-
}]
|
|
11590
|
+
}],
|
|
11591
|
+
body: { "fields": {
|
|
11592
|
+
"name": {},
|
|
11593
|
+
"url": {}
|
|
11594
|
+
} }
|
|
10963
11595
|
})]
|
|
10964
11596
|
}
|
|
10965
11597
|
]
|
|
@@ -11331,7 +11963,25 @@ const commands = [
|
|
|
11331
11963
|
required: true,
|
|
11332
11964
|
schema: z.uuid()
|
|
11333
11965
|
}
|
|
11334
|
-
]
|
|
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
|
+
} }
|
|
11335
11985
|
}),
|
|
11336
11986
|
defineOperation({
|
|
11337
11987
|
name: "get",
|
|
@@ -11540,7 +12190,25 @@ const commands = [
|
|
|
11540
12190
|
nullable: true,
|
|
11541
12191
|
schema: z.uuid()
|
|
11542
12192
|
}
|
|
11543
|
-
]
|
|
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
|
+
} }
|
|
11544
12212
|
}),
|
|
11545
12213
|
defineOperation({
|
|
11546
12214
|
name: "resync-3pl-files",
|
|
@@ -11575,7 +12243,8 @@ const commands = [
|
|
|
11575
12243
|
valueName: "value",
|
|
11576
12244
|
required: true,
|
|
11577
12245
|
schema: z.string()
|
|
11578
|
-
}]
|
|
12246
|
+
}],
|
|
12247
|
+
body: { "fields": { "cancellationReason": {} } }
|
|
11579
12248
|
}),
|
|
11580
12249
|
{
|
|
11581
12250
|
name: "file",
|
|
@@ -11688,7 +12357,11 @@ const commands = [
|
|
|
11688
12357
|
valueName: "value",
|
|
11689
12358
|
required: true,
|
|
11690
12359
|
schema: z.string()
|
|
11691
|
-
}]
|
|
12360
|
+
}],
|
|
12361
|
+
body: { "fields": {
|
|
12362
|
+
"name": {},
|
|
12363
|
+
"url": {}
|
|
12364
|
+
} }
|
|
11692
12365
|
})]
|
|
11693
12366
|
}
|
|
11694
12367
|
]
|
|
@@ -12128,7 +12801,37 @@ const commands = [
|
|
|
12128
12801
|
required: true,
|
|
12129
12802
|
schema: z.uuid()
|
|
12130
12803
|
}
|
|
12131
|
-
]
|
|
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
|
+
} }
|
|
12132
12835
|
}),
|
|
12133
12836
|
defineOperation({
|
|
12134
12837
|
name: "get",
|
|
@@ -12421,7 +13124,38 @@ const commands = [
|
|
|
12421
13124
|
nullable: true,
|
|
12422
13125
|
schema: z.uuid()
|
|
12423
13126
|
}
|
|
12424
|
-
]
|
|
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
|
+
} }
|
|
12425
13159
|
}),
|
|
12426
13160
|
defineOperation({
|
|
12427
13161
|
name: "cancel",
|
|
@@ -12448,7 +13182,11 @@ const commands = [
|
|
|
12448
13182
|
description: "True to also remove the shipping cost recorded for the shipment",
|
|
12449
13183
|
negatable: true,
|
|
12450
13184
|
schema: z.boolean()
|
|
12451
|
-
}]
|
|
13185
|
+
}],
|
|
13186
|
+
body: { "fields": {
|
|
13187
|
+
"cancellationReason": {},
|
|
13188
|
+
"removeLinkedShippingCost": {}
|
|
13189
|
+
} }
|
|
12452
13190
|
}),
|
|
12453
13191
|
defineOperation({
|
|
12454
13192
|
name: "deliver",
|
|
@@ -12495,7 +13233,13 @@ const commands = [
|
|
|
12495
13233
|
nullable: true,
|
|
12496
13234
|
schema: z.string()
|
|
12497
13235
|
}
|
|
12498
|
-
]
|
|
13236
|
+
],
|
|
13237
|
+
body: { "fields": {
|
|
13238
|
+
"deliveredAt": {},
|
|
13239
|
+
"deliveredAtTimezone": {},
|
|
13240
|
+
"deliveryLocationId": {},
|
|
13241
|
+
"deliveryNote": {}
|
|
13242
|
+
} }
|
|
12499
13243
|
}),
|
|
12500
13244
|
defineOperation({
|
|
12501
13245
|
name: "receive",
|
|
@@ -12563,7 +13307,19 @@ const commands = [
|
|
|
12563
13307
|
nullable: true,
|
|
12564
13308
|
schema: z.string()
|
|
12565
13309
|
}
|
|
12566
|
-
]
|
|
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
|
+
} }
|
|
12567
13323
|
}),
|
|
12568
13324
|
defineOperation({
|
|
12569
13325
|
name: "ship",
|
|
@@ -12660,7 +13416,23 @@ const commands = [
|
|
|
12660
13416
|
"USD"
|
|
12661
13417
|
])
|
|
12662
13418
|
}
|
|
12663
|
-
]
|
|
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
|
+
} }
|
|
12664
13436
|
}),
|
|
12665
13437
|
{
|
|
12666
13438
|
name: "tracking",
|
|
@@ -12748,7 +13520,11 @@ const commands = [
|
|
|
12748
13520
|
description: "The address the link points to, which cannot be empty, and an update sends it, name, or both",
|
|
12749
13521
|
valueName: "value",
|
|
12750
13522
|
schema: z.string()
|
|
12751
|
-
}]
|
|
13523
|
+
}],
|
|
13524
|
+
body: { "fields": {
|
|
13525
|
+
"name": {},
|
|
13526
|
+
"url": {}
|
|
13527
|
+
} }
|
|
12752
13528
|
}),
|
|
12753
13529
|
defineOperation({
|
|
12754
13530
|
name: "delete",
|
|
@@ -12902,5 +13678,5 @@ async function toReported(error, isJSON, resolved, level = "error") {
|
|
|
12902
13678
|
//#endregion
|
|
12903
13679
|
export { toCli, toParseExitCode, toReported, wasReportAttempted, writeCrash };
|
|
12904
13680
|
|
|
12905
|
-
//# sourceMappingURL=program-
|
|
12906
|
-
//# debugId=
|
|
13681
|
+
//# sourceMappingURL=program-DgQuzFjb.js.map
|
|
13682
|
+
//# debugId=ecc2e78f-98ec-58dd-bde6-7a32993b4e48
|