@chrt-inc/typescript-sdk 1.734.0 → 1.749.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/operationsTasks/client/Client.d.ts +2 -29
- package/dist/cjs/api/resources/operations/resources/operationsTasks/client/Client.js +10 -124
- package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksListV1Request.d.ts +2 -3
- package/dist/cjs/api/resources/shipping/client/Client.d.ts +3 -0
- package/dist/cjs/api/resources/shipping/client/Client.js +9 -4
- package/dist/cjs/api/resources/shipping/resources/index.d.ts +2 -0
- package/dist/cjs/api/resources/shipping/resources/index.js +3 -1
- 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 +68 -0
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/requests/OrderDraftsTypeaheadV1Request.d.ts +16 -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/requests/OrderDraftAddCargoReq.d.ts +1 -1
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/expanded/client/Client.d.ts +0 -16
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/expanded/client/Client.js +0 -68
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/expanded/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/task/client/requests/OrderDraftAddTaskReqV1.d.ts +1 -1
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskArtifact/client/requests/OrderDraftAddTaskArtifactReq.d.ts +1 -1
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftAddTaskGroupReq.d.ts +1 -1
- package/dist/cjs/api/resources/shipping/resources/orderSchedules/client/Client.d.ts +25 -41
- package/dist/cjs/api/resources/shipping/resources/orderSchedules/client/Client.js +51 -125
- package/dist/cjs/api/resources/shipping/resources/orderSchedules/client/requests/OrderSchedulesListV1Request.d.ts +2 -4
- package/dist/cjs/api/resources/shipping/resources/orderSchedules/client/requests/index.d.ts +0 -2
- package/dist/cjs/api/resources/shipping/resources/orderSchedules/resources/draft/client/Client.d.ts +64 -0
- package/dist/cjs/api/resources/shipping/resources/orderSchedules/resources/draft/client/Client.js +196 -0
- package/dist/cjs/api/resources/shipping/resources/orderSchedules/resources/draft/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/shipping/resources/orderSchedules/resources/draft/client/index.js +17 -0
- package/dist/cjs/api/resources/shipping/resources/orderSchedules/{client → resources/draft/client}/requests/OrderScheduleClientCreate1.d.ts +4 -6
- package/dist/cjs/api/resources/shipping/resources/orderSchedules/{client → resources/draft/client}/requests/OrderScheduleClientUpdate1.d.ts +2 -2
- package/dist/cjs/api/resources/shipping/resources/orderSchedules/resources/draft/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/shipping/resources/orderSchedules/resources/draft/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/shipping/resources/orderSchedules/resources/draft/index.d.ts +1 -0
- package/dist/cjs/api/resources/shipping/resources/orderSchedules/resources/draft/index.js +17 -0
- package/dist/cjs/api/resources/shipping/resources/orderSchedules/resources/index.d.ts +2 -0
- package/dist/cjs/api/resources/shipping/resources/orderSchedules/resources/index.js +6 -1
- package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/Client.d.ts +170 -0
- package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/Client.js +662 -0
- package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/index.js +17 -0
- package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientCreate1.d.ts +23 -0
- package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientUpdate1.d.ts +24 -0
- package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateRemoveReferenceReq.d.ts +14 -0
- package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateRemoveReferenceReq.js +5 -0
- package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplatesListV1Request.d.ts +42 -0
- package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplatesListV1Request.js +5 -0
- package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/index.d.ts +4 -0
- package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/shipping/resources/orderTemplates/index.d.ts +1 -0
- package/dist/cjs/api/resources/shipping/resources/orderTemplates/index.js +17 -0
- package/dist/cjs/api/resources/shipping/resources/orders/client/Client.d.ts +16 -0
- package/dist/cjs/api/resources/shipping/resources/orders/client/Client.js +68 -0
- package/dist/cjs/api/resources/shipping/resources/{orderDrafts/resources/expanded/client/requests/ExpandedTypeaheadV1Request.d.ts → orders/client/requests/OrdersTypeaheadV1Request.d.ts} +1 -1
- package/dist/cjs/api/resources/shipping/resources/orders/client/requests/OrdersTypeaheadV1Request.js +5 -0
- package/dist/cjs/api/resources/shipping/resources/orders/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.ts +0 -16
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.js +0 -68
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/shipping/resources/taskGroups/client/Client.d.ts +16 -0
- package/dist/cjs/api/resources/shipping/resources/taskGroups/client/Client.js +68 -0
- package/dist/cjs/api/resources/shipping/resources/taskGroups/{resources/expanded/client/requests/ExpandedTypeaheadV1Request.d.ts → client/requests/TaskGroupsTypeaheadV1Request.d.ts} +1 -1
- package/dist/cjs/api/resources/shipping/resources/taskGroups/client/requests/TaskGroupsTypeaheadV1Request.js +5 -0
- package/dist/cjs/api/resources/shipping/resources/taskGroups/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.d.ts +0 -16
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.js +0 -68
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/types/Cargo1.d.ts +1 -3
- package/dist/cjs/api/types/CargoManifest1.d.ts +6 -0
- package/dist/cjs/api/types/OperationsTaskTypeEnum.d.ts +4 -2
- package/dist/cjs/api/types/OperationsTaskTypeEnum.js +3 -1
- package/dist/cjs/api/types/Order1.d.ts +1 -0
- package/dist/cjs/api/types/OrderManifest1.d.ts +2 -2
- package/dist/cjs/api/types/OrderSchedule1.d.ts +5 -7
- package/dist/cjs/api/types/OrderScheduleAboutRes.d.ts +0 -1
- package/dist/cjs/api/types/OrderScheduleOrchestratorScheduleStatus.d.ts +0 -1
- package/dist/cjs/api/types/OrderScheduleSortByEnum.d.ts +2 -2
- package/dist/cjs/api/types/OrderScheduleSortByEnum.js +1 -1
- package/dist/cjs/api/types/OrderScheduleSpec1.d.ts +11 -0
- package/dist/cjs/api/types/OrderScheduleSpec1.js +5 -0
- package/dist/cjs/api/types/OrderTemplate1.d.ts +24 -0
- package/dist/cjs/api/types/OrderTemplate1.js +5 -0
- package/dist/cjs/api/types/OrderTemplateExpanded.d.ts +12 -0
- package/dist/cjs/api/types/OrderTemplateExpanded.js +5 -0
- package/dist/cjs/api/types/OrderTemplateListRes.d.ts +8 -0
- package/dist/cjs/api/types/OrderTemplateListRes.js +5 -0
- package/dist/cjs/api/types/OrderTemplateOrgRef1.d.ts +10 -0
- package/dist/cjs/api/types/OrderTemplateOrgRef1.js +5 -0
- package/dist/cjs/api/types/OrderTemplateReferenceColumnEnum1.d.ts +11 -0
- package/dist/cjs/api/types/OrderTemplateReferenceColumnEnum1.js +13 -0
- package/dist/cjs/api/types/OrderTemplateSortByEnum.d.ts +9 -0
- package/dist/cjs/api/types/OrderTemplateSortByEnum.js +11 -0
- package/dist/cjs/api/types/OrderTypeaheadResult.d.ts +1 -1
- package/dist/cjs/api/types/OrderTypeaheadValue.d.ts +7 -0
- package/dist/cjs/api/types/OrderTypeaheadValue.js +5 -0
- package/dist/cjs/api/types/Task1.d.ts +2 -4
- package/dist/cjs/api/types/TaskArtifact1.d.ts +1 -3
- package/dist/cjs/api/types/TaskClientCreate1.d.ts +1 -1
- package/dist/cjs/api/types/TaskGroup1.d.ts +1 -3
- package/dist/cjs/api/types/TaskGroupManifest1.d.ts +1 -1
- package/dist/cjs/api/types/TaskManifest1.d.ts +13 -4
- package/dist/cjs/api/types/index.d.ts +8 -1
- package/dist/cjs/api/types/index.js +8 -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/operationsTasks/client/Client.d.mts +2 -29
- package/dist/esm/api/resources/operations/resources/operationsTasks/client/Client.mjs +10 -124
- package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksListV1Request.d.mts +2 -3
- package/dist/esm/api/resources/shipping/client/Client.d.mts +3 -0
- package/dist/esm/api/resources/shipping/client/Client.mjs +5 -0
- package/dist/esm/api/resources/shipping/resources/index.d.mts +2 -0
- package/dist/esm/api/resources/shipping/resources/index.mjs +2 -0
- 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 +68 -0
- package/dist/esm/api/resources/shipping/resources/orderDrafts/client/requests/OrderDraftsTypeaheadV1Request.d.mts +16 -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/requests/OrderDraftAddCargoReq.d.mts +1 -1
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/expanded/client/Client.d.mts +0 -16
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/expanded/client/Client.mjs +0 -68
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/expanded/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/task/client/requests/OrderDraftAddTaskReqV1.d.mts +1 -1
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskArtifact/client/requests/OrderDraftAddTaskArtifactReq.d.mts +1 -1
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftAddTaskGroupReq.d.mts +1 -1
- package/dist/esm/api/resources/shipping/resources/orderSchedules/client/Client.d.mts +25 -41
- package/dist/esm/api/resources/shipping/resources/orderSchedules/client/Client.mjs +49 -123
- package/dist/esm/api/resources/shipping/resources/orderSchedules/client/requests/OrderSchedulesListV1Request.d.mts +2 -4
- package/dist/esm/api/resources/shipping/resources/orderSchedules/client/requests/index.d.mts +0 -2
- package/dist/esm/api/resources/shipping/resources/orderSchedules/resources/draft/client/Client.d.mts +64 -0
- package/dist/esm/api/resources/shipping/resources/orderSchedules/resources/draft/client/Client.mjs +159 -0
- package/dist/esm/api/resources/shipping/resources/orderSchedules/resources/draft/client/index.d.mts +2 -0
- package/dist/esm/api/resources/shipping/resources/orderSchedules/resources/draft/client/index.mjs +1 -0
- package/dist/esm/api/resources/shipping/resources/orderSchedules/{client → resources/draft/client}/requests/OrderScheduleClientCreate1.d.mts +4 -6
- package/dist/esm/api/resources/shipping/resources/orderSchedules/{client → resources/draft/client}/requests/OrderScheduleClientUpdate1.d.mts +2 -2
- package/dist/esm/api/resources/shipping/resources/orderSchedules/resources/draft/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/shipping/resources/orderSchedules/resources/draft/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/shipping/resources/orderSchedules/resources/draft/index.d.mts +1 -0
- package/dist/esm/api/resources/shipping/resources/orderSchedules/resources/draft/index.mjs +1 -0
- package/dist/esm/api/resources/shipping/resources/orderSchedules/resources/index.d.mts +2 -0
- package/dist/esm/api/resources/shipping/resources/orderSchedules/resources/index.mjs +2 -0
- package/dist/esm/api/resources/shipping/resources/orderTemplates/client/Client.d.mts +170 -0
- package/dist/esm/api/resources/shipping/resources/orderTemplates/client/Client.mjs +625 -0
- package/dist/esm/api/resources/shipping/resources/orderTemplates/client/index.d.mts +2 -0
- package/dist/esm/api/resources/shipping/resources/orderTemplates/client/index.mjs +1 -0
- package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientCreate1.d.mts +23 -0
- package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientUpdate1.d.mts +24 -0
- package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateRemoveReferenceReq.d.mts +14 -0
- package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateRemoveReferenceReq.mjs +4 -0
- package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplatesListV1Request.d.mts +42 -0
- package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplatesListV1Request.mjs +4 -0
- package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/index.d.mts +4 -0
- package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/shipping/resources/orderTemplates/index.d.mts +1 -0
- package/dist/esm/api/resources/shipping/resources/orderTemplates/index.mjs +1 -0
- package/dist/esm/api/resources/shipping/resources/orders/client/Client.d.mts +16 -0
- package/dist/esm/api/resources/shipping/resources/orders/client/Client.mjs +68 -0
- package/dist/esm/api/resources/shipping/resources/{orderDrafts/resources/expanded/client/requests/ExpandedTypeaheadV1Request.d.mts → orders/client/requests/OrdersTypeaheadV1Request.d.mts} +1 -1
- package/dist/esm/api/resources/shipping/resources/orders/client/requests/OrdersTypeaheadV1Request.mjs +4 -0
- package/dist/esm/api/resources/shipping/resources/orders/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.mts +0 -16
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.mjs +0 -68
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/shipping/resources/taskGroups/client/Client.d.mts +16 -0
- package/dist/esm/api/resources/shipping/resources/taskGroups/client/Client.mjs +68 -0
- package/dist/{cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedTypeaheadV1Request.d.ts → esm/api/resources/shipping/resources/taskGroups/client/requests/TaskGroupsTypeaheadV1Request.d.mts} +1 -1
- package/dist/esm/api/resources/shipping/resources/taskGroups/client/requests/TaskGroupsTypeaheadV1Request.mjs +4 -0
- package/dist/esm/api/resources/shipping/resources/taskGroups/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.d.mts +0 -16
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.mjs +0 -68
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/index.d.mts +0 -1
- package/dist/esm/api/types/Cargo1.d.mts +1 -3
- package/dist/esm/api/types/CargoManifest1.d.mts +6 -0
- package/dist/esm/api/types/OperationsTaskTypeEnum.d.mts +4 -2
- package/dist/esm/api/types/OperationsTaskTypeEnum.mjs +3 -1
- package/dist/esm/api/types/Order1.d.mts +1 -0
- package/dist/esm/api/types/OrderManifest1.d.mts +2 -2
- package/dist/esm/api/types/OrderSchedule1.d.mts +5 -7
- package/dist/esm/api/types/OrderScheduleAboutRes.d.mts +0 -1
- package/dist/esm/api/types/OrderScheduleOrchestratorScheduleStatus.d.mts +0 -1
- package/dist/esm/api/types/OrderScheduleSortByEnum.d.mts +2 -2
- package/dist/esm/api/types/OrderScheduleSortByEnum.mjs +1 -1
- package/dist/esm/api/types/OrderScheduleSpec1.d.mts +11 -0
- package/dist/esm/api/types/OrderScheduleSpec1.mjs +4 -0
- package/dist/esm/api/types/OrderTemplate1.d.mts +24 -0
- package/dist/esm/api/types/OrderTemplate1.mjs +4 -0
- package/dist/esm/api/types/OrderTemplateExpanded.d.mts +12 -0
- package/dist/esm/api/types/OrderTemplateExpanded.mjs +4 -0
- package/dist/esm/api/types/OrderTemplateListRes.d.mts +8 -0
- package/dist/esm/api/types/OrderTemplateListRes.mjs +4 -0
- package/dist/esm/api/types/OrderTemplateOrgRef1.d.mts +10 -0
- package/dist/esm/api/types/OrderTemplateOrgRef1.mjs +4 -0
- package/dist/esm/api/types/OrderTemplateReferenceColumnEnum1.d.mts +11 -0
- package/dist/esm/api/types/OrderTemplateReferenceColumnEnum1.mjs +10 -0
- package/dist/esm/api/types/OrderTemplateSortByEnum.d.mts +9 -0
- package/dist/esm/api/types/OrderTemplateSortByEnum.mjs +8 -0
- package/dist/esm/api/types/OrderTypeaheadResult.d.mts +1 -1
- package/dist/esm/api/types/OrderTypeaheadValue.d.mts +7 -0
- package/dist/esm/api/types/OrderTypeaheadValue.mjs +4 -0
- package/dist/esm/api/types/Task1.d.mts +2 -4
- package/dist/esm/api/types/TaskArtifact1.d.mts +1 -3
- package/dist/esm/api/types/TaskClientCreate1.d.mts +1 -1
- package/dist/esm/api/types/TaskGroup1.d.mts +1 -3
- package/dist/esm/api/types/TaskGroupManifest1.d.mts +1 -1
- package/dist/esm/api/types/TaskManifest1.d.mts +13 -4
- package/dist/esm/api/types/index.d.mts +8 -1
- package/dist/esm/api/types/index.mjs +8 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +857 -319
- package/dist/cjs/api/types/OrderScheduleOrchestratorScheduleStatusEnum1.d.ts +0 -10
- package/dist/cjs/api/types/OrderScheduleOrchestratorScheduleStatusEnum1.js +0 -12
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedTypeaheadV1Request.d.mts +0 -16
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedTypeaheadV1Request.d.mts +0 -16
- package/dist/esm/api/types/OrderScheduleOrchestratorScheduleStatusEnum1.d.mts +0 -10
- package/dist/esm/api/types/OrderScheduleOrchestratorScheduleStatusEnum1.mjs +0 -9
- /package/dist/cjs/api/resources/shipping/resources/orderDrafts/{resources/expanded/client/requests/ExpandedTypeaheadV1Request.js → client/requests/OrderDraftsTypeaheadV1Request.js} +0 -0
- /package/dist/cjs/api/resources/shipping/resources/orderSchedules/{client → resources/draft/client}/requests/OrderScheduleClientCreate1.js +0 -0
- /package/dist/cjs/api/resources/shipping/resources/orderSchedules/{client → resources/draft/client}/requests/OrderScheduleClientUpdate1.js +0 -0
- /package/dist/cjs/api/resources/shipping/resources/{orders/resources/expanded/client/requests/ExpandedTypeaheadV1Request.js → orderTemplates/client/requests/OrderTemplateClientCreate1.js} +0 -0
- /package/dist/cjs/api/resources/shipping/resources/{taskGroups/resources/expanded/client/requests/ExpandedTypeaheadV1Request.js → orderTemplates/client/requests/OrderTemplateClientUpdate1.js} +0 -0
- /package/dist/esm/api/resources/shipping/resources/orderDrafts/{resources/expanded/client/requests/ExpandedTypeaheadV1Request.mjs → client/requests/OrderDraftsTypeaheadV1Request.mjs} +0 -0
- /package/dist/esm/api/resources/shipping/resources/orderSchedules/{client → resources/draft/client}/requests/OrderScheduleClientCreate1.mjs +0 -0
- /package/dist/esm/api/resources/shipping/resources/orderSchedules/{client → resources/draft/client}/requests/OrderScheduleClientUpdate1.mjs +0 -0
- /package/dist/esm/api/resources/shipping/resources/{orders/resources/expanded/client/requests/ExpandedTypeaheadV1Request.mjs → orderTemplates/client/requests/OrderTemplateClientCreate1.mjs} +0 -0
- /package/dist/esm/api/resources/shipping/resources/{taskGroups/resources/expanded/client/requests/ExpandedTypeaheadV1Request.mjs → orderTemplates/client/requests/OrderTemplateClientUpdate1.mjs} +0 -0
|
@@ -20,7 +20,7 @@ export class OperationsTasks {
|
|
|
20
20
|
this._options = _options;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
* Lists OperationsTasks for the caller's organization, with order/department/type/status/tag/assignee/deadline filtering, sorting, and pagination. | authz: min_org_role=operator | () -> (OperationsTaskListRes)
|
|
23
|
+
* 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)
|
|
24
24
|
*
|
|
25
25
|
* @param {Chrt.operations.OperationsTasksListV1Request} request
|
|
26
26
|
* @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -33,7 +33,6 @@ export class OperationsTasks {
|
|
|
33
33
|
* sort_order: "asc",
|
|
34
34
|
* page: 1,
|
|
35
35
|
* page_size: 1,
|
|
36
|
-
* filter_order_id: "filter_order_id",
|
|
37
36
|
* filter_department_id: "filter_department_id",
|
|
38
37
|
* filter_assigned_user_id: "filter_assigned_user_id",
|
|
39
38
|
* filter_deadline_gte: "2024-01-15T09:30:00Z",
|
|
@@ -46,7 +45,7 @@ export class OperationsTasks {
|
|
|
46
45
|
__listV1() {
|
|
47
46
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
48
47
|
var _a, _b, _c, _d, _e, _f;
|
|
49
|
-
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize,
|
|
48
|
+
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;
|
|
50
49
|
const _queryParams = {};
|
|
51
50
|
if (sortBy !== undefined) {
|
|
52
51
|
_queryParams["sort_by"] = sortBy;
|
|
@@ -60,8 +59,13 @@ export class OperationsTasks {
|
|
|
60
59
|
if (pageSize !== undefined) {
|
|
61
60
|
_queryParams["page_size"] = (_b = pageSize === null || pageSize === void 0 ? void 0 : pageSize.toString()) !== null && _b !== void 0 ? _b : null;
|
|
62
61
|
}
|
|
63
|
-
if (
|
|
64
|
-
|
|
62
|
+
if (filterOrderIds !== undefined) {
|
|
63
|
+
if (Array.isArray(filterOrderIds)) {
|
|
64
|
+
_queryParams["filter_order_ids"] = filterOrderIds.map((item) => item);
|
|
65
|
+
}
|
|
66
|
+
else {
|
|
67
|
+
_queryParams["filter_order_ids"] = filterOrderIds;
|
|
68
|
+
}
|
|
65
69
|
}
|
|
66
70
|
if (filterDepartmentId !== undefined) {
|
|
67
71
|
_queryParams["filter_department_id"] = filterDepartmentId;
|
|
@@ -260,7 +264,7 @@ export class OperationsTasks {
|
|
|
260
264
|
});
|
|
261
265
|
}
|
|
262
266
|
/**
|
|
263
|
-
* Updates
|
|
267
|
+
* Updates editable fields (task_type, title, description, deadline_timestamp, tags, assigned_user_ids) on an OperationsTask. | authz: min_org_role=operator | (OperationsTaskClientUpdate1) -> (bool)
|
|
264
268
|
*
|
|
265
269
|
* @param {string} taskId
|
|
266
270
|
* @param {Chrt.operations.OperationsTaskClientUpdate1} request
|
|
@@ -390,124 +394,6 @@ export class OperationsTasks {
|
|
|
390
394
|
}
|
|
391
395
|
});
|
|
392
396
|
}
|
|
393
|
-
/**
|
|
394
|
-
* Marks an OperationsTask as completed. Idempotent — calling on an already-completed task is a no-op that returns False. | authz: min_org_role=operator | () -> (bool)
|
|
395
|
-
*
|
|
396
|
-
* @param {string} taskId
|
|
397
|
-
* @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
|
|
398
|
-
*
|
|
399
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
400
|
-
*
|
|
401
|
-
* @example
|
|
402
|
-
* await client.operations.operationsTasks.completeV1("task_id")
|
|
403
|
-
*/
|
|
404
|
-
completeV1(taskId, requestOptions) {
|
|
405
|
-
return core.HttpResponsePromise.fromPromise(this.__completeV1(taskId, requestOptions));
|
|
406
|
-
}
|
|
407
|
-
__completeV1(taskId, requestOptions) {
|
|
408
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
409
|
-
var _a, _b, _c, _d;
|
|
410
|
-
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);
|
|
411
|
-
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
412
|
-
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_tasks/complete/v1/${encodeURIComponent(taskId)}`),
|
|
413
|
-
method: "POST",
|
|
414
|
-
headers: _headers,
|
|
415
|
-
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
416
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
417
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
418
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
419
|
-
});
|
|
420
|
-
if (_response.ok) {
|
|
421
|
-
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
422
|
-
}
|
|
423
|
-
if (_response.error.reason === "status-code") {
|
|
424
|
-
switch (_response.error.statusCode) {
|
|
425
|
-
case 422:
|
|
426
|
-
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
427
|
-
default:
|
|
428
|
-
throw new errors.ChrtError({
|
|
429
|
-
statusCode: _response.error.statusCode,
|
|
430
|
-
body: _response.error.body,
|
|
431
|
-
rawResponse: _response.rawResponse,
|
|
432
|
-
});
|
|
433
|
-
}
|
|
434
|
-
}
|
|
435
|
-
switch (_response.error.reason) {
|
|
436
|
-
case "non-json":
|
|
437
|
-
throw new errors.ChrtError({
|
|
438
|
-
statusCode: _response.error.statusCode,
|
|
439
|
-
body: _response.error.rawBody,
|
|
440
|
-
rawResponse: _response.rawResponse,
|
|
441
|
-
});
|
|
442
|
-
case "timeout":
|
|
443
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /operations/operations_tasks/complete/v1/{task_id}.");
|
|
444
|
-
case "unknown":
|
|
445
|
-
throw new errors.ChrtError({
|
|
446
|
-
message: _response.error.errorMessage,
|
|
447
|
-
rawResponse: _response.rawResponse,
|
|
448
|
-
});
|
|
449
|
-
}
|
|
450
|
-
});
|
|
451
|
-
}
|
|
452
|
-
/**
|
|
453
|
-
* Marks a previously-completed OperationsTask as incomplete and clears its completion timestamps. Idempotent — calling on an already-incomplete task is a no-op that returns False. | authz: min_org_role=operator | () -> (bool)
|
|
454
|
-
*
|
|
455
|
-
* @param {string} taskId
|
|
456
|
-
* @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
|
|
457
|
-
*
|
|
458
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
459
|
-
*
|
|
460
|
-
* @example
|
|
461
|
-
* await client.operations.operationsTasks.uncompleteV1("task_id")
|
|
462
|
-
*/
|
|
463
|
-
uncompleteV1(taskId, requestOptions) {
|
|
464
|
-
return core.HttpResponsePromise.fromPromise(this.__uncompleteV1(taskId, requestOptions));
|
|
465
|
-
}
|
|
466
|
-
__uncompleteV1(taskId, requestOptions) {
|
|
467
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
468
|
-
var _a, _b, _c, _d;
|
|
469
|
-
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);
|
|
470
|
-
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
471
|
-
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_tasks/uncomplete/v1/${encodeURIComponent(taskId)}`),
|
|
472
|
-
method: "POST",
|
|
473
|
-
headers: _headers,
|
|
474
|
-
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
475
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
476
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
477
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
478
|
-
});
|
|
479
|
-
if (_response.ok) {
|
|
480
|
-
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
481
|
-
}
|
|
482
|
-
if (_response.error.reason === "status-code") {
|
|
483
|
-
switch (_response.error.statusCode) {
|
|
484
|
-
case 422:
|
|
485
|
-
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
486
|
-
default:
|
|
487
|
-
throw new errors.ChrtError({
|
|
488
|
-
statusCode: _response.error.statusCode,
|
|
489
|
-
body: _response.error.body,
|
|
490
|
-
rawResponse: _response.rawResponse,
|
|
491
|
-
});
|
|
492
|
-
}
|
|
493
|
-
}
|
|
494
|
-
switch (_response.error.reason) {
|
|
495
|
-
case "non-json":
|
|
496
|
-
throw new errors.ChrtError({
|
|
497
|
-
statusCode: _response.error.statusCode,
|
|
498
|
-
body: _response.error.rawBody,
|
|
499
|
-
rawResponse: _response.rawResponse,
|
|
500
|
-
});
|
|
501
|
-
case "timeout":
|
|
502
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /operations/operations_tasks/uncomplete/v1/{task_id}.");
|
|
503
|
-
case "unknown":
|
|
504
|
-
throw new errors.ChrtError({
|
|
505
|
-
message: _response.error.errorMessage,
|
|
506
|
-
rawResponse: _response.rawResponse,
|
|
507
|
-
});
|
|
508
|
-
}
|
|
509
|
-
});
|
|
510
|
-
}
|
|
511
397
|
/**
|
|
512
398
|
* Sets an OperationsTask's status (not_started / in_progress / completed / skipped). Setting COMPLETED stamps completed_at/by; any other status clears them. | authz: min_org_role=operator | (OperationsTaskStatusReq) -> (bool)
|
|
513
399
|
*
|
|
@@ -9,7 +9,6 @@ import * as Chrt from "../../../../../../index.mjs";
|
|
|
9
9
|
* sort_order: "asc",
|
|
10
10
|
* page: 1,
|
|
11
11
|
* page_size: 1,
|
|
12
|
-
* filter_order_id: "filter_order_id",
|
|
13
12
|
* filter_department_id: "filter_department_id",
|
|
14
13
|
* filter_assigned_user_id: "filter_assigned_user_id",
|
|
15
14
|
* filter_deadline_gte: "2024-01-15T09:30:00Z",
|
|
@@ -23,8 +22,8 @@ export interface OperationsTasksListV1Request {
|
|
|
23
22
|
sort_order?: Chrt.SortOrderEnum | null;
|
|
24
23
|
page?: number | null;
|
|
25
24
|
page_size?: number | null;
|
|
26
|
-
/** Filter
|
|
27
|
-
|
|
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) */
|
|
26
|
+
filter_order_ids?: (string | null) | (string | null)[];
|
|
28
27
|
/** Filter to tasks routed to this department (desk queue) */
|
|
29
28
|
filter_department_id?: string | null;
|
|
30
29
|
/** Filter by task type(s). Defaults to all types. */
|
|
@@ -10,6 +10,7 @@ import { TaskArtifacts } from "../resources/taskArtifacts/client/Client.mjs";
|
|
|
10
10
|
import { Orders } from "../resources/orders/client/Client.mjs";
|
|
11
11
|
import { OrderDrafts } from "../resources/orderDrafts/client/Client.mjs";
|
|
12
12
|
import { OrderSchedules } from "../resources/orderSchedules/client/Client.mjs";
|
|
13
|
+
import { OrderTemplates } from "../resources/orderTemplates/client/Client.mjs";
|
|
13
14
|
import { TaskGroups } from "../resources/taskGroups/client/Client.mjs";
|
|
14
15
|
import { Tasks } from "../resources/tasks/client/Client.mjs";
|
|
15
16
|
export declare namespace Shipping {
|
|
@@ -32,6 +33,7 @@ export declare class Shipping {
|
|
|
32
33
|
protected _orders: Orders | undefined;
|
|
33
34
|
protected _orderDrafts: OrderDrafts | undefined;
|
|
34
35
|
protected _orderSchedules: OrderSchedules | undefined;
|
|
36
|
+
protected _orderTemplates: OrderTemplates | undefined;
|
|
35
37
|
protected _taskGroups: TaskGroups | undefined;
|
|
36
38
|
protected _tasks: Tasks | undefined;
|
|
37
39
|
constructor(_options?: Shipping.Options);
|
|
@@ -42,6 +44,7 @@ export declare class Shipping {
|
|
|
42
44
|
get orders(): Orders;
|
|
43
45
|
get orderDrafts(): OrderDrafts;
|
|
44
46
|
get orderSchedules(): OrderSchedules;
|
|
47
|
+
get orderTemplates(): OrderTemplates;
|
|
45
48
|
get taskGroups(): TaskGroups;
|
|
46
49
|
get tasks(): Tasks;
|
|
47
50
|
}
|
|
@@ -8,6 +8,7 @@ import { TaskArtifacts } from "../resources/taskArtifacts/client/Client.mjs";
|
|
|
8
8
|
import { Orders } from "../resources/orders/client/Client.mjs";
|
|
9
9
|
import { OrderDrafts } from "../resources/orderDrafts/client/Client.mjs";
|
|
10
10
|
import { OrderSchedules } from "../resources/orderSchedules/client/Client.mjs";
|
|
11
|
+
import { OrderTemplates } from "../resources/orderTemplates/client/Client.mjs";
|
|
11
12
|
import { TaskGroups } from "../resources/taskGroups/client/Client.mjs";
|
|
12
13
|
import { Tasks } from "../resources/tasks/client/Client.mjs";
|
|
13
14
|
export class Shipping {
|
|
@@ -42,6 +43,10 @@ export class Shipping {
|
|
|
42
43
|
var _a;
|
|
43
44
|
return ((_a = this._orderSchedules) !== null && _a !== void 0 ? _a : (this._orderSchedules = new OrderSchedules(this._options)));
|
|
44
45
|
}
|
|
46
|
+
get orderTemplates() {
|
|
47
|
+
var _a;
|
|
48
|
+
return ((_a = this._orderTemplates) !== null && _a !== void 0 ? _a : (this._orderTemplates = new OrderTemplates(this._options)));
|
|
49
|
+
}
|
|
45
50
|
get taskGroups() {
|
|
46
51
|
var _a;
|
|
47
52
|
return ((_a = this._taskGroups) !== null && _a !== void 0 ? _a : (this._taskGroups = new TaskGroups(this._options)));
|
|
@@ -5,6 +5,7 @@ export * as flights from "./flights/index.mjs";
|
|
|
5
5
|
export * as taskArtifacts from "./taskArtifacts/index.mjs";
|
|
6
6
|
export * as orders from "./orders/index.mjs";
|
|
7
7
|
export * as orderSchedules from "./orderSchedules/index.mjs";
|
|
8
|
+
export * as orderTemplates from "./orderTemplates/index.mjs";
|
|
8
9
|
export * as taskGroups from "./taskGroups/index.mjs";
|
|
9
10
|
export * as tasks from "./tasks/index.mjs";
|
|
10
11
|
export * from "./drivers/client/requests/index.mjs";
|
|
@@ -12,5 +13,6 @@ export * from "./taskArtifacts/client/requests/index.mjs";
|
|
|
12
13
|
export * from "./orders/client/requests/index.mjs";
|
|
13
14
|
export * from "./orderDrafts/client/requests/index.mjs";
|
|
14
15
|
export * from "./orderSchedules/client/requests/index.mjs";
|
|
16
|
+
export * from "./orderTemplates/client/requests/index.mjs";
|
|
15
17
|
export * from "./taskGroups/client/requests/index.mjs";
|
|
16
18
|
export * from "./tasks/client/requests/index.mjs";
|
|
@@ -5,6 +5,7 @@ export * as flights from "./flights/index.mjs";
|
|
|
5
5
|
export * as taskArtifacts from "./taskArtifacts/index.mjs";
|
|
6
6
|
export * as orders from "./orders/index.mjs";
|
|
7
7
|
export * as orderSchedules from "./orderSchedules/index.mjs";
|
|
8
|
+
export * as orderTemplates from "./orderTemplates/index.mjs";
|
|
8
9
|
export * as taskGroups from "./taskGroups/index.mjs";
|
|
9
10
|
export * as tasks from "./tasks/index.mjs";
|
|
10
11
|
export * from "./drivers/client/requests/index.mjs";
|
|
@@ -12,5 +13,6 @@ export * from "./taskArtifacts/client/requests/index.mjs";
|
|
|
12
13
|
export * from "./orders/client/requests/index.mjs";
|
|
13
14
|
export * from "./orderDrafts/client/requests/index.mjs";
|
|
14
15
|
export * from "./orderSchedules/client/requests/index.mjs";
|
|
16
|
+
export * from "./orderTemplates/client/requests/index.mjs";
|
|
15
17
|
export * from "./taskGroups/client/requests/index.mjs";
|
|
16
18
|
export * from "./tasks/client/requests/index.mjs";
|
|
@@ -135,6 +135,22 @@ export declare class OrderDrafts {
|
|
|
135
135
|
*/
|
|
136
136
|
imageToTextV1(request: Chrt.shipping.BodyPostShippingOrderDraftsImageToTextV1ShippingOrderDraftsImageToTextV1Post, requestOptions?: OrderDrafts.RequestOptions): core.HttpResponsePromise<string>;
|
|
137
137
|
private __imageToTextV1;
|
|
138
|
+
/**
|
|
139
|
+
* Returns distinct short_id and off_chrt_reference_id values matching the query via case-insensitive regex. Searches draft orders created by the caller's org. | authz: min_org_role=operator | () -> (list[OrderTypeaheadResult])
|
|
140
|
+
*
|
|
141
|
+
* @param {Chrt.shipping.OrderDraftsTypeaheadV1Request} request
|
|
142
|
+
* @param {OrderDrafts.RequestOptions} requestOptions - Request-specific configuration.
|
|
143
|
+
*
|
|
144
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
145
|
+
*
|
|
146
|
+
* @example
|
|
147
|
+
* await client.shipping.orderDrafts.typeaheadV1({
|
|
148
|
+
* query: "query",
|
|
149
|
+
* limit: 1
|
|
150
|
+
* })
|
|
151
|
+
*/
|
|
152
|
+
typeaheadV1(request: Chrt.shipping.OrderDraftsTypeaheadV1Request, requestOptions?: OrderDrafts.RequestOptions): core.HttpResponsePromise<Chrt.OrderTypeaheadResult[]>;
|
|
153
|
+
private __typeaheadV1;
|
|
138
154
|
/**
|
|
139
155
|
* Validates the draft order for staging and returns requirement results. | () -> (OrderDraftValidationResult)
|
|
140
156
|
*
|
|
@@ -430,6 +430,74 @@ export class OrderDrafts {
|
|
|
430
430
|
}
|
|
431
431
|
});
|
|
432
432
|
}
|
|
433
|
+
/**
|
|
434
|
+
* Returns distinct short_id and off_chrt_reference_id values matching the query via case-insensitive regex. Searches draft orders created by the caller's org. | authz: min_org_role=operator | () -> (list[OrderTypeaheadResult])
|
|
435
|
+
*
|
|
436
|
+
* @param {Chrt.shipping.OrderDraftsTypeaheadV1Request} request
|
|
437
|
+
* @param {OrderDrafts.RequestOptions} requestOptions - Request-specific configuration.
|
|
438
|
+
*
|
|
439
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
440
|
+
*
|
|
441
|
+
* @example
|
|
442
|
+
* await client.shipping.orderDrafts.typeaheadV1({
|
|
443
|
+
* query: "query",
|
|
444
|
+
* limit: 1
|
|
445
|
+
* })
|
|
446
|
+
*/
|
|
447
|
+
typeaheadV1(request, requestOptions) {
|
|
448
|
+
return core.HttpResponsePromise.fromPromise(this.__typeaheadV1(request, requestOptions));
|
|
449
|
+
}
|
|
450
|
+
__typeaheadV1(request, requestOptions) {
|
|
451
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
452
|
+
var _a, _b, _c, _d, _e;
|
|
453
|
+
const { query, limit } = request;
|
|
454
|
+
const _queryParams = {};
|
|
455
|
+
_queryParams["query"] = query;
|
|
456
|
+
if (limit !== undefined) {
|
|
457
|
+
_queryParams["limit"] = (_a = limit === null || limit === void 0 ? void 0 : limit.toString()) !== null && _a !== void 0 ? _a : null;
|
|
458
|
+
}
|
|
459
|
+
let _headers = mergeHeaders((_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
460
|
+
const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
|
|
461
|
+
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.ChrtEnvironment.Local, "shipping/order_drafts/typeahead/v1"),
|
|
462
|
+
method: "GET",
|
|
463
|
+
headers: _headers,
|
|
464
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
465
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
466
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
467
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
468
|
+
});
|
|
469
|
+
if (_response.ok) {
|
|
470
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
471
|
+
}
|
|
472
|
+
if (_response.error.reason === "status-code") {
|
|
473
|
+
switch (_response.error.statusCode) {
|
|
474
|
+
case 422:
|
|
475
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
476
|
+
default:
|
|
477
|
+
throw new errors.ChrtError({
|
|
478
|
+
statusCode: _response.error.statusCode,
|
|
479
|
+
body: _response.error.body,
|
|
480
|
+
rawResponse: _response.rawResponse,
|
|
481
|
+
});
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
switch (_response.error.reason) {
|
|
485
|
+
case "non-json":
|
|
486
|
+
throw new errors.ChrtError({
|
|
487
|
+
statusCode: _response.error.statusCode,
|
|
488
|
+
body: _response.error.rawBody,
|
|
489
|
+
rawResponse: _response.rawResponse,
|
|
490
|
+
});
|
|
491
|
+
case "timeout":
|
|
492
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /shipping/order_drafts/typeahead/v1.");
|
|
493
|
+
case "unknown":
|
|
494
|
+
throw new errors.ChrtError({
|
|
495
|
+
message: _response.error.errorMessage,
|
|
496
|
+
rawResponse: _response.rawResponse,
|
|
497
|
+
});
|
|
498
|
+
}
|
|
499
|
+
});
|
|
500
|
+
}
|
|
433
501
|
/**
|
|
434
502
|
* Validates the draft order for staging and returns requirement results. | () -> (OrderDraftValidationResult)
|
|
435
503
|
*
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* query: "query",
|
|
8
|
+
* limit: 1
|
|
9
|
+
* }
|
|
10
|
+
*/
|
|
11
|
+
export interface OrderDraftsTypeaheadV1Request {
|
|
12
|
+
/** Typeahead search query */
|
|
13
|
+
query: string;
|
|
14
|
+
/** Max results per field */
|
|
15
|
+
limit?: number | null;
|
|
16
|
+
}
|
|
@@ -3,3 +3,4 @@ export { type OrdersDraftUpdateReq } from "./OrdersDraftUpdateReq.mjs";
|
|
|
3
3
|
export { type SetTaskGroupOrderingDraftReq } from "./SetTaskGroupOrderingDraftReq.mjs";
|
|
4
4
|
export { type OrdersDraftDeleteManyReq } from "./OrdersDraftDeleteManyReq.mjs";
|
|
5
5
|
export { type BodyPostShippingOrderDraftsImageToTextV1ShippingOrderDraftsImageToTextV1Post } from "./BodyPostShippingOrderDraftsImageToTextV1ShippingOrderDraftsImageToTextV1Post.mjs";
|
|
6
|
+
export { type OrderDraftsTypeaheadV1Request } from "./OrderDraftsTypeaheadV1Request.mjs";
|
|
@@ -15,5 +15,5 @@ import * as Chrt from "../../../../../../../../index.mjs";
|
|
|
15
15
|
export interface OrderDraftAddCargoReq {
|
|
16
16
|
order_id: string;
|
|
17
17
|
cargo: Chrt.CargoClientCreate1;
|
|
18
|
-
|
|
18
|
+
order_schedule_template_path_idempotency_key?: string | null;
|
|
19
19
|
}
|
package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/expanded/client/Client.d.mts
CHANGED
|
@@ -70,21 +70,5 @@ export declare class Expanded {
|
|
|
70
70
|
*/
|
|
71
71
|
listV1(request: Chrt.shipping.orderDrafts.ExpandedListV1Request, requestOptions?: Expanded.RequestOptions): core.HttpResponsePromise<Chrt.OrderDraftExpandedListRes>;
|
|
72
72
|
private __listV1;
|
|
73
|
-
/**
|
|
74
|
-
* Returns distinct short_id and off_chrt_reference_id values matching the query via case-insensitive regex. Searches draft orders created by the caller's org. | authz: min_org_role=operator | () -> (list[OrderTypeaheadResult])
|
|
75
|
-
*
|
|
76
|
-
* @param {Chrt.shipping.orderDrafts.ExpandedTypeaheadV1Request} request
|
|
77
|
-
* @param {Expanded.RequestOptions} requestOptions - Request-specific configuration.
|
|
78
|
-
*
|
|
79
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
80
|
-
*
|
|
81
|
-
* @example
|
|
82
|
-
* await client.shipping.orderDrafts.expanded.typeaheadV1({
|
|
83
|
-
* query: "query",
|
|
84
|
-
* limit: 1
|
|
85
|
-
* })
|
|
86
|
-
*/
|
|
87
|
-
typeaheadV1(request: Chrt.shipping.orderDrafts.ExpandedTypeaheadV1Request, requestOptions?: Expanded.RequestOptions): core.HttpResponsePromise<Chrt.OrderTypeaheadResult[]>;
|
|
88
|
-
private __typeaheadV1;
|
|
89
73
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
90
74
|
}
|
package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/expanded/client/Client.mjs
CHANGED
|
@@ -192,74 +192,6 @@ export class Expanded {
|
|
|
192
192
|
}
|
|
193
193
|
});
|
|
194
194
|
}
|
|
195
|
-
/**
|
|
196
|
-
* Returns distinct short_id and off_chrt_reference_id values matching the query via case-insensitive regex. Searches draft orders created by the caller's org. | authz: min_org_role=operator | () -> (list[OrderTypeaheadResult])
|
|
197
|
-
*
|
|
198
|
-
* @param {Chrt.shipping.orderDrafts.ExpandedTypeaheadV1Request} request
|
|
199
|
-
* @param {Expanded.RequestOptions} requestOptions - Request-specific configuration.
|
|
200
|
-
*
|
|
201
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
202
|
-
*
|
|
203
|
-
* @example
|
|
204
|
-
* await client.shipping.orderDrafts.expanded.typeaheadV1({
|
|
205
|
-
* query: "query",
|
|
206
|
-
* limit: 1
|
|
207
|
-
* })
|
|
208
|
-
*/
|
|
209
|
-
typeaheadV1(request, requestOptions) {
|
|
210
|
-
return core.HttpResponsePromise.fromPromise(this.__typeaheadV1(request, requestOptions));
|
|
211
|
-
}
|
|
212
|
-
__typeaheadV1(request, requestOptions) {
|
|
213
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
214
|
-
var _a, _b, _c, _d, _e;
|
|
215
|
-
const { query, limit } = request;
|
|
216
|
-
const _queryParams = {};
|
|
217
|
-
_queryParams["query"] = query;
|
|
218
|
-
if (limit !== undefined) {
|
|
219
|
-
_queryParams["limit"] = (_a = limit === null || limit === void 0 ? void 0 : limit.toString()) !== null && _a !== void 0 ? _a : null;
|
|
220
|
-
}
|
|
221
|
-
let _headers = mergeHeaders((_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
222
|
-
const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
|
|
223
|
-
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.ChrtEnvironment.Local, "shipping/order_drafts/expanded/typeahead/v1"),
|
|
224
|
-
method: "GET",
|
|
225
|
-
headers: _headers,
|
|
226
|
-
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
227
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
228
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
229
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
230
|
-
});
|
|
231
|
-
if (_response.ok) {
|
|
232
|
-
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
233
|
-
}
|
|
234
|
-
if (_response.error.reason === "status-code") {
|
|
235
|
-
switch (_response.error.statusCode) {
|
|
236
|
-
case 422:
|
|
237
|
-
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
238
|
-
default:
|
|
239
|
-
throw new errors.ChrtError({
|
|
240
|
-
statusCode: _response.error.statusCode,
|
|
241
|
-
body: _response.error.body,
|
|
242
|
-
rawResponse: _response.rawResponse,
|
|
243
|
-
});
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
switch (_response.error.reason) {
|
|
247
|
-
case "non-json":
|
|
248
|
-
throw new errors.ChrtError({
|
|
249
|
-
statusCode: _response.error.statusCode,
|
|
250
|
-
body: _response.error.rawBody,
|
|
251
|
-
rawResponse: _response.rawResponse,
|
|
252
|
-
});
|
|
253
|
-
case "timeout":
|
|
254
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /shipping/order_drafts/expanded/typeahead/v1.");
|
|
255
|
-
case "unknown":
|
|
256
|
-
throw new errors.ChrtError({
|
|
257
|
-
message: _response.error.errorMessage,
|
|
258
|
-
rawResponse: _response.rawResponse,
|
|
259
|
-
});
|
|
260
|
-
}
|
|
261
|
-
});
|
|
262
|
-
}
|
|
263
195
|
_getAuthorizationHeader() {
|
|
264
196
|
return __awaiter(this, void 0, void 0, function* () {
|
|
265
197
|
const bearer = yield core.Supplier.get(this._options.token);
|
|
@@ -13,5 +13,5 @@ export interface OrderDraftAddTaskArtifactReq {
|
|
|
13
13
|
task_id: string;
|
|
14
14
|
task_artifact_type: Chrt.TaskArtifactTypeEnum1;
|
|
15
15
|
expected_scan_payloads?: string[];
|
|
16
|
-
|
|
16
|
+
order_schedule_template_path_idempotency_key?: string | null;
|
|
17
17
|
}
|
|
@@ -12,6 +12,6 @@ import * as Chrt from "../../../../../../../../index.mjs";
|
|
|
12
12
|
export interface OrderDraftAddTaskGroupReq {
|
|
13
13
|
task_group_type: Chrt.TaskGroupTypeEnum1;
|
|
14
14
|
order_id: string;
|
|
15
|
-
|
|
15
|
+
order_schedule_template_path_idempotency_key?: string | null;
|
|
16
16
|
vehicle_type?: Chrt.VehicleTypeEnum | null;
|
|
17
17
|
}
|