@chrt-inc/typescript-sdk 1.726.0 → 1.733.0
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.
- package/dist/cjs/Client.js +2 -2
- package/dist/cjs/api/resources/operations/resources/departmentRoutingRules/client/Client.d.ts +8 -8
- package/dist/cjs/api/resources/operations/resources/departmentRoutingRules/client/Client.js +22 -14
- package/dist/cjs/api/resources/operations/resources/departmentRoutingRules/client/requests/DepartmentRoutingRuleClientCreate1.d.ts +3 -5
- package/dist/cjs/api/resources/operations/resources/departmentRoutingRules/client/requests/DepartmentRoutingRulesDeleteV1Request.d.ts +14 -0
- package/dist/cjs/api/resources/operations/resources/departmentRoutingRules/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/Client.d.ts +12 -12
- package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/Client.js +21 -21
- package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/{OperationsTaskListEntriesRemove1.d.ts → OperationsTaskListReorderEntries1.d.ts} +1 -1
- package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/{OperationsTaskListEntriesAdd1.d.ts → OperationsTaskListSetEntries1.d.ts} +1 -1
- package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListSetEntries1.js +5 -0
- package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListsApplyToCaseV1Request.d.ts +3 -3
- package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/index.d.ts +2 -2
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/Client.d.ts +16 -0
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/Client.js +65 -0
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/requests/SetTaskGroupOrderingDraftReq.d.ts +13 -0
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/requests/SetTaskGroupOrderingDraftReq.js +5 -0
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/cargo/client/Client.d.ts +17 -0
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/cargo/client/Client.js +66 -0
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/cargo/client/requests/OrderDraftUnassociateCargoWithTaskReq.d.ts +16 -0
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/cargo/client/requests/OrderDraftUnassociateCargoWithTaskReq.js +5 -0
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/cargo/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/shipping/resources/taskGroups/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/shipping/resources/taskGroups/client/Client.js +1 -1
- package/dist/cjs/api/types/DeadlineAnchorEnum.d.ts +13 -0
- package/dist/cjs/api/types/DeadlineAnchorEnum.js +10 -0
- package/dist/cjs/api/types/DepartmentRoutingRule1.d.ts +3 -3
- package/dist/cjs/api/types/OperationsTaskListEntry1.d.ts +9 -7
- package/dist/cjs/api/types/OperationsTaskTypeEnum.d.ts +16 -8
- package/dist/cjs/api/types/OperationsTaskTypeEnum.js +6 -7
- package/dist/cjs/api/types/index.d.ts +1 -1
- package/dist/cjs/api/types/index.js +1 -1
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.mjs +2 -2
- package/dist/esm/api/resources/operations/resources/departmentRoutingRules/client/Client.d.mts +8 -8
- package/dist/esm/api/resources/operations/resources/departmentRoutingRules/client/Client.mjs +22 -14
- package/dist/esm/api/resources/operations/resources/departmentRoutingRules/client/requests/DepartmentRoutingRuleClientCreate1.d.mts +3 -5
- package/dist/esm/api/resources/operations/resources/departmentRoutingRules/client/requests/DepartmentRoutingRulesDeleteV1Request.d.mts +14 -0
- package/dist/esm/api/resources/operations/resources/departmentRoutingRules/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/Client.d.mts +12 -12
- package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/Client.mjs +21 -21
- package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/{OperationsTaskListEntriesRemove1.d.mts → OperationsTaskListReorderEntries1.d.mts} +1 -1
- package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/{OperationsTaskListEntriesAdd1.d.mts → OperationsTaskListSetEntries1.d.mts} +1 -1
- package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListSetEntries1.mjs +4 -0
- package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListsApplyToCaseV1Request.d.mts +3 -3
- package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/index.d.mts +2 -2
- package/dist/esm/api/resources/shipping/resources/orderDrafts/client/Client.d.mts +16 -0
- package/dist/esm/api/resources/shipping/resources/orderDrafts/client/Client.mjs +65 -0
- package/dist/esm/api/resources/shipping/resources/orderDrafts/client/requests/SetTaskGroupOrderingDraftReq.d.mts +13 -0
- package/dist/esm/api/resources/shipping/resources/orderDrafts/client/requests/SetTaskGroupOrderingDraftReq.mjs +4 -0
- package/dist/esm/api/resources/shipping/resources/orderDrafts/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/cargo/client/Client.d.mts +17 -0
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/cargo/client/Client.mjs +66 -0
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/cargo/client/requests/OrderDraftUnassociateCargoWithTaskReq.d.mts +16 -0
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/cargo/client/requests/OrderDraftUnassociateCargoWithTaskReq.mjs +4 -0
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/cargo/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/shipping/resources/taskGroups/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/shipping/resources/taskGroups/client/Client.mjs +1 -1
- package/dist/esm/api/types/DeadlineAnchorEnum.d.mts +13 -0
- package/dist/esm/api/types/DeadlineAnchorEnum.mjs +7 -0
- package/dist/esm/api/types/DepartmentRoutingRule1.d.mts +3 -3
- package/dist/esm/api/types/OperationsTaskListEntry1.d.mts +9 -7
- package/dist/esm/api/types/OperationsTaskTypeEnum.d.mts +16 -8
- package/dist/esm/api/types/OperationsTaskTypeEnum.mjs +6 -7
- package/dist/esm/api/types/index.d.mts +1 -1
- package/dist/esm/api/types/index.mjs +1 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +159 -26
- package/dist/cjs/api/types/RoutingCounterpartyTypeEnum.d.ts +0 -8
- package/dist/cjs/api/types/RoutingCounterpartyTypeEnum.js +0 -10
- package/dist/esm/api/types/RoutingCounterpartyTypeEnum.d.mts +0 -8
- package/dist/esm/api/types/RoutingCounterpartyTypeEnum.mjs +0 -7
- /package/dist/cjs/api/resources/operations/resources/{operationsTaskLists/client/requests/OperationsTaskListEntriesAdd1.js → departmentRoutingRules/client/requests/DepartmentRoutingRulesDeleteV1Request.js} +0 -0
- /package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/{OperationsTaskListEntriesRemove1.js → OperationsTaskListReorderEntries1.js} +0 -0
- /package/dist/esm/api/resources/operations/resources/{operationsTaskLists/client/requests/OperationsTaskListEntriesAdd1.mjs → departmentRoutingRules/client/requests/DepartmentRoutingRulesDeleteV1Request.mjs} +0 -0
- /package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/{OperationsTaskListEntriesRemove1.mjs → OperationsTaskListReorderEntries1.mjs} +0 -0
package/dist/cjs/Client.js
CHANGED
|
@@ -56,8 +56,8 @@ class ChrtClient {
|
|
|
56
56
|
this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
|
|
57
57
|
"X-Fern-Language": "JavaScript",
|
|
58
58
|
"X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
|
|
59
|
-
"X-Fern-SDK-Version": "1.
|
|
60
|
-
"User-Agent": "@chrt-inc/typescript-sdk/1.
|
|
59
|
+
"X-Fern-SDK-Version": "1.733.0",
|
|
60
|
+
"User-Agent": "@chrt-inc/typescript-sdk/1.733.0",
|
|
61
61
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
62
62
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
63
63
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
package/dist/cjs/api/resources/operations/resources/departmentRoutingRules/client/Client.d.ts
CHANGED
|
@@ -41,7 +41,7 @@ export declare class DepartmentRoutingRules {
|
|
|
41
41
|
listV1(requestOptions?: DepartmentRoutingRules.RequestOptions): core.HttpResponsePromise<Chrt.DepartmentRoutingRule1[]>;
|
|
42
42
|
private __listV1;
|
|
43
43
|
/**
|
|
44
|
-
* Sets the caller org's default operations desk for a counterparty (on-chrt shipper
|
|
44
|
+
* Sets the caller org's default operations desk for a counterparty. The body must set exactly one of shipper_org_id (on-chrt shipper) / off_chrt_shipper_org_id (off-chrt shipper shell) (XOR). Upsert: one rule per (owner, counterparty). Returns the rule id. The mapping is a non-binding suggestion surfaced at Case creation. | authz: min_org_role=administrator | (DepartmentRoutingRuleClientCreate1) -> (PydanticObjectId)
|
|
45
45
|
*
|
|
46
46
|
* @param {Chrt.operations.DepartmentRoutingRuleClientCreate1} request
|
|
47
47
|
* @param {DepartmentRoutingRules.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -51,26 +51,26 @@ export declare class DepartmentRoutingRules {
|
|
|
51
51
|
* @example
|
|
52
52
|
* await client.operations.departmentRoutingRules.upsertV1({
|
|
53
53
|
* schema_version: 1,
|
|
54
|
-
* counterparty_type: "shipper_org",
|
|
55
|
-
* counterparty_id: "counterparty_id",
|
|
56
54
|
* department_id: "department_id"
|
|
57
55
|
* })
|
|
58
56
|
*/
|
|
59
57
|
upsertV1(request: Chrt.operations.DepartmentRoutingRuleClientCreate1, requestOptions?: DepartmentRoutingRules.RequestOptions): core.HttpResponsePromise<string>;
|
|
60
58
|
private __upsertV1;
|
|
61
59
|
/**
|
|
62
|
-
* Clears the caller org's default operations desk for a counterparty. | authz: min_org_role=administrator | () -> (bool)
|
|
60
|
+
* Clears the caller org's default operations desk for a counterparty, keyed by exactly one of the shipper_org_id / off_chrt_shipper_org_id query params. | authz: min_org_role=administrator | () -> (bool)
|
|
63
61
|
*
|
|
64
|
-
* @param {Chrt.
|
|
65
|
-
* @param {string} counterpartyId
|
|
62
|
+
* @param {Chrt.operations.DepartmentRoutingRulesDeleteV1Request} request
|
|
66
63
|
* @param {DepartmentRoutingRules.RequestOptions} requestOptions - Request-specific configuration.
|
|
67
64
|
*
|
|
68
65
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
69
66
|
*
|
|
70
67
|
* @example
|
|
71
|
-
* await client.operations.departmentRoutingRules.deleteV1(
|
|
68
|
+
* await client.operations.departmentRoutingRules.deleteV1({
|
|
69
|
+
* shipper_org_id: "shipper_org_id",
|
|
70
|
+
* off_chrt_shipper_org_id: "off_chrt_shipper_org_id"
|
|
71
|
+
* })
|
|
72
72
|
*/
|
|
73
|
-
deleteV1(
|
|
73
|
+
deleteV1(request?: Chrt.operations.DepartmentRoutingRulesDeleteV1Request, requestOptions?: DepartmentRoutingRules.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
74
74
|
private __deleteV1;
|
|
75
75
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
76
76
|
}
|
|
@@ -107,7 +107,7 @@ class DepartmentRoutingRules {
|
|
|
107
107
|
});
|
|
108
108
|
}
|
|
109
109
|
/**
|
|
110
|
-
* Sets the caller org's default operations desk for a counterparty (on-chrt shipper
|
|
110
|
+
* Sets the caller org's default operations desk for a counterparty. The body must set exactly one of shipper_org_id (on-chrt shipper) / off_chrt_shipper_org_id (off-chrt shipper shell) (XOR). Upsert: one rule per (owner, counterparty). Returns the rule id. The mapping is a non-binding suggestion surfaced at Case creation. | authz: min_org_role=administrator | (DepartmentRoutingRuleClientCreate1) -> (PydanticObjectId)
|
|
111
111
|
*
|
|
112
112
|
* @param {Chrt.operations.DepartmentRoutingRuleClientCreate1} request
|
|
113
113
|
* @param {DepartmentRoutingRules.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -117,8 +117,6 @@ class DepartmentRoutingRules {
|
|
|
117
117
|
* @example
|
|
118
118
|
* await client.operations.departmentRoutingRules.upsertV1({
|
|
119
119
|
* schema_version: 1,
|
|
120
|
-
* counterparty_type: "shipper_org",
|
|
121
|
-
* counterparty_id: "counterparty_id",
|
|
122
120
|
* department_id: "department_id"
|
|
123
121
|
* })
|
|
124
122
|
*/
|
|
@@ -174,29 +172,39 @@ class DepartmentRoutingRules {
|
|
|
174
172
|
});
|
|
175
173
|
}
|
|
176
174
|
/**
|
|
177
|
-
* Clears the caller org's default operations desk for a counterparty. | authz: min_org_role=administrator | () -> (bool)
|
|
175
|
+
* Clears the caller org's default operations desk for a counterparty, keyed by exactly one of the shipper_org_id / off_chrt_shipper_org_id query params. | authz: min_org_role=administrator | () -> (bool)
|
|
178
176
|
*
|
|
179
|
-
* @param {Chrt.
|
|
180
|
-
* @param {string} counterpartyId
|
|
177
|
+
* @param {Chrt.operations.DepartmentRoutingRulesDeleteV1Request} request
|
|
181
178
|
* @param {DepartmentRoutingRules.RequestOptions} requestOptions - Request-specific configuration.
|
|
182
179
|
*
|
|
183
180
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
184
181
|
*
|
|
185
182
|
* @example
|
|
186
|
-
* await client.operations.departmentRoutingRules.deleteV1(
|
|
183
|
+
* await client.operations.departmentRoutingRules.deleteV1({
|
|
184
|
+
* shipper_org_id: "shipper_org_id",
|
|
185
|
+
* off_chrt_shipper_org_id: "off_chrt_shipper_org_id"
|
|
186
|
+
* })
|
|
187
187
|
*/
|
|
188
|
-
deleteV1(
|
|
189
|
-
return core.HttpResponsePromise.fromPromise(this.__deleteV1(
|
|
188
|
+
deleteV1(request = {}, requestOptions) {
|
|
189
|
+
return core.HttpResponsePromise.fromPromise(this.__deleteV1(request, requestOptions));
|
|
190
190
|
}
|
|
191
|
-
__deleteV1(
|
|
192
|
-
return __awaiter(this,
|
|
191
|
+
__deleteV1() {
|
|
192
|
+
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
193
193
|
var _a, _b, _c, _d;
|
|
194
|
+
const { shipper_org_id: shipperOrgId, off_chrt_shipper_org_id: offChrtShipperOrgId } = request;
|
|
195
|
+
const _queryParams = {};
|
|
196
|
+
if (shipperOrgId !== undefined) {
|
|
197
|
+
_queryParams["shipper_org_id"] = shipperOrgId;
|
|
198
|
+
}
|
|
199
|
+
if (offChrtShipperOrgId !== undefined) {
|
|
200
|
+
_queryParams["off_chrt_shipper_org_id"] = offChrtShipperOrgId;
|
|
201
|
+
}
|
|
194
202
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
195
203
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
196
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local,
|
|
204
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "operations/department_routing_rules/v1"),
|
|
197
205
|
method: "DELETE",
|
|
198
206
|
headers: _headers,
|
|
199
|
-
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
207
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
200
208
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
201
209
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
202
210
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -224,7 +232,7 @@ class DepartmentRoutingRules {
|
|
|
224
232
|
rawResponse: _response.rawResponse,
|
|
225
233
|
});
|
|
226
234
|
case "timeout":
|
|
227
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling DELETE /operations/department_routing_rules/v1
|
|
235
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling DELETE /operations/department_routing_rules/v1.");
|
|
228
236
|
case "unknown":
|
|
229
237
|
throw new errors.ChrtError({
|
|
230
238
|
message: _response.error.errorMessage,
|
|
@@ -1,19 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as Chrt from "../../../../../../index.js";
|
|
5
4
|
/**
|
|
6
5
|
* @example
|
|
7
6
|
* {
|
|
8
7
|
* schema_version: 1,
|
|
9
|
-
* counterparty_type: "shipper_org",
|
|
10
|
-
* counterparty_id: "counterparty_id",
|
|
11
8
|
* department_id: "department_id"
|
|
12
9
|
* }
|
|
13
10
|
*/
|
|
14
11
|
export interface DepartmentRoutingRuleClientCreate1 {
|
|
15
12
|
schema_version: number;
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
/** Must be a string starting with `org_` */
|
|
14
|
+
shipper_org_id?: string | null;
|
|
15
|
+
off_chrt_shipper_org_id?: string | null;
|
|
18
16
|
department_id: string;
|
|
19
17
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* shipper_org_id: "shipper_org_id",
|
|
8
|
+
* off_chrt_shipper_org_id: "off_chrt_shipper_org_id"
|
|
9
|
+
* }
|
|
10
|
+
*/
|
|
11
|
+
export interface DepartmentRoutingRulesDeleteV1Request {
|
|
12
|
+
shipper_org_id?: string | null;
|
|
13
|
+
off_chrt_shipper_org_id?: string | null;
|
|
14
|
+
}
|
|
@@ -93,33 +93,33 @@ export declare class OperationsTaskLists {
|
|
|
93
93
|
createV1(request: Chrt.operations.OperationsTaskListClientCreate1, requestOptions?: OperationsTaskLists.RequestOptions): core.HttpResponsePromise<string>;
|
|
94
94
|
private __createV1;
|
|
95
95
|
/**
|
|
96
|
-
*
|
|
96
|
+
* Replaces an OperationsTaskList's `entries` array wholesale — covering add, remove, reorder, and edit in one operation. Order is load-bearing for from_previous_task-anchored deadlines. | authz: min_org_role=operator | (OperationsTaskListSetEntries1) -> (bool)
|
|
97
97
|
*
|
|
98
98
|
* @param {string} taskListId
|
|
99
|
-
* @param {Chrt.operations.
|
|
99
|
+
* @param {Chrt.operations.OperationsTaskListSetEntries1} request
|
|
100
100
|
* @param {OperationsTaskLists.RequestOptions} requestOptions - Request-specific configuration.
|
|
101
101
|
*
|
|
102
102
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
103
103
|
*
|
|
104
104
|
* @example
|
|
105
|
-
* await client.operations.operationsTaskLists.
|
|
105
|
+
* await client.operations.operationsTaskLists.setEntriesV1("task_list_id")
|
|
106
106
|
*/
|
|
107
|
-
|
|
108
|
-
private
|
|
107
|
+
setEntriesV1(taskListId: string, request?: Chrt.operations.OperationsTaskListSetEntries1, requestOptions?: OperationsTaskLists.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
108
|
+
private __setEntriesV1;
|
|
109
109
|
/**
|
|
110
|
-
*
|
|
110
|
+
* Reorders an OperationsTaskList's existing entries. `entry_ids` must be an exact permutation of the list's current entry ids (every id present, no extras, no duplicates), so a reorder can never drop, add, or mutate an entry. | authz: min_org_role=operator | (OperationsTaskListReorderEntries1) -> (bool)
|
|
111
111
|
*
|
|
112
112
|
* @param {string} taskListId
|
|
113
|
-
* @param {Chrt.operations.
|
|
113
|
+
* @param {Chrt.operations.OperationsTaskListReorderEntries1} request
|
|
114
114
|
* @param {OperationsTaskLists.RequestOptions} requestOptions - Request-specific configuration.
|
|
115
115
|
*
|
|
116
116
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
117
117
|
*
|
|
118
118
|
* @example
|
|
119
|
-
* await client.operations.operationsTaskLists.
|
|
119
|
+
* await client.operations.operationsTaskLists.reorderEntriesV1("task_list_id")
|
|
120
120
|
*/
|
|
121
|
-
|
|
122
|
-
private
|
|
121
|
+
reorderEntriesV1(taskListId: string, request?: Chrt.operations.OperationsTaskListReorderEntries1, requestOptions?: OperationsTaskLists.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
122
|
+
private __reorderEntriesV1;
|
|
123
123
|
/**
|
|
124
124
|
* Soft-deletes an OperationsTaskList by setting `archived=True`. Tasks already applied to Cases are unaffected. | authz: min_org_role=operator | () -> (bool)
|
|
125
125
|
*
|
|
@@ -147,7 +147,7 @@ export declare class OperationsTaskLists {
|
|
|
147
147
|
unarchiveV1(taskListId: string, requestOptions?: OperationsTaskLists.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
148
148
|
private __unarchiveV1;
|
|
149
149
|
/**
|
|
150
|
-
* Materializes each entry of an OperationsTaskList into an OperationsTask on the Case (status=not_started, source_task_list_id set). Deadlines
|
|
150
|
+
* Materializes each entry of an OperationsTaskList into an OperationsTask on the Case (status=not_started, source_task_list_id set). Deadlines resolve per-entry from its anchor+offset; initial_deadline_timestamp, if set, pins the first entry and the chain follows. No dedup — applying twice creates duplicate tasks. | authz: min_org_role=operator | () -> (list[PydanticObjectId])
|
|
151
151
|
*
|
|
152
152
|
* @param {string} taskListId
|
|
153
153
|
* @param {string} caseId
|
|
@@ -158,7 +158,7 @@ export declare class OperationsTaskLists {
|
|
|
158
158
|
*
|
|
159
159
|
* @example
|
|
160
160
|
* await client.operations.operationsTaskLists.applyToCaseV1("task_list_id", "case_id", {
|
|
161
|
-
*
|
|
161
|
+
* initial_deadline_timestamp: "2024-01-15T09:30:00Z"
|
|
162
162
|
* })
|
|
163
163
|
*/
|
|
164
164
|
applyToCaseV1(taskListId: string, caseId: string, request?: Chrt.operations.OperationsTaskListsApplyToCaseV1Request, requestOptions?: OperationsTaskLists.RequestOptions): core.HttpResponsePromise<string[]>;
|
|
@@ -325,26 +325,26 @@ class OperationsTaskLists {
|
|
|
325
325
|
});
|
|
326
326
|
}
|
|
327
327
|
/**
|
|
328
|
-
*
|
|
328
|
+
* Replaces an OperationsTaskList's `entries` array wholesale — covering add, remove, reorder, and edit in one operation. Order is load-bearing for from_previous_task-anchored deadlines. | authz: min_org_role=operator | (OperationsTaskListSetEntries1) -> (bool)
|
|
329
329
|
*
|
|
330
330
|
* @param {string} taskListId
|
|
331
|
-
* @param {Chrt.operations.
|
|
331
|
+
* @param {Chrt.operations.OperationsTaskListSetEntries1} request
|
|
332
332
|
* @param {OperationsTaskLists.RequestOptions} requestOptions - Request-specific configuration.
|
|
333
333
|
*
|
|
334
334
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
335
335
|
*
|
|
336
336
|
* @example
|
|
337
|
-
* await client.operations.operationsTaskLists.
|
|
337
|
+
* await client.operations.operationsTaskLists.setEntriesV1("task_list_id")
|
|
338
338
|
*/
|
|
339
|
-
|
|
340
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
339
|
+
setEntriesV1(taskListId, request = {}, requestOptions) {
|
|
340
|
+
return core.HttpResponsePromise.fromPromise(this.__setEntriesV1(taskListId, request, requestOptions));
|
|
341
341
|
}
|
|
342
|
-
|
|
342
|
+
__setEntriesV1(taskListId_1) {
|
|
343
343
|
return __awaiter(this, arguments, void 0, function* (taskListId, request = {}, requestOptions) {
|
|
344
344
|
var _a, _b, _c, _d;
|
|
345
345
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
346
346
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
347
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `operations/operations_task_lists/entries/
|
|
347
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `operations/operations_task_lists/entries/set/v1/${encodeURIComponent(taskListId)}`),
|
|
348
348
|
method: "POST",
|
|
349
349
|
headers: _headers,
|
|
350
350
|
contentType: "application/json",
|
|
@@ -378,7 +378,7 @@ class OperationsTaskLists {
|
|
|
378
378
|
rawResponse: _response.rawResponse,
|
|
379
379
|
});
|
|
380
380
|
case "timeout":
|
|
381
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /operations/operations_task_lists/entries/
|
|
381
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /operations/operations_task_lists/entries/set/v1/{task_list_id}.");
|
|
382
382
|
case "unknown":
|
|
383
383
|
throw new errors.ChrtError({
|
|
384
384
|
message: _response.error.errorMessage,
|
|
@@ -388,26 +388,26 @@ class OperationsTaskLists {
|
|
|
388
388
|
});
|
|
389
389
|
}
|
|
390
390
|
/**
|
|
391
|
-
*
|
|
391
|
+
* Reorders an OperationsTaskList's existing entries. `entry_ids` must be an exact permutation of the list's current entry ids (every id present, no extras, no duplicates), so a reorder can never drop, add, or mutate an entry. | authz: min_org_role=operator | (OperationsTaskListReorderEntries1) -> (bool)
|
|
392
392
|
*
|
|
393
393
|
* @param {string} taskListId
|
|
394
|
-
* @param {Chrt.operations.
|
|
394
|
+
* @param {Chrt.operations.OperationsTaskListReorderEntries1} request
|
|
395
395
|
* @param {OperationsTaskLists.RequestOptions} requestOptions - Request-specific configuration.
|
|
396
396
|
*
|
|
397
397
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
398
398
|
*
|
|
399
399
|
* @example
|
|
400
|
-
* await client.operations.operationsTaskLists.
|
|
400
|
+
* await client.operations.operationsTaskLists.reorderEntriesV1("task_list_id")
|
|
401
401
|
*/
|
|
402
|
-
|
|
403
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
402
|
+
reorderEntriesV1(taskListId, request = {}, requestOptions) {
|
|
403
|
+
return core.HttpResponsePromise.fromPromise(this.__reorderEntriesV1(taskListId, request, requestOptions));
|
|
404
404
|
}
|
|
405
|
-
|
|
405
|
+
__reorderEntriesV1(taskListId_1) {
|
|
406
406
|
return __awaiter(this, arguments, void 0, function* (taskListId, request = {}, requestOptions) {
|
|
407
407
|
var _a, _b, _c, _d;
|
|
408
408
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
409
409
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
410
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `operations/operations_task_lists/entries/
|
|
410
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `operations/operations_task_lists/entries/reorder/v1/${encodeURIComponent(taskListId)}`),
|
|
411
411
|
method: "POST",
|
|
412
412
|
headers: _headers,
|
|
413
413
|
contentType: "application/json",
|
|
@@ -441,7 +441,7 @@ class OperationsTaskLists {
|
|
|
441
441
|
rawResponse: _response.rawResponse,
|
|
442
442
|
});
|
|
443
443
|
case "timeout":
|
|
444
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /operations/operations_task_lists/entries/
|
|
444
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /operations/operations_task_lists/entries/reorder/v1/{task_list_id}.");
|
|
445
445
|
case "unknown":
|
|
446
446
|
throw new errors.ChrtError({
|
|
447
447
|
message: _response.error.errorMessage,
|
|
@@ -569,7 +569,7 @@ class OperationsTaskLists {
|
|
|
569
569
|
});
|
|
570
570
|
}
|
|
571
571
|
/**
|
|
572
|
-
* Materializes each entry of an OperationsTaskList into an OperationsTask on the Case (status=not_started, source_task_list_id set). Deadlines
|
|
572
|
+
* Materializes each entry of an OperationsTaskList into an OperationsTask on the Case (status=not_started, source_task_list_id set). Deadlines resolve per-entry from its anchor+offset; initial_deadline_timestamp, if set, pins the first entry and the chain follows. No dedup — applying twice creates duplicate tasks. | authz: min_org_role=operator | () -> (list[PydanticObjectId])
|
|
573
573
|
*
|
|
574
574
|
* @param {string} taskListId
|
|
575
575
|
* @param {string} caseId
|
|
@@ -580,7 +580,7 @@ class OperationsTaskLists {
|
|
|
580
580
|
*
|
|
581
581
|
* @example
|
|
582
582
|
* await client.operations.operationsTaskLists.applyToCaseV1("task_list_id", "case_id", {
|
|
583
|
-
*
|
|
583
|
+
* initial_deadline_timestamp: "2024-01-15T09:30:00Z"
|
|
584
584
|
* })
|
|
585
585
|
*/
|
|
586
586
|
applyToCaseV1(taskListId, caseId, request = {}, requestOptions) {
|
|
@@ -589,10 +589,10 @@ class OperationsTaskLists {
|
|
|
589
589
|
__applyToCaseV1(taskListId_1, caseId_1) {
|
|
590
590
|
return __awaiter(this, arguments, void 0, function* (taskListId, caseId, request = {}, requestOptions) {
|
|
591
591
|
var _a, _b, _c, _d;
|
|
592
|
-
const {
|
|
592
|
+
const { initial_deadline_timestamp: initialDeadlineTimestamp } = request;
|
|
593
593
|
const _queryParams = {};
|
|
594
|
-
if (
|
|
595
|
-
_queryParams["
|
|
594
|
+
if (initialDeadlineTimestamp !== undefined) {
|
|
595
|
+
_queryParams["initial_deadline_timestamp"] = initialDeadlineTimestamp;
|
|
596
596
|
}
|
|
597
597
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
598
598
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* @example
|
|
6
6
|
* {
|
|
7
|
-
*
|
|
7
|
+
* initial_deadline_timestamp: "2024-01-15T09:30:00Z"
|
|
8
8
|
* }
|
|
9
9
|
*/
|
|
10
10
|
export interface OperationsTaskListsApplyToCaseV1Request {
|
|
11
|
-
/** If set,
|
|
12
|
-
|
|
11
|
+
/** If set, pins the first entry's deadline; later FROM_PREVIOUS_TASK entries cascade from it. */
|
|
12
|
+
initial_deadline_timestamp?: string | null;
|
|
13
13
|
}
|
package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { type OperationsTaskListsListV1Request } from "./OperationsTaskListsListV1Request.js";
|
|
2
2
|
export { type OperationsTaskListClientUpdate1 } from "./OperationsTaskListClientUpdate1.js";
|
|
3
3
|
export { type OperationsTaskListClientCreate1 } from "./OperationsTaskListClientCreate1.js";
|
|
4
|
-
export { type
|
|
5
|
-
export { type
|
|
4
|
+
export { type OperationsTaskListSetEntries1 } from "./OperationsTaskListSetEntries1.js";
|
|
5
|
+
export { type OperationsTaskListReorderEntries1 } from "./OperationsTaskListReorderEntries1.js";
|
|
6
6
|
export { type OperationsTaskListsApplyToCaseV1Request } from "./OperationsTaskListsApplyToCaseV1Request.js";
|
|
@@ -75,6 +75,22 @@ export declare class OrderDrafts {
|
|
|
75
75
|
*/
|
|
76
76
|
updateV1(orderId: string, request?: Chrt.shipping.OrdersDraftUpdateReq, requestOptions?: OrderDrafts.RequestOptions): core.HttpResponsePromise<Chrt.OrdersDraftUpdateRes>;
|
|
77
77
|
private __updateV1;
|
|
78
|
+
/**
|
|
79
|
+
* Sets the ordering of task groups within a draft order. Must provide all task group IDs with no duplicates. | (SetTaskGroupOrderingDraftReq) -> (bool)
|
|
80
|
+
*
|
|
81
|
+
* @param {string} orderId
|
|
82
|
+
* @param {Chrt.shipping.SetTaskGroupOrderingDraftReq} request
|
|
83
|
+
* @param {OrderDrafts.RequestOptions} requestOptions - Request-specific configuration.
|
|
84
|
+
*
|
|
85
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
86
|
+
*
|
|
87
|
+
* @example
|
|
88
|
+
* await client.shipping.orderDrafts.setTaskGroupOrderingV1("order_id", {
|
|
89
|
+
* task_group_ids: ["task_group_ids"]
|
|
90
|
+
* })
|
|
91
|
+
*/
|
|
92
|
+
setTaskGroupOrderingV1(orderId: string, request: Chrt.shipping.SetTaskGroupOrderingDraftReq, requestOptions?: OrderDrafts.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
93
|
+
private __setTaskGroupOrderingV1;
|
|
78
94
|
/**
|
|
79
95
|
* Deletes a draft order and all associated entities. | () -> (bool)
|
|
80
96
|
*
|
|
@@ -210,6 +210,71 @@ class OrderDrafts {
|
|
|
210
210
|
}
|
|
211
211
|
});
|
|
212
212
|
}
|
|
213
|
+
/**
|
|
214
|
+
* Sets the ordering of task groups within a draft order. Must provide all task group IDs with no duplicates. | (SetTaskGroupOrderingDraftReq) -> (bool)
|
|
215
|
+
*
|
|
216
|
+
* @param {string} orderId
|
|
217
|
+
* @param {Chrt.shipping.SetTaskGroupOrderingDraftReq} request
|
|
218
|
+
* @param {OrderDrafts.RequestOptions} requestOptions - Request-specific configuration.
|
|
219
|
+
*
|
|
220
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
221
|
+
*
|
|
222
|
+
* @example
|
|
223
|
+
* await client.shipping.orderDrafts.setTaskGroupOrderingV1("order_id", {
|
|
224
|
+
* task_group_ids: ["task_group_ids"]
|
|
225
|
+
* })
|
|
226
|
+
*/
|
|
227
|
+
setTaskGroupOrderingV1(orderId, request, requestOptions) {
|
|
228
|
+
return core.HttpResponsePromise.fromPromise(this.__setTaskGroupOrderingV1(orderId, request, requestOptions));
|
|
229
|
+
}
|
|
230
|
+
__setTaskGroupOrderingV1(orderId, request, requestOptions) {
|
|
231
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
232
|
+
var _a, _b, _c, _d;
|
|
233
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
234
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
235
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `shipping/order_drafts/set_task_group_ordering/v1/${encodeURIComponent(orderId)}`),
|
|
236
|
+
method: "PUT",
|
|
237
|
+
headers: _headers,
|
|
238
|
+
contentType: "application/json",
|
|
239
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
240
|
+
requestType: "json",
|
|
241
|
+
body: request,
|
|
242
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
243
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
244
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
245
|
+
});
|
|
246
|
+
if (_response.ok) {
|
|
247
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
248
|
+
}
|
|
249
|
+
if (_response.error.reason === "status-code") {
|
|
250
|
+
switch (_response.error.statusCode) {
|
|
251
|
+
case 422:
|
|
252
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
253
|
+
default:
|
|
254
|
+
throw new errors.ChrtError({
|
|
255
|
+
statusCode: _response.error.statusCode,
|
|
256
|
+
body: _response.error.body,
|
|
257
|
+
rawResponse: _response.rawResponse,
|
|
258
|
+
});
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
switch (_response.error.reason) {
|
|
262
|
+
case "non-json":
|
|
263
|
+
throw new errors.ChrtError({
|
|
264
|
+
statusCode: _response.error.statusCode,
|
|
265
|
+
body: _response.error.rawBody,
|
|
266
|
+
rawResponse: _response.rawResponse,
|
|
267
|
+
});
|
|
268
|
+
case "timeout":
|
|
269
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PUT /shipping/order_drafts/set_task_group_ordering/v1/{order_id}.");
|
|
270
|
+
case "unknown":
|
|
271
|
+
throw new errors.ChrtError({
|
|
272
|
+
message: _response.error.errorMessage,
|
|
273
|
+
rawResponse: _response.rawResponse,
|
|
274
|
+
});
|
|
275
|
+
}
|
|
276
|
+
});
|
|
277
|
+
}
|
|
213
278
|
/**
|
|
214
279
|
* Deletes a draft order and all associated entities. | () -> (bool)
|
|
215
280
|
*
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* task_group_ids: ["task_group_ids"]
|
|
8
|
+
* }
|
|
9
|
+
*/
|
|
10
|
+
export interface SetTaskGroupOrderingDraftReq {
|
|
11
|
+
/** Complete list of task group IDs in the desired order */
|
|
12
|
+
task_group_ids: string[];
|
|
13
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { type OrdersNewDraftReq } from "./OrdersNewDraftReq.js";
|
|
2
2
|
export { type OrdersDraftUpdateReq } from "./OrdersDraftUpdateReq.js";
|
|
3
|
+
export { type SetTaskGroupOrderingDraftReq } from "./SetTaskGroupOrderingDraftReq.js";
|
|
3
4
|
export { type OrdersDraftDeleteManyReq } from "./OrdersDraftDeleteManyReq.js";
|
|
4
5
|
export { type BodyPostShippingOrderDraftsImageToTextV1ShippingOrderDraftsImageToTextV1Post } from "./BodyPostShippingOrderDraftsImageToTextV1ShippingOrderDraftsImageToTextV1Post.js";
|
package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/cargo/client/Client.d.ts
CHANGED
|
@@ -66,6 +66,23 @@ export declare class Cargo {
|
|
|
66
66
|
*/
|
|
67
67
|
associateWithTaskV1(request: Chrt.shipping.orderDrafts.OrderDraftAssociateCargoWithTaskReq, requestOptions?: Cargo.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
68
68
|
private __associateWithTaskV1;
|
|
69
|
+
/**
|
|
70
|
+
* Removes an existing cargo association from a task in a draft order (e.g. when the wrong cargo was selected). | (OrderDraftUnassociateCargoWithTaskReq) -> (bool)
|
|
71
|
+
*
|
|
72
|
+
* @param {Chrt.shipping.orderDrafts.OrderDraftUnassociateCargoWithTaskReq} request
|
|
73
|
+
* @param {Cargo.RequestOptions} requestOptions - Request-specific configuration.
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
76
|
+
*
|
|
77
|
+
* @example
|
|
78
|
+
* await client.shipping.orderDrafts.cargo.unassociateWithTaskV1({
|
|
79
|
+
* order_id: "order_id",
|
|
80
|
+
* task_id: "task_id",
|
|
81
|
+
* cargo_id: "cargo_id"
|
|
82
|
+
* })
|
|
83
|
+
*/
|
|
84
|
+
unassociateWithTaskV1(request: Chrt.shipping.orderDrafts.OrderDraftUnassociateCargoWithTaskReq, requestOptions?: Cargo.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
85
|
+
private __unassociateWithTaskV1;
|
|
69
86
|
/**
|
|
70
87
|
* Updates a cargo item in an existing draft order. Validates order is in DRAFT status and owned by caller. | (OrderDraftUpdateCargoReq) -> (PydanticObjectId)
|
|
71
88
|
*
|