@chrt-inc/typescript-sdk 1.847.0 → 1.858.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/cases/client/Client.d.ts +30 -1
- package/dist/cjs/api/resources/operations/resources/cases/client/Client.js +125 -1
- package/dist/cjs/api/resources/operations/resources/operationsTasks/client/Client.d.ts +3 -1
- package/dist/cjs/api/resources/operations/resources/operationsTasks/client/Client.js +10 -2
- package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksListV1Request.d.ts +7 -1
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/Client.d.ts +5 -5
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/Client.js +4 -4
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/requests/OrdersNewDraftReq.d.ts +4 -4
- package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/Client.d.ts +2 -1
- package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/Client.js +10 -4
- package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientCreate1.d.ts +4 -1
- package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientUpdate1.d.ts +4 -1
- package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplatesListV1Request.d.ts +6 -3
- package/dist/cjs/api/resources/shipping/resources/orders/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/shipping/resources/orders/client/Client.js +1 -1
- package/dist/cjs/api/types/Case1.d.ts +1 -0
- package/dist/cjs/api/types/OperationsTask1.d.ts +3 -0
- package/dist/cjs/api/types/OrderBuilderReq.d.ts +0 -2
- package/dist/cjs/api/types/OrderTemplate1.d.ts +4 -1
- package/dist/cjs/api/types/OrderTemplateCore1.d.ts +4 -1
- package/dist/cjs/api/types/OrderTemplateExpanded1.d.ts +1 -0
- package/dist/cjs/api/types/OrderTemplateReferenceColumnEnum1.d.ts +2 -1
- package/dist/cjs/api/types/OrderTemplateReferenceColumnEnum1.js +1 -0
- package/dist/cjs/api/types/OrderTemplateResolvabilityRes.d.ts +1 -0
- package/dist/cjs/api/types/OrdersDraftDeleteManyRes.d.ts +7 -0
- package/dist/cjs/api/types/OrdersDraftDeleteManyRes.js +5 -0
- package/dist/cjs/api/types/ShippingTurnClientCreate1.d.ts +1 -0
- package/dist/cjs/api/types/TaskListToApplyToCase1.d.ts +7 -0
- package/dist/cjs/api/types/TaskListToApplyToCase1.js +5 -0
- package/dist/cjs/api/types/index.d.ts +2 -0
- package/dist/cjs/api/types/index.js +2 -0
- 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/cases/client/Client.d.mts +30 -1
- package/dist/esm/api/resources/operations/resources/cases/client/Client.mjs +125 -1
- package/dist/esm/api/resources/operations/resources/operationsTasks/client/Client.d.mts +3 -1
- package/dist/esm/api/resources/operations/resources/operationsTasks/client/Client.mjs +10 -2
- package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksListV1Request.d.mts +7 -1
- package/dist/esm/api/resources/shipping/resources/orderDrafts/client/Client.d.mts +5 -5
- package/dist/esm/api/resources/shipping/resources/orderDrafts/client/Client.mjs +4 -4
- package/dist/esm/api/resources/shipping/resources/orderDrafts/client/requests/OrdersNewDraftReq.d.mts +4 -4
- package/dist/esm/api/resources/shipping/resources/orderTemplates/client/Client.d.mts +2 -1
- package/dist/esm/api/resources/shipping/resources/orderTemplates/client/Client.mjs +10 -4
- package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientCreate1.d.mts +4 -1
- package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientUpdate1.d.mts +4 -1
- package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplatesListV1Request.d.mts +6 -3
- package/dist/esm/api/resources/shipping/resources/orders/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/shipping/resources/orders/client/Client.mjs +1 -1
- package/dist/esm/api/types/Case1.d.mts +1 -0
- package/dist/esm/api/types/OperationsTask1.d.mts +3 -0
- package/dist/esm/api/types/OrderBuilderReq.d.mts +0 -2
- package/dist/esm/api/types/OrderTemplate1.d.mts +4 -1
- package/dist/esm/api/types/OrderTemplateCore1.d.mts +4 -1
- package/dist/esm/api/types/OrderTemplateExpanded1.d.mts +1 -0
- package/dist/esm/api/types/OrderTemplateReferenceColumnEnum1.d.mts +2 -1
- package/dist/esm/api/types/OrderTemplateReferenceColumnEnum1.mjs +1 -0
- package/dist/esm/api/types/OrderTemplateResolvabilityRes.d.mts +1 -0
- package/dist/esm/api/types/OrdersDraftDeleteManyRes.d.mts +7 -0
- package/dist/esm/api/types/OrdersDraftDeleteManyRes.mjs +4 -0
- package/dist/esm/api/types/ShippingTurnClientCreate1.d.mts +1 -0
- package/dist/esm/api/types/TaskListToApplyToCase1.d.mts +7 -0
- package/dist/esm/api/types/TaskListToApplyToCase1.mjs +4 -0
- package/dist/esm/api/types/index.d.mts +2 -0
- package/dist/esm/api/types/index.mjs +2 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +164 -9
|
@@ -8,6 +8,7 @@ exports.OrderTemplateReferenceColumnEnum1 = {
|
|
|
8
8
|
ShipperOrgId: "shipper_org_id",
|
|
9
9
|
OffChrtShipperOrgId: "off_chrt_shipper_org_id",
|
|
10
10
|
ExecutorOrgIds: "executor_org_ids",
|
|
11
|
+
OffChrtExecutorOrgIds: "off_chrt_executor_org_ids",
|
|
11
12
|
DriverIds: "driver_ids",
|
|
12
13
|
DirectoryEntryIds: "directory_entry_ids",
|
|
13
14
|
};
|
|
@@ -5,6 +5,7 @@ export interface OrderTemplateResolvabilityRes {
|
|
|
5
5
|
unresolvable_coordinator?: boolean;
|
|
6
6
|
unresolvable_directory_entry_ids?: string[];
|
|
7
7
|
unresolvable_driver_ids?: string[];
|
|
8
|
+
unresolvable_off_chrt_executor_org_ids?: string[];
|
|
8
9
|
unresolvable_off_chrt_shipper?: boolean;
|
|
9
10
|
valid: boolean;
|
|
10
11
|
}
|
|
@@ -6,6 +6,7 @@ export interface ShippingTurnClientCreate1 {
|
|
|
6
6
|
directory_entry_ids?: string[];
|
|
7
7
|
driver_ids?: string[];
|
|
8
8
|
executor_org_ids?: string[];
|
|
9
|
+
off_chrt_executor_org_ids?: string[];
|
|
9
10
|
off_chrt_shipper_org_id?: string | null;
|
|
10
11
|
/** Must be a string starting with `org_` */
|
|
11
12
|
shipper_org_id?: string | null;
|
|
@@ -300,6 +300,7 @@ export * from "./OrderTemplateSortByEnum.js";
|
|
|
300
300
|
export * from "./OrderTypeaheadFieldEnum.js";
|
|
301
301
|
export * from "./OrderTypeaheadResult.js";
|
|
302
302
|
export * from "./OrderTypeaheadValue.js";
|
|
303
|
+
export * from "./OrdersDraftDeleteManyRes.js";
|
|
303
304
|
export * from "./OrdersDraftUpdateRes.js";
|
|
304
305
|
export * from "./OrdersExpandedListRes.js";
|
|
305
306
|
export * from "./OrdersNewDraftRes.js";
|
|
@@ -409,6 +410,7 @@ export * from "./TaskGroupStatusEnum1.js";
|
|
|
409
410
|
export * from "./TaskGroupTypeEnum1.js";
|
|
410
411
|
export * from "./TaskGroupTypeaheadFieldEnum.js";
|
|
411
412
|
export * from "./TaskGroupTypeaheadResult.js";
|
|
413
|
+
export * from "./TaskListToApplyToCase1.js";
|
|
412
414
|
export * from "./TaskManifest1.js";
|
|
413
415
|
export * from "./TaskStatusEnum1.js";
|
|
414
416
|
export * from "./TaskWaitTimeGeofenceRes.js";
|
|
@@ -316,6 +316,7 @@ __exportStar(require("./OrderTemplateSortByEnum.js"), exports);
|
|
|
316
316
|
__exportStar(require("./OrderTypeaheadFieldEnum.js"), exports);
|
|
317
317
|
__exportStar(require("./OrderTypeaheadResult.js"), exports);
|
|
318
318
|
__exportStar(require("./OrderTypeaheadValue.js"), exports);
|
|
319
|
+
__exportStar(require("./OrdersDraftDeleteManyRes.js"), exports);
|
|
319
320
|
__exportStar(require("./OrdersDraftUpdateRes.js"), exports);
|
|
320
321
|
__exportStar(require("./OrdersExpandedListRes.js"), exports);
|
|
321
322
|
__exportStar(require("./OrdersNewDraftRes.js"), exports);
|
|
@@ -425,6 +426,7 @@ __exportStar(require("./TaskGroupStatusEnum1.js"), exports);
|
|
|
425
426
|
__exportStar(require("./TaskGroupTypeEnum1.js"), exports);
|
|
426
427
|
__exportStar(require("./TaskGroupTypeaheadFieldEnum.js"), exports);
|
|
427
428
|
__exportStar(require("./TaskGroupTypeaheadResult.js"), exports);
|
|
429
|
+
__exportStar(require("./TaskListToApplyToCase1.js"), exports);
|
|
428
430
|
__exportStar(require("./TaskManifest1.js"), exports);
|
|
429
431
|
__exportStar(require("./TaskStatusEnum1.js"), exports);
|
|
430
432
|
__exportStar(require("./TaskWaitTimeGeofenceRes.js"), exports);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.
|
|
1
|
+
export declare const SDK_VERSION = "1.858.0";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/Client.mjs
CHANGED
|
@@ -21,8 +21,8 @@ export class ChrtClient {
|
|
|
21
21
|
this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
|
|
22
22
|
"X-Fern-Language": "JavaScript",
|
|
23
23
|
"X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
|
|
24
|
-
"X-Fern-SDK-Version": "1.
|
|
25
|
-
"User-Agent": "@chrt-inc/typescript-sdk/1.
|
|
24
|
+
"X-Fern-SDK-Version": "1.858.0",
|
|
25
|
+
"User-Agent": "@chrt-inc/typescript-sdk/1.858.0",
|
|
26
26
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
27
27
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
28
28
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -184,6 +184,35 @@ export declare class Cases {
|
|
|
184
184
|
*/
|
|
185
185
|
getSuggestedDepartmentV1(caseId: string, requestOptions?: Cases.RequestOptions): core.HttpResponsePromise<(string | null) | undefined>;
|
|
186
186
|
private __getSuggestedDepartmentV1;
|
|
187
|
+
/**
|
|
188
|
+
* Adds a task list to apply when the order is staged. | authz: min_org_role=operator | (UTCDatetime | None) -> (bool)
|
|
189
|
+
*
|
|
190
|
+
* @param {string} caseId
|
|
191
|
+
* @param {string} taskListId
|
|
192
|
+
* @param {string | null} request
|
|
193
|
+
* @param {Cases.RequestOptions} requestOptions - Request-specific configuration.
|
|
194
|
+
*
|
|
195
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
196
|
+
*
|
|
197
|
+
* @example
|
|
198
|
+
* await client.operations.cases.addTaskListToApplyAtOrderStagingV1("case_id", "task_list_id", "2024-01-15T09:30:00Z")
|
|
199
|
+
*/
|
|
200
|
+
addTaskListToApplyAtOrderStagingV1(caseId: string, taskListId: string, request?: string | null, requestOptions?: Cases.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
201
|
+
private __addTaskListToApplyAtOrderStagingV1;
|
|
202
|
+
/**
|
|
203
|
+
* Removes a pending staging task list to apply from a draft order case. | authz: min_org_role=operator | () -> (bool)
|
|
204
|
+
*
|
|
205
|
+
* @param {string} caseId
|
|
206
|
+
* @param {string} taskListId
|
|
207
|
+
* @param {Cases.RequestOptions} requestOptions - Request-specific configuration.
|
|
208
|
+
*
|
|
209
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
210
|
+
*
|
|
211
|
+
* @example
|
|
212
|
+
* await client.operations.cases.removeTaskListToApplyAtOrderStagingV1("case_id", "task_list_id")
|
|
213
|
+
*/
|
|
214
|
+
removeTaskListToApplyAtOrderStagingV1(caseId: string, taskListId: string, requestOptions?: Cases.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
215
|
+
private __removeTaskListToApplyAtOrderStagingV1;
|
|
187
216
|
/**
|
|
188
217
|
* Returns distinct case_tag values matching the query via case-insensitive regex for the caller's organization. | authz: min_org_role=operator | () -> (list[CaseTypeaheadResult])
|
|
189
218
|
*
|
|
@@ -230,7 +259,7 @@ export declare class Cases {
|
|
|
230
259
|
getV1(caseId: string, requestOptions?: Cases.RequestOptions): core.HttpResponsePromise<Chrt.Case1>;
|
|
231
260
|
private __getV1;
|
|
232
261
|
/**
|
|
233
|
-
* Updates a case's
|
|
262
|
+
* Updates a case's department and tag. | authz: min_org_role=operator | (CaseClientUpdate1) -> (bool)
|
|
234
263
|
*
|
|
235
264
|
* @param {string} caseId
|
|
236
265
|
* @param {Chrt.operations.CaseClientUpdate1} request
|
|
@@ -689,6 +689,130 @@ export class Cases {
|
|
|
689
689
|
}
|
|
690
690
|
});
|
|
691
691
|
}
|
|
692
|
+
/**
|
|
693
|
+
* Adds a task list to apply when the order is staged. | authz: min_org_role=operator | (UTCDatetime | None) -> (bool)
|
|
694
|
+
*
|
|
695
|
+
* @param {string} caseId
|
|
696
|
+
* @param {string} taskListId
|
|
697
|
+
* @param {string | null} request
|
|
698
|
+
* @param {Cases.RequestOptions} requestOptions - Request-specific configuration.
|
|
699
|
+
*
|
|
700
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
701
|
+
*
|
|
702
|
+
* @example
|
|
703
|
+
* await client.operations.cases.addTaskListToApplyAtOrderStagingV1("case_id", "task_list_id", "2024-01-15T09:30:00Z")
|
|
704
|
+
*/
|
|
705
|
+
addTaskListToApplyAtOrderStagingV1(caseId, taskListId, request, requestOptions) {
|
|
706
|
+
return core.HttpResponsePromise.fromPromise(this.__addTaskListToApplyAtOrderStagingV1(caseId, taskListId, request, requestOptions));
|
|
707
|
+
}
|
|
708
|
+
__addTaskListToApplyAtOrderStagingV1(caseId, taskListId, request, requestOptions) {
|
|
709
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
710
|
+
var _a, _b, _c, _d;
|
|
711
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
712
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
713
|
+
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/cases/task_lists_to_apply_at_order_staging/add/v1/${encodeURIComponent(caseId)}/${encodeURIComponent(taskListId)}`),
|
|
714
|
+
method: "POST",
|
|
715
|
+
headers: _headers,
|
|
716
|
+
contentType: "application/json",
|
|
717
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
718
|
+
requestType: "json",
|
|
719
|
+
body: request != null ? request : undefined,
|
|
720
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
721
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
722
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
723
|
+
});
|
|
724
|
+
if (_response.ok) {
|
|
725
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
726
|
+
}
|
|
727
|
+
if (_response.error.reason === "status-code") {
|
|
728
|
+
switch (_response.error.statusCode) {
|
|
729
|
+
case 422:
|
|
730
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
731
|
+
default:
|
|
732
|
+
throw new errors.ChrtError({
|
|
733
|
+
statusCode: _response.error.statusCode,
|
|
734
|
+
body: _response.error.body,
|
|
735
|
+
rawResponse: _response.rawResponse,
|
|
736
|
+
});
|
|
737
|
+
}
|
|
738
|
+
}
|
|
739
|
+
switch (_response.error.reason) {
|
|
740
|
+
case "non-json":
|
|
741
|
+
throw new errors.ChrtError({
|
|
742
|
+
statusCode: _response.error.statusCode,
|
|
743
|
+
body: _response.error.rawBody,
|
|
744
|
+
rawResponse: _response.rawResponse,
|
|
745
|
+
});
|
|
746
|
+
case "timeout":
|
|
747
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /operations/cases/task_lists_to_apply_at_order_staging/add/v1/{case_id}/{task_list_id}.");
|
|
748
|
+
case "unknown":
|
|
749
|
+
throw new errors.ChrtError({
|
|
750
|
+
message: _response.error.errorMessage,
|
|
751
|
+
rawResponse: _response.rawResponse,
|
|
752
|
+
});
|
|
753
|
+
}
|
|
754
|
+
});
|
|
755
|
+
}
|
|
756
|
+
/**
|
|
757
|
+
* Removes a pending staging task list to apply from a draft order case. | authz: min_org_role=operator | () -> (bool)
|
|
758
|
+
*
|
|
759
|
+
* @param {string} caseId
|
|
760
|
+
* @param {string} taskListId
|
|
761
|
+
* @param {Cases.RequestOptions} requestOptions - Request-specific configuration.
|
|
762
|
+
*
|
|
763
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
764
|
+
*
|
|
765
|
+
* @example
|
|
766
|
+
* await client.operations.cases.removeTaskListToApplyAtOrderStagingV1("case_id", "task_list_id")
|
|
767
|
+
*/
|
|
768
|
+
removeTaskListToApplyAtOrderStagingV1(caseId, taskListId, requestOptions) {
|
|
769
|
+
return core.HttpResponsePromise.fromPromise(this.__removeTaskListToApplyAtOrderStagingV1(caseId, taskListId, requestOptions));
|
|
770
|
+
}
|
|
771
|
+
__removeTaskListToApplyAtOrderStagingV1(caseId, taskListId, requestOptions) {
|
|
772
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
773
|
+
var _a, _b, _c, _d;
|
|
774
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
775
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
776
|
+
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/cases/task_lists_to_apply_at_order_staging/remove/v1/${encodeURIComponent(caseId)}/${encodeURIComponent(taskListId)}`),
|
|
777
|
+
method: "POST",
|
|
778
|
+
headers: _headers,
|
|
779
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
780
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
781
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
782
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
783
|
+
});
|
|
784
|
+
if (_response.ok) {
|
|
785
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
786
|
+
}
|
|
787
|
+
if (_response.error.reason === "status-code") {
|
|
788
|
+
switch (_response.error.statusCode) {
|
|
789
|
+
case 422:
|
|
790
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
791
|
+
default:
|
|
792
|
+
throw new errors.ChrtError({
|
|
793
|
+
statusCode: _response.error.statusCode,
|
|
794
|
+
body: _response.error.body,
|
|
795
|
+
rawResponse: _response.rawResponse,
|
|
796
|
+
});
|
|
797
|
+
}
|
|
798
|
+
}
|
|
799
|
+
switch (_response.error.reason) {
|
|
800
|
+
case "non-json":
|
|
801
|
+
throw new errors.ChrtError({
|
|
802
|
+
statusCode: _response.error.statusCode,
|
|
803
|
+
body: _response.error.rawBody,
|
|
804
|
+
rawResponse: _response.rawResponse,
|
|
805
|
+
});
|
|
806
|
+
case "timeout":
|
|
807
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /operations/cases/task_lists_to_apply_at_order_staging/remove/v1/{case_id}/{task_list_id}.");
|
|
808
|
+
case "unknown":
|
|
809
|
+
throw new errors.ChrtError({
|
|
810
|
+
message: _response.error.errorMessage,
|
|
811
|
+
rawResponse: _response.rawResponse,
|
|
812
|
+
});
|
|
813
|
+
}
|
|
814
|
+
});
|
|
815
|
+
}
|
|
692
816
|
/**
|
|
693
817
|
* Returns distinct case_tag values matching the query via case-insensitive regex for the caller's organization. | authz: min_org_role=operator | () -> (list[CaseTypeaheadResult])
|
|
694
818
|
*
|
|
@@ -882,7 +1006,7 @@ export class Cases {
|
|
|
882
1006
|
});
|
|
883
1007
|
}
|
|
884
1008
|
/**
|
|
885
|
-
* Updates a case's
|
|
1009
|
+
* Updates a case's department and tag. | authz: min_org_role=operator | (CaseClientUpdate1) -> (bool)
|
|
886
1010
|
*
|
|
887
1011
|
* @param {string} caseId
|
|
888
1012
|
* @param {Chrt.operations.CaseClientUpdate1} request
|
|
@@ -79,7 +79,7 @@ export declare class OperationsTasks {
|
|
|
79
79
|
deleteCommentV1(taskId: string, commentId: string, requestOptions?: OperationsTasks.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
80
80
|
private __deleteCommentV1;
|
|
81
81
|
/**
|
|
82
|
-
* Lists OperationsTasks for the caller's organization, with order ids / department / type / status / tag / assignee / deadline filtering, sorting, and pagination. | authz: min_org_role=operator | () -> (OperationsTaskListRes)
|
|
82
|
+
* Lists OperationsTasks for the caller's organization, with order ids / order short id / order off-CHRT reference id / department / type / status / tag / assignee / deadline filtering, sorting, and pagination. | authz: min_org_role=operator | () -> (OperationsTaskListRes)
|
|
83
83
|
*
|
|
84
84
|
* @param {Chrt.operations.OperationsTasksListV1Request} request
|
|
85
85
|
* @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -92,6 +92,8 @@ export declare class OperationsTasks {
|
|
|
92
92
|
* sort_order: "asc",
|
|
93
93
|
* page: 1,
|
|
94
94
|
* page_size: 1,
|
|
95
|
+
* filter_order_short_id: "filter_order_short_id",
|
|
96
|
+
* filter_order_off_chrt_reference_id: "filter_order_off_chrt_reference_id",
|
|
95
97
|
* filter_department_id: "filter_department_id",
|
|
96
98
|
* filter_assigned_user_id: "filter_assigned_user_id",
|
|
97
99
|
* filter_deadline_gte: "2024-01-15T09:30:00Z",
|
|
@@ -215,7 +215,7 @@ export class OperationsTasks {
|
|
|
215
215
|
});
|
|
216
216
|
}
|
|
217
217
|
/**
|
|
218
|
-
* Lists OperationsTasks for the caller's organization, with order ids / department / type / status / tag / assignee / deadline filtering, sorting, and pagination. | authz: min_org_role=operator | () -> (OperationsTaskListRes)
|
|
218
|
+
* Lists OperationsTasks for the caller's organization, with order ids / order short id / order off-CHRT reference id / department / type / status / tag / assignee / deadline filtering, sorting, and pagination. | authz: min_org_role=operator | () -> (OperationsTaskListRes)
|
|
219
219
|
*
|
|
220
220
|
* @param {Chrt.operations.OperationsTasksListV1Request} request
|
|
221
221
|
* @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -228,6 +228,8 @@ export class OperationsTasks {
|
|
|
228
228
|
* sort_order: "asc",
|
|
229
229
|
* page: 1,
|
|
230
230
|
* page_size: 1,
|
|
231
|
+
* filter_order_short_id: "filter_order_short_id",
|
|
232
|
+
* filter_order_off_chrt_reference_id: "filter_order_off_chrt_reference_id",
|
|
231
233
|
* filter_department_id: "filter_department_id",
|
|
232
234
|
* filter_assigned_user_id: "filter_assigned_user_id",
|
|
233
235
|
* filter_deadline_gte: "2024-01-15T09:30:00Z",
|
|
@@ -240,7 +242,7 @@ export class OperationsTasks {
|
|
|
240
242
|
__listV1() {
|
|
241
243
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
242
244
|
var _a, _b, _c, _d, _e, _f;
|
|
243
|
-
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, filter_order_ids: filterOrderIds, filter_department_id: filterDepartmentId, filter_task_type: filterTaskType, filter_status: filterStatus, filter_tag: filterTag, filter_assigned_user_id: filterAssignedUserId, filter_deadline_gte: filterDeadlineGte, filter_deadline_lte: filterDeadlineLte, } = request;
|
|
245
|
+
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, filter_order_ids: filterOrderIds, filter_order_short_id: filterOrderShortId, filter_order_off_chrt_reference_id: filterOrderOffChrtReferenceId, filter_department_id: filterDepartmentId, filter_task_type: filterTaskType, filter_status: filterStatus, filter_tag: filterTag, filter_assigned_user_id: filterAssignedUserId, filter_deadline_gte: filterDeadlineGte, filter_deadline_lte: filterDeadlineLte, } = request;
|
|
244
246
|
const _queryParams = {};
|
|
245
247
|
if (sortBy !== undefined) {
|
|
246
248
|
_queryParams["sort_by"] = sortBy;
|
|
@@ -262,6 +264,12 @@ export class OperationsTasks {
|
|
|
262
264
|
_queryParams["filter_order_ids"] = filterOrderIds;
|
|
263
265
|
}
|
|
264
266
|
}
|
|
267
|
+
if (filterOrderShortId !== undefined) {
|
|
268
|
+
_queryParams["filter_order_short_id"] = filterOrderShortId;
|
|
269
|
+
}
|
|
270
|
+
if (filterOrderOffChrtReferenceId !== undefined) {
|
|
271
|
+
_queryParams["filter_order_off_chrt_reference_id"] = filterOrderOffChrtReferenceId;
|
|
272
|
+
}
|
|
265
273
|
if (filterDepartmentId !== undefined) {
|
|
266
274
|
_queryParams["filter_department_id"] = filterDepartmentId;
|
|
267
275
|
}
|
|
@@ -9,6 +9,8 @@ import * as Chrt from "../../../../../../index.mjs";
|
|
|
9
9
|
* sort_order: "asc",
|
|
10
10
|
* page: 1,
|
|
11
11
|
* page_size: 1,
|
|
12
|
+
* filter_order_short_id: "filter_order_short_id",
|
|
13
|
+
* filter_order_off_chrt_reference_id: "filter_order_off_chrt_reference_id",
|
|
12
14
|
* filter_department_id: "filter_department_id",
|
|
13
15
|
* filter_assigned_user_id: "filter_assigned_user_id",
|
|
14
16
|
* filter_deadline_gte: "2024-01-15T09:30:00Z",
|
|
@@ -22,8 +24,12 @@ export interface OperationsTasksListV1Request {
|
|
|
22
24
|
sort_order?: Chrt.SortOrderEnum | null;
|
|
23
25
|
page?: number | null;
|
|
24
26
|
page_size?: number | null;
|
|
25
|
-
/** Filter to tasks on any of these order ids (e.g. the order_ids returned by the orders typeahead for a chosen short_id / off-chrt reference) */
|
|
27
|
+
/** Filter to tasks on any of these order ids (e.g. the order_ids returned by the orders typeahead for a chosen short_id / off-chrt reference id) */
|
|
26
28
|
filter_order_ids?: (string | null) | (string | null)[];
|
|
29
|
+
/** Filter to tasks for this order short ID */
|
|
30
|
+
filter_order_short_id?: string | null;
|
|
31
|
+
/** Filter to tasks for this order off-CHRT reference ID */
|
|
32
|
+
filter_order_off_chrt_reference_id?: string | null;
|
|
27
33
|
/** Filter to tasks routed to this department (desk queue) */
|
|
28
34
|
filter_department_id?: string | null;
|
|
29
35
|
/** Filter by task type(s). Defaults to all types. */
|
|
@@ -49,7 +49,7 @@ export declare class OrderDrafts {
|
|
|
49
49
|
get taskArtifact(): TaskArtifact;
|
|
50
50
|
get taskGroup(): TaskGroup;
|
|
51
51
|
/**
|
|
52
|
-
* Deletes a draft order and all associated entities. | () -> (bool)
|
|
52
|
+
* Deletes a draft order and all associated entities. | authz_personas=[draft_creator_org_operator] | () -> (bool)
|
|
53
53
|
*
|
|
54
54
|
* @param {string} orderId
|
|
55
55
|
* @param {OrderDrafts.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -62,7 +62,7 @@ export declare class OrderDrafts {
|
|
|
62
62
|
deleteV1(orderId: string, requestOptions?: OrderDrafts.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
63
63
|
private __deleteV1;
|
|
64
64
|
/**
|
|
65
|
-
* Deletes multiple draft orders and associated entities. | (OrdersDraftDeleteManyReq) -> (
|
|
65
|
+
* Deletes multiple draft orders and associated entities, skipping drafts with billing links. | authz_personas=[draft_creator_org_operator] | (OrdersDraftDeleteManyReq) -> (OrdersDraftDeleteManyRes)
|
|
66
66
|
*
|
|
67
67
|
* @param {Chrt.shipping.OrdersDraftDeleteManyReq} request
|
|
68
68
|
* @param {OrderDrafts.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -74,7 +74,7 @@ export declare class OrderDrafts {
|
|
|
74
74
|
* order_ids: ["order_ids"]
|
|
75
75
|
* })
|
|
76
76
|
*/
|
|
77
|
-
deleteManyV1(request: Chrt.shipping.OrdersDraftDeleteManyReq, requestOptions?: OrderDrafts.RequestOptions): core.HttpResponsePromise<
|
|
77
|
+
deleteManyV1(request: Chrt.shipping.OrdersDraftDeleteManyReq, requestOptions?: OrderDrafts.RequestOptions): core.HttpResponsePromise<Chrt.OrdersDraftDeleteManyRes>;
|
|
78
78
|
private __deleteManyV1;
|
|
79
79
|
/**
|
|
80
80
|
* Converts an order screenshot into lightly structured text for the AI order builder. | authz: min_org_role=operator | (UploadFile) -> (str)
|
|
@@ -93,7 +93,7 @@ export declare class OrderDrafts {
|
|
|
93
93
|
imageToTextV1(request: Chrt.shipping.BodyPostShippingOrderDraftsImageToTextV1, requestOptions?: OrderDrafts.RequestOptions): core.HttpResponsePromise<string>;
|
|
94
94
|
private __imageToTextV1;
|
|
95
95
|
/**
|
|
96
|
-
* Creates a new draft order with org assignments based on caller's organization type. | (OrdersNewDraftReq) -> (OrdersNewDraftRes)
|
|
96
|
+
* Creates a new draft order with org assignments based on caller's organization type. | authz: min_org_role=operator | (OrdersNewDraftReq) -> (OrdersNewDraftRes)
|
|
97
97
|
*
|
|
98
98
|
* @param {Chrt.shipping.OrdersNewDraftReq} request
|
|
99
99
|
* @param {OrderDrafts.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -138,7 +138,7 @@ export declare class OrderDrafts {
|
|
|
138
138
|
typeaheadV1(request: Chrt.shipping.OrderDraftsTypeaheadV1Request, requestOptions?: OrderDrafts.RequestOptions): core.HttpResponsePromise<Chrt.OrderTypeaheadResult[]>;
|
|
139
139
|
private __typeaheadV1;
|
|
140
140
|
/**
|
|
141
|
-
* Updates coordinator and/or shipper org assignments for a draft order. | (OrdersDraftUpdateReq) -> (OrdersDraftUpdateRes)
|
|
141
|
+
* Updates coordinator and/or shipper org assignments for a draft order. | authz_personas=[draft_creator_org_operator] | (OrdersDraftUpdateReq) -> (OrdersDraftUpdateRes)
|
|
142
142
|
*
|
|
143
143
|
* @param {string} orderId
|
|
144
144
|
* @param {Chrt.shipping.OrdersDraftUpdateReq} request
|
|
@@ -50,7 +50,7 @@ export class OrderDrafts {
|
|
|
50
50
|
return ((_a = this._taskGroup) !== null && _a !== void 0 ? _a : (this._taskGroup = new TaskGroup(this._options)));
|
|
51
51
|
}
|
|
52
52
|
/**
|
|
53
|
-
* Deletes a draft order and all associated entities. | () -> (bool)
|
|
53
|
+
* Deletes a draft order and all associated entities. | authz_personas=[draft_creator_org_operator] | () -> (bool)
|
|
54
54
|
*
|
|
55
55
|
* @param {string} orderId
|
|
56
56
|
* @param {OrderDrafts.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -109,7 +109,7 @@ export class OrderDrafts {
|
|
|
109
109
|
});
|
|
110
110
|
}
|
|
111
111
|
/**
|
|
112
|
-
* Deletes multiple draft orders and associated entities. | (OrdersDraftDeleteManyReq) -> (
|
|
112
|
+
* Deletes multiple draft orders and associated entities, skipping drafts with billing links. | authz_personas=[draft_creator_org_operator] | (OrdersDraftDeleteManyReq) -> (OrdersDraftDeleteManyRes)
|
|
113
113
|
*
|
|
114
114
|
* @param {Chrt.shipping.OrdersDraftDeleteManyReq} request
|
|
115
115
|
* @param {OrderDrafts.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -241,7 +241,7 @@ export class OrderDrafts {
|
|
|
241
241
|
});
|
|
242
242
|
}
|
|
243
243
|
/**
|
|
244
|
-
* Creates a new draft order with org assignments based on caller's organization type. | (OrdersNewDraftReq) -> (OrdersNewDraftRes)
|
|
244
|
+
* Creates a new draft order with org assignments based on caller's organization type. | authz: min_org_role=operator | (OrdersNewDraftReq) -> (OrdersNewDraftRes)
|
|
245
245
|
*
|
|
246
246
|
* @param {Chrt.shipping.OrdersNewDraftReq} request
|
|
247
247
|
* @param {OrderDrafts.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -436,7 +436,7 @@ export class OrderDrafts {
|
|
|
436
436
|
});
|
|
437
437
|
}
|
|
438
438
|
/**
|
|
439
|
-
* Updates coordinator and/or shipper org assignments for a draft order. | (OrdersDraftUpdateReq) -> (OrdersDraftUpdateRes)
|
|
439
|
+
* Updates coordinator and/or shipper org assignments for a draft order. | authz_personas=[draft_creator_org_operator] | (OrdersDraftUpdateReq) -> (OrdersDraftUpdateRes)
|
|
440
440
|
*
|
|
441
441
|
* @param {string} orderId
|
|
442
442
|
* @param {Chrt.shipping.OrdersDraftUpdateReq} request
|
|
@@ -13,8 +13,6 @@ export interface OrdersNewDraftReq {
|
|
|
13
13
|
/** Optional key, unique per caller org, that makes draft creation idempotent: re-sending the same key returns the already-created draft instead of creating a duplicate. */
|
|
14
14
|
creation_idempotency_key?: string | null;
|
|
15
15
|
department_id?: string | null;
|
|
16
|
-
/** If set, pins the first applied OperationsTask's deadline; later from_previous_task entries cascade from it. None anchors the chain to the apply time (now). */
|
|
17
|
-
initial_deadline_timestamp?: string | null;
|
|
18
16
|
/** Must be a URL-safe string of 1-64 characters. Allowed characters: A-Z, a-z, 0-9, '.', '_', '~', '-' (RFC 3986 unreserved). */
|
|
19
17
|
off_chrt_reference_id?: string | null;
|
|
20
18
|
off_chrt_shipper_org_id?: string | null;
|
|
@@ -24,6 +22,8 @@ export interface OrdersNewDraftReq {
|
|
|
24
22
|
order_thread_shipping_turn?: Chrt.ShippingTurnClientCreate1 | null;
|
|
25
23
|
/** Must be a string starting with `org_` */
|
|
26
24
|
shipper_org_id?: string | null;
|
|
27
|
-
/** OperationsTaskList
|
|
28
|
-
|
|
25
|
+
/** OperationsTaskList applications to apply to the coordinator's Case at order creation, each with its own optional first-deadline pin. */
|
|
26
|
+
task_lists_to_apply_at_order_creation?: Chrt.TaskListToApplyToCase1[];
|
|
27
|
+
/** OperationsTaskList applications to copy onto the coordinator's Case for deferred application when the draft order is staged. */
|
|
28
|
+
task_lists_to_apply_at_order_staging?: Chrt.TaskListToApplyToCase1[];
|
|
29
29
|
}
|
|
@@ -81,7 +81,8 @@ export declare class OrderTemplates {
|
|
|
81
81
|
* filter_case_tag: "filter_case_tag",
|
|
82
82
|
* filter_driver_id: "filter_driver_id",
|
|
83
83
|
* filter_directory_entry_id: "filter_directory_entry_id",
|
|
84
|
-
*
|
|
84
|
+
* filter_task_lists_to_apply_at_order_creation_task_list_id: "filter_task_lists_to_apply_at_order_creation_task_list_id",
|
|
85
|
+
* filter_task_lists_to_apply_at_order_staging_task_list_id: "filter_task_lists_to_apply_at_order_staging_task_list_id",
|
|
85
86
|
* filter_created_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
86
87
|
* filter_created_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
87
88
|
* filter_last_edited_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
@@ -162,7 +162,8 @@ export class OrderTemplates {
|
|
|
162
162
|
* filter_case_tag: "filter_case_tag",
|
|
163
163
|
* filter_driver_id: "filter_driver_id",
|
|
164
164
|
* filter_directory_entry_id: "filter_directory_entry_id",
|
|
165
|
-
*
|
|
165
|
+
* filter_task_lists_to_apply_at_order_creation_task_list_id: "filter_task_lists_to_apply_at_order_creation_task_list_id",
|
|
166
|
+
* filter_task_lists_to_apply_at_order_staging_task_list_id: "filter_task_lists_to_apply_at_order_staging_task_list_id",
|
|
166
167
|
* filter_created_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
167
168
|
* filter_created_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
168
169
|
* filter_last_edited_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
@@ -177,7 +178,7 @@ export class OrderTemplates {
|
|
|
177
178
|
__listV1() {
|
|
178
179
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
179
180
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
180
|
-
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_archived: filterArchived, filter_owned_by_user_id: filterOwnedByUserId, filter_off_chrt_reference_id_str: filterOffChrtReferenceIdStr, filter_shipper_org_id: filterShipperOrgId, filter_off_chrt_shipper_org_id: filterOffChrtShipperOrgId, filter_coordinator_org_id: filterCoordinatorOrgId, filter_department_id: filterDepartmentId, filter_case_tag: filterCaseTag, filter_driver_id: filterDriverId, filter_directory_entry_id: filterDirectoryEntryId,
|
|
181
|
+
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_archived: filterArchived, filter_owned_by_user_id: filterOwnedByUserId, filter_off_chrt_reference_id_str: filterOffChrtReferenceIdStr, filter_shipper_org_id: filterShipperOrgId, filter_off_chrt_shipper_org_id: filterOffChrtShipperOrgId, filter_coordinator_org_id: filterCoordinatorOrgId, filter_department_id: filterDepartmentId, filter_case_tag: filterCaseTag, filter_driver_id: filterDriverId, filter_directory_entry_id: filterDirectoryEntryId, filter_task_lists_to_apply_at_order_creation_task_list_id: filterTaskListsToApplyAtOrderCreationTaskListId, filter_task_lists_to_apply_at_order_staging_task_list_id: filterTaskListsToApplyAtOrderStagingTaskListId, filter_created_at_timestamp_gte: filterCreatedAtTimestampGte, filter_created_at_timestamp_lte: filterCreatedAtTimestampLte, filter_last_edited_at_timestamp_gte: filterLastEditedAtTimestampGte, filter_last_edited_at_timestamp_lte: filterLastEditedAtTimestampLte, filter_last_used_at_timestamp_gte: filterLastUsedAtTimestampGte, filter_last_used_at_timestamp_lte: filterLastUsedAtTimestampLte, } = request;
|
|
181
182
|
const _queryParams = {};
|
|
182
183
|
if (sortBy !== undefined) {
|
|
183
184
|
_queryParams["sort_by"] = sortBy;
|
|
@@ -224,8 +225,13 @@ export class OrderTemplates {
|
|
|
224
225
|
if (filterDirectoryEntryId !== undefined) {
|
|
225
226
|
_queryParams["filter_directory_entry_id"] = filterDirectoryEntryId;
|
|
226
227
|
}
|
|
227
|
-
if (
|
|
228
|
-
_queryParams["
|
|
228
|
+
if (filterTaskListsToApplyAtOrderCreationTaskListId !== undefined) {
|
|
229
|
+
_queryParams["filter_task_lists_to_apply_at_order_creation_task_list_id"] =
|
|
230
|
+
filterTaskListsToApplyAtOrderCreationTaskListId;
|
|
231
|
+
}
|
|
232
|
+
if (filterTaskListsToApplyAtOrderStagingTaskListId !== undefined) {
|
|
233
|
+
_queryParams["filter_task_lists_to_apply_at_order_staging_task_list_id"] =
|
|
234
|
+
filterTaskListsToApplyAtOrderStagingTaskListId;
|
|
229
235
|
}
|
|
230
236
|
if (filterCreatedAtTimestampGte !== undefined) {
|
|
231
237
|
_queryParams["filter_created_at_timestamp_gte"] = filterCreatedAtTimestampGte;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as Chrt from "../../../../../../index.mjs";
|
|
4
5
|
/**
|
|
5
6
|
* @example
|
|
6
7
|
* {
|
|
@@ -18,11 +19,13 @@ export interface OrderTemplateClientCreate1 {
|
|
|
18
19
|
driver_ids?: string[];
|
|
19
20
|
executor_org_ids?: string[];
|
|
20
21
|
name: string;
|
|
22
|
+
off_chrt_executor_org_ids?: string[];
|
|
21
23
|
off_chrt_reference_id_str?: string | null;
|
|
22
24
|
off_chrt_shipper_org_id?: string | null;
|
|
23
25
|
schema_version: number;
|
|
24
26
|
/** Must be a string starting with `org_` */
|
|
25
27
|
shipper_org_id?: string | null;
|
|
26
|
-
|
|
28
|
+
task_lists_to_apply_at_order_creation?: Chrt.TaskListToApplyToCase1[];
|
|
29
|
+
task_lists_to_apply_at_order_staging?: Chrt.TaskListToApplyToCase1[];
|
|
27
30
|
text?: string | null;
|
|
28
31
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as Chrt from "../../../../../../index.mjs";
|
|
4
5
|
/**
|
|
5
6
|
* @example
|
|
6
7
|
* {}
|
|
@@ -19,6 +20,7 @@ export interface OrderTemplateClientUpdate1 {
|
|
|
19
20
|
driver_ids?: string[];
|
|
20
21
|
executor_org_ids?: string[];
|
|
21
22
|
name?: string | null;
|
|
23
|
+
off_chrt_executor_org_ids?: string[];
|
|
22
24
|
off_chrt_reference_id_str?: string | null;
|
|
23
25
|
off_chrt_reference_id_str__set_to_None?: boolean;
|
|
24
26
|
off_chrt_shipper_org_id?: string | null;
|
|
@@ -26,7 +28,8 @@ export interface OrderTemplateClientUpdate1 {
|
|
|
26
28
|
/** Must be a string starting with `org_` */
|
|
27
29
|
shipper_org_id?: string | null;
|
|
28
30
|
shipper_org_id__set_to_None?: boolean;
|
|
29
|
-
|
|
31
|
+
task_lists_to_apply_at_order_creation?: Chrt.TaskListToApplyToCase1[];
|
|
32
|
+
task_lists_to_apply_at_order_staging?: Chrt.TaskListToApplyToCase1[];
|
|
30
33
|
text?: string | null;
|
|
31
34
|
text__set_to_None?: boolean;
|
|
32
35
|
}
|
|
@@ -20,7 +20,8 @@ import * as Chrt from "../../../../../../index.mjs";
|
|
|
20
20
|
* filter_case_tag: "filter_case_tag",
|
|
21
21
|
* filter_driver_id: "filter_driver_id",
|
|
22
22
|
* filter_directory_entry_id: "filter_directory_entry_id",
|
|
23
|
-
*
|
|
23
|
+
* filter_task_lists_to_apply_at_order_creation_task_list_id: "filter_task_lists_to_apply_at_order_creation_task_list_id",
|
|
24
|
+
* filter_task_lists_to_apply_at_order_staging_task_list_id: "filter_task_lists_to_apply_at_order_staging_task_list_id",
|
|
24
25
|
* filter_created_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
25
26
|
* filter_created_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
26
27
|
* filter_last_edited_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
@@ -58,8 +59,10 @@ export interface OrderTemplatesListV1Request {
|
|
|
58
59
|
filter_driver_id?: string | null;
|
|
59
60
|
/** Filter by directory entry ID included in the template. */
|
|
60
61
|
filter_directory_entry_id?: string | null;
|
|
61
|
-
/** Filter by task list ID included in
|
|
62
|
-
|
|
62
|
+
/** Filter by task list ID included in order-creation applications. */
|
|
63
|
+
filter_task_lists_to_apply_at_order_creation_task_list_id?: string | null;
|
|
64
|
+
/** Filter by task list ID included in staging applications. */
|
|
65
|
+
filter_task_lists_to_apply_at_order_staging_task_list_id?: string | null;
|
|
63
66
|
/** Filter created_at_timestamp >= value (inclusive). */
|
|
64
67
|
filter_created_at_timestamp_gte?: string | null;
|
|
65
68
|
/** Filter created_at_timestamp <= value (inclusive). */
|
|
@@ -62,7 +62,7 @@ export declare class Orders {
|
|
|
62
62
|
cancelManyV1(request: Chrt.shipping.OrdersCancelManyReq, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
63
63
|
private __cancelManyV1;
|
|
64
64
|
/**
|
|
65
|
-
* Validates a draft order and stages all related entities in a transaction. | () -> (bool)
|
|
65
|
+
* Validates a draft order and stages all related entities in a transaction. | authz_personas=[draft_creator_org_operator] | () -> (bool)
|
|
66
66
|
*
|
|
67
67
|
* @param {string} orderId
|
|
68
68
|
* @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -148,7 +148,7 @@ export class Orders {
|
|
|
148
148
|
});
|
|
149
149
|
}
|
|
150
150
|
/**
|
|
151
|
-
* Validates a draft order and stages all related entities in a transaction. | () -> (bool)
|
|
151
|
+
* Validates a draft order and stages all related entities in a transaction. | authz_personas=[draft_creator_org_operator] | () -> (bool)
|
|
152
152
|
*
|
|
153
153
|
* @param {string} orderId
|
|
154
154
|
* @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
|