@chrt-inc/typescript-sdk 1.319.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 -0
- package/dist/cjs/Client.js +38 -28
- package/dist/cjs/api/resources/cargos/client/Client.d.ts +48 -0
- package/dist/cjs/api/resources/cargos/client/Client.js +131 -0
- package/dist/cjs/api/resources/connections/client/Client.d.ts +4 -4
- package/dist/cjs/api/resources/connections/client/Client.js +4 -4
- package/dist/cjs/api/resources/courierPayDriverPayouts/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/courierPayDriverPayouts/client/Client.js +2 -2
- package/dist/cjs/api/resources/courierPayDriverRateSheets/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/courierPayDriverRateSheets/client/Client.js +3 -3
- package/dist/cjs/api/resources/courierPayDriverStatements/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/courierPayDriverStatements/client/Client.js +2 -2
- package/dist/cjs/api/resources/dev/client/Client.d.ts +4 -4
- package/dist/cjs/api/resources/dev/client/Client.js +4 -4
- 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 +3 -0
- package/dist/cjs/api/resources/index.js +4 -1
- package/dist/cjs/api/resources/notifications/resources/courier/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/notifications/resources/courier/client/Client.js +2 -2
- package/dist/cjs/api/resources/notifications/resources/shipper/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/notifications/resources/shipper/client/Client.js +2 -2
- package/dist/cjs/api/resources/offChrtShipperOrg/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/offChrtShipperOrg/client/Client.js +3 -3
- 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/orgInfoForConnections/resources/courier/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/orgInfoForConnections/resources/courier/client/Client.js +1 -1
- package/dist/cjs/api/resources/orgInfoForConnections/resources/forwarder/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/orgInfoForConnections/resources/forwarder/client/Client.js +1 -1
- package/dist/cjs/api/resources/orgInfoForConnections/resources/shipper/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/orgInfoForConnections/resources/shipper/client/Client.js +1 -1
- package/dist/cjs/api/resources/orgProfiles/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/orgProfiles/client/Client.js +1 -1
- package/dist/cjs/api/resources/orgs/client/Client.d.ts +5 -5
- package/dist/cjs/api/resources/orgs/client/Client.js +5 -5
- package/dist/cjs/api/resources/shipperContactInfo/client/Client.d.ts +36 -23
- package/dist/cjs/api/resources/shipperContactInfo/client/Client.js +94 -35
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/client/Client.js +2 -2
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/courier/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/courier/client/Client.js +1 -1
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/shipper/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/shipper/client/Client.js +3 -3
- package/dist/cjs/api/resources/taskArtifactNotifications/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/taskArtifactNotifications/client/Client.js +2 -2
- package/dist/cjs/api/resources/taskArtifacts/client/Client.d.ts +37 -24
- package/dist/cjs/api/resources/taskArtifacts/client/Client.js +96 -40
- 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 -2
- package/dist/cjs/api/resources/taskArtifacts/resources/index.d.ts +2 -3
- package/dist/cjs/api/resources/taskArtifacts/resources/index.js +3 -7
- 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/taskArtifacts/resources/s3ObjectMetadata/index.d.ts +1 -0
- package/dist/cjs/api/resources/taskArtifacts/resources/s3ObjectMetadata/index.js +17 -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/{taskArtifacts/resources/images/client/requests/BodyPostTaskArtifactsUploadImageV1OortTaskArtifactsImagesUploadV1TaskArtifactIdPost.d.ts → taskGroups/client/requests/BodyPostAddS3ObjectV1OortTaskGroupsAddS3ObjectV1TaskGroupIdPost.d.ts} +2 -2
- 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/UpdateDriverReq.d.ts +13 -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/taskGroups/resources/s3Object/client/Client.d.ts +46 -0
- package/dist/cjs/api/resources/taskGroups/resources/s3Object/client/Client.js +127 -0
- 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.d.ts +1 -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/{taskArtifacts/resources/images → taskGroups/resources/taskGroupId}/client/Client.js +24 -87
- package/dist/cjs/api/resources/taskGroups/resources/taskGroupId/client/index.d.ts +1 -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/requests/AddTaskToGroupReq.d.ts +21 -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/resources/tracking/resources/devices/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/tracking/resources/devices/client/Client.js +3 -3
- package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/Client.js +3 -3
- package/dist/cjs/api/resources/users/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/users/client/Client.js +1 -1
- 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 +3 -3
- package/dist/cjs/api/types/ChrtGroundCourierTaskActionEnum1.js +2 -2
- 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/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.d.mts +6 -0
- package/dist/esm/Client.mjs +12 -2
- package/dist/esm/api/resources/cargos/client/Client.d.mts +48 -0
- package/dist/esm/api/resources/cargos/client/Client.mjs +94 -0
- package/dist/esm/api/resources/cargos/client/index.d.mts +1 -0
- package/dist/esm/api/resources/cargos/client/index.mjs +1 -0
- package/dist/esm/api/resources/connections/client/Client.d.mts +4 -4
- package/dist/esm/api/resources/connections/client/Client.mjs +4 -4
- package/dist/esm/api/resources/courierPayDriverPayouts/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/courierPayDriverPayouts/client/Client.mjs +2 -2
- package/dist/esm/api/resources/courierPayDriverRateSheets/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/courierPayDriverRateSheets/client/Client.mjs +3 -3
- package/dist/esm/api/resources/courierPayDriverStatements/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/courierPayDriverStatements/client/Client.mjs +2 -2
- package/dist/esm/api/resources/dev/client/Client.d.mts +4 -4
- package/dist/esm/api/resources/dev/client/Client.mjs +4 -4
- 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 +3 -0
- package/dist/esm/api/resources/index.mjs +3 -0
- package/dist/esm/api/resources/notifications/resources/courier/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/notifications/resources/courier/client/Client.mjs +2 -2
- package/dist/esm/api/resources/notifications/resources/shipper/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/notifications/resources/shipper/client/Client.mjs +2 -2
- package/dist/esm/api/resources/offChrtShipperOrg/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/offChrtShipperOrg/client/Client.mjs +3 -3
- 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/orgInfoForConnections/resources/courier/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/orgInfoForConnections/resources/courier/client/Client.mjs +1 -1
- package/dist/esm/api/resources/orgInfoForConnections/resources/forwarder/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/orgInfoForConnections/resources/forwarder/client/Client.mjs +1 -1
- package/dist/esm/api/resources/orgInfoForConnections/resources/shipper/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/orgInfoForConnections/resources/shipper/client/Client.mjs +1 -1
- package/dist/esm/api/resources/orgProfiles/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/orgProfiles/client/Client.mjs +1 -1
- package/dist/esm/api/resources/orgs/client/Client.d.mts +5 -5
- package/dist/esm/api/resources/orgs/client/Client.mjs +5 -5
- package/dist/esm/api/resources/shipperContactInfo/client/Client.d.mts +36 -23
- package/dist/esm/api/resources/shipperContactInfo/client/Client.mjs +94 -35
- package/dist/esm/api/resources/shipperPayCourierLineItemGroups/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/shipperPayCourierLineItemGroups/client/Client.mjs +2 -2
- package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/courier/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/courier/client/Client.mjs +1 -1
- package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/shipper/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/shipper/client/Client.mjs +3 -3
- package/dist/esm/api/resources/taskArtifactNotifications/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/taskArtifactNotifications/client/Client.mjs +2 -2
- package/dist/esm/api/resources/taskArtifacts/client/Client.d.mts +37 -24
- package/dist/esm/api/resources/taskArtifacts/client/Client.mjs +96 -40
- 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 -2
- package/dist/esm/api/resources/taskArtifacts/resources/index.d.mts +2 -3
- package/dist/esm/api/resources/taskArtifacts/resources/index.mjs +2 -3
- 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/taskArtifacts/resources/s3ObjectMetadata/index.d.mts +1 -0
- package/dist/esm/api/resources/taskArtifacts/resources/s3ObjectMetadata/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/{taskArtifacts/resources/images/client/requests/BodyPostTaskArtifactsUploadImageV1OortTaskArtifactsImagesUploadV1TaskArtifactIdPost.d.mts → taskGroups/client/requests/BodyPostAddS3ObjectV1OortTaskGroupsAddS3ObjectV1TaskGroupIdPost.d.mts} +2 -2
- 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/UpdateDriverReq.d.mts +13 -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/taskGroups/resources/s3Object/client/Client.d.mts +46 -0
- package/dist/esm/api/resources/taskGroups/resources/s3Object/client/Client.mjs +90 -0
- 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/{taskArtifacts/resources/images → taskGroups/resources/taskGroupId}/client/Client.mjs +22 -85
- 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/requests/AddTaskToGroupReq.d.mts +21 -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/resources/tracking/resources/devices/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/tracking/resources/devices/client/Client.mjs +3 -3
- package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/Client.mjs +3 -3
- package/dist/esm/api/resources/users/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/users/client/Client.mjs +1 -1
- 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 +3 -3
- package/dist/esm/api/types/ChrtGroundCourierTaskActionEnum1.mjs +2 -2
- 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/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +1163 -267
- 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/client/requests/TaskArtifactAddToTaskReq.d.ts +0 -19
- package/dist/cjs/api/resources/taskArtifacts/client/requests/TaskArtifactUpdateCommentsReq.d.ts +0 -14
- package/dist/cjs/api/resources/taskArtifacts/resources/images/client/Client.d.ts +0 -70
- package/dist/cjs/api/resources/taskArtifacts/resources/images/client/requests/index.d.ts +0 -1
- 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/client/requests/TaskArtifactAddToTaskReq.d.mts +0 -19
- package/dist/esm/api/resources/taskArtifacts/client/requests/TaskArtifactUpdateCommentsReq.d.mts +0 -14
- package/dist/esm/api/resources/taskArtifacts/resources/images/client/Client.d.mts +0 -70
- package/dist/esm/api/resources/taskArtifacts/resources/images/client/requests/index.d.mts +0 -1
- 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/{taskArtifacts/resources/blurhash → cargos}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{taskArtifacts/resources/blurhash → cargos}/client/index.js +0 -0
- /package/dist/cjs/api/resources/{taskArtifacts/resources/blurhash → cargos}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{taskArtifacts/resources/blurhash → cargos}/index.js +0 -0
- /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/{esm/api/resources/taskArtifacts/resources/blurhash/client/index.d.mts → cjs/api/resources/taskArtifacts/resources/s3Object/client/index.d.ts} +0 -0
- /package/dist/cjs/api/resources/taskArtifacts/resources/{images/client/requests → s3Object/client}/index.js +0 -0
- /package/dist/cjs/api/resources/taskArtifacts/resources/{images → s3Object}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/taskArtifacts/resources/{images → s3Object}/index.js +0 -0
- /package/dist/{esm/api/resources/taskArtifacts/resources/blurhash/client/index.mjs → cjs/api/resources/taskArtifacts/resources/s3ObjectMetadata/client/index.d.ts} +0 -0
- /package/dist/cjs/api/resources/{taskArtifacts/client/requests/TaskArtifactAddToTaskReq.js → taskGroups/client/requests/AddMessageReq.js} +0 -0
- /package/dist/cjs/api/resources/{taskArtifacts/client/requests/TaskArtifactUpdateCommentsReq.js → taskGroups/client/requests/BodyPostAddS3ObjectV1OortTaskGroupsAddS3ObjectV1TaskGroupIdPost.js} +0 -0
- /package/dist/cjs/api/resources/{taskArtifacts/resources/images/client/requests/BodyPostTaskArtifactsUploadImageV1OortTaskArtifactsImagesUploadV1TaskArtifactIdPost.js → taskGroups/client/requests/UpdateCourierOrgReq.js} +0 -0
- /package/dist/cjs/api/resources/taskGroups/client/requests/{UpdateTaskGroupCourierOrgReq.js → UpdateDriverReq.js} +0 -0
- /package/dist/{esm/api/resources/taskArtifacts/resources/images/client/requests/index.mjs → cjs/api/resources/taskGroups/resources/s3Object/client/index.d.ts} +0 -0
- /package/dist/cjs/api/resources/{taskArtifacts/resources/images → tasks}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{taskArtifacts/resources/images → tasks}/client/index.js +0 -0
- /package/dist/cjs/api/resources/{taskGroups/client/requests/UpdateTaskGroupDriverReq.js → tasks/client/requests/AddTaskToGroupReq.js} +0 -0
- /package/dist/esm/api/resources/{taskArtifacts/resources/blurhash → cargos}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{taskArtifacts/resources/blurhash → cargos}/index.mjs +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 → s3Object}/index.d.mts +0 -0
- /package/dist/esm/api/resources/taskArtifacts/resources/{images → s3Object}/index.mjs +0 -0
- /package/dist/esm/api/resources/{taskArtifacts/client/requests/TaskArtifactAddToTaskReq.mjs → taskGroups/client/requests/AddMessageReq.mjs} +0 -0
- /package/dist/esm/api/resources/{taskArtifacts/client/requests/TaskArtifactUpdateCommentsReq.mjs → taskGroups/client/requests/BodyPostAddS3ObjectV1OortTaskGroupsAddS3ObjectV1TaskGroupIdPost.mjs} +0 -0
- /package/dist/esm/api/resources/{taskArtifacts/resources/images/client/requests/BodyPostTaskArtifactsUploadImageV1OortTaskArtifactsImagesUploadV1TaskArtifactIdPost.mjs → taskGroups/client/requests/UpdateCourierOrgReq.mjs} +0 -0
- /package/dist/esm/api/resources/taskGroups/client/requests/{UpdateTaskGroupCourierOrgReq.mjs → UpdateDriverReq.mjs} +0 -0
- /package/dist/esm/api/resources/{taskArtifacts/resources/images → tasks}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{taskArtifacts/resources/images → tasks}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/{taskGroups/client/requests/UpdateTaskGroupDriverReq.mjs → tasks/client/requests/AddTaskToGroupReq.mjs} +0 -0
|
@@ -16,8 +16,10 @@ export * as orgProfiles from "./orgProfiles/index.mjs";
|
|
|
16
16
|
export * as dev from "./dev/index.mjs";
|
|
17
17
|
export * as taskArtifactNotifications from "./taskArtifactNotifications/index.mjs";
|
|
18
18
|
export * as drivers from "./drivers/index.mjs";
|
|
19
|
+
export * as cargos from "./cargos/index.mjs";
|
|
19
20
|
export * as taskArtifacts from "./taskArtifacts/index.mjs";
|
|
20
21
|
export * as offChrtShipperOrg from "./offChrtShipperOrg/index.mjs";
|
|
22
|
+
export * as tasks from "./tasks/index.mjs";
|
|
21
23
|
export * as shipperContactInfo from "./shipperContactInfo/index.mjs";
|
|
22
24
|
export * as orgs from "./orgs/index.mjs";
|
|
23
25
|
export * as root from "./root/index.mjs";
|
|
@@ -39,6 +41,7 @@ export * from "./taskArtifacts/client/requests/index.mjs";
|
|
|
39
41
|
export * from "./offChrtShipperOrg/client/requests/index.mjs";
|
|
40
42
|
export * from "./orderDrafts/client/requests/index.mjs";
|
|
41
43
|
export * from "./taskGroups/client/requests/index.mjs";
|
|
44
|
+
export * from "./tasks/client/requests/index.mjs";
|
|
42
45
|
export * from "./shipperContactInfo/client/requests/index.mjs";
|
|
43
46
|
export * from "./orgs/client/requests/index.mjs";
|
|
44
47
|
export * from "./utils/client/requests/index.mjs";
|
|
@@ -16,8 +16,10 @@ export * as orgProfiles from "./orgProfiles/index.mjs";
|
|
|
16
16
|
export * as dev from "./dev/index.mjs";
|
|
17
17
|
export * as taskArtifactNotifications from "./taskArtifactNotifications/index.mjs";
|
|
18
18
|
export * as drivers from "./drivers/index.mjs";
|
|
19
|
+
export * as cargos from "./cargos/index.mjs";
|
|
19
20
|
export * as taskArtifacts from "./taskArtifacts/index.mjs";
|
|
20
21
|
export * as offChrtShipperOrg from "./offChrtShipperOrg/index.mjs";
|
|
22
|
+
export * as tasks from "./tasks/index.mjs";
|
|
21
23
|
export * as shipperContactInfo from "./shipperContactInfo/index.mjs";
|
|
22
24
|
export * as orgs from "./orgs/index.mjs";
|
|
23
25
|
export * as root from "./root/index.mjs";
|
|
@@ -39,6 +41,7 @@ export * from "./taskArtifacts/client/requests/index.mjs";
|
|
|
39
41
|
export * from "./offChrtShipperOrg/client/requests/index.mjs";
|
|
40
42
|
export * from "./orderDrafts/client/requests/index.mjs";
|
|
41
43
|
export * from "./taskGroups/client/requests/index.mjs";
|
|
44
|
+
export * from "./tasks/client/requests/index.mjs";
|
|
42
45
|
export * from "./shipperContactInfo/client/requests/index.mjs";
|
|
43
46
|
export * from "./orgs/client/requests/index.mjs";
|
|
44
47
|
export * from "./utils/client/requests/index.mjs";
|
|
@@ -31,7 +31,7 @@ export declare class Courier {
|
|
|
31
31
|
protected readonly _options: Courier.Options;
|
|
32
32
|
constructor(_options?: Courier.Options);
|
|
33
33
|
/**
|
|
34
|
-
* Retrieves notification preferences for the
|
|
34
|
+
* Retrieves notification preferences for the caller's courier organization. | () -> (CourierNotificationPreferences1)
|
|
35
35
|
*
|
|
36
36
|
* @param {Courier.RequestOptions} requestOptions - Request-specific configuration.
|
|
37
37
|
*
|
|
@@ -41,7 +41,7 @@ export declare class Courier {
|
|
|
41
41
|
getPreferencesV1(requestOptions?: Courier.RequestOptions): core.HttpResponsePromise<Chrt.CourierNotificationPreferences1>;
|
|
42
42
|
private __getPreferencesV1;
|
|
43
43
|
/**
|
|
44
|
-
* Creates or updates notification preferences for the
|
|
44
|
+
* Creates or updates notification preferences for the caller's courier organization. | (CourierNotificationPreferencesClientCreate1) -> (PydanticObjectId)
|
|
45
45
|
*
|
|
46
46
|
* @param {Chrt.notifications.CourierNotificationPreferencesClientCreate1} request
|
|
47
47
|
* @param {Courier.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -20,7 +20,7 @@ export class Courier {
|
|
|
20
20
|
this._options = _options;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
* Retrieves notification preferences for the
|
|
23
|
+
* Retrieves notification preferences for the caller's courier organization. | () -> (CourierNotificationPreferences1)
|
|
24
24
|
*
|
|
25
25
|
* @param {Courier.RequestOptions} requestOptions - Request-specific configuration.
|
|
26
26
|
*
|
|
@@ -71,7 +71,7 @@ export class Courier {
|
|
|
71
71
|
});
|
|
72
72
|
}
|
|
73
73
|
/**
|
|
74
|
-
* Creates or updates notification preferences for the
|
|
74
|
+
* Creates or updates notification preferences for the caller's courier organization. | (CourierNotificationPreferencesClientCreate1) -> (PydanticObjectId)
|
|
75
75
|
*
|
|
76
76
|
* @param {Chrt.notifications.CourierNotificationPreferencesClientCreate1} request
|
|
77
77
|
* @param {Courier.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -31,7 +31,7 @@ export declare class Shipper {
|
|
|
31
31
|
protected readonly _options: Shipper.Options;
|
|
32
32
|
constructor(_options?: Shipper.Options);
|
|
33
33
|
/**
|
|
34
|
-
* Retrieves notification preferences for the
|
|
34
|
+
* Retrieves notification preferences for the caller's shipper organization. | () -> (ShipperNotificationPreferences1)
|
|
35
35
|
*
|
|
36
36
|
* @param {Shipper.RequestOptions} requestOptions - Request-specific configuration.
|
|
37
37
|
*
|
|
@@ -41,7 +41,7 @@ export declare class Shipper {
|
|
|
41
41
|
getPreferencesV1(requestOptions?: Shipper.RequestOptions): core.HttpResponsePromise<Chrt.ShipperNotificationPreferences1>;
|
|
42
42
|
private __getPreferencesV1;
|
|
43
43
|
/**
|
|
44
|
-
* Creates or updates notification preferences for the
|
|
44
|
+
* Creates or updates notification preferences for the caller's shipper organization. | (ShipperNotificationPreferencesClientCreate1) -> (PydanticObjectId)
|
|
45
45
|
*
|
|
46
46
|
* @param {Chrt.notifications.ShipperNotificationPreferencesClientCreate1} request
|
|
47
47
|
* @param {Shipper.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -20,7 +20,7 @@ export class Shipper {
|
|
|
20
20
|
this._options = _options;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
* Retrieves notification preferences for the
|
|
23
|
+
* Retrieves notification preferences for the caller's shipper organization. | () -> (ShipperNotificationPreferences1)
|
|
24
24
|
*
|
|
25
25
|
* @param {Shipper.RequestOptions} requestOptions - Request-specific configuration.
|
|
26
26
|
*
|
|
@@ -71,7 +71,7 @@ export class Shipper {
|
|
|
71
71
|
});
|
|
72
72
|
}
|
|
73
73
|
/**
|
|
74
|
-
* Creates or updates notification preferences for the
|
|
74
|
+
* Creates or updates notification preferences for the caller's shipper organization. | (ShipperNotificationPreferencesClientCreate1) -> (PydanticObjectId)
|
|
75
75
|
*
|
|
76
76
|
* @param {Chrt.notifications.ShipperNotificationPreferencesClientCreate1} request
|
|
77
77
|
* @param {Shipper.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -47,7 +47,7 @@ export declare class OffChrtShipperOrg {
|
|
|
47
47
|
createV1(request: Chrt.OffChrtShipperOrgClientCreate1, requestOptions?: OffChrtShipperOrg.RequestOptions): core.HttpResponsePromise<string>;
|
|
48
48
|
private __createV1;
|
|
49
49
|
/**
|
|
50
|
-
* Lists all off-platform shipper organizations created by the
|
|
50
|
+
* Lists all off-platform shipper organizations created by the caller's organization. | () -> (list[OffChrtShipperOrg1])
|
|
51
51
|
*
|
|
52
52
|
* @param {OffChrtShipperOrg.RequestOptions} requestOptions - Request-specific configuration.
|
|
53
53
|
*
|
|
@@ -70,7 +70,7 @@ export declare class OffChrtShipperOrg {
|
|
|
70
70
|
getByIdV1(id: string, requestOptions?: OffChrtShipperOrg.RequestOptions): core.HttpResponsePromise<Chrt.OffChrtShipperOrg1>;
|
|
71
71
|
private __getByIdV1;
|
|
72
72
|
/**
|
|
73
|
-
* Deletes off-platform shipper organization owned by the
|
|
73
|
+
* Deletes off-platform shipper organization owned by the caller's organization. | () -> (bool)
|
|
74
74
|
*
|
|
75
75
|
* @param {string} id
|
|
76
76
|
* @param {OffChrtShipperOrg.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -83,7 +83,7 @@ export declare class OffChrtShipperOrg {
|
|
|
83
83
|
deleteByIdV1(id: string, requestOptions?: OffChrtShipperOrg.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
84
84
|
private __deleteByIdV1;
|
|
85
85
|
/**
|
|
86
|
-
* Updates existing off-platform shipper organization owned by the
|
|
86
|
+
* Updates existing off-platform shipper organization owned by the caller's organization. | (OffChrtShipperOrgClientUpdate1) -> (bool)
|
|
87
87
|
*
|
|
88
88
|
* @param {string} id
|
|
89
89
|
* @param {Chrt.OffChrtShipperOrgClientUpdate1} request
|
|
@@ -85,7 +85,7 @@ export class OffChrtShipperOrg {
|
|
|
85
85
|
});
|
|
86
86
|
}
|
|
87
87
|
/**
|
|
88
|
-
* Lists all off-platform shipper organizations created by the
|
|
88
|
+
* Lists all off-platform shipper organizations created by the caller's organization. | () -> (list[OffChrtShipperOrg1])
|
|
89
89
|
*
|
|
90
90
|
* @param {OffChrtShipperOrg.RequestOptions} requestOptions - Request-specific configuration.
|
|
91
91
|
*
|
|
@@ -195,7 +195,7 @@ export class OffChrtShipperOrg {
|
|
|
195
195
|
});
|
|
196
196
|
}
|
|
197
197
|
/**
|
|
198
|
-
* Deletes off-platform shipper organization owned by the
|
|
198
|
+
* Deletes off-platform shipper organization owned by the caller's organization. | () -> (bool)
|
|
199
199
|
*
|
|
200
200
|
* @param {string} id
|
|
201
201
|
* @param {OffChrtShipperOrg.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -254,7 +254,7 @@ export class OffChrtShipperOrg {
|
|
|
254
254
|
});
|
|
255
255
|
}
|
|
256
256
|
/**
|
|
257
|
-
* Updates existing off-platform shipper organization owned by the
|
|
257
|
+
* Updates existing off-platform shipper organization owned by the caller's organization. | (OffChrtShipperOrgClientUpdate1) -> (bool)
|
|
258
258
|
*
|
|
259
259
|
* @param {string} id
|
|
260
260
|
* @param {Chrt.OffChrtShipperOrgClientUpdate1} request
|
|
@@ -45,5 +45,18 @@ export declare class Orders {
|
|
|
45
45
|
*/
|
|
46
46
|
stageV1(orderId: string, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
47
47
|
private __stageV1;
|
|
48
|
+
/**
|
|
49
|
+
* Cancels an order and all related task groups and tasks in a transaction. | authz_personas=[lig_org_operators] | () -> (bool)
|
|
50
|
+
*
|
|
51
|
+
* @param {string} orderId
|
|
52
|
+
* @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
|
|
53
|
+
*
|
|
54
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* await client.orders.cancelV1("order_id")
|
|
58
|
+
*/
|
|
59
|
+
cancelV1(orderId: string, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
60
|
+
private __cancelV1;
|
|
48
61
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
49
62
|
}
|
|
@@ -83,6 +83,65 @@ export class Orders {
|
|
|
83
83
|
}
|
|
84
84
|
});
|
|
85
85
|
}
|
|
86
|
+
/**
|
|
87
|
+
* Cancels an order and all related task groups and tasks in a transaction. | authz_personas=[lig_org_operators] | () -> (bool)
|
|
88
|
+
*
|
|
89
|
+
* @param {string} orderId
|
|
90
|
+
* @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
|
|
91
|
+
*
|
|
92
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
93
|
+
*
|
|
94
|
+
* @example
|
|
95
|
+
* await client.orders.cancelV1("order_id")
|
|
96
|
+
*/
|
|
97
|
+
cancelV1(orderId, requestOptions) {
|
|
98
|
+
return core.HttpResponsePromise.fromPromise(this.__cancelV1(orderId, requestOptions));
|
|
99
|
+
}
|
|
100
|
+
__cancelV1(orderId, requestOptions) {
|
|
101
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
102
|
+
var _a, _b, _c, _d;
|
|
103
|
+
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
|
+
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/orders/cancel/v1/${encodeURIComponent(orderId)}`),
|
|
106
|
+
method: "PUT",
|
|
107
|
+
headers: _headers,
|
|
108
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
109
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
110
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
111
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
112
|
+
});
|
|
113
|
+
if (_response.ok) {
|
|
114
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
115
|
+
}
|
|
116
|
+
if (_response.error.reason === "status-code") {
|
|
117
|
+
switch (_response.error.statusCode) {
|
|
118
|
+
case 422:
|
|
119
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
120
|
+
default:
|
|
121
|
+
throw new errors.ChrtError({
|
|
122
|
+
statusCode: _response.error.statusCode,
|
|
123
|
+
body: _response.error.body,
|
|
124
|
+
rawResponse: _response.rawResponse,
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
switch (_response.error.reason) {
|
|
129
|
+
case "non-json":
|
|
130
|
+
throw new errors.ChrtError({
|
|
131
|
+
statusCode: _response.error.statusCode,
|
|
132
|
+
body: _response.error.rawBody,
|
|
133
|
+
rawResponse: _response.rawResponse,
|
|
134
|
+
});
|
|
135
|
+
case "timeout":
|
|
136
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PUT /oort/orders/cancel/v1/{order_id}.");
|
|
137
|
+
case "unknown":
|
|
138
|
+
throw new errors.ChrtError({
|
|
139
|
+
message: _response.error.errorMessage,
|
|
140
|
+
rawResponse: _response.rawResponse,
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
});
|
|
144
|
+
}
|
|
86
145
|
_getAuthorizationHeader() {
|
|
87
146
|
return __awaiter(this, void 0, void 0, function* () {
|
|
88
147
|
const bearer = yield core.Supplier.get(this._options.token);
|
|
@@ -31,7 +31,7 @@ export declare class Courier {
|
|
|
31
31
|
protected readonly _options: Courier.Options;
|
|
32
32
|
constructor(_options?: Courier.Options);
|
|
33
33
|
/**
|
|
34
|
-
* Retrieves courier organization connection information for the
|
|
34
|
+
* Retrieves courier organization connection information for the caller's organization. | () -> (CourierOrgInfoForConnections1)
|
|
35
35
|
*
|
|
36
36
|
* @param {Courier.RequestOptions} requestOptions - Request-specific configuration.
|
|
37
37
|
*
|
|
@@ -20,7 +20,7 @@ export class Courier {
|
|
|
20
20
|
this._options = _options;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
* Retrieves courier organization connection information for the
|
|
23
|
+
* Retrieves courier organization connection information for the caller's organization. | () -> (CourierOrgInfoForConnections1)
|
|
24
24
|
*
|
|
25
25
|
* @param {Courier.RequestOptions} requestOptions - Request-specific configuration.
|
|
26
26
|
*
|
package/dist/esm/api/resources/orgInfoForConnections/resources/forwarder/client/Client.d.mts
CHANGED
|
@@ -31,7 +31,7 @@ export declare class Forwarder {
|
|
|
31
31
|
protected readonly _options: Forwarder.Options;
|
|
32
32
|
constructor(_options?: Forwarder.Options);
|
|
33
33
|
/**
|
|
34
|
-
* Retrieves forwarder organization connection information for the
|
|
34
|
+
* Retrieves forwarder organization connection information for the caller's organization. | () -> (ForwarderOrgInfoForConnections1)
|
|
35
35
|
*
|
|
36
36
|
* @param {Forwarder.RequestOptions} requestOptions - Request-specific configuration.
|
|
37
37
|
*
|
|
@@ -20,7 +20,7 @@ export class Forwarder {
|
|
|
20
20
|
this._options = _options;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
* Retrieves forwarder organization connection information for the
|
|
23
|
+
* Retrieves forwarder organization connection information for the caller's organization. | () -> (ForwarderOrgInfoForConnections1)
|
|
24
24
|
*
|
|
25
25
|
* @param {Forwarder.RequestOptions} requestOptions - Request-specific configuration.
|
|
26
26
|
*
|
|
@@ -31,7 +31,7 @@ export declare class Shipper {
|
|
|
31
31
|
protected readonly _options: Shipper.Options;
|
|
32
32
|
constructor(_options?: Shipper.Options);
|
|
33
33
|
/**
|
|
34
|
-
* Retrieves shipper organization connection information for the
|
|
34
|
+
* Retrieves shipper organization connection information for the caller's organization. | () -> (ShipperOrgInfoForConnections1)
|
|
35
35
|
*
|
|
36
36
|
* @param {Shipper.RequestOptions} requestOptions - Request-specific configuration.
|
|
37
37
|
*
|
|
@@ -20,7 +20,7 @@ export class Shipper {
|
|
|
20
20
|
this._options = _options;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
* Retrieves shipper organization connection information for the
|
|
23
|
+
* Retrieves shipper organization connection information for the caller's organization. | () -> (ShipperOrgInfoForConnections1)
|
|
24
24
|
*
|
|
25
25
|
* @param {Shipper.RequestOptions} requestOptions - Request-specific configuration.
|
|
26
26
|
*
|
|
@@ -31,7 +31,7 @@ export declare class OrgProfiles {
|
|
|
31
31
|
protected readonly _options: OrgProfiles.Options;
|
|
32
32
|
constructor(_options?: OrgProfiles.Options);
|
|
33
33
|
/**
|
|
34
|
-
* Retrieves the courier or forwarder organization profile for the
|
|
34
|
+
* Retrieves the courier or forwarder organization profile for the caller's organization. | () -> (OrgProfileRes1)
|
|
35
35
|
*
|
|
36
36
|
* @param {OrgProfiles.RequestOptions} requestOptions - Request-specific configuration.
|
|
37
37
|
*
|
|
@@ -20,7 +20,7 @@ export class OrgProfiles {
|
|
|
20
20
|
this._options = _options;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
* Retrieves the courier or forwarder organization profile for the
|
|
23
|
+
* Retrieves the courier or forwarder organization profile for the caller's organization. | () -> (OrgProfileRes1)
|
|
24
24
|
*
|
|
25
25
|
* @param {OrgProfiles.RequestOptions} requestOptions - Request-specific configuration.
|
|
26
26
|
*
|
|
@@ -41,7 +41,7 @@ export declare class Orgs {
|
|
|
41
41
|
getInfoV1(requestOptions?: Orgs.RequestOptions): core.HttpResponsePromise<Record<string, unknown>>;
|
|
42
42
|
private __getInfoV1;
|
|
43
43
|
/**
|
|
44
|
-
* Lists all members of the
|
|
44
|
+
* Lists all members of the caller's organization with their roles and details. | () -> (list[OrgMemberDetails])
|
|
45
45
|
*
|
|
46
46
|
* @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
|
|
47
47
|
*
|
|
@@ -51,7 +51,7 @@ export declare class Orgs {
|
|
|
51
51
|
listMembersV1(requestOptions?: Orgs.RequestOptions): core.HttpResponsePromise<Chrt.OrgMemberDetails[]>;
|
|
52
52
|
private __listMembersV1;
|
|
53
53
|
/**
|
|
54
|
-
* Retrieves public organization data for the
|
|
54
|
+
* Retrieves public organization data for the caller's organization. | () -> (OrgPublicData1)
|
|
55
55
|
*
|
|
56
56
|
* @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
|
|
57
57
|
*
|
|
@@ -61,7 +61,7 @@ export declare class Orgs {
|
|
|
61
61
|
getOrgPublicDataV1(requestOptions?: Orgs.RequestOptions): core.HttpResponsePromise<Chrt.OrgPublicData1>;
|
|
62
62
|
private __getOrgPublicDataV1;
|
|
63
63
|
/**
|
|
64
|
-
* Creates org_public_data and org_private_data documents for the
|
|
64
|
+
* Creates org_public_data and org_private_data documents for the caller's organization using org_type from JWT. | (CreateOrgPublicDataReq) -> (CreateOrgPublicDataRes)
|
|
65
65
|
*
|
|
66
66
|
* @param {Chrt.CreateOrgPublicDataReq} request
|
|
67
67
|
* @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -74,7 +74,7 @@ export declare class Orgs {
|
|
|
74
74
|
createOrgPublicDataV1(request?: Chrt.CreateOrgPublicDataReq, requestOptions?: Orgs.RequestOptions): core.HttpResponsePromise<Chrt.CreateOrgPublicDataRes>;
|
|
75
75
|
private __createOrgPublicDataV1;
|
|
76
76
|
/**
|
|
77
|
-
* Updates the handle and/or company_name for the
|
|
77
|
+
* Updates the handle and/or company_name for the caller's organization. | (UpdateOrgPublicDataReq) -> (bool)
|
|
78
78
|
*
|
|
79
79
|
* @param {Chrt.UpdateOrgPublicDataReq} request
|
|
80
80
|
* @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -128,7 +128,7 @@ export declare class Orgs {
|
|
|
128
128
|
setOrgTypeV1(request: Chrt.SetOrgTypeReq, requestOptions?: Orgs.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
129
129
|
private __setOrgTypeV1;
|
|
130
130
|
/**
|
|
131
|
-
* Retrieves the Stripe Connect account ID for the
|
|
131
|
+
* Retrieves the Stripe Connect account ID for the caller's organization. Returns 404 if not set. | () -> (str)
|
|
132
132
|
*
|
|
133
133
|
* @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
|
|
134
134
|
*
|
|
@@ -71,7 +71,7 @@ export class Orgs {
|
|
|
71
71
|
});
|
|
72
72
|
}
|
|
73
73
|
/**
|
|
74
|
-
* Lists all members of the
|
|
74
|
+
* Lists all members of the caller's organization with their roles and details. | () -> (list[OrgMemberDetails])
|
|
75
75
|
*
|
|
76
76
|
* @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
|
|
77
77
|
*
|
|
@@ -122,7 +122,7 @@ export class Orgs {
|
|
|
122
122
|
});
|
|
123
123
|
}
|
|
124
124
|
/**
|
|
125
|
-
* Retrieves public organization data for the
|
|
125
|
+
* Retrieves public organization data for the caller's organization. | () -> (OrgPublicData1)
|
|
126
126
|
*
|
|
127
127
|
* @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
|
|
128
128
|
*
|
|
@@ -173,7 +173,7 @@ export class Orgs {
|
|
|
173
173
|
});
|
|
174
174
|
}
|
|
175
175
|
/**
|
|
176
|
-
* Creates org_public_data and org_private_data documents for the
|
|
176
|
+
* Creates org_public_data and org_private_data documents for the caller's organization using org_type from JWT. | (CreateOrgPublicDataReq) -> (CreateOrgPublicDataRes)
|
|
177
177
|
*
|
|
178
178
|
* @param {Chrt.CreateOrgPublicDataReq} request
|
|
179
179
|
* @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -235,7 +235,7 @@ export class Orgs {
|
|
|
235
235
|
});
|
|
236
236
|
}
|
|
237
237
|
/**
|
|
238
|
-
* Updates the handle and/or company_name for the
|
|
238
|
+
* Updates the handle and/or company_name for the caller's organization. | (UpdateOrgPublicDataReq) -> (bool)
|
|
239
239
|
*
|
|
240
240
|
* @param {Chrt.UpdateOrgPublicDataReq} request
|
|
241
241
|
* @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -479,7 +479,7 @@ export class Orgs {
|
|
|
479
479
|
});
|
|
480
480
|
}
|
|
481
481
|
/**
|
|
482
|
-
* Retrieves the Stripe Connect account ID for the
|
|
482
|
+
* Retrieves the Stripe Connect account ID for the caller's organization. Returns 404 if not set. | () -> (str)
|
|
483
483
|
*
|
|
484
484
|
* @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
|
|
485
485
|
*
|
|
@@ -31,25 +31,25 @@ export declare class ShipperContactInfo {
|
|
|
31
31
|
protected readonly _options: ShipperContactInfo.Options;
|
|
32
32
|
constructor(_options?: ShipperContactInfo.Options);
|
|
33
33
|
/**
|
|
34
|
-
* Retrieves the
|
|
34
|
+
* Retrieves the shipper contact information associated with the caller's ID. | () -> (ShipperContact1)
|
|
35
35
|
*
|
|
36
36
|
* @param {ShipperContactInfo.RequestOptions} requestOptions - Request-specific configuration.
|
|
37
37
|
*
|
|
38
38
|
* @example
|
|
39
|
-
* await client.shipperContactInfo.
|
|
39
|
+
* await client.shipperContactInfo.getCallerV1()
|
|
40
40
|
*/
|
|
41
|
-
|
|
42
|
-
private
|
|
41
|
+
getCallerV1(requestOptions?: ShipperContactInfo.RequestOptions): core.HttpResponsePromise<Chrt.ShipperContact1>;
|
|
42
|
+
private __getCallerV1;
|
|
43
43
|
/**
|
|
44
|
-
* Lists all shipper contacts
|
|
44
|
+
* Lists all shipper contacts for the caller's organization. | () -> (list[ShipperContact1])
|
|
45
45
|
*
|
|
46
46
|
* @param {ShipperContactInfo.RequestOptions} requestOptions - Request-specific configuration.
|
|
47
47
|
*
|
|
48
48
|
* @example
|
|
49
|
-
* await client.shipperContactInfo.
|
|
49
|
+
* await client.shipperContactInfo.listV1()
|
|
50
50
|
*/
|
|
51
|
-
|
|
52
|
-
private
|
|
51
|
+
listV1(requestOptions?: ShipperContactInfo.RequestOptions): core.HttpResponsePromise<Chrt.ShipperContact1[]>;
|
|
52
|
+
private __listV1;
|
|
53
53
|
/**
|
|
54
54
|
* Lists all shipper contacts accessible to the courier organization for a specific on-platform shipper. | () -> (list[ShipperContact1])
|
|
55
55
|
*
|
|
@@ -59,12 +59,25 @@ export declare class ShipperContactInfo {
|
|
|
59
59
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
60
60
|
*
|
|
61
61
|
* @example
|
|
62
|
-
* await client.shipperContactInfo.
|
|
62
|
+
* await client.shipperContactInfo.listCourierContactsV1("shipper_org_id")
|
|
63
63
|
*/
|
|
64
|
-
|
|
65
|
-
private
|
|
64
|
+
listCourierContactsV1(shipperOrgId: string, requestOptions?: ShipperContactInfo.RequestOptions): core.HttpResponsePromise<Chrt.ShipperContact1[]>;
|
|
65
|
+
private __listCourierContactsV1;
|
|
66
66
|
/**
|
|
67
|
-
* Lists all shipper contacts for a specific
|
|
67
|
+
* Lists all shipper contacts accessible to the forwarder organization for a specific on-platform shipper. | () -> (list[ShipperContact1])
|
|
68
|
+
*
|
|
69
|
+
* @param {string} shipperOrgId
|
|
70
|
+
* @param {ShipperContactInfo.RequestOptions} requestOptions - Request-specific configuration.
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
73
|
+
*
|
|
74
|
+
* @example
|
|
75
|
+
* await client.shipperContactInfo.listForwarderContactsV1("shipper_org_id")
|
|
76
|
+
*/
|
|
77
|
+
listForwarderContactsV1(shipperOrgId: string, requestOptions?: ShipperContactInfo.RequestOptions): core.HttpResponsePromise<Chrt.ShipperContact1[]>;
|
|
78
|
+
private __listForwarderContactsV1;
|
|
79
|
+
/**
|
|
80
|
+
* Lists all shipper contacts for a specific off-platform shipper. | () -> (list[ShipperContact1])
|
|
68
81
|
*
|
|
69
82
|
* @param {string} offChrtShipperOrgId
|
|
70
83
|
* @param {ShipperContactInfo.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -72,10 +85,10 @@ export declare class ShipperContactInfo {
|
|
|
72
85
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
73
86
|
*
|
|
74
87
|
* @example
|
|
75
|
-
* await client.shipperContactInfo.
|
|
88
|
+
* await client.shipperContactInfo.listOffPlatformContactsV1("off_chrt_shipper_org_id")
|
|
76
89
|
*/
|
|
77
|
-
|
|
78
|
-
private
|
|
90
|
+
listOffPlatformContactsV1(offChrtShipperOrgId: string, requestOptions?: ShipperContactInfo.RequestOptions): core.HttpResponsePromise<Chrt.ShipperContact1[]>;
|
|
91
|
+
private __listOffPlatformContactsV1;
|
|
79
92
|
/**
|
|
80
93
|
* Retrieves a specific shipper contact by ID if authorized to access it. | () -> (ShipperContact1)
|
|
81
94
|
*
|
|
@@ -85,10 +98,10 @@ export declare class ShipperContactInfo {
|
|
|
85
98
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
86
99
|
*
|
|
87
100
|
* @example
|
|
88
|
-
* await client.shipperContactInfo.
|
|
101
|
+
* await client.shipperContactInfo.getV1("id")
|
|
89
102
|
*/
|
|
90
|
-
|
|
91
|
-
private
|
|
103
|
+
getV1(id: string, requestOptions?: ShipperContactInfo.RequestOptions): core.HttpResponsePromise<Chrt.ShipperContact1>;
|
|
104
|
+
private __getV1;
|
|
92
105
|
/**
|
|
93
106
|
* Creates contact information for an on-platform shipper organization or user. | (ShipperContactClientCreate1) -> (PydanticObjectId)
|
|
94
107
|
*
|
|
@@ -120,7 +133,7 @@ export declare class ShipperContactInfo {
|
|
|
120
133
|
createOffPlatformV1(request: Chrt.ShipperContactClientCreate1, requestOptions?: ShipperContactInfo.RequestOptions): core.HttpResponsePromise<string>;
|
|
121
134
|
private __createOffPlatformV1;
|
|
122
135
|
/**
|
|
123
|
-
* Updates existing shipper contact information owned by the
|
|
136
|
+
* Updates existing shipper contact information owned by the caller's organization. | (ShipperContactClientUpdate1) -> (bool)
|
|
124
137
|
*
|
|
125
138
|
* @param {string} shipperContactInfoId
|
|
126
139
|
* @param {Chrt.ShipperContactClientUpdate1} request
|
|
@@ -134,7 +147,7 @@ export declare class ShipperContactInfo {
|
|
|
134
147
|
updateV1(shipperContactInfoId: string, request?: Chrt.ShipperContactClientUpdate1, requestOptions?: ShipperContactInfo.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
135
148
|
private __updateV1;
|
|
136
149
|
/**
|
|
137
|
-
* Deletes shipper contact information owned by the
|
|
150
|
+
* Deletes shipper contact information owned by the caller's organization. | () -> (bool)
|
|
138
151
|
*
|
|
139
152
|
* @param {string} id
|
|
140
153
|
* @param {ShipperContactInfo.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -142,9 +155,9 @@ export declare class ShipperContactInfo {
|
|
|
142
155
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
143
156
|
*
|
|
144
157
|
* @example
|
|
145
|
-
* await client.shipperContactInfo.
|
|
158
|
+
* await client.shipperContactInfo.deleteV1("id")
|
|
146
159
|
*/
|
|
147
|
-
|
|
148
|
-
private
|
|
160
|
+
deleteV1(id: string, requestOptions?: ShipperContactInfo.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
161
|
+
private __deleteV1;
|
|
149
162
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
150
163
|
}
|