@chrt-inc/typescript-sdk 1.320.0 → 1.322.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.d.ts +6 -3
- package/dist/cjs/Client.js +36 -31
- package/dist/cjs/api/resources/drivers/client/Client.d.ts +59 -61
- package/dist/cjs/api/resources/drivers/client/Client.js +140 -139
- package/dist/cjs/api/resources/drivers/client/requests/DriverClientCreate1.d.ts +20 -0
- package/dist/cjs/api/resources/drivers/client/requests/{UpdateDriverDetailsReq.d.ts → DriverClientUpdate1.d.ts} +4 -5
- package/dist/cjs/api/resources/drivers/client/requests/DriverLastSeenReq.d.ts +1 -0
- package/dist/cjs/api/resources/drivers/client/requests/index.d.ts +2 -3
- package/dist/cjs/api/resources/index.d.ts +4 -1
- package/dist/cjs/api/resources/index.js +5 -2
- package/dist/cjs/api/resources/orders/client/Client.d.ts +13 -0
- package/dist/cjs/api/resources/orders/client/Client.js +59 -0
- package/dist/cjs/api/resources/taskArtifacts/client/Client.d.ts +76 -6
- package/dist/cjs/api/resources/taskArtifacts/client/Client.js +304 -7
- package/dist/cjs/api/resources/taskArtifacts/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/taskArtifacts/client/index.js +15 -0
- package/dist/cjs/api/resources/taskArtifacts/client/requests/AddTaskArtifactReq.d.ts +19 -0
- package/dist/cjs/api/resources/taskArtifacts/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/taskArtifacts/resources/index.d.ts +2 -2
- package/dist/cjs/api/resources/taskArtifacts/resources/index.js +6 -3
- package/dist/cjs/api/resources/taskArtifacts/resources/s3Object/client/Client.d.ts +90 -0
- package/dist/cjs/api/resources/taskArtifacts/resources/s3Object/client/Client.js +314 -0
- package/dist/cjs/api/resources/taskArtifacts/resources/s3Object/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/taskArtifacts/resources/s3Object/client/index.js +17 -0
- package/dist/cjs/api/resources/taskArtifacts/resources/s3Object/client/requests/BodyPostTaskArtifactsS3ObjectAddV1OortTaskArtifactsS3ObjectAddV1TaskArtifactIdPost.d.ts +13 -0
- package/dist/cjs/api/resources/taskArtifacts/resources/s3Object/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/taskGroups/client/Client.d.ts +46 -33
- package/dist/cjs/api/resources/taskGroups/client/Client.js +89 -69
- package/dist/cjs/api/resources/taskGroups/client/requests/AddMessageReq.d.ts +13 -0
- package/dist/cjs/api/resources/taskGroups/client/requests/SetFlightNumberReq.d.ts +1 -0
- package/dist/cjs/api/resources/taskGroups/client/requests/SetTaskOrderingReq.d.ts +3 -2
- package/dist/cjs/api/resources/taskGroups/client/requests/UpdateCourierOrgReq.d.ts +13 -0
- package/dist/cjs/api/resources/taskGroups/client/requests/UpdateCourierOrgReq.js +5 -0
- package/dist/cjs/api/resources/taskGroups/client/requests/UpdateDriverReq.d.ts +13 -0
- package/dist/cjs/api/resources/taskGroups/client/requests/UpdateDriverReq.js +5 -0
- package/dist/cjs/api/resources/taskGroups/client/requests/index.d.ts +3 -2
- package/dist/cjs/api/resources/taskGroups/resources/expanded/client/Client.d.ts +4 -0
- package/dist/cjs/api/resources/taskGroups/resources/expanded/client/Client.js +18 -2
- package/dist/cjs/api/resources/taskGroups/resources/expanded/client/requests/ExpandedListForCourierDriverV1Request.d.ts +4 -0
- package/dist/cjs/api/resources/taskGroups/resources/expanded/client/requests/ExpandedListForCourierOperatorsV1Request.d.ts +4 -0
- package/dist/cjs/api/resources/taskGroups/resources/index.d.ts +3 -0
- package/dist/cjs/api/resources/taskGroups/resources/index.js +4 -1
- package/dist/cjs/api/resources/taskGroups/resources/s3Object/client/Client.d.ts +90 -0
- package/dist/cjs/api/resources/taskGroups/resources/s3Object/client/Client.js +314 -0
- package/dist/cjs/api/resources/taskGroups/resources/s3Object/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/taskGroups/resources/s3Object/client/index.js +17 -0
- package/dist/cjs/api/resources/taskGroups/resources/s3Object/client/requests/BodyPostTaskGroupsS3ObjectAddV1OortTaskGroupsS3ObjectAddV1TaskGroupIdPost.d.ts +13 -0
- package/dist/cjs/api/resources/taskGroups/resources/s3Object/client/requests/BodyPostTaskGroupsS3ObjectAddV1OortTaskGroupsS3ObjectAddV1TaskGroupIdPost.js +5 -0
- package/dist/cjs/api/resources/taskGroups/resources/s3Object/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/taskGroups/resources/s3Object/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/{taskArtifacts/resources/blurhash → taskGroups/resources/taskGroupId}/client/Client.d.ts +23 -10
- package/dist/cjs/api/resources/{taskArtifacts/resources/blurhash → taskGroups/resources/taskGroupId}/client/Client.js +71 -12
- package/dist/cjs/api/resources/taskGroups/resources/taskGroupId/client/index.js +2 -0
- package/dist/cjs/api/resources/taskGroups/resources/taskGroupId/index.d.ts +1 -0
- package/dist/cjs/api/resources/taskGroups/resources/taskGroupId/index.js +17 -0
- package/dist/cjs/api/resources/tasks/client/Client.d.ts +107 -0
- package/dist/cjs/api/resources/tasks/client/Client.js +377 -0
- package/dist/cjs/api/resources/tasks/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/tasks/client/index.js +17 -0
- package/dist/cjs/api/resources/tasks/client/requests/AddTaskToGroupReq.d.ts +21 -0
- package/dist/cjs/api/resources/tasks/client/requests/AddTaskToGroupReq.js +5 -0
- package/dist/cjs/api/resources/tasks/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/tasks/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/tasks/index.d.ts +1 -0
- package/dist/cjs/api/resources/tasks/index.js +17 -0
- package/dist/cjs/api/types/Cargo1.d.ts +1 -0
- package/dist/cjs/api/types/CargoStatusEnum1.d.ts +2 -1
- package/dist/cjs/api/types/CargoStatusEnum1.js +1 -0
- package/dist/cjs/api/types/ChrtGroundCourierTaskActionEnum1.d.ts +2 -2
- package/dist/cjs/api/types/ChrtGroundCourierTaskActionEnum1.js +1 -1
- package/dist/cjs/api/types/Driver1.d.ts +6 -4
- package/dist/cjs/api/types/DriverStatusEnum.d.ts +3 -3
- package/dist/cjs/api/types/DriverStatusEnum.js +2 -2
- package/dist/cjs/api/types/DriverUpdateAvailabilityReq.d.ts +6 -0
- package/dist/cjs/api/types/DriverUpdateAvailabilityReq.js +5 -0
- package/dist/cjs/api/types/Task1.d.ts +1 -0
- package/dist/cjs/api/types/TaskArtifact1.d.ts +1 -0
- package/dist/cjs/api/types/TaskArtifactClientCreate1.d.ts +8 -0
- package/dist/cjs/api/types/TaskArtifactClientCreate1.js +5 -0
- package/dist/cjs/api/types/TaskArtifactS3ObjectMetadata1.d.ts +15 -0
- package/dist/cjs/api/types/TaskArtifactS3ObjectMetadata1.js +5 -0
- package/dist/cjs/api/types/TaskArtifactStatusEnum1.d.ts +2 -1
- package/dist/cjs/api/types/TaskArtifactStatusEnum1.js +1 -0
- package/dist/cjs/api/types/TaskClientUpdate1.d.ts +0 -1
- package/dist/cjs/api/types/TaskGroup1.d.ts +1 -0
- package/dist/cjs/api/types/TaskGroupS3ObjectMetadata1.d.ts +15 -0
- package/dist/cjs/api/types/TaskGroupS3ObjectMetadata1.js +5 -0
- package/dist/cjs/api/types/TaskGroupSortByEnum.d.ts +2 -1
- package/dist/cjs/api/types/TaskGroupSortByEnum.js +1 -0
- package/dist/cjs/api/types/TaskGroupStatusEnum1.d.ts +2 -1
- package/dist/cjs/api/types/TaskGroupStatusEnum1.js +1 -0
- package/dist/cjs/api/types/TaskStatusEnum1.d.ts +2 -1
- package/dist/cjs/api/types/TaskStatusEnum1.js +1 -0
- package/dist/cjs/api/types/index.d.ts +4 -0
- package/dist/cjs/api/types/index.js +4 -0
- package/dist/cjs/core/exports.d.ts +1 -0
- package/dist/cjs/core/exports.js +17 -0
- package/dist/cjs/core/file/exports.d.ts +1 -0
- package/dist/cjs/core/file/exports.js +2 -0
- package/dist/cjs/core/file/file.d.ts +5 -0
- package/dist/cjs/core/file/file.js +203 -0
- package/dist/cjs/core/file/index.d.ts +2 -0
- package/dist/cjs/core/file/index.js +18 -0
- package/dist/cjs/core/file/types.d.ts +66 -0
- package/dist/cjs/core/file/types.js +2 -0
- package/dist/cjs/core/form-data-utils/FormDataWrapper.d.ts +16 -0
- package/dist/cjs/core/form-data-utils/FormDataWrapper.js +208 -0
- package/dist/cjs/core/form-data-utils/encodeAsFormParameter.d.ts +1 -0
- package/dist/cjs/core/form-data-utils/encodeAsFormParameter.js +12 -0
- package/dist/cjs/core/form-data-utils/index.d.ts +2 -0
- package/dist/cjs/core/form-data-utils/index.js +20 -0
- package/dist/cjs/core/index.d.ts +2 -0
- package/dist/cjs/core/index.js +3 -1
- package/dist/cjs/exports.d.ts +1 -0
- package/dist/cjs/exports.js +17 -0
- package/dist/cjs/index.d.ts +1 -0
- package/dist/cjs/index.js +4 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.d.mts +6 -3
- package/dist/esm/Client.mjs +12 -7
- package/dist/esm/api/resources/drivers/client/Client.d.mts +59 -61
- package/dist/esm/api/resources/drivers/client/Client.mjs +140 -139
- package/dist/esm/api/resources/drivers/client/requests/DriverClientCreate1.d.mts +20 -0
- package/dist/esm/api/resources/drivers/client/requests/{UpdateDriverDetailsReq.d.mts → DriverClientUpdate1.d.mts} +4 -5
- package/dist/esm/api/resources/drivers/client/requests/DriverLastSeenReq.d.mts +1 -0
- package/dist/esm/api/resources/drivers/client/requests/index.d.mts +2 -3
- package/dist/esm/api/resources/index.d.mts +4 -1
- package/dist/esm/api/resources/index.mjs +4 -1
- package/dist/esm/api/resources/orders/client/Client.d.mts +13 -0
- package/dist/esm/api/resources/orders/client/Client.mjs +59 -0
- package/dist/esm/api/resources/taskArtifacts/client/Client.d.mts +76 -6
- package/dist/esm/api/resources/taskArtifacts/client/Client.mjs +271 -7
- package/dist/esm/api/resources/taskArtifacts/client/index.d.mts +1 -0
- package/dist/esm/api/resources/taskArtifacts/client/index.mjs +1 -1
- package/dist/esm/api/resources/taskArtifacts/client/requests/AddTaskArtifactReq.d.mts +19 -0
- package/dist/esm/api/resources/taskArtifacts/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/taskArtifacts/resources/index.d.mts +2 -2
- package/dist/esm/api/resources/taskArtifacts/resources/index.mjs +2 -2
- package/dist/esm/api/resources/taskArtifacts/resources/s3Object/client/Client.d.mts +90 -0
- package/dist/esm/api/resources/taskArtifacts/resources/s3Object/client/Client.mjs +277 -0
- package/dist/esm/api/resources/taskArtifacts/resources/s3Object/client/index.d.mts +2 -0
- package/dist/esm/api/resources/taskArtifacts/resources/s3Object/client/index.mjs +1 -0
- package/dist/esm/api/resources/taskArtifacts/resources/s3Object/client/requests/BodyPostTaskArtifactsS3ObjectAddV1OortTaskArtifactsS3ObjectAddV1TaskArtifactIdPost.d.mts +13 -0
- package/dist/esm/api/resources/taskArtifacts/resources/s3Object/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/taskGroups/client/Client.d.mts +46 -33
- package/dist/esm/api/resources/taskGroups/client/Client.mjs +87 -67
- package/dist/esm/api/resources/taskGroups/client/requests/AddMessageReq.d.mts +13 -0
- package/dist/esm/api/resources/taskGroups/client/requests/SetFlightNumberReq.d.mts +1 -0
- package/dist/esm/api/resources/taskGroups/client/requests/SetTaskOrderingReq.d.mts +3 -2
- package/dist/esm/api/resources/taskGroups/client/requests/UpdateCourierOrgReq.d.mts +13 -0
- package/dist/esm/api/resources/taskGroups/client/requests/UpdateCourierOrgReq.mjs +4 -0
- package/dist/esm/api/resources/taskGroups/client/requests/UpdateDriverReq.d.mts +13 -0
- package/dist/esm/api/resources/taskGroups/client/requests/UpdateDriverReq.mjs +4 -0
- package/dist/esm/api/resources/taskGroups/client/requests/index.d.mts +3 -2
- package/dist/esm/api/resources/taskGroups/resources/expanded/client/Client.d.mts +4 -0
- package/dist/esm/api/resources/taskGroups/resources/expanded/client/Client.mjs +18 -2
- package/dist/esm/api/resources/taskGroups/resources/expanded/client/requests/ExpandedListForCourierDriverV1Request.d.mts +4 -0
- package/dist/esm/api/resources/taskGroups/resources/expanded/client/requests/ExpandedListForCourierOperatorsV1Request.d.mts +4 -0
- package/dist/esm/api/resources/taskGroups/resources/index.d.mts +3 -0
- package/dist/esm/api/resources/taskGroups/resources/index.mjs +3 -0
- package/dist/esm/api/resources/taskGroups/resources/s3Object/client/Client.d.mts +90 -0
- package/dist/esm/api/resources/taskGroups/resources/s3Object/client/Client.mjs +277 -0
- package/dist/esm/api/resources/taskGroups/resources/s3Object/client/index.d.mts +2 -0
- package/dist/esm/api/resources/taskGroups/resources/s3Object/client/index.mjs +1 -0
- package/dist/esm/api/resources/taskGroups/resources/s3Object/client/requests/BodyPostTaskGroupsS3ObjectAddV1OortTaskGroupsS3ObjectAddV1TaskGroupIdPost.d.mts +13 -0
- package/dist/esm/api/resources/taskGroups/resources/s3Object/client/requests/BodyPostTaskGroupsS3ObjectAddV1OortTaskGroupsS3ObjectAddV1TaskGroupIdPost.mjs +4 -0
- package/dist/esm/api/resources/taskGroups/resources/s3Object/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/{taskArtifacts/resources/blurhash → taskGroups/resources/taskGroupId}/client/Client.d.mts +23 -10
- package/dist/esm/api/resources/taskGroups/resources/taskGroupId/client/Client.mjs +149 -0
- package/dist/esm/api/resources/taskGroups/resources/taskGroupId/index.d.mts +1 -0
- package/dist/esm/api/resources/taskGroups/resources/taskGroupId/index.mjs +1 -0
- package/dist/esm/api/resources/tasks/client/Client.d.mts +107 -0
- package/dist/esm/api/resources/tasks/client/Client.mjs +340 -0
- package/dist/esm/api/resources/tasks/client/index.d.mts +2 -0
- package/dist/esm/api/resources/tasks/client/index.mjs +1 -0
- package/dist/esm/api/resources/tasks/client/requests/AddTaskToGroupReq.d.mts +21 -0
- package/dist/esm/api/resources/tasks/client/requests/AddTaskToGroupReq.mjs +4 -0
- package/dist/esm/api/resources/tasks/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/tasks/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/tasks/index.d.mts +1 -0
- package/dist/esm/api/resources/tasks/index.mjs +1 -0
- package/dist/esm/api/types/Cargo1.d.mts +1 -0
- package/dist/esm/api/types/CargoStatusEnum1.d.mts +2 -1
- package/dist/esm/api/types/CargoStatusEnum1.mjs +1 -0
- package/dist/esm/api/types/ChrtGroundCourierTaskActionEnum1.d.mts +2 -2
- package/dist/esm/api/types/ChrtGroundCourierTaskActionEnum1.mjs +1 -1
- package/dist/esm/api/types/Driver1.d.mts +6 -4
- package/dist/esm/api/types/DriverStatusEnum.d.mts +3 -3
- package/dist/esm/api/types/DriverStatusEnum.mjs +2 -2
- package/dist/esm/api/types/DriverUpdateAvailabilityReq.d.mts +6 -0
- package/dist/esm/api/types/DriverUpdateAvailabilityReq.mjs +4 -0
- package/dist/esm/api/types/Task1.d.mts +1 -0
- package/dist/esm/api/types/TaskArtifact1.d.mts +1 -0
- package/dist/esm/api/types/TaskArtifactClientCreate1.d.mts +8 -0
- package/dist/esm/api/types/TaskArtifactClientCreate1.mjs +4 -0
- package/dist/esm/api/types/TaskArtifactS3ObjectMetadata1.d.mts +15 -0
- package/dist/esm/api/types/TaskArtifactS3ObjectMetadata1.mjs +4 -0
- package/dist/esm/api/types/TaskArtifactStatusEnum1.d.mts +2 -1
- package/dist/esm/api/types/TaskArtifactStatusEnum1.mjs +1 -0
- package/dist/esm/api/types/TaskClientUpdate1.d.mts +0 -1
- package/dist/esm/api/types/TaskGroup1.d.mts +1 -0
- package/dist/esm/api/types/TaskGroupS3ObjectMetadata1.d.mts +15 -0
- package/dist/esm/api/types/TaskGroupS3ObjectMetadata1.mjs +4 -0
- package/dist/esm/api/types/TaskGroupSortByEnum.d.mts +2 -1
- package/dist/esm/api/types/TaskGroupSortByEnum.mjs +1 -0
- package/dist/esm/api/types/TaskGroupStatusEnum1.d.mts +2 -1
- package/dist/esm/api/types/TaskGroupStatusEnum1.mjs +1 -0
- package/dist/esm/api/types/TaskStatusEnum1.d.mts +2 -1
- package/dist/esm/api/types/TaskStatusEnum1.mjs +1 -0
- package/dist/esm/api/types/index.d.mts +4 -0
- package/dist/esm/api/types/index.mjs +4 -0
- package/dist/esm/core/exports.d.mts +1 -0
- package/dist/esm/core/exports.mjs +1 -0
- package/dist/esm/core/file/exports.d.mts +1 -0
- package/dist/esm/core/file/exports.mjs +1 -0
- package/dist/esm/core/file/file.d.mts +5 -0
- package/dist/esm/core/file/file.mjs +167 -0
- package/dist/esm/core/file/index.d.mts +2 -0
- package/dist/esm/core/file/index.mjs +2 -0
- package/dist/esm/core/file/types.d.mts +66 -0
- package/dist/esm/core/file/types.mjs +1 -0
- package/dist/esm/core/form-data-utils/FormDataWrapper.d.mts +16 -0
- package/dist/esm/core/form-data-utils/FormDataWrapper.mjs +170 -0
- package/dist/esm/core/form-data-utils/encodeAsFormParameter.d.mts +1 -0
- package/dist/esm/core/form-data-utils/encodeAsFormParameter.mjs +9 -0
- package/dist/esm/core/form-data-utils/index.d.mts +2 -0
- package/dist/esm/core/form-data-utils/index.mjs +2 -0
- package/dist/esm/core/index.d.mts +2 -0
- package/dist/esm/core/index.mjs +2 -0
- package/dist/esm/exports.d.mts +1 -0
- package/dist/esm/exports.mjs +1 -0
- package/dist/esm/index.d.mts +1 -0
- package/dist/esm/index.mjs +1 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +2047 -821
- package/dist/cjs/api/resources/drivers/client/requests/DriverCreateReq.d.ts +0 -17
- package/dist/cjs/api/resources/drivers/client/requests/SetDriverActivationReq.d.ts +0 -14
- package/dist/cjs/api/resources/taskArtifacts/resources/images/client/Client.d.ts +0 -39
- package/dist/cjs/api/resources/taskArtifacts/resources/images/client/Client.js +0 -121
- package/dist/cjs/api/resources/taskGroups/client/requests/UpdateTaskGroupCourierOrgReq.d.ts +0 -12
- package/dist/cjs/api/resources/taskGroups/client/requests/UpdateTaskGroupDriverReq.d.ts +0 -11
- package/dist/esm/api/resources/drivers/client/requests/DriverCreateReq.d.mts +0 -17
- package/dist/esm/api/resources/drivers/client/requests/SetDriverActivationReq.d.mts +0 -14
- package/dist/esm/api/resources/taskArtifacts/resources/blurhash/client/Client.mjs +0 -90
- package/dist/esm/api/resources/taskArtifacts/resources/images/client/Client.d.mts +0 -39
- package/dist/esm/api/resources/taskArtifacts/resources/images/client/Client.mjs +0 -84
- package/dist/esm/api/resources/taskGroups/client/requests/UpdateTaskGroupCourierOrgReq.d.mts +0 -12
- package/dist/esm/api/resources/taskGroups/client/requests/UpdateTaskGroupDriverReq.d.mts +0 -11
- /package/dist/cjs/api/resources/drivers/client/requests/{DriverCreateReq.js → DriverClientCreate1.js} +0 -0
- /package/dist/cjs/api/resources/drivers/client/requests/{SetDriverActivationReq.js → DriverClientUpdate1.js} +0 -0
- /package/dist/cjs/api/resources/{drivers/client/requests/UpdateDriverDetailsReq.js → taskArtifacts/client/requests/AddTaskArtifactReq.js} +0 -0
- /package/dist/cjs/api/resources/taskArtifacts/{resources/blurhash/client → client/requests}/index.js +0 -0
- /package/dist/cjs/api/resources/{taskGroups/client/requests/UpdateTaskGroupCourierOrgReq.js → taskArtifacts/resources/s3Object/client/requests/BodyPostTaskArtifactsS3ObjectAddV1OortTaskArtifactsS3ObjectAddV1TaskArtifactIdPost.js} +0 -0
- /package/dist/cjs/api/resources/taskArtifacts/resources/{images/client → s3Object/client/requests}/index.js +0 -0
- /package/dist/cjs/api/resources/taskArtifacts/resources/{blurhash → s3Object}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/taskArtifacts/resources/{blurhash → s3Object}/index.js +0 -0
- /package/dist/cjs/api/resources/taskGroups/client/requests/{UpdateTaskGroupDriverReq.js → AddMessageReq.js} +0 -0
- /package/dist/cjs/api/resources/{taskArtifacts/resources/images → taskGroups/resources/s3Object}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{taskArtifacts/resources/images → taskGroups/resources/s3Object}/index.js +0 -0
- /package/dist/cjs/api/resources/{taskArtifacts/resources/blurhash → taskGroups/resources/taskGroupId}/client/index.d.ts +0 -0
- /package/dist/esm/api/resources/drivers/client/requests/{DriverCreateReq.mjs → DriverClientCreate1.mjs} +0 -0
- /package/dist/esm/api/resources/drivers/client/requests/{SetDriverActivationReq.mjs → DriverClientUpdate1.mjs} +0 -0
- /package/dist/esm/api/resources/{drivers/client/requests/UpdateDriverDetailsReq.mjs → taskArtifacts/client/requests/AddTaskArtifactReq.mjs} +0 -0
- /package/dist/esm/api/resources/taskArtifacts/{resources/blurhash/client → client/requests}/index.mjs +0 -0
- /package/dist/esm/api/resources/{taskGroups/client/requests/UpdateTaskGroupCourierOrgReq.mjs → taskArtifacts/resources/s3Object/client/requests/BodyPostTaskArtifactsS3ObjectAddV1OortTaskArtifactsS3ObjectAddV1TaskArtifactIdPost.mjs} +0 -0
- /package/dist/esm/api/resources/taskArtifacts/resources/{images/client → s3Object/client/requests}/index.mjs +0 -0
- /package/dist/esm/api/resources/taskArtifacts/resources/{blurhash → s3Object}/index.d.mts +0 -0
- /package/dist/esm/api/resources/taskArtifacts/resources/{blurhash → s3Object}/index.mjs +0 -0
- /package/dist/esm/api/resources/taskGroups/client/requests/{UpdateTaskGroupDriverReq.mjs → AddMessageReq.mjs} +0 -0
- /package/dist/{cjs/api/resources/taskArtifacts/resources/images/client/index.d.ts → esm/api/resources/taskGroups/resources/s3Object/client/requests/index.mjs} +0 -0
- /package/dist/esm/api/resources/{taskArtifacts/resources/images → taskGroups/resources/s3Object}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{taskArtifacts/resources/images → taskGroups/resources/s3Object}/index.mjs +0 -0
- /package/dist/esm/api/resources/{taskArtifacts/resources/blurhash → taskGroups/resources/taskGroupId}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{taskArtifacts/resources/images/client/index.d.mts → taskGroups/resources/taskGroupId/client/index.mjs} +0 -0
|
@@ -51,36 +51,46 @@ const core = __importStar(require("../../../../core/index.js"));
|
|
|
51
51
|
const Chrt = __importStar(require("../../../index.js"));
|
|
52
52
|
const headers_js_1 = require("../../../../core/headers.js");
|
|
53
53
|
const errors = __importStar(require("../../../../errors/index.js"));
|
|
54
|
-
const Client_js_1 = require("../resources/
|
|
54
|
+
const Client_js_1 = require("../resources/taskGroupId/client/Client.js");
|
|
55
|
+
const Client_js_2 = require("../resources/s3Object/client/Client.js");
|
|
56
|
+
const Client_js_3 = require("../resources/expanded/client/Client.js");
|
|
55
57
|
class TaskGroups {
|
|
56
58
|
constructor(_options = {}) {
|
|
57
59
|
this._options = _options;
|
|
58
60
|
}
|
|
61
|
+
get taskGroupId() {
|
|
62
|
+
var _a;
|
|
63
|
+
return ((_a = this._taskGroupId) !== null && _a !== void 0 ? _a : (this._taskGroupId = new Client_js_1.TaskGroupId(this._options)));
|
|
64
|
+
}
|
|
65
|
+
get s3Object() {
|
|
66
|
+
var _a;
|
|
67
|
+
return ((_a = this._s3Object) !== null && _a !== void 0 ? _a : (this._s3Object = new Client_js_2.S3Object(this._options)));
|
|
68
|
+
}
|
|
59
69
|
get expanded() {
|
|
60
70
|
var _a;
|
|
61
|
-
return ((_a = this._expanded) !== null && _a !== void 0 ? _a : (this._expanded = new
|
|
71
|
+
return ((_a = this._expanded) !== null && _a !== void 0 ? _a : (this._expanded = new Client_js_3.Expanded(this._options)));
|
|
62
72
|
}
|
|
63
73
|
/**
|
|
64
|
-
*
|
|
74
|
+
* Starts a task group by transitioning it from STAGED to IN_PROGRESS and syncing related order state. | authz_personas=[courier_driver, lig_org_operators] | () -> (bool)
|
|
65
75
|
*
|
|
66
|
-
* @param {string}
|
|
76
|
+
* @param {string} taskGroupId
|
|
67
77
|
* @param {TaskGroups.RequestOptions} requestOptions - Request-specific configuration.
|
|
68
78
|
*
|
|
69
79
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
70
80
|
*
|
|
71
81
|
* @example
|
|
72
|
-
* await client.taskGroups.
|
|
82
|
+
* await client.taskGroups.startV1("task_group_id")
|
|
73
83
|
*/
|
|
74
|
-
|
|
75
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
84
|
+
startV1(taskGroupId, requestOptions) {
|
|
85
|
+
return core.HttpResponsePromise.fromPromise(this.__startV1(taskGroupId, requestOptions));
|
|
76
86
|
}
|
|
77
|
-
|
|
87
|
+
__startV1(taskGroupId, requestOptions) {
|
|
78
88
|
return __awaiter(this, void 0, void 0, function* () {
|
|
79
89
|
var _a, _b, _c, _d;
|
|
80
90
|
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);
|
|
81
91
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
82
|
-
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, `oort/task_groups/
|
|
83
|
-
method: "
|
|
92
|
+
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, `oort/task_groups/start/v1/${encodeURIComponent(taskGroupId)}`),
|
|
93
|
+
method: "PUT",
|
|
84
94
|
headers: _headers,
|
|
85
95
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
86
96
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -110,7 +120,7 @@ class TaskGroups {
|
|
|
110
120
|
rawResponse: _response.rawResponse,
|
|
111
121
|
});
|
|
112
122
|
case "timeout":
|
|
113
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
123
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PUT /oort/task_groups/start/v1/{task_group_id}.");
|
|
114
124
|
case "unknown":
|
|
115
125
|
throw new errors.ChrtError({
|
|
116
126
|
message: _response.error.errorMessage,
|
|
@@ -120,28 +130,34 @@ class TaskGroups {
|
|
|
120
130
|
});
|
|
121
131
|
}
|
|
122
132
|
/**
|
|
123
|
-
*
|
|
133
|
+
* Sets the ordering of tasks within a task group. Requires complete list of task IDs in desired order. Completed tasks must be before staged tasks. | authz_personas=[lig_org_operators] | (SetTaskOrderingReq) -> (bool)
|
|
124
134
|
*
|
|
125
|
-
* @param {string}
|
|
135
|
+
* @param {string} taskGroupId
|
|
136
|
+
* @param {Chrt.SetTaskOrderingReq} request
|
|
126
137
|
* @param {TaskGroups.RequestOptions} requestOptions - Request-specific configuration.
|
|
127
138
|
*
|
|
128
139
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
129
140
|
*
|
|
130
141
|
* @example
|
|
131
|
-
* await client.taskGroups.
|
|
142
|
+
* await client.taskGroups.setTaskOrderingV1("task_group_id", {
|
|
143
|
+
* task_ids: ["task_ids"]
|
|
144
|
+
* })
|
|
132
145
|
*/
|
|
133
|
-
|
|
134
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
146
|
+
setTaskOrderingV1(taskGroupId, request, requestOptions) {
|
|
147
|
+
return core.HttpResponsePromise.fromPromise(this.__setTaskOrderingV1(taskGroupId, request, requestOptions));
|
|
135
148
|
}
|
|
136
|
-
|
|
149
|
+
__setTaskOrderingV1(taskGroupId, request, requestOptions) {
|
|
137
150
|
return __awaiter(this, void 0, void 0, function* () {
|
|
138
151
|
var _a, _b, _c, _d;
|
|
139
152
|
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);
|
|
140
153
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
141
|
-
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, `oort/task_groups/
|
|
142
|
-
method: "
|
|
154
|
+
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, `oort/task_groups/set_task_ordering/v1/${encodeURIComponent(taskGroupId)}`),
|
|
155
|
+
method: "PUT",
|
|
143
156
|
headers: _headers,
|
|
157
|
+
contentType: "application/json",
|
|
144
158
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
159
|
+
requestType: "json",
|
|
160
|
+
body: request,
|
|
145
161
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
146
162
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
147
163
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -169,7 +185,7 @@ class TaskGroups {
|
|
|
169
185
|
rawResponse: _response.rawResponse,
|
|
170
186
|
});
|
|
171
187
|
case "timeout":
|
|
172
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
188
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PUT /oort/task_groups/set_task_ordering/v1/{task_group_id}.");
|
|
173
189
|
case "unknown":
|
|
174
190
|
throw new errors.ChrtError({
|
|
175
191
|
message: _response.error.errorMessage,
|
|
@@ -179,29 +195,29 @@ class TaskGroups {
|
|
|
179
195
|
});
|
|
180
196
|
}
|
|
181
197
|
/**
|
|
182
|
-
*
|
|
198
|
+
* Sets the flight number on a task group, plus any TENDER_TO_AIRLINE tasks in the immediately preceding task group and RECOVER_FROM_AIRLINE tasks in the immediately following task group. | authz_personas=[lig_org_operators] | (SetFlightNumberReq) -> (bool)
|
|
183
199
|
*
|
|
184
200
|
* @param {string} taskGroupId
|
|
185
|
-
* @param {Chrt.
|
|
201
|
+
* @param {Chrt.SetFlightNumberReq} request
|
|
186
202
|
* @param {TaskGroups.RequestOptions} requestOptions - Request-specific configuration.
|
|
187
203
|
*
|
|
188
204
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
189
205
|
*
|
|
190
206
|
* @example
|
|
191
|
-
* await client.taskGroups.
|
|
192
|
-
*
|
|
207
|
+
* await client.taskGroups.setFlightNumberV1("task_group_id", {
|
|
208
|
+
* flight_number: "flight_number"
|
|
193
209
|
* })
|
|
194
210
|
*/
|
|
195
|
-
|
|
196
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
211
|
+
setFlightNumberV1(taskGroupId, request, requestOptions) {
|
|
212
|
+
return core.HttpResponsePromise.fromPromise(this.__setFlightNumberV1(taskGroupId, request, requestOptions));
|
|
197
213
|
}
|
|
198
|
-
|
|
214
|
+
__setFlightNumberV1(taskGroupId, request, requestOptions) {
|
|
199
215
|
return __awaiter(this, void 0, void 0, function* () {
|
|
200
216
|
var _a, _b, _c, _d;
|
|
201
217
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
202
218
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
203
|
-
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, `oort/task_groups/
|
|
204
|
-
method: "
|
|
219
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `oort/task_groups/set_flight_number/v1/${encodeURIComponent(taskGroupId)}`),
|
|
220
|
+
method: "PATCH",
|
|
205
221
|
headers: _headers,
|
|
206
222
|
contentType: "application/json",
|
|
207
223
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -234,7 +250,7 @@ class TaskGroups {
|
|
|
234
250
|
rawResponse: _response.rawResponse,
|
|
235
251
|
});
|
|
236
252
|
case "timeout":
|
|
237
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
253
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /oort/task_groups/set_flight_number/v1/{task_group_id}.");
|
|
238
254
|
case "unknown":
|
|
239
255
|
throw new errors.ChrtError({
|
|
240
256
|
message: _response.error.errorMessage,
|
|
@@ -244,29 +260,29 @@ class TaskGroups {
|
|
|
244
260
|
});
|
|
245
261
|
}
|
|
246
262
|
/**
|
|
247
|
-
* Updates the
|
|
263
|
+
* Updates the driver assigned to a task group. | authz_personas=[courier_org_operators] | (UpdateDriverReq) -> (bool)
|
|
248
264
|
*
|
|
249
265
|
* @param {string} taskGroupId
|
|
250
|
-
* @param {Chrt.
|
|
266
|
+
* @param {Chrt.UpdateDriverReq} request
|
|
251
267
|
* @param {TaskGroups.RequestOptions} requestOptions - Request-specific configuration.
|
|
252
268
|
*
|
|
253
269
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
254
270
|
*
|
|
255
271
|
* @example
|
|
256
|
-
* await client.taskGroups.
|
|
257
|
-
*
|
|
272
|
+
* await client.taskGroups.updateDriverV1("task_group_id", {
|
|
273
|
+
* driver_id: "driver_id"
|
|
258
274
|
* })
|
|
259
275
|
*/
|
|
260
|
-
|
|
261
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
276
|
+
updateDriverV1(taskGroupId, request, requestOptions) {
|
|
277
|
+
return core.HttpResponsePromise.fromPromise(this.__updateDriverV1(taskGroupId, request, requestOptions));
|
|
262
278
|
}
|
|
263
|
-
|
|
279
|
+
__updateDriverV1(taskGroupId, request, requestOptions) {
|
|
264
280
|
return __awaiter(this, void 0, void 0, function* () {
|
|
265
281
|
var _a, _b, _c, _d;
|
|
266
282
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
267
283
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
268
|
-
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, `oort/task_groups/
|
|
269
|
-
method: "
|
|
284
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `oort/task_groups/update_driver/v1/${encodeURIComponent(taskGroupId)}`),
|
|
285
|
+
method: "PATCH",
|
|
270
286
|
headers: _headers,
|
|
271
287
|
contentType: "application/json",
|
|
272
288
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -299,7 +315,7 @@ class TaskGroups {
|
|
|
299
315
|
rawResponse: _response.rawResponse,
|
|
300
316
|
});
|
|
301
317
|
case "timeout":
|
|
302
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
318
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /oort/task_groups/update_driver/v1/{task_group_id}.");
|
|
303
319
|
case "unknown":
|
|
304
320
|
throw new errors.ChrtError({
|
|
305
321
|
message: _response.error.errorMessage,
|
|
@@ -309,32 +325,28 @@ class TaskGroups {
|
|
|
309
325
|
});
|
|
310
326
|
}
|
|
311
327
|
/**
|
|
312
|
-
*
|
|
328
|
+
* Removes the driver from a task group (sets driver_id to null). | authz_personas=[courier_org_operators, courier_driver] | () -> (bool)
|
|
313
329
|
*
|
|
314
330
|
* @param {string} taskGroupId
|
|
315
|
-
* @param {Chrt.UpdateTaskGroupDriverReq} request
|
|
316
331
|
* @param {TaskGroups.RequestOptions} requestOptions - Request-specific configuration.
|
|
317
332
|
*
|
|
318
333
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
319
334
|
*
|
|
320
335
|
* @example
|
|
321
|
-
* await client.taskGroups.
|
|
336
|
+
* await client.taskGroups.removeDriverV1("task_group_id")
|
|
322
337
|
*/
|
|
323
|
-
|
|
324
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
338
|
+
removeDriverV1(taskGroupId, requestOptions) {
|
|
339
|
+
return core.HttpResponsePromise.fromPromise(this.__removeDriverV1(taskGroupId, requestOptions));
|
|
325
340
|
}
|
|
326
|
-
|
|
327
|
-
return __awaiter(this,
|
|
341
|
+
__removeDriverV1(taskGroupId, requestOptions) {
|
|
342
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
328
343
|
var _a, _b, _c, _d;
|
|
329
344
|
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);
|
|
330
345
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
331
|
-
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, `oort/task_groups/
|
|
332
|
-
method: "
|
|
346
|
+
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, `oort/task_groups/remove_driver/v1/${encodeURIComponent(taskGroupId)}`),
|
|
347
|
+
method: "PATCH",
|
|
333
348
|
headers: _headers,
|
|
334
|
-
contentType: "application/json",
|
|
335
349
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
336
|
-
requestType: "json",
|
|
337
|
-
body: request,
|
|
338
350
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
339
351
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
340
352
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -362,7 +374,7 @@ class TaskGroups {
|
|
|
362
374
|
rawResponse: _response.rawResponse,
|
|
363
375
|
});
|
|
364
376
|
case "timeout":
|
|
365
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
377
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /oort/task_groups/remove_driver/v1/{task_group_id}.");
|
|
366
378
|
case "unknown":
|
|
367
379
|
throw new errors.ChrtError({
|
|
368
380
|
message: _response.error.errorMessage,
|
|
@@ -372,27 +384,29 @@ class TaskGroups {
|
|
|
372
384
|
});
|
|
373
385
|
}
|
|
374
386
|
/**
|
|
375
|
-
*
|
|
387
|
+
* Updates the courier organization assigned to a task group. | authz_personas=[forwarder_org_operators] | (UpdateCourierOrgReq) -> (bool)
|
|
376
388
|
*
|
|
377
389
|
* @param {string} taskGroupId
|
|
378
|
-
* @param {Chrt.
|
|
390
|
+
* @param {Chrt.UpdateCourierOrgReq} request
|
|
379
391
|
* @param {TaskGroups.RequestOptions} requestOptions - Request-specific configuration.
|
|
380
392
|
*
|
|
381
393
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
382
394
|
*
|
|
383
395
|
* @example
|
|
384
|
-
* await client.taskGroups.updateCourierOrgV1("task_group_id"
|
|
396
|
+
* await client.taskGroups.updateCourierOrgV1("task_group_id", {
|
|
397
|
+
* courier_org_id: "courier_org_id"
|
|
398
|
+
* })
|
|
385
399
|
*/
|
|
386
|
-
updateCourierOrgV1(taskGroupId, request
|
|
400
|
+
updateCourierOrgV1(taskGroupId, request, requestOptions) {
|
|
387
401
|
return core.HttpResponsePromise.fromPromise(this.__updateCourierOrgV1(taskGroupId, request, requestOptions));
|
|
388
402
|
}
|
|
389
|
-
__updateCourierOrgV1(
|
|
390
|
-
return __awaiter(this,
|
|
403
|
+
__updateCourierOrgV1(taskGroupId, request, requestOptions) {
|
|
404
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
391
405
|
var _a, _b, _c, _d;
|
|
392
406
|
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);
|
|
393
407
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
394
408
|
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, `oort/task_groups/update_courier_org/v1/${encodeURIComponent(taskGroupId)}`),
|
|
395
|
-
method: "
|
|
409
|
+
method: "PATCH",
|
|
396
410
|
headers: _headers,
|
|
397
411
|
contentType: "application/json",
|
|
398
412
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -425,7 +439,7 @@ class TaskGroups {
|
|
|
425
439
|
rawResponse: _response.rawResponse,
|
|
426
440
|
});
|
|
427
441
|
case "timeout":
|
|
428
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
442
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /oort/task_groups/update_courier_org/v1/{task_group_id}.");
|
|
429
443
|
case "unknown":
|
|
430
444
|
throw new errors.ChrtError({
|
|
431
445
|
message: _response.error.errorMessage,
|
|
@@ -435,28 +449,34 @@ class TaskGroups {
|
|
|
435
449
|
});
|
|
436
450
|
}
|
|
437
451
|
/**
|
|
438
|
-
*
|
|
452
|
+
* Adds a message to a task group's message log. | authz_personas=[courier_driver, courier_org_operators, forwarder_org_operators, shipper_org_operators] | (AddMessageReq) -> (bool)
|
|
439
453
|
*
|
|
440
454
|
* @param {string} taskGroupId
|
|
455
|
+
* @param {Chrt.AddMessageReq} request
|
|
441
456
|
* @param {TaskGroups.RequestOptions} requestOptions - Request-specific configuration.
|
|
442
457
|
*
|
|
443
458
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
444
459
|
*
|
|
445
460
|
* @example
|
|
446
|
-
* await client.taskGroups.
|
|
461
|
+
* await client.taskGroups.addMessageV1("task_group_id", {
|
|
462
|
+
* message: "message"
|
|
463
|
+
* })
|
|
447
464
|
*/
|
|
448
|
-
|
|
449
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
465
|
+
addMessageV1(taskGroupId, request, requestOptions) {
|
|
466
|
+
return core.HttpResponsePromise.fromPromise(this.__addMessageV1(taskGroupId, request, requestOptions));
|
|
450
467
|
}
|
|
451
|
-
|
|
468
|
+
__addMessageV1(taskGroupId, request, requestOptions) {
|
|
452
469
|
return __awaiter(this, void 0, void 0, function* () {
|
|
453
470
|
var _a, _b, _c, _d;
|
|
454
471
|
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);
|
|
455
472
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
456
|
-
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, `oort/task_groups/
|
|
457
|
-
method: "
|
|
473
|
+
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, `oort/task_groups/add_message/v1/${encodeURIComponent(taskGroupId)}`),
|
|
474
|
+
method: "POST",
|
|
458
475
|
headers: _headers,
|
|
476
|
+
contentType: "application/json",
|
|
459
477
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
478
|
+
requestType: "json",
|
|
479
|
+
body: request,
|
|
460
480
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
461
481
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
462
482
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -484,7 +504,7 @@ class TaskGroups {
|
|
|
484
504
|
rawResponse: _response.rawResponse,
|
|
485
505
|
});
|
|
486
506
|
case "timeout":
|
|
487
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
507
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/task_groups/add_message/v1/{task_group_id}.");
|
|
488
508
|
case "unknown":
|
|
489
509
|
throw new errors.ChrtError({
|
|
490
510
|
message: _response.error.errorMessage,
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* courier_org_id: "courier_org_id"
|
|
8
|
+
* }
|
|
9
|
+
*/
|
|
10
|
+
export interface UpdateCourierOrgReq {
|
|
11
|
+
/** ID of the courier organization to assign to the task group */
|
|
12
|
+
courier_org_id: string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* driver_id: "driver_id"
|
|
8
|
+
* }
|
|
9
|
+
*/
|
|
10
|
+
export interface UpdateDriverReq {
|
|
11
|
+
/** ID of the driver to assign to the task group */
|
|
12
|
+
driver_id: string;
|
|
13
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { type SetTaskOrderingReq } from "./SetTaskOrderingReq.js";
|
|
2
2
|
export { type SetFlightNumberReq } from "./SetFlightNumberReq.js";
|
|
3
|
-
export { type
|
|
4
|
-
export { type
|
|
3
|
+
export { type UpdateDriverReq } from "./UpdateDriverReq.js";
|
|
4
|
+
export { type UpdateCourierOrgReq } from "./UpdateCourierOrgReq.js";
|
|
5
|
+
export { type AddMessageReq } from "./AddMessageReq.js";
|
|
@@ -108,6 +108,8 @@ export declare class Expanded {
|
|
|
108
108
|
* filter_in_progress_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
109
109
|
* filter_completed_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
110
110
|
* filter_completed_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
111
|
+
* filter_skipped_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
112
|
+
* filter_skipped_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
111
113
|
* filter_exception_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
112
114
|
* filter_exception_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
113
115
|
* body: {}
|
|
@@ -137,6 +139,8 @@ export declare class Expanded {
|
|
|
137
139
|
* filter_in_progress_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
138
140
|
* filter_completed_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
139
141
|
* filter_completed_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
142
|
+
* filter_skipped_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
143
|
+
* filter_skipped_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
140
144
|
* filter_exception_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
141
145
|
* filter_exception_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
142
146
|
* body: {}
|
|
@@ -329,6 +329,8 @@ class Expanded {
|
|
|
329
329
|
* filter_in_progress_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
330
330
|
* filter_completed_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
331
331
|
* filter_completed_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
332
|
+
* filter_skipped_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
333
|
+
* filter_skipped_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
332
334
|
* filter_exception_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
333
335
|
* filter_exception_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
334
336
|
* body: {}
|
|
@@ -340,7 +342,7 @@ class Expanded {
|
|
|
340
342
|
__listForCourierOperatorsV1(request, requestOptions) {
|
|
341
343
|
return __awaiter(this, void 0, void 0, function* () {
|
|
342
344
|
var _a, _b, _c, _d, _e, _f;
|
|
343
|
-
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, filter_status: filterStatus, filter_draft_started_at_timestamp_lte: filterDraftStartedAtTimestampLte, filter_draft_started_at_timestamp_gte: filterDraftStartedAtTimestampGte, filter_staged_at_timestamp_lte: filterStagedAtTimestampLte, filter_staged_at_timestamp_gte: filterStagedAtTimestampGte, filter_in_progress_at_timestamp_lte: filterInProgressAtTimestampLte, filter_in_progress_at_timestamp_gte: filterInProgressAtTimestampGte, filter_completed_at_timestamp_lte: filterCompletedAtTimestampLte, filter_completed_at_timestamp_gte: filterCompletedAtTimestampGte, filter_exception_at_timestamp_lte: filterExceptionAtTimestampLte, filter_exception_at_timestamp_gte: filterExceptionAtTimestampGte, body: _body, } = request;
|
|
345
|
+
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, filter_status: filterStatus, filter_draft_started_at_timestamp_lte: filterDraftStartedAtTimestampLte, filter_draft_started_at_timestamp_gte: filterDraftStartedAtTimestampGte, filter_staged_at_timestamp_lte: filterStagedAtTimestampLte, filter_staged_at_timestamp_gte: filterStagedAtTimestampGte, filter_in_progress_at_timestamp_lte: filterInProgressAtTimestampLte, filter_in_progress_at_timestamp_gte: filterInProgressAtTimestampGte, filter_completed_at_timestamp_lte: filterCompletedAtTimestampLte, filter_completed_at_timestamp_gte: filterCompletedAtTimestampGte, filter_skipped_at_timestamp_lte: filterSkippedAtTimestampLte, filter_skipped_at_timestamp_gte: filterSkippedAtTimestampGte, filter_exception_at_timestamp_lte: filterExceptionAtTimestampLte, filter_exception_at_timestamp_gte: filterExceptionAtTimestampGte, body: _body, } = request;
|
|
344
346
|
const _queryParams = {};
|
|
345
347
|
if (sortBy !== undefined) {
|
|
346
348
|
_queryParams["sort_by"] = sortBy;
|
|
@@ -386,6 +388,12 @@ class Expanded {
|
|
|
386
388
|
if (filterCompletedAtTimestampGte !== undefined) {
|
|
387
389
|
_queryParams["filter_completed_at_timestamp_gte"] = filterCompletedAtTimestampGte;
|
|
388
390
|
}
|
|
391
|
+
if (filterSkippedAtTimestampLte !== undefined) {
|
|
392
|
+
_queryParams["filter_skipped_at_timestamp_lte"] = filterSkippedAtTimestampLte;
|
|
393
|
+
}
|
|
394
|
+
if (filterSkippedAtTimestampGte !== undefined) {
|
|
395
|
+
_queryParams["filter_skipped_at_timestamp_gte"] = filterSkippedAtTimestampGte;
|
|
396
|
+
}
|
|
389
397
|
if (filterExceptionAtTimestampLte !== undefined) {
|
|
390
398
|
_queryParams["filter_exception_at_timestamp_lte"] = filterExceptionAtTimestampLte;
|
|
391
399
|
}
|
|
@@ -459,6 +467,8 @@ class Expanded {
|
|
|
459
467
|
* filter_in_progress_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
460
468
|
* filter_completed_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
461
469
|
* filter_completed_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
470
|
+
* filter_skipped_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
471
|
+
* filter_skipped_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
462
472
|
* filter_exception_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
463
473
|
* filter_exception_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
464
474
|
* body: {}
|
|
@@ -470,7 +480,7 @@ class Expanded {
|
|
|
470
480
|
__listForCourierDriverV1(request, requestOptions) {
|
|
471
481
|
return __awaiter(this, void 0, void 0, function* () {
|
|
472
482
|
var _a, _b, _c, _d, _e, _f;
|
|
473
|
-
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, filter_status: filterStatus, filter_draft_started_at_timestamp_lte: filterDraftStartedAtTimestampLte, filter_draft_started_at_timestamp_gte: filterDraftStartedAtTimestampGte, filter_staged_at_timestamp_lte: filterStagedAtTimestampLte, filter_staged_at_timestamp_gte: filterStagedAtTimestampGte, filter_in_progress_at_timestamp_lte: filterInProgressAtTimestampLte, filter_in_progress_at_timestamp_gte: filterInProgressAtTimestampGte, filter_completed_at_timestamp_lte: filterCompletedAtTimestampLte, filter_completed_at_timestamp_gte: filterCompletedAtTimestampGte, filter_exception_at_timestamp_lte: filterExceptionAtTimestampLte, filter_exception_at_timestamp_gte: filterExceptionAtTimestampGte, body: _body, } = request;
|
|
483
|
+
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, filter_status: filterStatus, filter_draft_started_at_timestamp_lte: filterDraftStartedAtTimestampLte, filter_draft_started_at_timestamp_gte: filterDraftStartedAtTimestampGte, filter_staged_at_timestamp_lte: filterStagedAtTimestampLte, filter_staged_at_timestamp_gte: filterStagedAtTimestampGte, filter_in_progress_at_timestamp_lte: filterInProgressAtTimestampLte, filter_in_progress_at_timestamp_gte: filterInProgressAtTimestampGte, filter_completed_at_timestamp_lte: filterCompletedAtTimestampLte, filter_completed_at_timestamp_gte: filterCompletedAtTimestampGte, filter_skipped_at_timestamp_lte: filterSkippedAtTimestampLte, filter_skipped_at_timestamp_gte: filterSkippedAtTimestampGte, filter_exception_at_timestamp_lte: filterExceptionAtTimestampLte, filter_exception_at_timestamp_gte: filterExceptionAtTimestampGte, body: _body, } = request;
|
|
474
484
|
const _queryParams = {};
|
|
475
485
|
if (sortBy !== undefined) {
|
|
476
486
|
_queryParams["sort_by"] = sortBy;
|
|
@@ -516,6 +526,12 @@ class Expanded {
|
|
|
516
526
|
if (filterCompletedAtTimestampGte !== undefined) {
|
|
517
527
|
_queryParams["filter_completed_at_timestamp_gte"] = filterCompletedAtTimestampGte;
|
|
518
528
|
}
|
|
529
|
+
if (filterSkippedAtTimestampLte !== undefined) {
|
|
530
|
+
_queryParams["filter_skipped_at_timestamp_lte"] = filterSkippedAtTimestampLte;
|
|
531
|
+
}
|
|
532
|
+
if (filterSkippedAtTimestampGte !== undefined) {
|
|
533
|
+
_queryParams["filter_skipped_at_timestamp_gte"] = filterSkippedAtTimestampGte;
|
|
534
|
+
}
|
|
519
535
|
if (filterExceptionAtTimestampLte !== undefined) {
|
|
520
536
|
_queryParams["filter_exception_at_timestamp_lte"] = filterExceptionAtTimestampLte;
|
|
521
537
|
}
|
|
@@ -17,6 +17,8 @@ import * as Chrt from "../../../../../../index.js";
|
|
|
17
17
|
* filter_in_progress_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
18
18
|
* filter_completed_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
19
19
|
* filter_completed_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
20
|
+
* filter_skipped_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
21
|
+
* filter_skipped_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
20
22
|
* filter_exception_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
21
23
|
* filter_exception_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
22
24
|
* body: {}
|
|
@@ -36,6 +38,8 @@ export interface ExpandedListForCourierDriverV1Request {
|
|
|
36
38
|
filter_in_progress_at_timestamp_gte?: string | null;
|
|
37
39
|
filter_completed_at_timestamp_lte?: string | null;
|
|
38
40
|
filter_completed_at_timestamp_gte?: string | null;
|
|
41
|
+
filter_skipped_at_timestamp_lte?: string | null;
|
|
42
|
+
filter_skipped_at_timestamp_gte?: string | null;
|
|
39
43
|
filter_exception_at_timestamp_lte?: string | null;
|
|
40
44
|
filter_exception_at_timestamp_gte?: string | null;
|
|
41
45
|
body: Chrt.OrderAndTaskGroupExpandedReq;
|
|
@@ -17,6 +17,8 @@ import * as Chrt from "../../../../../../index.js";
|
|
|
17
17
|
* filter_in_progress_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
18
18
|
* filter_completed_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
19
19
|
* filter_completed_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
20
|
+
* filter_skipped_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
21
|
+
* filter_skipped_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
20
22
|
* filter_exception_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
21
23
|
* filter_exception_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
22
24
|
* body: {}
|
|
@@ -36,6 +38,8 @@ export interface ExpandedListForCourierOperatorsV1Request {
|
|
|
36
38
|
filter_in_progress_at_timestamp_gte?: string | null;
|
|
37
39
|
filter_completed_at_timestamp_lte?: string | null;
|
|
38
40
|
filter_completed_at_timestamp_gte?: string | null;
|
|
41
|
+
filter_skipped_at_timestamp_lte?: string | null;
|
|
42
|
+
filter_skipped_at_timestamp_gte?: string | null;
|
|
39
43
|
filter_exception_at_timestamp_lte?: string | null;
|
|
40
44
|
filter_exception_at_timestamp_gte?: string | null;
|
|
41
45
|
body: Chrt.OrderAndTaskGroupExpandedReq;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
export * as expanded from "./expanded/index.js";
|
|
2
2
|
export * from "./expanded/types/index.js";
|
|
3
|
+
export * as taskGroupId from "./taskGroupId/index.js";
|
|
4
|
+
export * as s3Object from "./s3Object/index.js";
|
|
5
|
+
export * from "./s3Object/client/requests/index.js";
|
|
3
6
|
export * from "./expanded/client/requests/index.js";
|
|
@@ -36,7 +36,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.expanded = void 0;
|
|
39
|
+
exports.s3Object = exports.taskGroupId = exports.expanded = void 0;
|
|
40
40
|
exports.expanded = __importStar(require("./expanded/index.js"));
|
|
41
41
|
__exportStar(require("./expanded/types/index.js"), exports);
|
|
42
|
+
exports.taskGroupId = __importStar(require("./taskGroupId/index.js"));
|
|
43
|
+
exports.s3Object = __importStar(require("./s3Object/index.js"));
|
|
44
|
+
__exportStar(require("./s3Object/client/requests/index.js"), exports);
|
|
42
45
|
__exportStar(require("./expanded/client/requests/index.js"), exports);
|