@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
|
@@ -31,7 +31,7 @@ export declare class OperationsTasks {
|
|
|
31
31
|
protected readonly _options: OperationsTasks.Options;
|
|
32
32
|
constructor(_options?: OperationsTasks.Options);
|
|
33
33
|
/**
|
|
34
|
-
* Lists
|
|
34
|
+
* Lists OperationsTasks for the caller's organization, with order/department/type/status/tag/assignee/deadline filtering, sorting, and pagination. | authz: min_org_role=operator | () -> (OperationsTaskListRes)
|
|
35
35
|
*
|
|
36
36
|
* @param {Chrt.operations.OperationsTasksListV1Request} request
|
|
37
37
|
* @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -44,8 +44,9 @@ export declare class OperationsTasks {
|
|
|
44
44
|
* sort_order: "asc",
|
|
45
45
|
* page: 1,
|
|
46
46
|
* page_size: 1,
|
|
47
|
-
*
|
|
48
|
-
*
|
|
47
|
+
* filter_order_id: "filter_order_id",
|
|
48
|
+
* filter_department_id: "filter_department_id",
|
|
49
|
+
* filter_assigned_user_id: "filter_assigned_user_id",
|
|
49
50
|
* filter_deadline_gte: "2024-01-15T09:30:00Z",
|
|
50
51
|
* filter_deadline_lte: "2024-01-15T09:30:00Z"
|
|
51
52
|
* })
|
|
@@ -93,7 +94,7 @@ export declare class OperationsTasks {
|
|
|
93
94
|
updateV1(taskId: string, request?: Chrt.operations.OperationsTaskClientUpdate1, requestOptions?: OperationsTasks.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
94
95
|
private __updateV1;
|
|
95
96
|
/**
|
|
96
|
-
* Creates a new OperationsTask on
|
|
97
|
+
* Creates a new OperationsTask on an Order the caller's organization has a Case for. | authz: min_org_role=operator | (OperationsTaskClientCreate1) -> (PydanticObjectId)
|
|
97
98
|
*
|
|
98
99
|
* @param {Chrt.operations.OperationsTaskClientCreate1} request
|
|
99
100
|
* @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -103,7 +104,8 @@ export declare class OperationsTasks {
|
|
|
103
104
|
* @example
|
|
104
105
|
* await client.operations.operationsTasks.createV1({
|
|
105
106
|
* schema_version: 1,
|
|
106
|
-
*
|
|
107
|
+
* order_id: "order_id",
|
|
108
|
+
* task_type: "review_order_details",
|
|
107
109
|
* title: "title",
|
|
108
110
|
* description: "description"
|
|
109
111
|
* })
|
|
@@ -136,6 +138,22 @@ export declare class OperationsTasks {
|
|
|
136
138
|
*/
|
|
137
139
|
uncompleteV1(taskId: string, requestOptions?: OperationsTasks.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
138
140
|
private __uncompleteV1;
|
|
141
|
+
/**
|
|
142
|
+
* Sets an OperationsTask's status (not_started / in_progress / completed / skipped). Setting COMPLETED stamps completed_at/by; any other status clears them. | authz: min_org_role=operator | (OperationsTaskStatusReq) -> (bool)
|
|
143
|
+
*
|
|
144
|
+
* @param {string} taskId
|
|
145
|
+
* @param {Chrt.operations.OperationsTaskStatusReq} request
|
|
146
|
+
* @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
|
|
147
|
+
*
|
|
148
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
149
|
+
*
|
|
150
|
+
* @example
|
|
151
|
+
* await client.operations.operationsTasks.updateStatusV1("task_id", {
|
|
152
|
+
* status: "not_started"
|
|
153
|
+
* })
|
|
154
|
+
*/
|
|
155
|
+
updateStatusV1(taskId: string, request: Chrt.operations.OperationsTaskStatusReq, requestOptions?: OperationsTasks.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
156
|
+
private __updateStatusV1;
|
|
139
157
|
/**
|
|
140
158
|
* Appends a comment to an OperationsTask's comment thread. Returns the new comment id. | authz: min_org_role=operator | (OperationsTaskAddCommentReq1) -> (str)
|
|
141
159
|
*
|
|
@@ -20,7 +20,7 @@ export class OperationsTasks {
|
|
|
20
20
|
this._options = _options;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
* Lists
|
|
23
|
+
* Lists OperationsTasks for the caller's organization, with order/department/type/status/tag/assignee/deadline filtering, sorting, and pagination. | authz: min_org_role=operator | () -> (OperationsTaskListRes)
|
|
24
24
|
*
|
|
25
25
|
* @param {Chrt.operations.OperationsTasksListV1Request} request
|
|
26
26
|
* @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -33,8 +33,9 @@ export class OperationsTasks {
|
|
|
33
33
|
* sort_order: "asc",
|
|
34
34
|
* page: 1,
|
|
35
35
|
* page_size: 1,
|
|
36
|
-
*
|
|
37
|
-
*
|
|
36
|
+
* filter_order_id: "filter_order_id",
|
|
37
|
+
* filter_department_id: "filter_department_id",
|
|
38
|
+
* filter_assigned_user_id: "filter_assigned_user_id",
|
|
38
39
|
* filter_deadline_gte: "2024-01-15T09:30:00Z",
|
|
39
40
|
* filter_deadline_lte: "2024-01-15T09:30:00Z"
|
|
40
41
|
* })
|
|
@@ -44,8 +45,8 @@ export class OperationsTasks {
|
|
|
44
45
|
}
|
|
45
46
|
__listV1() {
|
|
46
47
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
47
|
-
var _a, _b, _c, _d, _e, _f
|
|
48
|
-
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize,
|
|
48
|
+
var _a, _b, _c, _d, _e, _f;
|
|
49
|
+
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, filter_order_id: filterOrderId, filter_department_id: filterDepartmentId, filter_task_type: filterTaskType, filter_status: filterStatus, filter_tag: filterTag, filter_assigned_user_id: filterAssignedUserId, filter_deadline_gte: filterDeadlineGte, filter_deadline_lte: filterDeadlineLte, } = request;
|
|
49
50
|
const _queryParams = {};
|
|
50
51
|
if (sortBy !== undefined) {
|
|
51
52
|
_queryParams["sort_by"] = sortBy;
|
|
@@ -59,11 +60,38 @@ export class OperationsTasks {
|
|
|
59
60
|
if (pageSize !== undefined) {
|
|
60
61
|
_queryParams["page_size"] = (_b = pageSize === null || pageSize === void 0 ? void 0 : pageSize.toString()) !== null && _b !== void 0 ? _b : null;
|
|
61
62
|
}
|
|
62
|
-
if (
|
|
63
|
-
_queryParams["
|
|
63
|
+
if (filterOrderId !== undefined) {
|
|
64
|
+
_queryParams["filter_order_id"] = filterOrderId;
|
|
64
65
|
}
|
|
65
|
-
if (
|
|
66
|
-
_queryParams["
|
|
66
|
+
if (filterDepartmentId !== undefined) {
|
|
67
|
+
_queryParams["filter_department_id"] = filterDepartmentId;
|
|
68
|
+
}
|
|
69
|
+
if (filterTaskType !== undefined) {
|
|
70
|
+
if (Array.isArray(filterTaskType)) {
|
|
71
|
+
_queryParams["filter_task_type"] = filterTaskType.map((item) => item);
|
|
72
|
+
}
|
|
73
|
+
else {
|
|
74
|
+
_queryParams["filter_task_type"] = filterTaskType;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
if (filterStatus !== undefined) {
|
|
78
|
+
if (Array.isArray(filterStatus)) {
|
|
79
|
+
_queryParams["filter_status"] = filterStatus.map((item) => item);
|
|
80
|
+
}
|
|
81
|
+
else {
|
|
82
|
+
_queryParams["filter_status"] = filterStatus;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
if (filterTag !== undefined) {
|
|
86
|
+
if (Array.isArray(filterTag)) {
|
|
87
|
+
_queryParams["filter_tag"] = filterTag.map((item) => item);
|
|
88
|
+
}
|
|
89
|
+
else {
|
|
90
|
+
_queryParams["filter_tag"] = filterTag;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
if (filterAssignedUserId !== undefined) {
|
|
94
|
+
_queryParams["filter_assigned_user_id"] = filterAssignedUserId;
|
|
67
95
|
}
|
|
68
96
|
if (filterDeadlineGte !== undefined) {
|
|
69
97
|
_queryParams["filter_deadline_gte"] = filterDeadlineGte;
|
|
@@ -71,9 +99,9 @@ export class OperationsTasks {
|
|
|
71
99
|
if (filterDeadlineLte !== undefined) {
|
|
72
100
|
_queryParams["filter_deadline_lte"] = filterDeadlineLte;
|
|
73
101
|
}
|
|
74
|
-
let _headers = mergeHeaders((
|
|
75
|
-
const _response = yield ((
|
|
76
|
-
url: core.url.join((
|
|
102
|
+
let _headers = mergeHeaders((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
103
|
+
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
104
|
+
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ChrtEnvironment.Local, "operations/operations_tasks/list/v1"),
|
|
77
105
|
method: "GET",
|
|
78
106
|
headers: _headers,
|
|
79
107
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -295,7 +323,7 @@ export class OperationsTasks {
|
|
|
295
323
|
});
|
|
296
324
|
}
|
|
297
325
|
/**
|
|
298
|
-
* Creates a new OperationsTask on
|
|
326
|
+
* Creates a new OperationsTask on an Order the caller's organization has a Case for. | authz: min_org_role=operator | (OperationsTaskClientCreate1) -> (PydanticObjectId)
|
|
299
327
|
*
|
|
300
328
|
* @param {Chrt.operations.OperationsTaskClientCreate1} request
|
|
301
329
|
* @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -305,7 +333,8 @@ export class OperationsTasks {
|
|
|
305
333
|
* @example
|
|
306
334
|
* await client.operations.operationsTasks.createV1({
|
|
307
335
|
* schema_version: 1,
|
|
308
|
-
*
|
|
336
|
+
* order_id: "order_id",
|
|
337
|
+
* task_type: "review_order_details",
|
|
309
338
|
* title: "title",
|
|
310
339
|
* description: "description"
|
|
311
340
|
* })
|
|
@@ -479,6 +508,71 @@ export class OperationsTasks {
|
|
|
479
508
|
}
|
|
480
509
|
});
|
|
481
510
|
}
|
|
511
|
+
/**
|
|
512
|
+
* Sets an OperationsTask's status (not_started / in_progress / completed / skipped). Setting COMPLETED stamps completed_at/by; any other status clears them. | authz: min_org_role=operator | (OperationsTaskStatusReq) -> (bool)
|
|
513
|
+
*
|
|
514
|
+
* @param {string} taskId
|
|
515
|
+
* @param {Chrt.operations.OperationsTaskStatusReq} request
|
|
516
|
+
* @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
|
|
517
|
+
*
|
|
518
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
519
|
+
*
|
|
520
|
+
* @example
|
|
521
|
+
* await client.operations.operationsTasks.updateStatusV1("task_id", {
|
|
522
|
+
* status: "not_started"
|
|
523
|
+
* })
|
|
524
|
+
*/
|
|
525
|
+
updateStatusV1(taskId, request, requestOptions) {
|
|
526
|
+
return core.HttpResponsePromise.fromPromise(this.__updateStatusV1(taskId, request, requestOptions));
|
|
527
|
+
}
|
|
528
|
+
__updateStatusV1(taskId, request, requestOptions) {
|
|
529
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
530
|
+
var _a, _b, _c, _d;
|
|
531
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
532
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
533
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `operations/operations_tasks/status/v1/${encodeURIComponent(taskId)}`),
|
|
534
|
+
method: "PATCH",
|
|
535
|
+
headers: _headers,
|
|
536
|
+
contentType: "application/json",
|
|
537
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
538
|
+
requestType: "json",
|
|
539
|
+
body: request,
|
|
540
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
541
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
542
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
543
|
+
});
|
|
544
|
+
if (_response.ok) {
|
|
545
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
546
|
+
}
|
|
547
|
+
if (_response.error.reason === "status-code") {
|
|
548
|
+
switch (_response.error.statusCode) {
|
|
549
|
+
case 422:
|
|
550
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
551
|
+
default:
|
|
552
|
+
throw new errors.ChrtError({
|
|
553
|
+
statusCode: _response.error.statusCode,
|
|
554
|
+
body: _response.error.body,
|
|
555
|
+
rawResponse: _response.rawResponse,
|
|
556
|
+
});
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
switch (_response.error.reason) {
|
|
560
|
+
case "non-json":
|
|
561
|
+
throw new errors.ChrtError({
|
|
562
|
+
statusCode: _response.error.statusCode,
|
|
563
|
+
body: _response.error.rawBody,
|
|
564
|
+
rawResponse: _response.rawResponse,
|
|
565
|
+
});
|
|
566
|
+
case "timeout":
|
|
567
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /operations/operations_tasks/status/v1/{task_id}.");
|
|
568
|
+
case "unknown":
|
|
569
|
+
throw new errors.ChrtError({
|
|
570
|
+
message: _response.error.errorMessage,
|
|
571
|
+
rawResponse: _response.rawResponse,
|
|
572
|
+
});
|
|
573
|
+
}
|
|
574
|
+
});
|
|
575
|
+
}
|
|
482
576
|
/**
|
|
483
577
|
* Appends a comment to an OperationsTask's comment thread. Returns the new comment id. | authz: min_org_role=operator | (OperationsTaskAddCommentReq1) -> (str)
|
|
484
578
|
*
|
|
@@ -1,19 +1,24 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as Chrt from "../../../../../../index.mjs";
|
|
4
5
|
/**
|
|
5
6
|
* @example
|
|
6
7
|
* {
|
|
7
8
|
* schema_version: 1,
|
|
8
|
-
*
|
|
9
|
+
* order_id: "order_id",
|
|
10
|
+
* task_type: "review_order_details",
|
|
9
11
|
* title: "title",
|
|
10
12
|
* description: "description"
|
|
11
13
|
* }
|
|
12
14
|
*/
|
|
13
15
|
export interface OperationsTaskClientCreate1 {
|
|
14
16
|
schema_version: number;
|
|
15
|
-
|
|
17
|
+
order_id: string;
|
|
18
|
+
task_type: Chrt.OperationsTaskTypeEnum;
|
|
16
19
|
title: string;
|
|
17
20
|
description: string;
|
|
18
21
|
deadline_timestamp?: string;
|
|
22
|
+
tags?: string[];
|
|
23
|
+
assigned_user_ids?: string[];
|
|
19
24
|
}
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as Chrt from "../../../../../../index.mjs";
|
|
4
5
|
/**
|
|
5
6
|
* @example
|
|
6
7
|
* {}
|
|
7
8
|
*/
|
|
8
9
|
export interface OperationsTaskClientUpdate1 {
|
|
10
|
+
task_type?: Chrt.OperationsTaskTypeEnum | null;
|
|
9
11
|
title?: string | null;
|
|
10
12
|
description?: string | null;
|
|
11
13
|
deadline_timestamp?: string | null;
|
|
14
|
+
tags?: string[];
|
|
15
|
+
assigned_user_ids?: string[];
|
|
12
16
|
}
|
|
@@ -5,9 +5,9 @@ import * as Chrt from "../../../../../../index.mjs";
|
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
8
|
-
* status: "
|
|
8
|
+
* status: "not_started"
|
|
9
9
|
* }
|
|
10
10
|
*/
|
|
11
|
-
export interface
|
|
12
|
-
status: Chrt.
|
|
11
|
+
export interface OperationsTaskStatusReq {
|
|
12
|
+
status: Chrt.OperationsTaskStatusEnum;
|
|
13
13
|
}
|
|
@@ -9,8 +9,9 @@ import * as Chrt from "../../../../../../index.mjs";
|
|
|
9
9
|
* sort_order: "asc",
|
|
10
10
|
* page: 1,
|
|
11
11
|
* page_size: 1,
|
|
12
|
-
*
|
|
13
|
-
*
|
|
12
|
+
* filter_order_id: "filter_order_id",
|
|
13
|
+
* filter_department_id: "filter_department_id",
|
|
14
|
+
* filter_assigned_user_id: "filter_assigned_user_id",
|
|
14
15
|
* filter_deadline_gte: "2024-01-15T09:30:00Z",
|
|
15
16
|
* filter_deadline_lte: "2024-01-15T09:30:00Z"
|
|
16
17
|
* }
|
|
@@ -22,10 +23,18 @@ export interface OperationsTasksListV1Request {
|
|
|
22
23
|
sort_order?: Chrt.SortOrderEnum | null;
|
|
23
24
|
page?: number | null;
|
|
24
25
|
page_size?: number | null;
|
|
25
|
-
/** Filter by
|
|
26
|
-
|
|
27
|
-
/** Filter
|
|
28
|
-
|
|
26
|
+
/** Filter by order id */
|
|
27
|
+
filter_order_id?: string | null;
|
|
28
|
+
/** Filter to tasks routed to this department (desk queue) */
|
|
29
|
+
filter_department_id?: string | null;
|
|
30
|
+
/** Filter by task type(s). Defaults to all types. */
|
|
31
|
+
filter_task_type?: (Chrt.OperationsTaskTypeEnum | null) | (Chrt.OperationsTaskTypeEnum | null)[];
|
|
32
|
+
/** Filter by status(es). Defaults to all statuses. */
|
|
33
|
+
filter_status?: (Chrt.OperationsTaskStatusEnum | null) | (Chrt.OperationsTaskStatusEnum | null)[];
|
|
34
|
+
/** Filter to tasks carrying ANY of these tags */
|
|
35
|
+
filter_tag?: (string | null) | (string | null)[];
|
|
36
|
+
/** Filter to tasks this user is directly assigned to */
|
|
37
|
+
filter_assigned_user_id?: string | null;
|
|
29
38
|
/** Filter to tasks with deadline >= this timestamp */
|
|
30
39
|
filter_deadline_gte?: string | null;
|
|
31
40
|
/** Filter to tasks with deadline <= this timestamp */
|
package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/index.d.mts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { type OperationsTasksListV1Request } from "./OperationsTasksListV1Request.mjs";
|
|
2
2
|
export { type OperationsTaskClientUpdate1 } from "./OperationsTaskClientUpdate1.mjs";
|
|
3
3
|
export { type OperationsTaskClientCreate1 } from "./OperationsTaskClientCreate1.mjs";
|
|
4
|
+
export { type OperationsTaskStatusReq } from "./OperationsTaskStatusReq.mjs";
|
|
4
5
|
export { type OperationsTaskAddCommentReq1 } from "./OperationsTaskAddCommentReq1.mjs";
|
|
@@ -107,20 +107,6 @@ export declare class Connections {
|
|
|
107
107
|
*/
|
|
108
108
|
createConnectionToShipperV1(request: Chrt.CreateConnectionReq, requestOptions?: Connections.RequestOptions): core.HttpResponsePromise<string>;
|
|
109
109
|
private __createConnectionToShipperV1;
|
|
110
|
-
/**
|
|
111
|
-
* Sets or clears the department on a connection. Send null to clear. | authz: min_org_role=administrator | (SetDepartmentReq) -> (bool)
|
|
112
|
-
*
|
|
113
|
-
* @param {string} connectionId
|
|
114
|
-
* @param {Chrt.orgs.SetDepartmentReq} request
|
|
115
|
-
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
116
|
-
*
|
|
117
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
118
|
-
*
|
|
119
|
-
* @example
|
|
120
|
-
* await client.orgs.connections.setDepartmentV1("connection_id")
|
|
121
|
-
*/
|
|
122
|
-
setDepartmentV1(connectionId: string, request?: Chrt.orgs.SetDepartmentReq, requestOptions?: Connections.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
123
|
-
private __setDepartmentV1;
|
|
124
110
|
/**
|
|
125
111
|
* Toggles `auto_assign_enabled` on a provider-provider connection — the executor org's opt-in for receiving direct (non-bidding) task-group assignments. Executor org only, min role: administrator. | (ProviderProviderUpdateAutoAssignReq) -> (bool)
|
|
126
112
|
*
|
|
@@ -357,69 +357,6 @@ export class Connections {
|
|
|
357
357
|
}
|
|
358
358
|
});
|
|
359
359
|
}
|
|
360
|
-
/**
|
|
361
|
-
* Sets or clears the department on a connection. Send null to clear. | authz: min_org_role=administrator | (SetDepartmentReq) -> (bool)
|
|
362
|
-
*
|
|
363
|
-
* @param {string} connectionId
|
|
364
|
-
* @param {Chrt.orgs.SetDepartmentReq} request
|
|
365
|
-
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
366
|
-
*
|
|
367
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
368
|
-
*
|
|
369
|
-
* @example
|
|
370
|
-
* await client.orgs.connections.setDepartmentV1("connection_id")
|
|
371
|
-
*/
|
|
372
|
-
setDepartmentV1(connectionId, request = {}, requestOptions) {
|
|
373
|
-
return core.HttpResponsePromise.fromPromise(this.__setDepartmentV1(connectionId, request, requestOptions));
|
|
374
|
-
}
|
|
375
|
-
__setDepartmentV1(connectionId_1) {
|
|
376
|
-
return __awaiter(this, arguments, void 0, function* (connectionId, request = {}, requestOptions) {
|
|
377
|
-
var _a, _b, _c, _d;
|
|
378
|
-
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
379
|
-
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
380
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `orgs/connections/set_department/v1/${encodeURIComponent(connectionId)}`),
|
|
381
|
-
method: "PATCH",
|
|
382
|
-
headers: _headers,
|
|
383
|
-
contentType: "application/json",
|
|
384
|
-
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
385
|
-
requestType: "json",
|
|
386
|
-
body: request,
|
|
387
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
388
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
389
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
390
|
-
});
|
|
391
|
-
if (_response.ok) {
|
|
392
|
-
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
393
|
-
}
|
|
394
|
-
if (_response.error.reason === "status-code") {
|
|
395
|
-
switch (_response.error.statusCode) {
|
|
396
|
-
case 422:
|
|
397
|
-
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
398
|
-
default:
|
|
399
|
-
throw new errors.ChrtError({
|
|
400
|
-
statusCode: _response.error.statusCode,
|
|
401
|
-
body: _response.error.body,
|
|
402
|
-
rawResponse: _response.rawResponse,
|
|
403
|
-
});
|
|
404
|
-
}
|
|
405
|
-
}
|
|
406
|
-
switch (_response.error.reason) {
|
|
407
|
-
case "non-json":
|
|
408
|
-
throw new errors.ChrtError({
|
|
409
|
-
statusCode: _response.error.statusCode,
|
|
410
|
-
body: _response.error.rawBody,
|
|
411
|
-
rawResponse: _response.rawResponse,
|
|
412
|
-
});
|
|
413
|
-
case "timeout":
|
|
414
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /orgs/connections/set_department/v1/{connection_id}.");
|
|
415
|
-
case "unknown":
|
|
416
|
-
throw new errors.ChrtError({
|
|
417
|
-
message: _response.error.errorMessage,
|
|
418
|
-
rawResponse: _response.rawResponse,
|
|
419
|
-
});
|
|
420
|
-
}
|
|
421
|
-
});
|
|
422
|
-
}
|
|
423
360
|
/**
|
|
424
361
|
* Toggles `auto_assign_enabled` on a provider-provider connection — the executor org's opt-in for receiving direct (non-bidding) task-group assignments. Executor org only, min role: administrator. | (ProviderProviderUpdateAutoAssignReq) -> (bool)
|
|
425
362
|
*
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
export { type ConnectionsListShippersV1Request } from "./ConnectionsListShippersV1Request.mjs";
|
|
2
2
|
export { type ConnectionsListProvidersV1Request } from "./ConnectionsListProvidersV1Request.mjs";
|
|
3
|
-
export { type SetDepartmentReq } from "./SetDepartmentReq.mjs";
|
|
4
3
|
export { type ProviderProviderUpdateAutoAssignReq } from "./ProviderProviderUpdateAutoAssignReq.mjs";
|
|
@@ -13,7 +13,6 @@ export interface OffChrtProviderOrgClientCreate1 {
|
|
|
13
13
|
schema_version: number;
|
|
14
14
|
company_name?: string | null;
|
|
15
15
|
industry?: string | null;
|
|
16
|
-
department_id?: string | null;
|
|
17
16
|
street_address?: Chrt.LocationFeature | null;
|
|
18
17
|
contact_first_name?: string | null;
|
|
19
18
|
contact_last_name?: string | null;
|
|
@@ -17,8 +17,6 @@ export interface OffChrtProviderOrgClientUpdate1 {
|
|
|
17
17
|
email_address_secondary?: string | null;
|
|
18
18
|
job_title?: string | null;
|
|
19
19
|
notes?: string | null;
|
|
20
|
-
department_id?: string | null;
|
|
21
|
-
department_id__set_to_None?: boolean;
|
|
22
20
|
industry__set_to_None?: boolean;
|
|
23
21
|
street_address__set_to_None?: boolean;
|
|
24
22
|
contact_first_name__set_to_None?: boolean;
|
|
@@ -13,7 +13,6 @@ export interface OffChrtShipperOrgClientCreate1 {
|
|
|
13
13
|
schema_version: number;
|
|
14
14
|
company_name?: string | null;
|
|
15
15
|
industry?: string | null;
|
|
16
|
-
department_id?: string | null;
|
|
17
16
|
street_address?: Chrt.LocationFeature | null;
|
|
18
17
|
contact_first_name?: string | null;
|
|
19
18
|
contact_last_name?: string | null;
|
|
@@ -17,8 +17,6 @@ export interface OffChrtShipperOrgClientUpdate1 {
|
|
|
17
17
|
email_address_secondary?: string | null;
|
|
18
18
|
job_title?: string | null;
|
|
19
19
|
notes?: string | null;
|
|
20
|
-
department_id?: string | null;
|
|
21
|
-
department_id__set_to_None?: boolean;
|
|
22
20
|
industry__set_to_None?: boolean;
|
|
23
21
|
street_address__set_to_None?: boolean;
|
|
24
22
|
contact_first_name__set_to_None?: boolean;
|
|
@@ -13,4 +13,5 @@ export interface OrdersNewDraftReq {
|
|
|
13
13
|
off_chrt_shipper_org_id?: string | null;
|
|
14
14
|
/** Must be a URL-safe string of 1-64 characters. Allowed characters: A-Z, a-z, 0-9, '.', '_', '~', '-' (RFC 3986 unreserved). */
|
|
15
15
|
off_chrt_reference_id?: string | null;
|
|
16
|
+
department_id?: string | null;
|
|
16
17
|
}
|
|
@@ -6,7 +6,7 @@ import * as Chrt from "../index.mjs";
|
|
|
6
6
|
* Structured, factual description of a task-artifact image produced by an LLM.
|
|
7
7
|
*
|
|
8
8
|
* Stored on `TaskArtifactS3ObjectMetadata1.ai_image_description` so downstream
|
|
9
|
-
* consumers (Q&A, search, audit
|
|
9
|
+
* consumers (Q&A, search, audit) can answer questions about the
|
|
10
10
|
* artifact without re-sending the image. `model` records which LLM produced
|
|
11
11
|
* the description; `provider` is derived from `model` so the two can never
|
|
12
12
|
* disagree.
|
|
@@ -5,23 +5,12 @@ import * as Chrt from "../index.mjs";
|
|
|
5
5
|
export interface Case1 {
|
|
6
6
|
schema_version: number;
|
|
7
7
|
order_id: string;
|
|
8
|
-
/** Must be a URL-safe string of 1-64 characters. Allowed characters: A-Z, a-z, 0-9, '.', '_', '~', '-' (RFC 3986 unreserved). */
|
|
9
|
-
order_ref?: string | null;
|
|
10
|
-
order_short_id?: string | null;
|
|
11
8
|
department_id?: string | null;
|
|
12
|
-
|
|
9
|
+
assigned_user_ids?: string[];
|
|
13
10
|
case_s3_object_metadata_ids?: string[];
|
|
14
11
|
_id: string;
|
|
15
12
|
/** Must be a string starting with `org_` */
|
|
16
13
|
org_id: string;
|
|
17
|
-
status?: Chrt.CaseStatusEnum;
|
|
18
|
-
needs_action?: boolean;
|
|
19
14
|
messages?: Chrt.CaseMessage1[];
|
|
20
|
-
enabled_check_keys?: Chrt.CheckEnum[];
|
|
21
|
-
disabled_check_keys?: Chrt.CheckEnum[];
|
|
22
|
-
checks?: Chrt.Check1[];
|
|
23
|
-
checks_summary?: Chrt.CaseChecksSummary1;
|
|
24
|
-
/** Must be a string starting with `user_` */
|
|
25
|
-
created_by_user_id: string;
|
|
26
15
|
created_at: string;
|
|
27
16
|
}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export type CaseSortByEnum = "created_at" | "
|
|
4
|
+
export type CaseSortByEnum = "created_at" | "department_id";
|
|
5
5
|
export declare const CaseSortByEnum: {
|
|
6
6
|
readonly CreatedAt: "created_at";
|
|
7
|
-
readonly Status: "status";
|
|
8
7
|
readonly DepartmentId: "department_id";
|
|
9
8
|
};
|
|
@@ -5,12 +5,13 @@ import * as Chrt from "../index.mjs";
|
|
|
5
5
|
export interface Department1 {
|
|
6
6
|
schema_version: number;
|
|
7
7
|
name: string;
|
|
8
|
-
|
|
8
|
+
department_type: Chrt.DepartmentTypeEnum;
|
|
9
9
|
location?: Chrt.LocationFeature | null;
|
|
10
10
|
operator_user_ids?: string[];
|
|
11
11
|
_id: string;
|
|
12
12
|
/** Must be a string starting with `org_` */
|
|
13
13
|
org_id: string;
|
|
14
|
+
short_id: string;
|
|
14
15
|
/** Must be a string starting with `user_` */
|
|
15
16
|
created_by_user_id: string;
|
|
16
17
|
created_at: string;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Chrt from "../index.mjs";
|
|
5
|
+
export interface DepartmentRoutingRule1 {
|
|
6
|
+
schema_version: number;
|
|
7
|
+
counterparty_type: Chrt.RoutingCounterpartyTypeEnum;
|
|
8
|
+
counterparty_id: string;
|
|
9
|
+
department_id: string;
|
|
10
|
+
_id: string;
|
|
11
|
+
/** Must be a string starting with `org_` */
|
|
12
|
+
owner_org_id: string;
|
|
13
|
+
/** Must be a string starting with `user_` */
|
|
14
|
+
created_by_user_id: string;
|
|
15
|
+
created_at: string;
|
|
16
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export type DepartmentSortByEnum = "created_at" | "
|
|
4
|
+
export type DepartmentSortByEnum = "created_at" | "department_type";
|
|
5
5
|
export declare const DepartmentSortByEnum: {
|
|
6
6
|
readonly CreatedAt: "created_at";
|
|
7
|
-
readonly
|
|
7
|
+
readonly DepartmentType: "department_type";
|
|
8
8
|
};
|
|
@@ -1,18 +1,23 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export type
|
|
5
|
-
export declare const
|
|
6
|
-
readonly Automotive: "automotive";
|
|
7
|
-
readonly Semiconductor: "semiconductor";
|
|
8
|
-
readonly Pharmaceutical: "pharmaceutical";
|
|
4
|
+
export type DepartmentTypeEnum = "aerospace" | "agriculture" | "automotive" | "chemicals" | "electronics" | "energy" | "food_and_beverage" | "general" | "healthcare" | "industrials" | "life_sciences" | "live_animals" | "manufacturing" | "pharmaceutical" | "radiopharma" | "retail" | "semiconductor";
|
|
5
|
+
export declare const DepartmentTypeEnum: {
|
|
9
6
|
readonly Aerospace: "aerospace";
|
|
10
7
|
readonly Agriculture: "agriculture";
|
|
11
|
-
readonly
|
|
12
|
-
readonly Manufacturing: "manufacturing";
|
|
13
|
-
readonly Energy: "energy";
|
|
14
|
-
readonly FoodAndBeverage: "food_and_beverage";
|
|
8
|
+
readonly Automotive: "automotive";
|
|
15
9
|
readonly Chemicals: "chemicals";
|
|
16
10
|
readonly Electronics: "electronics";
|
|
11
|
+
readonly Energy: "energy";
|
|
12
|
+
readonly FoodAndBeverage: "food_and_beverage";
|
|
17
13
|
readonly General: "general";
|
|
14
|
+
readonly Healthcare: "healthcare";
|
|
15
|
+
readonly Industrials: "industrials";
|
|
16
|
+
readonly LifeSciences: "life_sciences";
|
|
17
|
+
readonly LiveAnimals: "live_animals";
|
|
18
|
+
readonly Manufacturing: "manufacturing";
|
|
19
|
+
readonly Pharmaceutical: "pharmaceutical";
|
|
20
|
+
readonly Radiopharma: "radiopharma";
|
|
21
|
+
readonly Retail: "retail";
|
|
22
|
+
readonly Semiconductor: "semiconductor";
|
|
18
23
|
};
|