@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
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
interface FormDataRequest<Body> {
|
|
2
|
+
body: Body;
|
|
3
|
+
headers: Record<string, string>;
|
|
4
|
+
duplex?: "half";
|
|
5
|
+
}
|
|
6
|
+
export declare function newFormData(): Promise<FormDataWrapper>;
|
|
7
|
+
export declare class FormDataWrapper {
|
|
8
|
+
private fd;
|
|
9
|
+
setup(): Promise<void>;
|
|
10
|
+
append(key: string, value: unknown): void;
|
|
11
|
+
private getFileName;
|
|
12
|
+
private convertToBlob;
|
|
13
|
+
appendFile(key: string, value: unknown, fileName?: string): Promise<void>;
|
|
14
|
+
getRequest(): FormDataRequest<FormData>;
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
36
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
37
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
38
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
39
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
40
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
41
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
42
|
+
});
|
|
43
|
+
};
|
|
44
|
+
var __asyncValues = (this && this.__asyncValues) || function (o) {
|
|
45
|
+
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
46
|
+
var m = o[Symbol.asyncIterator], i;
|
|
47
|
+
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
48
|
+
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
49
|
+
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
|
|
50
|
+
};
|
|
51
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
52
|
+
exports.FormDataWrapper = void 0;
|
|
53
|
+
exports.newFormData = newFormData;
|
|
54
|
+
const json_js_1 = require("../../core/json.js");
|
|
55
|
+
const index_js_1 = require("../runtime/index.js");
|
|
56
|
+
function isNamedValue(value) {
|
|
57
|
+
return typeof value === "object" && value != null && "name" in value;
|
|
58
|
+
}
|
|
59
|
+
function isPathedValue(value) {
|
|
60
|
+
return typeof value === "object" && value != null && "path" in value;
|
|
61
|
+
}
|
|
62
|
+
function isStreamLike(value) {
|
|
63
|
+
return typeof value === "object" && value != null && ("read" in value || "pipe" in value);
|
|
64
|
+
}
|
|
65
|
+
function isReadableStream(value) {
|
|
66
|
+
return typeof value === "object" && value != null && "getReader" in value;
|
|
67
|
+
}
|
|
68
|
+
function isBuffer(value) {
|
|
69
|
+
return typeof Buffer !== "undefined" && Buffer.isBuffer && Buffer.isBuffer(value);
|
|
70
|
+
}
|
|
71
|
+
function isArrayBufferView(value) {
|
|
72
|
+
return ArrayBuffer.isView(value);
|
|
73
|
+
}
|
|
74
|
+
function getLastPathSegment(pathStr) {
|
|
75
|
+
const lastForwardSlash = pathStr.lastIndexOf("/");
|
|
76
|
+
const lastBackSlash = pathStr.lastIndexOf("\\");
|
|
77
|
+
const lastSlashIndex = Math.max(lastForwardSlash, lastBackSlash);
|
|
78
|
+
return lastSlashIndex >= 0 ? pathStr.substring(lastSlashIndex + 1) : pathStr;
|
|
79
|
+
}
|
|
80
|
+
function streamToBuffer(stream) {
|
|
81
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
82
|
+
var _a, stream_1, stream_1_1;
|
|
83
|
+
var _b, e_1, _c, _d;
|
|
84
|
+
if (index_js_1.RUNTIME.type === "node") {
|
|
85
|
+
const { Readable } = yield Promise.resolve().then(() => __importStar(require("stream")));
|
|
86
|
+
if (stream instanceof Readable) {
|
|
87
|
+
const chunks = [];
|
|
88
|
+
try {
|
|
89
|
+
for (_a = true, stream_1 = __asyncValues(stream); stream_1_1 = yield stream_1.next(), _b = stream_1_1.done, !_b; _a = true) {
|
|
90
|
+
_d = stream_1_1.value;
|
|
91
|
+
_a = false;
|
|
92
|
+
const chunk = _d;
|
|
93
|
+
chunks.push(Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk));
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
97
|
+
finally {
|
|
98
|
+
try {
|
|
99
|
+
if (!_a && !_b && (_c = stream_1.return)) yield _c.call(stream_1);
|
|
100
|
+
}
|
|
101
|
+
finally { if (e_1) throw e_1.error; }
|
|
102
|
+
}
|
|
103
|
+
return Buffer.concat(chunks);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
if (isReadableStream(stream)) {
|
|
107
|
+
const reader = stream.getReader();
|
|
108
|
+
const chunks = [];
|
|
109
|
+
try {
|
|
110
|
+
while (true) {
|
|
111
|
+
const { done, value } = yield reader.read();
|
|
112
|
+
if (done)
|
|
113
|
+
break;
|
|
114
|
+
chunks.push(value);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
finally {
|
|
118
|
+
reader.releaseLock();
|
|
119
|
+
}
|
|
120
|
+
const totalLength = chunks.reduce((sum, chunk) => sum + chunk.length, 0);
|
|
121
|
+
const result = new Uint8Array(totalLength);
|
|
122
|
+
let offset = 0;
|
|
123
|
+
for (const chunk of chunks) {
|
|
124
|
+
result.set(chunk, offset);
|
|
125
|
+
offset += chunk.length;
|
|
126
|
+
}
|
|
127
|
+
return Buffer.from(result);
|
|
128
|
+
}
|
|
129
|
+
throw new Error("Unsupported stream type: " + typeof stream + ". Expected Node.js Readable stream or Web ReadableStream.");
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
function newFormData() {
|
|
133
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
134
|
+
return new FormDataWrapper();
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
class FormDataWrapper {
|
|
138
|
+
constructor() {
|
|
139
|
+
this.fd = new FormData();
|
|
140
|
+
}
|
|
141
|
+
setup() {
|
|
142
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
143
|
+
// noop
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
append(key, value) {
|
|
147
|
+
this.fd.append(key, String(value));
|
|
148
|
+
}
|
|
149
|
+
getFileName(value, filename) {
|
|
150
|
+
if (filename != null) {
|
|
151
|
+
return filename;
|
|
152
|
+
}
|
|
153
|
+
if (isNamedValue(value)) {
|
|
154
|
+
return value.name;
|
|
155
|
+
}
|
|
156
|
+
if (isPathedValue(value) && value.path) {
|
|
157
|
+
return getLastPathSegment(value.path.toString());
|
|
158
|
+
}
|
|
159
|
+
return undefined;
|
|
160
|
+
}
|
|
161
|
+
convertToBlob(value) {
|
|
162
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
163
|
+
if (isStreamLike(value) || isReadableStream(value)) {
|
|
164
|
+
const buffer = yield streamToBuffer(value);
|
|
165
|
+
return new Blob([buffer]);
|
|
166
|
+
}
|
|
167
|
+
if (value instanceof Blob) {
|
|
168
|
+
return value;
|
|
169
|
+
}
|
|
170
|
+
if (isBuffer(value)) {
|
|
171
|
+
return new Blob([value]);
|
|
172
|
+
}
|
|
173
|
+
if (value instanceof ArrayBuffer) {
|
|
174
|
+
return new Blob([value]);
|
|
175
|
+
}
|
|
176
|
+
if (isArrayBufferView(value)) {
|
|
177
|
+
return new Blob([value]);
|
|
178
|
+
}
|
|
179
|
+
if (typeof value === "string") {
|
|
180
|
+
return new Blob([value]);
|
|
181
|
+
}
|
|
182
|
+
if (typeof value === "object" && value !== null) {
|
|
183
|
+
return new Blob([(0, json_js_1.toJson)(value)], { type: "application/json" });
|
|
184
|
+
}
|
|
185
|
+
return new Blob([String(value)]);
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
appendFile(key, value, fileName) {
|
|
189
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
190
|
+
fileName = this.getFileName(value, fileName);
|
|
191
|
+
const blob = yield this.convertToBlob(value);
|
|
192
|
+
if (fileName) {
|
|
193
|
+
this.fd.append(key, blob, fileName);
|
|
194
|
+
}
|
|
195
|
+
else {
|
|
196
|
+
this.fd.append(key, blob);
|
|
197
|
+
}
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
getRequest() {
|
|
201
|
+
return {
|
|
202
|
+
body: this.fd,
|
|
203
|
+
headers: {},
|
|
204
|
+
duplex: "half",
|
|
205
|
+
};
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
exports.FormDataWrapper = FormDataWrapper;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function encodeAsFormParameter(value: unknown): Record<string, string>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.encodeAsFormParameter = encodeAsFormParameter;
|
|
4
|
+
const qs_js_1 = require("../url/qs.js");
|
|
5
|
+
function encodeAsFormParameter(value) {
|
|
6
|
+
const stringified = (0, qs_js_1.toQueryString)(value, { encode: false });
|
|
7
|
+
const keyValuePairs = stringified.split("&").map((pair) => {
|
|
8
|
+
const [key, value] = pair.split("=");
|
|
9
|
+
return [key, value];
|
|
10
|
+
});
|
|
11
|
+
return Object.fromEntries(keyValuePairs);
|
|
12
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.encodeAsFormParameter = void 0;
|
|
18
|
+
var encodeAsFormParameter_js_1 = require("./encodeAsFormParameter.js");
|
|
19
|
+
Object.defineProperty(exports, "encodeAsFormParameter", { enumerable: true, get: function () { return encodeAsFormParameter_js_1.encodeAsFormParameter; } });
|
|
20
|
+
__exportStar(require("./FormDataWrapper.js"), exports);
|
package/dist/cjs/core/index.d.ts
CHANGED
package/dist/cjs/core/index.js
CHANGED
|
@@ -36,9 +36,11 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.url = void 0;
|
|
39
|
+
exports.file = exports.url = void 0;
|
|
40
40
|
__exportStar(require("./fetcher/index.js"), exports);
|
|
41
41
|
__exportStar(require("./runtime/index.js"), exports);
|
|
42
42
|
exports.url = __importStar(require("./url/index.js"));
|
|
43
43
|
__exportStar(require("./auth/index.js"), exports);
|
|
44
44
|
__exportStar(require("./base64.js"), exports);
|
|
45
|
+
__exportStar(require("./form-data-utils/index.js"), exports);
|
|
46
|
+
exports.file = __importStar(require("./file/index.js"));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./core/exports.js";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./core/exports.js"), exports);
|
package/dist/cjs/index.d.ts
CHANGED
package/dist/cjs/index.js
CHANGED
|
@@ -32,6 +32,9 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
32
32
|
return result;
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
36
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
|
+
};
|
|
35
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
39
|
exports.ChrtEnvironment = exports.ChrtClient = exports.ChrtTimeoutError = exports.ChrtError = exports.Chrt = void 0;
|
|
37
40
|
exports.Chrt = __importStar(require("./api/index.js"));
|
|
@@ -42,3 +45,4 @@ var Client_js_1 = require("./Client.js");
|
|
|
42
45
|
Object.defineProperty(exports, "ChrtClient", { enumerable: true, get: function () { return Client_js_1.ChrtClient; } });
|
|
43
46
|
var environments_js_1 = require("./environments.js");
|
|
44
47
|
Object.defineProperty(exports, "ChrtEnvironment", { enumerable: true, get: function () { return environments_js_1.ChrtEnvironment; } });
|
|
48
|
+
__exportStar(require("./exports.js"), exports);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.
|
|
1
|
+
export declare const SDK_VERSION = "1.322.0";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/Client.d.mts
CHANGED
|
@@ -18,10 +18,12 @@ import { Dev } from "./api/resources/dev/client/Client.mjs";
|
|
|
18
18
|
import { TaskArtifactNotifications } from "./api/resources/taskArtifactNotifications/client/Client.mjs";
|
|
19
19
|
import { Drivers } from "./api/resources/drivers/client/Client.mjs";
|
|
20
20
|
import { Cargos } from "./api/resources/cargos/client/Client.mjs";
|
|
21
|
+
import { TaskArtifacts } from "./api/resources/taskArtifacts/client/Client.mjs";
|
|
21
22
|
import { OffChrtShipperOrg } from "./api/resources/offChrtShipperOrg/client/Client.mjs";
|
|
22
23
|
import { Orders } from "./api/resources/orders/client/Client.mjs";
|
|
23
24
|
import { OrderDrafts } from "./api/resources/orderDrafts/client/Client.mjs";
|
|
24
25
|
import { TaskGroups } from "./api/resources/taskGroups/client/Client.mjs";
|
|
26
|
+
import { Tasks } from "./api/resources/tasks/client/Client.mjs";
|
|
25
27
|
import { ShipperContactInfo } from "./api/resources/shipperContactInfo/client/Client.mjs";
|
|
26
28
|
import { Orgs } from "./api/resources/orgs/client/Client.mjs";
|
|
27
29
|
import { Root } from "./api/resources/root/client/Client.mjs";
|
|
@@ -29,7 +31,6 @@ import { Users } from "./api/resources/users/client/Client.mjs";
|
|
|
29
31
|
import { Utils } from "./api/resources/utils/client/Client.mjs";
|
|
30
32
|
import { Notifications } from "./api/resources/notifications/client/Client.mjs";
|
|
31
33
|
import { OrgInfoForConnections } from "./api/resources/orgInfoForConnections/client/Client.mjs";
|
|
32
|
-
import { TaskArtifacts } from "./api/resources/taskArtifacts/client/Client.mjs";
|
|
33
34
|
import { Tracking } from "./api/resources/tracking/client/Client.mjs";
|
|
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/esm/Client.mjs
CHANGED
|
@@ -18,10 +18,12 @@ import { Dev } from "./api/resources/dev/client/Client.mjs";
|
|
|
18
18
|
import { TaskArtifactNotifications } from "./api/resources/taskArtifactNotifications/client/Client.mjs";
|
|
19
19
|
import { Drivers } from "./api/resources/drivers/client/Client.mjs";
|
|
20
20
|
import { Cargos } from "./api/resources/cargos/client/Client.mjs";
|
|
21
|
+
import { TaskArtifacts } from "./api/resources/taskArtifacts/client/Client.mjs";
|
|
21
22
|
import { OffChrtShipperOrg } from "./api/resources/offChrtShipperOrg/client/Client.mjs";
|
|
22
23
|
import { Orders } from "./api/resources/orders/client/Client.mjs";
|
|
23
24
|
import { OrderDrafts } from "./api/resources/orderDrafts/client/Client.mjs";
|
|
24
25
|
import { TaskGroups } from "./api/resources/taskGroups/client/Client.mjs";
|
|
26
|
+
import { Tasks } from "./api/resources/tasks/client/Client.mjs";
|
|
25
27
|
import { ShipperContactInfo } from "./api/resources/shipperContactInfo/client/Client.mjs";
|
|
26
28
|
import { Orgs } from "./api/resources/orgs/client/Client.mjs";
|
|
27
29
|
import { Root } from "./api/resources/root/client/Client.mjs";
|
|
@@ -29,15 +31,14 @@ import { Users } from "./api/resources/users/client/Client.mjs";
|
|
|
29
31
|
import { Utils } from "./api/resources/utils/client/Client.mjs";
|
|
30
32
|
import { Notifications } from "./api/resources/notifications/client/Client.mjs";
|
|
31
33
|
import { OrgInfoForConnections } from "./api/resources/orgInfoForConnections/client/Client.mjs";
|
|
32
|
-
import { TaskArtifacts } from "./api/resources/taskArtifacts/client/Client.mjs";
|
|
33
34
|
import { Tracking } from "./api/resources/tracking/client/Client.mjs";
|
|
34
35
|
export class ChrtClient {
|
|
35
36
|
constructor(_options = {}) {
|
|
36
37
|
this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
|
|
37
38
|
"X-Fern-Language": "JavaScript",
|
|
38
39
|
"X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
|
|
39
|
-
"X-Fern-SDK-Version": "1.
|
|
40
|
-
"User-Agent": "@chrt-inc/typescript-sdk/1.
|
|
40
|
+
"X-Fern-SDK-Version": "1.322.0",
|
|
41
|
+
"User-Agent": "@chrt-inc/typescript-sdk/1.322.0",
|
|
41
42
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
42
43
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
43
44
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -102,6 +103,10 @@ export class ChrtClient {
|
|
|
102
103
|
var _a;
|
|
103
104
|
return ((_a = this._cargos) !== null && _a !== void 0 ? _a : (this._cargos = new Cargos(this._options)));
|
|
104
105
|
}
|
|
106
|
+
get taskArtifacts() {
|
|
107
|
+
var _a;
|
|
108
|
+
return ((_a = this._taskArtifacts) !== null && _a !== void 0 ? _a : (this._taskArtifacts = new TaskArtifacts(this._options)));
|
|
109
|
+
}
|
|
105
110
|
get offChrtShipperOrg() {
|
|
106
111
|
var _a;
|
|
107
112
|
return ((_a = this._offChrtShipperOrg) !== null && _a !== void 0 ? _a : (this._offChrtShipperOrg = new OffChrtShipperOrg(this._options)));
|
|
@@ -118,6 +123,10 @@ export class ChrtClient {
|
|
|
118
123
|
var _a;
|
|
119
124
|
return ((_a = this._taskGroups) !== null && _a !== void 0 ? _a : (this._taskGroups = new TaskGroups(this._options)));
|
|
120
125
|
}
|
|
126
|
+
get tasks() {
|
|
127
|
+
var _a;
|
|
128
|
+
return ((_a = this._tasks) !== null && _a !== void 0 ? _a : (this._tasks = new Tasks(this._options)));
|
|
129
|
+
}
|
|
121
130
|
get shipperContactInfo() {
|
|
122
131
|
var _a;
|
|
123
132
|
return ((_a = this._shipperContactInfo) !== null && _a !== void 0 ? _a : (this._shipperContactInfo = new ShipperContactInfo(this._options)));
|
|
@@ -146,10 +155,6 @@ export class ChrtClient {
|
|
|
146
155
|
var _a;
|
|
147
156
|
return ((_a = this._orgInfoForConnections) !== null && _a !== void 0 ? _a : (this._orgInfoForConnections = new OrgInfoForConnections(this._options)));
|
|
148
157
|
}
|
|
149
|
-
get taskArtifacts() {
|
|
150
|
-
var _a;
|
|
151
|
-
return ((_a = this._taskArtifacts) !== null && _a !== void 0 ? _a : (this._taskArtifacts = new TaskArtifacts(this._options)));
|
|
152
|
-
}
|
|
153
158
|
get tracking() {
|
|
154
159
|
var _a;
|
|
155
160
|
return ((_a = this._tracking) !== null && _a !== void 0 ? _a : (this._tracking = new Tracking(this._options)));
|