@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
|
@@ -45,26 +45,26 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
45
45
|
});
|
|
46
46
|
};
|
|
47
47
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
|
-
exports.
|
|
48
|
+
exports.OperationsTaskLists = void 0;
|
|
49
49
|
const environments = __importStar(require("../../../../../../environments.js"));
|
|
50
50
|
const core = __importStar(require("../../../../../../core/index.js"));
|
|
51
51
|
const Chrt = __importStar(require("../../../../../index.js"));
|
|
52
52
|
const headers_js_1 = require("../../../../../../core/headers.js");
|
|
53
53
|
const errors = __importStar(require("../../../../../../errors/index.js"));
|
|
54
|
-
class
|
|
54
|
+
class OperationsTaskLists {
|
|
55
55
|
constructor(_options = {}) {
|
|
56
56
|
this._options = _options;
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
|
-
* Lists
|
|
59
|
+
* Lists OperationsTaskLists for the caller's organization with filtering, sorting, and pagination. | authz: min_org_role=operator | () -> (OperationsTaskListListRes)
|
|
60
60
|
*
|
|
61
|
-
* @param {Chrt.operations.
|
|
62
|
-
* @param {
|
|
61
|
+
* @param {Chrt.operations.OperationsTaskListsListV1Request} request
|
|
62
|
+
* @param {OperationsTaskLists.RequestOptions} requestOptions - Request-specific configuration.
|
|
63
63
|
*
|
|
64
64
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
65
65
|
*
|
|
66
66
|
* @example
|
|
67
|
-
* await client.operations.
|
|
67
|
+
* await client.operations.operationsTaskLists.listV1({
|
|
68
68
|
* sort_by: "created_at_timestamp",
|
|
69
69
|
* sort_order: "asc",
|
|
70
70
|
* page: 1,
|
|
@@ -97,7 +97,7 @@ class Checklists {
|
|
|
97
97
|
}
|
|
98
98
|
let _headers = (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
99
99
|
const _response = yield ((_e = this._options.fetcher) !== null && _e !== void 0 ? _e : core.fetcher)({
|
|
100
|
-
url: core.url.join((_g = (_f = (yield core.Supplier.get(this._options.baseUrl))) !== null && _f !== void 0 ? _f : (yield core.Supplier.get(this._options.environment))) !== null && _g !== void 0 ? _g : environments.ChrtEnvironment.Local, "operations/
|
|
100
|
+
url: core.url.join((_g = (_f = (yield core.Supplier.get(this._options.baseUrl))) !== null && _f !== void 0 ? _f : (yield core.Supplier.get(this._options.environment))) !== null && _g !== void 0 ? _g : environments.ChrtEnvironment.Local, "operations/operations_task_lists/list/v1"),
|
|
101
101
|
method: "GET",
|
|
102
102
|
headers: _headers,
|
|
103
103
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -128,7 +128,7 @@ class Checklists {
|
|
|
128
128
|
rawResponse: _response.rawResponse,
|
|
129
129
|
});
|
|
130
130
|
case "timeout":
|
|
131
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /operations/
|
|
131
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /operations/operations_task_lists/list/v1.");
|
|
132
132
|
case "unknown":
|
|
133
133
|
throw new errors.ChrtError({
|
|
134
134
|
message: _response.error.errorMessage,
|
|
@@ -138,25 +138,25 @@ class Checklists {
|
|
|
138
138
|
});
|
|
139
139
|
}
|
|
140
140
|
/**
|
|
141
|
-
* Retrieves a single
|
|
141
|
+
* Retrieves a single OperationsTaskList by id. | authz: min_org_role=operator | () -> (OperationsTaskList1)
|
|
142
142
|
*
|
|
143
|
-
* @param {string}
|
|
144
|
-
* @param {
|
|
143
|
+
* @param {string} taskListId
|
|
144
|
+
* @param {OperationsTaskLists.RequestOptions} requestOptions - Request-specific configuration.
|
|
145
145
|
*
|
|
146
146
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
147
147
|
*
|
|
148
148
|
* @example
|
|
149
|
-
* await client.operations.
|
|
149
|
+
* await client.operations.operationsTaskLists.getV1("task_list_id")
|
|
150
150
|
*/
|
|
151
|
-
getV1(
|
|
152
|
-
return core.HttpResponsePromise.fromPromise(this.__getV1(
|
|
151
|
+
getV1(taskListId, requestOptions) {
|
|
152
|
+
return core.HttpResponsePromise.fromPromise(this.__getV1(taskListId, requestOptions));
|
|
153
153
|
}
|
|
154
|
-
__getV1(
|
|
154
|
+
__getV1(taskListId, requestOptions) {
|
|
155
155
|
return __awaiter(this, void 0, void 0, function* () {
|
|
156
156
|
var _a, _b, _c, _d;
|
|
157
157
|
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);
|
|
158
158
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
159
|
-
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/
|
|
159
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `operations/operations_task_lists/v1/${encodeURIComponent(taskListId)}`),
|
|
160
160
|
method: "GET",
|
|
161
161
|
headers: _headers,
|
|
162
162
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -187,7 +187,7 @@ class Checklists {
|
|
|
187
187
|
rawResponse: _response.rawResponse,
|
|
188
188
|
});
|
|
189
189
|
case "timeout":
|
|
190
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /operations/
|
|
190
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /operations/operations_task_lists/v1/{task_list_id}.");
|
|
191
191
|
case "unknown":
|
|
192
192
|
throw new errors.ChrtError({
|
|
193
193
|
message: _response.error.errorMessage,
|
|
@@ -197,26 +197,26 @@ class Checklists {
|
|
|
197
197
|
});
|
|
198
198
|
}
|
|
199
199
|
/**
|
|
200
|
-
* Updates scalar fields (name, description) on
|
|
200
|
+
* Updates scalar fields (name, description, tags) on an OperationsTaskList. | authz: min_org_role=operator | (OperationsTaskListClientUpdate1) -> (bool)
|
|
201
201
|
*
|
|
202
|
-
* @param {string}
|
|
203
|
-
* @param {Chrt.operations.
|
|
204
|
-
* @param {
|
|
202
|
+
* @param {string} taskListId
|
|
203
|
+
* @param {Chrt.operations.OperationsTaskListClientUpdate1} request
|
|
204
|
+
* @param {OperationsTaskLists.RequestOptions} requestOptions - Request-specific configuration.
|
|
205
205
|
*
|
|
206
206
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
207
207
|
*
|
|
208
208
|
* @example
|
|
209
|
-
* await client.operations.
|
|
209
|
+
* await client.operations.operationsTaskLists.updateV1("task_list_id")
|
|
210
210
|
*/
|
|
211
|
-
updateV1(
|
|
212
|
-
return core.HttpResponsePromise.fromPromise(this.__updateV1(
|
|
211
|
+
updateV1(taskListId, request = {}, requestOptions) {
|
|
212
|
+
return core.HttpResponsePromise.fromPromise(this.__updateV1(taskListId, request, requestOptions));
|
|
213
213
|
}
|
|
214
|
-
__updateV1(
|
|
215
|
-
return __awaiter(this, arguments, void 0, function* (
|
|
214
|
+
__updateV1(taskListId_1) {
|
|
215
|
+
return __awaiter(this, arguments, void 0, function* (taskListId, request = {}, requestOptions) {
|
|
216
216
|
var _a, _b, _c, _d;
|
|
217
217
|
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);
|
|
218
218
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
219
|
-
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/
|
|
219
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `operations/operations_task_lists/v1/${encodeURIComponent(taskListId)}`),
|
|
220
220
|
method: "PATCH",
|
|
221
221
|
headers: _headers,
|
|
222
222
|
contentType: "application/json",
|
|
@@ -250,7 +250,7 @@ class Checklists {
|
|
|
250
250
|
rawResponse: _response.rawResponse,
|
|
251
251
|
});
|
|
252
252
|
case "timeout":
|
|
253
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /operations/
|
|
253
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /operations/operations_task_lists/v1/{task_list_id}.");
|
|
254
254
|
case "unknown":
|
|
255
255
|
throw new errors.ChrtError({
|
|
256
256
|
message: _response.error.errorMessage,
|
|
@@ -260,15 +260,15 @@ class Checklists {
|
|
|
260
260
|
});
|
|
261
261
|
}
|
|
262
262
|
/**
|
|
263
|
-
* Creates a new
|
|
263
|
+
* Creates a new OperationsTaskList for the caller's organization. | authz: min_org_role=operator | (OperationsTaskListClientCreate1) -> (PydanticObjectId)
|
|
264
264
|
*
|
|
265
|
-
* @param {Chrt.operations.
|
|
266
|
-
* @param {
|
|
265
|
+
* @param {Chrt.operations.OperationsTaskListClientCreate1} request
|
|
266
|
+
* @param {OperationsTaskLists.RequestOptions} requestOptions - Request-specific configuration.
|
|
267
267
|
*
|
|
268
268
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
269
269
|
*
|
|
270
270
|
* @example
|
|
271
|
-
* await client.operations.
|
|
271
|
+
* await client.operations.operationsTaskLists.createV1({
|
|
272
272
|
* schema_version: 1,
|
|
273
273
|
* name: "name"
|
|
274
274
|
* })
|
|
@@ -281,7 +281,7 @@ class Checklists {
|
|
|
281
281
|
var _a, _b, _c, _d;
|
|
282
282
|
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);
|
|
283
283
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
284
|
-
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/
|
|
284
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "operations/operations_task_lists/v1"),
|
|
285
285
|
method: "POST",
|
|
286
286
|
headers: _headers,
|
|
287
287
|
contentType: "application/json",
|
|
@@ -315,7 +315,7 @@ class Checklists {
|
|
|
315
315
|
rawResponse: _response.rawResponse,
|
|
316
316
|
});
|
|
317
317
|
case "timeout":
|
|
318
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /operations/
|
|
318
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /operations/operations_task_lists/v1.");
|
|
319
319
|
case "unknown":
|
|
320
320
|
throw new errors.ChrtError({
|
|
321
321
|
message: _response.error.errorMessage,
|
|
@@ -325,26 +325,26 @@ class Checklists {
|
|
|
325
325
|
});
|
|
326
326
|
}
|
|
327
327
|
/**
|
|
328
|
-
*
|
|
328
|
+
* Appends entries to an OperationsTaskList's `entries` array. | authz: min_org_role=operator | (OperationsTaskListEntriesAdd1) -> (bool)
|
|
329
329
|
*
|
|
330
|
-
* @param {string}
|
|
331
|
-
* @param {Chrt.operations.
|
|
332
|
-
* @param {
|
|
330
|
+
* @param {string} taskListId
|
|
331
|
+
* @param {Chrt.operations.OperationsTaskListEntriesAdd1} request
|
|
332
|
+
* @param {OperationsTaskLists.RequestOptions} requestOptions - Request-specific configuration.
|
|
333
333
|
*
|
|
334
334
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
335
335
|
*
|
|
336
336
|
* @example
|
|
337
|
-
* await client.operations.
|
|
337
|
+
* await client.operations.operationsTaskLists.addEntriesV1("task_list_id")
|
|
338
338
|
*/
|
|
339
|
-
|
|
340
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
339
|
+
addEntriesV1(taskListId, request = {}, requestOptions) {
|
|
340
|
+
return core.HttpResponsePromise.fromPromise(this.__addEntriesV1(taskListId, request, requestOptions));
|
|
341
341
|
}
|
|
342
|
-
|
|
343
|
-
return __awaiter(this, arguments, void 0, function* (
|
|
342
|
+
__addEntriesV1(taskListId_1) {
|
|
343
|
+
return __awaiter(this, arguments, void 0, function* (taskListId, request = {}, requestOptions) {
|
|
344
344
|
var _a, _b, _c, _d;
|
|
345
345
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
346
346
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
347
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `operations/
|
|
347
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `operations/operations_task_lists/entries/add/v1/${encodeURIComponent(taskListId)}`),
|
|
348
348
|
method: "POST",
|
|
349
349
|
headers: _headers,
|
|
350
350
|
contentType: "application/json",
|
|
@@ -378,7 +378,7 @@ class Checklists {
|
|
|
378
378
|
rawResponse: _response.rawResponse,
|
|
379
379
|
});
|
|
380
380
|
case "timeout":
|
|
381
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /operations/
|
|
381
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /operations/operations_task_lists/entries/add/v1/{task_list_id}.");
|
|
382
382
|
case "unknown":
|
|
383
383
|
throw new errors.ChrtError({
|
|
384
384
|
message: _response.error.errorMessage,
|
|
@@ -388,26 +388,26 @@ class Checklists {
|
|
|
388
388
|
});
|
|
389
389
|
}
|
|
390
390
|
/**
|
|
391
|
-
* Removes entries from
|
|
391
|
+
* Removes entries from an OperationsTaskList by entry id. | authz: min_org_role=operator | (OperationsTaskListEntriesRemove1) -> (bool)
|
|
392
392
|
*
|
|
393
|
-
* @param {string}
|
|
394
|
-
* @param {Chrt.operations.
|
|
395
|
-
* @param {
|
|
393
|
+
* @param {string} taskListId
|
|
394
|
+
* @param {Chrt.operations.OperationsTaskListEntriesRemove1} request
|
|
395
|
+
* @param {OperationsTaskLists.RequestOptions} requestOptions - Request-specific configuration.
|
|
396
396
|
*
|
|
397
397
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
398
398
|
*
|
|
399
399
|
* @example
|
|
400
|
-
* await client.operations.
|
|
400
|
+
* await client.operations.operationsTaskLists.removeEntriesV1("task_list_id")
|
|
401
401
|
*/
|
|
402
|
-
|
|
403
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
402
|
+
removeEntriesV1(taskListId, request = {}, requestOptions) {
|
|
403
|
+
return core.HttpResponsePromise.fromPromise(this.__removeEntriesV1(taskListId, request, requestOptions));
|
|
404
404
|
}
|
|
405
|
-
|
|
406
|
-
return __awaiter(this, arguments, void 0, function* (
|
|
405
|
+
__removeEntriesV1(taskListId_1) {
|
|
406
|
+
return __awaiter(this, arguments, void 0, function* (taskListId, request = {}, requestOptions) {
|
|
407
407
|
var _a, _b, _c, _d;
|
|
408
408
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
409
409
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
410
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `operations/
|
|
410
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `operations/operations_task_lists/entries/remove/v1/${encodeURIComponent(taskListId)}`),
|
|
411
411
|
method: "POST",
|
|
412
412
|
headers: _headers,
|
|
413
413
|
contentType: "application/json",
|
|
@@ -441,7 +441,7 @@ class Checklists {
|
|
|
441
441
|
rawResponse: _response.rawResponse,
|
|
442
442
|
});
|
|
443
443
|
case "timeout":
|
|
444
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /operations/
|
|
444
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /operations/operations_task_lists/entries/remove/v1/{task_list_id}.");
|
|
445
445
|
case "unknown":
|
|
446
446
|
throw new errors.ChrtError({
|
|
447
447
|
message: _response.error.errorMessage,
|
|
@@ -451,25 +451,25 @@ class Checklists {
|
|
|
451
451
|
});
|
|
452
452
|
}
|
|
453
453
|
/**
|
|
454
|
-
* Soft-deletes
|
|
454
|
+
* Soft-deletes an OperationsTaskList by setting `archived=True`. Tasks already applied to Cases are unaffected. | authz: min_org_role=operator | () -> (bool)
|
|
455
455
|
*
|
|
456
|
-
* @param {string}
|
|
457
|
-
* @param {
|
|
456
|
+
* @param {string} taskListId
|
|
457
|
+
* @param {OperationsTaskLists.RequestOptions} requestOptions - Request-specific configuration.
|
|
458
458
|
*
|
|
459
459
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
460
460
|
*
|
|
461
461
|
* @example
|
|
462
|
-
* await client.operations.
|
|
462
|
+
* await client.operations.operationsTaskLists.archiveV1("task_list_id")
|
|
463
463
|
*/
|
|
464
|
-
archiveV1(
|
|
465
|
-
return core.HttpResponsePromise.fromPromise(this.__archiveV1(
|
|
464
|
+
archiveV1(taskListId, requestOptions) {
|
|
465
|
+
return core.HttpResponsePromise.fromPromise(this.__archiveV1(taskListId, requestOptions));
|
|
466
466
|
}
|
|
467
|
-
__archiveV1(
|
|
467
|
+
__archiveV1(taskListId, requestOptions) {
|
|
468
468
|
return __awaiter(this, void 0, void 0, function* () {
|
|
469
469
|
var _a, _b, _c, _d;
|
|
470
470
|
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);
|
|
471
471
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
472
|
-
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/
|
|
472
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `operations/operations_task_lists/archive/v1/${encodeURIComponent(taskListId)}`),
|
|
473
473
|
method: "POST",
|
|
474
474
|
headers: _headers,
|
|
475
475
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -500,7 +500,7 @@ class Checklists {
|
|
|
500
500
|
rawResponse: _response.rawResponse,
|
|
501
501
|
});
|
|
502
502
|
case "timeout":
|
|
503
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /operations/
|
|
503
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /operations/operations_task_lists/archive/v1/{task_list_id}.");
|
|
504
504
|
case "unknown":
|
|
505
505
|
throw new errors.ChrtError({
|
|
506
506
|
message: _response.error.errorMessage,
|
|
@@ -510,25 +510,25 @@ class Checklists {
|
|
|
510
510
|
});
|
|
511
511
|
}
|
|
512
512
|
/**
|
|
513
|
-
* Restores an archived
|
|
513
|
+
* Restores an archived OperationsTaskList by setting `archived=False`. | authz: min_org_role=operator | () -> (bool)
|
|
514
514
|
*
|
|
515
|
-
* @param {string}
|
|
516
|
-
* @param {
|
|
515
|
+
* @param {string} taskListId
|
|
516
|
+
* @param {OperationsTaskLists.RequestOptions} requestOptions - Request-specific configuration.
|
|
517
517
|
*
|
|
518
518
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
519
519
|
*
|
|
520
520
|
* @example
|
|
521
|
-
* await client.operations.
|
|
521
|
+
* await client.operations.operationsTaskLists.unarchiveV1("task_list_id")
|
|
522
522
|
*/
|
|
523
|
-
unarchiveV1(
|
|
524
|
-
return core.HttpResponsePromise.fromPromise(this.__unarchiveV1(
|
|
523
|
+
unarchiveV1(taskListId, requestOptions) {
|
|
524
|
+
return core.HttpResponsePromise.fromPromise(this.__unarchiveV1(taskListId, requestOptions));
|
|
525
525
|
}
|
|
526
|
-
__unarchiveV1(
|
|
526
|
+
__unarchiveV1(taskListId, requestOptions) {
|
|
527
527
|
return __awaiter(this, void 0, void 0, function* () {
|
|
528
528
|
var _a, _b, _c, _d;
|
|
529
529
|
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);
|
|
530
530
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
531
|
-
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/
|
|
531
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `operations/operations_task_lists/unarchive/v1/${encodeURIComponent(taskListId)}`),
|
|
532
532
|
method: "POST",
|
|
533
533
|
headers: _headers,
|
|
534
534
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -559,7 +559,138 @@ class Checklists {
|
|
|
559
559
|
rawResponse: _response.rawResponse,
|
|
560
560
|
});
|
|
561
561
|
case "timeout":
|
|
562
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /operations/
|
|
562
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /operations/operations_task_lists/unarchive/v1/{task_list_id}.");
|
|
563
|
+
case "unknown":
|
|
564
|
+
throw new errors.ChrtError({
|
|
565
|
+
message: _response.error.errorMessage,
|
|
566
|
+
rawResponse: _response.rawResponse,
|
|
567
|
+
});
|
|
568
|
+
}
|
|
569
|
+
});
|
|
570
|
+
}
|
|
571
|
+
/**
|
|
572
|
+
* Materializes each entry of an OperationsTaskList into an OperationsTask on the Case (status=not_started, source_task_list_id set). Deadlines: overall_deadline_timestamp wins, else the entry's deadline_offset_seconds, else a positional 20-min stagger. No dedup — applying twice creates duplicate tasks. | authz: min_org_role=operator | () -> (list[PydanticObjectId])
|
|
573
|
+
*
|
|
574
|
+
* @param {string} taskListId
|
|
575
|
+
* @param {string} caseId
|
|
576
|
+
* @param {Chrt.operations.OperationsTaskListsApplyToCaseV1Request} request
|
|
577
|
+
* @param {OperationsTaskLists.RequestOptions} requestOptions - Request-specific configuration.
|
|
578
|
+
*
|
|
579
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
580
|
+
*
|
|
581
|
+
* @example
|
|
582
|
+
* await client.operations.operationsTaskLists.applyToCaseV1("task_list_id", "case_id", {
|
|
583
|
+
* overall_deadline_timestamp: "2024-01-15T09:30:00Z"
|
|
584
|
+
* })
|
|
585
|
+
*/
|
|
586
|
+
applyToCaseV1(taskListId, caseId, request = {}, requestOptions) {
|
|
587
|
+
return core.HttpResponsePromise.fromPromise(this.__applyToCaseV1(taskListId, caseId, request, requestOptions));
|
|
588
|
+
}
|
|
589
|
+
__applyToCaseV1(taskListId_1, caseId_1) {
|
|
590
|
+
return __awaiter(this, arguments, void 0, function* (taskListId, caseId, request = {}, requestOptions) {
|
|
591
|
+
var _a, _b, _c, _d;
|
|
592
|
+
const { overall_deadline_timestamp: overallDeadlineTimestamp } = request;
|
|
593
|
+
const _queryParams = {};
|
|
594
|
+
if (overallDeadlineTimestamp !== undefined) {
|
|
595
|
+
_queryParams["overall_deadline_timestamp"] = overallDeadlineTimestamp;
|
|
596
|
+
}
|
|
597
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
598
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
599
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `operations/operations_task_lists/apply_to_case/v1/${encodeURIComponent(taskListId)}/${encodeURIComponent(caseId)}`),
|
|
600
|
+
method: "POST",
|
|
601
|
+
headers: _headers,
|
|
602
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
603
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
604
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
605
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
606
|
+
});
|
|
607
|
+
if (_response.ok) {
|
|
608
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
609
|
+
}
|
|
610
|
+
if (_response.error.reason === "status-code") {
|
|
611
|
+
switch (_response.error.statusCode) {
|
|
612
|
+
case 422:
|
|
613
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
614
|
+
default:
|
|
615
|
+
throw new errors.ChrtError({
|
|
616
|
+
statusCode: _response.error.statusCode,
|
|
617
|
+
body: _response.error.body,
|
|
618
|
+
rawResponse: _response.rawResponse,
|
|
619
|
+
});
|
|
620
|
+
}
|
|
621
|
+
}
|
|
622
|
+
switch (_response.error.reason) {
|
|
623
|
+
case "non-json":
|
|
624
|
+
throw new errors.ChrtError({
|
|
625
|
+
statusCode: _response.error.statusCode,
|
|
626
|
+
body: _response.error.rawBody,
|
|
627
|
+
rawResponse: _response.rawResponse,
|
|
628
|
+
});
|
|
629
|
+
case "timeout":
|
|
630
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /operations/operations_task_lists/apply_to_case/v1/{task_list_id}/{case_id}.");
|
|
631
|
+
case "unknown":
|
|
632
|
+
throw new errors.ChrtError({
|
|
633
|
+
message: _response.error.errorMessage,
|
|
634
|
+
rawResponse: _response.rawResponse,
|
|
635
|
+
});
|
|
636
|
+
}
|
|
637
|
+
});
|
|
638
|
+
}
|
|
639
|
+
/**
|
|
640
|
+
* Removes the OperationsTasks this OperationsTaskList added to the Case (matched by source_task_list_id). Only untouched (not_started) tasks are deleted; started/completed/skipped tasks are kept. Returns deleted and kept counts. | authz: min_org_role=operator | () -> (OperationsTaskListRemoveFromCaseRes1)
|
|
641
|
+
*
|
|
642
|
+
* @param {string} taskListId
|
|
643
|
+
* @param {string} caseId
|
|
644
|
+
* @param {OperationsTaskLists.RequestOptions} requestOptions - Request-specific configuration.
|
|
645
|
+
*
|
|
646
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
647
|
+
*
|
|
648
|
+
* @example
|
|
649
|
+
* await client.operations.operationsTaskLists.removeFromCaseV1("task_list_id", "case_id")
|
|
650
|
+
*/
|
|
651
|
+
removeFromCaseV1(taskListId, caseId, requestOptions) {
|
|
652
|
+
return core.HttpResponsePromise.fromPromise(this.__removeFromCaseV1(taskListId, caseId, requestOptions));
|
|
653
|
+
}
|
|
654
|
+
__removeFromCaseV1(taskListId, caseId, requestOptions) {
|
|
655
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
656
|
+
var _a, _b, _c, _d;
|
|
657
|
+
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);
|
|
658
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
659
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `operations/operations_task_lists/remove_from_case/v1/${encodeURIComponent(taskListId)}/${encodeURIComponent(caseId)}`),
|
|
660
|
+
method: "POST",
|
|
661
|
+
headers: _headers,
|
|
662
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
663
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
664
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
665
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
666
|
+
});
|
|
667
|
+
if (_response.ok) {
|
|
668
|
+
return {
|
|
669
|
+
data: _response.body,
|
|
670
|
+
rawResponse: _response.rawResponse,
|
|
671
|
+
};
|
|
672
|
+
}
|
|
673
|
+
if (_response.error.reason === "status-code") {
|
|
674
|
+
switch (_response.error.statusCode) {
|
|
675
|
+
case 422:
|
|
676
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
677
|
+
default:
|
|
678
|
+
throw new errors.ChrtError({
|
|
679
|
+
statusCode: _response.error.statusCode,
|
|
680
|
+
body: _response.error.body,
|
|
681
|
+
rawResponse: _response.rawResponse,
|
|
682
|
+
});
|
|
683
|
+
}
|
|
684
|
+
}
|
|
685
|
+
switch (_response.error.reason) {
|
|
686
|
+
case "non-json":
|
|
687
|
+
throw new errors.ChrtError({
|
|
688
|
+
statusCode: _response.error.statusCode,
|
|
689
|
+
body: _response.error.rawBody,
|
|
690
|
+
rawResponse: _response.rawResponse,
|
|
691
|
+
});
|
|
692
|
+
case "timeout":
|
|
693
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /operations/operations_task_lists/remove_from_case/v1/{task_list_id}/{case_id}.");
|
|
563
694
|
case "unknown":
|
|
564
695
|
throw new errors.ChrtError({
|
|
565
696
|
message: _response.error.errorMessage,
|
|
@@ -578,4 +709,4 @@ class Checklists {
|
|
|
578
709
|
});
|
|
579
710
|
}
|
|
580
711
|
}
|
|
581
|
-
exports.
|
|
712
|
+
exports.OperationsTaskLists = OperationsTaskLists;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./requests/index.js"), exports);
|
|
@@ -9,9 +9,10 @@ import * as Chrt from "../../../../../../index.js";
|
|
|
9
9
|
* name: "name"
|
|
10
10
|
* }
|
|
11
11
|
*/
|
|
12
|
-
export interface
|
|
12
|
+
export interface OperationsTaskListClientCreate1 {
|
|
13
13
|
schema_version: number;
|
|
14
14
|
name: string;
|
|
15
15
|
description?: string | null;
|
|
16
|
-
|
|
16
|
+
tags?: string[];
|
|
17
|
+
entries?: Chrt.OperationsTaskListEntry1[];
|
|
17
18
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* overall_deadline_timestamp: "2024-01-15T09:30:00Z"
|
|
8
|
+
* }
|
|
9
|
+
*/
|
|
10
|
+
export interface OperationsTaskListsApplyToCaseV1Request {
|
|
11
|
+
/** If set, overrides every materialized task's deadline with this timestamp. */
|
|
12
|
+
overall_deadline_timestamp?: string | null;
|
|
13
|
+
}
|
|
@@ -12,9 +12,9 @@ import * as Chrt from "../../../../../../index.js";
|
|
|
12
12
|
* filter_archived: true
|
|
13
13
|
* }
|
|
14
14
|
*/
|
|
15
|
-
export interface
|
|
15
|
+
export interface OperationsTaskListsListV1Request {
|
|
16
16
|
/** Field to sort by */
|
|
17
|
-
sort_by?: Chrt.
|
|
17
|
+
sort_by?: Chrt.OperationsTaskListSortByEnum | null;
|
|
18
18
|
/** Sort order (asc or desc) */
|
|
19
19
|
sort_order?: Chrt.SortOrderEnum | null;
|
|
20
20
|
page?: number | null;
|
package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/index.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { type OperationsTaskListsListV1Request } from "./OperationsTaskListsListV1Request.js";
|
|
2
|
+
export { type OperationsTaskListClientUpdate1 } from "./OperationsTaskListClientUpdate1.js";
|
|
3
|
+
export { type OperationsTaskListClientCreate1 } from "./OperationsTaskListClientCreate1.js";
|
|
4
|
+
export { type OperationsTaskListEntriesAdd1 } from "./OperationsTaskListEntriesAdd1.js";
|
|
5
|
+
export { type OperationsTaskListEntriesRemove1 } from "./OperationsTaskListEntriesRemove1.js";
|
|
6
|
+
export { type OperationsTaskListsApplyToCaseV1Request } from "./OperationsTaskListsApplyToCaseV1Request.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.js";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./client/index.js"), exports);
|