@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
|
@@ -15,36 +15,51 @@ import * as core from "../../../../core/index.mjs";
|
|
|
15
15
|
import * as Chrt from "../../../index.mjs";
|
|
16
16
|
import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../core/headers.mjs";
|
|
17
17
|
import * as errors from "../../../../errors/index.mjs";
|
|
18
|
+
import { TaskGroupId } from "../resources/taskGroupId/client/Client.mjs";
|
|
19
|
+
import { S3ObjectMetadata } from "../resources/s3ObjectMetadata/client/Client.mjs";
|
|
20
|
+
import { S3Object } from "../resources/s3Object/client/Client.mjs";
|
|
18
21
|
import { Expanded } from "../resources/expanded/client/Client.mjs";
|
|
19
22
|
export class TaskGroups {
|
|
20
23
|
constructor(_options = {}) {
|
|
21
24
|
this._options = _options;
|
|
22
25
|
}
|
|
26
|
+
get taskGroupId() {
|
|
27
|
+
var _a;
|
|
28
|
+
return ((_a = this._taskGroupId) !== null && _a !== void 0 ? _a : (this._taskGroupId = new TaskGroupId(this._options)));
|
|
29
|
+
}
|
|
30
|
+
get s3ObjectMetadata() {
|
|
31
|
+
var _a;
|
|
32
|
+
return ((_a = this._s3ObjectMetadata) !== null && _a !== void 0 ? _a : (this._s3ObjectMetadata = new S3ObjectMetadata(this._options)));
|
|
33
|
+
}
|
|
34
|
+
get s3Object() {
|
|
35
|
+
var _a;
|
|
36
|
+
return ((_a = this._s3Object) !== null && _a !== void 0 ? _a : (this._s3Object = new S3Object(this._options)));
|
|
37
|
+
}
|
|
23
38
|
get expanded() {
|
|
24
39
|
var _a;
|
|
25
40
|
return ((_a = this._expanded) !== null && _a !== void 0 ? _a : (this._expanded = new Expanded(this._options)));
|
|
26
41
|
}
|
|
27
42
|
/**
|
|
28
|
-
*
|
|
43
|
+
* Starts a task group by transitioning it from STAGED to IN_PROGRESS and syncing related order state. | authz_personas=[courier_driver, lig_org_operators] | () -> (bool)
|
|
29
44
|
*
|
|
30
|
-
* @param {string}
|
|
45
|
+
* @param {string} taskGroupId
|
|
31
46
|
* @param {TaskGroups.RequestOptions} requestOptions - Request-specific configuration.
|
|
32
47
|
*
|
|
33
48
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
34
49
|
*
|
|
35
50
|
* @example
|
|
36
|
-
* await client.taskGroups.
|
|
51
|
+
* await client.taskGroups.startV1("task_group_id")
|
|
37
52
|
*/
|
|
38
|
-
|
|
39
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
53
|
+
startV1(taskGroupId, requestOptions) {
|
|
54
|
+
return core.HttpResponsePromise.fromPromise(this.__startV1(taskGroupId, requestOptions));
|
|
40
55
|
}
|
|
41
|
-
|
|
56
|
+
__startV1(taskGroupId, requestOptions) {
|
|
42
57
|
return __awaiter(this, void 0, void 0, function* () {
|
|
43
58
|
var _a, _b, _c, _d;
|
|
44
59
|
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
45
60
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
46
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `oort/task_groups/
|
|
47
|
-
method: "
|
|
61
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `oort/task_groups/start/v1/${encodeURIComponent(taskGroupId)}`),
|
|
62
|
+
method: "PUT",
|
|
48
63
|
headers: _headers,
|
|
49
64
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
50
65
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -74,7 +89,7 @@ export class TaskGroups {
|
|
|
74
89
|
rawResponse: _response.rawResponse,
|
|
75
90
|
});
|
|
76
91
|
case "timeout":
|
|
77
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
92
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PUT /oort/task_groups/start/v1/{task_group_id}.");
|
|
78
93
|
case "unknown":
|
|
79
94
|
throw new errors.ChrtError({
|
|
80
95
|
message: _response.error.errorMessage,
|
|
@@ -84,28 +99,34 @@ export class TaskGroups {
|
|
|
84
99
|
});
|
|
85
100
|
}
|
|
86
101
|
/**
|
|
87
|
-
*
|
|
102
|
+
* Sets the ordering of tasks within a task group. Requires complete list of task IDs in desired order. Completed tasks must be before staged tasks. | authz_personas=[lig_org_operators] | (SetTaskOrderingReq) -> (bool)
|
|
88
103
|
*
|
|
89
|
-
* @param {string}
|
|
104
|
+
* @param {string} taskGroupId
|
|
105
|
+
* @param {Chrt.SetTaskOrderingReq} request
|
|
90
106
|
* @param {TaskGroups.RequestOptions} requestOptions - Request-specific configuration.
|
|
91
107
|
*
|
|
92
108
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
93
109
|
*
|
|
94
110
|
* @example
|
|
95
|
-
* await client.taskGroups.
|
|
111
|
+
* await client.taskGroups.setTaskOrderingV1("task_group_id", {
|
|
112
|
+
* task_ids: ["task_ids"]
|
|
113
|
+
* })
|
|
96
114
|
*/
|
|
97
|
-
|
|
98
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
115
|
+
setTaskOrderingV1(taskGroupId, request, requestOptions) {
|
|
116
|
+
return core.HttpResponsePromise.fromPromise(this.__setTaskOrderingV1(taskGroupId, request, requestOptions));
|
|
99
117
|
}
|
|
100
|
-
|
|
118
|
+
__setTaskOrderingV1(taskGroupId, request, requestOptions) {
|
|
101
119
|
return __awaiter(this, void 0, void 0, function* () {
|
|
102
120
|
var _a, _b, _c, _d;
|
|
103
121
|
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
122
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
105
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `oort/task_groups/
|
|
106
|
-
method: "
|
|
123
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `oort/task_groups/set_task_ordering/v1/${encodeURIComponent(taskGroupId)}`),
|
|
124
|
+
method: "PUT",
|
|
107
125
|
headers: _headers,
|
|
126
|
+
contentType: "application/json",
|
|
108
127
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
128
|
+
requestType: "json",
|
|
129
|
+
body: request,
|
|
109
130
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
110
131
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
111
132
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -133,7 +154,7 @@ export class TaskGroups {
|
|
|
133
154
|
rawResponse: _response.rawResponse,
|
|
134
155
|
});
|
|
135
156
|
case "timeout":
|
|
136
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
157
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PUT /oort/task_groups/set_task_ordering/v1/{task_group_id}.");
|
|
137
158
|
case "unknown":
|
|
138
159
|
throw new errors.ChrtError({
|
|
139
160
|
message: _response.error.errorMessage,
|
|
@@ -143,29 +164,29 @@ export class TaskGroups {
|
|
|
143
164
|
});
|
|
144
165
|
}
|
|
145
166
|
/**
|
|
146
|
-
*
|
|
167
|
+
* Sets the flight number on a task group, plus any TENDER_TO_AIRLINE tasks in the immediately preceding task group and RECOVER_FROM_AIRLINE tasks in the immediately following task group. | authz_personas=[lig_org_operators] | (SetFlightNumberReq) -> (bool)
|
|
147
168
|
*
|
|
148
169
|
* @param {string} taskGroupId
|
|
149
|
-
* @param {Chrt.
|
|
170
|
+
* @param {Chrt.SetFlightNumberReq} request
|
|
150
171
|
* @param {TaskGroups.RequestOptions} requestOptions - Request-specific configuration.
|
|
151
172
|
*
|
|
152
173
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
153
174
|
*
|
|
154
175
|
* @example
|
|
155
|
-
* await client.taskGroups.
|
|
156
|
-
*
|
|
176
|
+
* await client.taskGroups.setFlightNumberV1("task_group_id", {
|
|
177
|
+
* flight_number: "flight_number"
|
|
157
178
|
* })
|
|
158
179
|
*/
|
|
159
|
-
|
|
160
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
180
|
+
setFlightNumberV1(taskGroupId, request, requestOptions) {
|
|
181
|
+
return core.HttpResponsePromise.fromPromise(this.__setFlightNumberV1(taskGroupId, request, requestOptions));
|
|
161
182
|
}
|
|
162
|
-
|
|
183
|
+
__setFlightNumberV1(taskGroupId, request, requestOptions) {
|
|
163
184
|
return __awaiter(this, void 0, void 0, function* () {
|
|
164
185
|
var _a, _b, _c, _d;
|
|
165
186
|
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
166
187
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
167
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `oort/task_groups/
|
|
168
|
-
method: "
|
|
188
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `oort/task_groups/set_flight_number/v1/${encodeURIComponent(taskGroupId)}`),
|
|
189
|
+
method: "PATCH",
|
|
169
190
|
headers: _headers,
|
|
170
191
|
contentType: "application/json",
|
|
171
192
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -198,7 +219,7 @@ export class TaskGroups {
|
|
|
198
219
|
rawResponse: _response.rawResponse,
|
|
199
220
|
});
|
|
200
221
|
case "timeout":
|
|
201
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
222
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /oort/task_groups/set_flight_number/v1/{task_group_id}.");
|
|
202
223
|
case "unknown":
|
|
203
224
|
throw new errors.ChrtError({
|
|
204
225
|
message: _response.error.errorMessage,
|
|
@@ -208,29 +229,29 @@ export class TaskGroups {
|
|
|
208
229
|
});
|
|
209
230
|
}
|
|
210
231
|
/**
|
|
211
|
-
* Updates the
|
|
232
|
+
* Updates the driver assigned to a task group. | authz_personas=[courier_org_operators] | (UpdateDriverReq) -> (bool)
|
|
212
233
|
*
|
|
213
234
|
* @param {string} taskGroupId
|
|
214
|
-
* @param {Chrt.
|
|
235
|
+
* @param {Chrt.UpdateDriverReq} request
|
|
215
236
|
* @param {TaskGroups.RequestOptions} requestOptions - Request-specific configuration.
|
|
216
237
|
*
|
|
217
238
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
218
239
|
*
|
|
219
240
|
* @example
|
|
220
|
-
* await client.taskGroups.
|
|
221
|
-
*
|
|
241
|
+
* await client.taskGroups.updateDriverV1("task_group_id", {
|
|
242
|
+
* driver_id: "driver_id"
|
|
222
243
|
* })
|
|
223
244
|
*/
|
|
224
|
-
|
|
225
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
245
|
+
updateDriverV1(taskGroupId, request, requestOptions) {
|
|
246
|
+
return core.HttpResponsePromise.fromPromise(this.__updateDriverV1(taskGroupId, request, requestOptions));
|
|
226
247
|
}
|
|
227
|
-
|
|
248
|
+
__updateDriverV1(taskGroupId, request, requestOptions) {
|
|
228
249
|
return __awaiter(this, void 0, void 0, function* () {
|
|
229
250
|
var _a, _b, _c, _d;
|
|
230
251
|
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
231
252
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
232
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `oort/task_groups/
|
|
233
|
-
method: "
|
|
253
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `oort/task_groups/update_driver/v1/${encodeURIComponent(taskGroupId)}`),
|
|
254
|
+
method: "PATCH",
|
|
234
255
|
headers: _headers,
|
|
235
256
|
contentType: "application/json",
|
|
236
257
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -263,7 +284,7 @@ export class TaskGroups {
|
|
|
263
284
|
rawResponse: _response.rawResponse,
|
|
264
285
|
});
|
|
265
286
|
case "timeout":
|
|
266
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
287
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /oort/task_groups/update_driver/v1/{task_group_id}.");
|
|
267
288
|
case "unknown":
|
|
268
289
|
throw new errors.ChrtError({
|
|
269
290
|
message: _response.error.errorMessage,
|
|
@@ -273,27 +294,88 @@ export class TaskGroups {
|
|
|
273
294
|
});
|
|
274
295
|
}
|
|
275
296
|
/**
|
|
276
|
-
*
|
|
297
|
+
* Removes the driver from a task group (sets driver_id to null). | authz_personas=[courier_org_operators, courier_driver] | () -> (bool)
|
|
277
298
|
*
|
|
278
299
|
* @param {string} taskGroupId
|
|
279
|
-
* @param {Chrt.UpdateTaskGroupDriverReq} request
|
|
280
300
|
* @param {TaskGroups.RequestOptions} requestOptions - Request-specific configuration.
|
|
281
301
|
*
|
|
282
302
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
283
303
|
*
|
|
284
304
|
* @example
|
|
285
|
-
* await client.taskGroups.
|
|
305
|
+
* await client.taskGroups.removeDriverV1("task_group_id")
|
|
286
306
|
*/
|
|
287
|
-
|
|
288
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
307
|
+
removeDriverV1(taskGroupId, requestOptions) {
|
|
308
|
+
return core.HttpResponsePromise.fromPromise(this.__removeDriverV1(taskGroupId, requestOptions));
|
|
289
309
|
}
|
|
290
|
-
|
|
291
|
-
return __awaiter(this,
|
|
310
|
+
__removeDriverV1(taskGroupId, requestOptions) {
|
|
311
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
292
312
|
var _a, _b, _c, _d;
|
|
293
313
|
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
294
314
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
295
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `oort/task_groups/
|
|
296
|
-
method: "
|
|
315
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `oort/task_groups/remove_driver/v1/${encodeURIComponent(taskGroupId)}`),
|
|
316
|
+
method: "PATCH",
|
|
317
|
+
headers: _headers,
|
|
318
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
319
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
320
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
321
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
322
|
+
});
|
|
323
|
+
if (_response.ok) {
|
|
324
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
325
|
+
}
|
|
326
|
+
if (_response.error.reason === "status-code") {
|
|
327
|
+
switch (_response.error.statusCode) {
|
|
328
|
+
case 422:
|
|
329
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
330
|
+
default:
|
|
331
|
+
throw new errors.ChrtError({
|
|
332
|
+
statusCode: _response.error.statusCode,
|
|
333
|
+
body: _response.error.body,
|
|
334
|
+
rawResponse: _response.rawResponse,
|
|
335
|
+
});
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
switch (_response.error.reason) {
|
|
339
|
+
case "non-json":
|
|
340
|
+
throw new errors.ChrtError({
|
|
341
|
+
statusCode: _response.error.statusCode,
|
|
342
|
+
body: _response.error.rawBody,
|
|
343
|
+
rawResponse: _response.rawResponse,
|
|
344
|
+
});
|
|
345
|
+
case "timeout":
|
|
346
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /oort/task_groups/remove_driver/v1/{task_group_id}.");
|
|
347
|
+
case "unknown":
|
|
348
|
+
throw new errors.ChrtError({
|
|
349
|
+
message: _response.error.errorMessage,
|
|
350
|
+
rawResponse: _response.rawResponse,
|
|
351
|
+
});
|
|
352
|
+
}
|
|
353
|
+
});
|
|
354
|
+
}
|
|
355
|
+
/**
|
|
356
|
+
* Updates the courier organization assigned to a task group. | authz_personas=[forwarder_org_operators] | (UpdateCourierOrgReq) -> (bool)
|
|
357
|
+
*
|
|
358
|
+
* @param {string} taskGroupId
|
|
359
|
+
* @param {Chrt.UpdateCourierOrgReq} request
|
|
360
|
+
* @param {TaskGroups.RequestOptions} requestOptions - Request-specific configuration.
|
|
361
|
+
*
|
|
362
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
363
|
+
*
|
|
364
|
+
* @example
|
|
365
|
+
* await client.taskGroups.updateCourierOrgV1("task_group_id", {
|
|
366
|
+
* courier_org_id: "courier_org_id"
|
|
367
|
+
* })
|
|
368
|
+
*/
|
|
369
|
+
updateCourierOrgV1(taskGroupId, request, requestOptions) {
|
|
370
|
+
return core.HttpResponsePromise.fromPromise(this.__updateCourierOrgV1(taskGroupId, request, requestOptions));
|
|
371
|
+
}
|
|
372
|
+
__updateCourierOrgV1(taskGroupId, request, requestOptions) {
|
|
373
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
374
|
+
var _a, _b, _c, _d;
|
|
375
|
+
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);
|
|
376
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
377
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `oort/task_groups/update_courier_org/v1/${encodeURIComponent(taskGroupId)}`),
|
|
378
|
+
method: "PATCH",
|
|
297
379
|
headers: _headers,
|
|
298
380
|
contentType: "application/json",
|
|
299
381
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -326,7 +408,7 @@ export class TaskGroups {
|
|
|
326
408
|
rawResponse: _response.rawResponse,
|
|
327
409
|
});
|
|
328
410
|
case "timeout":
|
|
329
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
411
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /oort/task_groups/update_courier_org/v1/{task_group_id}.");
|
|
330
412
|
case "unknown":
|
|
331
413
|
throw new errors.ChrtError({
|
|
332
414
|
message: _response.error.errorMessage,
|
|
@@ -336,26 +418,28 @@ export class TaskGroups {
|
|
|
336
418
|
});
|
|
337
419
|
}
|
|
338
420
|
/**
|
|
339
|
-
*
|
|
421
|
+
* Adds a message to a task group's message log. | authz_personas=[courier_driver, courier_org_operators, forwarder_org_operators, shipper_org_operators] | (AddMessageReq) -> (bool)
|
|
340
422
|
*
|
|
341
423
|
* @param {string} taskGroupId
|
|
342
|
-
* @param {Chrt.
|
|
424
|
+
* @param {Chrt.AddMessageReq} request
|
|
343
425
|
* @param {TaskGroups.RequestOptions} requestOptions - Request-specific configuration.
|
|
344
426
|
*
|
|
345
427
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
346
428
|
*
|
|
347
429
|
* @example
|
|
348
|
-
* await client.taskGroups.
|
|
430
|
+
* await client.taskGroups.addMessageV1("task_group_id", {
|
|
431
|
+
* message: "message"
|
|
432
|
+
* })
|
|
349
433
|
*/
|
|
350
|
-
|
|
351
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
434
|
+
addMessageV1(taskGroupId, request, requestOptions) {
|
|
435
|
+
return core.HttpResponsePromise.fromPromise(this.__addMessageV1(taskGroupId, request, requestOptions));
|
|
352
436
|
}
|
|
353
|
-
|
|
354
|
-
return __awaiter(this,
|
|
437
|
+
__addMessageV1(taskGroupId, request, requestOptions) {
|
|
438
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
355
439
|
var _a, _b, _c, _d;
|
|
356
440
|
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
357
441
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
358
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `oort/task_groups/
|
|
442
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `oort/task_groups/add_message/v1/${encodeURIComponent(taskGroupId)}`),
|
|
359
443
|
method: "POST",
|
|
360
444
|
headers: _headers,
|
|
361
445
|
contentType: "application/json",
|
|
@@ -389,7 +473,7 @@ export class TaskGroups {
|
|
|
389
473
|
rawResponse: _response.rawResponse,
|
|
390
474
|
});
|
|
391
475
|
case "timeout":
|
|
392
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/task_groups/
|
|
476
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/task_groups/add_message/v1/{task_group_id}.");
|
|
393
477
|
case "unknown":
|
|
394
478
|
throw new errors.ChrtError({
|
|
395
479
|
message: _response.error.errorMessage,
|
|
@@ -399,26 +483,95 @@ export class TaskGroups {
|
|
|
399
483
|
});
|
|
400
484
|
}
|
|
401
485
|
/**
|
|
402
|
-
*
|
|
486
|
+
* Uploads an image file to a task group with automatic blurhash generation. | authz_personas=[courier_driver, courier_org_operators, forwarder_org_operators, shipper_org_operators] | (UploadFile) -> (bool)
|
|
403
487
|
*
|
|
404
488
|
* @param {string} taskGroupId
|
|
489
|
+
* @param {Chrt.BodyPostAddS3ObjectV1OortTaskGroupsAddS3ObjectV1TaskGroupIdPost} request
|
|
405
490
|
* @param {TaskGroups.RequestOptions} requestOptions - Request-specific configuration.
|
|
406
491
|
*
|
|
407
492
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
408
493
|
*
|
|
409
494
|
* @example
|
|
410
|
-
*
|
|
495
|
+
* import { createReadStream } from "fs";
|
|
496
|
+
* await client.taskGroups.addS3ObjectV1("task_group_id", {
|
|
497
|
+
* image: fs.createReadStream("/path/to/your/file")
|
|
498
|
+
* })
|
|
411
499
|
*/
|
|
412
|
-
|
|
413
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
500
|
+
addS3ObjectV1(taskGroupId, request, requestOptions) {
|
|
501
|
+
return core.HttpResponsePromise.fromPromise(this.__addS3ObjectV1(taskGroupId, request, requestOptions));
|
|
414
502
|
}
|
|
415
|
-
|
|
503
|
+
__addS3ObjectV1(taskGroupId, request, requestOptions) {
|
|
504
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
505
|
+
var _a, _b, _c, _d;
|
|
506
|
+
const _request = yield core.newFormData();
|
|
507
|
+
yield _request.appendFile("image", request.image);
|
|
508
|
+
const _maybeEncodedRequest = yield _request.getRequest();
|
|
509
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders(Object.assign({ Authorization: yield this._getAuthorizationHeader() }, _maybeEncodedRequest.headers)), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
510
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
511
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `oort/task_groups/add_s3_object/v1/${encodeURIComponent(taskGroupId)}`),
|
|
512
|
+
method: "POST",
|
|
513
|
+
headers: _headers,
|
|
514
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
515
|
+
requestType: "file",
|
|
516
|
+
duplex: _maybeEncodedRequest.duplex,
|
|
517
|
+
body: _maybeEncodedRequest.body,
|
|
518
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
519
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
520
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
521
|
+
});
|
|
522
|
+
if (_response.ok) {
|
|
523
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
524
|
+
}
|
|
525
|
+
if (_response.error.reason === "status-code") {
|
|
526
|
+
switch (_response.error.statusCode) {
|
|
527
|
+
case 422:
|
|
528
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
529
|
+
default:
|
|
530
|
+
throw new errors.ChrtError({
|
|
531
|
+
statusCode: _response.error.statusCode,
|
|
532
|
+
body: _response.error.body,
|
|
533
|
+
rawResponse: _response.rawResponse,
|
|
534
|
+
});
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
switch (_response.error.reason) {
|
|
538
|
+
case "non-json":
|
|
539
|
+
throw new errors.ChrtError({
|
|
540
|
+
statusCode: _response.error.statusCode,
|
|
541
|
+
body: _response.error.rawBody,
|
|
542
|
+
rawResponse: _response.rawResponse,
|
|
543
|
+
});
|
|
544
|
+
case "timeout":
|
|
545
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/task_groups/add_s3_object/v1/{task_group_id}.");
|
|
546
|
+
case "unknown":
|
|
547
|
+
throw new errors.ChrtError({
|
|
548
|
+
message: _response.error.errorMessage,
|
|
549
|
+
rawResponse: _response.rawResponse,
|
|
550
|
+
});
|
|
551
|
+
}
|
|
552
|
+
});
|
|
553
|
+
}
|
|
554
|
+
/**
|
|
555
|
+
* Deletes an S3 object metadata and the associated S3 object from a task group. Only the uploader or an operator from the uploading org can delete. | () -> (bool)
|
|
556
|
+
*
|
|
557
|
+
* @param {string} taskGroupS3ObjectMetadataId
|
|
558
|
+
* @param {TaskGroups.RequestOptions} requestOptions - Request-specific configuration.
|
|
559
|
+
*
|
|
560
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
561
|
+
*
|
|
562
|
+
* @example
|
|
563
|
+
* await client.taskGroups.deleteS3ObjectV1("task_group_s3_object_metadata_id")
|
|
564
|
+
*/
|
|
565
|
+
deleteS3ObjectV1(taskGroupS3ObjectMetadataId, requestOptions) {
|
|
566
|
+
return core.HttpResponsePromise.fromPromise(this.__deleteS3ObjectV1(taskGroupS3ObjectMetadataId, requestOptions));
|
|
567
|
+
}
|
|
568
|
+
__deleteS3ObjectV1(taskGroupS3ObjectMetadataId, requestOptions) {
|
|
416
569
|
return __awaiter(this, void 0, void 0, function* () {
|
|
417
570
|
var _a, _b, _c, _d;
|
|
418
571
|
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
419
572
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
420
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `oort/task_groups/
|
|
421
|
-
method: "
|
|
573
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `oort/task_groups/delete_s3_object/v1/${encodeURIComponent(taskGroupS3ObjectMetadataId)}`),
|
|
574
|
+
method: "DELETE",
|
|
422
575
|
headers: _headers,
|
|
423
576
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
424
577
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -448,7 +601,7 @@ export class TaskGroups {
|
|
|
448
601
|
rawResponse: _response.rawResponse,
|
|
449
602
|
});
|
|
450
603
|
case "timeout":
|
|
451
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
604
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling DELETE /oort/task_groups/delete_s3_object/v1/{task_group_s3_object_metadata_id}.");
|
|
452
605
|
case "unknown":
|
|
453
606
|
throw new errors.ChrtError({
|
|
454
607
|
message: _response.error.errorMessage,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as core from "
|
|
4
|
+
import * as core from "../../../../../core/index.mjs";
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
8
8
|
* image: fs.createReadStream("/path/to/your/file")
|
|
9
9
|
* }
|
|
10
10
|
*/
|
|
11
|
-
export interface
|
|
11
|
+
export interface BodyPostAddS3ObjectV1OortTaskGroupsAddS3ObjectV1TaskGroupIdPost {
|
|
12
12
|
image: core.file.Uploadable.FileLike;
|
|
13
13
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* courier_org_id: "courier_org_id"
|
|
8
|
+
* }
|
|
9
|
+
*/
|
|
10
|
+
export interface UpdateCourierOrgReq {
|
|
11
|
+
/** ID of the courier organization to assign to the task group */
|
|
12
|
+
courier_org_id: string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* driver_id: "driver_id"
|
|
8
|
+
* }
|
|
9
|
+
*/
|
|
10
|
+
export interface UpdateDriverReq {
|
|
11
|
+
/** ID of the driver to assign to the task group */
|
|
12
|
+
driver_id: string;
|
|
13
|
+
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export { type SetTaskOrderingReq } from "./SetTaskOrderingReq.mjs";
|
|
2
2
|
export { type SetFlightNumberReq } from "./SetFlightNumberReq.mjs";
|
|
3
|
-
export { type
|
|
4
|
-
export { type
|
|
3
|
+
export { type UpdateDriverReq } from "./UpdateDriverReq.mjs";
|
|
4
|
+
export { type UpdateCourierOrgReq } from "./UpdateCourierOrgReq.mjs";
|
|
5
|
+
export { type AddMessageReq } from "./AddMessageReq.mjs";
|
|
6
|
+
export { type BodyPostAddS3ObjectV1OortTaskGroupsAddS3ObjectV1TaskGroupIdPost } from "./BodyPostAddS3ObjectV1OortTaskGroupsAddS3ObjectV1TaskGroupIdPost.mjs";
|
|
@@ -108,6 +108,8 @@ export declare class Expanded {
|
|
|
108
108
|
* filter_in_progress_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
109
109
|
* filter_completed_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
110
110
|
* filter_completed_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
111
|
+
* filter_skipped_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
112
|
+
* filter_skipped_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
111
113
|
* filter_exception_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
112
114
|
* filter_exception_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
113
115
|
* body: {}
|
|
@@ -137,6 +139,8 @@ export declare class Expanded {
|
|
|
137
139
|
* filter_in_progress_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
138
140
|
* filter_completed_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
139
141
|
* filter_completed_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
142
|
+
* filter_skipped_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
143
|
+
* filter_skipped_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
140
144
|
* filter_exception_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
141
145
|
* filter_exception_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
142
146
|
* body: {}
|