@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
|
@@ -56,22 +56,22 @@ class ShipperContactInfo {
|
|
|
56
56
|
this._options = _options;
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
|
-
* Retrieves the
|
|
59
|
+
* Retrieves the shipper contact information associated with the caller's ID. | () -> (ShipperContact1)
|
|
60
60
|
*
|
|
61
61
|
* @param {ShipperContactInfo.RequestOptions} requestOptions - Request-specific configuration.
|
|
62
62
|
*
|
|
63
63
|
* @example
|
|
64
|
-
* await client.shipperContactInfo.
|
|
64
|
+
* await client.shipperContactInfo.getCallerV1()
|
|
65
65
|
*/
|
|
66
|
-
|
|
67
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
66
|
+
getCallerV1(requestOptions) {
|
|
67
|
+
return core.HttpResponsePromise.fromPromise(this.__getCallerV1(requestOptions));
|
|
68
68
|
}
|
|
69
|
-
|
|
69
|
+
__getCallerV1(requestOptions) {
|
|
70
70
|
return __awaiter(this, void 0, void 0, function* () {
|
|
71
71
|
var _a, _b, _c, _d;
|
|
72
72
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
73
73
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
74
|
-
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/shipper_contact_info/
|
|
74
|
+
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/shipper_contact_info/self/v1"),
|
|
75
75
|
method: "GET",
|
|
76
76
|
headers: _headers,
|
|
77
77
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -97,7 +97,7 @@ class ShipperContactInfo {
|
|
|
97
97
|
rawResponse: _response.rawResponse,
|
|
98
98
|
});
|
|
99
99
|
case "timeout":
|
|
100
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/shipper_contact_info/
|
|
100
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/shipper_contact_info/self/v1.");
|
|
101
101
|
case "unknown":
|
|
102
102
|
throw new errors.ChrtError({
|
|
103
103
|
message: _response.error.errorMessage,
|
|
@@ -107,22 +107,22 @@ class ShipperContactInfo {
|
|
|
107
107
|
});
|
|
108
108
|
}
|
|
109
109
|
/**
|
|
110
|
-
* Lists all shipper contacts
|
|
110
|
+
* Lists all shipper contacts for the caller's organization. | () -> (list[ShipperContact1])
|
|
111
111
|
*
|
|
112
112
|
* @param {ShipperContactInfo.RequestOptions} requestOptions - Request-specific configuration.
|
|
113
113
|
*
|
|
114
114
|
* @example
|
|
115
|
-
* await client.shipperContactInfo.
|
|
115
|
+
* await client.shipperContactInfo.listV1()
|
|
116
116
|
*/
|
|
117
|
-
|
|
118
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
117
|
+
listV1(requestOptions) {
|
|
118
|
+
return core.HttpResponsePromise.fromPromise(this.__listV1(requestOptions));
|
|
119
119
|
}
|
|
120
|
-
|
|
120
|
+
__listV1(requestOptions) {
|
|
121
121
|
return __awaiter(this, void 0, void 0, function* () {
|
|
122
122
|
var _a, _b, _c, _d;
|
|
123
123
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
124
124
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
125
|
-
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/shipper_contact_info/list/
|
|
125
|
+
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/shipper_contact_info/list/v1"),
|
|
126
126
|
method: "GET",
|
|
127
127
|
headers: _headers,
|
|
128
128
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -148,7 +148,7 @@ class ShipperContactInfo {
|
|
|
148
148
|
rawResponse: _response.rawResponse,
|
|
149
149
|
});
|
|
150
150
|
case "timeout":
|
|
151
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/shipper_contact_info/list/
|
|
151
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/shipper_contact_info/list/v1.");
|
|
152
152
|
case "unknown":
|
|
153
153
|
throw new errors.ChrtError({
|
|
154
154
|
message: _response.error.errorMessage,
|
|
@@ -166,12 +166,12 @@ class ShipperContactInfo {
|
|
|
166
166
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
167
167
|
*
|
|
168
168
|
* @example
|
|
169
|
-
* await client.shipperContactInfo.
|
|
169
|
+
* await client.shipperContactInfo.listCourierContactsV1("shipper_org_id")
|
|
170
170
|
*/
|
|
171
|
-
|
|
172
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
171
|
+
listCourierContactsV1(shipperOrgId, requestOptions) {
|
|
172
|
+
return core.HttpResponsePromise.fromPromise(this.__listCourierContactsV1(shipperOrgId, requestOptions));
|
|
173
173
|
}
|
|
174
|
-
|
|
174
|
+
__listCourierContactsV1(shipperOrgId, requestOptions) {
|
|
175
175
|
return __awaiter(this, void 0, void 0, function* () {
|
|
176
176
|
var _a, _b, _c, _d;
|
|
177
177
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
@@ -217,7 +217,66 @@ class ShipperContactInfo {
|
|
|
217
217
|
});
|
|
218
218
|
}
|
|
219
219
|
/**
|
|
220
|
-
* Lists all shipper contacts for a specific
|
|
220
|
+
* Lists all shipper contacts accessible to the forwarder organization for a specific on-platform shipper. | () -> (list[ShipperContact1])
|
|
221
|
+
*
|
|
222
|
+
* @param {string} shipperOrgId
|
|
223
|
+
* @param {ShipperContactInfo.RequestOptions} requestOptions - Request-specific configuration.
|
|
224
|
+
*
|
|
225
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
226
|
+
*
|
|
227
|
+
* @example
|
|
228
|
+
* await client.shipperContactInfo.listForwarderContactsV1("shipper_org_id")
|
|
229
|
+
*/
|
|
230
|
+
listForwarderContactsV1(shipperOrgId, requestOptions) {
|
|
231
|
+
return core.HttpResponsePromise.fromPromise(this.__listForwarderContactsV1(shipperOrgId, requestOptions));
|
|
232
|
+
}
|
|
233
|
+
__listForwarderContactsV1(shipperOrgId, requestOptions) {
|
|
234
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
235
|
+
var _a, _b, _c, _d;
|
|
236
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
237
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
238
|
+
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/shipper_contact_info/forwarder_contacts/list/v1/${encodeURIComponent(shipperOrgId)}`),
|
|
239
|
+
method: "GET",
|
|
240
|
+
headers: _headers,
|
|
241
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
242
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
243
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
244
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
245
|
+
});
|
|
246
|
+
if (_response.ok) {
|
|
247
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
248
|
+
}
|
|
249
|
+
if (_response.error.reason === "status-code") {
|
|
250
|
+
switch (_response.error.statusCode) {
|
|
251
|
+
case 422:
|
|
252
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
253
|
+
default:
|
|
254
|
+
throw new errors.ChrtError({
|
|
255
|
+
statusCode: _response.error.statusCode,
|
|
256
|
+
body: _response.error.body,
|
|
257
|
+
rawResponse: _response.rawResponse,
|
|
258
|
+
});
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
switch (_response.error.reason) {
|
|
262
|
+
case "non-json":
|
|
263
|
+
throw new errors.ChrtError({
|
|
264
|
+
statusCode: _response.error.statusCode,
|
|
265
|
+
body: _response.error.rawBody,
|
|
266
|
+
rawResponse: _response.rawResponse,
|
|
267
|
+
});
|
|
268
|
+
case "timeout":
|
|
269
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/shipper_contact_info/forwarder_contacts/list/v1/{shipper_org_id}.");
|
|
270
|
+
case "unknown":
|
|
271
|
+
throw new errors.ChrtError({
|
|
272
|
+
message: _response.error.errorMessage,
|
|
273
|
+
rawResponse: _response.rawResponse,
|
|
274
|
+
});
|
|
275
|
+
}
|
|
276
|
+
});
|
|
277
|
+
}
|
|
278
|
+
/**
|
|
279
|
+
* Lists all shipper contacts for a specific off-platform shipper. | () -> (list[ShipperContact1])
|
|
221
280
|
*
|
|
222
281
|
* @param {string} offChrtShipperOrgId
|
|
223
282
|
* @param {ShipperContactInfo.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -225,17 +284,17 @@ class ShipperContactInfo {
|
|
|
225
284
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
226
285
|
*
|
|
227
286
|
* @example
|
|
228
|
-
* await client.shipperContactInfo.
|
|
287
|
+
* await client.shipperContactInfo.listOffPlatformContactsV1("off_chrt_shipper_org_id")
|
|
229
288
|
*/
|
|
230
|
-
|
|
231
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
289
|
+
listOffPlatformContactsV1(offChrtShipperOrgId, requestOptions) {
|
|
290
|
+
return core.HttpResponsePromise.fromPromise(this.__listOffPlatformContactsV1(offChrtShipperOrgId, requestOptions));
|
|
232
291
|
}
|
|
233
|
-
|
|
292
|
+
__listOffPlatformContactsV1(offChrtShipperOrgId, requestOptions) {
|
|
234
293
|
return __awaiter(this, void 0, void 0, function* () {
|
|
235
294
|
var _a, _b, _c, _d;
|
|
236
295
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
237
296
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
238
|
-
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/shipper_contact_info/list/v1/${encodeURIComponent(offChrtShipperOrgId)}`),
|
|
297
|
+
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/shipper_contact_info/off_platform_contacts/list/v1/${encodeURIComponent(offChrtShipperOrgId)}`),
|
|
239
298
|
method: "GET",
|
|
240
299
|
headers: _headers,
|
|
241
300
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -266,7 +325,7 @@ class ShipperContactInfo {
|
|
|
266
325
|
rawResponse: _response.rawResponse,
|
|
267
326
|
});
|
|
268
327
|
case "timeout":
|
|
269
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/shipper_contact_info/list/v1/{off_chrt_shipper_org_id}.");
|
|
328
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/shipper_contact_info/off_platform_contacts/list/v1/{off_chrt_shipper_org_id}.");
|
|
270
329
|
case "unknown":
|
|
271
330
|
throw new errors.ChrtError({
|
|
272
331
|
message: _response.error.errorMessage,
|
|
@@ -284,12 +343,12 @@ class ShipperContactInfo {
|
|
|
284
343
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
285
344
|
*
|
|
286
345
|
* @example
|
|
287
|
-
* await client.shipperContactInfo.
|
|
346
|
+
* await client.shipperContactInfo.getV1("id")
|
|
288
347
|
*/
|
|
289
|
-
|
|
290
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
348
|
+
getV1(id, requestOptions) {
|
|
349
|
+
return core.HttpResponsePromise.fromPromise(this.__getV1(id, requestOptions));
|
|
291
350
|
}
|
|
292
|
-
|
|
351
|
+
__getV1(id, requestOptions) {
|
|
293
352
|
return __awaiter(this, void 0, void 0, function* () {
|
|
294
353
|
var _a, _b, _c, _d;
|
|
295
354
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
@@ -463,7 +522,7 @@ class ShipperContactInfo {
|
|
|
463
522
|
});
|
|
464
523
|
}
|
|
465
524
|
/**
|
|
466
|
-
* Updates existing shipper contact information owned by the
|
|
525
|
+
* Updates existing shipper contact information owned by the caller's organization. | (ShipperContactClientUpdate1) -> (bool)
|
|
467
526
|
*
|
|
468
527
|
* @param {string} shipperContactInfoId
|
|
469
528
|
* @param {Chrt.ShipperContactClientUpdate1} request
|
|
@@ -526,7 +585,7 @@ class ShipperContactInfo {
|
|
|
526
585
|
});
|
|
527
586
|
}
|
|
528
587
|
/**
|
|
529
|
-
* Deletes shipper contact information owned by the
|
|
588
|
+
* Deletes shipper contact information owned by the caller's organization. | () -> (bool)
|
|
530
589
|
*
|
|
531
590
|
* @param {string} id
|
|
532
591
|
* @param {ShipperContactInfo.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -534,12 +593,12 @@ class ShipperContactInfo {
|
|
|
534
593
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
535
594
|
*
|
|
536
595
|
* @example
|
|
537
|
-
* await client.shipperContactInfo.
|
|
596
|
+
* await client.shipperContactInfo.deleteV1("id")
|
|
538
597
|
*/
|
|
539
|
-
|
|
540
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
598
|
+
deleteV1(id, requestOptions) {
|
|
599
|
+
return core.HttpResponsePromise.fromPromise(this.__deleteV1(id, requestOptions));
|
|
541
600
|
}
|
|
542
|
-
|
|
601
|
+
__deleteV1(id, requestOptions) {
|
|
543
602
|
return __awaiter(this, void 0, void 0, function* () {
|
|
544
603
|
var _a, _b, _c, _d;
|
|
545
604
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
@@ -43,7 +43,7 @@ export declare class ShipperPayCourierLineItemGroups {
|
|
|
43
43
|
get addLineItems(): AddLineItems;
|
|
44
44
|
get removeLineItems(): RemoveLineItems;
|
|
45
45
|
/**
|
|
46
|
-
* Retrieves a shipper pay courier line item group by its ID for the
|
|
46
|
+
* Retrieves a shipper pay courier line item group by its ID for the caller's courier organization.
|
|
47
47
|
*
|
|
48
48
|
* @param {string} id
|
|
49
49
|
* @param {ShipperPayCourierLineItemGroups.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -69,7 +69,7 @@ export declare class ShipperPayCourierLineItemGroups {
|
|
|
69
69
|
deleteByIdV1(id: string, requestOptions?: ShipperPayCourierLineItemGroups.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
70
70
|
private __deleteByIdV1;
|
|
71
71
|
/**
|
|
72
|
-
* Retrieves a shipper pay courier line item group by its associated task group ID for the
|
|
72
|
+
* Retrieves a shipper pay courier line item group by its associated task group ID for the caller's courier organization.
|
|
73
73
|
*
|
|
74
74
|
* @param {string} taskGroupId
|
|
75
75
|
* @param {ShipperPayCourierLineItemGroups.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -76,7 +76,7 @@ class ShipperPayCourierLineItemGroups {
|
|
|
76
76
|
return ((_a = this._removeLineItems) !== null && _a !== void 0 ? _a : (this._removeLineItems = new Client_js_4.RemoveLineItems(this._options)));
|
|
77
77
|
}
|
|
78
78
|
/**
|
|
79
|
-
* Retrieves a shipper pay courier line item group by its ID for the
|
|
79
|
+
* Retrieves a shipper pay courier line item group by its ID for the caller's courier organization.
|
|
80
80
|
*
|
|
81
81
|
* @param {string} id
|
|
82
82
|
* @param {ShipperPayCourierLineItemGroups.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -194,7 +194,7 @@ class ShipperPayCourierLineItemGroups {
|
|
|
194
194
|
});
|
|
195
195
|
}
|
|
196
196
|
/**
|
|
197
|
-
* Retrieves a shipper pay courier line item group by its associated task group ID for the
|
|
197
|
+
* Retrieves a shipper pay courier line item group by its associated task group ID for the caller's courier organization.
|
|
198
198
|
*
|
|
199
199
|
* @param {string} taskGroupId
|
|
200
200
|
* @param {ShipperPayCourierLineItemGroups.RequestOptions} requestOptions - Request-specific configuration.
|
package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/courier/client/Client.d.ts
CHANGED
|
@@ -31,7 +31,7 @@ export declare class Courier {
|
|
|
31
31
|
protected readonly _options: Courier.Options;
|
|
32
32
|
constructor(_options?: Courier.Options);
|
|
33
33
|
/**
|
|
34
|
-
* Lists all shipper pay courier line item groups for the
|
|
34
|
+
* Lists all shipper pay courier line item groups for the caller's courier organization.
|
|
35
35
|
*
|
|
36
36
|
* @param {Courier.RequestOptions} requestOptions - Request-specific configuration.
|
|
37
37
|
*
|
package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/courier/client/Client.js
CHANGED
|
@@ -55,7 +55,7 @@ class Courier {
|
|
|
55
55
|
this._options = _options;
|
|
56
56
|
}
|
|
57
57
|
/**
|
|
58
|
-
* Lists all shipper pay courier line item groups for the
|
|
58
|
+
* Lists all shipper pay courier line item groups for the caller's courier organization.
|
|
59
59
|
*
|
|
60
60
|
* @param {Courier.RequestOptions} requestOptions - Request-specific configuration.
|
|
61
61
|
*
|
package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/shipper/client/Client.d.ts
CHANGED
|
@@ -31,7 +31,7 @@ export declare class Shipper {
|
|
|
31
31
|
protected readonly _options: Shipper.Options;
|
|
32
32
|
constructor(_options?: Shipper.Options);
|
|
33
33
|
/**
|
|
34
|
-
* Lists all shipper pay courier line item groups for the
|
|
34
|
+
* Lists all shipper pay courier line item groups for the caller's shipper organization.
|
|
35
35
|
*
|
|
36
36
|
* @param {Shipper.RequestOptions} requestOptions - Request-specific configuration.
|
|
37
37
|
*
|
|
@@ -41,7 +41,7 @@ export declare class Shipper {
|
|
|
41
41
|
listV1(requestOptions?: Shipper.RequestOptions): core.HttpResponsePromise<Chrt.ShipperPayCourierLineItemGroup1[]>;
|
|
42
42
|
private __listV1;
|
|
43
43
|
/**
|
|
44
|
-
* Retrieves a shipper pay courier line item group by its ID for the
|
|
44
|
+
* Retrieves a shipper pay courier line item group by its ID for the caller's shipper organization.
|
|
45
45
|
*
|
|
46
46
|
* @param {string} id
|
|
47
47
|
* @param {Shipper.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -54,7 +54,7 @@ export declare class Shipper {
|
|
|
54
54
|
getByIdV1(id: string, requestOptions?: Shipper.RequestOptions): core.HttpResponsePromise<Chrt.ShipperPayCourierLineItemGroup1>;
|
|
55
55
|
private __getByIdV1;
|
|
56
56
|
/**
|
|
57
|
-
* Retrieves a shipper pay courier line item group by its associated task group ID for the
|
|
57
|
+
* Retrieves a shipper pay courier line item group by its associated task group ID for the caller's shipper organization.
|
|
58
58
|
*
|
|
59
59
|
* @param {string} taskGroupId
|
|
60
60
|
* @param {Shipper.RequestOptions} requestOptions - Request-specific configuration.
|
package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/shipper/client/Client.js
CHANGED
|
@@ -56,7 +56,7 @@ class Shipper {
|
|
|
56
56
|
this._options = _options;
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
|
-
* Lists all shipper pay courier line item groups for the
|
|
59
|
+
* Lists all shipper pay courier line item groups for the caller's shipper organization.
|
|
60
60
|
*
|
|
61
61
|
* @param {Shipper.RequestOptions} requestOptions - Request-specific configuration.
|
|
62
62
|
*
|
|
@@ -110,7 +110,7 @@ class Shipper {
|
|
|
110
110
|
});
|
|
111
111
|
}
|
|
112
112
|
/**
|
|
113
|
-
* Retrieves a shipper pay courier line item group by its ID for the
|
|
113
|
+
* Retrieves a shipper pay courier line item group by its ID for the caller's shipper organization.
|
|
114
114
|
*
|
|
115
115
|
* @param {string} id
|
|
116
116
|
* @param {Shipper.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -169,7 +169,7 @@ class Shipper {
|
|
|
169
169
|
});
|
|
170
170
|
}
|
|
171
171
|
/**
|
|
172
|
-
* Retrieves a shipper pay courier line item group by its associated task group ID for the
|
|
172
|
+
* Retrieves a shipper pay courier line item group by its associated task group ID for the caller's shipper organization.
|
|
173
173
|
*
|
|
174
174
|
* @param {string} taskGroupId
|
|
175
175
|
* @param {Shipper.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -31,7 +31,7 @@ export declare class TaskArtifactNotifications {
|
|
|
31
31
|
protected readonly _options: TaskArtifactNotifications.Options;
|
|
32
32
|
constructor(_options?: TaskArtifactNotifications.Options);
|
|
33
33
|
/**
|
|
34
|
-
* Retrieves task_artifact notification preferences for the
|
|
34
|
+
* Retrieves task_artifact notification preferences for the caller's organization. | () -> (TaskArtifactNotificationPreferences1)
|
|
35
35
|
*
|
|
36
36
|
* @param {TaskArtifactNotifications.RequestOptions} requestOptions - Request-specific configuration.
|
|
37
37
|
*
|
|
@@ -41,7 +41,7 @@ export declare class TaskArtifactNotifications {
|
|
|
41
41
|
getPreferencesV1(requestOptions?: TaskArtifactNotifications.RequestOptions): core.HttpResponsePromise<Chrt.TaskArtifactNotificationPreferences1>;
|
|
42
42
|
private __getPreferencesV1;
|
|
43
43
|
/**
|
|
44
|
-
* Creates or updates task_artifact notification preferences for the
|
|
44
|
+
* Creates or updates task_artifact notification preferences for the caller's organization. | (TaskArtifactNotificationPreferencesClientCreate1) -> (PydanticObjectId)
|
|
45
45
|
*
|
|
46
46
|
* @param {Chrt.TaskArtifactNotificationPreferencesClientCreate1} request
|
|
47
47
|
* @param {TaskArtifactNotifications.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -56,7 +56,7 @@ class TaskArtifactNotifications {
|
|
|
56
56
|
this._options = _options;
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
|
-
* Retrieves task_artifact notification preferences for the
|
|
59
|
+
* Retrieves task_artifact notification preferences for the caller's organization. | () -> (TaskArtifactNotificationPreferences1)
|
|
60
60
|
*
|
|
61
61
|
* @param {TaskArtifactNotifications.RequestOptions} requestOptions - Request-specific configuration.
|
|
62
62
|
*
|
|
@@ -110,7 +110,7 @@ class TaskArtifactNotifications {
|
|
|
110
110
|
});
|
|
111
111
|
}
|
|
112
112
|
/**
|
|
113
|
-
* Creates or updates task_artifact notification preferences for the
|
|
113
|
+
* Creates or updates task_artifact notification preferences for the caller's organization. | (TaskArtifactNotificationPreferencesClientCreate1) -> (PydanticObjectId)
|
|
114
114
|
*
|
|
115
115
|
* @param {Chrt.TaskArtifactNotificationPreferencesClientCreate1} request
|
|
116
116
|
* @param {TaskArtifactNotifications.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
import * as environments from "../../../../environments.js";
|
|
5
5
|
import * as core from "../../../../core/index.js";
|
|
6
6
|
import * as Chrt from "../../../index.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
7
|
+
import { S3ObjectMetadata } from "../resources/s3ObjectMetadata/client/Client.js";
|
|
8
|
+
import { S3Object } from "../resources/s3Object/client/Client.js";
|
|
9
9
|
export declare namespace TaskArtifacts {
|
|
10
10
|
interface Options {
|
|
11
11
|
environment?: core.Supplier<environments.ChrtEnvironment | string>;
|
|
@@ -31,13 +31,33 @@ export declare namespace TaskArtifacts {
|
|
|
31
31
|
}
|
|
32
32
|
export declare class TaskArtifacts {
|
|
33
33
|
protected readonly _options: TaskArtifacts.Options;
|
|
34
|
-
protected
|
|
35
|
-
protected
|
|
34
|
+
protected _s3ObjectMetadata: S3ObjectMetadata | undefined;
|
|
35
|
+
protected _s3Object: S3Object | undefined;
|
|
36
36
|
constructor(_options?: TaskArtifacts.Options);
|
|
37
|
-
get
|
|
38
|
-
get
|
|
37
|
+
get s3ObjectMetadata(): S3ObjectMetadata;
|
|
38
|
+
get s3Object(): S3Object;
|
|
39
39
|
/**
|
|
40
|
-
*
|
|
40
|
+
* Adds a new task artifact to a task. | authz_personas=[courier_driver, courier_org_operators, forwarder_org_operators] | (AddTaskArtifactReq) -> (PydanticObjectId)
|
|
41
|
+
*
|
|
42
|
+
* @param {string} taskId
|
|
43
|
+
* @param {Chrt.AddTaskArtifactReq} request
|
|
44
|
+
* @param {TaskArtifacts.RequestOptions} requestOptions - Request-specific configuration.
|
|
45
|
+
*
|
|
46
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* await client.taskArtifacts.addToTaskV1("task_id", {
|
|
50
|
+
* task_artifact: {
|
|
51
|
+
* schema_version: 1,
|
|
52
|
+
* type: "image"
|
|
53
|
+
* },
|
|
54
|
+
* status: "draft"
|
|
55
|
+
* })
|
|
56
|
+
*/
|
|
57
|
+
addToTaskV1(taskId: string, request: Chrt.AddTaskArtifactReq, requestOptions?: TaskArtifacts.RequestOptions): core.HttpResponsePromise<string>;
|
|
58
|
+
private __addToTaskV1;
|
|
59
|
+
/**
|
|
60
|
+
* Marks a task artifact as COMPLETED. | authz_personas=[courier_driver, courier_org_operators, forwarder_org_operators] | () -> (bool)
|
|
41
61
|
*
|
|
42
62
|
* @param {string} taskArtifactId
|
|
43
63
|
* @param {TaskArtifacts.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -50,37 +70,30 @@ export declare class TaskArtifacts {
|
|
|
50
70
|
completeV1(taskArtifactId: string, requestOptions?: TaskArtifacts.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
51
71
|
private __completeV1;
|
|
52
72
|
/**
|
|
53
|
-
*
|
|
73
|
+
* Marks a task artifact as SKIPPED. | authz_personas=[courier_driver, courier_org_operators, forwarder_org_operators] | () -> (bool)
|
|
54
74
|
*
|
|
55
|
-
* @param {
|
|
75
|
+
* @param {string} taskArtifactId
|
|
56
76
|
* @param {TaskArtifacts.RequestOptions} requestOptions - Request-specific configuration.
|
|
57
77
|
*
|
|
58
78
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
59
79
|
*
|
|
60
80
|
* @example
|
|
61
|
-
* await client.taskArtifacts.
|
|
62
|
-
* task_artifact_id: "task_artifact_id",
|
|
63
|
-
* completor_comments: "completor_comments"
|
|
64
|
-
* })
|
|
81
|
+
* await client.taskArtifacts.skipV1("task_artifact_id")
|
|
65
82
|
*/
|
|
66
|
-
|
|
67
|
-
private
|
|
83
|
+
skipV1(taskArtifactId: string, requestOptions?: TaskArtifacts.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
84
|
+
private __skipV1;
|
|
68
85
|
/**
|
|
69
|
-
*
|
|
86
|
+
* Deletes a task artifact. | authz_personas=[lig_org_operators] | () -> (bool)
|
|
70
87
|
*
|
|
71
|
-
* @param {
|
|
88
|
+
* @param {string} taskArtifactId
|
|
72
89
|
* @param {TaskArtifacts.RequestOptions} requestOptions - Request-specific configuration.
|
|
73
90
|
*
|
|
74
91
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
75
92
|
*
|
|
76
93
|
* @example
|
|
77
|
-
* await client.taskArtifacts.
|
|
78
|
-
* task_id: "task_id",
|
|
79
|
-
* task_artifact_type: "image",
|
|
80
|
-
* task_artifact_is_completed: true
|
|
81
|
-
* })
|
|
94
|
+
* await client.taskArtifacts.deleteV1("task_artifact_id")
|
|
82
95
|
*/
|
|
83
|
-
|
|
84
|
-
private
|
|
96
|
+
deleteV1(taskArtifactId: string, requestOptions?: TaskArtifacts.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
97
|
+
private __deleteV1;
|
|
85
98
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
86
99
|
}
|