@chrt-inc/typescript-sdk 1.449.1 → 1.449.3
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.js +2 -2
- package/dist/cjs/api/resources/analytics/resources/shipping/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/analytics/resources/shipping/client/Client.js +2 -2
- package/dist/cjs/api/resources/analytics/resources/shipping/client/requests/AnalyticsTimePeriodRequest.d.ts +4 -4
- package/dist/cjs/api/resources/billing/client/Client.d.ts +6 -6
- package/dist/cjs/api/resources/billing/client/Client.js +12 -12
- package/dist/cjs/api/resources/billing/resources/index.d.ts +3 -3
- package/dist/cjs/api/resources/billing/resources/index.js +4 -4
- package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/Client.d.ts +43 -43
- package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/Client.js +112 -112
- package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/requests/AdjustLineItemReq.d.ts +4 -4
- package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/requests/index.d.ts +2 -2
- package/dist/cjs/api/resources/billing/resources/lineItemGroups/resources/adHoc/client/Client.d.ts +22 -22
- package/dist/cjs/api/resources/billing/resources/lineItemGroups/resources/adHoc/client/Client.js +44 -44
- package/dist/cjs/api/resources/billing/resources/lineItemGroups/resources/adHoc/client/requests/CreateAdHocLineItemGroupReq.d.ts +8 -8
- package/dist/cjs/api/resources/billing/resources/lineItemGroups/resources/adHoc/client/requests/LineItemClientCreate1.d.ts +4 -4
- package/dist/cjs/api/resources/billing/resources/lineItemGroups/resources/adHoc/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/billing/resources/lineItemGroups/resources/s3Objects/client/Client.d.ts +19 -19
- package/dist/cjs/api/resources/billing/resources/lineItemGroups/resources/s3Objects/client/Client.js +52 -52
- package/dist/cjs/api/resources/billing/resources/rateSheets/client/Client.d.ts +59 -59
- package/dist/cjs/api/resources/billing/resources/rateSheets/client/Client.js +159 -159
- package/dist/cjs/api/resources/billing/resources/rateSheets/client/requests/RateSheetClientCreate1.d.ts +13 -13
- package/dist/cjs/api/resources/billing/resources/rateSheets/client/requests/RateSheetClientUpdate1.d.ts +2 -2
- package/dist/cjs/api/resources/billing/resources/rateSheets/client/requests/index.d.ts +4 -4
- package/dist/cjs/api/resources/billing/resources/statements/client/Client.d.ts +46 -46
- package/dist/cjs/api/resources/billing/resources/statements/client/Client.js +120 -120
- package/dist/cjs/api/resources/billing/resources/statements/client/requests/CreateStatementReq.d.ts +8 -8
- package/dist/cjs/api/resources/billing/resources/statements/client/requests/index.d.ts +3 -3
- package/dist/cjs/api/resources/billing/resources/stripeConnect/client/Client.d.ts +8 -8
- package/dist/cjs/api/resources/billing/resources/stripeConnect/client/Client.js +19 -19
- package/dist/cjs/api/resources/notifications/resources/adHoc/client/Client.d.ts +15 -15
- package/dist/cjs/api/resources/notifications/resources/adHoc/client/Client.js +33 -33
- package/dist/cjs/api/resources/notifications/resources/adHoc/client/requests/NotificationIntentAdHocClientCreate1.d.ts +3 -3
- package/dist/cjs/api/resources/notifications/resources/groups/client/Client.d.ts +57 -57
- package/dist/cjs/api/resources/notifications/resources/groups/client/Client.js +146 -146
- package/dist/cjs/api/resources/notifications/resources/groups/client/requests/NotificationGroupClientCreate1.d.ts +3 -3
- package/dist/cjs/api/resources/notifications/resources/userPreferences/client/Client.d.ts +8 -8
- package/dist/cjs/api/resources/notifications/resources/userPreferences/client/Client.js +16 -16
- package/dist/cjs/api/resources/notifications/resources/userPreferences/client/requests/UserNotificationPreferencesUpdateRequest.d.ts +2 -2
- package/dist/cjs/api/resources/notifications/resources/webhookSetup/client/Client.d.ts +14 -14
- package/dist/cjs/api/resources/notifications/resources/webhookSetup/client/Client.js +28 -28
- package/dist/cjs/api/resources/orgs/resources/connections/client/Client.d.ts +31 -31
- package/dist/cjs/api/resources/orgs/resources/connections/client/Client.js +98 -98
- package/dist/cjs/api/resources/orgs/resources/offChrtShipperOrg/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/orgs/resources/offChrtShipperOrg/client/Client.js +2 -2
- package/dist/cjs/api/resources/orgs/resources/offChrtShipperOrg/client/requests/OffChrtShipperOrgClientCreate1.d.ts +9 -9
- package/dist/cjs/api/resources/orgs/resources/offChrtShipperOrg/client/requests/OffChrtShipperOrgClientUpdate1.d.ts +4 -4
- package/dist/cjs/api/resources/orgs/resources/orgInfoForConnections/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/orgs/resources/orgInfoForConnections/client/Client.js +9 -9
- package/dist/cjs/api/resources/orgs/resources/orgInfoForConnections/resources/courier/client/Client.d.ts +19 -19
- package/dist/cjs/api/resources/orgs/resources/orgInfoForConnections/resources/courier/client/Client.js +51 -51
- package/dist/cjs/api/resources/orgs/resources/orgInfoForConnections/resources/courier/client/requests/CourierOrgInfoForConnectionsClientCreate1.d.ts +7 -7
- package/dist/cjs/api/resources/orgs/resources/orgInfoForConnections/resources/courier/client/requests/CourierOrgInfoForConnectionsClientUpdate1.d.ts +4 -4
- package/dist/cjs/api/resources/orgs/resources/orgInfoForConnections/resources/forwarder/client/Client.d.ts +12 -12
- package/dist/cjs/api/resources/orgs/resources/orgInfoForConnections/resources/forwarder/client/Client.js +51 -51
- package/dist/cjs/api/resources/orgs/resources/orgInfoForConnections/resources/forwarder/client/requests/ForwarderOrgInfoForConnectionsClientCreate1.d.ts +7 -7
- package/dist/cjs/api/resources/orgs/resources/orgInfoForConnections/resources/forwarder/client/requests/ForwarderOrgInfoForConnectionsClientUpdate1.d.ts +4 -4
- package/dist/cjs/api/resources/orgs/resources/orgInfoForConnections/resources/index.d.ts +2 -2
- package/dist/cjs/api/resources/orgs/resources/orgInfoForConnections/resources/index.js +3 -3
- package/dist/cjs/api/resources/orgs/resources/orgInfoForConnections/resources/shipper/client/Client.d.ts +12 -12
- package/dist/cjs/api/resources/orgs/resources/orgInfoForConnections/resources/shipper/client/Client.js +51 -51
- package/dist/cjs/api/resources/orgs/resources/orgInfoForConnections/resources/shipper/client/requests/ShipperOrgInfoForConnectionsClientCreate1.d.ts +7 -7
- package/dist/cjs/api/resources/orgs/resources/orgInfoForConnections/resources/shipper/client/requests/ShipperOrgInfoForConnectionsClientUpdate1.d.ts +4 -4
- package/dist/cjs/api/resources/orgs/resources/orgProfiles/client/Client.d.ts +32 -32
- package/dist/cjs/api/resources/orgs/resources/orgProfiles/client/Client.js +66 -66
- package/dist/cjs/api/resources/orgs/resources/orgProfiles/client/requests/CourierOrgProfileClientCreate1.d.ts +3 -3
- package/dist/cjs/api/resources/orgs/resources/orgProfiles/client/requests/ForwarderOrgProfileClientCreate1.d.ts +3 -3
- package/dist/cjs/api/resources/orgs/resources/orgProfiles/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/orgs/resources/publicData/client/Client.d.ts +13 -13
- package/dist/cjs/api/resources/orgs/resources/publicData/client/Client.js +59 -59
- package/dist/cjs/api/resources/orgs/resources/publicData/client/requests/CreateOrgPublicDataReq.d.ts +1 -1
- package/dist/cjs/api/resources/orgs/resources/publicData/client/requests/UpdateOrgPublicDataReq.d.ts +1 -1
- package/dist/cjs/api/resources/shipping/client/Client.d.ts +9 -9
- package/dist/cjs/api/resources/shipping/client/Client.js +12 -12
- package/dist/cjs/api/resources/shipping/resources/drivers/client/Client.d.ts +38 -38
- package/dist/cjs/api/resources/shipping/resources/drivers/client/Client.js +126 -126
- package/dist/cjs/api/resources/shipping/resources/drivers/client/requests/DriverClientCreate1.d.ts +3 -3
- package/dist/cjs/api/resources/shipping/resources/drivers/client/requests/DriverClientUpdate1.d.ts +7 -7
- package/dist/cjs/api/resources/shipping/resources/drivers/client/requests/index.d.ts +2 -2
- package/dist/cjs/api/resources/shipping/resources/index.d.ts +2 -2
- package/dist/cjs/api/resources/shipping/resources/index.js +3 -3
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/Client.d.ts +22 -22
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/Client.js +49 -49
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/requests/OrdersDraftUpdateReq.d.ts +2 -2
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/requests/OrdersNewDraftReq.d.ts +1 -1
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/cargo/client/Client.d.ts +19 -19
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/cargo/client/Client.js +30 -30
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/cargo/client/requests/OrderDraftAddCargoReq.d.ts +5 -5
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/cargo/client/requests/OrderDraftAssociateCargoWithTaskReq.d.ts +3 -3
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/expanded/client/Client.d.ts +14 -14
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/expanded/client/Client.js +55 -55
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/index.d.ts +5 -5
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/index.js +6 -6
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/task/client/Client.d.ts +15 -15
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/task/client/Client.js +26 -26
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/task/client/requests/OrderDraftAddTaskReqV1.d.ts +4 -4
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskArtifact/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskArtifact/client/Client.js +2 -2
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskArtifact/client/requests/OrderDraftAddTaskArtifactReq.d.ts +3 -3
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/Client.d.ts +34 -34
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/Client.js +73 -73
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftAddTaskGroupReq.d.ts +4 -4
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/SetRateSheetsReq.d.ts +2 -2
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/index.d.ts +2 -2
- package/dist/cjs/api/resources/shipping/resources/orders/client/Client.d.ts +8 -8
- package/dist/cjs/api/resources/shipping/resources/orders/client/Client.js +16 -16
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.ts +8 -8
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.js +14 -14
- package/dist/cjs/api/resources/shipping/resources/taskArtifacts/client/Client.d.ts +10 -10
- package/dist/cjs/api/resources/shipping/resources/taskArtifacts/client/Client.js +18 -18
- package/dist/cjs/api/resources/shipping/resources/taskArtifacts/client/requests/AddTaskArtifactReq.d.ts +3 -3
- package/dist/cjs/api/resources/shipping/resources/taskArtifacts/resources/s3Object/client/Client.d.ts +19 -19
- package/dist/cjs/api/resources/shipping/resources/taskArtifacts/resources/s3Object/client/Client.js +52 -52
- package/dist/cjs/api/resources/shipping/resources/taskGroups/client/Client.d.ts +50 -50
- package/dist/cjs/api/resources/shipping/resources/taskGroups/client/Client.js +85 -85
- package/dist/cjs/api/resources/shipping/resources/taskGroups/client/requests/index.d.ts +2 -2
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.d.ts +26 -26
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.js +44 -44
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/types/index.d.ts +1 -1
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/types/index.js +1 -1
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/index.d.ts +2 -2
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/index.js +3 -3
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/s3Object/client/Client.d.ts +19 -19
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/s3Object/client/Client.js +52 -52
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/Client.d.ts +8 -8
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/Client.js +14 -14
- package/dist/cjs/api/resources/shipping/resources/tasks/client/Client.d.ts +16 -16
- package/dist/cjs/api/resources/shipping/resources/tasks/client/Client.js +31 -31
- package/dist/cjs/api/resources/shipping/resources/tasks/client/requests/AddTaskToGroupReq.d.ts +6 -6
- package/dist/cjs/api/resources/tracking/resources/devices/client/Client.d.ts +54 -54
- package/dist/cjs/api/resources/tracking/resources/devices/client/Client.js +191 -191
- package/dist/cjs/api/resources/tracking/resources/devices/client/requests/DeviceClientCreate1.d.ts +5 -5
- package/dist/cjs/api/resources/tracking/resources/devices/client/requests/DeviceClientUpdate1.d.ts +3 -3
- package/dist/cjs/api/resources/tracking/resources/devices/client/requests/DevicesUpdateSharedOrgsReq1.d.ts +1 -1
- package/dist/cjs/api/resources/tracking/resources/devices/client/requests/index.d.ts +4 -4
- package/dist/cjs/api/resources/tracking/resources/driver/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/tracking/resources/driver/client/Client.js +2 -2
- package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.d.ts +80 -80
- package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.js +237 -237
- package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionAddFlightReq1.d.ts +4 -4
- package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionClientCreate1.d.ts +5 -5
- package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionClientUpdate1.d.ts +3 -3
- package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionRemoveFlightReq1.d.ts +4 -4
- package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionsUpdateSharedOrgsReq1.d.ts +1 -1
- package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/index.d.ts +7 -7
- package/dist/cjs/api/resources/tracking/resources/sharingSettings/client/Client.d.ts +30 -30
- package/dist/cjs/api/resources/tracking/resources/sharingSettings/client/Client.js +52 -52
- package/dist/cjs/api/resources/tracking/resources/sharingSettings/client/requests/CargoByDeviceSharingSettingsUpdateReq.d.ts +3 -3
- package/dist/cjs/api/resources/tracking/resources/sharingSettings/client/requests/CargoByDriverSharingSettingsUpdateReq.d.ts +3 -3
- package/dist/cjs/api/resources/tracking/resources/sharingSettings/client/requests/TaskGroupByDriverSharingSettingsUpdateReq.d.ts +3 -3
- package/dist/cjs/api/resources/tracking/resources/sharingSettings/client/requests/index.d.ts +2 -2
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/cargoByDevice/client/Client.d.ts +26 -26
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/cargoByDevice/client/Client.js +64 -64
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/cargoByDevice/client/requests/CargoByDeviceMarkOutliersRequest1.d.ts +3 -3
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/cargoByDevice/client/requests/index.d.ts +3 -3
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/cargoByDriver/client/Client.d.ts +23 -23
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/cargoByDriver/client/Client.js +51 -51
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/cargoByDriver/client/requests/index.d.ts +2 -2
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/Client.d.ts +25 -25
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/Client.js +62 -62
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/requests/SessionByDeviceMarkOutliersRequest1.d.ts +3 -3
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/requests/index.d.ts +3 -3
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/Client.d.ts +23 -23
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/Client.js +51 -51
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/requests/index.d.ts +2 -2
- package/dist/cjs/api/resources/users/client/Client.d.ts +6 -6
- package/dist/cjs/api/resources/users/client/Client.js +6 -6
- package/dist/cjs/api/resources/users/resources/directoryEntries/client/Client.d.ts +22 -22
- package/dist/cjs/api/resources/users/resources/directoryEntries/client/Client.js +56 -56
- package/dist/cjs/api/resources/users/resources/directoryEntries/client/requests/DirectoryEntryClientCreate1.d.ts +8 -8
- package/dist/cjs/api/resources/users/resources/directoryEntries/client/requests/DirectoryEntryClientUpdate1.d.ts +4 -4
- package/dist/cjs/api/resources/users/resources/index.d.ts +3 -3
- package/dist/cjs/api/resources/users/resources/index.js +4 -4
- package/dist/cjs/api/resources/users/resources/privateData/client/Client.d.ts +15 -15
- package/dist/cjs/api/resources/users/resources/privateData/client/Client.js +59 -59
- package/dist/cjs/api/resources/users/resources/privateData/client/requests/UserPrivateDataClientCreate1.d.ts +2 -2
- package/dist/cjs/api/resources/users/resources/privateData/client/requests/UserPrivateDataClientUpdate1.d.ts +1 -1
- package/dist/cjs/api/resources/users/resources/privateData/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/utils/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/utils/client/Client.js +6 -6
- package/dist/cjs/api/resources/utils/resources/dev/client/Client.d.ts +24 -24
- package/dist/cjs/api/resources/utils/resources/dev/client/Client.js +75 -75
- package/dist/cjs/api/resources/utils/resources/index.d.ts +1 -1
- package/dist/cjs/api/resources/utils/resources/index.js +2 -2
- package/dist/cjs/api/resources/utils/resources/root/client/Client.d.ts +16 -16
- package/dist/cjs/api/resources/utils/resources/root/client/Client.js +28 -28
- package/dist/cjs/api/types/AgentRes.d.ts +1 -1
- package/dist/cjs/api/types/BillingLineItemGroupMessageWebhookPayload.d.ts +1 -1
- package/dist/cjs/api/types/BillingLineItemGroupS3ObjectAddedWebhookPayload.d.ts +1 -1
- package/dist/cjs/api/types/BillingStatementOpenedWebhookPayload.d.ts +1 -1
- package/dist/cjs/api/types/BillingStatementPaidWebhookPayload.d.ts +1 -1
- package/dist/cjs/api/types/Cargo1.d.ts +16 -16
- package/dist/cjs/api/types/CargoByDeviceDataPoint1.d.ts +4 -4
- package/dist/cjs/api/types/CargoByDeviceDataPointMetadata1.d.ts +1 -1
- package/dist/cjs/api/types/CargoByDeviceMarkOutliersResponse1.d.ts +1 -1
- package/dist/cjs/api/types/CargoByDeviceSharingSettings1.d.ts +6 -6
- package/dist/cjs/api/types/CargoByDriverDataPoint1.d.ts +3 -3
- package/dist/cjs/api/types/CargoByDriverDataPointMetadata1.d.ts +1 -1
- package/dist/cjs/api/types/CargoByDriverSharingSettings1.d.ts +6 -6
- package/dist/cjs/api/types/CargoClientCreate1.d.ts +6 -6
- package/dist/cjs/api/types/CargoClientUpdate1.d.ts +5 -5
- package/dist/cjs/api/types/CourierConnectionRes.d.ts +1 -1
- package/dist/cjs/api/types/CourierOrgInfoForConnections1.d.ts +10 -10
- package/dist/cjs/api/types/CourierOrgProfile1.d.ts +3 -3
- package/dist/cjs/api/types/CreateOrgPublicDataRes.d.ts +1 -1
- package/dist/cjs/api/types/DecodedJwtWithOrgAndUserId.d.ts +7 -7
- package/dist/cjs/api/types/DeviceExpandedRes.d.ts +3 -3
- package/dist/cjs/api/types/DeviceLimitedForList1.d.ts +11 -11
- package/dist/cjs/api/types/DirectoryEntry1.d.ts +13 -13
- package/dist/cjs/api/types/Driver1.d.ts +13 -13
- package/dist/cjs/api/types/DriverUpdateRes.d.ts +1 -1
- package/dist/cjs/api/types/FirebaseCloudMessagingTokenData1.d.ts +1 -1
- package/dist/cjs/api/types/FlightAwareAlertFlight.d.ts +3 -3
- package/dist/cjs/api/types/FlightAwareAlertPayload.d.ts +3 -3
- package/dist/cjs/api/types/FlightAwareWebhookResponse.d.ts +1 -1
- package/dist/cjs/api/types/FlightInfoForTaskRes.d.ts +1 -1
- package/dist/cjs/api/types/ForwarderConnectionRes.d.ts +1 -1
- package/dist/cjs/api/types/ForwarderCourierConnection1.d.ts +7 -7
- package/dist/cjs/api/types/ForwarderOrgInfoForConnections1.d.ts +8 -8
- package/dist/cjs/api/types/ForwarderOrgProfile1.d.ts +3 -3
- package/dist/cjs/api/types/GeometryCollection.d.ts +1 -1
- package/dist/cjs/api/types/{GeometryCollectionInputGeometriesItem.d.ts → GeometryCollectionGeometriesItem.d.ts} +2 -2
- package/dist/cjs/api/types/LineItem1.d.ts +6 -6
- package/dist/cjs/api/types/LineItemGroup1.d.ts +11 -11
- package/dist/cjs/api/types/LineItemGroupMessage1.d.ts +2 -2
- package/dist/cjs/api/types/LineItemGroupS3ObjectMetadata1.d.ts +8 -8
- package/dist/cjs/api/types/LocationFeature.d.ts +2 -2
- package/dist/cjs/api/types/NotificationGroup1.d.ts +7 -7
- package/dist/cjs/api/types/NotificationGroupLimitedForDriver1.d.ts +5 -5
- package/dist/cjs/api/types/NotificationIntentAdHoc1.d.ts +3 -3
- package/dist/cjs/api/types/NotificationUserPreferences1.d.ts +5 -5
- package/dist/cjs/api/types/OffChrtShipperOrg1.d.ts +12 -12
- package/dist/cjs/api/types/Order1.d.ts +12 -12
- package/dist/cjs/api/types/OrderAndTaskGroupExpandedReq.d.ts +8 -8
- package/dist/cjs/api/types/OrderDraftExpanded.d.ts +4 -4
- package/dist/cjs/api/types/OrderExpanded.d.ts +3 -3
- package/dist/cjs/api/types/OrdersDraftUpdateRes.d.ts +3 -3
- package/dist/cjs/api/types/OrgInfoResponse.d.ts +6 -6
- package/dist/cjs/api/types/OrgMemberDetails.d.ts +2 -2
- package/dist/cjs/api/types/OrgMembersAndDrivers.d.ts +1 -1
- package/dist/cjs/api/types/OrgPrivateData1.d.ts +12 -12
- package/dist/cjs/api/types/OrgPublicData1.d.ts +5 -5
- package/dist/cjs/api/types/Quote.d.ts +2 -2
- package/dist/cjs/api/types/RateSheet1.d.ts +17 -17
- package/dist/cjs/api/types/Session1.d.ts +14 -14
- package/dist/cjs/api/types/SessionByDeviceDataPoint1.d.ts +4 -4
- package/dist/cjs/api/types/SessionByDeviceDataPointMetadata1.d.ts +1 -1
- package/dist/cjs/api/types/SessionByDeviceMarkOutliersResponse1.d.ts +1 -1
- package/dist/cjs/api/types/SetFlightInfoReq.d.ts +2 -2
- package/dist/cjs/api/types/ShipperConnectionRes.d.ts +1 -1
- package/dist/cjs/api/types/ShipperCourierConnection1.d.ts +7 -7
- package/dist/cjs/api/types/ShipperForwarderConnection1.d.ts +7 -7
- package/dist/cjs/api/types/ShipperOrgInfoForConnections1.d.ts +6 -6
- package/dist/cjs/api/types/ShippingOrderCancelledWebhookPayload.d.ts +1 -1
- package/dist/cjs/api/types/ShippingOrderCompletedWebhookPayload.d.ts +1 -1
- package/dist/cjs/api/types/ShippingOrderStagedWebhookPayload.d.ts +1 -1
- package/dist/cjs/api/types/ShippingTaskAddedWebhookPayload.d.ts +5 -5
- package/dist/cjs/api/types/ShippingTaskCompletedWebhookPayload.d.ts +5 -5
- package/dist/cjs/api/types/ShippingTaskDeletedWebhookPayload.d.ts +5 -5
- package/dist/cjs/api/types/ShippingTaskGroupCourierOrgAssignedWebhookPayload.d.ts +3 -3
- package/dist/cjs/api/types/ShippingTaskGroupDriverAssignedWebhookPayload.d.ts +3 -3
- package/dist/cjs/api/types/ShippingTaskGroupFlightInfoUpdatedWebhookPayload.d.ts +5 -5
- package/dist/cjs/api/types/ShippingTaskGroupInProgressWebhookPayload.d.ts +1 -1
- package/dist/cjs/api/types/ShippingTaskGroupMessageWebhookPayload.d.ts +3 -3
- package/dist/cjs/api/types/ShippingTaskGroupS3ObjectAddedWebhookPayload.d.ts +1 -1
- package/dist/cjs/api/types/ShippingTaskGroupTasksOrderingUpdatedWebhookPayload.d.ts +1 -1
- package/dist/cjs/api/types/ShippingTaskSkippedWebhookPayload.d.ts +5 -5
- package/dist/cjs/api/types/ShippingTaskTaskArtifactCompletedWebhookPayload.d.ts +5 -5
- package/dist/cjs/api/types/Statement1.d.ts +20 -20
- package/dist/cjs/api/types/StatementExpandedRes.d.ts +1 -1
- package/dist/cjs/api/types/Task1.d.ts +19 -19
- package/dist/cjs/api/types/TaskArtifact1.d.ts +16 -16
- package/dist/cjs/api/types/TaskArtifactS3ObjectMetadata1.d.ts +8 -8
- package/dist/cjs/api/types/TaskClientCreate1.d.ts +4 -4
- package/dist/cjs/api/types/TaskClientUpdate1.d.ts +2 -2
- package/dist/cjs/api/types/TaskExpanded.d.ts +2 -2
- package/dist/cjs/api/types/TaskGroup1.d.ts +25 -25
- package/dist/cjs/api/types/TaskGroupByDriverDataPoint1.d.ts +3 -3
- package/dist/cjs/api/types/TaskGroupByDriverDataPointMetadata1.d.ts +1 -1
- package/dist/cjs/api/types/TaskGroupByDriverSharingSettings1.d.ts +6 -6
- package/dist/cjs/api/types/TaskGroupExpanded.d.ts +4 -4
- package/dist/cjs/api/types/TaskGroupMessage1.d.ts +2 -2
- package/dist/cjs/api/types/TaskGroupS3ObjectMetadata1.d.ts +8 -8
- package/dist/cjs/api/types/TimezoneResponse.d.ts +1 -1
- package/dist/cjs/api/types/TrackingSharingSettingsRes.d.ts +1 -1
- package/dist/cjs/api/types/TrackingWebhookResponse.d.ts +1 -1
- package/dist/cjs/api/types/UserPrivateData1.d.ts +6 -6
- package/dist/cjs/api/types/UserPublicData1.d.ts +2 -2
- package/dist/cjs/api/types/ValidationError.d.ts +2 -2
- package/dist/cjs/api/types/Vehicle1.d.ts +1 -1
- package/dist/cjs/api/types/WebhookAppPortalAccessRes.d.ts +1 -1
- package/dist/cjs/api/types/index.d.ts +1 -2
- package/dist/cjs/api/types/index.js +1 -2
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.mjs +2 -2
- package/dist/esm/api/resources/analytics/resources/shipping/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/analytics/resources/shipping/client/Client.mjs +2 -2
- package/dist/esm/api/resources/analytics/resources/shipping/client/requests/AnalyticsTimePeriodRequest.d.mts +4 -4
- package/dist/esm/api/resources/billing/client/Client.d.mts +6 -6
- package/dist/esm/api/resources/billing/client/Client.mjs +10 -10
- package/dist/esm/api/resources/billing/resources/index.d.mts +3 -3
- package/dist/esm/api/resources/billing/resources/index.mjs +3 -3
- package/dist/esm/api/resources/billing/resources/lineItemGroups/client/Client.d.mts +43 -43
- package/dist/esm/api/resources/billing/resources/lineItemGroups/client/Client.mjs +112 -112
- package/dist/esm/api/resources/billing/resources/lineItemGroups/client/requests/AdjustLineItemReq.d.mts +4 -4
- package/dist/esm/api/resources/billing/resources/lineItemGroups/client/requests/index.d.mts +2 -2
- package/dist/esm/api/resources/billing/resources/lineItemGroups/resources/adHoc/client/Client.d.mts +22 -22
- package/dist/esm/api/resources/billing/resources/lineItemGroups/resources/adHoc/client/Client.mjs +44 -44
- package/dist/esm/api/resources/billing/resources/lineItemGroups/resources/adHoc/client/requests/CreateAdHocLineItemGroupReq.d.mts +8 -8
- package/dist/esm/api/resources/billing/resources/lineItemGroups/resources/adHoc/client/requests/LineItemClientCreate1.d.mts +4 -4
- package/dist/esm/api/resources/billing/resources/lineItemGroups/resources/adHoc/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/billing/resources/lineItemGroups/resources/s3Objects/client/Client.d.mts +19 -19
- package/dist/esm/api/resources/billing/resources/lineItemGroups/resources/s3Objects/client/Client.mjs +52 -52
- package/dist/esm/api/resources/billing/resources/rateSheets/client/Client.d.mts +59 -59
- package/dist/esm/api/resources/billing/resources/rateSheets/client/Client.mjs +159 -159
- package/dist/esm/api/resources/billing/resources/rateSheets/client/requests/RateSheetClientCreate1.d.mts +13 -13
- package/dist/esm/api/resources/billing/resources/rateSheets/client/requests/RateSheetClientUpdate1.d.mts +2 -2
- package/dist/esm/api/resources/billing/resources/rateSheets/client/requests/index.d.mts +4 -4
- package/dist/esm/api/resources/billing/resources/statements/client/Client.d.mts +46 -46
- package/dist/esm/api/resources/billing/resources/statements/client/Client.mjs +120 -120
- package/dist/esm/api/resources/billing/resources/statements/client/requests/CreateStatementReq.d.mts +8 -8
- package/dist/esm/api/resources/billing/resources/statements/client/requests/index.d.mts +3 -3
- package/dist/esm/api/resources/billing/resources/stripeConnect/client/Client.d.mts +8 -8
- package/dist/esm/api/resources/billing/resources/stripeConnect/client/Client.mjs +19 -19
- package/dist/esm/api/resources/notifications/resources/adHoc/client/Client.d.mts +15 -15
- package/dist/esm/api/resources/notifications/resources/adHoc/client/Client.mjs +33 -33
- package/dist/esm/api/resources/notifications/resources/adHoc/client/requests/NotificationIntentAdHocClientCreate1.d.mts +3 -3
- package/dist/esm/api/resources/notifications/resources/groups/client/Client.d.mts +57 -57
- package/dist/esm/api/resources/notifications/resources/groups/client/Client.mjs +146 -146
- package/dist/esm/api/resources/notifications/resources/groups/client/requests/NotificationGroupClientCreate1.d.mts +3 -3
- package/dist/esm/api/resources/notifications/resources/userPreferences/client/Client.d.mts +8 -8
- package/dist/esm/api/resources/notifications/resources/userPreferences/client/Client.mjs +16 -16
- package/dist/esm/api/resources/notifications/resources/userPreferences/client/requests/UserNotificationPreferencesUpdateRequest.d.mts +2 -2
- package/dist/esm/api/resources/notifications/resources/webhookSetup/client/Client.d.mts +14 -14
- package/dist/esm/api/resources/notifications/resources/webhookSetup/client/Client.mjs +28 -28
- package/dist/esm/api/resources/orgs/resources/connections/client/Client.d.mts +31 -31
- package/dist/esm/api/resources/orgs/resources/connections/client/Client.mjs +98 -98
- package/dist/esm/api/resources/orgs/resources/offChrtShipperOrg/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/orgs/resources/offChrtShipperOrg/client/Client.mjs +2 -2
- package/dist/esm/api/resources/orgs/resources/offChrtShipperOrg/client/requests/OffChrtShipperOrgClientCreate1.d.mts +9 -9
- package/dist/esm/api/resources/orgs/resources/offChrtShipperOrg/client/requests/OffChrtShipperOrgClientUpdate1.d.mts +4 -4
- package/dist/esm/api/resources/orgs/resources/orgInfoForConnections/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/orgs/resources/orgInfoForConnections/client/Client.mjs +5 -5
- package/dist/esm/api/resources/orgs/resources/orgInfoForConnections/resources/courier/client/Client.d.mts +19 -19
- package/dist/esm/api/resources/orgs/resources/orgInfoForConnections/resources/courier/client/Client.mjs +51 -51
- package/dist/esm/api/resources/orgs/resources/orgInfoForConnections/resources/courier/client/requests/CourierOrgInfoForConnectionsClientCreate1.d.mts +7 -7
- package/dist/esm/api/resources/orgs/resources/orgInfoForConnections/resources/courier/client/requests/CourierOrgInfoForConnectionsClientUpdate1.d.mts +4 -4
- package/dist/esm/api/resources/orgs/resources/orgInfoForConnections/resources/forwarder/client/Client.d.mts +12 -12
- package/dist/esm/api/resources/orgs/resources/orgInfoForConnections/resources/forwarder/client/Client.mjs +51 -51
- package/dist/esm/api/resources/orgs/resources/orgInfoForConnections/resources/forwarder/client/requests/ForwarderOrgInfoForConnectionsClientCreate1.d.mts +7 -7
- package/dist/esm/api/resources/orgs/resources/orgInfoForConnections/resources/forwarder/client/requests/ForwarderOrgInfoForConnectionsClientUpdate1.d.mts +4 -4
- package/dist/esm/api/resources/orgs/resources/orgInfoForConnections/resources/index.d.mts +2 -2
- package/dist/esm/api/resources/orgs/resources/orgInfoForConnections/resources/index.mjs +2 -2
- package/dist/esm/api/resources/orgs/resources/orgInfoForConnections/resources/shipper/client/Client.d.mts +12 -12
- package/dist/esm/api/resources/orgs/resources/orgInfoForConnections/resources/shipper/client/Client.mjs +51 -51
- package/dist/esm/api/resources/orgs/resources/orgInfoForConnections/resources/shipper/client/requests/ShipperOrgInfoForConnectionsClientCreate1.d.mts +7 -7
- package/dist/esm/api/resources/orgs/resources/orgInfoForConnections/resources/shipper/client/requests/ShipperOrgInfoForConnectionsClientUpdate1.d.mts +4 -4
- package/dist/esm/api/resources/orgs/resources/orgProfiles/client/Client.d.mts +32 -32
- package/dist/esm/api/resources/orgs/resources/orgProfiles/client/Client.mjs +66 -66
- package/dist/esm/api/resources/orgs/resources/orgProfiles/client/requests/CourierOrgProfileClientCreate1.d.mts +3 -3
- package/dist/esm/api/resources/orgs/resources/orgProfiles/client/requests/ForwarderOrgProfileClientCreate1.d.mts +3 -3
- package/dist/esm/api/resources/orgs/resources/orgProfiles/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/orgs/resources/publicData/client/Client.d.mts +13 -13
- package/dist/esm/api/resources/orgs/resources/publicData/client/Client.mjs +59 -59
- package/dist/esm/api/resources/orgs/resources/publicData/client/requests/CreateOrgPublicDataReq.d.mts +1 -1
- package/dist/esm/api/resources/orgs/resources/publicData/client/requests/UpdateOrgPublicDataReq.d.mts +1 -1
- package/dist/esm/api/resources/shipping/client/Client.d.mts +9 -9
- package/dist/esm/api/resources/shipping/client/Client.mjs +11 -11
- package/dist/esm/api/resources/shipping/resources/drivers/client/Client.d.mts +38 -38
- package/dist/esm/api/resources/shipping/resources/drivers/client/Client.mjs +126 -126
- package/dist/esm/api/resources/shipping/resources/drivers/client/requests/DriverClientCreate1.d.mts +3 -3
- package/dist/esm/api/resources/shipping/resources/drivers/client/requests/DriverClientUpdate1.d.mts +7 -7
- package/dist/esm/api/resources/shipping/resources/drivers/client/requests/index.d.mts +2 -2
- package/dist/esm/api/resources/shipping/resources/index.d.mts +2 -2
- package/dist/esm/api/resources/shipping/resources/index.mjs +2 -2
- package/dist/esm/api/resources/shipping/resources/orderDrafts/client/Client.d.mts +22 -22
- package/dist/esm/api/resources/shipping/resources/orderDrafts/client/Client.mjs +45 -45
- package/dist/esm/api/resources/shipping/resources/orderDrafts/client/requests/OrdersDraftUpdateReq.d.mts +2 -2
- package/dist/esm/api/resources/shipping/resources/orderDrafts/client/requests/OrdersNewDraftReq.d.mts +1 -1
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/cargo/client/Client.d.mts +19 -19
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/cargo/client/Client.mjs +30 -30
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/cargo/client/requests/OrderDraftAddCargoReq.d.mts +5 -5
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/cargo/client/requests/OrderDraftAssociateCargoWithTaskReq.d.mts +3 -3
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/expanded/client/Client.d.mts +14 -14
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/expanded/client/Client.mjs +55 -55
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/index.d.mts +5 -5
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/index.mjs +5 -5
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/task/client/Client.d.mts +15 -15
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/task/client/Client.mjs +26 -26
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/task/client/requests/OrderDraftAddTaskReqV1.d.mts +4 -4
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskArtifact/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskArtifact/client/Client.mjs +2 -2
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskArtifact/client/requests/OrderDraftAddTaskArtifactReq.d.mts +3 -3
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/Client.d.mts +34 -34
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/Client.mjs +73 -73
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftAddTaskGroupReq.d.mts +4 -4
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/SetRateSheetsReq.d.mts +2 -2
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/index.d.mts +2 -2
- package/dist/esm/api/resources/shipping/resources/orders/client/Client.d.mts +8 -8
- package/dist/esm/api/resources/shipping/resources/orders/client/Client.mjs +16 -16
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.mts +8 -8
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.mjs +14 -14
- package/dist/esm/api/resources/shipping/resources/taskArtifacts/client/Client.d.mts +10 -10
- package/dist/esm/api/resources/shipping/resources/taskArtifacts/client/Client.mjs +18 -18
- package/dist/esm/api/resources/shipping/resources/taskArtifacts/client/requests/AddTaskArtifactReq.d.mts +3 -3
- package/dist/esm/api/resources/shipping/resources/taskArtifacts/resources/s3Object/client/Client.d.mts +19 -19
- package/dist/esm/api/resources/shipping/resources/taskArtifacts/resources/s3Object/client/Client.mjs +52 -52
- package/dist/esm/api/resources/shipping/resources/taskGroups/client/Client.d.mts +50 -50
- package/dist/esm/api/resources/shipping/resources/taskGroups/client/Client.mjs +85 -85
- package/dist/esm/api/resources/shipping/resources/taskGroups/client/requests/index.d.mts +2 -2
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.d.mts +26 -26
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.mjs +44 -44
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/types/index.d.mts +1 -1
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/types/index.mjs +1 -1
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/index.d.mts +2 -2
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/index.mjs +2 -2
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/s3Object/client/Client.d.mts +19 -19
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/s3Object/client/Client.mjs +52 -52
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/Client.d.mts +8 -8
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/Client.mjs +14 -14
- package/dist/esm/api/resources/shipping/resources/tasks/client/Client.d.mts +16 -16
- package/dist/esm/api/resources/shipping/resources/tasks/client/Client.mjs +31 -31
- package/dist/esm/api/resources/shipping/resources/tasks/client/requests/AddTaskToGroupReq.d.mts +6 -6
- package/dist/esm/api/resources/tracking/resources/devices/client/Client.d.mts +54 -54
- package/dist/esm/api/resources/tracking/resources/devices/client/Client.mjs +191 -191
- package/dist/esm/api/resources/tracking/resources/devices/client/requests/DeviceClientCreate1.d.mts +5 -5
- package/dist/esm/api/resources/tracking/resources/devices/client/requests/DeviceClientUpdate1.d.mts +3 -3
- package/dist/esm/api/resources/tracking/resources/devices/client/requests/DevicesUpdateSharedOrgsReq1.d.mts +1 -1
- package/dist/esm/api/resources/tracking/resources/devices/client/requests/index.d.mts +4 -4
- package/dist/esm/api/resources/tracking/resources/driver/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/tracking/resources/driver/client/Client.mjs +2 -2
- package/dist/esm/api/resources/tracking/resources/sessions/client/Client.d.mts +80 -80
- package/dist/esm/api/resources/tracking/resources/sessions/client/Client.mjs +237 -237
- package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionAddFlightReq1.d.mts +4 -4
- package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionClientCreate1.d.mts +5 -5
- package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionClientUpdate1.d.mts +3 -3
- package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionRemoveFlightReq1.d.mts +4 -4
- package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionsUpdateSharedOrgsReq1.d.mts +1 -1
- package/dist/esm/api/resources/tracking/resources/sessions/client/requests/index.d.mts +7 -7
- package/dist/esm/api/resources/tracking/resources/sharingSettings/client/Client.d.mts +30 -30
- package/dist/esm/api/resources/tracking/resources/sharingSettings/client/Client.mjs +52 -52
- package/dist/esm/api/resources/tracking/resources/sharingSettings/client/requests/CargoByDeviceSharingSettingsUpdateReq.d.mts +3 -3
- package/dist/esm/api/resources/tracking/resources/sharingSettings/client/requests/CargoByDriverSharingSettingsUpdateReq.d.mts +3 -3
- package/dist/esm/api/resources/tracking/resources/sharingSettings/client/requests/TaskGroupByDriverSharingSettingsUpdateReq.d.mts +3 -3
- package/dist/esm/api/resources/tracking/resources/sharingSettings/client/requests/index.d.mts +2 -2
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/cargoByDevice/client/Client.d.mts +26 -26
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/cargoByDevice/client/Client.mjs +64 -64
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/cargoByDevice/client/requests/CargoByDeviceMarkOutliersRequest1.d.mts +3 -3
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/cargoByDevice/client/requests/index.d.mts +3 -3
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/cargoByDriver/client/Client.d.mts +23 -23
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/cargoByDriver/client/Client.mjs +51 -51
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/cargoByDriver/client/requests/index.d.mts +2 -2
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/Client.d.mts +25 -25
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/Client.mjs +62 -62
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/requests/SessionByDeviceMarkOutliersRequest1.d.mts +3 -3
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/requests/index.d.mts +3 -3
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/Client.d.mts +23 -23
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/Client.mjs +51 -51
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/requests/index.d.mts +2 -2
- package/dist/esm/api/resources/users/client/Client.d.mts +6 -6
- package/dist/esm/api/resources/users/client/Client.mjs +6 -6
- package/dist/esm/api/resources/users/resources/directoryEntries/client/Client.d.mts +22 -22
- package/dist/esm/api/resources/users/resources/directoryEntries/client/Client.mjs +56 -56
- package/dist/esm/api/resources/users/resources/directoryEntries/client/requests/DirectoryEntryClientCreate1.d.mts +8 -8
- package/dist/esm/api/resources/users/resources/directoryEntries/client/requests/DirectoryEntryClientUpdate1.d.mts +4 -4
- package/dist/esm/api/resources/users/resources/index.d.mts +3 -3
- package/dist/esm/api/resources/users/resources/index.mjs +3 -3
- package/dist/esm/api/resources/users/resources/privateData/client/Client.d.mts +15 -15
- package/dist/esm/api/resources/users/resources/privateData/client/Client.mjs +59 -59
- package/dist/esm/api/resources/users/resources/privateData/client/requests/UserPrivateDataClientCreate1.d.mts +2 -2
- package/dist/esm/api/resources/users/resources/privateData/client/requests/UserPrivateDataClientUpdate1.d.mts +1 -1
- package/dist/esm/api/resources/users/resources/privateData/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/utils/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/utils/client/Client.mjs +5 -5
- package/dist/esm/api/resources/utils/resources/dev/client/Client.d.mts +24 -24
- package/dist/esm/api/resources/utils/resources/dev/client/Client.mjs +75 -75
- package/dist/esm/api/resources/utils/resources/index.d.mts +1 -1
- package/dist/esm/api/resources/utils/resources/index.mjs +1 -1
- package/dist/esm/api/resources/utils/resources/root/client/Client.d.mts +16 -16
- package/dist/esm/api/resources/utils/resources/root/client/Client.mjs +28 -28
- package/dist/esm/api/types/AgentRes.d.mts +1 -1
- package/dist/esm/api/types/BillingLineItemGroupMessageWebhookPayload.d.mts +1 -1
- package/dist/esm/api/types/BillingLineItemGroupS3ObjectAddedWebhookPayload.d.mts +1 -1
- package/dist/esm/api/types/BillingStatementOpenedWebhookPayload.d.mts +1 -1
- package/dist/esm/api/types/BillingStatementPaidWebhookPayload.d.mts +1 -1
- package/dist/esm/api/types/Cargo1.d.mts +16 -16
- package/dist/esm/api/types/CargoByDeviceDataPoint1.d.mts +4 -4
- package/dist/esm/api/types/CargoByDeviceDataPointMetadata1.d.mts +1 -1
- package/dist/esm/api/types/CargoByDeviceMarkOutliersResponse1.d.mts +1 -1
- package/dist/esm/api/types/CargoByDeviceSharingSettings1.d.mts +6 -6
- package/dist/esm/api/types/CargoByDriverDataPoint1.d.mts +3 -3
- package/dist/esm/api/types/CargoByDriverDataPointMetadata1.d.mts +1 -1
- package/dist/esm/api/types/CargoByDriverSharingSettings1.d.mts +6 -6
- package/dist/esm/api/types/CargoClientCreate1.d.mts +6 -6
- package/dist/esm/api/types/CargoClientUpdate1.d.mts +5 -5
- package/dist/esm/api/types/CourierConnectionRes.d.mts +1 -1
- package/dist/esm/api/types/CourierOrgInfoForConnections1.d.mts +10 -10
- package/dist/esm/api/types/CourierOrgProfile1.d.mts +3 -3
- package/dist/esm/api/types/CreateOrgPublicDataRes.d.mts +1 -1
- package/dist/esm/api/types/DecodedJwtWithOrgAndUserId.d.mts +7 -7
- package/dist/esm/api/types/DeviceExpandedRes.d.mts +3 -3
- package/dist/esm/api/types/DeviceLimitedForList1.d.mts +11 -11
- package/dist/esm/api/types/DirectoryEntry1.d.mts +13 -13
- package/dist/esm/api/types/Driver1.d.mts +13 -13
- package/dist/esm/api/types/DriverUpdateRes.d.mts +1 -1
- package/dist/esm/api/types/FirebaseCloudMessagingTokenData1.d.mts +1 -1
- package/dist/esm/api/types/FlightAwareAlertFlight.d.mts +3 -3
- package/dist/esm/api/types/FlightAwareAlertPayload.d.mts +3 -3
- package/dist/esm/api/types/FlightAwareWebhookResponse.d.mts +1 -1
- package/dist/esm/api/types/FlightInfoForTaskRes.d.mts +1 -1
- package/dist/esm/api/types/ForwarderConnectionRes.d.mts +1 -1
- package/dist/esm/api/types/ForwarderCourierConnection1.d.mts +7 -7
- package/dist/esm/api/types/ForwarderOrgInfoForConnections1.d.mts +8 -8
- package/dist/esm/api/types/ForwarderOrgProfile1.d.mts +3 -3
- package/dist/esm/api/types/GeometryCollection.d.mts +1 -1
- package/dist/esm/api/types/{GeometryCollectionInputGeometriesItem.d.mts → GeometryCollectionGeometriesItem.d.mts} +2 -2
- package/dist/esm/api/types/LineItem1.d.mts +6 -6
- package/dist/esm/api/types/LineItemGroup1.d.mts +11 -11
- package/dist/esm/api/types/LineItemGroupMessage1.d.mts +2 -2
- package/dist/esm/api/types/LineItemGroupS3ObjectMetadata1.d.mts +8 -8
- package/dist/esm/api/types/LocationFeature.d.mts +2 -2
- package/dist/esm/api/types/NotificationGroup1.d.mts +7 -7
- package/dist/esm/api/types/NotificationGroupLimitedForDriver1.d.mts +5 -5
- package/dist/esm/api/types/NotificationIntentAdHoc1.d.mts +3 -3
- package/dist/esm/api/types/NotificationUserPreferences1.d.mts +5 -5
- package/dist/esm/api/types/OffChrtShipperOrg1.d.mts +12 -12
- package/dist/esm/api/types/Order1.d.mts +12 -12
- package/dist/esm/api/types/OrderAndTaskGroupExpandedReq.d.mts +8 -8
- package/dist/esm/api/types/OrderDraftExpanded.d.mts +4 -4
- package/dist/esm/api/types/OrderExpanded.d.mts +3 -3
- package/dist/esm/api/types/OrdersDraftUpdateRes.d.mts +3 -3
- package/dist/esm/api/types/OrgInfoResponse.d.mts +6 -6
- package/dist/esm/api/types/OrgMemberDetails.d.mts +2 -2
- package/dist/esm/api/types/OrgMembersAndDrivers.d.mts +1 -1
- package/dist/esm/api/types/OrgPrivateData1.d.mts +12 -12
- package/dist/esm/api/types/OrgPublicData1.d.mts +5 -5
- package/dist/esm/api/types/Quote.d.mts +2 -2
- package/dist/esm/api/types/RateSheet1.d.mts +17 -17
- package/dist/esm/api/types/Session1.d.mts +14 -14
- package/dist/esm/api/types/SessionByDeviceDataPoint1.d.mts +4 -4
- package/dist/esm/api/types/SessionByDeviceDataPointMetadata1.d.mts +1 -1
- package/dist/esm/api/types/SessionByDeviceMarkOutliersResponse1.d.mts +1 -1
- package/dist/esm/api/types/SetFlightInfoReq.d.mts +2 -2
- package/dist/esm/api/types/ShipperConnectionRes.d.mts +1 -1
- package/dist/esm/api/types/ShipperCourierConnection1.d.mts +7 -7
- package/dist/esm/api/types/ShipperForwarderConnection1.d.mts +7 -7
- package/dist/esm/api/types/ShipperOrgInfoForConnections1.d.mts +6 -6
- package/dist/esm/api/types/ShippingOrderCancelledWebhookPayload.d.mts +1 -1
- package/dist/esm/api/types/ShippingOrderCompletedWebhookPayload.d.mts +1 -1
- package/dist/esm/api/types/ShippingOrderStagedWebhookPayload.d.mts +1 -1
- package/dist/esm/api/types/ShippingTaskAddedWebhookPayload.d.mts +5 -5
- package/dist/esm/api/types/ShippingTaskCompletedWebhookPayload.d.mts +5 -5
- package/dist/esm/api/types/ShippingTaskDeletedWebhookPayload.d.mts +5 -5
- package/dist/esm/api/types/ShippingTaskGroupCourierOrgAssignedWebhookPayload.d.mts +3 -3
- package/dist/esm/api/types/ShippingTaskGroupDriverAssignedWebhookPayload.d.mts +3 -3
- package/dist/esm/api/types/ShippingTaskGroupFlightInfoUpdatedWebhookPayload.d.mts +5 -5
- package/dist/esm/api/types/ShippingTaskGroupInProgressWebhookPayload.d.mts +1 -1
- package/dist/esm/api/types/ShippingTaskGroupMessageWebhookPayload.d.mts +3 -3
- package/dist/esm/api/types/ShippingTaskGroupS3ObjectAddedWebhookPayload.d.mts +1 -1
- package/dist/esm/api/types/ShippingTaskGroupTasksOrderingUpdatedWebhookPayload.d.mts +1 -1
- package/dist/esm/api/types/ShippingTaskSkippedWebhookPayload.d.mts +5 -5
- package/dist/esm/api/types/ShippingTaskTaskArtifactCompletedWebhookPayload.d.mts +5 -5
- package/dist/esm/api/types/Statement1.d.mts +20 -20
- package/dist/esm/api/types/StatementExpandedRes.d.mts +1 -1
- package/dist/esm/api/types/Task1.d.mts +19 -19
- package/dist/esm/api/types/TaskArtifact1.d.mts +16 -16
- package/dist/esm/api/types/TaskArtifactS3ObjectMetadata1.d.mts +8 -8
- package/dist/esm/api/types/TaskClientCreate1.d.mts +4 -4
- package/dist/esm/api/types/TaskClientUpdate1.d.mts +2 -2
- package/dist/esm/api/types/TaskExpanded.d.mts +2 -2
- package/dist/esm/api/types/TaskGroup1.d.mts +25 -25
- package/dist/esm/api/types/TaskGroupByDriverDataPoint1.d.mts +3 -3
- package/dist/esm/api/types/TaskGroupByDriverDataPointMetadata1.d.mts +1 -1
- package/dist/esm/api/types/TaskGroupByDriverSharingSettings1.d.mts +6 -6
- package/dist/esm/api/types/TaskGroupExpanded.d.mts +4 -4
- package/dist/esm/api/types/TaskGroupMessage1.d.mts +2 -2
- package/dist/esm/api/types/TaskGroupS3ObjectMetadata1.d.mts +8 -8
- package/dist/esm/api/types/TimezoneResponse.d.mts +1 -1
- package/dist/esm/api/types/TrackingSharingSettingsRes.d.mts +1 -1
- package/dist/esm/api/types/TrackingWebhookResponse.d.mts +1 -1
- package/dist/esm/api/types/UserPrivateData1.d.mts +6 -6
- package/dist/esm/api/types/UserPublicData1.d.mts +2 -2
- package/dist/esm/api/types/ValidationError.d.mts +2 -2
- package/dist/esm/api/types/Vehicle1.d.mts +1 -1
- package/dist/esm/api/types/WebhookAppPortalAccessRes.d.mts +1 -1
- package/dist/esm/api/types/index.d.mts +1 -2
- package/dist/esm/api/types/index.mjs +1 -2
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +1572 -1572
- package/dist/cjs/api/types/GeometryCollectionOutputGeometriesItem.d.ts +0 -28
- package/dist/cjs/api/types/GeometryCollectionOutputGeometriesItem.js +0 -5
- package/dist/esm/api/types/GeometryCollectionOutputGeometriesItem.d.mts +0 -28
- package/dist/esm/api/types/GeometryCollectionOutputGeometriesItem.mjs +0 -4
- /package/dist/cjs/api/types/{GeometryCollectionInputGeometriesItem.js → GeometryCollectionGeometriesItem.js} +0 -0
- /package/dist/esm/api/types/{GeometryCollectionInputGeometriesItem.mjs → GeometryCollectionGeometriesItem.mjs} +0 -0
|
@@ -67,34 +67,91 @@ class RateSheets {
|
|
|
67
67
|
this._options = _options;
|
|
68
68
|
}
|
|
69
69
|
/**
|
|
70
|
-
*
|
|
70
|
+
* Retrieves a rate sheet by ID. Only the owning org can fetch. | authz: allowed_org_types=[courier, forwarder], min_org_role=operator | () -> (RateSheet1)
|
|
71
71
|
*
|
|
72
72
|
* @param {string} rateSheetId
|
|
73
|
-
* @param {Chrt.billing.RateSheetsArchiveV1Request} request
|
|
74
73
|
* @param {RateSheets.RequestOptions} requestOptions - Request-specific configuration.
|
|
75
74
|
*
|
|
76
75
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
77
76
|
*
|
|
78
77
|
* @example
|
|
79
|
-
* await client.billing.rateSheets.
|
|
80
|
-
* archive: true
|
|
81
|
-
* })
|
|
78
|
+
* await client.billing.rateSheets.getV1("rate_sheet_id")
|
|
82
79
|
*/
|
|
83
|
-
|
|
84
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
80
|
+
getV1(rateSheetId, requestOptions) {
|
|
81
|
+
return core.HttpResponsePromise.fromPromise(this.__getV1(rateSheetId, requestOptions));
|
|
85
82
|
}
|
|
86
|
-
|
|
83
|
+
__getV1(rateSheetId, requestOptions) {
|
|
87
84
|
return __awaiter(this, void 0, void 0, function* () {
|
|
88
85
|
var _a, _b, _c, _d;
|
|
89
|
-
const { archive } = request;
|
|
90
|
-
const _queryParams = {};
|
|
91
|
-
_queryParams["archive"] = archive.toString();
|
|
92
86
|
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);
|
|
93
87
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
94
|
-
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, `billing/rate_sheets/
|
|
88
|
+
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, `billing/rate_sheets/v1/${encodeURIComponent(rateSheetId)}`),
|
|
89
|
+
method: "GET",
|
|
90
|
+
headers: _headers,
|
|
91
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
92
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
93
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
94
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
95
|
+
});
|
|
96
|
+
if (_response.ok) {
|
|
97
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
98
|
+
}
|
|
99
|
+
if (_response.error.reason === "status-code") {
|
|
100
|
+
switch (_response.error.statusCode) {
|
|
101
|
+
case 422:
|
|
102
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
103
|
+
default:
|
|
104
|
+
throw new errors.ChrtError({
|
|
105
|
+
statusCode: _response.error.statusCode,
|
|
106
|
+
body: _response.error.body,
|
|
107
|
+
rawResponse: _response.rawResponse,
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
switch (_response.error.reason) {
|
|
112
|
+
case "non-json":
|
|
113
|
+
throw new errors.ChrtError({
|
|
114
|
+
statusCode: _response.error.statusCode,
|
|
115
|
+
body: _response.error.rawBody,
|
|
116
|
+
rawResponse: _response.rawResponse,
|
|
117
|
+
});
|
|
118
|
+
case "timeout":
|
|
119
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /billing/rate_sheets/v1/{rate_sheet_id}.");
|
|
120
|
+
case "unknown":
|
|
121
|
+
throw new errors.ChrtError({
|
|
122
|
+
message: _response.error.errorMessage,
|
|
123
|
+
rawResponse: _response.rawResponse,
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Updates a rate sheet. Only name, comments, cargo_types, and vehicle_types can be changed. Use the archive endpoint for archiving. | authz: allowed_org_types=[courier, forwarder], min_org_role=operator | (RateSheetClientUpdate1) -> (RateSheet1)
|
|
130
|
+
*
|
|
131
|
+
* @param {string} rateSheetId
|
|
132
|
+
* @param {Chrt.billing.RateSheetClientUpdate1} request
|
|
133
|
+
* @param {RateSheets.RequestOptions} requestOptions - Request-specific configuration.
|
|
134
|
+
*
|
|
135
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
136
|
+
*
|
|
137
|
+
* @example
|
|
138
|
+
* await client.billing.rateSheets.updateV1("rate_sheet_id")
|
|
139
|
+
*/
|
|
140
|
+
updateV1(rateSheetId, request = {}, requestOptions) {
|
|
141
|
+
return core.HttpResponsePromise.fromPromise(this.__updateV1(rateSheetId, request, requestOptions));
|
|
142
|
+
}
|
|
143
|
+
__updateV1(rateSheetId_1) {
|
|
144
|
+
return __awaiter(this, arguments, void 0, function* (rateSheetId, request = {}, requestOptions) {
|
|
145
|
+
var _a, _b, _c, _d;
|
|
146
|
+
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);
|
|
147
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
148
|
+
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, `billing/rate_sheets/v1/${encodeURIComponent(rateSheetId)}`),
|
|
95
149
|
method: "PATCH",
|
|
96
150
|
headers: _headers,
|
|
97
|
-
|
|
151
|
+
contentType: "application/json",
|
|
152
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
153
|
+
requestType: "json",
|
|
154
|
+
body: request,
|
|
98
155
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
99
156
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
100
157
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -122,7 +179,7 @@ class RateSheets {
|
|
|
122
179
|
rawResponse: _response.rawResponse,
|
|
123
180
|
});
|
|
124
181
|
case "timeout":
|
|
125
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /billing/rate_sheets/
|
|
182
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /billing/rate_sheets/v1/{rate_sheet_id}.");
|
|
126
183
|
case "unknown":
|
|
127
184
|
throw new errors.ChrtError({
|
|
128
185
|
message: _response.error.errorMessage,
|
|
@@ -230,39 +287,38 @@ class RateSheets {
|
|
|
230
287
|
});
|
|
231
288
|
}
|
|
232
289
|
/**
|
|
233
|
-
*
|
|
290
|
+
* Creates a rate sheet. Couriers and forwarders only. | authz: allowed_org_types=[courier, forwarder], min_org_role=operator | (RateSheetClientCreate1) -> (PydanticObjectId)
|
|
234
291
|
*
|
|
235
|
-
* @param {Chrt.billing.
|
|
292
|
+
* @param {Chrt.billing.RateSheetClientCreate1} request
|
|
236
293
|
* @param {RateSheets.RequestOptions} requestOptions - Request-specific configuration.
|
|
237
294
|
*
|
|
238
295
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
239
296
|
*
|
|
240
297
|
* @example
|
|
241
|
-
* await client.billing.rateSheets.
|
|
242
|
-
*
|
|
243
|
-
*
|
|
244
|
-
*
|
|
298
|
+
* await client.billing.rateSheets.createV1({
|
|
299
|
+
* payment_vector_type: "shipper_pay_forwarder",
|
|
300
|
+
* schema_version: 1,
|
|
301
|
+
* service_type: "on_demand"
|
|
245
302
|
* })
|
|
246
303
|
*/
|
|
247
|
-
|
|
248
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
304
|
+
createV1(request, requestOptions) {
|
|
305
|
+
return core.HttpResponsePromise.fromPromise(this.__createV1(request, requestOptions));
|
|
249
306
|
}
|
|
250
|
-
|
|
307
|
+
__createV1(request, requestOptions) {
|
|
251
308
|
return __awaiter(this, void 0, void 0, function* () {
|
|
252
309
|
var _a, _b, _c, _d;
|
|
253
|
-
const {
|
|
310
|
+
const { payment_vector_type: paymentVectorType } = request, _body = __rest(request, ["payment_vector_type"]);
|
|
254
311
|
const _queryParams = {};
|
|
255
|
-
_queryParams["
|
|
256
|
-
_queryParams["service_type"] = serviceType;
|
|
257
|
-
if (rateSheetId !== undefined) {
|
|
258
|
-
_queryParams["rate_sheet_id"] = rateSheetId;
|
|
259
|
-
}
|
|
312
|
+
_queryParams["payment_vector_type"] = paymentVectorType;
|
|
260
313
|
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);
|
|
261
314
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
262
|
-
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, "billing/rate_sheets/
|
|
263
|
-
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, "billing/rate_sheets/v1"),
|
|
316
|
+
method: "POST",
|
|
264
317
|
headers: _headers,
|
|
318
|
+
contentType: "application/json",
|
|
265
319
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
320
|
+
requestType: "json",
|
|
321
|
+
body: _body,
|
|
266
322
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
267
323
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
268
324
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -290,7 +346,7 @@ class RateSheets {
|
|
|
290
346
|
rawResponse: _response.rawResponse,
|
|
291
347
|
});
|
|
292
348
|
case "timeout":
|
|
293
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
349
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /billing/rate_sheets/v1.");
|
|
294
350
|
case "unknown":
|
|
295
351
|
throw new errors.ChrtError({
|
|
296
352
|
message: _response.error.errorMessage,
|
|
@@ -300,36 +356,31 @@ class RateSheets {
|
|
|
300
356
|
});
|
|
301
357
|
}
|
|
302
358
|
/**
|
|
303
|
-
*
|
|
359
|
+
* Archives or unarchives a rate sheet. When archiving, automatically removes the rate sheet from all default assignments (OrgPrivateData, Connections, Drivers). | authz: allowed_org_types=[courier, forwarder], min_org_role=operator | () -> (bool)
|
|
304
360
|
*
|
|
305
|
-
* @param {
|
|
361
|
+
* @param {string} rateSheetId
|
|
362
|
+
* @param {Chrt.billing.RateSheetsArchiveV1Request} request
|
|
306
363
|
* @param {RateSheets.RequestOptions} requestOptions - Request-specific configuration.
|
|
307
364
|
*
|
|
308
365
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
309
366
|
*
|
|
310
367
|
* @example
|
|
311
|
-
* await client.billing.rateSheets.
|
|
312
|
-
*
|
|
313
|
-
* service_type: "on_demand",
|
|
314
|
-
* rate_sheet_id: "rate_sheet_id"
|
|
368
|
+
* await client.billing.rateSheets.archiveV1("rate_sheet_id", {
|
|
369
|
+
* archive: true
|
|
315
370
|
* })
|
|
316
371
|
*/
|
|
317
|
-
|
|
318
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
372
|
+
archiveV1(rateSheetId, request, requestOptions) {
|
|
373
|
+
return core.HttpResponsePromise.fromPromise(this.__archiveV1(rateSheetId, request, requestOptions));
|
|
319
374
|
}
|
|
320
|
-
|
|
375
|
+
__archiveV1(rateSheetId, request, requestOptions) {
|
|
321
376
|
return __awaiter(this, void 0, void 0, function* () {
|
|
322
377
|
var _a, _b, _c, _d;
|
|
323
|
-
const {
|
|
378
|
+
const { archive } = request;
|
|
324
379
|
const _queryParams = {};
|
|
325
|
-
_queryParams["
|
|
326
|
-
_queryParams["service_type"] = serviceType;
|
|
327
|
-
if (rateSheetId !== undefined) {
|
|
328
|
-
_queryParams["rate_sheet_id"] = rateSheetId;
|
|
329
|
-
}
|
|
380
|
+
_queryParams["archive"] = archive.toString();
|
|
330
381
|
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);
|
|
331
382
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
332
|
-
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,
|
|
383
|
+
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, `billing/rate_sheets/archive/v1/${encodeURIComponent(rateSheetId)}`),
|
|
333
384
|
method: "PATCH",
|
|
334
385
|
headers: _headers,
|
|
335
386
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -360,7 +411,7 @@ class RateSheets {
|
|
|
360
411
|
rawResponse: _response.rawResponse,
|
|
361
412
|
});
|
|
362
413
|
case "timeout":
|
|
363
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /billing/rate_sheets/
|
|
414
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /billing/rate_sheets/archive/v1/{rate_sheet_id}.");
|
|
364
415
|
case "unknown":
|
|
365
416
|
throw new errors.ChrtError({
|
|
366
417
|
message: _response.error.errorMessage,
|
|
@@ -370,36 +421,36 @@ class RateSheets {
|
|
|
370
421
|
});
|
|
371
422
|
}
|
|
372
423
|
/**
|
|
373
|
-
* Sets or clears
|
|
424
|
+
* Sets or clears the org's default rate sheet for a payment vector type and service type. Pass rate_sheet_id to set a default, or omit it to clear the default. | authz: allowed_org_types=[courier, forwarder], min_org_role=operator | () -> (bool)
|
|
374
425
|
*
|
|
375
|
-
* @param {Chrt.billing.
|
|
426
|
+
* @param {Chrt.billing.RateSheetsUpdateOrgDefaultForServiceTypeV1Request} request
|
|
376
427
|
* @param {RateSheets.RequestOptions} requestOptions - Request-specific configuration.
|
|
377
428
|
*
|
|
378
429
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
379
430
|
*
|
|
380
431
|
* @example
|
|
381
|
-
* await client.billing.rateSheets.
|
|
382
|
-
*
|
|
432
|
+
* await client.billing.rateSheets.updateOrgDefaultForServiceTypeV1({
|
|
433
|
+
* payment_vector_type: "shipper_pay_forwarder",
|
|
383
434
|
* service_type: "on_demand",
|
|
384
435
|
* rate_sheet_id: "rate_sheet_id"
|
|
385
436
|
* })
|
|
386
437
|
*/
|
|
387
|
-
|
|
388
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
438
|
+
updateOrgDefaultForServiceTypeV1(request, requestOptions) {
|
|
439
|
+
return core.HttpResponsePromise.fromPromise(this.__updateOrgDefaultForServiceTypeV1(request, requestOptions));
|
|
389
440
|
}
|
|
390
|
-
|
|
441
|
+
__updateOrgDefaultForServiceTypeV1(request, requestOptions) {
|
|
391
442
|
return __awaiter(this, void 0, void 0, function* () {
|
|
392
443
|
var _a, _b, _c, _d;
|
|
393
|
-
const {
|
|
444
|
+
const { payment_vector_type: paymentVectorType, service_type: serviceType, rate_sheet_id: rateSheetId, } = request;
|
|
394
445
|
const _queryParams = {};
|
|
395
|
-
_queryParams["
|
|
446
|
+
_queryParams["payment_vector_type"] = paymentVectorType;
|
|
396
447
|
_queryParams["service_type"] = serviceType;
|
|
397
448
|
if (rateSheetId !== undefined) {
|
|
398
449
|
_queryParams["rate_sheet_id"] = rateSheetId;
|
|
399
450
|
}
|
|
400
451
|
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);
|
|
401
452
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
402
|
-
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, "billing/rate_sheets/
|
|
453
|
+
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, "billing/rate_sheets/update_org_default_for_service_type/v1"),
|
|
403
454
|
method: "PATCH",
|
|
404
455
|
headers: _headers,
|
|
405
456
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -430,7 +481,7 @@ class RateSheets {
|
|
|
430
481
|
rawResponse: _response.rawResponse,
|
|
431
482
|
});
|
|
432
483
|
case "timeout":
|
|
433
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /billing/rate_sheets/
|
|
484
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /billing/rate_sheets/update_org_default_for_service_type/v1.");
|
|
434
485
|
case "unknown":
|
|
435
486
|
throw new errors.ChrtError({
|
|
436
487
|
message: _response.error.errorMessage,
|
|
@@ -440,36 +491,36 @@ class RateSheets {
|
|
|
440
491
|
});
|
|
441
492
|
}
|
|
442
493
|
/**
|
|
443
|
-
* Sets or clears
|
|
494
|
+
* Sets or clears a rate sheet as the default for a connection. Pass rate_sheet_id to set a default, or omit it to clear the default. One default per service type per connection. | authz: allowed_org_types=[courier, forwarder], min_org_role=operator | () -> (bool)
|
|
444
495
|
*
|
|
445
|
-
* @param {Chrt.billing.
|
|
496
|
+
* @param {Chrt.billing.RateSheetsUpdateDefaultForConnectionV1Request} request
|
|
446
497
|
* @param {RateSheets.RequestOptions} requestOptions - Request-specific configuration.
|
|
447
498
|
*
|
|
448
499
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
449
500
|
*
|
|
450
501
|
* @example
|
|
451
|
-
* await client.billing.rateSheets.
|
|
452
|
-
*
|
|
502
|
+
* await client.billing.rateSheets.updateDefaultForConnectionV1({
|
|
503
|
+
* connection_id: "connection_id",
|
|
453
504
|
* service_type: "on_demand",
|
|
454
505
|
* rate_sheet_id: "rate_sheet_id"
|
|
455
506
|
* })
|
|
456
507
|
*/
|
|
457
|
-
|
|
458
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
508
|
+
updateDefaultForConnectionV1(request, requestOptions) {
|
|
509
|
+
return core.HttpResponsePromise.fromPromise(this.__updateDefaultForConnectionV1(request, requestOptions));
|
|
459
510
|
}
|
|
460
|
-
|
|
511
|
+
__updateDefaultForConnectionV1(request, requestOptions) {
|
|
461
512
|
return __awaiter(this, void 0, void 0, function* () {
|
|
462
513
|
var _a, _b, _c, _d;
|
|
463
|
-
const {
|
|
514
|
+
const { connection_id: connectionId, service_type: serviceType, rate_sheet_id: rateSheetId } = request;
|
|
464
515
|
const _queryParams = {};
|
|
465
|
-
_queryParams["
|
|
516
|
+
_queryParams["connection_id"] = connectionId;
|
|
466
517
|
_queryParams["service_type"] = serviceType;
|
|
467
518
|
if (rateSheetId !== undefined) {
|
|
468
519
|
_queryParams["rate_sheet_id"] = rateSheetId;
|
|
469
520
|
}
|
|
470
521
|
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);
|
|
471
522
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
472
|
-
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, "billing/rate_sheets/
|
|
523
|
+
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, "billing/rate_sheets/update_default_for_connection/v1"),
|
|
473
524
|
method: "PATCH",
|
|
474
525
|
headers: _headers,
|
|
475
526
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -500,7 +551,7 @@ class RateSheets {
|
|
|
500
551
|
rawResponse: _response.rawResponse,
|
|
501
552
|
});
|
|
502
553
|
case "timeout":
|
|
503
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /billing/rate_sheets/
|
|
554
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /billing/rate_sheets/update_default_for_connection/v1.");
|
|
504
555
|
case "unknown":
|
|
505
556
|
throw new errors.ChrtError({
|
|
506
557
|
message: _response.error.errorMessage,
|
|
@@ -510,38 +561,39 @@ class RateSheets {
|
|
|
510
561
|
});
|
|
511
562
|
}
|
|
512
563
|
/**
|
|
513
|
-
*
|
|
564
|
+
* Sets or clears a rate sheet as the default for a driver. Pass rate_sheet_id to set a default, or omit it to clear the default. One default per service type per driver. | authz: allowed_org_types=[courier, forwarder], min_org_role=operator | () -> (bool)
|
|
514
565
|
*
|
|
515
|
-
* @param {Chrt.billing.
|
|
566
|
+
* @param {Chrt.billing.RateSheetsUpdateDefaultForDriverV1Request} request
|
|
516
567
|
* @param {RateSheets.RequestOptions} requestOptions - Request-specific configuration.
|
|
517
568
|
*
|
|
518
569
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
519
570
|
*
|
|
520
571
|
* @example
|
|
521
|
-
* await client.billing.rateSheets.
|
|
522
|
-
*
|
|
523
|
-
*
|
|
524
|
-
*
|
|
572
|
+
* await client.billing.rateSheets.updateDefaultForDriverV1({
|
|
573
|
+
* driver_id: "driver_id",
|
|
574
|
+
* service_type: "on_demand",
|
|
575
|
+
* rate_sheet_id: "rate_sheet_id"
|
|
525
576
|
* })
|
|
526
577
|
*/
|
|
527
|
-
|
|
528
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
578
|
+
updateDefaultForDriverV1(request, requestOptions) {
|
|
579
|
+
return core.HttpResponsePromise.fromPromise(this.__updateDefaultForDriverV1(request, requestOptions));
|
|
529
580
|
}
|
|
530
|
-
|
|
581
|
+
__updateDefaultForDriverV1(request, requestOptions) {
|
|
531
582
|
return __awaiter(this, void 0, void 0, function* () {
|
|
532
583
|
var _a, _b, _c, _d;
|
|
533
|
-
const {
|
|
584
|
+
const { driver_id: driverId, service_type: serviceType, rate_sheet_id: rateSheetId } = request;
|
|
534
585
|
const _queryParams = {};
|
|
535
|
-
_queryParams["
|
|
586
|
+
_queryParams["driver_id"] = driverId;
|
|
587
|
+
_queryParams["service_type"] = serviceType;
|
|
588
|
+
if (rateSheetId !== undefined) {
|
|
589
|
+
_queryParams["rate_sheet_id"] = rateSheetId;
|
|
590
|
+
}
|
|
536
591
|
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);
|
|
537
592
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
538
|
-
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, "billing/rate_sheets/v1"),
|
|
539
|
-
method: "
|
|
593
|
+
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, "billing/rate_sheets/update_default_for_driver/v1"),
|
|
594
|
+
method: "PATCH",
|
|
540
595
|
headers: _headers,
|
|
541
|
-
contentType: "application/json",
|
|
542
596
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
543
|
-
requestType: "json",
|
|
544
|
-
body: _body,
|
|
545
597
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
546
598
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
547
599
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -569,7 +621,7 @@ class RateSheets {
|
|
|
569
621
|
rawResponse: _response.rawResponse,
|
|
570
622
|
});
|
|
571
623
|
case "timeout":
|
|
572
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
624
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /billing/rate_sheets/update_default_for_driver/v1.");
|
|
573
625
|
case "unknown":
|
|
574
626
|
throw new errors.ChrtError({
|
|
575
627
|
message: _response.error.errorMessage,
|
|
@@ -579,91 +631,39 @@ class RateSheets {
|
|
|
579
631
|
});
|
|
580
632
|
}
|
|
581
633
|
/**
|
|
582
|
-
*
|
|
634
|
+
* Sets or clears a rate sheet as the default for an off-chrt shipper. Pass rate_sheet_id to set a default, or omit it to clear the default. One default per service type per off-chrt shipper. | authz: allowed_org_types=[courier], min_org_role=operator | () -> (bool)
|
|
583
635
|
*
|
|
584
|
-
* @param {
|
|
636
|
+
* @param {Chrt.billing.RateSheetsUpdateDefaultForOffChrtShipperV1Request} request
|
|
585
637
|
* @param {RateSheets.RequestOptions} requestOptions - Request-specific configuration.
|
|
586
638
|
*
|
|
587
639
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
588
640
|
*
|
|
589
641
|
* @example
|
|
590
|
-
* await client.billing.rateSheets.
|
|
642
|
+
* await client.billing.rateSheets.updateDefaultForOffChrtShipperV1({
|
|
643
|
+
* off_chrt_shipper_org_id: "off_chrt_shipper_org_id",
|
|
644
|
+
* service_type: "on_demand",
|
|
645
|
+
* rate_sheet_id: "rate_sheet_id"
|
|
646
|
+
* })
|
|
591
647
|
*/
|
|
592
|
-
|
|
593
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
648
|
+
updateDefaultForOffChrtShipperV1(request, requestOptions) {
|
|
649
|
+
return core.HttpResponsePromise.fromPromise(this.__updateDefaultForOffChrtShipperV1(request, requestOptions));
|
|
594
650
|
}
|
|
595
|
-
|
|
651
|
+
__updateDefaultForOffChrtShipperV1(request, requestOptions) {
|
|
596
652
|
return __awaiter(this, void 0, void 0, function* () {
|
|
597
653
|
var _a, _b, _c, _d;
|
|
598
|
-
|
|
599
|
-
const
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
605
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
606
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
607
|
-
});
|
|
608
|
-
if (_response.ok) {
|
|
609
|
-
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
610
|
-
}
|
|
611
|
-
if (_response.error.reason === "status-code") {
|
|
612
|
-
switch (_response.error.statusCode) {
|
|
613
|
-
case 422:
|
|
614
|
-
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
615
|
-
default:
|
|
616
|
-
throw new errors.ChrtError({
|
|
617
|
-
statusCode: _response.error.statusCode,
|
|
618
|
-
body: _response.error.body,
|
|
619
|
-
rawResponse: _response.rawResponse,
|
|
620
|
-
});
|
|
621
|
-
}
|
|
622
|
-
}
|
|
623
|
-
switch (_response.error.reason) {
|
|
624
|
-
case "non-json":
|
|
625
|
-
throw new errors.ChrtError({
|
|
626
|
-
statusCode: _response.error.statusCode,
|
|
627
|
-
body: _response.error.rawBody,
|
|
628
|
-
rawResponse: _response.rawResponse,
|
|
629
|
-
});
|
|
630
|
-
case "timeout":
|
|
631
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /billing/rate_sheets/v1/{rate_sheet_id}.");
|
|
632
|
-
case "unknown":
|
|
633
|
-
throw new errors.ChrtError({
|
|
634
|
-
message: _response.error.errorMessage,
|
|
635
|
-
rawResponse: _response.rawResponse,
|
|
636
|
-
});
|
|
654
|
+
const { off_chrt_shipper_org_id: offChrtShipperOrgId, service_type: serviceType, rate_sheet_id: rateSheetId, } = request;
|
|
655
|
+
const _queryParams = {};
|
|
656
|
+
_queryParams["off_chrt_shipper_org_id"] = offChrtShipperOrgId;
|
|
657
|
+
_queryParams["service_type"] = serviceType;
|
|
658
|
+
if (rateSheetId !== undefined) {
|
|
659
|
+
_queryParams["rate_sheet_id"] = rateSheetId;
|
|
637
660
|
}
|
|
638
|
-
});
|
|
639
|
-
}
|
|
640
|
-
/**
|
|
641
|
-
* Updates a rate sheet. Only name, comments, cargo_types, and vehicle_types can be changed. Use the archive endpoint for archiving. | authz: allowed_org_types=[courier, forwarder], min_org_role=operator | (RateSheetClientUpdate1) -> (RateSheet1)
|
|
642
|
-
*
|
|
643
|
-
* @param {string} rateSheetId
|
|
644
|
-
* @param {Chrt.billing.RateSheetClientUpdate1} request
|
|
645
|
-
* @param {RateSheets.RequestOptions} requestOptions - Request-specific configuration.
|
|
646
|
-
*
|
|
647
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
648
|
-
*
|
|
649
|
-
* @example
|
|
650
|
-
* await client.billing.rateSheets.updateV1("rate_sheet_id")
|
|
651
|
-
*/
|
|
652
|
-
updateV1(rateSheetId, request = {}, requestOptions) {
|
|
653
|
-
return core.HttpResponsePromise.fromPromise(this.__updateV1(rateSheetId, request, requestOptions));
|
|
654
|
-
}
|
|
655
|
-
__updateV1(rateSheetId_1) {
|
|
656
|
-
return __awaiter(this, arguments, void 0, function* (rateSheetId, request = {}, requestOptions) {
|
|
657
|
-
var _a, _b, _c, _d;
|
|
658
661
|
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);
|
|
659
662
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
660
|
-
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,
|
|
663
|
+
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, "billing/rate_sheets/update_default_for_off_chrt_shipper/v1"),
|
|
661
664
|
method: "PATCH",
|
|
662
665
|
headers: _headers,
|
|
663
|
-
|
|
664
|
-
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
665
|
-
requestType: "json",
|
|
666
|
-
body: request,
|
|
666
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
667
667
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
668
668
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
669
669
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -691,7 +691,7 @@ class RateSheets {
|
|
|
691
691
|
rawResponse: _response.rawResponse,
|
|
692
692
|
});
|
|
693
693
|
case "timeout":
|
|
694
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /billing/rate_sheets/v1
|
|
694
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /billing/rate_sheets/update_default_for_off_chrt_shipper/v1.");
|
|
695
695
|
case "unknown":
|
|
696
696
|
throw new errors.ChrtError({
|
|
697
697
|
message: _response.error.errorMessage,
|
|
@@ -12,26 +12,26 @@ import * as Chrt from "../../../../../../index.js";
|
|
|
12
12
|
*/
|
|
13
13
|
export interface RateSheetClientCreate1 {
|
|
14
14
|
payment_vector_type: Chrt.PaymentVectorTypeEnum1;
|
|
15
|
-
|
|
16
|
-
additional_mileage_rate_usd_per_mile?: number | null;
|
|
17
|
-
after_hours_rate_usd_per_instance?: number | null;
|
|
15
|
+
schema_version: number;
|
|
18
16
|
archived?: boolean;
|
|
17
|
+
name?: string | null;
|
|
18
|
+
comments?: string | null;
|
|
19
|
+
cargo_types?: Chrt.CargoTypeEnum1[];
|
|
20
|
+
vehicle_types?: Chrt.VehicleTypeEnum[];
|
|
21
|
+
service_type: Chrt.ServiceTypeEnum1;
|
|
19
22
|
base_mileage_distance_miles?: number | null;
|
|
20
23
|
base_mileage_rate_usd_per_instance?: number | null;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
dangerous_goods_rate_usd_per_instance?: number | null;
|
|
24
|
-
extra_stop_rate_usd?: number | null;
|
|
25
|
-
fuel_surcharge_rate_usd_per_mile?: number | null;
|
|
26
|
-
holiday_rate_usd_per_instance?: number | null;
|
|
24
|
+
/** applies only to the additional/incremental miles */
|
|
25
|
+
additional_mileage_rate_usd_per_mile?: number | null;
|
|
27
26
|
long_distance_surcharge_miles_before_surcharge?: number | null;
|
|
28
27
|
/** applies only to the additional/incremental miles */
|
|
29
28
|
long_distance_surcharge_rate_usd_per_mile?: number | null;
|
|
30
|
-
|
|
31
|
-
schema_version: number;
|
|
32
|
-
service_type: Chrt.ServiceTypeEnum1;
|
|
33
|
-
vehicle_types?: Chrt.VehicleTypeEnum[];
|
|
29
|
+
fuel_surcharge_rate_usd_per_mile?: number | null;
|
|
34
30
|
wait_time_before_charge_minutes?: number | null;
|
|
35
31
|
wait_time_rate_usd_per_minute?: number | null;
|
|
32
|
+
extra_stop_rate_usd?: number | null;
|
|
33
|
+
dangerous_goods_rate_usd_per_instance?: number | null;
|
|
34
|
+
after_hours_rate_usd_per_instance?: number | null;
|
|
36
35
|
weekend_rate_usd_per_instance?: number | null;
|
|
36
|
+
holiday_rate_usd_per_instance?: number | null;
|
|
37
37
|
}
|
|
@@ -7,8 +7,8 @@ import * as Chrt from "../../../../../../index.js";
|
|
|
7
7
|
* {}
|
|
8
8
|
*/
|
|
9
9
|
export interface RateSheetClientUpdate1 {
|
|
10
|
-
cargo_types?: Chrt.CargoTypeEnum1[] | null;
|
|
11
|
-
comments?: string | null;
|
|
12
10
|
name?: string | null;
|
|
11
|
+
comments?: string | null;
|
|
12
|
+
cargo_types?: Chrt.CargoTypeEnum1[] | null;
|
|
13
13
|
vehicle_types?: Chrt.VehicleTypeEnum[] | null;
|
|
14
14
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { type
|
|
1
|
+
export { type RateSheetClientUpdate1 } from "./RateSheetClientUpdate1.js";
|
|
2
2
|
export { type RateSheetsListByOrgV1Request } from "./RateSheetsListByOrgV1Request.js";
|
|
3
|
+
export { type RateSheetClientCreate1 } from "./RateSheetClientCreate1.js";
|
|
4
|
+
export { type RateSheetsArchiveV1Request } from "./RateSheetsArchiveV1Request.js";
|
|
5
|
+
export { type RateSheetsUpdateOrgDefaultForServiceTypeV1Request } from "./RateSheetsUpdateOrgDefaultForServiceTypeV1Request.js";
|
|
3
6
|
export { type RateSheetsUpdateDefaultForConnectionV1Request } from "./RateSheetsUpdateDefaultForConnectionV1Request.js";
|
|
4
7
|
export { type RateSheetsUpdateDefaultForDriverV1Request } from "./RateSheetsUpdateDefaultForDriverV1Request.js";
|
|
5
8
|
export { type RateSheetsUpdateDefaultForOffChrtShipperV1Request } from "./RateSheetsUpdateDefaultForOffChrtShipperV1Request.js";
|
|
6
|
-
export { type RateSheetsUpdateOrgDefaultForServiceTypeV1Request } from "./RateSheetsUpdateOrgDefaultForServiceTypeV1Request.js";
|
|
7
|
-
export { type RateSheetClientCreate1 } from "./RateSheetClientCreate1.js";
|
|
8
|
-
export { type RateSheetClientUpdate1 } from "./RateSheetClientUpdate1.js";
|