@chrt-inc/typescript-sdk 1.718.0 → 1.723.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/Client.js +2 -2
- package/dist/cjs/api/resources/operations/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 +6 -6
- package/dist/cjs/api/resources/operations/resources/departments/client/requests/DepartmentClientCreate1.d.ts +2 -2
- package/dist/cjs/api/resources/operations/resources/departments/client/requests/DepartmentsListV1Request.d.ts +2 -2
- 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/orderDrafts/client/requests/OrdersNewDraftReq.d.ts +1 -0
- package/dist/cjs/api/types/AiImageDescription.d.ts +1 -1
- 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 +2 -1
- package/dist/cjs/api/types/DepartmentRoutingRule1.d.ts +16 -0
- package/dist/cjs/api/types/DepartmentSortByEnum.d.ts +2 -2
- package/dist/cjs/api/types/DepartmentSortByEnum.js +1 -1
- package/dist/cjs/api/types/{DepartmentEnum.d.ts → DepartmentTypeEnum.d.ts} +14 -9
- package/dist/cjs/api/types/{DepartmentEnum.js → DepartmentTypeEnum.js} +14 -9
- 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/OperationsTaskListRemoveFromCaseRes1.d.ts +13 -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/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/index.d.ts +10 -12
- package/dist/cjs/api/types/index.js +10 -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/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 +6 -6
- package/dist/esm/api/resources/operations/resources/departments/client/requests/DepartmentClientCreate1.d.mts +2 -2
- package/dist/esm/api/resources/operations/resources/departments/client/requests/DepartmentsListV1Request.d.mts +2 -2
- 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/orderDrafts/client/requests/OrdersNewDraftReq.d.mts +1 -0
- package/dist/esm/api/types/AiImageDescription.d.mts +1 -1
- 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 +2 -1
- package/dist/esm/api/types/DepartmentRoutingRule1.d.mts +16 -0
- package/dist/esm/api/types/DepartmentSortByEnum.d.mts +2 -2
- package/dist/esm/api/types/DepartmentSortByEnum.mjs +1 -1
- package/dist/esm/api/types/{DepartmentEnum.d.mts → DepartmentTypeEnum.d.mts} +14 -9
- package/dist/esm/api/types/{DepartmentEnum.mjs → DepartmentTypeEnum.mjs} +13 -8
- 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/OperationsTaskListRemoveFromCaseRes1.d.mts +13 -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/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/index.d.mts +10 -12
- package/dist/esm/api/types/index.mjs +10 -12
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +323 -497
- package/dist/cjs/api/resources/operations/resources/cases/client/requests/CaseChecksApplyChecklistReq.d.ts +0 -12
- package/dist/cjs/api/resources/operations/resources/cases/client/requests/CaseChecksRecordImageAnalysisResultsReq.d.ts +0 -15
- package/dist/cjs/api/resources/operations/resources/cases/client/requests/CaseNeedsActionReq.d.ts +0 -12
- 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/Check1.js +0 -5
- 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/Checklist1.js +0 -5
- package/dist/cjs/api/types/ChecklistCheck1.d.ts +0 -15
- package/dist/cjs/api/types/ChecklistCheck1.js +0 -5
- package/dist/cjs/api/types/ChecklistListRes.js +0 -5
- package/dist/esm/api/resources/operations/resources/cases/client/requests/CaseChecksApplyChecklistReq.d.mts +0 -12
- package/dist/esm/api/resources/operations/resources/cases/client/requests/CaseChecksRecordImageAnalysisResultsReq.d.mts +0 -15
- package/dist/esm/api/resources/operations/resources/cases/client/requests/CaseNeedsActionReq.d.mts +0 -12
- 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/Check1.mjs +0 -4
- 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/Checklist1.mjs +0 -4
- package/dist/esm/api/types/ChecklistCheck1.d.mts +0 -15
- package/dist/esm/api/types/ChecklistCheck1.mjs +0 -4
- package/dist/esm/api/types/ChecklistListRes.mjs +0 -4
- /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 → types/DepartmentRoutingRule1.js} +0 -0
- /package/dist/cjs/api/{resources/orgs/resources/connections/client/requests/SetDepartmentReq.js → types/OperationsTaskList1.js} +0 -0
- /package/dist/cjs/api/types/{CaseChecksDisableReq.js → OperationsTaskListEntry1.js} +0 -0
- /package/dist/cjs/api/types/{CaseChecksDismissReq.js → OperationsTaskListListRes.js} +0 -0
- /package/dist/cjs/api/types/{CaseChecksSummary1.js → OperationsTaskListRemoveFromCaseRes1.js} +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 → types/DepartmentRoutingRule1.mjs} +0 -0
- /package/dist/esm/api/{resources/orgs/resources/connections/client/requests/SetDepartmentReq.mjs → types/OperationsTaskList1.mjs} +0 -0
- /package/dist/esm/api/types/{CaseChecksDisableReq.mjs → OperationsTaskListEntry1.mjs} +0 -0
- /package/dist/esm/api/types/{CaseChecksDismissReq.mjs → OperationsTaskListListRes.mjs} +0 -0
- /package/dist/esm/api/types/{CaseChecksSummary1.mjs → OperationsTaskListRemoveFromCaseRes1.mjs} +0 -0
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "../../../../../../environments.js";
|
|
5
|
+
import * as core from "../../../../../../core/index.js";
|
|
6
|
+
import * as Chrt from "../../../../../index.js";
|
|
7
|
+
export declare namespace DepartmentRoutingRules {
|
|
8
|
+
interface Options {
|
|
9
|
+
environment?: core.Supplier<environments.ChrtEnvironment | string>;
|
|
10
|
+
/** Specify a custom URL to connect the client to. */
|
|
11
|
+
baseUrl?: core.Supplier<string>;
|
|
12
|
+
token?: core.Supplier<core.BearerToken | undefined>;
|
|
13
|
+
/** Additional headers to include in requests. */
|
|
14
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
15
|
+
fetcher?: core.FetchFunction;
|
|
16
|
+
}
|
|
17
|
+
interface RequestOptions {
|
|
18
|
+
/** The maximum time to wait for a response in seconds. */
|
|
19
|
+
timeoutInSeconds?: number;
|
|
20
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
21
|
+
maxRetries?: number;
|
|
22
|
+
/** A hook to abort the request. */
|
|
23
|
+
abortSignal?: AbortSignal;
|
|
24
|
+
/** Additional query string parameters to include in the request. */
|
|
25
|
+
queryParams?: Record<string, unknown>;
|
|
26
|
+
/** Additional headers to include in the request. */
|
|
27
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
export declare class DepartmentRoutingRules {
|
|
31
|
+
protected readonly _options: DepartmentRoutingRules.Options;
|
|
32
|
+
constructor(_options?: DepartmentRoutingRules.Options);
|
|
33
|
+
/**
|
|
34
|
+
* Lists the caller org's department routing rules. | authz: min_org_role=operator | () -> (list[DepartmentRoutingRule1])
|
|
35
|
+
*
|
|
36
|
+
* @param {DepartmentRoutingRules.RequestOptions} requestOptions - Request-specific configuration.
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* await client.operations.departmentRoutingRules.listV1()
|
|
40
|
+
*/
|
|
41
|
+
listV1(requestOptions?: DepartmentRoutingRules.RequestOptions): core.HttpResponsePromise<Chrt.DepartmentRoutingRule1[]>;
|
|
42
|
+
private __listV1;
|
|
43
|
+
/**
|
|
44
|
+
* Sets the caller org's default operations desk for a counterparty (on-chrt shipper or off-chrt shipper shell). Upsert: one rule per (owner, counterparty). Returns the rule id. The mapping is a non-binding suggestion surfaced at Case creation. | authz: min_org_role=administrator | (DepartmentRoutingRuleClientCreate1) -> (PydanticObjectId)
|
|
45
|
+
*
|
|
46
|
+
* @param {Chrt.operations.DepartmentRoutingRuleClientCreate1} request
|
|
47
|
+
* @param {DepartmentRoutingRules.RequestOptions} requestOptions - Request-specific configuration.
|
|
48
|
+
*
|
|
49
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* await client.operations.departmentRoutingRules.upsertV1({
|
|
53
|
+
* schema_version: 1,
|
|
54
|
+
* counterparty_type: "shipper_org",
|
|
55
|
+
* counterparty_id: "counterparty_id",
|
|
56
|
+
* department_id: "department_id"
|
|
57
|
+
* })
|
|
58
|
+
*/
|
|
59
|
+
upsertV1(request: Chrt.operations.DepartmentRoutingRuleClientCreate1, requestOptions?: DepartmentRoutingRules.RequestOptions): core.HttpResponsePromise<string>;
|
|
60
|
+
private __upsertV1;
|
|
61
|
+
/**
|
|
62
|
+
* Clears the caller org's default operations desk for a counterparty. | authz: min_org_role=administrator | () -> (bool)
|
|
63
|
+
*
|
|
64
|
+
* @param {Chrt.RoutingCounterpartyTypeEnum} counterpartyType
|
|
65
|
+
* @param {string} counterpartyId
|
|
66
|
+
* @param {DepartmentRoutingRules.RequestOptions} requestOptions - Request-specific configuration.
|
|
67
|
+
*
|
|
68
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
69
|
+
*
|
|
70
|
+
* @example
|
|
71
|
+
* await client.operations.departmentRoutingRules.deleteV1("shipper_org", "counterparty_id")
|
|
72
|
+
*/
|
|
73
|
+
deleteV1(counterpartyType: Chrt.RoutingCounterpartyTypeEnum, counterpartyId: string, requestOptions?: DepartmentRoutingRules.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
74
|
+
private __deleteV1;
|
|
75
|
+
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
76
|
+
}
|
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
39
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
40
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
41
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
42
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
43
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
44
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
45
|
+
});
|
|
46
|
+
};
|
|
47
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
|
+
exports.DepartmentRoutingRules = void 0;
|
|
49
|
+
const environments = __importStar(require("../../../../../../environments.js"));
|
|
50
|
+
const core = __importStar(require("../../../../../../core/index.js"));
|
|
51
|
+
const Chrt = __importStar(require("../../../../../index.js"));
|
|
52
|
+
const headers_js_1 = require("../../../../../../core/headers.js");
|
|
53
|
+
const errors = __importStar(require("../../../../../../errors/index.js"));
|
|
54
|
+
class DepartmentRoutingRules {
|
|
55
|
+
constructor(_options = {}) {
|
|
56
|
+
this._options = _options;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Lists the caller org's department routing rules. | authz: min_org_role=operator | () -> (list[DepartmentRoutingRule1])
|
|
60
|
+
*
|
|
61
|
+
* @param {DepartmentRoutingRules.RequestOptions} requestOptions - Request-specific configuration.
|
|
62
|
+
*
|
|
63
|
+
* @example
|
|
64
|
+
* await client.operations.departmentRoutingRules.listV1()
|
|
65
|
+
*/
|
|
66
|
+
listV1(requestOptions) {
|
|
67
|
+
return core.HttpResponsePromise.fromPromise(this.__listV1(requestOptions));
|
|
68
|
+
}
|
|
69
|
+
__listV1(requestOptions) {
|
|
70
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
71
|
+
var _a, _b, _c, _d;
|
|
72
|
+
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);
|
|
73
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
74
|
+
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/department_routing_rules/v1"),
|
|
75
|
+
method: "GET",
|
|
76
|
+
headers: _headers,
|
|
77
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
78
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
79
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
80
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
81
|
+
});
|
|
82
|
+
if (_response.ok) {
|
|
83
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
84
|
+
}
|
|
85
|
+
if (_response.error.reason === "status-code") {
|
|
86
|
+
throw new errors.ChrtError({
|
|
87
|
+
statusCode: _response.error.statusCode,
|
|
88
|
+
body: _response.error.body,
|
|
89
|
+
rawResponse: _response.rawResponse,
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
switch (_response.error.reason) {
|
|
93
|
+
case "non-json":
|
|
94
|
+
throw new errors.ChrtError({
|
|
95
|
+
statusCode: _response.error.statusCode,
|
|
96
|
+
body: _response.error.rawBody,
|
|
97
|
+
rawResponse: _response.rawResponse,
|
|
98
|
+
});
|
|
99
|
+
case "timeout":
|
|
100
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /operations/department_routing_rules/v1.");
|
|
101
|
+
case "unknown":
|
|
102
|
+
throw new errors.ChrtError({
|
|
103
|
+
message: _response.error.errorMessage,
|
|
104
|
+
rawResponse: _response.rawResponse,
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Sets the caller org's default operations desk for a counterparty (on-chrt shipper or off-chrt shipper shell). Upsert: one rule per (owner, counterparty). Returns the rule id. The mapping is a non-binding suggestion surfaced at Case creation. | authz: min_org_role=administrator | (DepartmentRoutingRuleClientCreate1) -> (PydanticObjectId)
|
|
111
|
+
*
|
|
112
|
+
* @param {Chrt.operations.DepartmentRoutingRuleClientCreate1} request
|
|
113
|
+
* @param {DepartmentRoutingRules.RequestOptions} requestOptions - Request-specific configuration.
|
|
114
|
+
*
|
|
115
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
116
|
+
*
|
|
117
|
+
* @example
|
|
118
|
+
* await client.operations.departmentRoutingRules.upsertV1({
|
|
119
|
+
* schema_version: 1,
|
|
120
|
+
* counterparty_type: "shipper_org",
|
|
121
|
+
* counterparty_id: "counterparty_id",
|
|
122
|
+
* department_id: "department_id"
|
|
123
|
+
* })
|
|
124
|
+
*/
|
|
125
|
+
upsertV1(request, requestOptions) {
|
|
126
|
+
return core.HttpResponsePromise.fromPromise(this.__upsertV1(request, requestOptions));
|
|
127
|
+
}
|
|
128
|
+
__upsertV1(request, requestOptions) {
|
|
129
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
130
|
+
var _a, _b, _c, _d;
|
|
131
|
+
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);
|
|
132
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
133
|
+
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/department_routing_rules/v1"),
|
|
134
|
+
method: "PUT",
|
|
135
|
+
headers: _headers,
|
|
136
|
+
contentType: "application/json",
|
|
137
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
138
|
+
requestType: "json",
|
|
139
|
+
body: request,
|
|
140
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
141
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
142
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
143
|
+
});
|
|
144
|
+
if (_response.ok) {
|
|
145
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
146
|
+
}
|
|
147
|
+
if (_response.error.reason === "status-code") {
|
|
148
|
+
switch (_response.error.statusCode) {
|
|
149
|
+
case 422:
|
|
150
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
151
|
+
default:
|
|
152
|
+
throw new errors.ChrtError({
|
|
153
|
+
statusCode: _response.error.statusCode,
|
|
154
|
+
body: _response.error.body,
|
|
155
|
+
rawResponse: _response.rawResponse,
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
switch (_response.error.reason) {
|
|
160
|
+
case "non-json":
|
|
161
|
+
throw new errors.ChrtError({
|
|
162
|
+
statusCode: _response.error.statusCode,
|
|
163
|
+
body: _response.error.rawBody,
|
|
164
|
+
rawResponse: _response.rawResponse,
|
|
165
|
+
});
|
|
166
|
+
case "timeout":
|
|
167
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PUT /operations/department_routing_rules/v1.");
|
|
168
|
+
case "unknown":
|
|
169
|
+
throw new errors.ChrtError({
|
|
170
|
+
message: _response.error.errorMessage,
|
|
171
|
+
rawResponse: _response.rawResponse,
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* Clears the caller org's default operations desk for a counterparty. | authz: min_org_role=administrator | () -> (bool)
|
|
178
|
+
*
|
|
179
|
+
* @param {Chrt.RoutingCounterpartyTypeEnum} counterpartyType
|
|
180
|
+
* @param {string} counterpartyId
|
|
181
|
+
* @param {DepartmentRoutingRules.RequestOptions} requestOptions - Request-specific configuration.
|
|
182
|
+
*
|
|
183
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
184
|
+
*
|
|
185
|
+
* @example
|
|
186
|
+
* await client.operations.departmentRoutingRules.deleteV1("shipper_org", "counterparty_id")
|
|
187
|
+
*/
|
|
188
|
+
deleteV1(counterpartyType, counterpartyId, requestOptions) {
|
|
189
|
+
return core.HttpResponsePromise.fromPromise(this.__deleteV1(counterpartyType, counterpartyId, requestOptions));
|
|
190
|
+
}
|
|
191
|
+
__deleteV1(counterpartyType, counterpartyId, requestOptions) {
|
|
192
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
193
|
+
var _a, _b, _c, _d;
|
|
194
|
+
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);
|
|
195
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
196
|
+
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/department_routing_rules/v1/${encodeURIComponent(counterpartyType)}/${encodeURIComponent(counterpartyId)}`),
|
|
197
|
+
method: "DELETE",
|
|
198
|
+
headers: _headers,
|
|
199
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
200
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
201
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
202
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
203
|
+
});
|
|
204
|
+
if (_response.ok) {
|
|
205
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
206
|
+
}
|
|
207
|
+
if (_response.error.reason === "status-code") {
|
|
208
|
+
switch (_response.error.statusCode) {
|
|
209
|
+
case 422:
|
|
210
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
211
|
+
default:
|
|
212
|
+
throw new errors.ChrtError({
|
|
213
|
+
statusCode: _response.error.statusCode,
|
|
214
|
+
body: _response.error.body,
|
|
215
|
+
rawResponse: _response.rawResponse,
|
|
216
|
+
});
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
switch (_response.error.reason) {
|
|
220
|
+
case "non-json":
|
|
221
|
+
throw new errors.ChrtError({
|
|
222
|
+
statusCode: _response.error.statusCode,
|
|
223
|
+
body: _response.error.rawBody,
|
|
224
|
+
rawResponse: _response.rawResponse,
|
|
225
|
+
});
|
|
226
|
+
case "timeout":
|
|
227
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling DELETE /operations/department_routing_rules/v1/{counterparty_type}/{counterparty_id}.");
|
|
228
|
+
case "unknown":
|
|
229
|
+
throw new errors.ChrtError({
|
|
230
|
+
message: _response.error.errorMessage,
|
|
231
|
+
rawResponse: _response.rawResponse,
|
|
232
|
+
});
|
|
233
|
+
}
|
|
234
|
+
});
|
|
235
|
+
}
|
|
236
|
+
_getAuthorizationHeader() {
|
|
237
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
238
|
+
const bearer = yield core.Supplier.get(this._options.token);
|
|
239
|
+
if (bearer != null) {
|
|
240
|
+
return `Bearer ${bearer}`;
|
|
241
|
+
}
|
|
242
|
+
return undefined;
|
|
243
|
+
});
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
exports.DepartmentRoutingRules = DepartmentRoutingRules;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Chrt from "../../../../../../index.js";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* schema_version: 1,
|
|
9
|
+
* counterparty_type: "shipper_org",
|
|
10
|
+
* counterparty_id: "counterparty_id",
|
|
11
|
+
* department_id: "department_id"
|
|
12
|
+
* }
|
|
13
|
+
*/
|
|
14
|
+
export interface DepartmentRoutingRuleClientCreate1 {
|
|
15
|
+
schema_version: number;
|
|
16
|
+
counterparty_type: Chrt.RoutingCounterpartyTypeEnum;
|
|
17
|
+
counterparty_id: string;
|
|
18
|
+
department_id: string;
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { type DepartmentRoutingRuleClientCreate1 } from "./DepartmentRoutingRuleClientCreate1.js";
|
|
@@ -100,7 +100,7 @@ export declare class Departments {
|
|
|
100
100
|
* await client.operations.departments.createV1({
|
|
101
101
|
* schema_version: 1,
|
|
102
102
|
* name: "name",
|
|
103
|
-
*
|
|
103
|
+
* department_type: "aerospace"
|
|
104
104
|
* })
|
|
105
105
|
*/
|
|
106
106
|
createV1(request: Chrt.operations.DepartmentClientCreate1, requestOptions?: Departments.RequestOptions): core.HttpResponsePromise<string>;
|
|
@@ -77,7 +77,7 @@ class Departments {
|
|
|
77
77
|
__listV1() {
|
|
78
78
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
79
79
|
var _a, _b, _c, _d, _e, _f;
|
|
80
|
-
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize,
|
|
80
|
+
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, filter_department_type: filterDepartmentType, } = request;
|
|
81
81
|
const _queryParams = {};
|
|
82
82
|
if (sortBy !== undefined) {
|
|
83
83
|
_queryParams["sort_by"] = sortBy;
|
|
@@ -91,12 +91,12 @@ class Departments {
|
|
|
91
91
|
if (pageSize !== undefined) {
|
|
92
92
|
_queryParams["page_size"] = (_b = pageSize === null || pageSize === void 0 ? void 0 : pageSize.toString()) !== null && _b !== void 0 ? _b : null;
|
|
93
93
|
}
|
|
94
|
-
if (
|
|
95
|
-
if (Array.isArray(
|
|
96
|
-
_queryParams["
|
|
94
|
+
if (filterDepartmentType !== undefined) {
|
|
95
|
+
if (Array.isArray(filterDepartmentType)) {
|
|
96
|
+
_queryParams["filter_department_type"] = filterDepartmentType.map((item) => item);
|
|
97
97
|
}
|
|
98
98
|
else {
|
|
99
|
-
_queryParams["
|
|
99
|
+
_queryParams["filter_department_type"] = filterDepartmentType;
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
102
|
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);
|
|
@@ -334,7 +334,7 @@ class Departments {
|
|
|
334
334
|
* await client.operations.departments.createV1({
|
|
335
335
|
* schema_version: 1,
|
|
336
336
|
* name: "name",
|
|
337
|
-
*
|
|
337
|
+
* department_type: "aerospace"
|
|
338
338
|
* })
|
|
339
339
|
*/
|
|
340
340
|
createV1(request, requestOptions) {
|
|
@@ -7,13 +7,13 @@ import * as Chrt from "../../../../../../index.js";
|
|
|
7
7
|
* {
|
|
8
8
|
* schema_version: 1,
|
|
9
9
|
* name: "name",
|
|
10
|
-
*
|
|
10
|
+
* department_type: "aerospace"
|
|
11
11
|
* }
|
|
12
12
|
*/
|
|
13
13
|
export interface DepartmentClientCreate1 {
|
|
14
14
|
schema_version: number;
|
|
15
15
|
name: string;
|
|
16
|
-
|
|
16
|
+
department_type: Chrt.DepartmentTypeEnum;
|
|
17
17
|
location?: Chrt.LocationFeature | null;
|
|
18
18
|
operator_user_ids?: string[];
|
|
19
19
|
}
|
|
@@ -18,6 +18,6 @@ export interface DepartmentsListV1Request {
|
|
|
18
18
|
sort_order?: Chrt.SortOrderEnum | null;
|
|
19
19
|
page?: number | null;
|
|
20
20
|
page_size?: number | null;
|
|
21
|
-
/** Filter by department(s) */
|
|
22
|
-
|
|
21
|
+
/** Filter by department type(s) */
|
|
22
|
+
filter_department_type?: (Chrt.DepartmentTypeEnum | null) | (Chrt.DepartmentTypeEnum | null)[];
|
|
23
23
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
export * as cases from "./cases/index.js";
|
|
2
|
-
export * as
|
|
2
|
+
export * as departmentRoutingRules from "./departmentRoutingRules/index.js";
|
|
3
3
|
export * as departments from "./departments/index.js";
|
|
4
|
+
export * as operationsTaskLists from "./operationsTaskLists/index.js";
|
|
4
5
|
export * as operationsTasks from "./operationsTasks/index.js";
|
|
5
6
|
export * from "./cases/client/requests/index.js";
|
|
6
|
-
export * from "./
|
|
7
|
+
export * from "./departmentRoutingRules/client/requests/index.js";
|
|
7
8
|
export * from "./departments/client/requests/index.js";
|
|
9
|
+
export * from "./operationsTaskLists/client/requests/index.js";
|
|
8
10
|
export * from "./operationsTasks/client/requests/index.js";
|
|
@@ -36,12 +36,14 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.operationsTasks = exports.departments = exports.
|
|
39
|
+
exports.operationsTasks = exports.operationsTaskLists = exports.departments = exports.departmentRoutingRules = exports.cases = void 0;
|
|
40
40
|
exports.cases = __importStar(require("./cases/index.js"));
|
|
41
|
-
exports.
|
|
41
|
+
exports.departmentRoutingRules = __importStar(require("./departmentRoutingRules/index.js"));
|
|
42
42
|
exports.departments = __importStar(require("./departments/index.js"));
|
|
43
|
+
exports.operationsTaskLists = __importStar(require("./operationsTaskLists/index.js"));
|
|
43
44
|
exports.operationsTasks = __importStar(require("./operationsTasks/index.js"));
|
|
44
45
|
__exportStar(require("./cases/client/requests/index.js"), exports);
|
|
45
|
-
__exportStar(require("./
|
|
46
|
+
__exportStar(require("./departmentRoutingRules/client/requests/index.js"), exports);
|
|
46
47
|
__exportStar(require("./departments/client/requests/index.js"), exports);
|
|
48
|
+
__exportStar(require("./operationsTaskLists/client/requests/index.js"), exports);
|
|
47
49
|
__exportStar(require("./operationsTasks/client/requests/index.js"), exports);
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "../../../../../../environments.js";
|
|
5
|
+
import * as core from "../../../../../../core/index.js";
|
|
6
|
+
import * as Chrt from "../../../../../index.js";
|
|
7
|
+
export declare namespace OperationsTaskLists {
|
|
8
|
+
interface Options {
|
|
9
|
+
environment?: core.Supplier<environments.ChrtEnvironment | string>;
|
|
10
|
+
/** Specify a custom URL to connect the client to. */
|
|
11
|
+
baseUrl?: core.Supplier<string>;
|
|
12
|
+
token?: core.Supplier<core.BearerToken | undefined>;
|
|
13
|
+
/** Additional headers to include in requests. */
|
|
14
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
15
|
+
fetcher?: core.FetchFunction;
|
|
16
|
+
}
|
|
17
|
+
interface RequestOptions {
|
|
18
|
+
/** The maximum time to wait for a response in seconds. */
|
|
19
|
+
timeoutInSeconds?: number;
|
|
20
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
21
|
+
maxRetries?: number;
|
|
22
|
+
/** A hook to abort the request. */
|
|
23
|
+
abortSignal?: AbortSignal;
|
|
24
|
+
/** Additional query string parameters to include in the request. */
|
|
25
|
+
queryParams?: Record<string, unknown>;
|
|
26
|
+
/** Additional headers to include in the request. */
|
|
27
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
export declare class OperationsTaskLists {
|
|
31
|
+
protected readonly _options: OperationsTaskLists.Options;
|
|
32
|
+
constructor(_options?: OperationsTaskLists.Options);
|
|
33
|
+
/**
|
|
34
|
+
* Lists OperationsTaskLists for the caller's organization with filtering, sorting, and pagination. | authz: min_org_role=operator | () -> (OperationsTaskListListRes)
|
|
35
|
+
*
|
|
36
|
+
* @param {Chrt.operations.OperationsTaskListsListV1Request} request
|
|
37
|
+
* @param {OperationsTaskLists.RequestOptions} requestOptions - Request-specific configuration.
|
|
38
|
+
*
|
|
39
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* await client.operations.operationsTaskLists.listV1({
|
|
43
|
+
* sort_by: "created_at_timestamp",
|
|
44
|
+
* sort_order: "asc",
|
|
45
|
+
* page: 1,
|
|
46
|
+
* page_size: 1,
|
|
47
|
+
* filter_archived: true
|
|
48
|
+
* })
|
|
49
|
+
*/
|
|
50
|
+
listV1(request?: Chrt.operations.OperationsTaskListsListV1Request, requestOptions?: OperationsTaskLists.RequestOptions): core.HttpResponsePromise<Chrt.OperationsTaskListListRes>;
|
|
51
|
+
private __listV1;
|
|
52
|
+
/**
|
|
53
|
+
* Retrieves a single OperationsTaskList by id. | authz: min_org_role=operator | () -> (OperationsTaskList1)
|
|
54
|
+
*
|
|
55
|
+
* @param {string} taskListId
|
|
56
|
+
* @param {OperationsTaskLists.RequestOptions} requestOptions - Request-specific configuration.
|
|
57
|
+
*
|
|
58
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* await client.operations.operationsTaskLists.getV1("task_list_id")
|
|
62
|
+
*/
|
|
63
|
+
getV1(taskListId: string, requestOptions?: OperationsTaskLists.RequestOptions): core.HttpResponsePromise<Chrt.OperationsTaskList1>;
|
|
64
|
+
private __getV1;
|
|
65
|
+
/**
|
|
66
|
+
* Updates scalar fields (name, description, tags) on an OperationsTaskList. | authz: min_org_role=operator | (OperationsTaskListClientUpdate1) -> (bool)
|
|
67
|
+
*
|
|
68
|
+
* @param {string} taskListId
|
|
69
|
+
* @param {Chrt.operations.OperationsTaskListClientUpdate1} request
|
|
70
|
+
* @param {OperationsTaskLists.RequestOptions} requestOptions - Request-specific configuration.
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
73
|
+
*
|
|
74
|
+
* @example
|
|
75
|
+
* await client.operations.operationsTaskLists.updateV1("task_list_id")
|
|
76
|
+
*/
|
|
77
|
+
updateV1(taskListId: string, request?: Chrt.operations.OperationsTaskListClientUpdate1, requestOptions?: OperationsTaskLists.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
78
|
+
private __updateV1;
|
|
79
|
+
/**
|
|
80
|
+
* Creates a new OperationsTaskList for the caller's organization. | authz: min_org_role=operator | (OperationsTaskListClientCreate1) -> (PydanticObjectId)
|
|
81
|
+
*
|
|
82
|
+
* @param {Chrt.operations.OperationsTaskListClientCreate1} request
|
|
83
|
+
* @param {OperationsTaskLists.RequestOptions} requestOptions - Request-specific configuration.
|
|
84
|
+
*
|
|
85
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
86
|
+
*
|
|
87
|
+
* @example
|
|
88
|
+
* await client.operations.operationsTaskLists.createV1({
|
|
89
|
+
* schema_version: 1,
|
|
90
|
+
* name: "name"
|
|
91
|
+
* })
|
|
92
|
+
*/
|
|
93
|
+
createV1(request: Chrt.operations.OperationsTaskListClientCreate1, requestOptions?: OperationsTaskLists.RequestOptions): core.HttpResponsePromise<string>;
|
|
94
|
+
private __createV1;
|
|
95
|
+
/**
|
|
96
|
+
* Appends entries to an OperationsTaskList's `entries` array. | authz: min_org_role=operator | (OperationsTaskListEntriesAdd1) -> (bool)
|
|
97
|
+
*
|
|
98
|
+
* @param {string} taskListId
|
|
99
|
+
* @param {Chrt.operations.OperationsTaskListEntriesAdd1} request
|
|
100
|
+
* @param {OperationsTaskLists.RequestOptions} requestOptions - Request-specific configuration.
|
|
101
|
+
*
|
|
102
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
103
|
+
*
|
|
104
|
+
* @example
|
|
105
|
+
* await client.operations.operationsTaskLists.addEntriesV1("task_list_id")
|
|
106
|
+
*/
|
|
107
|
+
addEntriesV1(taskListId: string, request?: Chrt.operations.OperationsTaskListEntriesAdd1, requestOptions?: OperationsTaskLists.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
108
|
+
private __addEntriesV1;
|
|
109
|
+
/**
|
|
110
|
+
* Removes entries from an OperationsTaskList by entry id. | authz: min_org_role=operator | (OperationsTaskListEntriesRemove1) -> (bool)
|
|
111
|
+
*
|
|
112
|
+
* @param {string} taskListId
|
|
113
|
+
* @param {Chrt.operations.OperationsTaskListEntriesRemove1} request
|
|
114
|
+
* @param {OperationsTaskLists.RequestOptions} requestOptions - Request-specific configuration.
|
|
115
|
+
*
|
|
116
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
117
|
+
*
|
|
118
|
+
* @example
|
|
119
|
+
* await client.operations.operationsTaskLists.removeEntriesV1("task_list_id")
|
|
120
|
+
*/
|
|
121
|
+
removeEntriesV1(taskListId: string, request?: Chrt.operations.OperationsTaskListEntriesRemove1, requestOptions?: OperationsTaskLists.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
122
|
+
private __removeEntriesV1;
|
|
123
|
+
/**
|
|
124
|
+
* Soft-deletes an OperationsTaskList by setting `archived=True`. Tasks already applied to Cases are unaffected. | authz: min_org_role=operator | () -> (bool)
|
|
125
|
+
*
|
|
126
|
+
* @param {string} taskListId
|
|
127
|
+
* @param {OperationsTaskLists.RequestOptions} requestOptions - Request-specific configuration.
|
|
128
|
+
*
|
|
129
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
130
|
+
*
|
|
131
|
+
* @example
|
|
132
|
+
* await client.operations.operationsTaskLists.archiveV1("task_list_id")
|
|
133
|
+
*/
|
|
134
|
+
archiveV1(taskListId: string, requestOptions?: OperationsTaskLists.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
135
|
+
private __archiveV1;
|
|
136
|
+
/**
|
|
137
|
+
* Restores an archived OperationsTaskList by setting `archived=False`. | authz: min_org_role=operator | () -> (bool)
|
|
138
|
+
*
|
|
139
|
+
* @param {string} taskListId
|
|
140
|
+
* @param {OperationsTaskLists.RequestOptions} requestOptions - Request-specific configuration.
|
|
141
|
+
*
|
|
142
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
143
|
+
*
|
|
144
|
+
* @example
|
|
145
|
+
* await client.operations.operationsTaskLists.unarchiveV1("task_list_id")
|
|
146
|
+
*/
|
|
147
|
+
unarchiveV1(taskListId: string, requestOptions?: OperationsTaskLists.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
148
|
+
private __unarchiveV1;
|
|
149
|
+
/**
|
|
150
|
+
* 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])
|
|
151
|
+
*
|
|
152
|
+
* @param {string} taskListId
|
|
153
|
+
* @param {string} caseId
|
|
154
|
+
* @param {Chrt.operations.OperationsTaskListsApplyToCaseV1Request} request
|
|
155
|
+
* @param {OperationsTaskLists.RequestOptions} requestOptions - Request-specific configuration.
|
|
156
|
+
*
|
|
157
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
158
|
+
*
|
|
159
|
+
* @example
|
|
160
|
+
* await client.operations.operationsTaskLists.applyToCaseV1("task_list_id", "case_id", {
|
|
161
|
+
* overall_deadline_timestamp: "2024-01-15T09:30:00Z"
|
|
162
|
+
* })
|
|
163
|
+
*/
|
|
164
|
+
applyToCaseV1(taskListId: string, caseId: string, request?: Chrt.operations.OperationsTaskListsApplyToCaseV1Request, requestOptions?: OperationsTaskLists.RequestOptions): core.HttpResponsePromise<string[]>;
|
|
165
|
+
private __applyToCaseV1;
|
|
166
|
+
/**
|
|
167
|
+
* 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)
|
|
168
|
+
*
|
|
169
|
+
* @param {string} taskListId
|
|
170
|
+
* @param {string} caseId
|
|
171
|
+
* @param {OperationsTaskLists.RequestOptions} requestOptions - Request-specific configuration.
|
|
172
|
+
*
|
|
173
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
174
|
+
*
|
|
175
|
+
* @example
|
|
176
|
+
* await client.operations.operationsTaskLists.removeFromCaseV1("task_list_id", "case_id")
|
|
177
|
+
*/
|
|
178
|
+
removeFromCaseV1(taskListId: string, caseId: string, requestOptions?: OperationsTaskLists.RequestOptions): core.HttpResponsePromise<Chrt.OperationsTaskListRemoveFromCaseRes1>;
|
|
179
|
+
private __removeFromCaseV1;
|
|
180
|
+
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
181
|
+
}
|