@chrt-inc/typescript-sdk 1.853.0 → 1.861.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/shipping/resources/orderDrafts/client/requests/OrdersNewDraftReq.d.ts +8 -4
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/cargo/client/requests/OrderDraftAddCargoReq.d.ts +0 -1
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/task/client/requests/OrderDraftAddTaskReqV1.d.ts +0 -1
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskArtifact/client/requests/OrderDraftAddTaskArtifactReq.d.ts +0 -1
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftAddTaskGroupReq.d.ts +0 -1
- package/dist/cjs/api/resources/shipping/resources/orderSchedules/client/Client.d.ts +0 -3
- package/dist/cjs/api/resources/shipping/resources/orderSchedules/client/Client.js +0 -5
- package/dist/cjs/api/resources/shipping/resources/orderSchedules/resources/draft/client/requests/OrderScheduleClientCreate1.d.ts +2 -1
- package/dist/cjs/api/resources/shipping/resources/orderSchedules/resources/draft/client/requests/OrderScheduleClientUpdate1.d.ts +2 -1
- package/dist/cjs/api/resources/shipping/resources/orderSchedules/resources/index.d.ts +0 -1
- package/dist/cjs/api/resources/shipping/resources/orderSchedules/resources/index.js +1 -2
- 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 +3 -1
- package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientUpdate1.d.ts +3 -1
- package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplatesListV1Request.d.ts +6 -3
- package/dist/cjs/api/types/Cargo1.d.ts +0 -1
- package/dist/cjs/api/types/Case1.d.ts +1 -0
- package/dist/cjs/api/types/OrderBuilderReq.d.ts +0 -2
- package/dist/cjs/api/types/OrderSchedule1.d.ts +2 -1
- package/dist/cjs/api/types/OrderScheduleBuildSeedRes.d.ts +10 -0
- package/dist/cjs/api/types/OrderTemplate1.d.ts +3 -1
- package/dist/cjs/api/types/OrderTemplateCore1.d.ts +3 -1
- package/dist/cjs/api/types/OrderTemplateReferencesExpanded1.d.ts +12 -0
- package/dist/cjs/api/types/Task1.d.ts +0 -1
- package/dist/cjs/api/types/TaskArtifact1.d.ts +0 -1
- package/dist/cjs/api/types/TaskGroup1.d.ts +0 -1
- package/dist/cjs/api/types/TaskListToApplyToCase1.d.ts +7 -0
- package/dist/cjs/api/types/index.d.ts +3 -8
- package/dist/cjs/api/types/index.js +3 -8
- 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/shipping/resources/orderDrafts/client/requests/OrdersNewDraftReq.d.mts +8 -4
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/cargo/client/requests/OrderDraftAddCargoReq.d.mts +0 -1
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/task/client/requests/OrderDraftAddTaskReqV1.d.mts +0 -1
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskArtifact/client/requests/OrderDraftAddTaskArtifactReq.d.mts +0 -1
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftAddTaskGroupReq.d.mts +0 -1
- package/dist/esm/api/resources/shipping/resources/orderSchedules/client/Client.d.mts +0 -3
- package/dist/esm/api/resources/shipping/resources/orderSchedules/client/Client.mjs +0 -5
- package/dist/esm/api/resources/shipping/resources/orderSchedules/resources/draft/client/requests/OrderScheduleClientCreate1.d.mts +2 -1
- package/dist/esm/api/resources/shipping/resources/orderSchedules/resources/draft/client/requests/OrderScheduleClientUpdate1.d.mts +2 -1
- package/dist/esm/api/resources/shipping/resources/orderSchedules/resources/index.d.mts +0 -1
- package/dist/esm/api/resources/shipping/resources/orderSchedules/resources/index.mjs +0 -1
- 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 +3 -1
- package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientUpdate1.d.mts +3 -1
- package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplatesListV1Request.d.mts +6 -3
- package/dist/esm/api/types/Cargo1.d.mts +0 -1
- package/dist/esm/api/types/Case1.d.mts +1 -0
- package/dist/esm/api/types/OrderBuilderReq.d.mts +0 -2
- package/dist/esm/api/types/OrderSchedule1.d.mts +2 -1
- package/dist/esm/api/types/OrderScheduleBuildSeedRes.d.mts +10 -0
- package/dist/esm/api/types/OrderTemplate1.d.mts +3 -1
- package/dist/esm/api/types/OrderTemplateCore1.d.mts +3 -1
- package/dist/esm/api/types/OrderTemplateReferencesExpanded1.d.mts +12 -0
- package/dist/esm/api/types/Task1.d.mts +0 -1
- package/dist/esm/api/types/TaskArtifact1.d.mts +0 -1
- package/dist/esm/api/types/TaskGroup1.d.mts +0 -1
- package/dist/esm/api/types/TaskListToApplyToCase1.d.mts +7 -0
- package/dist/esm/api/types/index.d.mts +3 -8
- package/dist/esm/api/types/index.mjs +3 -8
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +155 -67
- package/dist/cjs/api/resources/shipping/resources/orderSchedules/resources/orderManifest/client/Client.d.ts +0 -47
- package/dist/cjs/api/resources/shipping/resources/orderSchedules/resources/orderManifest/client/Client.js +0 -130
- package/dist/cjs/api/resources/shipping/resources/orderSchedules/resources/orderManifest/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/shipping/resources/orderSchedules/resources/orderManifest/client/index.js +0 -2
- package/dist/cjs/api/resources/shipping/resources/orderSchedules/resources/orderManifest/index.d.ts +0 -1
- package/dist/cjs/api/resources/shipping/resources/orderSchedules/resources/orderManifest/index.js +0 -17
- package/dist/cjs/api/types/CargoManifest1.d.ts +0 -25
- package/dist/cjs/api/types/OrderManifest1.d.ts +0 -19
- package/dist/cjs/api/types/OrderManifestValidationRequirements.d.ts +0 -14
- package/dist/cjs/api/types/OrderManifestValidationResult.d.ts +0 -8
- package/dist/cjs/api/types/OrderManifestValidationResult.js +0 -5
- package/dist/cjs/api/types/ScheduledOrdersNewDraftReq.d.ts +0 -9
- package/dist/cjs/api/types/ScheduledOrdersNewDraftReq.js +0 -5
- package/dist/cjs/api/types/TaskGroupManifest1.d.ts +0 -15
- package/dist/cjs/api/types/TaskGroupManifest1.js +0 -5
- package/dist/cjs/api/types/TaskManifest1.d.ts +0 -26
- package/dist/cjs/api/types/TaskManifest1.js +0 -5
- package/dist/cjs/api/types/TimeWindow1.d.ts +0 -7
- package/dist/cjs/api/types/TimeWindow1.js +0 -5
- package/dist/esm/api/resources/shipping/resources/orderSchedules/resources/orderManifest/client/Client.d.mts +0 -47
- package/dist/esm/api/resources/shipping/resources/orderSchedules/resources/orderManifest/client/Client.mjs +0 -93
- package/dist/esm/api/resources/shipping/resources/orderSchedules/resources/orderManifest/client/index.d.mts +0 -1
- package/dist/esm/api/resources/shipping/resources/orderSchedules/resources/orderManifest/client/index.mjs +0 -1
- package/dist/esm/api/resources/shipping/resources/orderSchedules/resources/orderManifest/index.d.mts +0 -1
- package/dist/esm/api/resources/shipping/resources/orderSchedules/resources/orderManifest/index.mjs +0 -1
- package/dist/esm/api/types/CargoManifest1.d.mts +0 -25
- package/dist/esm/api/types/OrderManifest1.d.mts +0 -19
- package/dist/esm/api/types/OrderManifestValidationRequirements.d.mts +0 -14
- package/dist/esm/api/types/OrderManifestValidationResult.d.mts +0 -8
- package/dist/esm/api/types/OrderManifestValidationResult.mjs +0 -4
- package/dist/esm/api/types/ScheduledOrdersNewDraftReq.d.mts +0 -9
- package/dist/esm/api/types/ScheduledOrdersNewDraftReq.mjs +0 -4
- package/dist/esm/api/types/TaskGroupManifest1.d.mts +0 -15
- package/dist/esm/api/types/TaskGroupManifest1.mjs +0 -4
- package/dist/esm/api/types/TaskManifest1.d.mts +0 -26
- package/dist/esm/api/types/TaskManifest1.mjs +0 -4
- package/dist/esm/api/types/TimeWindow1.d.mts +0 -7
- package/dist/esm/api/types/TimeWindow1.mjs +0 -4
- /package/dist/cjs/api/types/{CargoManifest1.js → OrderScheduleBuildSeedRes.js} +0 -0
- /package/dist/cjs/api/types/{OrderManifest1.js → OrderTemplateReferencesExpanded1.js} +0 -0
- /package/dist/cjs/api/types/{OrderManifestValidationRequirements.js → TaskListToApplyToCase1.js} +0 -0
- /package/dist/esm/api/types/{CargoManifest1.mjs → OrderScheduleBuildSeedRes.mjs} +0 -0
- /package/dist/esm/api/types/{OrderManifest1.mjs → OrderTemplateReferencesExpanded1.mjs} +0 -0
- /package/dist/esm/api/types/{OrderManifestValidationRequirements.mjs → TaskListToApplyToCase1.mjs} +0 -0
|
@@ -52,7 +52,6 @@ export * from "./CargoByDriverDataPointMetadata1.js";
|
|
|
52
52
|
export * from "./CargoByDriverSharingSettings1.js";
|
|
53
53
|
export * from "./CargoClientCreate1.js";
|
|
54
54
|
export * from "./CargoClientUpdate1.js";
|
|
55
|
-
export * from "./CargoManifest1.js";
|
|
56
55
|
export * from "./CargoOnFlightRateSheet1.js";
|
|
57
56
|
export * from "./CargoOnFlightRateSheetListRes.js";
|
|
58
57
|
export * from "./CargoOnFlightTaskActionEnum1.js";
|
|
@@ -276,11 +275,9 @@ export * from "./OrderGroupExpandedRow.js";
|
|
|
276
275
|
export * from "./OrderGroupExpandedSortByEnum.js";
|
|
277
276
|
export * from "./OrderGroupListRes.js";
|
|
278
277
|
export * from "./OrderGroupSortByEnum.js";
|
|
279
|
-
export * from "./OrderManifest1.js";
|
|
280
|
-
export * from "./OrderManifestValidationRequirements.js";
|
|
281
|
-
export * from "./OrderManifestValidationResult.js";
|
|
282
278
|
export * from "./OrderSchedule1.js";
|
|
283
279
|
export * from "./OrderScheduleAboutRes.js";
|
|
280
|
+
export * from "./OrderScheduleBuildSeedRes.js";
|
|
284
281
|
export * from "./OrderScheduleListRes.js";
|
|
285
282
|
export * from "./OrderScheduleOrchestratorScheduleActionResult.js";
|
|
286
283
|
export * from "./OrderScheduleOrchestratorScheduleStatus.js";
|
|
@@ -295,6 +292,7 @@ export * from "./OrderTemplateExpanded1.js";
|
|
|
295
292
|
export * from "./OrderTemplateListRes.js";
|
|
296
293
|
export * from "./OrderTemplateOrgInfo1.js";
|
|
297
294
|
export * from "./OrderTemplateReferenceColumnEnum1.js";
|
|
295
|
+
export * from "./OrderTemplateReferencesExpanded1.js";
|
|
298
296
|
export * from "./OrderTemplateResolvabilityRes.js";
|
|
299
297
|
export * from "./OrderTemplateSortByEnum.js";
|
|
300
298
|
export * from "./OrderTypeaheadFieldEnum.js";
|
|
@@ -341,7 +339,6 @@ export * from "./ScanPayloadKindEnum.js";
|
|
|
341
339
|
export * from "./ScheduleCalendarSpec.js";
|
|
342
340
|
export * from "./ScheduleIntervalSpec.js";
|
|
343
341
|
export * from "./ScheduleRange.js";
|
|
344
|
-
export * from "./ScheduledOrdersNewDraftReq.js";
|
|
345
342
|
export * from "./Session1.js";
|
|
346
343
|
export * from "./SessionByDeviceDataPoint1.js";
|
|
347
344
|
export * from "./SessionByDeviceDataPointMetadata1.js";
|
|
@@ -401,7 +398,6 @@ export * from "./TaskGroupByDriverDataPointMetadata1.js";
|
|
|
401
398
|
export * from "./TaskGroupByDriverSharingSettings1.js";
|
|
402
399
|
export * from "./TaskGroupExpanded.js";
|
|
403
400
|
export * from "./TaskGroupExpandedListRes.js";
|
|
404
|
-
export * from "./TaskGroupManifest1.js";
|
|
405
401
|
export * from "./TaskGroupMessage1.js";
|
|
406
402
|
export * from "./TaskGroupQuoteResp.js";
|
|
407
403
|
export * from "./TaskGroupS3ObjectMetadata1.js";
|
|
@@ -410,13 +406,12 @@ export * from "./TaskGroupStatusEnum1.js";
|
|
|
410
406
|
export * from "./TaskGroupTypeEnum1.js";
|
|
411
407
|
export * from "./TaskGroupTypeaheadFieldEnum.js";
|
|
412
408
|
export * from "./TaskGroupTypeaheadResult.js";
|
|
413
|
-
export * from "./
|
|
409
|
+
export * from "./TaskListToApplyToCase1.js";
|
|
414
410
|
export * from "./TaskStatusEnum1.js";
|
|
415
411
|
export * from "./TaskWaitTimeGeofenceRes.js";
|
|
416
412
|
export * from "./TemplateRes.js";
|
|
417
413
|
export * from "./TimeBucket.js";
|
|
418
414
|
export * from "./TimeGranularity.js";
|
|
419
|
-
export * from "./TimeWindow1.js";
|
|
420
415
|
export * from "./TimezoneEnum.js";
|
|
421
416
|
export * from "./TimezoneResponse.js";
|
|
422
417
|
export * from "./TiveDataPoint1.js";
|
|
@@ -68,7 +68,6 @@ __exportStar(require("./CargoByDriverDataPointMetadata1.js"), exports);
|
|
|
68
68
|
__exportStar(require("./CargoByDriverSharingSettings1.js"), exports);
|
|
69
69
|
__exportStar(require("./CargoClientCreate1.js"), exports);
|
|
70
70
|
__exportStar(require("./CargoClientUpdate1.js"), exports);
|
|
71
|
-
__exportStar(require("./CargoManifest1.js"), exports);
|
|
72
71
|
__exportStar(require("./CargoOnFlightRateSheet1.js"), exports);
|
|
73
72
|
__exportStar(require("./CargoOnFlightRateSheetListRes.js"), exports);
|
|
74
73
|
__exportStar(require("./CargoOnFlightTaskActionEnum1.js"), exports);
|
|
@@ -292,11 +291,9 @@ __exportStar(require("./OrderGroupExpandedRow.js"), exports);
|
|
|
292
291
|
__exportStar(require("./OrderGroupExpandedSortByEnum.js"), exports);
|
|
293
292
|
__exportStar(require("./OrderGroupListRes.js"), exports);
|
|
294
293
|
__exportStar(require("./OrderGroupSortByEnum.js"), exports);
|
|
295
|
-
__exportStar(require("./OrderManifest1.js"), exports);
|
|
296
|
-
__exportStar(require("./OrderManifestValidationRequirements.js"), exports);
|
|
297
|
-
__exportStar(require("./OrderManifestValidationResult.js"), exports);
|
|
298
294
|
__exportStar(require("./OrderSchedule1.js"), exports);
|
|
299
295
|
__exportStar(require("./OrderScheduleAboutRes.js"), exports);
|
|
296
|
+
__exportStar(require("./OrderScheduleBuildSeedRes.js"), exports);
|
|
300
297
|
__exportStar(require("./OrderScheduleListRes.js"), exports);
|
|
301
298
|
__exportStar(require("./OrderScheduleOrchestratorScheduleActionResult.js"), exports);
|
|
302
299
|
__exportStar(require("./OrderScheduleOrchestratorScheduleStatus.js"), exports);
|
|
@@ -311,6 +308,7 @@ __exportStar(require("./OrderTemplateExpanded1.js"), exports);
|
|
|
311
308
|
__exportStar(require("./OrderTemplateListRes.js"), exports);
|
|
312
309
|
__exportStar(require("./OrderTemplateOrgInfo1.js"), exports);
|
|
313
310
|
__exportStar(require("./OrderTemplateReferenceColumnEnum1.js"), exports);
|
|
311
|
+
__exportStar(require("./OrderTemplateReferencesExpanded1.js"), exports);
|
|
314
312
|
__exportStar(require("./OrderTemplateResolvabilityRes.js"), exports);
|
|
315
313
|
__exportStar(require("./OrderTemplateSortByEnum.js"), exports);
|
|
316
314
|
__exportStar(require("./OrderTypeaheadFieldEnum.js"), exports);
|
|
@@ -357,7 +355,6 @@ __exportStar(require("./ScanPayloadKindEnum.js"), exports);
|
|
|
357
355
|
__exportStar(require("./ScheduleCalendarSpec.js"), exports);
|
|
358
356
|
__exportStar(require("./ScheduleIntervalSpec.js"), exports);
|
|
359
357
|
__exportStar(require("./ScheduleRange.js"), exports);
|
|
360
|
-
__exportStar(require("./ScheduledOrdersNewDraftReq.js"), exports);
|
|
361
358
|
__exportStar(require("./Session1.js"), exports);
|
|
362
359
|
__exportStar(require("./SessionByDeviceDataPoint1.js"), exports);
|
|
363
360
|
__exportStar(require("./SessionByDeviceDataPointMetadata1.js"), exports);
|
|
@@ -417,7 +414,6 @@ __exportStar(require("./TaskGroupByDriverDataPointMetadata1.js"), exports);
|
|
|
417
414
|
__exportStar(require("./TaskGroupByDriverSharingSettings1.js"), exports);
|
|
418
415
|
__exportStar(require("./TaskGroupExpanded.js"), exports);
|
|
419
416
|
__exportStar(require("./TaskGroupExpandedListRes.js"), exports);
|
|
420
|
-
__exportStar(require("./TaskGroupManifest1.js"), exports);
|
|
421
417
|
__exportStar(require("./TaskGroupMessage1.js"), exports);
|
|
422
418
|
__exportStar(require("./TaskGroupQuoteResp.js"), exports);
|
|
423
419
|
__exportStar(require("./TaskGroupS3ObjectMetadata1.js"), exports);
|
|
@@ -426,13 +422,12 @@ __exportStar(require("./TaskGroupStatusEnum1.js"), exports);
|
|
|
426
422
|
__exportStar(require("./TaskGroupTypeEnum1.js"), exports);
|
|
427
423
|
__exportStar(require("./TaskGroupTypeaheadFieldEnum.js"), exports);
|
|
428
424
|
__exportStar(require("./TaskGroupTypeaheadResult.js"), exports);
|
|
429
|
-
__exportStar(require("./
|
|
425
|
+
__exportStar(require("./TaskListToApplyToCase1.js"), exports);
|
|
430
426
|
__exportStar(require("./TaskStatusEnum1.js"), exports);
|
|
431
427
|
__exportStar(require("./TaskWaitTimeGeofenceRes.js"), exports);
|
|
432
428
|
__exportStar(require("./TemplateRes.js"), exports);
|
|
433
429
|
__exportStar(require("./TimeBucket.js"), exports);
|
|
434
430
|
__exportStar(require("./TimeGranularity.js"), exports);
|
|
435
|
-
__exportStar(require("./TimeWindow1.js"), exports);
|
|
436
431
|
__exportStar(require("./TimezoneEnum.js"), exports);
|
|
437
432
|
__exportStar(require("./TimezoneResponse.js"), exports);
|
|
438
433
|
__exportStar(require("./TiveDataPoint1.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.861.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.861.0",
|
|
25
|
+
"User-Agent": "@chrt-inc/typescript-sdk/1.861.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
|
|
@@ -13,17 +13,21 @@ 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;
|
|
19
|
+
/** Order schedule provenance for scheduled draft creation. */
|
|
20
|
+
order_schedule_id?: string | null;
|
|
21
|
+
/** Idempotency key for one scheduled order run. */
|
|
22
|
+
order_schedule_run_idempotency_key?: string | null;
|
|
21
23
|
/** Saved order template that seeded this draft. Used as template-build provenance. */
|
|
22
24
|
order_template_id?: string | null;
|
|
23
25
|
/** Seed content for the OrderThread's first user turn (text + long-lived references). Agentic builds supply it; click-ops leaves it None for a blank seed turn. */
|
|
24
26
|
order_thread_shipping_turn?: Chrt.ShippingTurnClientCreate1 | null;
|
|
25
27
|
/** Must be a string starting with `org_` */
|
|
26
28
|
shipper_org_id?: string | null;
|
|
27
|
-
/** OperationsTaskList
|
|
28
|
-
|
|
29
|
+
/** OperationsTaskList applications to apply to the coordinator's Case at order creation, each with its own optional first-deadline pin. */
|
|
30
|
+
task_lists_to_apply_at_order_creation?: Chrt.TaskListToApplyToCase1[];
|
|
31
|
+
/** OperationsTaskList applications to copy onto the coordinator's Case for deferred application when the draft order is staged. */
|
|
32
|
+
task_lists_to_apply_at_order_staging?: Chrt.TaskListToApplyToCase1[];
|
|
29
33
|
}
|
|
@@ -13,7 +13,6 @@ import * as Chrt from "../../../../../../../../index.mjs";
|
|
|
13
13
|
*/
|
|
14
14
|
export interface OrderDraftAddTaskReqV1 {
|
|
15
15
|
cargo_ids?: string[] | null;
|
|
16
|
-
order_schedule_template_path_idempotency_key?: string | null;
|
|
17
16
|
task: Chrt.TaskClientCreate1;
|
|
18
17
|
task_group_id: string;
|
|
19
18
|
}
|
|
@@ -11,7 +11,6 @@ import * as Chrt from "../../../../../../../../index.mjs";
|
|
|
11
11
|
*/
|
|
12
12
|
export interface OrderDraftAddTaskArtifactReq {
|
|
13
13
|
expected_scan_payloads?: string[];
|
|
14
|
-
order_schedule_template_path_idempotency_key?: string | null;
|
|
15
14
|
task_artifact_type: Chrt.TaskArtifactTypeEnum1;
|
|
16
15
|
task_id: string;
|
|
17
16
|
}
|
|
@@ -12,7 +12,6 @@ import * as Chrt from "../../../../../../../../index.mjs";
|
|
|
12
12
|
export interface OrderDraftAddTaskGroupReq {
|
|
13
13
|
flight_setup_notes?: string | null;
|
|
14
14
|
order_id: string;
|
|
15
|
-
order_schedule_template_path_idempotency_key?: string | null;
|
|
16
15
|
task_group_type: Chrt.TaskGroupTypeEnum1;
|
|
17
16
|
vehicle_type?: Chrt.VehicleTypeEnum | null;
|
|
18
17
|
}
|
|
@@ -5,7 +5,6 @@ import * as environments from "../../../../../../environments.mjs";
|
|
|
5
5
|
import * as core from "../../../../../../core/index.mjs";
|
|
6
6
|
import * as Chrt from "../../../../../index.mjs";
|
|
7
7
|
import { Draft } from "../resources/draft/client/Client.mjs";
|
|
8
|
-
import { OrderManifest } from "../resources/orderManifest/client/Client.mjs";
|
|
9
8
|
export declare namespace OrderSchedules {
|
|
10
9
|
interface Options {
|
|
11
10
|
environment?: core.Supplier<environments.ChrtEnvironment | string>;
|
|
@@ -32,10 +31,8 @@ export declare namespace OrderSchedules {
|
|
|
32
31
|
export declare class OrderSchedules {
|
|
33
32
|
protected readonly _options: OrderSchedules.Options;
|
|
34
33
|
protected _draft: Draft | undefined;
|
|
35
|
-
protected _orderManifest: OrderManifest | undefined;
|
|
36
34
|
constructor(_options?: OrderSchedules.Options);
|
|
37
35
|
get draft(): Draft;
|
|
38
|
-
get orderManifest(): OrderManifest;
|
|
39
36
|
/**
|
|
40
37
|
* Retrieves the generated order count and live orchestrator status from Temporal. | authz: min_org_role=operator | () -> (OrderScheduleAboutRes)
|
|
41
38
|
*
|
|
@@ -16,7 +16,6 @@ import * as Chrt from "../../../../../index.mjs";
|
|
|
16
16
|
import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../../../core/headers.mjs";
|
|
17
17
|
import * as errors from "../../../../../../errors/index.mjs";
|
|
18
18
|
import { Draft } from "../resources/draft/client/Client.mjs";
|
|
19
|
-
import { OrderManifest } from "../resources/orderManifest/client/Client.mjs";
|
|
20
19
|
export class OrderSchedules {
|
|
21
20
|
constructor(_options = {}) {
|
|
22
21
|
this._options = _options;
|
|
@@ -25,10 +24,6 @@ export class OrderSchedules {
|
|
|
25
24
|
var _a;
|
|
26
25
|
return ((_a = this._draft) !== null && _a !== void 0 ? _a : (this._draft = new Draft(this._options)));
|
|
27
26
|
}
|
|
28
|
-
get orderManifest() {
|
|
29
|
-
var _a;
|
|
30
|
-
return ((_a = this._orderManifest) !== null && _a !== void 0 ? _a : (this._orderManifest = new OrderManifest(this._options)));
|
|
31
|
-
}
|
|
32
27
|
/**
|
|
33
28
|
* Retrieves the generated order count and live orchestrator status from Temporal. | authz: min_org_role=operator | () -> (OrderScheduleAboutRes)
|
|
34
29
|
*
|
|
@@ -10,9 +10,10 @@ import * as Chrt from "../../../../../../../../index.mjs";
|
|
|
10
10
|
* }
|
|
11
11
|
*/
|
|
12
12
|
export interface OrderScheduleClientCreate1 {
|
|
13
|
+
auto_stage?: boolean;
|
|
13
14
|
description?: string | null;
|
|
14
15
|
name: string;
|
|
15
|
-
|
|
16
|
+
order_template_core?: Chrt.OrderTemplateCore1 | null;
|
|
16
17
|
schedule_spec?: Chrt.OrderScheduleSpec1 | null;
|
|
17
18
|
schema_version: number;
|
|
18
19
|
}
|
|
@@ -7,9 +7,10 @@ import * as Chrt from "../../../../../../../../index.mjs";
|
|
|
7
7
|
* {}
|
|
8
8
|
*/
|
|
9
9
|
export interface OrderScheduleClientUpdate1 {
|
|
10
|
+
auto_stage?: boolean | null;
|
|
10
11
|
description?: string | null;
|
|
11
12
|
description__set_to_None?: boolean;
|
|
12
13
|
name?: string | null;
|
|
13
|
-
|
|
14
|
+
order_template_core?: Chrt.OrderTemplateCore1 | null;
|
|
14
15
|
schedule_spec?: Chrt.OrderScheduleSpec1 | null;
|
|
15
16
|
}
|
|
@@ -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
|
* {
|
|
@@ -24,6 +25,7 @@ export interface OrderTemplateClientCreate1 {
|
|
|
24
25
|
schema_version: number;
|
|
25
26
|
/** Must be a string starting with `org_` */
|
|
26
27
|
shipper_org_id?: string | null;
|
|
27
|
-
|
|
28
|
+
task_lists_to_apply_at_order_creation?: Chrt.TaskListToApplyToCase1[];
|
|
29
|
+
task_lists_to_apply_at_order_staging?: Chrt.TaskListToApplyToCase1[];
|
|
28
30
|
text?: string | null;
|
|
29
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
|
* {}
|
|
@@ -27,7 +28,8 @@ export interface OrderTemplateClientUpdate1 {
|
|
|
27
28
|
/** Must be a string starting with `org_` */
|
|
28
29
|
shipper_org_id?: string | null;
|
|
29
30
|
shipper_org_id__set_to_None?: boolean;
|
|
30
|
-
|
|
31
|
+
task_lists_to_apply_at_order_creation?: Chrt.TaskListToApplyToCase1[];
|
|
32
|
+
task_lists_to_apply_at_order_staging?: Chrt.TaskListToApplyToCase1[];
|
|
31
33
|
text?: string | null;
|
|
32
34
|
text__set_to_None?: boolean;
|
|
33
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). */
|
|
@@ -21,7 +21,6 @@ export interface Cargo1 {
|
|
|
21
21
|
in_transit_at_timestamp?: string | null;
|
|
22
22
|
length_inches?: number | null;
|
|
23
23
|
order_id: string;
|
|
24
|
-
order_schedule_template_path_idempotency_key?: string | null;
|
|
25
24
|
order_short_id: string;
|
|
26
25
|
quantity?: number | null;
|
|
27
26
|
schema_version: number;
|
|
@@ -3,8 +3,6 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as Chrt from "../index.mjs";
|
|
5
5
|
export interface OrderBuilderReq {
|
|
6
|
-
/** Per-build pin for the first applied OperationsTask's deadline (later from_previous_task entries cascade from it). Kept off the template so saved templates don't carry a stale absolute time; None anchors the chain to the build time. */
|
|
7
|
-
initial_deadline_timestamp?: string | null;
|
|
8
6
|
order_template_core?: Chrt.OrderTemplateCore1 | null;
|
|
9
7
|
order_template_id?: string | null;
|
|
10
8
|
}
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
import * as Chrt from "../index.mjs";
|
|
5
5
|
export interface OrderSchedule1 {
|
|
6
6
|
_id: string;
|
|
7
|
+
auto_stage?: boolean;
|
|
7
8
|
created_at_timestamp: string;
|
|
8
9
|
description?: string | null;
|
|
9
10
|
intended_status?: Chrt.OrderScheduleStatusEnum1;
|
|
@@ -11,7 +12,7 @@ export interface OrderSchedule1 {
|
|
|
11
12
|
name: string;
|
|
12
13
|
orchestrator_schedule_id?: string | null;
|
|
13
14
|
orchestrator_schedule_paused?: boolean;
|
|
14
|
-
|
|
15
|
+
order_template_core?: Chrt.OrderTemplateCore1 | null;
|
|
15
16
|
/** Must be a string starting with `org_` */
|
|
16
17
|
owned_by_org_id: string;
|
|
17
18
|
owned_by_org_type: Chrt.OrgTypeEnum;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Chrt from "../index.mjs";
|
|
5
|
+
export interface OrderScheduleBuildSeedRes {
|
|
6
|
+
auto_stage?: boolean;
|
|
7
|
+
order_schedule_id: string;
|
|
8
|
+
order_template_core: Chrt.OrderTemplateCore1;
|
|
9
|
+
references_expanded: Chrt.OrderTemplateReferencesExpanded1;
|
|
10
|
+
}
|