@chrt-inc/typescript-sdk 1.719.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 +1 -1
- package/dist/cjs/api/resources/operations/resources/departments/client/requests/DepartmentClientCreate1.d.ts +1 -1
- package/dist/cjs/api/resources/operations/resources/index.d.ts +4 -2
- package/dist/cjs/api/resources/operations/resources/index.js +5 -3
- package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/Client.d.ts +181 -0
- package/dist/cjs/api/resources/operations/resources/{checklists → operationsTaskLists}/client/Client.js +206 -75
- package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/index.js +17 -0
- package/dist/cjs/api/resources/operations/resources/{checklists/client/requests/ChecklistClientCreate1.d.ts → operationsTaskLists/client/requests/OperationsTaskListClientCreate1.d.ts} +3 -2
- package/dist/{esm/api/resources/operations/resources/checklists/client/requests/ChecklistClientUpdate1.d.mts → cjs/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListClientUpdate1.d.ts} +2 -1
- package/dist/cjs/api/resources/operations/resources/{checklists/client/requests/ChecklistChecksAdd1.d.ts → operationsTaskLists/client/requests/OperationsTaskListEntriesAdd1.d.ts} +2 -2
- package/dist/cjs/api/resources/{orgs/resources/connections/client/requests/SetDepartmentReq.d.ts → operations/resources/operationsTaskLists/client/requests/OperationsTaskListEntriesRemove1.d.ts} +2 -2
- package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListsApplyToCaseV1Request.d.ts +13 -0
- package/dist/cjs/api/resources/operations/resources/{checklists/client/requests/ChecklistsListV1Request.d.ts → operationsTaskLists/client/requests/OperationsTaskListsListV1Request.d.ts} +2 -2
- package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/index.d.ts +6 -0
- package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/operations/resources/operationsTaskLists/index.d.ts +1 -0
- package/dist/cjs/api/resources/operations/resources/operationsTaskLists/index.js +17 -0
- package/dist/cjs/api/resources/operations/resources/operationsTasks/client/Client.d.ts +23 -5
- package/dist/cjs/api/resources/operations/resources/operationsTasks/client/Client.js +108 -14
- package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/OperationsTaskClientCreate1.d.ts +7 -2
- package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/OperationsTaskClientUpdate1.d.ts +4 -0
- package/dist/cjs/api/resources/operations/resources/{cases/client/requests/CaseStatusReq.d.ts → operationsTasks/client/requests/OperationsTaskStatusReq.d.ts} +3 -3
- package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksListV1Request.d.ts +15 -6
- package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/orgs/resources/connections/client/Client.d.ts +0 -14
- package/dist/cjs/api/resources/orgs/resources/connections/client/Client.js +0 -63
- package/dist/cjs/api/resources/orgs/resources/connections/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/orgs/resources/offChrtProviderOrg/client/requests/OffChrtProviderOrgClientCreate1.d.ts +0 -1
- package/dist/cjs/api/resources/orgs/resources/offChrtProviderOrg/client/requests/OffChrtProviderOrgClientUpdate1.d.ts +0 -2
- package/dist/cjs/api/resources/orgs/resources/offChrtShipperOrg/client/requests/OffChrtShipperOrgClientCreate1.d.ts +0 -1
- package/dist/cjs/api/resources/orgs/resources/offChrtShipperOrg/client/requests/OffChrtShipperOrgClientUpdate1.d.ts +0 -2
- package/dist/cjs/api/resources/shipping/resources/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 +1 -0
- package/dist/cjs/api/types/DepartmentRoutingRule1.d.ts +16 -0
- package/dist/cjs/api/types/DepartmentTypeEnum.d.ts +10 -10
- package/dist/cjs/api/types/DepartmentTypeEnum.js +9 -9
- package/dist/cjs/api/types/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 +9 -11
- package/dist/cjs/api/types/index.js +9 -11
- 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 +1 -1
- package/dist/esm/api/resources/operations/resources/departments/client/requests/DepartmentClientCreate1.d.mts +1 -1
- package/dist/esm/api/resources/operations/resources/index.d.mts +4 -2
- package/dist/esm/api/resources/operations/resources/index.mjs +4 -2
- package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/Client.d.mts +181 -0
- package/dist/esm/api/resources/operations/resources/{checklists → operationsTaskLists}/client/Client.mjs +204 -73
- package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/index.d.mts +2 -0
- package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/index.mjs +1 -0
- package/dist/esm/api/resources/operations/resources/{checklists/client/requests/ChecklistClientCreate1.d.mts → operationsTaskLists/client/requests/OperationsTaskListClientCreate1.d.mts} +3 -2
- package/dist/{cjs/api/resources/operations/resources/checklists/client/requests/ChecklistClientUpdate1.d.ts → esm/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListClientUpdate1.d.mts} +2 -1
- package/dist/esm/api/resources/operations/resources/{checklists/client/requests/ChecklistChecksAdd1.d.mts → operationsTaskLists/client/requests/OperationsTaskListEntriesAdd1.d.mts} +2 -2
- package/dist/esm/api/resources/{orgs/resources/connections/client/requests/SetDepartmentReq.d.mts → operations/resources/operationsTaskLists/client/requests/OperationsTaskListEntriesRemove1.d.mts} +2 -2
- package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListsApplyToCaseV1Request.d.mts +13 -0
- package/dist/esm/api/resources/operations/resources/{checklists/client/requests/ChecklistsListV1Request.d.mts → operationsTaskLists/client/requests/OperationsTaskListsListV1Request.d.mts} +2 -2
- package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/index.d.mts +6 -0
- package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/operations/resources/operationsTaskLists/index.d.mts +1 -0
- package/dist/esm/api/resources/operations/resources/operationsTaskLists/index.mjs +1 -0
- package/dist/esm/api/resources/operations/resources/operationsTasks/client/Client.d.mts +23 -5
- package/dist/esm/api/resources/operations/resources/operationsTasks/client/Client.mjs +108 -14
- package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTaskClientCreate1.d.mts +7 -2
- package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTaskClientUpdate1.d.mts +4 -0
- package/dist/esm/api/resources/operations/resources/{cases/client/requests/CaseStatusReq.d.mts → operationsTasks/client/requests/OperationsTaskStatusReq.d.mts} +3 -3
- package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksListV1Request.d.mts +15 -6
- package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/orgs/resources/connections/client/Client.d.mts +0 -14
- package/dist/esm/api/resources/orgs/resources/connections/client/Client.mjs +0 -63
- package/dist/esm/api/resources/orgs/resources/connections/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/orgs/resources/offChrtProviderOrg/client/requests/OffChrtProviderOrgClientCreate1.d.mts +0 -1
- package/dist/esm/api/resources/orgs/resources/offChrtProviderOrg/client/requests/OffChrtProviderOrgClientUpdate1.d.mts +0 -2
- package/dist/esm/api/resources/orgs/resources/offChrtShipperOrg/client/requests/OffChrtShipperOrgClientCreate1.d.mts +0 -1
- package/dist/esm/api/resources/orgs/resources/offChrtShipperOrg/client/requests/OffChrtShipperOrgClientUpdate1.d.mts +0 -2
- package/dist/esm/api/resources/shipping/resources/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 +1 -0
- package/dist/esm/api/types/DepartmentRoutingRule1.d.mts +16 -0
- package/dist/esm/api/types/DepartmentTypeEnum.d.mts +10 -10
- package/dist/esm/api/types/DepartmentTypeEnum.mjs +9 -9
- package/dist/esm/api/types/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 +9 -11
- package/dist/esm/api/types/index.mjs +9 -11
- 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
|
*
|
|
@@ -56,7 +56,7 @@ class OperationsTasks {
|
|
|
56
56
|
this._options = _options;
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
|
-
* Lists
|
|
59
|
+
* Lists OperationsTasks for the caller's organization, with order/department/type/status/tag/assignee/deadline filtering, sorting, and pagination. | authz: min_org_role=operator | () -> (OperationsTaskListRes)
|
|
60
60
|
*
|
|
61
61
|
* @param {Chrt.operations.OperationsTasksListV1Request} request
|
|
62
62
|
* @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -69,8 +69,9 @@ class OperationsTasks {
|
|
|
69
69
|
* sort_order: "asc",
|
|
70
70
|
* page: 1,
|
|
71
71
|
* page_size: 1,
|
|
72
|
-
*
|
|
73
|
-
*
|
|
72
|
+
* filter_order_id: "filter_order_id",
|
|
73
|
+
* filter_department_id: "filter_department_id",
|
|
74
|
+
* filter_assigned_user_id: "filter_assigned_user_id",
|
|
74
75
|
* filter_deadline_gte: "2024-01-15T09:30:00Z",
|
|
75
76
|
* filter_deadline_lte: "2024-01-15T09:30:00Z"
|
|
76
77
|
* })
|
|
@@ -80,8 +81,8 @@ class OperationsTasks {
|
|
|
80
81
|
}
|
|
81
82
|
__listV1() {
|
|
82
83
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
83
|
-
var _a, _b, _c, _d, _e, _f
|
|
84
|
-
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize,
|
|
84
|
+
var _a, _b, _c, _d, _e, _f;
|
|
85
|
+
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, filter_order_id: filterOrderId, filter_department_id: filterDepartmentId, filter_task_type: filterTaskType, filter_status: filterStatus, filter_tag: filterTag, filter_assigned_user_id: filterAssignedUserId, filter_deadline_gte: filterDeadlineGte, filter_deadline_lte: filterDeadlineLte, } = request;
|
|
85
86
|
const _queryParams = {};
|
|
86
87
|
if (sortBy !== undefined) {
|
|
87
88
|
_queryParams["sort_by"] = sortBy;
|
|
@@ -95,11 +96,38 @@ class OperationsTasks {
|
|
|
95
96
|
if (pageSize !== undefined) {
|
|
96
97
|
_queryParams["page_size"] = (_b = pageSize === null || pageSize === void 0 ? void 0 : pageSize.toString()) !== null && _b !== void 0 ? _b : null;
|
|
97
98
|
}
|
|
98
|
-
if (
|
|
99
|
-
_queryParams["
|
|
99
|
+
if (filterOrderId !== undefined) {
|
|
100
|
+
_queryParams["filter_order_id"] = filterOrderId;
|
|
100
101
|
}
|
|
101
|
-
if (
|
|
102
|
-
_queryParams["
|
|
102
|
+
if (filterDepartmentId !== undefined) {
|
|
103
|
+
_queryParams["filter_department_id"] = filterDepartmentId;
|
|
104
|
+
}
|
|
105
|
+
if (filterTaskType !== undefined) {
|
|
106
|
+
if (Array.isArray(filterTaskType)) {
|
|
107
|
+
_queryParams["filter_task_type"] = filterTaskType.map((item) => item);
|
|
108
|
+
}
|
|
109
|
+
else {
|
|
110
|
+
_queryParams["filter_task_type"] = filterTaskType;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
if (filterStatus !== undefined) {
|
|
114
|
+
if (Array.isArray(filterStatus)) {
|
|
115
|
+
_queryParams["filter_status"] = filterStatus.map((item) => item);
|
|
116
|
+
}
|
|
117
|
+
else {
|
|
118
|
+
_queryParams["filter_status"] = filterStatus;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
if (filterTag !== undefined) {
|
|
122
|
+
if (Array.isArray(filterTag)) {
|
|
123
|
+
_queryParams["filter_tag"] = filterTag.map((item) => item);
|
|
124
|
+
}
|
|
125
|
+
else {
|
|
126
|
+
_queryParams["filter_tag"] = filterTag;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
if (filterAssignedUserId !== undefined) {
|
|
130
|
+
_queryParams["filter_assigned_user_id"] = filterAssignedUserId;
|
|
103
131
|
}
|
|
104
132
|
if (filterDeadlineGte !== undefined) {
|
|
105
133
|
_queryParams["filter_deadline_gte"] = filterDeadlineGte;
|
|
@@ -107,9 +135,9 @@ class OperationsTasks {
|
|
|
107
135
|
if (filterDeadlineLte !== undefined) {
|
|
108
136
|
_queryParams["filter_deadline_lte"] = filterDeadlineLte;
|
|
109
137
|
}
|
|
110
|
-
let _headers = (0, headers_js_1.mergeHeaders)((
|
|
111
|
-
const _response = yield ((
|
|
112
|
-
url: core.url.join((
|
|
138
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
139
|
+
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
140
|
+
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ChrtEnvironment.Local, "operations/operations_tasks/list/v1"),
|
|
113
141
|
method: "GET",
|
|
114
142
|
headers: _headers,
|
|
115
143
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -331,7 +359,7 @@ class OperationsTasks {
|
|
|
331
359
|
});
|
|
332
360
|
}
|
|
333
361
|
/**
|
|
334
|
-
* Creates a new OperationsTask on
|
|
362
|
+
* Creates a new OperationsTask on an Order the caller's organization has a Case for. | authz: min_org_role=operator | (OperationsTaskClientCreate1) -> (PydanticObjectId)
|
|
335
363
|
*
|
|
336
364
|
* @param {Chrt.operations.OperationsTaskClientCreate1} request
|
|
337
365
|
* @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -341,7 +369,8 @@ class OperationsTasks {
|
|
|
341
369
|
* @example
|
|
342
370
|
* await client.operations.operationsTasks.createV1({
|
|
343
371
|
* schema_version: 1,
|
|
344
|
-
*
|
|
372
|
+
* order_id: "order_id",
|
|
373
|
+
* task_type: "review_order_details",
|
|
345
374
|
* title: "title",
|
|
346
375
|
* description: "description"
|
|
347
376
|
* })
|
|
@@ -515,6 +544,71 @@ class OperationsTasks {
|
|
|
515
544
|
}
|
|
516
545
|
});
|
|
517
546
|
}
|
|
547
|
+
/**
|
|
548
|
+
* Sets an OperationsTask's status (not_started / in_progress / completed / skipped). Setting COMPLETED stamps completed_at/by; any other status clears them. | authz: min_org_role=operator | (OperationsTaskStatusReq) -> (bool)
|
|
549
|
+
*
|
|
550
|
+
* @param {string} taskId
|
|
551
|
+
* @param {Chrt.operations.OperationsTaskStatusReq} request
|
|
552
|
+
* @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
|
|
553
|
+
*
|
|
554
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
555
|
+
*
|
|
556
|
+
* @example
|
|
557
|
+
* await client.operations.operationsTasks.updateStatusV1("task_id", {
|
|
558
|
+
* status: "not_started"
|
|
559
|
+
* })
|
|
560
|
+
*/
|
|
561
|
+
updateStatusV1(taskId, request, requestOptions) {
|
|
562
|
+
return core.HttpResponsePromise.fromPromise(this.__updateStatusV1(taskId, request, requestOptions));
|
|
563
|
+
}
|
|
564
|
+
__updateStatusV1(taskId, request, requestOptions) {
|
|
565
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
566
|
+
var _a, _b, _c, _d;
|
|
567
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
568
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
569
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `operations/operations_tasks/status/v1/${encodeURIComponent(taskId)}`),
|
|
570
|
+
method: "PATCH",
|
|
571
|
+
headers: _headers,
|
|
572
|
+
contentType: "application/json",
|
|
573
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
574
|
+
requestType: "json",
|
|
575
|
+
body: request,
|
|
576
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
577
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
578
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
579
|
+
});
|
|
580
|
+
if (_response.ok) {
|
|
581
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
582
|
+
}
|
|
583
|
+
if (_response.error.reason === "status-code") {
|
|
584
|
+
switch (_response.error.statusCode) {
|
|
585
|
+
case 422:
|
|
586
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
587
|
+
default:
|
|
588
|
+
throw new errors.ChrtError({
|
|
589
|
+
statusCode: _response.error.statusCode,
|
|
590
|
+
body: _response.error.body,
|
|
591
|
+
rawResponse: _response.rawResponse,
|
|
592
|
+
});
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
switch (_response.error.reason) {
|
|
596
|
+
case "non-json":
|
|
597
|
+
throw new errors.ChrtError({
|
|
598
|
+
statusCode: _response.error.statusCode,
|
|
599
|
+
body: _response.error.rawBody,
|
|
600
|
+
rawResponse: _response.rawResponse,
|
|
601
|
+
});
|
|
602
|
+
case "timeout":
|
|
603
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /operations/operations_tasks/status/v1/{task_id}.");
|
|
604
|
+
case "unknown":
|
|
605
|
+
throw new errors.ChrtError({
|
|
606
|
+
message: _response.error.errorMessage,
|
|
607
|
+
rawResponse: _response.rawResponse,
|
|
608
|
+
});
|
|
609
|
+
}
|
|
610
|
+
});
|
|
611
|
+
}
|
|
518
612
|
/**
|
|
519
613
|
* Appends a comment to an OperationsTask's comment thread. Returns the new comment id. | authz: min_org_role=operator | (OperationsTaskAddCommentReq1) -> (str)
|
|
520
614
|
*
|
|
@@ -1,19 +1,24 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as Chrt from "../../../../../../index.js";
|
|
4
5
|
/**
|
|
5
6
|
* @example
|
|
6
7
|
* {
|
|
7
8
|
* schema_version: 1,
|
|
8
|
-
*
|
|
9
|
+
* order_id: "order_id",
|
|
10
|
+
* task_type: "review_order_details",
|
|
9
11
|
* title: "title",
|
|
10
12
|
* description: "description"
|
|
11
13
|
* }
|
|
12
14
|
*/
|
|
13
15
|
export interface OperationsTaskClientCreate1 {
|
|
14
16
|
schema_version: number;
|
|
15
|
-
|
|
17
|
+
order_id: string;
|
|
18
|
+
task_type: Chrt.OperationsTaskTypeEnum;
|
|
16
19
|
title: string;
|
|
17
20
|
description: string;
|
|
18
21
|
deadline_timestamp?: string;
|
|
22
|
+
tags?: string[];
|
|
23
|
+
assigned_user_ids?: string[];
|
|
19
24
|
}
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as Chrt from "../../../../../../index.js";
|
|
4
5
|
/**
|
|
5
6
|
* @example
|
|
6
7
|
* {}
|
|
7
8
|
*/
|
|
8
9
|
export interface OperationsTaskClientUpdate1 {
|
|
10
|
+
task_type?: Chrt.OperationsTaskTypeEnum | null;
|
|
9
11
|
title?: string | null;
|
|
10
12
|
description?: string | null;
|
|
11
13
|
deadline_timestamp?: string | null;
|
|
14
|
+
tags?: string[];
|
|
15
|
+
assigned_user_ids?: string[];
|
|
12
16
|
}
|
|
@@ -5,9 +5,9 @@ import * as Chrt from "../../../../../../index.js";
|
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
8
|
-
* status: "
|
|
8
|
+
* status: "not_started"
|
|
9
9
|
* }
|
|
10
10
|
*/
|
|
11
|
-
export interface
|
|
12
|
-
status: Chrt.
|
|
11
|
+
export interface OperationsTaskStatusReq {
|
|
12
|
+
status: Chrt.OperationsTaskStatusEnum;
|
|
13
13
|
}
|
|
@@ -9,8 +9,9 @@ import * as Chrt from "../../../../../../index.js";
|
|
|
9
9
|
* sort_order: "asc",
|
|
10
10
|
* page: 1,
|
|
11
11
|
* page_size: 1,
|
|
12
|
-
*
|
|
13
|
-
*
|
|
12
|
+
* filter_order_id: "filter_order_id",
|
|
13
|
+
* filter_department_id: "filter_department_id",
|
|
14
|
+
* filter_assigned_user_id: "filter_assigned_user_id",
|
|
14
15
|
* filter_deadline_gte: "2024-01-15T09:30:00Z",
|
|
15
16
|
* filter_deadline_lte: "2024-01-15T09:30:00Z"
|
|
16
17
|
* }
|
|
@@ -22,10 +23,18 @@ export interface OperationsTasksListV1Request {
|
|
|
22
23
|
sort_order?: Chrt.SortOrderEnum | null;
|
|
23
24
|
page?: number | null;
|
|
24
25
|
page_size?: number | null;
|
|
25
|
-
/** Filter by
|
|
26
|
-
|
|
27
|
-
/** Filter
|
|
28
|
-
|
|
26
|
+
/** Filter by order id */
|
|
27
|
+
filter_order_id?: string | null;
|
|
28
|
+
/** Filter to tasks routed to this department (desk queue) */
|
|
29
|
+
filter_department_id?: string | null;
|
|
30
|
+
/** Filter by task type(s). Defaults to all types. */
|
|
31
|
+
filter_task_type?: (Chrt.OperationsTaskTypeEnum | null) | (Chrt.OperationsTaskTypeEnum | null)[];
|
|
32
|
+
/** Filter by status(es). Defaults to all statuses. */
|
|
33
|
+
filter_status?: (Chrt.OperationsTaskStatusEnum | null) | (Chrt.OperationsTaskStatusEnum | null)[];
|
|
34
|
+
/** Filter to tasks carrying ANY of these tags */
|
|
35
|
+
filter_tag?: (string | null) | (string | null)[];
|
|
36
|
+
/** Filter to tasks this user is directly assigned to */
|
|
37
|
+
filter_assigned_user_id?: string | null;
|
|
29
38
|
/** Filter to tasks with deadline >= this timestamp */
|
|
30
39
|
filter_deadline_gte?: string | null;
|
|
31
40
|
/** Filter to tasks with deadline <= this timestamp */
|
package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { type OperationsTasksListV1Request } from "./OperationsTasksListV1Request.js";
|
|
2
2
|
export { type OperationsTaskClientUpdate1 } from "./OperationsTaskClientUpdate1.js";
|
|
3
3
|
export { type OperationsTaskClientCreate1 } from "./OperationsTaskClientCreate1.js";
|
|
4
|
+
export { type OperationsTaskStatusReq } from "./OperationsTaskStatusReq.js";
|
|
4
5
|
export { type OperationsTaskAddCommentReq1 } from "./OperationsTaskAddCommentReq1.js";
|
|
@@ -107,20 +107,6 @@ export declare class Connections {
|
|
|
107
107
|
*/
|
|
108
108
|
createConnectionToShipperV1(request: Chrt.CreateConnectionReq, requestOptions?: Connections.RequestOptions): core.HttpResponsePromise<string>;
|
|
109
109
|
private __createConnectionToShipperV1;
|
|
110
|
-
/**
|
|
111
|
-
* Sets or clears the department on a connection. Send null to clear. | authz: min_org_role=administrator | (SetDepartmentReq) -> (bool)
|
|
112
|
-
*
|
|
113
|
-
* @param {string} connectionId
|
|
114
|
-
* @param {Chrt.orgs.SetDepartmentReq} request
|
|
115
|
-
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
116
|
-
*
|
|
117
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
118
|
-
*
|
|
119
|
-
* @example
|
|
120
|
-
* await client.orgs.connections.setDepartmentV1("connection_id")
|
|
121
|
-
*/
|
|
122
|
-
setDepartmentV1(connectionId: string, request?: Chrt.orgs.SetDepartmentReq, requestOptions?: Connections.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
123
|
-
private __setDepartmentV1;
|
|
124
110
|
/**
|
|
125
111
|
* Toggles `auto_assign_enabled` on a provider-provider connection — the executor org's opt-in for receiving direct (non-bidding) task-group assignments. Executor org only, min role: administrator. | (ProviderProviderUpdateAutoAssignReq) -> (bool)
|
|
126
112
|
*
|
|
@@ -393,69 +393,6 @@ class Connections {
|
|
|
393
393
|
}
|
|
394
394
|
});
|
|
395
395
|
}
|
|
396
|
-
/**
|
|
397
|
-
* Sets or clears the department on a connection. Send null to clear. | authz: min_org_role=administrator | (SetDepartmentReq) -> (bool)
|
|
398
|
-
*
|
|
399
|
-
* @param {string} connectionId
|
|
400
|
-
* @param {Chrt.orgs.SetDepartmentReq} request
|
|
401
|
-
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
402
|
-
*
|
|
403
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
404
|
-
*
|
|
405
|
-
* @example
|
|
406
|
-
* await client.orgs.connections.setDepartmentV1("connection_id")
|
|
407
|
-
*/
|
|
408
|
-
setDepartmentV1(connectionId, request = {}, requestOptions) {
|
|
409
|
-
return core.HttpResponsePromise.fromPromise(this.__setDepartmentV1(connectionId, request, requestOptions));
|
|
410
|
-
}
|
|
411
|
-
__setDepartmentV1(connectionId_1) {
|
|
412
|
-
return __awaiter(this, arguments, void 0, function* (connectionId, request = {}, requestOptions) {
|
|
413
|
-
var _a, _b, _c, _d;
|
|
414
|
-
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
415
|
-
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
416
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `orgs/connections/set_department/v1/${encodeURIComponent(connectionId)}`),
|
|
417
|
-
method: "PATCH",
|
|
418
|
-
headers: _headers,
|
|
419
|
-
contentType: "application/json",
|
|
420
|
-
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
421
|
-
requestType: "json",
|
|
422
|
-
body: request,
|
|
423
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
424
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
425
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
426
|
-
});
|
|
427
|
-
if (_response.ok) {
|
|
428
|
-
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
429
|
-
}
|
|
430
|
-
if (_response.error.reason === "status-code") {
|
|
431
|
-
switch (_response.error.statusCode) {
|
|
432
|
-
case 422:
|
|
433
|
-
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
434
|
-
default:
|
|
435
|
-
throw new errors.ChrtError({
|
|
436
|
-
statusCode: _response.error.statusCode,
|
|
437
|
-
body: _response.error.body,
|
|
438
|
-
rawResponse: _response.rawResponse,
|
|
439
|
-
});
|
|
440
|
-
}
|
|
441
|
-
}
|
|
442
|
-
switch (_response.error.reason) {
|
|
443
|
-
case "non-json":
|
|
444
|
-
throw new errors.ChrtError({
|
|
445
|
-
statusCode: _response.error.statusCode,
|
|
446
|
-
body: _response.error.rawBody,
|
|
447
|
-
rawResponse: _response.rawResponse,
|
|
448
|
-
});
|
|
449
|
-
case "timeout":
|
|
450
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /orgs/connections/set_department/v1/{connection_id}.");
|
|
451
|
-
case "unknown":
|
|
452
|
-
throw new errors.ChrtError({
|
|
453
|
-
message: _response.error.errorMessage,
|
|
454
|
-
rawResponse: _response.rawResponse,
|
|
455
|
-
});
|
|
456
|
-
}
|
|
457
|
-
});
|
|
458
|
-
}
|
|
459
396
|
/**
|
|
460
397
|
* Toggles `auto_assign_enabled` on a provider-provider connection — the executor org's opt-in for receiving direct (non-bidding) task-group assignments. Executor org only, min role: administrator. | (ProviderProviderUpdateAutoAssignReq) -> (bool)
|
|
461
398
|
*
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
export { type ConnectionsListShippersV1Request } from "./ConnectionsListShippersV1Request.js";
|
|
2
2
|
export { type ConnectionsListProvidersV1Request } from "./ConnectionsListProvidersV1Request.js";
|
|
3
|
-
export { type SetDepartmentReq } from "./SetDepartmentReq.js";
|
|
4
3
|
export { type ProviderProviderUpdateAutoAssignReq } from "./ProviderProviderUpdateAutoAssignReq.js";
|
|
@@ -13,7 +13,6 @@ export interface OffChrtProviderOrgClientCreate1 {
|
|
|
13
13
|
schema_version: number;
|
|
14
14
|
company_name?: string | null;
|
|
15
15
|
industry?: string | null;
|
|
16
|
-
department_id?: string | null;
|
|
17
16
|
street_address?: Chrt.LocationFeature | null;
|
|
18
17
|
contact_first_name?: string | null;
|
|
19
18
|
contact_last_name?: string | null;
|
|
@@ -17,8 +17,6 @@ export interface OffChrtProviderOrgClientUpdate1 {
|
|
|
17
17
|
email_address_secondary?: string | null;
|
|
18
18
|
job_title?: string | null;
|
|
19
19
|
notes?: string | null;
|
|
20
|
-
department_id?: string | null;
|
|
21
|
-
department_id__set_to_None?: boolean;
|
|
22
20
|
industry__set_to_None?: boolean;
|
|
23
21
|
street_address__set_to_None?: boolean;
|
|
24
22
|
contact_first_name__set_to_None?: boolean;
|
|
@@ -13,7 +13,6 @@ export interface OffChrtShipperOrgClientCreate1 {
|
|
|
13
13
|
schema_version: number;
|
|
14
14
|
company_name?: string | null;
|
|
15
15
|
industry?: string | null;
|
|
16
|
-
department_id?: string | null;
|
|
17
16
|
street_address?: Chrt.LocationFeature | null;
|
|
18
17
|
contact_first_name?: string | null;
|
|
19
18
|
contact_last_name?: string | null;
|
|
@@ -17,8 +17,6 @@ export interface OffChrtShipperOrgClientUpdate1 {
|
|
|
17
17
|
email_address_secondary?: string | null;
|
|
18
18
|
job_title?: string | null;
|
|
19
19
|
notes?: string | null;
|
|
20
|
-
department_id?: string | null;
|
|
21
|
-
department_id__set_to_None?: boolean;
|
|
22
20
|
industry__set_to_None?: boolean;
|
|
23
21
|
street_address__set_to_None?: boolean;
|
|
24
22
|
contact_first_name__set_to_None?: boolean;
|
package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/requests/OrdersNewDraftReq.d.ts
CHANGED
|
@@ -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.js";
|
|
|
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.js";
|
|
|
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
|
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Chrt from "../index.js";
|
|
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,23 +1,23 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export type DepartmentTypeEnum = "
|
|
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
5
|
export declare const DepartmentTypeEnum: {
|
|
6
|
-
readonly Automotive: "automotive";
|
|
7
|
-
readonly Semiconductor: "semiconductor";
|
|
8
|
-
readonly Pharmaceutical: "pharmaceutical";
|
|
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";
|
|
13
|
+
readonly General: "general";
|
|
17
14
|
readonly Healthcare: "healthcare";
|
|
18
15
|
readonly Industrials: "industrials";
|
|
19
|
-
readonly LiveAnimals: "live_animals";
|
|
20
16
|
readonly LifeSciences: "life_sciences";
|
|
17
|
+
readonly LiveAnimals: "live_animals";
|
|
18
|
+
readonly Manufacturing: "manufacturing";
|
|
19
|
+
readonly Pharmaceutical: "pharmaceutical";
|
|
21
20
|
readonly Radiopharma: "radiopharma";
|
|
22
|
-
readonly
|
|
21
|
+
readonly Retail: "retail";
|
|
22
|
+
readonly Semiconductor: "semiconductor";
|
|
23
23
|
};
|
|
@@ -5,21 +5,21 @@
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.DepartmentTypeEnum = void 0;
|
|
7
7
|
exports.DepartmentTypeEnum = {
|
|
8
|
-
Automotive: "automotive",
|
|
9
|
-
Semiconductor: "semiconductor",
|
|
10
|
-
Pharmaceutical: "pharmaceutical",
|
|
11
8
|
Aerospace: "aerospace",
|
|
12
9
|
Agriculture: "agriculture",
|
|
13
|
-
|
|
14
|
-
Manufacturing: "manufacturing",
|
|
15
|
-
Energy: "energy",
|
|
16
|
-
FoodAndBeverage: "food_and_beverage",
|
|
10
|
+
Automotive: "automotive",
|
|
17
11
|
Chemicals: "chemicals",
|
|
18
12
|
Electronics: "electronics",
|
|
13
|
+
Energy: "energy",
|
|
14
|
+
FoodAndBeverage: "food_and_beverage",
|
|
15
|
+
General: "general",
|
|
19
16
|
Healthcare: "healthcare",
|
|
20
17
|
Industrials: "industrials",
|
|
21
|
-
LiveAnimals: "live_animals",
|
|
22
18
|
LifeSciences: "life_sciences",
|
|
19
|
+
LiveAnimals: "live_animals",
|
|
20
|
+
Manufacturing: "manufacturing",
|
|
21
|
+
Pharmaceutical: "pharmaceutical",
|
|
23
22
|
Radiopharma: "radiopharma",
|
|
24
|
-
|
|
23
|
+
Retail: "retail",
|
|
24
|
+
Semiconductor: "semiconductor",
|
|
25
25
|
};
|