@chrt-inc/typescript-sdk 1.719.0 → 1.726.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/analytics/resources/shipping/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/analytics/resources/shipping/client/Client.js +2 -2
- package/dist/cjs/api/resources/analytics/resources/shipping/client/requests/{AnalyticsTimePeriodRequest.d.ts → AnalyticsTimePeriodReq.d.ts} +1 -1
- package/dist/cjs/api/resources/analytics/resources/shipping/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/operations/client/Client.d.ts +6 -3
- package/dist/cjs/api/resources/operations/client/Client.js +10 -5
- package/dist/cjs/api/resources/operations/resources/cases/client/Client.d.ts +5 -125
- package/dist/cjs/api/resources/operations/resources/cases/client/Client.js +17 -494
- package/dist/cjs/api/resources/operations/resources/cases/client/requests/CaseClientUpdate1.d.ts +1 -0
- package/dist/cjs/api/resources/operations/resources/cases/client/requests/CasesListV1Request.d.ts +3 -8
- package/dist/cjs/api/resources/operations/resources/cases/client/requests/index.d.ts +0 -4
- package/dist/cjs/api/resources/operations/resources/departmentRoutingRules/client/Client.d.ts +76 -0
- package/dist/cjs/api/resources/operations/resources/departmentRoutingRules/client/Client.js +246 -0
- package/dist/cjs/api/resources/operations/resources/departmentRoutingRules/client/requests/DepartmentRoutingRuleClientCreate1.d.ts +19 -0
- package/dist/cjs/api/resources/operations/resources/departmentRoutingRules/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/operations/resources/departments/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/operations/resources/departments/client/Client.js +1 -1
- package/dist/cjs/api/resources/operations/resources/departments/client/requests/DepartmentClientCreate1.d.ts +1 -1
- package/dist/cjs/api/resources/operations/resources/index.d.ts +4 -2
- package/dist/cjs/api/resources/operations/resources/index.js +5 -3
- package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/Client.d.ts +181 -0
- package/dist/cjs/api/resources/operations/resources/{checklists → operationsTaskLists}/client/Client.js +206 -75
- package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/index.js +17 -0
- package/dist/cjs/api/resources/operations/resources/{checklists/client/requests/ChecklistClientCreate1.d.ts → operationsTaskLists/client/requests/OperationsTaskListClientCreate1.d.ts} +3 -2
- package/dist/{esm/api/resources/operations/resources/checklists/client/requests/ChecklistClientUpdate1.d.mts → cjs/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListClientUpdate1.d.ts} +2 -1
- package/dist/cjs/api/resources/operations/resources/{checklists/client/requests/ChecklistChecksAdd1.d.ts → operationsTaskLists/client/requests/OperationsTaskListEntriesAdd1.d.ts} +2 -2
- package/dist/cjs/api/resources/{orgs/resources/connections/client/requests/SetDepartmentReq.d.ts → operations/resources/operationsTaskLists/client/requests/OperationsTaskListEntriesRemove1.d.ts} +2 -2
- package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListsApplyToCaseV1Request.d.ts +13 -0
- package/dist/cjs/api/resources/operations/resources/{checklists/client/requests/ChecklistsListV1Request.d.ts → operationsTaskLists/client/requests/OperationsTaskListsListV1Request.d.ts} +2 -2
- package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/index.d.ts +6 -0
- package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/operations/resources/operationsTaskLists/index.d.ts +1 -0
- package/dist/cjs/api/resources/operations/resources/operationsTaskLists/index.js +17 -0
- package/dist/cjs/api/resources/operations/resources/operationsTasks/client/Client.d.ts +23 -5
- package/dist/cjs/api/resources/operations/resources/operationsTasks/client/Client.js +108 -14
- package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/OperationsTaskClientCreate1.d.ts +7 -2
- package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/OperationsTaskClientUpdate1.d.ts +4 -0
- package/dist/cjs/api/resources/operations/resources/{cases/client/requests/CaseStatusReq.d.ts → operationsTasks/client/requests/OperationsTaskStatusReq.d.ts} +3 -3
- package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksListV1Request.d.ts +15 -6
- package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/orgs/resources/connections/client/Client.d.ts +0 -14
- package/dist/cjs/api/resources/orgs/resources/connections/client/Client.js +0 -63
- package/dist/cjs/api/resources/orgs/resources/connections/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/orgs/resources/offChrtProviderOrg/client/requests/OffChrtProviderOrgClientCreate1.d.ts +0 -1
- package/dist/cjs/api/resources/orgs/resources/offChrtProviderOrg/client/requests/OffChrtProviderOrgClientUpdate1.d.ts +0 -2
- package/dist/cjs/api/resources/orgs/resources/offChrtShipperOrg/client/requests/OffChrtShipperOrgClientCreate1.d.ts +0 -1
- package/dist/cjs/api/resources/orgs/resources/offChrtShipperOrg/client/requests/OffChrtShipperOrgClientUpdate1.d.ts +0 -2
- package/dist/cjs/api/resources/shipping/resources/drivers/client/Client.d.ts +17 -0
- package/dist/cjs/api/resources/shipping/resources/drivers/client/Client.js +66 -0
- package/dist/cjs/api/resources/shipping/resources/drivers/client/requests/DriverStatsReq.d.ts +15 -0
- package/dist/cjs/api/resources/shipping/resources/drivers/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/Client.d.ts +15 -0
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/Client.js +64 -0
- package/dist/cjs/api/resources/{operations/resources/cases/client/requests/CaseChecksApplyChecklistReq.d.ts → shipping/resources/orderDrafts/client/requests/OrdersDraftDeleteManyReq.d.ts} +3 -3
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/requests/OrdersNewDraftReq.d.ts +1 -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/taskGroup/client/Client.d.ts +57 -1
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/Client.js +247 -1
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftAddExecutorReq.d.ts +13 -0
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftUpdateDriverReq.d.ts +13 -0
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/shipping/resources/orders/client/Client.d.ts +16 -1
- package/dist/cjs/api/resources/shipping/resources/orders/client/Client.js +65 -1
- package/dist/cjs/api/resources/{operations/resources/cases/client/requests/CaseNeedsActionReq.d.ts → shipping/resources/orders/client/requests/OrdersCancelManyReq.d.ts} +3 -3
- 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 +4 -6
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.js +26 -34
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForCoordinatorOperatorsV1Request.d.ts +4 -6
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForShipperOperatorsV1Request.d.ts +4 -6
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.d.ts +4 -2
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.js +26 -18
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForDriverForExecutorV1Request.d.ts +4 -2
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.d.ts +4 -2
- package/dist/cjs/api/types/AiImageDescription.d.ts +1 -1
- package/dist/cjs/api/types/{AnalyticsTimeBucketResponse.d.ts → AnalyticsTimeBucketRes.d.ts} +1 -1
- package/dist/cjs/api/types/Cargo1.d.ts +1 -0
- package/dist/cjs/api/types/CargoStatusEnum1.d.ts +2 -1
- package/dist/cjs/api/types/CargoStatusEnum1.js +1 -0
- package/dist/cjs/api/types/Case1.d.ts +1 -12
- package/dist/cjs/api/types/CaseSortByEnum.d.ts +1 -2
- package/dist/cjs/api/types/CaseSortByEnum.js +0 -1
- package/dist/cjs/api/types/Department1.d.ts +1 -0
- package/dist/cjs/api/types/DepartmentRoutingRule1.d.ts +16 -0
- package/dist/cjs/api/types/DepartmentTypeEnum.d.ts +10 -10
- package/dist/cjs/api/types/DepartmentTypeEnum.js +9 -9
- package/dist/cjs/api/types/DriverStatsRes.d.ts +11 -0
- package/dist/cjs/api/types/OffChrtProviderOrg1.d.ts +0 -1
- package/dist/cjs/api/types/OffChrtShipperOrg1.d.ts +0 -1
- package/dist/cjs/api/types/OperationsTask1.d.ts +7 -2
- package/dist/cjs/api/types/{Checklist1.d.ts → OperationsTaskList1.d.ts} +3 -2
- package/dist/cjs/api/types/OperationsTaskListEntry1.d.ts +23 -0
- package/dist/cjs/api/types/{ChecklistListRes.d.ts → OperationsTaskListListRes.d.ts} +2 -2
- package/dist/cjs/api/types/OperationsTaskListListRes.js +5 -0
- package/dist/cjs/api/types/OperationsTaskListRemoveFromCaseRes1.d.ts +13 -0
- package/dist/cjs/api/types/OperationsTaskListRemoveFromCaseRes1.js +5 -0
- package/dist/{esm/api/types/ChecklistSortByEnum.d.mts → cjs/api/types/OperationsTaskListSortByEnum.d.ts} +2 -2
- package/dist/cjs/api/types/{ChecklistSortByEnum.js → OperationsTaskListSortByEnum.js} +2 -2
- package/dist/cjs/api/types/OperationsTaskStatusEnum.d.ts +17 -0
- package/dist/cjs/api/types/{CheckStatusEnum.js → OperationsTaskStatusEnum.js} +4 -7
- package/dist/cjs/api/types/OperationsTaskTypeEnum.d.ts +23 -0
- package/dist/cjs/api/types/OperationsTaskTypeEnum.js +20 -0
- package/dist/cjs/api/types/Order1.d.ts +1 -2
- package/dist/cjs/api/types/OrderDraftValidationRequirements.d.ts +1 -0
- package/dist/cjs/api/types/OrderManifestValidationRequirements.d.ts +1 -0
- package/dist/cjs/api/types/OrderSortByEnum.d.ts +2 -2
- package/dist/cjs/api/types/OrderSortByEnum.js +1 -1
- package/dist/cjs/api/types/OrderStatusEnum1.d.ts +2 -1
- package/dist/cjs/api/types/OrderStatusEnum1.js +1 -0
- package/dist/cjs/api/types/ProviderProviderConnection1.d.ts +0 -1
- package/dist/cjs/api/types/RoutingCounterpartyTypeEnum.d.ts +8 -0
- package/dist/cjs/api/types/RoutingCounterpartyTypeEnum.js +10 -0
- package/dist/cjs/api/types/ShipperProviderConnection1.d.ts +0 -1
- package/dist/cjs/api/types/Task1.d.ts +1 -1
- package/dist/cjs/api/types/TaskArtifact1.d.ts +1 -0
- package/dist/cjs/api/types/TaskArtifactStatusEnum1.d.ts +2 -1
- package/dist/cjs/api/types/TaskArtifactStatusEnum1.js +1 -0
- package/dist/cjs/api/types/TaskGroup1.d.ts +1 -1
- package/dist/cjs/api/types/TaskGroupSortByEnum.d.ts +2 -1
- package/dist/cjs/api/types/TaskGroupSortByEnum.js +1 -0
- package/dist/cjs/api/types/TaskGroupStatusEnum1.d.ts +2 -1
- package/dist/cjs/api/types/TaskGroupStatusEnum1.js +1 -0
- package/dist/cjs/api/types/TaskStatusEnum1.d.ts +2 -1
- package/dist/cjs/api/types/TaskStatusEnum1.js +1 -0
- package/dist/cjs/api/types/index.d.ts +11 -12
- package/dist/cjs/api/types/index.js +11 -12
- 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/analytics/resources/shipping/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/analytics/resources/shipping/client/Client.mjs +2 -2
- package/dist/esm/api/resources/analytics/resources/shipping/client/requests/{AnalyticsTimePeriodRequest.d.mts → AnalyticsTimePeriodReq.d.mts} +1 -1
- package/dist/esm/api/resources/analytics/resources/shipping/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/operations/client/Client.d.mts +6 -3
- package/dist/esm/api/resources/operations/client/Client.mjs +8 -3
- package/dist/esm/api/resources/operations/resources/cases/client/Client.d.mts +5 -125
- package/dist/esm/api/resources/operations/resources/cases/client/Client.mjs +17 -494
- package/dist/esm/api/resources/operations/resources/cases/client/requests/CaseClientUpdate1.d.mts +1 -0
- package/dist/esm/api/resources/operations/resources/cases/client/requests/CasesListV1Request.d.mts +3 -8
- package/dist/esm/api/resources/operations/resources/cases/client/requests/index.d.mts +0 -4
- package/dist/esm/api/resources/operations/resources/departmentRoutingRules/client/Client.d.mts +76 -0
- package/dist/esm/api/resources/operations/resources/departmentRoutingRules/client/Client.mjs +209 -0
- package/dist/esm/api/resources/operations/resources/departmentRoutingRules/client/requests/DepartmentRoutingRuleClientCreate1.d.mts +19 -0
- package/dist/esm/api/resources/operations/resources/departmentRoutingRules/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/operations/resources/departments/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/operations/resources/departments/client/Client.mjs +1 -1
- package/dist/esm/api/resources/operations/resources/departments/client/requests/DepartmentClientCreate1.d.mts +1 -1
- package/dist/esm/api/resources/operations/resources/index.d.mts +4 -2
- package/dist/esm/api/resources/operations/resources/index.mjs +4 -2
- package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/Client.d.mts +181 -0
- package/dist/esm/api/resources/operations/resources/{checklists → operationsTaskLists}/client/Client.mjs +204 -73
- package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/index.d.mts +2 -0
- package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/index.mjs +1 -0
- package/dist/esm/api/resources/operations/resources/{checklists/client/requests/ChecklistClientCreate1.d.mts → operationsTaskLists/client/requests/OperationsTaskListClientCreate1.d.mts} +3 -2
- package/dist/{cjs/api/resources/operations/resources/checklists/client/requests/ChecklistClientUpdate1.d.ts → esm/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListClientUpdate1.d.mts} +2 -1
- package/dist/esm/api/resources/operations/resources/{checklists/client/requests/ChecklistChecksAdd1.d.mts → operationsTaskLists/client/requests/OperationsTaskListEntriesAdd1.d.mts} +2 -2
- package/dist/esm/api/resources/{orgs/resources/connections/client/requests/SetDepartmentReq.d.mts → operations/resources/operationsTaskLists/client/requests/OperationsTaskListEntriesRemove1.d.mts} +2 -2
- package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListsApplyToCaseV1Request.d.mts +13 -0
- package/dist/esm/api/resources/operations/resources/{checklists/client/requests/ChecklistsListV1Request.d.mts → operationsTaskLists/client/requests/OperationsTaskListsListV1Request.d.mts} +2 -2
- package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/index.d.mts +6 -0
- package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/operations/resources/operationsTaskLists/index.d.mts +1 -0
- package/dist/esm/api/resources/operations/resources/operationsTaskLists/index.mjs +1 -0
- package/dist/esm/api/resources/operations/resources/operationsTasks/client/Client.d.mts +23 -5
- package/dist/esm/api/resources/operations/resources/operationsTasks/client/Client.mjs +108 -14
- package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTaskClientCreate1.d.mts +7 -2
- package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTaskClientUpdate1.d.mts +4 -0
- package/dist/esm/api/resources/operations/resources/{cases/client/requests/CaseStatusReq.d.mts → operationsTasks/client/requests/OperationsTaskStatusReq.d.mts} +3 -3
- package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksListV1Request.d.mts +15 -6
- package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/orgs/resources/connections/client/Client.d.mts +0 -14
- package/dist/esm/api/resources/orgs/resources/connections/client/Client.mjs +0 -63
- package/dist/esm/api/resources/orgs/resources/connections/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/orgs/resources/offChrtProviderOrg/client/requests/OffChrtProviderOrgClientCreate1.d.mts +0 -1
- package/dist/esm/api/resources/orgs/resources/offChrtProviderOrg/client/requests/OffChrtProviderOrgClientUpdate1.d.mts +0 -2
- package/dist/esm/api/resources/orgs/resources/offChrtShipperOrg/client/requests/OffChrtShipperOrgClientCreate1.d.mts +0 -1
- package/dist/esm/api/resources/orgs/resources/offChrtShipperOrg/client/requests/OffChrtShipperOrgClientUpdate1.d.mts +0 -2
- package/dist/esm/api/resources/shipping/resources/drivers/client/Client.d.mts +17 -0
- package/dist/esm/api/resources/shipping/resources/drivers/client/Client.mjs +66 -0
- package/dist/esm/api/resources/shipping/resources/drivers/client/requests/DriverStatsReq.d.mts +15 -0
- package/dist/esm/api/resources/shipping/resources/drivers/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/shipping/resources/orderDrafts/client/Client.d.mts +15 -0
- package/dist/esm/api/resources/shipping/resources/orderDrafts/client/Client.mjs +64 -0
- package/dist/esm/api/resources/{operations/resources/cases/client/requests/CaseChecksApplyChecklistReq.d.mts → shipping/resources/orderDrafts/client/requests/OrdersDraftDeleteManyReq.d.mts} +3 -3
- package/dist/esm/api/resources/shipping/resources/orderDrafts/client/requests/OrdersNewDraftReq.d.mts +1 -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/taskGroup/client/Client.d.mts +57 -1
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/Client.mjs +247 -1
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftAddExecutorReq.d.mts +13 -0
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftUpdateDriverReq.d.mts +13 -0
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/shipping/resources/orders/client/Client.d.mts +16 -1
- package/dist/esm/api/resources/shipping/resources/orders/client/Client.mjs +65 -1
- package/dist/esm/api/resources/{operations/resources/cases/client/requests/CaseNeedsActionReq.d.mts → shipping/resources/orders/client/requests/OrdersCancelManyReq.d.mts} +3 -3
- 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 +4 -6
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.mjs +26 -34
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForCoordinatorOperatorsV1Request.d.mts +4 -6
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForShipperOperatorsV1Request.d.mts +4 -6
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.d.mts +4 -2
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.mjs +26 -18
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForDriverForExecutorV1Request.d.mts +4 -2
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.d.mts +4 -2
- package/dist/esm/api/types/AiImageDescription.d.mts +1 -1
- package/dist/esm/api/types/{AnalyticsTimeBucketResponse.d.mts → AnalyticsTimeBucketRes.d.mts} +1 -1
- package/dist/esm/api/types/Cargo1.d.mts +1 -0
- package/dist/esm/api/types/CargoStatusEnum1.d.mts +2 -1
- package/dist/esm/api/types/CargoStatusEnum1.mjs +1 -0
- package/dist/esm/api/types/Case1.d.mts +1 -12
- package/dist/esm/api/types/CaseSortByEnum.d.mts +1 -2
- package/dist/esm/api/types/CaseSortByEnum.mjs +0 -1
- package/dist/esm/api/types/Department1.d.mts +1 -0
- package/dist/esm/api/types/DepartmentRoutingRule1.d.mts +16 -0
- package/dist/esm/api/types/DepartmentTypeEnum.d.mts +10 -10
- package/dist/esm/api/types/DepartmentTypeEnum.mjs +9 -9
- package/dist/esm/api/types/DriverStatsRes.d.mts +11 -0
- package/dist/esm/api/types/OffChrtProviderOrg1.d.mts +0 -1
- package/dist/esm/api/types/OffChrtShipperOrg1.d.mts +0 -1
- package/dist/esm/api/types/OperationsTask1.d.mts +7 -2
- package/dist/esm/api/types/{Checklist1.d.mts → OperationsTaskList1.d.mts} +3 -2
- package/dist/esm/api/types/OperationsTaskListEntry1.d.mts +23 -0
- package/dist/esm/api/types/{ChecklistListRes.d.mts → OperationsTaskListListRes.d.mts} +2 -2
- package/dist/esm/api/types/OperationsTaskListListRes.mjs +4 -0
- package/dist/esm/api/types/OperationsTaskListRemoveFromCaseRes1.d.mts +13 -0
- package/dist/esm/api/types/OperationsTaskListRemoveFromCaseRes1.mjs +4 -0
- package/dist/{cjs/api/types/ChecklistSortByEnum.d.ts → esm/api/types/OperationsTaskListSortByEnum.d.mts} +2 -2
- package/dist/esm/api/types/{ChecklistSortByEnum.mjs → OperationsTaskListSortByEnum.mjs} +1 -1
- package/dist/esm/api/types/OperationsTaskStatusEnum.d.mts +17 -0
- package/dist/esm/api/types/OperationsTaskStatusEnum.mjs +9 -0
- package/dist/esm/api/types/OperationsTaskTypeEnum.d.mts +23 -0
- package/dist/esm/api/types/OperationsTaskTypeEnum.mjs +17 -0
- package/dist/esm/api/types/Order1.d.mts +1 -2
- package/dist/esm/api/types/OrderDraftValidationRequirements.d.mts +1 -0
- package/dist/esm/api/types/OrderManifestValidationRequirements.d.mts +1 -0
- package/dist/esm/api/types/OrderSortByEnum.d.mts +2 -2
- package/dist/esm/api/types/OrderSortByEnum.mjs +1 -1
- package/dist/esm/api/types/OrderStatusEnum1.d.mts +2 -1
- package/dist/esm/api/types/OrderStatusEnum1.mjs +1 -0
- package/dist/esm/api/types/ProviderProviderConnection1.d.mts +0 -1
- package/dist/esm/api/types/RoutingCounterpartyTypeEnum.d.mts +8 -0
- package/dist/esm/api/types/RoutingCounterpartyTypeEnum.mjs +7 -0
- package/dist/esm/api/types/ShipperProviderConnection1.d.mts +0 -1
- package/dist/esm/api/types/Task1.d.mts +1 -1
- package/dist/esm/api/types/TaskArtifact1.d.mts +1 -0
- package/dist/esm/api/types/TaskArtifactStatusEnum1.d.mts +2 -1
- package/dist/esm/api/types/TaskArtifactStatusEnum1.mjs +1 -0
- package/dist/esm/api/types/TaskGroup1.d.mts +1 -1
- package/dist/esm/api/types/TaskGroupSortByEnum.d.mts +2 -1
- package/dist/esm/api/types/TaskGroupSortByEnum.mjs +1 -0
- package/dist/esm/api/types/TaskGroupStatusEnum1.d.mts +2 -1
- package/dist/esm/api/types/TaskGroupStatusEnum1.mjs +1 -0
- package/dist/esm/api/types/TaskStatusEnum1.d.mts +2 -1
- package/dist/esm/api/types/TaskStatusEnum1.mjs +1 -0
- package/dist/esm/api/types/index.d.mts +11 -12
- package/dist/esm/api/types/index.mjs +11 -12
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +816 -516
- package/dist/cjs/api/resources/operations/resources/cases/client/requests/CaseChecksRecordImageAnalysisResultsReq.d.ts +0 -15
- package/dist/cjs/api/resources/operations/resources/checklists/client/Client.d.ts +0 -150
- package/dist/cjs/api/resources/operations/resources/checklists/client/requests/ChecklistChecksRemove1.d.ts +0 -11
- package/dist/cjs/api/resources/operations/resources/checklists/client/requests/index.d.ts +0 -5
- package/dist/cjs/api/types/CaseChecksDisableReq.d.ts +0 -7
- package/dist/cjs/api/types/CaseChecksDismissReq.d.ts +0 -8
- package/dist/cjs/api/types/CaseChecksSummary1.d.ts +0 -27
- package/dist/cjs/api/types/CaseStatusEnum.d.ts +0 -9
- package/dist/cjs/api/types/CaseStatusEnum.js +0 -11
- package/dist/cjs/api/types/Check1.d.ts +0 -33
- package/dist/cjs/api/types/CheckEnum.d.ts +0 -46
- package/dist/cjs/api/types/CheckEnum.js +0 -23
- package/dist/cjs/api/types/CheckStatusEnum.d.ts +0 -32
- package/dist/cjs/api/types/ChecklistCheck1.d.ts +0 -15
- package/dist/esm/api/resources/operations/resources/cases/client/requests/CaseChecksRecordImageAnalysisResultsReq.d.mts +0 -15
- package/dist/esm/api/resources/operations/resources/checklists/client/Client.d.mts +0 -150
- package/dist/esm/api/resources/operations/resources/checklists/client/requests/ChecklistChecksRemove1.d.mts +0 -11
- package/dist/esm/api/resources/operations/resources/checklists/client/requests/index.d.mts +0 -5
- package/dist/esm/api/types/CaseChecksDisableReq.d.mts +0 -7
- package/dist/esm/api/types/CaseChecksDismissReq.d.mts +0 -8
- package/dist/esm/api/types/CaseChecksSummary1.d.mts +0 -27
- package/dist/esm/api/types/CaseStatusEnum.d.mts +0 -9
- package/dist/esm/api/types/CaseStatusEnum.mjs +0 -8
- package/dist/esm/api/types/Check1.d.mts +0 -33
- package/dist/esm/api/types/CheckEnum.d.mts +0 -46
- package/dist/esm/api/types/CheckEnum.mjs +0 -20
- package/dist/esm/api/types/CheckStatusEnum.d.mts +0 -32
- package/dist/esm/api/types/CheckStatusEnum.mjs +0 -12
- package/dist/esm/api/types/ChecklistCheck1.d.mts +0 -15
- /package/dist/cjs/api/resources/analytics/resources/shipping/client/requests/{AnalyticsTimePeriodRequest.js → AnalyticsTimePeriodReq.js} +0 -0
- /package/dist/cjs/api/resources/operations/resources/{checklists → departmentRoutingRules}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/operations/resources/{checklists → departmentRoutingRules}/client/index.js +0 -0
- /package/dist/cjs/api/resources/operations/resources/{cases/client/requests/CaseChecksApplyChecklistReq.js → departmentRoutingRules/client/requests/DepartmentRoutingRuleClientCreate1.js} +0 -0
- /package/dist/cjs/api/resources/operations/resources/{checklists → departmentRoutingRules}/client/requests/index.js +0 -0
- /package/dist/cjs/api/resources/operations/resources/{checklists → departmentRoutingRules}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/operations/resources/{checklists → departmentRoutingRules}/index.js +0 -0
- /package/dist/cjs/api/resources/operations/resources/{cases/client/requests/CaseChecksRecordImageAnalysisResultsReq.js → operationsTaskLists/client/requests/OperationsTaskListClientCreate1.js} +0 -0
- /package/dist/cjs/api/resources/operations/resources/{cases/client/requests/CaseNeedsActionReq.js → operationsTaskLists/client/requests/OperationsTaskListClientUpdate1.js} +0 -0
- /package/dist/cjs/api/resources/operations/resources/{cases/client/requests/CaseStatusReq.js → operationsTaskLists/client/requests/OperationsTaskListEntriesAdd1.js} +0 -0
- /package/dist/cjs/api/resources/operations/resources/{checklists/client/requests/ChecklistChecksAdd1.js → operationsTaskLists/client/requests/OperationsTaskListEntriesRemove1.js} +0 -0
- /package/dist/cjs/api/resources/operations/resources/{checklists/client/requests/ChecklistChecksRemove1.js → operationsTaskLists/client/requests/OperationsTaskListsApplyToCaseV1Request.js} +0 -0
- /package/dist/cjs/api/resources/operations/resources/{checklists/client/requests/ChecklistClientCreate1.js → operationsTaskLists/client/requests/OperationsTaskListsListV1Request.js} +0 -0
- /package/dist/cjs/api/resources/operations/resources/{checklists/client/requests/ChecklistClientUpdate1.js → operationsTasks/client/requests/OperationsTaskStatusReq.js} +0 -0
- /package/dist/cjs/api/resources/{operations/resources/checklists/client/requests/ChecklistsListV1Request.js → shipping/resources/drivers/client/requests/DriverStatsReq.js} +0 -0
- /package/dist/cjs/api/resources/{orgs/resources/connections/client/requests/SetDepartmentReq.js → shipping/resources/orderDrafts/client/requests/OrdersDraftDeleteManyReq.js} +0 -0
- /package/dist/cjs/api/{types/AnalyticsTimeBucketResponse.js → resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftAddExecutorReq.js} +0 -0
- /package/dist/cjs/api/{types/CaseChecksDisableReq.js → resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftUpdateDriverReq.js} +0 -0
- /package/dist/cjs/api/{types/CaseChecksDismissReq.js → resources/shipping/resources/orders/client/requests/OrdersCancelManyReq.js} +0 -0
- /package/dist/cjs/api/types/{CaseChecksSummary1.js → AnalyticsTimeBucketRes.js} +0 -0
- /package/dist/cjs/api/types/{Check1.js → DepartmentRoutingRule1.js} +0 -0
- /package/dist/cjs/api/types/{Checklist1.js → DriverStatsRes.js} +0 -0
- /package/dist/cjs/api/types/{ChecklistCheck1.js → OperationsTaskList1.js} +0 -0
- /package/dist/cjs/api/types/{ChecklistListRes.js → OperationsTaskListEntry1.js} +0 -0
- /package/dist/esm/api/resources/analytics/resources/shipping/client/requests/{AnalyticsTimePeriodRequest.mjs → AnalyticsTimePeriodReq.mjs} +0 -0
- /package/dist/esm/api/resources/operations/resources/{checklists → departmentRoutingRules}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/operations/resources/{checklists → departmentRoutingRules}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/operations/resources/{cases/client/requests/CaseChecksApplyChecklistReq.mjs → departmentRoutingRules/client/requests/DepartmentRoutingRuleClientCreate1.mjs} +0 -0
- /package/dist/esm/api/resources/operations/resources/{checklists → departmentRoutingRules}/client/requests/index.mjs +0 -0
- /package/dist/esm/api/resources/operations/resources/{checklists → departmentRoutingRules}/index.d.mts +0 -0
- /package/dist/esm/api/resources/operations/resources/{checklists → departmentRoutingRules}/index.mjs +0 -0
- /package/dist/esm/api/resources/operations/resources/{cases/client/requests/CaseChecksRecordImageAnalysisResultsReq.mjs → operationsTaskLists/client/requests/OperationsTaskListClientCreate1.mjs} +0 -0
- /package/dist/esm/api/resources/operations/resources/{cases/client/requests/CaseNeedsActionReq.mjs → operationsTaskLists/client/requests/OperationsTaskListClientUpdate1.mjs} +0 -0
- /package/dist/esm/api/resources/operations/resources/{cases/client/requests/CaseStatusReq.mjs → operationsTaskLists/client/requests/OperationsTaskListEntriesAdd1.mjs} +0 -0
- /package/dist/esm/api/resources/operations/resources/{checklists/client/requests/ChecklistChecksAdd1.mjs → operationsTaskLists/client/requests/OperationsTaskListEntriesRemove1.mjs} +0 -0
- /package/dist/esm/api/resources/operations/resources/{checklists/client/requests/ChecklistChecksRemove1.mjs → operationsTaskLists/client/requests/OperationsTaskListsApplyToCaseV1Request.mjs} +0 -0
- /package/dist/esm/api/resources/operations/resources/{checklists/client/requests/ChecklistClientCreate1.mjs → operationsTaskLists/client/requests/OperationsTaskListsListV1Request.mjs} +0 -0
- /package/dist/esm/api/resources/operations/resources/{checklists/client/requests/ChecklistClientUpdate1.mjs → operationsTasks/client/requests/OperationsTaskStatusReq.mjs} +0 -0
- /package/dist/esm/api/resources/{operations/resources/checklists/client/requests/ChecklistsListV1Request.mjs → shipping/resources/drivers/client/requests/DriverStatsReq.mjs} +0 -0
- /package/dist/esm/api/resources/{orgs/resources/connections/client/requests/SetDepartmentReq.mjs → shipping/resources/orderDrafts/client/requests/OrdersDraftDeleteManyReq.mjs} +0 -0
- /package/dist/esm/api/{types/AnalyticsTimeBucketResponse.mjs → resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftAddExecutorReq.mjs} +0 -0
- /package/dist/esm/api/{types/CaseChecksDisableReq.mjs → resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftUpdateDriverReq.mjs} +0 -0
- /package/dist/esm/api/{types/CaseChecksDismissReq.mjs → resources/shipping/resources/orders/client/requests/OrdersCancelManyReq.mjs} +0 -0
- /package/dist/esm/api/types/{CaseChecksSummary1.mjs → AnalyticsTimeBucketRes.mjs} +0 -0
- /package/dist/esm/api/types/{Check1.mjs → DepartmentRoutingRule1.mjs} +0 -0
- /package/dist/esm/api/types/{Checklist1.mjs → DriverStatsRes.mjs} +0 -0
- /package/dist/esm/api/types/{ChecklistCheck1.mjs → OperationsTaskList1.mjs} +0 -0
- /package/dist/esm/api/types/{ChecklistListRes.mjs → OperationsTaskListEntry1.mjs} +0 -0
|
@@ -31,7 +31,7 @@ export declare class OperationsTasks {
|
|
|
31
31
|
protected readonly _options: OperationsTasks.Options;
|
|
32
32
|
constructor(_options?: OperationsTasks.Options);
|
|
33
33
|
/**
|
|
34
|
-
* Lists
|
|
34
|
+
* 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)
|
|
35
35
|
*
|
|
36
36
|
* @param {Chrt.operations.OperationsTasksListV1Request} request
|
|
37
37
|
* @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -44,8 +44,9 @@ export declare class OperationsTasks {
|
|
|
44
44
|
* sort_order: "asc",
|
|
45
45
|
* page: 1,
|
|
46
46
|
* page_size: 1,
|
|
47
|
-
*
|
|
48
|
-
*
|
|
47
|
+
* filter_order_id: "filter_order_id",
|
|
48
|
+
* filter_department_id: "filter_department_id",
|
|
49
|
+
* filter_assigned_user_id: "filter_assigned_user_id",
|
|
49
50
|
* filter_deadline_gte: "2024-01-15T09:30:00Z",
|
|
50
51
|
* filter_deadline_lte: "2024-01-15T09:30:00Z"
|
|
51
52
|
* })
|
|
@@ -93,7 +94,7 @@ export declare class OperationsTasks {
|
|
|
93
94
|
updateV1(taskId: string, request?: Chrt.operations.OperationsTaskClientUpdate1, requestOptions?: OperationsTasks.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
94
95
|
private __updateV1;
|
|
95
96
|
/**
|
|
96
|
-
* Creates a new OperationsTask on
|
|
97
|
+
* Creates a new OperationsTask on an Order the caller's organization has a Case for. | authz: min_org_role=operator | (OperationsTaskClientCreate1) -> (PydanticObjectId)
|
|
97
98
|
*
|
|
98
99
|
* @param {Chrt.operations.OperationsTaskClientCreate1} request
|
|
99
100
|
* @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -103,7 +104,8 @@ export declare class OperationsTasks {
|
|
|
103
104
|
* @example
|
|
104
105
|
* await client.operations.operationsTasks.createV1({
|
|
105
106
|
* schema_version: 1,
|
|
106
|
-
*
|
|
107
|
+
* order_id: "order_id",
|
|
108
|
+
* task_type: "review_order_details",
|
|
107
109
|
* title: "title",
|
|
108
110
|
* description: "description"
|
|
109
111
|
* })
|
|
@@ -136,6 +138,22 @@ export declare class OperationsTasks {
|
|
|
136
138
|
*/
|
|
137
139
|
uncompleteV1(taskId: string, requestOptions?: OperationsTasks.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
138
140
|
private __uncompleteV1;
|
|
141
|
+
/**
|
|
142
|
+
* 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)
|
|
143
|
+
*
|
|
144
|
+
* @param {string} taskId
|
|
145
|
+
* @param {Chrt.operations.OperationsTaskStatusReq} request
|
|
146
|
+
* @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
|
|
147
|
+
*
|
|
148
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
149
|
+
*
|
|
150
|
+
* @example
|
|
151
|
+
* await client.operations.operationsTasks.updateStatusV1("task_id", {
|
|
152
|
+
* status: "not_started"
|
|
153
|
+
* })
|
|
154
|
+
*/
|
|
155
|
+
updateStatusV1(taskId: string, request: Chrt.operations.OperationsTaskStatusReq, requestOptions?: OperationsTasks.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
156
|
+
private __updateStatusV1;
|
|
139
157
|
/**
|
|
140
158
|
* Appends a comment to an OperationsTask's comment thread. Returns the new comment id. | authz: min_org_role=operator | (OperationsTaskAddCommentReq1) -> (str)
|
|
141
159
|
*
|
|
@@ -56,7 +56,7 @@ class OperationsTasks {
|
|
|
56
56
|
this._options = _options;
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
|
-
* Lists
|
|
59
|
+
* 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)
|
|
60
60
|
*
|
|
61
61
|
* @param {Chrt.operations.OperationsTasksListV1Request} request
|
|
62
62
|
* @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -69,8 +69,9 @@ class OperationsTasks {
|
|
|
69
69
|
* sort_order: "asc",
|
|
70
70
|
* page: 1,
|
|
71
71
|
* page_size: 1,
|
|
72
|
-
*
|
|
73
|
-
*
|
|
72
|
+
* filter_order_id: "filter_order_id",
|
|
73
|
+
* filter_department_id: "filter_department_id",
|
|
74
|
+
* filter_assigned_user_id: "filter_assigned_user_id",
|
|
74
75
|
* filter_deadline_gte: "2024-01-15T09:30:00Z",
|
|
75
76
|
* filter_deadline_lte: "2024-01-15T09:30:00Z"
|
|
76
77
|
* })
|
|
@@ -80,8 +81,8 @@ class OperationsTasks {
|
|
|
80
81
|
}
|
|
81
82
|
__listV1() {
|
|
82
83
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
83
|
-
var _a, _b, _c, _d, _e, _f
|
|
84
|
-
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize,
|
|
84
|
+
var _a, _b, _c, _d, _e, _f;
|
|
85
|
+
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, filter_order_id: filterOrderId, 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;
|
|
85
86
|
const _queryParams = {};
|
|
86
87
|
if (sortBy !== undefined) {
|
|
87
88
|
_queryParams["sort_by"] = sortBy;
|
|
@@ -95,11 +96,38 @@ class OperationsTasks {
|
|
|
95
96
|
if (pageSize !== undefined) {
|
|
96
97
|
_queryParams["page_size"] = (_b = pageSize === null || pageSize === void 0 ? void 0 : pageSize.toString()) !== null && _b !== void 0 ? _b : null;
|
|
97
98
|
}
|
|
98
|
-
if (
|
|
99
|
-
_queryParams["
|
|
99
|
+
if (filterOrderId !== undefined) {
|
|
100
|
+
_queryParams["filter_order_id"] = filterOrderId;
|
|
100
101
|
}
|
|
101
|
-
if (
|
|
102
|
-
_queryParams["
|
|
102
|
+
if (filterDepartmentId !== undefined) {
|
|
103
|
+
_queryParams["filter_department_id"] = filterDepartmentId;
|
|
104
|
+
}
|
|
105
|
+
if (filterTaskType !== undefined) {
|
|
106
|
+
if (Array.isArray(filterTaskType)) {
|
|
107
|
+
_queryParams["filter_task_type"] = filterTaskType.map((item) => item);
|
|
108
|
+
}
|
|
109
|
+
else {
|
|
110
|
+
_queryParams["filter_task_type"] = filterTaskType;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
if (filterStatus !== undefined) {
|
|
114
|
+
if (Array.isArray(filterStatus)) {
|
|
115
|
+
_queryParams["filter_status"] = filterStatus.map((item) => item);
|
|
116
|
+
}
|
|
117
|
+
else {
|
|
118
|
+
_queryParams["filter_status"] = filterStatus;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
if (filterTag !== undefined) {
|
|
122
|
+
if (Array.isArray(filterTag)) {
|
|
123
|
+
_queryParams["filter_tag"] = filterTag.map((item) => item);
|
|
124
|
+
}
|
|
125
|
+
else {
|
|
126
|
+
_queryParams["filter_tag"] = filterTag;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
if (filterAssignedUserId !== undefined) {
|
|
130
|
+
_queryParams["filter_assigned_user_id"] = filterAssignedUserId;
|
|
103
131
|
}
|
|
104
132
|
if (filterDeadlineGte !== undefined) {
|
|
105
133
|
_queryParams["filter_deadline_gte"] = filterDeadlineGte;
|
|
@@ -107,9 +135,9 @@ class OperationsTasks {
|
|
|
107
135
|
if (filterDeadlineLte !== undefined) {
|
|
108
136
|
_queryParams["filter_deadline_lte"] = filterDeadlineLte;
|
|
109
137
|
}
|
|
110
|
-
let _headers = (0, headers_js_1.mergeHeaders)((
|
|
111
|
-
const _response = yield ((
|
|
112
|
-
url: core.url.join((
|
|
138
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
139
|
+
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
140
|
+
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ChrtEnvironment.Local, "operations/operations_tasks/list/v1"),
|
|
113
141
|
method: "GET",
|
|
114
142
|
headers: _headers,
|
|
115
143
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -331,7 +359,7 @@ class OperationsTasks {
|
|
|
331
359
|
});
|
|
332
360
|
}
|
|
333
361
|
/**
|
|
334
|
-
* Creates a new OperationsTask on
|
|
362
|
+
* Creates a new OperationsTask on an Order the caller's organization has a Case for. | authz: min_org_role=operator | (OperationsTaskClientCreate1) -> (PydanticObjectId)
|
|
335
363
|
*
|
|
336
364
|
* @param {Chrt.operations.OperationsTaskClientCreate1} request
|
|
337
365
|
* @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -341,7 +369,8 @@ class OperationsTasks {
|
|
|
341
369
|
* @example
|
|
342
370
|
* await client.operations.operationsTasks.createV1({
|
|
343
371
|
* schema_version: 1,
|
|
344
|
-
*
|
|
372
|
+
* order_id: "order_id",
|
|
373
|
+
* task_type: "review_order_details",
|
|
345
374
|
* title: "title",
|
|
346
375
|
* description: "description"
|
|
347
376
|
* })
|
|
@@ -515,6 +544,71 @@ class OperationsTasks {
|
|
|
515
544
|
}
|
|
516
545
|
});
|
|
517
546
|
}
|
|
547
|
+
/**
|
|
548
|
+
* 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)
|
|
549
|
+
*
|
|
550
|
+
* @param {string} taskId
|
|
551
|
+
* @param {Chrt.operations.OperationsTaskStatusReq} request
|
|
552
|
+
* @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
|
|
553
|
+
*
|
|
554
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
555
|
+
*
|
|
556
|
+
* @example
|
|
557
|
+
* await client.operations.operationsTasks.updateStatusV1("task_id", {
|
|
558
|
+
* status: "not_started"
|
|
559
|
+
* })
|
|
560
|
+
*/
|
|
561
|
+
updateStatusV1(taskId, request, requestOptions) {
|
|
562
|
+
return core.HttpResponsePromise.fromPromise(this.__updateStatusV1(taskId, request, requestOptions));
|
|
563
|
+
}
|
|
564
|
+
__updateStatusV1(taskId, request, requestOptions) {
|
|
565
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
566
|
+
var _a, _b, _c, _d;
|
|
567
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
568
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
569
|
+
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/status/v1/${encodeURIComponent(taskId)}`),
|
|
570
|
+
method: "PATCH",
|
|
571
|
+
headers: _headers,
|
|
572
|
+
contentType: "application/json",
|
|
573
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
574
|
+
requestType: "json",
|
|
575
|
+
body: request,
|
|
576
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
577
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
578
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
579
|
+
});
|
|
580
|
+
if (_response.ok) {
|
|
581
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
582
|
+
}
|
|
583
|
+
if (_response.error.reason === "status-code") {
|
|
584
|
+
switch (_response.error.statusCode) {
|
|
585
|
+
case 422:
|
|
586
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
587
|
+
default:
|
|
588
|
+
throw new errors.ChrtError({
|
|
589
|
+
statusCode: _response.error.statusCode,
|
|
590
|
+
body: _response.error.body,
|
|
591
|
+
rawResponse: _response.rawResponse,
|
|
592
|
+
});
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
switch (_response.error.reason) {
|
|
596
|
+
case "non-json":
|
|
597
|
+
throw new errors.ChrtError({
|
|
598
|
+
statusCode: _response.error.statusCode,
|
|
599
|
+
body: _response.error.rawBody,
|
|
600
|
+
rawResponse: _response.rawResponse,
|
|
601
|
+
});
|
|
602
|
+
case "timeout":
|
|
603
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /operations/operations_tasks/status/v1/{task_id}.");
|
|
604
|
+
case "unknown":
|
|
605
|
+
throw new errors.ChrtError({
|
|
606
|
+
message: _response.error.errorMessage,
|
|
607
|
+
rawResponse: _response.rawResponse,
|
|
608
|
+
});
|
|
609
|
+
}
|
|
610
|
+
});
|
|
611
|
+
}
|
|
518
612
|
/**
|
|
519
613
|
* Appends a comment to an OperationsTask's comment thread. Returns the new comment id. | authz: min_org_role=operator | (OperationsTaskAddCommentReq1) -> (str)
|
|
520
614
|
*
|
|
@@ -1,19 +1,24 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as Chrt from "../../../../../../index.js";
|
|
4
5
|
/**
|
|
5
6
|
* @example
|
|
6
7
|
* {
|
|
7
8
|
* schema_version: 1,
|
|
8
|
-
*
|
|
9
|
+
* order_id: "order_id",
|
|
10
|
+
* task_type: "review_order_details",
|
|
9
11
|
* title: "title",
|
|
10
12
|
* description: "description"
|
|
11
13
|
* }
|
|
12
14
|
*/
|
|
13
15
|
export interface OperationsTaskClientCreate1 {
|
|
14
16
|
schema_version: number;
|
|
15
|
-
|
|
17
|
+
order_id: string;
|
|
18
|
+
task_type: Chrt.OperationsTaskTypeEnum;
|
|
16
19
|
title: string;
|
|
17
20
|
description: string;
|
|
18
21
|
deadline_timestamp?: string;
|
|
22
|
+
tags?: string[];
|
|
23
|
+
assigned_user_ids?: string[];
|
|
19
24
|
}
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as Chrt from "../../../../../../index.js";
|
|
4
5
|
/**
|
|
5
6
|
* @example
|
|
6
7
|
* {}
|
|
7
8
|
*/
|
|
8
9
|
export interface OperationsTaskClientUpdate1 {
|
|
10
|
+
task_type?: Chrt.OperationsTaskTypeEnum | null;
|
|
9
11
|
title?: string | null;
|
|
10
12
|
description?: string | null;
|
|
11
13
|
deadline_timestamp?: string | null;
|
|
14
|
+
tags?: string[];
|
|
15
|
+
assigned_user_ids?: string[];
|
|
12
16
|
}
|
|
@@ -5,9 +5,9 @@ import * as Chrt from "../../../../../../index.js";
|
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
8
|
-
* status: "
|
|
8
|
+
* status: "not_started"
|
|
9
9
|
* }
|
|
10
10
|
*/
|
|
11
|
-
export interface
|
|
12
|
-
status: Chrt.
|
|
11
|
+
export interface OperationsTaskStatusReq {
|
|
12
|
+
status: Chrt.OperationsTaskStatusEnum;
|
|
13
13
|
}
|
|
@@ -9,8 +9,9 @@ import * as Chrt from "../../../../../../index.js";
|
|
|
9
9
|
* sort_order: "asc",
|
|
10
10
|
* page: 1,
|
|
11
11
|
* page_size: 1,
|
|
12
|
-
*
|
|
13
|
-
*
|
|
12
|
+
* filter_order_id: "filter_order_id",
|
|
13
|
+
* filter_department_id: "filter_department_id",
|
|
14
|
+
* filter_assigned_user_id: "filter_assigned_user_id",
|
|
14
15
|
* filter_deadline_gte: "2024-01-15T09:30:00Z",
|
|
15
16
|
* filter_deadline_lte: "2024-01-15T09:30:00Z"
|
|
16
17
|
* }
|
|
@@ -22,10 +23,18 @@ export interface OperationsTasksListV1Request {
|
|
|
22
23
|
sort_order?: Chrt.SortOrderEnum | null;
|
|
23
24
|
page?: number | null;
|
|
24
25
|
page_size?: number | null;
|
|
25
|
-
/** Filter by
|
|
26
|
-
|
|
27
|
-
/** Filter
|
|
28
|
-
|
|
26
|
+
/** Filter by order id */
|
|
27
|
+
filter_order_id?: string | null;
|
|
28
|
+
/** Filter to tasks routed to this department (desk queue) */
|
|
29
|
+
filter_department_id?: string | null;
|
|
30
|
+
/** Filter by task type(s). Defaults to all types. */
|
|
31
|
+
filter_task_type?: (Chrt.OperationsTaskTypeEnum | null) | (Chrt.OperationsTaskTypeEnum | null)[];
|
|
32
|
+
/** Filter by status(es). Defaults to all statuses. */
|
|
33
|
+
filter_status?: (Chrt.OperationsTaskStatusEnum | null) | (Chrt.OperationsTaskStatusEnum | null)[];
|
|
34
|
+
/** Filter to tasks carrying ANY of these tags */
|
|
35
|
+
filter_tag?: (string | null) | (string | null)[];
|
|
36
|
+
/** Filter to tasks this user is directly assigned to */
|
|
37
|
+
filter_assigned_user_id?: string | null;
|
|
29
38
|
/** Filter to tasks with deadline >= this timestamp */
|
|
30
39
|
filter_deadline_gte?: string | null;
|
|
31
40
|
/** Filter to tasks with deadline <= this timestamp */
|
package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { type OperationsTasksListV1Request } from "./OperationsTasksListV1Request.js";
|
|
2
2
|
export { type OperationsTaskClientUpdate1 } from "./OperationsTaskClientUpdate1.js";
|
|
3
3
|
export { type OperationsTaskClientCreate1 } from "./OperationsTaskClientCreate1.js";
|
|
4
|
+
export { type OperationsTaskStatusReq } from "./OperationsTaskStatusReq.js";
|
|
4
5
|
export { type OperationsTaskAddCommentReq1 } from "./OperationsTaskAddCommentReq1.js";
|
|
@@ -107,20 +107,6 @@ export declare class Connections {
|
|
|
107
107
|
*/
|
|
108
108
|
createConnectionToShipperV1(request: Chrt.CreateConnectionReq, requestOptions?: Connections.RequestOptions): core.HttpResponsePromise<string>;
|
|
109
109
|
private __createConnectionToShipperV1;
|
|
110
|
-
/**
|
|
111
|
-
* Sets or clears the department on a connection. Send null to clear. | authz: min_org_role=administrator | (SetDepartmentReq) -> (bool)
|
|
112
|
-
*
|
|
113
|
-
* @param {string} connectionId
|
|
114
|
-
* @param {Chrt.orgs.SetDepartmentReq} request
|
|
115
|
-
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
116
|
-
*
|
|
117
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
118
|
-
*
|
|
119
|
-
* @example
|
|
120
|
-
* await client.orgs.connections.setDepartmentV1("connection_id")
|
|
121
|
-
*/
|
|
122
|
-
setDepartmentV1(connectionId: string, request?: Chrt.orgs.SetDepartmentReq, requestOptions?: Connections.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
123
|
-
private __setDepartmentV1;
|
|
124
110
|
/**
|
|
125
111
|
* Toggles `auto_assign_enabled` on a provider-provider connection — the executor org's opt-in for receiving direct (non-bidding) task-group assignments. Executor org only, min role: administrator. | (ProviderProviderUpdateAutoAssignReq) -> (bool)
|
|
126
112
|
*
|
|
@@ -393,69 +393,6 @@ class Connections {
|
|
|
393
393
|
}
|
|
394
394
|
});
|
|
395
395
|
}
|
|
396
|
-
/**
|
|
397
|
-
* Sets or clears the department on a connection. Send null to clear. | authz: min_org_role=administrator | (SetDepartmentReq) -> (bool)
|
|
398
|
-
*
|
|
399
|
-
* @param {string} connectionId
|
|
400
|
-
* @param {Chrt.orgs.SetDepartmentReq} request
|
|
401
|
-
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
402
|
-
*
|
|
403
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
404
|
-
*
|
|
405
|
-
* @example
|
|
406
|
-
* await client.orgs.connections.setDepartmentV1("connection_id")
|
|
407
|
-
*/
|
|
408
|
-
setDepartmentV1(connectionId, request = {}, requestOptions) {
|
|
409
|
-
return core.HttpResponsePromise.fromPromise(this.__setDepartmentV1(connectionId, request, requestOptions));
|
|
410
|
-
}
|
|
411
|
-
__setDepartmentV1(connectionId_1) {
|
|
412
|
-
return __awaiter(this, arguments, void 0, function* (connectionId, request = {}, requestOptions) {
|
|
413
|
-
var _a, _b, _c, _d;
|
|
414
|
-
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
415
|
-
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
416
|
-
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, `orgs/connections/set_department/v1/${encodeURIComponent(connectionId)}`),
|
|
417
|
-
method: "PATCH",
|
|
418
|
-
headers: _headers,
|
|
419
|
-
contentType: "application/json",
|
|
420
|
-
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
421
|
-
requestType: "json",
|
|
422
|
-
body: request,
|
|
423
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
424
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
425
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
426
|
-
});
|
|
427
|
-
if (_response.ok) {
|
|
428
|
-
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
429
|
-
}
|
|
430
|
-
if (_response.error.reason === "status-code") {
|
|
431
|
-
switch (_response.error.statusCode) {
|
|
432
|
-
case 422:
|
|
433
|
-
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
434
|
-
default:
|
|
435
|
-
throw new errors.ChrtError({
|
|
436
|
-
statusCode: _response.error.statusCode,
|
|
437
|
-
body: _response.error.body,
|
|
438
|
-
rawResponse: _response.rawResponse,
|
|
439
|
-
});
|
|
440
|
-
}
|
|
441
|
-
}
|
|
442
|
-
switch (_response.error.reason) {
|
|
443
|
-
case "non-json":
|
|
444
|
-
throw new errors.ChrtError({
|
|
445
|
-
statusCode: _response.error.statusCode,
|
|
446
|
-
body: _response.error.rawBody,
|
|
447
|
-
rawResponse: _response.rawResponse,
|
|
448
|
-
});
|
|
449
|
-
case "timeout":
|
|
450
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /orgs/connections/set_department/v1/{connection_id}.");
|
|
451
|
-
case "unknown":
|
|
452
|
-
throw new errors.ChrtError({
|
|
453
|
-
message: _response.error.errorMessage,
|
|
454
|
-
rawResponse: _response.rawResponse,
|
|
455
|
-
});
|
|
456
|
-
}
|
|
457
|
-
});
|
|
458
|
-
}
|
|
459
396
|
/**
|
|
460
397
|
* Toggles `auto_assign_enabled` on a provider-provider connection — the executor org's opt-in for receiving direct (non-bidding) task-group assignments. Executor org only, min role: administrator. | (ProviderProviderUpdateAutoAssignReq) -> (bool)
|
|
461
398
|
*
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
export { type ConnectionsListShippersV1Request } from "./ConnectionsListShippersV1Request.js";
|
|
2
2
|
export { type ConnectionsListProvidersV1Request } from "./ConnectionsListProvidersV1Request.js";
|
|
3
|
-
export { type SetDepartmentReq } from "./SetDepartmentReq.js";
|
|
4
3
|
export { type ProviderProviderUpdateAutoAssignReq } from "./ProviderProviderUpdateAutoAssignReq.js";
|
|
@@ -13,7 +13,6 @@ export interface OffChrtProviderOrgClientCreate1 {
|
|
|
13
13
|
schema_version: number;
|
|
14
14
|
company_name?: string | null;
|
|
15
15
|
industry?: string | null;
|
|
16
|
-
department_id?: string | null;
|
|
17
16
|
street_address?: Chrt.LocationFeature | null;
|
|
18
17
|
contact_first_name?: string | null;
|
|
19
18
|
contact_last_name?: string | null;
|
|
@@ -17,8 +17,6 @@ export interface OffChrtProviderOrgClientUpdate1 {
|
|
|
17
17
|
email_address_secondary?: string | null;
|
|
18
18
|
job_title?: string | null;
|
|
19
19
|
notes?: string | null;
|
|
20
|
-
department_id?: string | null;
|
|
21
|
-
department_id__set_to_None?: boolean;
|
|
22
20
|
industry__set_to_None?: boolean;
|
|
23
21
|
street_address__set_to_None?: boolean;
|
|
24
22
|
contact_first_name__set_to_None?: boolean;
|
|
@@ -13,7 +13,6 @@ export interface OffChrtShipperOrgClientCreate1 {
|
|
|
13
13
|
schema_version: number;
|
|
14
14
|
company_name?: string | null;
|
|
15
15
|
industry?: string | null;
|
|
16
|
-
department_id?: string | null;
|
|
17
16
|
street_address?: Chrt.LocationFeature | null;
|
|
18
17
|
contact_first_name?: string | null;
|
|
19
18
|
contact_last_name?: string | null;
|
|
@@ -17,8 +17,6 @@ export interface OffChrtShipperOrgClientUpdate1 {
|
|
|
17
17
|
email_address_secondary?: string | null;
|
|
18
18
|
job_title?: string | null;
|
|
19
19
|
notes?: string | null;
|
|
20
|
-
department_id?: string | null;
|
|
21
|
-
department_id__set_to_None?: boolean;
|
|
22
20
|
industry__set_to_None?: boolean;
|
|
23
21
|
street_address__set_to_None?: boolean;
|
|
24
22
|
contact_first_name__set_to_None?: boolean;
|
|
@@ -33,6 +33,23 @@ export declare class Drivers {
|
|
|
33
33
|
protected _complianceDocuments: ComplianceDocuments | undefined;
|
|
34
34
|
constructor(_options?: Drivers.Options);
|
|
35
35
|
get complianceDocuments(): ComplianceDocuments;
|
|
36
|
+
/**
|
|
37
|
+
* Retrieves driver stats (hours worked + observed mileage) with overlap-corrected duration. | authz: allowed_org_types=[provider], min_org_role=operator | (DriverStatsReq) -> (DriverStatsRes)
|
|
38
|
+
*
|
|
39
|
+
* @param {string} driverId
|
|
40
|
+
* @param {Chrt.shipping.DriverStatsReq} request
|
|
41
|
+
* @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
|
|
42
|
+
*
|
|
43
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* await client.shipping.drivers.getStatsV1("driver_id", {
|
|
47
|
+
* start_timestamp: "2024-01-15T09:30:00Z",
|
|
48
|
+
* end_timestamp: "2024-01-15T09:30:00Z"
|
|
49
|
+
* })
|
|
50
|
+
*/
|
|
51
|
+
getStatsV1(driverId: string, request: Chrt.shipping.DriverStatsReq, requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<Chrt.DriverStatsRes>;
|
|
52
|
+
private __getStatsV1;
|
|
36
53
|
/**
|
|
37
54
|
* Retrieves driver information for the caller within their organization. | () -> (Driver1)
|
|
38
55
|
*
|
|
@@ -71,6 +71,72 @@ class Drivers {
|
|
|
71
71
|
var _a;
|
|
72
72
|
return ((_a = this._complianceDocuments) !== null && _a !== void 0 ? _a : (this._complianceDocuments = new Client_js_1.ComplianceDocuments(this._options)));
|
|
73
73
|
}
|
|
74
|
+
/**
|
|
75
|
+
* Retrieves driver stats (hours worked + observed mileage) with overlap-corrected duration. | authz: allowed_org_types=[provider], min_org_role=operator | (DriverStatsReq) -> (DriverStatsRes)
|
|
76
|
+
*
|
|
77
|
+
* @param {string} driverId
|
|
78
|
+
* @param {Chrt.shipping.DriverStatsReq} request
|
|
79
|
+
* @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
|
|
80
|
+
*
|
|
81
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
82
|
+
*
|
|
83
|
+
* @example
|
|
84
|
+
* await client.shipping.drivers.getStatsV1("driver_id", {
|
|
85
|
+
* start_timestamp: "2024-01-15T09:30:00Z",
|
|
86
|
+
* end_timestamp: "2024-01-15T09:30:00Z"
|
|
87
|
+
* })
|
|
88
|
+
*/
|
|
89
|
+
getStatsV1(driverId, request, requestOptions) {
|
|
90
|
+
return core.HttpResponsePromise.fromPromise(this.__getStatsV1(driverId, request, requestOptions));
|
|
91
|
+
}
|
|
92
|
+
__getStatsV1(driverId, request, requestOptions) {
|
|
93
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
94
|
+
var _a, _b, _c, _d;
|
|
95
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
96
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
97
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `shipping/drivers/stats/v1/${encodeURIComponent(driverId)}`),
|
|
98
|
+
method: "POST",
|
|
99
|
+
headers: _headers,
|
|
100
|
+
contentType: "application/json",
|
|
101
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
102
|
+
requestType: "json",
|
|
103
|
+
body: request,
|
|
104
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
105
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
106
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
107
|
+
});
|
|
108
|
+
if (_response.ok) {
|
|
109
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
110
|
+
}
|
|
111
|
+
if (_response.error.reason === "status-code") {
|
|
112
|
+
switch (_response.error.statusCode) {
|
|
113
|
+
case 422:
|
|
114
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
115
|
+
default:
|
|
116
|
+
throw new errors.ChrtError({
|
|
117
|
+
statusCode: _response.error.statusCode,
|
|
118
|
+
body: _response.error.body,
|
|
119
|
+
rawResponse: _response.rawResponse,
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
switch (_response.error.reason) {
|
|
124
|
+
case "non-json":
|
|
125
|
+
throw new errors.ChrtError({
|
|
126
|
+
statusCode: _response.error.statusCode,
|
|
127
|
+
body: _response.error.rawBody,
|
|
128
|
+
rawResponse: _response.rawResponse,
|
|
129
|
+
});
|
|
130
|
+
case "timeout":
|
|
131
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /shipping/drivers/stats/v1/{driver_id}.");
|
|
132
|
+
case "unknown":
|
|
133
|
+
throw new errors.ChrtError({
|
|
134
|
+
message: _response.error.errorMessage,
|
|
135
|
+
rawResponse: _response.rawResponse,
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
});
|
|
139
|
+
}
|
|
74
140
|
/**
|
|
75
141
|
* Retrieves driver information for the caller within their organization. | () -> (Driver1)
|
|
76
142
|
*
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* start_timestamp: "2024-01-15T09:30:00Z",
|
|
8
|
+
* end_timestamp: "2024-01-15T09:30:00Z"
|
|
9
|
+
* }
|
|
10
|
+
*/
|
|
11
|
+
export interface DriverStatsReq {
|
|
12
|
+
start_timestamp: string;
|
|
13
|
+
end_timestamp: string;
|
|
14
|
+
excluded_task_group_ids?: string[];
|
|
15
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export { type DriverStatsReq } from "./DriverStatsReq.js";
|
|
1
2
|
export { type DriversListOrgMembersAndDriversV1Request } from "./DriversListOrgMembersAndDriversV1Request.js";
|
|
2
3
|
export { type DriversListV1Request } from "./DriversListV1Request.js";
|
|
3
4
|
export { type DriverClientCreate1 } from "./DriverClientCreate1.js";
|
|
@@ -88,6 +88,21 @@ export declare class OrderDrafts {
|
|
|
88
88
|
*/
|
|
89
89
|
deleteV1(orderId: string, requestOptions?: OrderDrafts.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
90
90
|
private __deleteV1;
|
|
91
|
+
/**
|
|
92
|
+
* Deletes multiple draft orders and associated entities. | (OrdersDraftDeleteManyReq) -> (bool)
|
|
93
|
+
*
|
|
94
|
+
* @param {Chrt.shipping.OrdersDraftDeleteManyReq} request
|
|
95
|
+
* @param {OrderDrafts.RequestOptions} requestOptions - Request-specific configuration.
|
|
96
|
+
*
|
|
97
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
98
|
+
*
|
|
99
|
+
* @example
|
|
100
|
+
* await client.shipping.orderDrafts.deleteManyV1({
|
|
101
|
+
* order_ids: ["order_ids"]
|
|
102
|
+
* })
|
|
103
|
+
*/
|
|
104
|
+
deleteManyV1(request: Chrt.shipping.OrdersDraftDeleteManyReq, requestOptions?: OrderDrafts.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
105
|
+
private __deleteManyV1;
|
|
91
106
|
/**
|
|
92
107
|
* Converts an order screenshot into lightly structured text for the AI order builder. | (UploadFile) -> (str)
|
|
93
108
|
*
|