@chrt-inc/typescript-sdk 1.320.0 → 1.321.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 +79 -6
- package/dist/cjs/api/resources/taskArtifacts/client/Client.js +308 -6
- 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 +3 -3
- package/dist/cjs/api/resources/taskArtifacts/resources/{blurhash → s3Object}/client/Client.d.ts +9 -9
- package/dist/cjs/api/resources/taskArtifacts/resources/{blurhash → s3Object}/client/Client.js +11 -11
- package/dist/cjs/api/resources/taskArtifacts/resources/s3ObjectMetadata/client/Client.d.ts +47 -0
- package/dist/cjs/api/resources/taskArtifacts/resources/s3ObjectMetadata/client/Client.js +127 -0
- package/dist/cjs/api/resources/taskArtifacts/resources/s3ObjectMetadata/client/index.js +2 -0
- package/dist/cjs/api/resources/taskGroups/client/Client.d.ts +79 -33
- package/dist/cjs/api/resources/taskGroups/client/Client.js +220 -67
- package/dist/cjs/api/resources/taskGroups/client/requests/AddMessageReq.d.ts +13 -0
- package/dist/cjs/api/resources/taskGroups/client/requests/BodyPostAddS3ObjectV1OortTaskGroupsAddS3ObjectV1TaskGroupIdPost.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 +4 -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/{taskArtifacts/resources/images → taskGroups/resources/s3Object}/client/Client.d.ts +14 -7
- package/dist/cjs/api/resources/{taskArtifacts/resources/images → taskGroups/resources/s3Object}/client/Client.js +16 -10
- package/dist/cjs/api/resources/taskGroups/resources/s3Object/client/index.js +2 -0
- package/dist/cjs/api/resources/taskGroups/resources/s3Object/index.d.ts +1 -0
- package/dist/cjs/api/resources/taskGroups/resources/s3Object/index.js +17 -0
- package/dist/cjs/api/resources/taskGroups/resources/s3ObjectMetadata/client/Client.d.ts +47 -0
- package/dist/cjs/api/resources/taskGroups/resources/s3ObjectMetadata/client/Client.js +127 -0
- package/dist/cjs/api/resources/taskGroups/resources/s3ObjectMetadata/client/index.js +2 -0
- package/dist/cjs/api/resources/taskGroups/resources/s3ObjectMetadata/index.d.ts +1 -0
- package/dist/cjs/api/resources/taskGroups/resources/s3ObjectMetadata/index.js +17 -0
- package/dist/cjs/api/resources/taskGroups/resources/taskGroupId/client/Client.d.ts +59 -0
- package/dist/cjs/api/resources/taskGroups/resources/taskGroupId/client/Client.js +186 -0
- 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 +79 -6
- package/dist/esm/api/resources/taskArtifacts/client/Client.mjs +275 -6
- 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/{blurhash → s3Object}/client/Client.d.mts +9 -9
- package/dist/esm/api/resources/taskArtifacts/resources/{blurhash → s3Object}/client/Client.mjs +9 -9
- package/dist/esm/api/resources/taskArtifacts/resources/s3Object/client/index.d.mts +1 -0
- package/dist/esm/api/resources/taskArtifacts/resources/s3Object/client/index.mjs +1 -0
- package/dist/esm/api/resources/taskArtifacts/resources/s3ObjectMetadata/client/Client.d.mts +47 -0
- package/dist/esm/api/resources/taskArtifacts/resources/s3ObjectMetadata/client/Client.mjs +90 -0
- package/dist/esm/api/resources/taskArtifacts/resources/s3ObjectMetadata/client/index.d.mts +1 -0
- package/dist/esm/api/resources/taskArtifacts/resources/s3ObjectMetadata/client/index.mjs +1 -0
- package/dist/esm/api/resources/taskGroups/client/Client.d.mts +79 -33
- package/dist/esm/api/resources/taskGroups/client/Client.mjs +218 -65
- package/dist/esm/api/resources/taskGroups/client/requests/AddMessageReq.d.mts +13 -0
- package/dist/esm/api/resources/taskGroups/client/requests/BodyPostAddS3ObjectV1OortTaskGroupsAddS3ObjectV1TaskGroupIdPost.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 +4 -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/{taskArtifacts/resources/images → taskGroups/resources/s3Object}/client/Client.d.mts +14 -7
- package/dist/esm/api/resources/{taskArtifacts/resources/images → taskGroups/resources/s3Object}/client/Client.mjs +14 -8
- package/dist/esm/api/resources/taskGroups/resources/s3Object/client/index.d.mts +1 -0
- package/dist/esm/api/resources/taskGroups/resources/s3Object/client/index.mjs +1 -0
- package/dist/esm/api/resources/taskGroups/resources/s3Object/index.d.mts +1 -0
- package/dist/esm/api/resources/taskGroups/resources/s3Object/index.mjs +1 -0
- package/dist/esm/api/resources/taskGroups/resources/s3ObjectMetadata/client/Client.d.mts +47 -0
- package/dist/esm/api/resources/taskGroups/resources/s3ObjectMetadata/client/Client.mjs +90 -0
- package/dist/esm/api/resources/taskGroups/resources/s3ObjectMetadata/client/index.d.mts +1 -0
- package/dist/esm/api/resources/taskGroups/resources/s3ObjectMetadata/client/index.mjs +1 -0
- package/dist/esm/api/resources/taskGroups/resources/s3ObjectMetadata/index.d.mts +1 -0
- package/dist/esm/api/resources/taskGroups/resources/s3ObjectMetadata/index.mjs +1 -0
- package/dist/esm/api/resources/taskGroups/resources/taskGroupId/client/Client.d.mts +59 -0
- package/dist/esm/api/resources/taskGroups/resources/taskGroupId/client/Client.mjs +149 -0
- package/dist/esm/api/resources/taskGroups/resources/taskGroupId/client/index.d.mts +1 -0
- package/dist/esm/api/resources/taskGroups/resources/taskGroupId/client/index.mjs +1 -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 +1300 -206
- 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/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/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/taskArtifacts/resources/{blurhash → s3Object}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/taskArtifacts/resources/{images → s3Object}/client/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/taskArtifacts/resources/{images → s3ObjectMetadata}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/taskArtifacts/resources/{images → s3ObjectMetadata}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/taskArtifacts/resources/{images → s3ObjectMetadata}/index.js +0 -0
- /package/dist/cjs/api/resources/taskGroups/client/requests/{UpdateTaskGroupCourierOrgReq.js → AddMessageReq.js} +0 -0
- /package/dist/cjs/api/resources/taskGroups/client/requests/{UpdateTaskGroupDriverReq.js → BodyPostAddS3ObjectV1OortTaskGroupsAddS3ObjectV1TaskGroupIdPost.js} +0 -0
- /package/dist/{esm/api/resources/taskArtifacts/resources/blurhash/client/index.d.mts → cjs/api/resources/taskGroups/resources/s3Object/client/index.d.ts} +0 -0
- /package/dist/{esm/api/resources/taskArtifacts/resources/blurhash/client/index.mjs → cjs/api/resources/taskGroups/resources/s3ObjectMetadata/client/index.d.ts} +0 -0
- /package/dist/{esm/api/resources/taskArtifacts/resources/images/client/index.d.mts → cjs/api/resources/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/images/client → 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/taskArtifacts/resources/{images → s3ObjectMetadata}/index.d.mts +0 -0
- /package/dist/esm/api/resources/taskArtifacts/resources/{images → s3ObjectMetadata}/index.mjs +0 -0
- /package/dist/esm/api/resources/taskGroups/client/requests/{UpdateTaskGroupCourierOrgReq.mjs → AddMessageReq.mjs} +0 -0
- /package/dist/esm/api/resources/taskGroups/client/requests/{UpdateTaskGroupDriverReq.mjs → BodyPostAddS3ObjectV1OortTaskGroupsAddS3ObjectV1TaskGroupIdPost.mjs} +0 -0
package/dist/cjs/Client.d.ts
CHANGED
|
@@ -18,10 +18,12 @@ import { Dev } from "./api/resources/dev/client/Client.js";
|
|
|
18
18
|
import { TaskArtifactNotifications } from "./api/resources/taskArtifactNotifications/client/Client.js";
|
|
19
19
|
import { Drivers } from "./api/resources/drivers/client/Client.js";
|
|
20
20
|
import { Cargos } from "./api/resources/cargos/client/Client.js";
|
|
21
|
+
import { TaskArtifacts } from "./api/resources/taskArtifacts/client/Client.js";
|
|
21
22
|
import { OffChrtShipperOrg } from "./api/resources/offChrtShipperOrg/client/Client.js";
|
|
22
23
|
import { Orders } from "./api/resources/orders/client/Client.js";
|
|
23
24
|
import { OrderDrafts } from "./api/resources/orderDrafts/client/Client.js";
|
|
24
25
|
import { TaskGroups } from "./api/resources/taskGroups/client/Client.js";
|
|
26
|
+
import { Tasks } from "./api/resources/tasks/client/Client.js";
|
|
25
27
|
import { ShipperContactInfo } from "./api/resources/shipperContactInfo/client/Client.js";
|
|
26
28
|
import { Orgs } from "./api/resources/orgs/client/Client.js";
|
|
27
29
|
import { Root } from "./api/resources/root/client/Client.js";
|
|
@@ -29,7 +31,6 @@ import { Users } from "./api/resources/users/client/Client.js";
|
|
|
29
31
|
import { Utils } from "./api/resources/utils/client/Client.js";
|
|
30
32
|
import { Notifications } from "./api/resources/notifications/client/Client.js";
|
|
31
33
|
import { OrgInfoForConnections } from "./api/resources/orgInfoForConnections/client/Client.js";
|
|
32
|
-
import { TaskArtifacts } from "./api/resources/taskArtifacts/client/Client.js";
|
|
33
34
|
import { Tracking } from "./api/resources/tracking/client/Client.js";
|
|
34
35
|
export declare namespace ChrtClient {
|
|
35
36
|
interface Options {
|
|
@@ -71,10 +72,12 @@ export declare class ChrtClient {
|
|
|
71
72
|
protected _taskArtifactNotifications: TaskArtifactNotifications | undefined;
|
|
72
73
|
protected _drivers: Drivers | undefined;
|
|
73
74
|
protected _cargos: Cargos | undefined;
|
|
75
|
+
protected _taskArtifacts: TaskArtifacts | undefined;
|
|
74
76
|
protected _offChrtShipperOrg: OffChrtShipperOrg | undefined;
|
|
75
77
|
protected _orders: Orders | undefined;
|
|
76
78
|
protected _orderDrafts: OrderDrafts | undefined;
|
|
77
79
|
protected _taskGroups: TaskGroups | undefined;
|
|
80
|
+
protected _tasks: Tasks | undefined;
|
|
78
81
|
protected _shipperContactInfo: ShipperContactInfo | undefined;
|
|
79
82
|
protected _orgs: Orgs | undefined;
|
|
80
83
|
protected _root: Root | undefined;
|
|
@@ -82,7 +85,6 @@ export declare class ChrtClient {
|
|
|
82
85
|
protected _utils: Utils | undefined;
|
|
83
86
|
protected _notifications: Notifications | undefined;
|
|
84
87
|
protected _orgInfoForConnections: OrgInfoForConnections | undefined;
|
|
85
|
-
protected _taskArtifacts: TaskArtifacts | undefined;
|
|
86
88
|
protected _tracking: Tracking | undefined;
|
|
87
89
|
constructor(_options?: ChrtClient.Options);
|
|
88
90
|
get payments(): Payments;
|
|
@@ -100,10 +102,12 @@ export declare class ChrtClient {
|
|
|
100
102
|
get taskArtifactNotifications(): TaskArtifactNotifications;
|
|
101
103
|
get drivers(): Drivers;
|
|
102
104
|
get cargos(): Cargos;
|
|
105
|
+
get taskArtifacts(): TaskArtifacts;
|
|
103
106
|
get offChrtShipperOrg(): OffChrtShipperOrg;
|
|
104
107
|
get orders(): Orders;
|
|
105
108
|
get orderDrafts(): OrderDrafts;
|
|
106
109
|
get taskGroups(): TaskGroups;
|
|
110
|
+
get tasks(): Tasks;
|
|
107
111
|
get shipperContactInfo(): ShipperContactInfo;
|
|
108
112
|
get orgs(): Orgs;
|
|
109
113
|
get root(): Root;
|
|
@@ -111,6 +115,5 @@ export declare class ChrtClient {
|
|
|
111
115
|
get utils(): Utils;
|
|
112
116
|
get notifications(): Notifications;
|
|
113
117
|
get orgInfoForConnections(): OrgInfoForConnections;
|
|
114
|
-
get taskArtifacts(): TaskArtifacts;
|
|
115
118
|
get tracking(): Tracking;
|
|
116
119
|
}
|
package/dist/cjs/Client.js
CHANGED
|
@@ -54,26 +54,27 @@ const Client_js_12 = require("./api/resources/dev/client/Client.js");
|
|
|
54
54
|
const Client_js_13 = require("./api/resources/taskArtifactNotifications/client/Client.js");
|
|
55
55
|
const Client_js_14 = require("./api/resources/drivers/client/Client.js");
|
|
56
56
|
const Client_js_15 = require("./api/resources/cargos/client/Client.js");
|
|
57
|
-
const Client_js_16 = require("./api/resources/
|
|
58
|
-
const Client_js_17 = require("./api/resources/
|
|
59
|
-
const Client_js_18 = require("./api/resources/
|
|
60
|
-
const Client_js_19 = require("./api/resources/
|
|
61
|
-
const Client_js_20 = require("./api/resources/
|
|
62
|
-
const Client_js_21 = require("./api/resources/
|
|
63
|
-
const Client_js_22 = require("./api/resources/
|
|
64
|
-
const Client_js_23 = require("./api/resources/
|
|
65
|
-
const Client_js_24 = require("./api/resources/
|
|
66
|
-
const Client_js_25 = require("./api/resources/
|
|
67
|
-
const Client_js_26 = require("./api/resources/
|
|
68
|
-
const Client_js_27 = require("./api/resources/
|
|
69
|
-
const Client_js_28 = require("./api/resources/
|
|
57
|
+
const Client_js_16 = require("./api/resources/taskArtifacts/client/Client.js");
|
|
58
|
+
const Client_js_17 = require("./api/resources/offChrtShipperOrg/client/Client.js");
|
|
59
|
+
const Client_js_18 = require("./api/resources/orders/client/Client.js");
|
|
60
|
+
const Client_js_19 = require("./api/resources/orderDrafts/client/Client.js");
|
|
61
|
+
const Client_js_20 = require("./api/resources/taskGroups/client/Client.js");
|
|
62
|
+
const Client_js_21 = require("./api/resources/tasks/client/Client.js");
|
|
63
|
+
const Client_js_22 = require("./api/resources/shipperContactInfo/client/Client.js");
|
|
64
|
+
const Client_js_23 = require("./api/resources/orgs/client/Client.js");
|
|
65
|
+
const Client_js_24 = require("./api/resources/root/client/Client.js");
|
|
66
|
+
const Client_js_25 = require("./api/resources/users/client/Client.js");
|
|
67
|
+
const Client_js_26 = require("./api/resources/utils/client/Client.js");
|
|
68
|
+
const Client_js_27 = require("./api/resources/notifications/client/Client.js");
|
|
69
|
+
const Client_js_28 = require("./api/resources/orgInfoForConnections/client/Client.js");
|
|
70
|
+
const Client_js_29 = require("./api/resources/tracking/client/Client.js");
|
|
70
71
|
class ChrtClient {
|
|
71
72
|
constructor(_options = {}) {
|
|
72
73
|
this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
|
|
73
74
|
"X-Fern-Language": "JavaScript",
|
|
74
75
|
"X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
|
|
75
|
-
"X-Fern-SDK-Version": "1.
|
|
76
|
-
"User-Agent": "@chrt-inc/typescript-sdk/1.
|
|
76
|
+
"X-Fern-SDK-Version": "1.321.0",
|
|
77
|
+
"User-Agent": "@chrt-inc/typescript-sdk/1.321.0",
|
|
77
78
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
78
79
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
79
80
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -138,57 +139,61 @@ class ChrtClient {
|
|
|
138
139
|
var _a;
|
|
139
140
|
return ((_a = this._cargos) !== null && _a !== void 0 ? _a : (this._cargos = new Client_js_15.Cargos(this._options)));
|
|
140
141
|
}
|
|
142
|
+
get taskArtifacts() {
|
|
143
|
+
var _a;
|
|
144
|
+
return ((_a = this._taskArtifacts) !== null && _a !== void 0 ? _a : (this._taskArtifacts = new Client_js_16.TaskArtifacts(this._options)));
|
|
145
|
+
}
|
|
141
146
|
get offChrtShipperOrg() {
|
|
142
147
|
var _a;
|
|
143
|
-
return ((_a = this._offChrtShipperOrg) !== null && _a !== void 0 ? _a : (this._offChrtShipperOrg = new
|
|
148
|
+
return ((_a = this._offChrtShipperOrg) !== null && _a !== void 0 ? _a : (this._offChrtShipperOrg = new Client_js_17.OffChrtShipperOrg(this._options)));
|
|
144
149
|
}
|
|
145
150
|
get orders() {
|
|
146
151
|
var _a;
|
|
147
|
-
return ((_a = this._orders) !== null && _a !== void 0 ? _a : (this._orders = new
|
|
152
|
+
return ((_a = this._orders) !== null && _a !== void 0 ? _a : (this._orders = new Client_js_18.Orders(this._options)));
|
|
148
153
|
}
|
|
149
154
|
get orderDrafts() {
|
|
150
155
|
var _a;
|
|
151
|
-
return ((_a = this._orderDrafts) !== null && _a !== void 0 ? _a : (this._orderDrafts = new
|
|
156
|
+
return ((_a = this._orderDrafts) !== null && _a !== void 0 ? _a : (this._orderDrafts = new Client_js_19.OrderDrafts(this._options)));
|
|
152
157
|
}
|
|
153
158
|
get taskGroups() {
|
|
154
159
|
var _a;
|
|
155
|
-
return ((_a = this._taskGroups) !== null && _a !== void 0 ? _a : (this._taskGroups = new
|
|
160
|
+
return ((_a = this._taskGroups) !== null && _a !== void 0 ? _a : (this._taskGroups = new Client_js_20.TaskGroups(this._options)));
|
|
161
|
+
}
|
|
162
|
+
get tasks() {
|
|
163
|
+
var _a;
|
|
164
|
+
return ((_a = this._tasks) !== null && _a !== void 0 ? _a : (this._tasks = new Client_js_21.Tasks(this._options)));
|
|
156
165
|
}
|
|
157
166
|
get shipperContactInfo() {
|
|
158
167
|
var _a;
|
|
159
|
-
return ((_a = this._shipperContactInfo) !== null && _a !== void 0 ? _a : (this._shipperContactInfo = new
|
|
168
|
+
return ((_a = this._shipperContactInfo) !== null && _a !== void 0 ? _a : (this._shipperContactInfo = new Client_js_22.ShipperContactInfo(this._options)));
|
|
160
169
|
}
|
|
161
170
|
get orgs() {
|
|
162
171
|
var _a;
|
|
163
|
-
return ((_a = this._orgs) !== null && _a !== void 0 ? _a : (this._orgs = new
|
|
172
|
+
return ((_a = this._orgs) !== null && _a !== void 0 ? _a : (this._orgs = new Client_js_23.Orgs(this._options)));
|
|
164
173
|
}
|
|
165
174
|
get root() {
|
|
166
175
|
var _a;
|
|
167
|
-
return ((_a = this._root) !== null && _a !== void 0 ? _a : (this._root = new
|
|
176
|
+
return ((_a = this._root) !== null && _a !== void 0 ? _a : (this._root = new Client_js_24.Root(this._options)));
|
|
168
177
|
}
|
|
169
178
|
get users() {
|
|
170
179
|
var _a;
|
|
171
|
-
return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new
|
|
180
|
+
return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new Client_js_25.Users(this._options)));
|
|
172
181
|
}
|
|
173
182
|
get utils() {
|
|
174
183
|
var _a;
|
|
175
|
-
return ((_a = this._utils) !== null && _a !== void 0 ? _a : (this._utils = new
|
|
184
|
+
return ((_a = this._utils) !== null && _a !== void 0 ? _a : (this._utils = new Client_js_26.Utils(this._options)));
|
|
176
185
|
}
|
|
177
186
|
get notifications() {
|
|
178
187
|
var _a;
|
|
179
|
-
return ((_a = this._notifications) !== null && _a !== void 0 ? _a : (this._notifications = new
|
|
188
|
+
return ((_a = this._notifications) !== null && _a !== void 0 ? _a : (this._notifications = new Client_js_27.Notifications(this._options)));
|
|
180
189
|
}
|
|
181
190
|
get orgInfoForConnections() {
|
|
182
191
|
var _a;
|
|
183
|
-
return ((_a = this._orgInfoForConnections) !== null && _a !== void 0 ? _a : (this._orgInfoForConnections = new
|
|
184
|
-
}
|
|
185
|
-
get taskArtifacts() {
|
|
186
|
-
var _a;
|
|
187
|
-
return ((_a = this._taskArtifacts) !== null && _a !== void 0 ? _a : (this._taskArtifacts = new Client_js_27.TaskArtifacts(this._options)));
|
|
192
|
+
return ((_a = this._orgInfoForConnections) !== null && _a !== void 0 ? _a : (this._orgInfoForConnections = new Client_js_28.OrgInfoForConnections(this._options)));
|
|
188
193
|
}
|
|
189
194
|
get tracking() {
|
|
190
195
|
var _a;
|
|
191
|
-
return ((_a = this._tracking) !== null && _a !== void 0 ? _a : (this._tracking = new
|
|
196
|
+
return ((_a = this._tracking) !== null && _a !== void 0 ? _a : (this._tracking = new Client_js_29.Tracking(this._options)));
|
|
192
197
|
}
|
|
193
198
|
}
|
|
194
199
|
exports.ChrtClient = ChrtClient;
|
|
@@ -31,97 +31,79 @@ export declare class Drivers {
|
|
|
31
31
|
protected readonly _options: Drivers.Options;
|
|
32
32
|
constructor(_options?: Drivers.Options);
|
|
33
33
|
/**
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
* @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
|
|
37
|
-
*
|
|
38
|
-
* @example
|
|
39
|
-
* await client.drivers.listOrgMembersAndDriversV1()
|
|
40
|
-
*/
|
|
41
|
-
listOrgMembersAndDriversV1(requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<Chrt.OrgMembersAndDrivers[]>;
|
|
42
|
-
private __listOrgMembersAndDriversV1;
|
|
43
|
-
/**
|
|
44
|
-
* Lists all drivers belonging to the caller's organization. | () -> (list[Driver1])
|
|
34
|
+
* Retrieves driver information for the caller within their organization. | () -> (Driver1)
|
|
45
35
|
*
|
|
46
36
|
* @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
|
|
47
37
|
*
|
|
48
38
|
* @example
|
|
49
|
-
* await client.drivers.
|
|
39
|
+
* await client.drivers.getForCallerV1()
|
|
50
40
|
*/
|
|
51
|
-
|
|
52
|
-
private
|
|
41
|
+
getForCallerV1(requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<Chrt.Driver1>;
|
|
42
|
+
private __getForCallerV1;
|
|
53
43
|
/**
|
|
54
|
-
*
|
|
44
|
+
* Retrieves detailed driver information by driver ID within the organization. | () -> (Driver1)
|
|
55
45
|
*
|
|
56
|
-
* @param {
|
|
46
|
+
* @param {string} driverId
|
|
57
47
|
* @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
|
|
58
48
|
*
|
|
59
49
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
60
50
|
*
|
|
61
51
|
* @example
|
|
62
|
-
* await client.drivers.
|
|
63
|
-
* org_member: {
|
|
64
|
-
* role: "owner",
|
|
65
|
-
* user_id: "user_id"
|
|
66
|
-
* }
|
|
67
|
-
* })
|
|
52
|
+
* await client.drivers.getByDriverIdV1("driver_id")
|
|
68
53
|
*/
|
|
69
|
-
|
|
70
|
-
private
|
|
54
|
+
getByDriverIdV1(driverId: string, requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<Chrt.Driver1>;
|
|
55
|
+
private __getByDriverIdV1;
|
|
71
56
|
/**
|
|
72
|
-
*
|
|
57
|
+
* Lists all organization members paired with their driver information if they are drivers. | () -> (list[OrgMembersAndDrivers])
|
|
73
58
|
*
|
|
74
59
|
* @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
|
|
75
60
|
*
|
|
76
61
|
* @example
|
|
77
|
-
* await client.drivers.
|
|
62
|
+
* await client.drivers.listOrgMembersAndDriversV1()
|
|
78
63
|
*/
|
|
79
|
-
|
|
80
|
-
private
|
|
64
|
+
listOrgMembersAndDriversV1(requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<Chrt.OrgMembersAndDrivers[]>;
|
|
65
|
+
private __listOrgMembersAndDriversV1;
|
|
81
66
|
/**
|
|
82
|
-
*
|
|
67
|
+
* Lists all drivers belonging to the caller's organization. | () -> (list[Driver1])
|
|
83
68
|
*
|
|
84
|
-
* @param {string} driverId
|
|
85
69
|
* @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
|
|
86
70
|
*
|
|
87
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
88
|
-
*
|
|
89
71
|
* @example
|
|
90
|
-
* await client.drivers.
|
|
72
|
+
* await client.drivers.listV1()
|
|
91
73
|
*/
|
|
92
|
-
|
|
93
|
-
private
|
|
74
|
+
listV1(requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<Chrt.Driver1[]>;
|
|
75
|
+
private __listV1;
|
|
94
76
|
/**
|
|
95
|
-
*
|
|
77
|
+
* Creates a new driver profile for the caller. Returns existing driver ID if one already exists. Courier orgs only, min role: operator. | (DriverClientCreate1) -> (PydanticObjectId)
|
|
96
78
|
*
|
|
97
|
-
* @param {
|
|
79
|
+
* @param {Chrt.DriverClientCreate1} request
|
|
98
80
|
* @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
|
|
99
81
|
*
|
|
100
82
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
101
83
|
*
|
|
102
84
|
* @example
|
|
103
|
-
* await client.drivers.
|
|
85
|
+
* await client.drivers.createV1({
|
|
86
|
+
* schema_version: 1
|
|
87
|
+
* })
|
|
104
88
|
*/
|
|
105
|
-
|
|
106
|
-
private
|
|
89
|
+
createV1(request: Chrt.DriverClientCreate1, requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<string>;
|
|
90
|
+
private __createV1;
|
|
107
91
|
/**
|
|
108
|
-
*
|
|
92
|
+
* Updates driver contact details and vehicle type assignments. Courier orgs only; caller must be the driver (self) or an operator+. | (DriverClientUpdate1) -> (bool)
|
|
109
93
|
*
|
|
110
|
-
* @param {
|
|
94
|
+
* @param {string} driverId
|
|
95
|
+
* @param {Chrt.DriverClientUpdate1} request
|
|
111
96
|
* @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
|
|
112
97
|
*
|
|
113
98
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
114
99
|
*
|
|
115
100
|
* @example
|
|
116
|
-
* await client.drivers.
|
|
117
|
-
* driver_object_id: "driver_object_id",
|
|
118
|
-
* active: true
|
|
119
|
-
* })
|
|
101
|
+
* await client.drivers.updateV1("driver_id")
|
|
120
102
|
*/
|
|
121
|
-
|
|
122
|
-
private
|
|
103
|
+
updateV1(driverId: string, request?: Chrt.DriverClientUpdate1, requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
104
|
+
private __updateV1;
|
|
123
105
|
/**
|
|
124
|
-
* Updates the
|
|
106
|
+
* Updates the caller's driver last known location and timestamp for tracking. Only updates if timestamp is newer than existing (DB-side validation). Returns False if driver not found or timestamp is stale. | (DriverLastSeenReq) -> (bool)
|
|
125
107
|
*
|
|
126
108
|
* @param {Chrt.DriverLastSeenReq} request
|
|
127
109
|
* @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -129,7 +111,7 @@ export declare class Drivers {
|
|
|
129
111
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
130
112
|
*
|
|
131
113
|
* @example
|
|
132
|
-
* await client.drivers.
|
|
114
|
+
* await client.drivers.updateLastSeenV1({
|
|
133
115
|
* location: {
|
|
134
116
|
* type: "Feature",
|
|
135
117
|
* geometry: {
|
|
@@ -142,32 +124,48 @@ export declare class Drivers {
|
|
|
142
124
|
* }
|
|
143
125
|
* })
|
|
144
126
|
*/
|
|
145
|
-
|
|
146
|
-
private
|
|
127
|
+
updateLastSeenV1(request: Chrt.DriverLastSeenReq, requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
128
|
+
private __updateLastSeenV1;
|
|
147
129
|
/**
|
|
148
130
|
* Clears the driver's last known location and timestamp. | () -> (bool)
|
|
149
131
|
*
|
|
150
132
|
* @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
|
|
151
133
|
*
|
|
152
134
|
* @example
|
|
153
|
-
* await client.drivers.
|
|
135
|
+
* await client.drivers.clearLastSeenV1()
|
|
136
|
+
*/
|
|
137
|
+
clearLastSeenV1(requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
138
|
+
private __clearLastSeenV1;
|
|
139
|
+
/**
|
|
140
|
+
* Updates the caller's driver availability status. Must have status UNASSIGNED to set availability to False; always allows setting to True. Courier orgs only. | (DriverUpdateAvailabilityReq) -> (bool)
|
|
141
|
+
*
|
|
142
|
+
* @param {Chrt.DriverUpdateAvailabilityReq} request
|
|
143
|
+
* @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
|
|
144
|
+
*
|
|
145
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
146
|
+
*
|
|
147
|
+
* @example
|
|
148
|
+
* await client.drivers.updateAvailabilityAccordingToDriverV1({
|
|
149
|
+
* available: true
|
|
150
|
+
* })
|
|
154
151
|
*/
|
|
155
|
-
|
|
156
|
-
private
|
|
152
|
+
updateAvailabilityAccordingToDriverV1(request: Chrt.DriverUpdateAvailabilityReq, requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
153
|
+
private __updateAvailabilityAccordingToDriverV1;
|
|
157
154
|
/**
|
|
158
|
-
* Updates driver
|
|
155
|
+
* Updates a driver's availability status. Must have status UNASSIGNED to set availability to False; always allows setting to True. Courier orgs only, min role: operator. | (DriverUpdateAvailabilityReq) -> (bool)
|
|
159
156
|
*
|
|
160
|
-
* @param {
|
|
157
|
+
* @param {string} driverId
|
|
158
|
+
* @param {Chrt.DriverUpdateAvailabilityReq} request
|
|
161
159
|
* @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
|
|
162
160
|
*
|
|
163
161
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
164
162
|
*
|
|
165
163
|
* @example
|
|
166
|
-
* await client.drivers.
|
|
167
|
-
*
|
|
164
|
+
* await client.drivers.updateAvailabilityAccordingToOperatorsV1("driver_id", {
|
|
165
|
+
* available: true
|
|
168
166
|
* })
|
|
169
167
|
*/
|
|
170
|
-
|
|
171
|
-
private
|
|
168
|
+
updateAvailabilityAccordingToOperatorsV1(driverId: string, request: Chrt.DriverUpdateAvailabilityReq, requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
169
|
+
private __updateAvailabilityAccordingToOperatorsV1;
|
|
172
170
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
173
171
|
}
|