@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
|
@@ -15,36 +15,46 @@ import * as core from "../../../../core/index.mjs";
|
|
|
15
15
|
import * as Chrt from "../../../index.mjs";
|
|
16
16
|
import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../core/headers.mjs";
|
|
17
17
|
import * as errors from "../../../../errors/index.mjs";
|
|
18
|
+
import { TaskGroupId } from "../resources/taskGroupId/client/Client.mjs";
|
|
19
|
+
import { S3Object } from "../resources/s3Object/client/Client.mjs";
|
|
18
20
|
import { Expanded } from "../resources/expanded/client/Client.mjs";
|
|
19
21
|
export class TaskGroups {
|
|
20
22
|
constructor(_options = {}) {
|
|
21
23
|
this._options = _options;
|
|
22
24
|
}
|
|
25
|
+
get taskGroupId() {
|
|
26
|
+
var _a;
|
|
27
|
+
return ((_a = this._taskGroupId) !== null && _a !== void 0 ? _a : (this._taskGroupId = new TaskGroupId(this._options)));
|
|
28
|
+
}
|
|
29
|
+
get s3Object() {
|
|
30
|
+
var _a;
|
|
31
|
+
return ((_a = this._s3Object) !== null && _a !== void 0 ? _a : (this._s3Object = new S3Object(this._options)));
|
|
32
|
+
}
|
|
23
33
|
get expanded() {
|
|
24
34
|
var _a;
|
|
25
35
|
return ((_a = this._expanded) !== null && _a !== void 0 ? _a : (this._expanded = new Expanded(this._options)));
|
|
26
36
|
}
|
|
27
37
|
/**
|
|
28
|
-
*
|
|
38
|
+
* 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)
|
|
29
39
|
*
|
|
30
|
-
* @param {string}
|
|
40
|
+
* @param {string} taskGroupId
|
|
31
41
|
* @param {TaskGroups.RequestOptions} requestOptions - Request-specific configuration.
|
|
32
42
|
*
|
|
33
43
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
34
44
|
*
|
|
35
45
|
* @example
|
|
36
|
-
* await client.taskGroups.
|
|
46
|
+
* await client.taskGroups.startV1("task_group_id")
|
|
37
47
|
*/
|
|
38
|
-
|
|
39
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
48
|
+
startV1(taskGroupId, requestOptions) {
|
|
49
|
+
return core.HttpResponsePromise.fromPromise(this.__startV1(taskGroupId, requestOptions));
|
|
40
50
|
}
|
|
41
|
-
|
|
51
|
+
__startV1(taskGroupId, requestOptions) {
|
|
42
52
|
return __awaiter(this, void 0, void 0, function* () {
|
|
43
53
|
var _a, _b, _c, _d;
|
|
44
54
|
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
45
55
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
46
|
-
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/
|
|
47
|
-
method: "
|
|
56
|
+
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)}`),
|
|
57
|
+
method: "PUT",
|
|
48
58
|
headers: _headers,
|
|
49
59
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
50
60
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -74,7 +84,7 @@ export class TaskGroups {
|
|
|
74
84
|
rawResponse: _response.rawResponse,
|
|
75
85
|
});
|
|
76
86
|
case "timeout":
|
|
77
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
87
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PUT /oort/task_groups/start/v1/{task_group_id}.");
|
|
78
88
|
case "unknown":
|
|
79
89
|
throw new errors.ChrtError({
|
|
80
90
|
message: _response.error.errorMessage,
|
|
@@ -84,28 +94,34 @@ export class TaskGroups {
|
|
|
84
94
|
});
|
|
85
95
|
}
|
|
86
96
|
/**
|
|
87
|
-
*
|
|
97
|
+
* 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)
|
|
88
98
|
*
|
|
89
|
-
* @param {string}
|
|
99
|
+
* @param {string} taskGroupId
|
|
100
|
+
* @param {Chrt.SetTaskOrderingReq} request
|
|
90
101
|
* @param {TaskGroups.RequestOptions} requestOptions - Request-specific configuration.
|
|
91
102
|
*
|
|
92
103
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
93
104
|
*
|
|
94
105
|
* @example
|
|
95
|
-
* await client.taskGroups.
|
|
106
|
+
* await client.taskGroups.setTaskOrderingV1("task_group_id", {
|
|
107
|
+
* task_ids: ["task_ids"]
|
|
108
|
+
* })
|
|
96
109
|
*/
|
|
97
|
-
|
|
98
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
110
|
+
setTaskOrderingV1(taskGroupId, request, requestOptions) {
|
|
111
|
+
return core.HttpResponsePromise.fromPromise(this.__setTaskOrderingV1(taskGroupId, request, requestOptions));
|
|
99
112
|
}
|
|
100
|
-
|
|
113
|
+
__setTaskOrderingV1(taskGroupId, request, requestOptions) {
|
|
101
114
|
return __awaiter(this, void 0, void 0, function* () {
|
|
102
115
|
var _a, _b, _c, _d;
|
|
103
116
|
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
104
117
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
105
|
-
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/
|
|
106
|
-
method: "
|
|
118
|
+
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)}`),
|
|
119
|
+
method: "PUT",
|
|
107
120
|
headers: _headers,
|
|
121
|
+
contentType: "application/json",
|
|
108
122
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
123
|
+
requestType: "json",
|
|
124
|
+
body: request,
|
|
109
125
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
110
126
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
111
127
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -133,7 +149,7 @@ export class TaskGroups {
|
|
|
133
149
|
rawResponse: _response.rawResponse,
|
|
134
150
|
});
|
|
135
151
|
case "timeout":
|
|
136
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
152
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PUT /oort/task_groups/set_task_ordering/v1/{task_group_id}.");
|
|
137
153
|
case "unknown":
|
|
138
154
|
throw new errors.ChrtError({
|
|
139
155
|
message: _response.error.errorMessage,
|
|
@@ -143,29 +159,29 @@ export class TaskGroups {
|
|
|
143
159
|
});
|
|
144
160
|
}
|
|
145
161
|
/**
|
|
146
|
-
*
|
|
162
|
+
* 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)
|
|
147
163
|
*
|
|
148
164
|
* @param {string} taskGroupId
|
|
149
|
-
* @param {Chrt.
|
|
165
|
+
* @param {Chrt.SetFlightNumberReq} request
|
|
150
166
|
* @param {TaskGroups.RequestOptions} requestOptions - Request-specific configuration.
|
|
151
167
|
*
|
|
152
168
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
153
169
|
*
|
|
154
170
|
* @example
|
|
155
|
-
* await client.taskGroups.
|
|
156
|
-
*
|
|
171
|
+
* await client.taskGroups.setFlightNumberV1("task_group_id", {
|
|
172
|
+
* flight_number: "flight_number"
|
|
157
173
|
* })
|
|
158
174
|
*/
|
|
159
|
-
|
|
160
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
175
|
+
setFlightNumberV1(taskGroupId, request, requestOptions) {
|
|
176
|
+
return core.HttpResponsePromise.fromPromise(this.__setFlightNumberV1(taskGroupId, request, requestOptions));
|
|
161
177
|
}
|
|
162
|
-
|
|
178
|
+
__setFlightNumberV1(taskGroupId, request, requestOptions) {
|
|
163
179
|
return __awaiter(this, void 0, void 0, function* () {
|
|
164
180
|
var _a, _b, _c, _d;
|
|
165
181
|
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
166
182
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
167
|
-
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/
|
|
168
|
-
method: "
|
|
183
|
+
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)}`),
|
|
184
|
+
method: "PATCH",
|
|
169
185
|
headers: _headers,
|
|
170
186
|
contentType: "application/json",
|
|
171
187
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -198,7 +214,7 @@ export class TaskGroups {
|
|
|
198
214
|
rawResponse: _response.rawResponse,
|
|
199
215
|
});
|
|
200
216
|
case "timeout":
|
|
201
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
217
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /oort/task_groups/set_flight_number/v1/{task_group_id}.");
|
|
202
218
|
case "unknown":
|
|
203
219
|
throw new errors.ChrtError({
|
|
204
220
|
message: _response.error.errorMessage,
|
|
@@ -208,29 +224,29 @@ export class TaskGroups {
|
|
|
208
224
|
});
|
|
209
225
|
}
|
|
210
226
|
/**
|
|
211
|
-
* Updates the
|
|
227
|
+
* Updates the driver assigned to a task group. | authz_personas=[courier_org_operators] | (UpdateDriverReq) -> (bool)
|
|
212
228
|
*
|
|
213
229
|
* @param {string} taskGroupId
|
|
214
|
-
* @param {Chrt.
|
|
230
|
+
* @param {Chrt.UpdateDriverReq} request
|
|
215
231
|
* @param {TaskGroups.RequestOptions} requestOptions - Request-specific configuration.
|
|
216
232
|
*
|
|
217
233
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
218
234
|
*
|
|
219
235
|
* @example
|
|
220
|
-
* await client.taskGroups.
|
|
221
|
-
*
|
|
236
|
+
* await client.taskGroups.updateDriverV1("task_group_id", {
|
|
237
|
+
* driver_id: "driver_id"
|
|
222
238
|
* })
|
|
223
239
|
*/
|
|
224
|
-
|
|
225
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
240
|
+
updateDriverV1(taskGroupId, request, requestOptions) {
|
|
241
|
+
return core.HttpResponsePromise.fromPromise(this.__updateDriverV1(taskGroupId, request, requestOptions));
|
|
226
242
|
}
|
|
227
|
-
|
|
243
|
+
__updateDriverV1(taskGroupId, request, requestOptions) {
|
|
228
244
|
return __awaiter(this, void 0, void 0, function* () {
|
|
229
245
|
var _a, _b, _c, _d;
|
|
230
246
|
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
231
247
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
232
|
-
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/
|
|
233
|
-
method: "
|
|
248
|
+
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)}`),
|
|
249
|
+
method: "PATCH",
|
|
234
250
|
headers: _headers,
|
|
235
251
|
contentType: "application/json",
|
|
236
252
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -263,7 +279,7 @@ export class TaskGroups {
|
|
|
263
279
|
rawResponse: _response.rawResponse,
|
|
264
280
|
});
|
|
265
281
|
case "timeout":
|
|
266
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
282
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /oort/task_groups/update_driver/v1/{task_group_id}.");
|
|
267
283
|
case "unknown":
|
|
268
284
|
throw new errors.ChrtError({
|
|
269
285
|
message: _response.error.errorMessage,
|
|
@@ -273,32 +289,28 @@ export class TaskGroups {
|
|
|
273
289
|
});
|
|
274
290
|
}
|
|
275
291
|
/**
|
|
276
|
-
*
|
|
292
|
+
* Removes the driver from a task group (sets driver_id to null). | authz_personas=[courier_org_operators, courier_driver] | () -> (bool)
|
|
277
293
|
*
|
|
278
294
|
* @param {string} taskGroupId
|
|
279
|
-
* @param {Chrt.UpdateTaskGroupDriverReq} request
|
|
280
295
|
* @param {TaskGroups.RequestOptions} requestOptions - Request-specific configuration.
|
|
281
296
|
*
|
|
282
297
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
283
298
|
*
|
|
284
299
|
* @example
|
|
285
|
-
* await client.taskGroups.
|
|
300
|
+
* await client.taskGroups.removeDriverV1("task_group_id")
|
|
286
301
|
*/
|
|
287
|
-
|
|
288
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
302
|
+
removeDriverV1(taskGroupId, requestOptions) {
|
|
303
|
+
return core.HttpResponsePromise.fromPromise(this.__removeDriverV1(taskGroupId, requestOptions));
|
|
289
304
|
}
|
|
290
|
-
|
|
291
|
-
return __awaiter(this,
|
|
305
|
+
__removeDriverV1(taskGroupId, requestOptions) {
|
|
306
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
292
307
|
var _a, _b, _c, _d;
|
|
293
308
|
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
294
309
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
295
|
-
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/
|
|
296
|
-
method: "
|
|
310
|
+
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)}`),
|
|
311
|
+
method: "PATCH",
|
|
297
312
|
headers: _headers,
|
|
298
|
-
contentType: "application/json",
|
|
299
313
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
300
|
-
requestType: "json",
|
|
301
|
-
body: request,
|
|
302
314
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
303
315
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
304
316
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -326,7 +338,7 @@ export class TaskGroups {
|
|
|
326
338
|
rawResponse: _response.rawResponse,
|
|
327
339
|
});
|
|
328
340
|
case "timeout":
|
|
329
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
341
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /oort/task_groups/remove_driver/v1/{task_group_id}.");
|
|
330
342
|
case "unknown":
|
|
331
343
|
throw new errors.ChrtError({
|
|
332
344
|
message: _response.error.errorMessage,
|
|
@@ -336,27 +348,29 @@ export class TaskGroups {
|
|
|
336
348
|
});
|
|
337
349
|
}
|
|
338
350
|
/**
|
|
339
|
-
*
|
|
351
|
+
* Updates the courier organization assigned to a task group. | authz_personas=[forwarder_org_operators] | (UpdateCourierOrgReq) -> (bool)
|
|
340
352
|
*
|
|
341
353
|
* @param {string} taskGroupId
|
|
342
|
-
* @param {Chrt.
|
|
354
|
+
* @param {Chrt.UpdateCourierOrgReq} request
|
|
343
355
|
* @param {TaskGroups.RequestOptions} requestOptions - Request-specific configuration.
|
|
344
356
|
*
|
|
345
357
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
346
358
|
*
|
|
347
359
|
* @example
|
|
348
|
-
* await client.taskGroups.updateCourierOrgV1("task_group_id"
|
|
360
|
+
* await client.taskGroups.updateCourierOrgV1("task_group_id", {
|
|
361
|
+
* courier_org_id: "courier_org_id"
|
|
362
|
+
* })
|
|
349
363
|
*/
|
|
350
|
-
updateCourierOrgV1(taskGroupId, request
|
|
364
|
+
updateCourierOrgV1(taskGroupId, request, requestOptions) {
|
|
351
365
|
return core.HttpResponsePromise.fromPromise(this.__updateCourierOrgV1(taskGroupId, request, requestOptions));
|
|
352
366
|
}
|
|
353
|
-
__updateCourierOrgV1(
|
|
354
|
-
return __awaiter(this,
|
|
367
|
+
__updateCourierOrgV1(taskGroupId, request, requestOptions) {
|
|
368
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
355
369
|
var _a, _b, _c, _d;
|
|
356
370
|
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
357
371
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
358
372
|
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)}`),
|
|
359
|
-
method: "
|
|
373
|
+
method: "PATCH",
|
|
360
374
|
headers: _headers,
|
|
361
375
|
contentType: "application/json",
|
|
362
376
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -389,7 +403,7 @@ export class TaskGroups {
|
|
|
389
403
|
rawResponse: _response.rawResponse,
|
|
390
404
|
});
|
|
391
405
|
case "timeout":
|
|
392
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
406
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /oort/task_groups/update_courier_org/v1/{task_group_id}.");
|
|
393
407
|
case "unknown":
|
|
394
408
|
throw new errors.ChrtError({
|
|
395
409
|
message: _response.error.errorMessage,
|
|
@@ -399,28 +413,34 @@ export class TaskGroups {
|
|
|
399
413
|
});
|
|
400
414
|
}
|
|
401
415
|
/**
|
|
402
|
-
*
|
|
416
|
+
* 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)
|
|
403
417
|
*
|
|
404
418
|
* @param {string} taskGroupId
|
|
419
|
+
* @param {Chrt.AddMessageReq} request
|
|
405
420
|
* @param {TaskGroups.RequestOptions} requestOptions - Request-specific configuration.
|
|
406
421
|
*
|
|
407
422
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
408
423
|
*
|
|
409
424
|
* @example
|
|
410
|
-
* await client.taskGroups.
|
|
425
|
+
* await client.taskGroups.addMessageV1("task_group_id", {
|
|
426
|
+
* message: "message"
|
|
427
|
+
* })
|
|
411
428
|
*/
|
|
412
|
-
|
|
413
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
429
|
+
addMessageV1(taskGroupId, request, requestOptions) {
|
|
430
|
+
return core.HttpResponsePromise.fromPromise(this.__addMessageV1(taskGroupId, request, requestOptions));
|
|
414
431
|
}
|
|
415
|
-
|
|
432
|
+
__addMessageV1(taskGroupId, request, requestOptions) {
|
|
416
433
|
return __awaiter(this, void 0, void 0, function* () {
|
|
417
434
|
var _a, _b, _c, _d;
|
|
418
435
|
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
419
436
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
420
|
-
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/
|
|
421
|
-
method: "
|
|
437
|
+
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)}`),
|
|
438
|
+
method: "POST",
|
|
422
439
|
headers: _headers,
|
|
440
|
+
contentType: "application/json",
|
|
423
441
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
442
|
+
requestType: "json",
|
|
443
|
+
body: request,
|
|
424
444
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
425
445
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
426
446
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -448,7 +468,7 @@ export class TaskGroups {
|
|
|
448
468
|
rawResponse: _response.rawResponse,
|
|
449
469
|
});
|
|
450
470
|
case "timeout":
|
|
451
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
471
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/task_groups/add_message/v1/{task_group_id}.");
|
|
452
472
|
case "unknown":
|
|
453
473
|
throw new errors.ChrtError({
|
|
454
474
|
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.mjs";
|
|
2
2
|
export { type SetFlightNumberReq } from "./SetFlightNumberReq.mjs";
|
|
3
|
-
export { type
|
|
4
|
-
export { type
|
|
3
|
+
export { type UpdateDriverReq } from "./UpdateDriverReq.mjs";
|
|
4
|
+
export { type UpdateCourierOrgReq } from "./UpdateCourierOrgReq.mjs";
|
|
5
|
+
export { type AddMessageReq } from "./AddMessageReq.mjs";
|
|
@@ -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: {}
|
|
@@ -293,6 +293,8 @@ export class Expanded {
|
|
|
293
293
|
* filter_in_progress_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
294
294
|
* filter_completed_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
295
295
|
* filter_completed_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
296
|
+
* filter_skipped_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
297
|
+
* filter_skipped_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
296
298
|
* filter_exception_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
297
299
|
* filter_exception_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
298
300
|
* body: {}
|
|
@@ -304,7 +306,7 @@ export class Expanded {
|
|
|
304
306
|
__listForCourierOperatorsV1(request, requestOptions) {
|
|
305
307
|
return __awaiter(this, void 0, void 0, function* () {
|
|
306
308
|
var _a, _b, _c, _d, _e, _f;
|
|
307
|
-
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;
|
|
309
|
+
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;
|
|
308
310
|
const _queryParams = {};
|
|
309
311
|
if (sortBy !== undefined) {
|
|
310
312
|
_queryParams["sort_by"] = sortBy;
|
|
@@ -350,6 +352,12 @@ export class Expanded {
|
|
|
350
352
|
if (filterCompletedAtTimestampGte !== undefined) {
|
|
351
353
|
_queryParams["filter_completed_at_timestamp_gte"] = filterCompletedAtTimestampGte;
|
|
352
354
|
}
|
|
355
|
+
if (filterSkippedAtTimestampLte !== undefined) {
|
|
356
|
+
_queryParams["filter_skipped_at_timestamp_lte"] = filterSkippedAtTimestampLte;
|
|
357
|
+
}
|
|
358
|
+
if (filterSkippedAtTimestampGte !== undefined) {
|
|
359
|
+
_queryParams["filter_skipped_at_timestamp_gte"] = filterSkippedAtTimestampGte;
|
|
360
|
+
}
|
|
353
361
|
if (filterExceptionAtTimestampLte !== undefined) {
|
|
354
362
|
_queryParams["filter_exception_at_timestamp_lte"] = filterExceptionAtTimestampLte;
|
|
355
363
|
}
|
|
@@ -423,6 +431,8 @@ export class Expanded {
|
|
|
423
431
|
* filter_in_progress_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
424
432
|
* filter_completed_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
425
433
|
* filter_completed_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
434
|
+
* filter_skipped_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
435
|
+
* filter_skipped_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
426
436
|
* filter_exception_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
427
437
|
* filter_exception_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
428
438
|
* body: {}
|
|
@@ -434,7 +444,7 @@ export class Expanded {
|
|
|
434
444
|
__listForCourierDriverV1(request, requestOptions) {
|
|
435
445
|
return __awaiter(this, void 0, void 0, function* () {
|
|
436
446
|
var _a, _b, _c, _d, _e, _f;
|
|
437
|
-
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;
|
|
447
|
+
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;
|
|
438
448
|
const _queryParams = {};
|
|
439
449
|
if (sortBy !== undefined) {
|
|
440
450
|
_queryParams["sort_by"] = sortBy;
|
|
@@ -480,6 +490,12 @@ export class Expanded {
|
|
|
480
490
|
if (filterCompletedAtTimestampGte !== undefined) {
|
|
481
491
|
_queryParams["filter_completed_at_timestamp_gte"] = filterCompletedAtTimestampGte;
|
|
482
492
|
}
|
|
493
|
+
if (filterSkippedAtTimestampLte !== undefined) {
|
|
494
|
+
_queryParams["filter_skipped_at_timestamp_lte"] = filterSkippedAtTimestampLte;
|
|
495
|
+
}
|
|
496
|
+
if (filterSkippedAtTimestampGte !== undefined) {
|
|
497
|
+
_queryParams["filter_skipped_at_timestamp_gte"] = filterSkippedAtTimestampGte;
|
|
498
|
+
}
|
|
483
499
|
if (filterExceptionAtTimestampLte !== undefined) {
|
|
484
500
|
_queryParams["filter_exception_at_timestamp_lte"] = filterExceptionAtTimestampLte;
|
|
485
501
|
}
|
|
@@ -17,6 +17,8 @@ import * as Chrt from "../../../../../../index.mjs";
|
|
|
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.mjs";
|
|
|
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.mjs";
|
|
2
2
|
export * from "./expanded/types/index.mjs";
|
|
3
|
+
export * as taskGroupId from "./taskGroupId/index.mjs";
|
|
4
|
+
export * as s3Object from "./s3Object/index.mjs";
|
|
5
|
+
export * from "./s3Object/client/requests/index.mjs";
|
|
3
6
|
export * from "./expanded/client/requests/index.mjs";
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
export * as expanded from "./expanded/index.mjs";
|
|
2
2
|
export * from "./expanded/types/index.mjs";
|
|
3
|
+
export * as taskGroupId from "./taskGroupId/index.mjs";
|
|
4
|
+
export * as s3Object from "./s3Object/index.mjs";
|
|
5
|
+
export * from "./s3Object/client/requests/index.mjs";
|
|
3
6
|
export * from "./expanded/client/requests/index.mjs";
|