@chrt-inc/typescript-sdk 0.0.174 → 0.0.183
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 +24 -24
- package/dist/cjs/Client.js +48 -48
- package/dist/cjs/api/index.d.ts +1 -1
- package/dist/cjs/api/index.js +1 -1
- package/dist/cjs/api/resources/connections/client/Client.d.ts +8 -8
- package/dist/cjs/api/resources/connections/client/Client.js +14 -14
- package/dist/cjs/api/resources/connections/resources/connectionToCourier/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/connections/resources/connectionToCourier/client/Client.js +1 -1
- package/dist/cjs/api/resources/courierPayDriverLineItemGroup/client/Client.d.ts +26 -26
- package/dist/cjs/api/resources/courierPayDriverLineItemGroup/client/Client.js +79 -79
- package/dist/cjs/api/resources/courierPayDriverLineItemGroup/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/courierPayDriverLineItemGroup/resources/addLineItems/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/courierPayDriverLineItemGroup/resources/addLineItems/client/Client.js +1 -1
- package/dist/cjs/api/resources/courierPayDriverLineItemGroup/resources/removeLineItems/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/courierPayDriverLineItemGroup/resources/removeLineItems/client/Client.js +1 -1
- package/dist/cjs/api/resources/courierPayDriverPayouts/client/Client.d.ts +16 -12
- package/dist/cjs/api/resources/courierPayDriverPayouts/client/Client.js +27 -23
- package/dist/cjs/api/resources/courierPayDriverPayouts/client/requests/CourierPayDriverPayoutClientCreate1.d.ts +3 -3
- package/dist/cjs/api/resources/courierPayDriverRateSheets/client/Client.d.ts +39 -26
- package/dist/cjs/api/resources/courierPayDriverRateSheets/client/Client.js +112 -67
- package/dist/cjs/api/resources/courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetClientCreate1.d.ts +24 -24
- package/dist/cjs/api/resources/courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetClientUpdate1.d.ts +12 -12
- package/dist/cjs/api/resources/courierPayDriverRateSheets/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/courierPayDriverRateSheets/index.d.ts +0 -1
- package/dist/cjs/api/resources/courierPayDriverRateSheets/index.js +0 -1
- package/dist/cjs/api/resources/dev/client/Client.d.ts +28 -10
- package/dist/cjs/api/resources/dev/client/Client.js +103 -46
- package/dist/cjs/api/resources/drivers/client/Client.d.ts +52 -50
- package/dist/cjs/api/resources/drivers/client/Client.js +109 -107
- package/dist/cjs/api/resources/drivers/client/requests/SetDriverActivationReq.d.ts +3 -3
- package/dist/cjs/api/resources/drivers/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/index.d.ts +14 -15
- package/dist/cjs/api/resources/index.js +15 -16
- package/dist/cjs/api/resources/milestoneNotifications/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/milestoneNotifications/client/Client.js +2 -2
- package/dist/cjs/api/resources/milestoneNotifications/client/requests/MilestoneNotificationPreferencesClientCreate1.d.ts +3 -3
- package/dist/cjs/api/resources/milestones/client/Client.d.ts +16 -16
- package/dist/cjs/api/resources/milestones/client/Client.js +25 -25
- package/dist/cjs/api/resources/milestones/client/requests/MilestoneAddToTaskReq.d.ts +1 -1
- package/dist/cjs/api/resources/milestones/client/requests/MilestoneUpdateReq.d.ts +1 -1
- package/dist/cjs/api/resources/milestones/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/milestones/resources/blurhash/client/Client.d.ts +1 -5
- package/dist/cjs/api/resources/milestones/resources/blurhash/client/Client.js +1 -5
- package/dist/cjs/api/resources/milestones/resources/images/client/Client.d.ts +14 -14
- package/dist/cjs/api/resources/milestones/resources/images/client/Client.js +35 -35
- package/dist/cjs/api/resources/milestones/resources/index.d.ts +1 -1
- package/dist/cjs/api/resources/milestones/resources/index.js +2 -2
- package/dist/cjs/api/resources/notifications/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/notifications/client/Client.js +6 -6
- package/dist/cjs/api/resources/notifications/resources/courierPreferences/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/notifications/resources/courierPreferences/client/Client.js +2 -2
- package/dist/cjs/api/resources/notifications/resources/courierPreferences/client/requests/CourierNotificationPreferencesClientCreate1.d.ts +3 -3
- package/dist/cjs/api/resources/notifications/resources/index.d.ts +2 -2
- package/dist/cjs/api/resources/notifications/resources/index.js +3 -3
- 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/notifications/resources/shipper/client/requests/ShipperNotificationPreferencesClientCreate1.d.ts +3 -3
- package/dist/cjs/api/resources/offChrtShipperOrgConnectionInfo/client/Client.d.ts +6 -6
- package/dist/cjs/api/resources/offChrtShipperOrgConnectionInfo/client/Client.js +6 -6
- package/dist/cjs/api/resources/offChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientCreate1.d.ts +8 -8
- package/dist/cjs/api/resources/offChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientUpdate1.d.ts +4 -4
- package/dist/cjs/api/resources/orders/client/Client.d.ts +30 -26
- package/dist/cjs/api/resources/orders/client/Client.js +74 -70
- package/dist/cjs/api/resources/orders/client/requests/CreateOrderReq.d.ts +16 -16
- package/dist/cjs/api/resources/orders/resources/full/client/Client.d.ts +12 -12
- package/dist/cjs/api/resources/orders/resources/full/client/Client.js +33 -33
- package/dist/cjs/api/resources/orgConnectionInfos/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/orgConnectionInfos/client/Client.js +6 -6
- package/dist/cjs/api/resources/orgConnectionInfos/resources/courier/client/Client.d.ts +5 -5
- package/dist/cjs/api/resources/orgConnectionInfos/resources/courier/client/Client.js +5 -5
- package/dist/cjs/api/resources/orgConnectionInfos/resources/courier/client/requests/CourierOrgConnectionInfoClientCreate1.d.ts +7 -7
- package/dist/cjs/api/resources/orgConnectionInfos/resources/courier/client/requests/CourierOrgConnectionInfoClientUpdate1.d.ts +4 -4
- package/dist/cjs/api/resources/orgConnectionInfos/resources/index.d.ts +2 -2
- package/dist/cjs/api/resources/orgConnectionInfos/resources/index.js +3 -3
- package/dist/cjs/api/resources/orgConnectionInfos/resources/shipper/client/Client.d.ts +5 -5
- package/dist/cjs/api/resources/orgConnectionInfos/resources/shipper/client/Client.js +5 -5
- package/dist/cjs/api/resources/orgConnectionInfos/resources/shipper/client/requests/ShipperOrgConnectionInfoClientCreate1.d.ts +7 -7
- package/dist/cjs/api/resources/orgConnectionInfos/resources/shipper/client/requests/ShipperOrgConnectionInfoClientUpdate1.d.ts +4 -4
- package/dist/cjs/api/resources/orgProfiles/client/Client.d.ts +15 -17
- package/dist/cjs/api/resources/orgProfiles/client/Client.js +43 -49
- package/dist/cjs/api/resources/orgProfiles/client/requests/CourierOrgProfileClientCreate3.d.ts +3 -3
- package/dist/cjs/api/resources/orgProfiles/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/orgs/client/Client.d.ts +41 -37
- package/dist/cjs/api/resources/orgs/client/Client.js +90 -86
- package/dist/cjs/api/resources/orgs/client/requests/CreateOrgPublicDataReq.d.ts +3 -3
- package/dist/cjs/api/resources/orgs/client/requests/UpdateOrgPublicDataReq.d.ts +1 -1
- package/dist/cjs/api/resources/payments/client/Client.d.ts +3 -7
- package/dist/cjs/api/resources/payments/client/Client.js +3 -7
- package/dist/cjs/api/resources/root/client/Client.d.ts +19 -13
- package/dist/cjs/api/resources/root/client/Client.js +31 -25
- package/dist/cjs/api/resources/shipperContactInfo/client/Client.d.ts +42 -42
- package/dist/cjs/api/resources/shipperContactInfo/client/Client.js +90 -90
- package/dist/cjs/api/resources/shipperContactInfo/client/requests/ShipperContactInfoClientUpdate1.d.ts +4 -4
- package/dist/cjs/api/resources/taskGroups/client/Client.d.ts +24 -18
- package/dist/cjs/api/resources/taskGroups/client/Client.js +43 -37
- package/dist/cjs/api/resources/taskGroups/client/requests/UpdateTaskGroupReq.d.ts +2 -2
- package/dist/cjs/api/resources/taskGroups/resources/full/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/taskGroups/resources/full/client/Client.js +2 -2
- package/dist/cjs/api/resources/taskGroups/resources/togglePause/client/Client.d.ts +4 -2
- package/dist/cjs/api/resources/taskGroups/resources/togglePause/client/Client.js +4 -2
- package/dist/cjs/api/resources/taskGroups/resources/togglePause/client/requests/SetTaskGroupPauseReq.d.ts +3 -3
- package/dist/cjs/api/resources/users/client/Client.d.ts +2 -0
- package/dist/cjs/api/resources/users/client/Client.js +2 -0
- package/dist/cjs/api/types/Cargo1.d.ts +6 -6
- package/dist/cjs/api/types/CargoClientCreate1.d.ts +3 -3
- package/dist/cjs/api/types/CourierNotificationPreferences1.d.ts +9 -9
- package/dist/cjs/api/types/CourierOrgConnectionInfo1.d.ts +10 -10
- package/dist/cjs/api/types/CourierOrgProfile3.d.ts +3 -3
- package/dist/cjs/api/types/CourierPayDriverLineItemGroup1.d.ts +5 -5
- package/dist/cjs/api/types/CourierPayDriverLineItemGroupClientCreate1.d.ts +1 -1
- package/dist/cjs/api/types/CourierPayDriverRateSheet1.d.ts +16 -16
- package/dist/cjs/api/types/DecodedJwtWithOrgAndUserId.d.ts +8 -8
- package/dist/cjs/api/types/Driver1.d.ts +6 -6
- package/dist/cjs/api/types/Expense1.d.ts +3 -3
- package/dist/cjs/api/types/Feature.d.ts +3 -3
- package/dist/cjs/api/types/GetOrderFullRes.d.ts +2 -2
- package/dist/cjs/api/types/Incident1.d.ts +1 -1
- package/dist/cjs/api/types/Insurance1.d.ts +1 -1
- package/dist/cjs/api/types/LineItem1.d.ts +1 -1
- package/dist/cjs/api/types/Milestone1.d.ts +13 -13
- package/dist/cjs/api/types/MilestoneClientCreate1.d.ts +1 -1
- package/dist/cjs/api/types/MilestoneNotificationPreferences1.d.ts +9 -9
- package/dist/cjs/api/types/OffChrtShipperOrgConnectionInfo1.d.ts +11 -11
- package/dist/cjs/api/types/Order1.d.ts +11 -11
- 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/OrgPublicData2.d.ts +4 -4
- package/dist/cjs/api/types/PayablesInvoice1.d.ts +11 -11
- package/dist/cjs/api/types/ReceivablesInvoice1.d.ts +7 -7
- package/dist/cjs/api/types/ShipperContactInfo1.d.ts +11 -11
- package/dist/cjs/api/types/ShipperContactInfoClientCreate1.d.ts +6 -6
- package/dist/cjs/api/types/ShipperCourierConnection1.d.ts +4 -4
- package/dist/cjs/api/types/ShipperNotificationPreferences1.d.ts +9 -9
- package/dist/cjs/api/types/ShipperOrgConnectionInfo1.d.ts +6 -6
- package/dist/cjs/api/types/StripeConnectInvoice1.d.ts +5 -5
- package/dist/cjs/api/types/Task1.d.ts +13 -13
- package/dist/cjs/api/types/TaskClientCreate1.d.ts +4 -4
- package/dist/cjs/api/types/TaskCreateBundle.d.ts +2 -2
- package/dist/cjs/api/types/TaskGroup1.d.ts +11 -11
- package/dist/cjs/api/types/TaskWithDetails.d.ts +2 -2
- package/dist/cjs/api/types/Tracker1.d.ts +1 -1
- package/dist/cjs/api/types/TrackerSession1.d.ts +1 -1
- package/dist/cjs/api/types/UserPublicData6.d.ts +6 -6
- package/dist/cjs/api/types/Vehicle1.d.ts +1 -1
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.d.mts +24 -24
- package/dist/esm/Client.mjs +36 -36
- package/dist/esm/api/index.d.mts +1 -1
- package/dist/esm/api/index.mjs +1 -1
- package/dist/esm/api/resources/connections/client/Client.d.mts +8 -8
- package/dist/esm/api/resources/connections/client/Client.mjs +14 -14
- package/dist/esm/api/resources/connections/resources/connectionToCourier/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/connections/resources/connectionToCourier/client/Client.mjs +1 -1
- package/dist/esm/api/resources/courierPayDriverLineItemGroup/client/Client.d.mts +26 -26
- package/dist/esm/api/resources/courierPayDriverLineItemGroup/client/Client.mjs +79 -79
- package/dist/esm/api/resources/courierPayDriverLineItemGroup/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/courierPayDriverLineItemGroup/resources/addLineItems/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/courierPayDriverLineItemGroup/resources/addLineItems/client/Client.mjs +1 -1
- package/dist/esm/api/resources/courierPayDriverLineItemGroup/resources/removeLineItems/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/courierPayDriverLineItemGroup/resources/removeLineItems/client/Client.mjs +1 -1
- package/dist/esm/api/resources/courierPayDriverPayouts/client/Client.d.mts +16 -12
- package/dist/esm/api/resources/courierPayDriverPayouts/client/Client.mjs +27 -23
- package/dist/esm/api/resources/courierPayDriverPayouts/client/requests/CourierPayDriverPayoutClientCreate1.d.mts +3 -3
- package/dist/esm/api/resources/courierPayDriverRateSheets/client/Client.d.mts +39 -26
- package/dist/esm/api/resources/courierPayDriverRateSheets/client/Client.mjs +112 -67
- package/dist/esm/api/resources/courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetClientCreate1.d.mts +24 -24
- package/dist/esm/api/resources/courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetClientUpdate1.d.mts +12 -12
- package/dist/esm/api/resources/courierPayDriverRateSheets/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/courierPayDriverRateSheets/index.d.mts +0 -1
- package/dist/esm/api/resources/courierPayDriverRateSheets/index.mjs +0 -1
- package/dist/esm/api/resources/dev/client/Client.d.mts +28 -10
- package/dist/esm/api/resources/dev/client/Client.mjs +103 -46
- package/dist/esm/api/resources/drivers/client/Client.d.mts +52 -50
- package/dist/esm/api/resources/drivers/client/Client.mjs +109 -107
- package/dist/esm/api/resources/drivers/client/requests/SetDriverActivationReq.d.mts +3 -3
- package/dist/esm/api/resources/drivers/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/index.d.mts +14 -15
- package/dist/esm/api/resources/index.mjs +14 -15
- package/dist/esm/api/resources/milestoneNotifications/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/milestoneNotifications/client/Client.mjs +2 -2
- package/dist/esm/api/resources/milestoneNotifications/client/requests/MilestoneNotificationPreferencesClientCreate1.d.mts +3 -3
- package/dist/esm/api/resources/milestones/client/Client.d.mts +16 -16
- package/dist/esm/api/resources/milestones/client/Client.mjs +24 -24
- package/dist/esm/api/resources/milestones/client/requests/MilestoneAddToTaskReq.d.mts +1 -1
- package/dist/esm/api/resources/milestones/client/requests/MilestoneUpdateReq.d.mts +1 -1
- package/dist/esm/api/resources/milestones/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/milestones/resources/blurhash/client/Client.d.mts +1 -5
- package/dist/esm/api/resources/milestones/resources/blurhash/client/Client.mjs +1 -5
- package/dist/esm/api/resources/milestones/resources/images/client/Client.d.mts +14 -14
- package/dist/esm/api/resources/milestones/resources/images/client/Client.mjs +35 -35
- package/dist/esm/api/resources/milestones/resources/index.d.mts +1 -1
- package/dist/esm/api/resources/milestones/resources/index.mjs +1 -1
- package/dist/esm/api/resources/notifications/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/notifications/client/Client.mjs +5 -5
- package/dist/esm/api/resources/notifications/resources/courierPreferences/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/notifications/resources/courierPreferences/client/Client.mjs +2 -2
- package/dist/esm/api/resources/notifications/resources/courierPreferences/client/requests/CourierNotificationPreferencesClientCreate1.d.mts +3 -3
- package/dist/esm/api/resources/notifications/resources/index.d.mts +2 -2
- package/dist/esm/api/resources/notifications/resources/index.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/notifications/resources/shipper/client/requests/ShipperNotificationPreferencesClientCreate1.d.mts +3 -3
- package/dist/esm/api/resources/offChrtShipperOrgConnectionInfo/client/Client.d.mts +6 -6
- package/dist/esm/api/resources/offChrtShipperOrgConnectionInfo/client/Client.mjs +6 -6
- package/dist/esm/api/resources/offChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientCreate1.d.mts +8 -8
- package/dist/esm/api/resources/offChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientUpdate1.d.mts +4 -4
- package/dist/esm/api/resources/orders/client/Client.d.mts +30 -26
- package/dist/esm/api/resources/orders/client/Client.mjs +74 -70
- package/dist/esm/api/resources/orders/client/requests/CreateOrderReq.d.mts +16 -16
- package/dist/esm/api/resources/orders/resources/full/client/Client.d.mts +12 -12
- package/dist/esm/api/resources/orders/resources/full/client/Client.mjs +33 -33
- package/dist/esm/api/resources/orgConnectionInfos/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/orgConnectionInfos/client/Client.mjs +5 -5
- package/dist/esm/api/resources/orgConnectionInfos/resources/courier/client/Client.d.mts +5 -5
- package/dist/esm/api/resources/orgConnectionInfos/resources/courier/client/Client.mjs +5 -5
- package/dist/esm/api/resources/orgConnectionInfos/resources/courier/client/requests/CourierOrgConnectionInfoClientCreate1.d.mts +7 -7
- package/dist/esm/api/resources/orgConnectionInfos/resources/courier/client/requests/CourierOrgConnectionInfoClientUpdate1.d.mts +4 -4
- package/dist/esm/api/resources/orgConnectionInfos/resources/index.d.mts +2 -2
- package/dist/esm/api/resources/orgConnectionInfos/resources/index.mjs +2 -2
- package/dist/esm/api/resources/orgConnectionInfos/resources/shipper/client/Client.d.mts +5 -5
- package/dist/esm/api/resources/orgConnectionInfos/resources/shipper/client/Client.mjs +5 -5
- package/dist/esm/api/resources/orgConnectionInfos/resources/shipper/client/requests/ShipperOrgConnectionInfoClientCreate1.d.mts +7 -7
- package/dist/esm/api/resources/orgConnectionInfos/resources/shipper/client/requests/ShipperOrgConnectionInfoClientUpdate1.d.mts +4 -4
- package/dist/esm/api/resources/orgProfiles/client/Client.d.mts +15 -17
- package/dist/esm/api/resources/orgProfiles/client/Client.mjs +43 -49
- package/dist/esm/api/resources/orgProfiles/client/requests/CourierOrgProfileClientCreate3.d.mts +3 -3
- package/dist/esm/api/resources/orgProfiles/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/orgs/client/Client.d.mts +41 -37
- package/dist/esm/api/resources/orgs/client/Client.mjs +90 -86
- package/dist/esm/api/resources/orgs/client/requests/CreateOrgPublicDataReq.d.mts +3 -3
- package/dist/esm/api/resources/orgs/client/requests/UpdateOrgPublicDataReq.d.mts +1 -1
- package/dist/esm/api/resources/payments/client/Client.d.mts +3 -7
- package/dist/esm/api/resources/payments/client/Client.mjs +3 -7
- package/dist/esm/api/resources/root/client/Client.d.mts +19 -13
- package/dist/esm/api/resources/root/client/Client.mjs +31 -25
- package/dist/esm/api/resources/shipperContactInfo/client/Client.d.mts +42 -42
- package/dist/esm/api/resources/shipperContactInfo/client/Client.mjs +90 -90
- package/dist/esm/api/resources/shipperContactInfo/client/requests/ShipperContactInfoClientUpdate1.d.mts +4 -4
- package/dist/esm/api/resources/taskGroups/client/Client.d.mts +24 -18
- package/dist/esm/api/resources/taskGroups/client/Client.mjs +43 -37
- package/dist/esm/api/resources/taskGroups/client/requests/UpdateTaskGroupReq.d.mts +2 -2
- package/dist/esm/api/resources/taskGroups/resources/full/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/taskGroups/resources/full/client/Client.mjs +2 -2
- package/dist/esm/api/resources/taskGroups/resources/togglePause/client/Client.d.mts +4 -2
- package/dist/esm/api/resources/taskGroups/resources/togglePause/client/Client.mjs +4 -2
- package/dist/esm/api/resources/taskGroups/resources/togglePause/client/requests/SetTaskGroupPauseReq.d.mts +3 -3
- package/dist/esm/api/resources/users/client/Client.d.mts +2 -0
- package/dist/esm/api/resources/users/client/Client.mjs +2 -0
- package/dist/esm/api/types/Cargo1.d.mts +6 -6
- package/dist/esm/api/types/CargoClientCreate1.d.mts +3 -3
- package/dist/esm/api/types/CourierNotificationPreferences1.d.mts +9 -9
- package/dist/esm/api/types/CourierOrgConnectionInfo1.d.mts +10 -10
- package/dist/esm/api/types/CourierOrgProfile3.d.mts +3 -3
- package/dist/esm/api/types/CourierPayDriverLineItemGroup1.d.mts +5 -5
- package/dist/esm/api/types/CourierPayDriverLineItemGroupClientCreate1.d.mts +1 -1
- package/dist/esm/api/types/CourierPayDriverRateSheet1.d.mts +16 -16
- package/dist/esm/api/types/DecodedJwtWithOrgAndUserId.d.mts +8 -8
- package/dist/esm/api/types/Driver1.d.mts +6 -6
- package/dist/esm/api/types/Expense1.d.mts +3 -3
- package/dist/esm/api/types/Feature.d.mts +3 -3
- package/dist/esm/api/types/GetOrderFullRes.d.mts +2 -2
- package/dist/esm/api/types/Incident1.d.mts +1 -1
- package/dist/esm/api/types/Insurance1.d.mts +1 -1
- package/dist/esm/api/types/LineItem1.d.mts +1 -1
- package/dist/esm/api/types/Milestone1.d.mts +13 -13
- package/dist/esm/api/types/MilestoneClientCreate1.d.mts +1 -1
- package/dist/esm/api/types/MilestoneNotificationPreferences1.d.mts +9 -9
- package/dist/esm/api/types/OffChrtShipperOrgConnectionInfo1.d.mts +11 -11
- package/dist/esm/api/types/Order1.d.mts +11 -11
- 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/OrgPublicData2.d.mts +4 -4
- package/dist/esm/api/types/PayablesInvoice1.d.mts +11 -11
- package/dist/esm/api/types/ReceivablesInvoice1.d.mts +7 -7
- package/dist/esm/api/types/ShipperContactInfo1.d.mts +11 -11
- package/dist/esm/api/types/ShipperContactInfoClientCreate1.d.mts +6 -6
- package/dist/esm/api/types/ShipperCourierConnection1.d.mts +4 -4
- package/dist/esm/api/types/ShipperNotificationPreferences1.d.mts +9 -9
- package/dist/esm/api/types/ShipperOrgConnectionInfo1.d.mts +6 -6
- package/dist/esm/api/types/StripeConnectInvoice1.d.mts +5 -5
- package/dist/esm/api/types/Task1.d.mts +13 -13
- package/dist/esm/api/types/TaskClientCreate1.d.mts +4 -4
- package/dist/esm/api/types/TaskCreateBundle.d.mts +2 -2
- package/dist/esm/api/types/TaskGroup1.d.mts +11 -11
- package/dist/esm/api/types/TaskWithDetails.d.mts +2 -2
- package/dist/esm/api/types/Tracker1.d.mts +1 -1
- package/dist/esm/api/types/TrackerSession1.d.mts +1 -1
- package/dist/esm/api/types/UserPublicData6.d.mts +6 -6
- package/dist/esm/api/types/Vehicle1.d.mts +1 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +1196 -764
- package/dist/cjs/api/resources/courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetsGetRequest.d.ts +0 -11
- package/dist/cjs/api/resources/courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetsGetRequest.js +0 -5
- package/dist/cjs/api/resources/courierPayDriverRateSheets/types/CourierPayDriverRateSheetsGetResponse.d.ts +0 -5
- package/dist/cjs/api/resources/courierPayDriverRateSheets/types/CourierPayDriverRateSheetsGetResponse.js +0 -5
- package/dist/cjs/api/resources/courierPayDriverRateSheets/types/index.d.ts +0 -1
- package/dist/cjs/api/resources/courierPayDriverRateSheets/types/index.js +0 -17
- package/dist/cjs/api/resources/orgProfiles/client/requests/OrgProfilesGetAvatarRequest.d.ts +0 -12
- package/dist/cjs/api/resources/orgProfiles/client/requests/OrgProfilesGetAvatarRequest.js +0 -5
- package/dist/esm/api/resources/courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetsGetRequest.d.mts +0 -11
- package/dist/esm/api/resources/courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetsGetRequest.mjs +0 -4
- package/dist/esm/api/resources/courierPayDriverRateSheets/types/CourierPayDriverRateSheetsGetResponse.d.mts +0 -5
- package/dist/esm/api/resources/courierPayDriverRateSheets/types/CourierPayDriverRateSheetsGetResponse.mjs +0 -4
- package/dist/esm/api/resources/courierPayDriverRateSheets/types/index.d.mts +0 -1
- package/dist/esm/api/resources/courierPayDriverRateSheets/types/index.mjs +0 -1
- package/dist/esm/api/resources/orgProfiles/client/requests/OrgProfilesGetAvatarRequest.d.mts +0 -12
- package/dist/esm/api/resources/orgProfiles/client/requests/OrgProfilesGetAvatarRequest.mjs +0 -4
|
@@ -56,7 +56,7 @@ class ShipperContactInfo {
|
|
|
56
56
|
this._options = _options;
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
|
-
*
|
|
59
|
+
* Retrieves the authenticated user's own shipper contact information.
|
|
60
60
|
*
|
|
61
61
|
* @param {ShipperContactInfo.RequestOptions} requestOptions - Request-specific configuration.
|
|
62
62
|
*
|
|
@@ -105,27 +105,21 @@ class ShipperContactInfo {
|
|
|
105
105
|
});
|
|
106
106
|
}
|
|
107
107
|
/**
|
|
108
|
-
*
|
|
109
|
-
* Returns:
|
|
110
|
-
* 1. Contacts created by the courier org that are linked to the shipper org
|
|
111
|
-
* 2. Contacts created by the shipper org themselves (if courier and shipper are connected)
|
|
108
|
+
* Lists all shipper contacts created by the authenticated organization.
|
|
112
109
|
*
|
|
113
|
-
* @param {string} shipperOrgId
|
|
114
110
|
* @param {ShipperContactInfo.RequestOptions} requestOptions - Request-specific configuration.
|
|
115
111
|
*
|
|
116
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
117
|
-
*
|
|
118
112
|
* @example
|
|
119
|
-
* await client.shipperContactInfo.
|
|
113
|
+
* await client.shipperContactInfo.listByJwtOrgId()
|
|
120
114
|
*/
|
|
121
|
-
|
|
122
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
115
|
+
listByJwtOrgId(requestOptions) {
|
|
116
|
+
return core.HttpResponsePromise.fromPromise(this.__listByJwtOrgId(requestOptions));
|
|
123
117
|
}
|
|
124
|
-
|
|
118
|
+
__listByJwtOrgId(requestOptions) {
|
|
125
119
|
return __awaiter(this, void 0, void 0, function* () {
|
|
126
120
|
var _a, _b, _c, _d;
|
|
127
121
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
128
|
-
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local,
|
|
122
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "oort/shipper_contact_info/list/by_jwt_org_id"),
|
|
129
123
|
method: "GET",
|
|
130
124
|
headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
131
125
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -136,16 +130,11 @@ class ShipperContactInfo {
|
|
|
136
130
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
137
131
|
}
|
|
138
132
|
if (_response.error.reason === "status-code") {
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
statusCode: _response.error.statusCode,
|
|
145
|
-
body: _response.error.body,
|
|
146
|
-
rawResponse: _response.rawResponse,
|
|
147
|
-
});
|
|
148
|
-
}
|
|
133
|
+
throw new errors.ChrtError({
|
|
134
|
+
statusCode: _response.error.statusCode,
|
|
135
|
+
body: _response.error.body,
|
|
136
|
+
rawResponse: _response.rawResponse,
|
|
137
|
+
});
|
|
149
138
|
}
|
|
150
139
|
switch (_response.error.reason) {
|
|
151
140
|
case "non-json":
|
|
@@ -155,7 +144,7 @@ class ShipperContactInfo {
|
|
|
155
144
|
rawResponse: _response.rawResponse,
|
|
156
145
|
});
|
|
157
146
|
case "timeout":
|
|
158
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/shipper_contact_info/
|
|
147
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/shipper_contact_info/list/by_jwt_org_id.");
|
|
159
148
|
case "unknown":
|
|
160
149
|
throw new errors.ChrtError({
|
|
161
150
|
message: _response.error.errorMessage,
|
|
@@ -165,31 +154,26 @@ class ShipperContactInfo {
|
|
|
165
154
|
});
|
|
166
155
|
}
|
|
167
156
|
/**
|
|
168
|
-
*
|
|
157
|
+
* Lists all shipper contacts accessible to the courier organization for a specific on-platform shipper.
|
|
169
158
|
*
|
|
170
|
-
* @param {
|
|
159
|
+
* @param {string} shipperOrgId
|
|
171
160
|
* @param {ShipperContactInfo.RequestOptions} requestOptions - Request-specific configuration.
|
|
172
161
|
*
|
|
173
162
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
174
163
|
*
|
|
175
164
|
* @example
|
|
176
|
-
* await client.shipperContactInfo.
|
|
177
|
-
* schema_version: 1
|
|
178
|
-
* })
|
|
165
|
+
* await client.shipperContactInfo.listCourierContactsByShipperOrgId("shipper_org_id")
|
|
179
166
|
*/
|
|
180
|
-
|
|
181
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
167
|
+
listCourierContactsByShipperOrgId(shipperOrgId, requestOptions) {
|
|
168
|
+
return core.HttpResponsePromise.fromPromise(this.__listCourierContactsByShipperOrgId(shipperOrgId, requestOptions));
|
|
182
169
|
}
|
|
183
|
-
|
|
170
|
+
__listCourierContactsByShipperOrgId(shipperOrgId, requestOptions) {
|
|
184
171
|
return __awaiter(this, void 0, void 0, function* () {
|
|
185
172
|
var _a, _b, _c, _d;
|
|
186
173
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
187
|
-
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local,
|
|
188
|
-
method: "
|
|
174
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, `oort/shipper_contact_info/courier_contacts/list/${encodeURIComponent(shipperOrgId)}`),
|
|
175
|
+
method: "GET",
|
|
189
176
|
headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
190
|
-
contentType: "application/json",
|
|
191
|
-
requestType: "json",
|
|
192
|
-
body: request,
|
|
193
177
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
194
178
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
195
179
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -217,7 +201,7 @@ class ShipperContactInfo {
|
|
|
217
201
|
rawResponse: _response.rawResponse,
|
|
218
202
|
});
|
|
219
203
|
case "timeout":
|
|
220
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
204
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/shipper_contact_info/courier_contacts/list/{shipper_org_id}.");
|
|
221
205
|
case "unknown":
|
|
222
206
|
throw new errors.ChrtError({
|
|
223
207
|
message: _response.error.errorMessage,
|
|
@@ -227,31 +211,26 @@ class ShipperContactInfo {
|
|
|
227
211
|
});
|
|
228
212
|
}
|
|
229
213
|
/**
|
|
230
|
-
*
|
|
214
|
+
* Lists all shipper contacts for a specific off-platform shipper connection.
|
|
231
215
|
*
|
|
232
|
-
* @param {
|
|
216
|
+
* @param {string} offChrtShipperOrgConnectionInfoId
|
|
233
217
|
* @param {ShipperContactInfo.RequestOptions} requestOptions - Request-specific configuration.
|
|
234
218
|
*
|
|
235
219
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
236
220
|
*
|
|
237
221
|
* @example
|
|
238
|
-
* await client.shipperContactInfo.
|
|
239
|
-
* schema_version: 1
|
|
240
|
-
* })
|
|
222
|
+
* await client.shipperContactInfo.listByOffChrtShipperOrgConnectionInfoId("off_chrt_shipper_org_connection_info_id")
|
|
241
223
|
*/
|
|
242
|
-
|
|
243
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
224
|
+
listByOffChrtShipperOrgConnectionInfoId(offChrtShipperOrgConnectionInfoId, requestOptions) {
|
|
225
|
+
return core.HttpResponsePromise.fromPromise(this.__listByOffChrtShipperOrgConnectionInfoId(offChrtShipperOrgConnectionInfoId, requestOptions));
|
|
244
226
|
}
|
|
245
|
-
|
|
227
|
+
__listByOffChrtShipperOrgConnectionInfoId(offChrtShipperOrgConnectionInfoId, requestOptions) {
|
|
246
228
|
return __awaiter(this, void 0, void 0, function* () {
|
|
247
229
|
var _a, _b, _c, _d;
|
|
248
230
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
249
|
-
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local,
|
|
250
|
-
method: "
|
|
231
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, `oort/shipper_contact_info/list/${encodeURIComponent(offChrtShipperOrgConnectionInfoId)}`),
|
|
232
|
+
method: "GET",
|
|
251
233
|
headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
252
|
-
contentType: "application/json",
|
|
253
|
-
requestType: "json",
|
|
254
|
-
body: request,
|
|
255
234
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
256
235
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
257
236
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -279,7 +258,7 @@ class ShipperContactInfo {
|
|
|
279
258
|
rawResponse: _response.rawResponse,
|
|
280
259
|
});
|
|
281
260
|
case "timeout":
|
|
282
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
261
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/shipper_contact_info/list/{off_chrt_shipper_org_connection_info_id}.");
|
|
283
262
|
case "unknown":
|
|
284
263
|
throw new errors.ChrtError({
|
|
285
264
|
message: _response.error.errorMessage,
|
|
@@ -289,23 +268,25 @@ class ShipperContactInfo {
|
|
|
289
268
|
});
|
|
290
269
|
}
|
|
291
270
|
/**
|
|
271
|
+
* Retrieves a specific shipper contact by ID if authorized to access it.
|
|
272
|
+
*
|
|
292
273
|
* @param {string} id
|
|
293
274
|
* @param {ShipperContactInfo.RequestOptions} requestOptions - Request-specific configuration.
|
|
294
275
|
*
|
|
295
276
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
296
277
|
*
|
|
297
278
|
* @example
|
|
298
|
-
* await client.shipperContactInfo.
|
|
279
|
+
* await client.shipperContactInfo.getById("id")
|
|
299
280
|
*/
|
|
300
|
-
|
|
301
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
281
|
+
getById(id, requestOptions) {
|
|
282
|
+
return core.HttpResponsePromise.fromPromise(this.__getById(id, requestOptions));
|
|
302
283
|
}
|
|
303
|
-
|
|
284
|
+
__getById(id, requestOptions) {
|
|
304
285
|
return __awaiter(this, void 0, void 0, function* () {
|
|
305
286
|
var _a, _b, _c, _d;
|
|
306
287
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
307
|
-
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, `oort/shipper_contact_info
|
|
308
|
-
method: "
|
|
288
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, `oort/shipper_contact_info/${encodeURIComponent(id)}`),
|
|
289
|
+
method: "GET",
|
|
309
290
|
headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
310
291
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
311
292
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -334,7 +315,7 @@ class ShipperContactInfo {
|
|
|
334
315
|
rawResponse: _response.rawResponse,
|
|
335
316
|
});
|
|
336
317
|
case "timeout":
|
|
337
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
318
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/shipper_contact_info/{id}.");
|
|
338
319
|
case "unknown":
|
|
339
320
|
throw new errors.ChrtError({
|
|
340
321
|
message: _response.error.errorMessage,
|
|
@@ -344,23 +325,31 @@ class ShipperContactInfo {
|
|
|
344
325
|
});
|
|
345
326
|
}
|
|
346
327
|
/**
|
|
347
|
-
*
|
|
328
|
+
* Creates contact information for an on-platform shipper organization or user.
|
|
348
329
|
*
|
|
330
|
+
* @param {Chrt.ShipperContactInfoClientCreate1} request
|
|
349
331
|
* @param {ShipperContactInfo.RequestOptions} requestOptions - Request-specific configuration.
|
|
350
332
|
*
|
|
333
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
334
|
+
*
|
|
351
335
|
* @example
|
|
352
|
-
* await client.shipperContactInfo.
|
|
336
|
+
* await client.shipperContactInfo.createOnPlatform({
|
|
337
|
+
* schema_version: 1
|
|
338
|
+
* })
|
|
353
339
|
*/
|
|
354
|
-
|
|
355
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
340
|
+
createOnPlatform(request, requestOptions) {
|
|
341
|
+
return core.HttpResponsePromise.fromPromise(this.__createOnPlatform(request, requestOptions));
|
|
356
342
|
}
|
|
357
|
-
|
|
343
|
+
__createOnPlatform(request, requestOptions) {
|
|
358
344
|
return __awaiter(this, void 0, void 0, function* () {
|
|
359
345
|
var _a, _b, _c, _d;
|
|
360
346
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
361
|
-
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "oort/shipper_contact_info/
|
|
362
|
-
method: "
|
|
347
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "oort/shipper_contact_info/create/on_platform"),
|
|
348
|
+
method: "POST",
|
|
363
349
|
headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
350
|
+
contentType: "application/json",
|
|
351
|
+
requestType: "json",
|
|
352
|
+
body: request,
|
|
364
353
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
365
354
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
366
355
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -369,11 +358,16 @@ class ShipperContactInfo {
|
|
|
369
358
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
370
359
|
}
|
|
371
360
|
if (_response.error.reason === "status-code") {
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
361
|
+
switch (_response.error.statusCode) {
|
|
362
|
+
case 422:
|
|
363
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
364
|
+
default:
|
|
365
|
+
throw new errors.ChrtError({
|
|
366
|
+
statusCode: _response.error.statusCode,
|
|
367
|
+
body: _response.error.body,
|
|
368
|
+
rawResponse: _response.rawResponse,
|
|
369
|
+
});
|
|
370
|
+
}
|
|
377
371
|
}
|
|
378
372
|
switch (_response.error.reason) {
|
|
379
373
|
case "non-json":
|
|
@@ -383,7 +377,7 @@ class ShipperContactInfo {
|
|
|
383
377
|
rawResponse: _response.rawResponse,
|
|
384
378
|
});
|
|
385
379
|
case "timeout":
|
|
386
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
380
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/shipper_contact_info/create/on_platform.");
|
|
387
381
|
case "unknown":
|
|
388
382
|
throw new errors.ChrtError({
|
|
389
383
|
message: _response.error.errorMessage,
|
|
@@ -393,27 +387,31 @@ class ShipperContactInfo {
|
|
|
393
387
|
});
|
|
394
388
|
}
|
|
395
389
|
/**
|
|
396
|
-
*
|
|
397
|
-
* Returns only contacts created by the courier org since off-platform shippers cannot create their own contacts.
|
|
390
|
+
* Creates contact information for an off-platform shipper using connection info.
|
|
398
391
|
*
|
|
399
|
-
* @param {
|
|
392
|
+
* @param {Chrt.ShipperContactInfoClientCreate1} request
|
|
400
393
|
* @param {ShipperContactInfo.RequestOptions} requestOptions - Request-specific configuration.
|
|
401
394
|
*
|
|
402
395
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
403
396
|
*
|
|
404
397
|
* @example
|
|
405
|
-
* await client.shipperContactInfo.
|
|
398
|
+
* await client.shipperContactInfo.createOffPlatform({
|
|
399
|
+
* schema_version: 1
|
|
400
|
+
* })
|
|
406
401
|
*/
|
|
407
|
-
|
|
408
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
402
|
+
createOffPlatform(request, requestOptions) {
|
|
403
|
+
return core.HttpResponsePromise.fromPromise(this.__createOffPlatform(request, requestOptions));
|
|
409
404
|
}
|
|
410
|
-
|
|
405
|
+
__createOffPlatform(request, requestOptions) {
|
|
411
406
|
return __awaiter(this, void 0, void 0, function* () {
|
|
412
407
|
var _a, _b, _c, _d;
|
|
413
408
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
414
|
-
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local,
|
|
415
|
-
method: "
|
|
409
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "oort/shipper_contact_info/create/off_platform"),
|
|
410
|
+
method: "POST",
|
|
416
411
|
headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
412
|
+
contentType: "application/json",
|
|
413
|
+
requestType: "json",
|
|
414
|
+
body: request,
|
|
417
415
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
418
416
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
419
417
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -441,7 +439,7 @@ class ShipperContactInfo {
|
|
|
441
439
|
rawResponse: _response.rawResponse,
|
|
442
440
|
});
|
|
443
441
|
case "timeout":
|
|
444
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
442
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/shipper_contact_info/create/off_platform.");
|
|
445
443
|
case "unknown":
|
|
446
444
|
throw new errors.ChrtError({
|
|
447
445
|
message: _response.error.errorMessage,
|
|
@@ -451,6 +449,8 @@ class ShipperContactInfo {
|
|
|
451
449
|
});
|
|
452
450
|
}
|
|
453
451
|
/**
|
|
452
|
+
* Updates existing shipper contact information owned by the authenticated organization.
|
|
453
|
+
*
|
|
454
454
|
* @param {string} shipperContactInfoId
|
|
455
455
|
* @param {Chrt.ShipperContactInfoClientUpdate1} request
|
|
456
456
|
* @param {ShipperContactInfo.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -510,7 +510,7 @@ class ShipperContactInfo {
|
|
|
510
510
|
});
|
|
511
511
|
}
|
|
512
512
|
/**
|
|
513
|
-
*
|
|
513
|
+
* Deletes shipper contact information owned by the authenticated organization.
|
|
514
514
|
*
|
|
515
515
|
* @param {string} id
|
|
516
516
|
* @param {ShipperContactInfo.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -518,17 +518,17 @@ class ShipperContactInfo {
|
|
|
518
518
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
519
519
|
*
|
|
520
520
|
* @example
|
|
521
|
-
* await client.shipperContactInfo.
|
|
521
|
+
* await client.shipperContactInfo.deleteById("id")
|
|
522
522
|
*/
|
|
523
|
-
|
|
524
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
523
|
+
deleteById(id, requestOptions) {
|
|
524
|
+
return core.HttpResponsePromise.fromPromise(this.__deleteById(id, requestOptions));
|
|
525
525
|
}
|
|
526
|
-
|
|
526
|
+
__deleteById(id, requestOptions) {
|
|
527
527
|
return __awaiter(this, void 0, void 0, function* () {
|
|
528
528
|
var _a, _b, _c, _d;
|
|
529
529
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
530
|
-
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, `oort/shipper_contact_info/${encodeURIComponent(id)}`),
|
|
531
|
-
method: "
|
|
530
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, `oort/shipper_contact_info/delete/${encodeURIComponent(id)}`),
|
|
531
|
+
method: "DELETE",
|
|
532
532
|
headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
533
533
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
534
534
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -557,7 +557,7 @@ class ShipperContactInfo {
|
|
|
557
557
|
rawResponse: _response.rawResponse,
|
|
558
558
|
});
|
|
559
559
|
case "timeout":
|
|
560
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
560
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling DELETE /oort/shipper_contact_info/delete/{id}.");
|
|
561
561
|
case "unknown":
|
|
562
562
|
throw new errors.ChrtError({
|
|
563
563
|
message: _response.error.errorMessage,
|
|
@@ -8,14 +8,14 @@ import * as Chrt from "../../../../index.js";
|
|
|
8
8
|
*/
|
|
9
9
|
export interface ShipperContactInfoClientUpdate1 {
|
|
10
10
|
company_name?: string;
|
|
11
|
+
industry?: string;
|
|
12
|
+
street_address?: Chrt.Feature;
|
|
11
13
|
contact_first_name?: string;
|
|
12
14
|
contact_last_name?: string;
|
|
15
|
+
phone_number_primary?: string;
|
|
16
|
+
phone_number_secondary?: string;
|
|
13
17
|
email_address_primary?: string;
|
|
14
18
|
email_address_secondary?: string;
|
|
15
|
-
industry?: string;
|
|
16
19
|
job_title?: string;
|
|
17
20
|
notes?: string;
|
|
18
|
-
phone_number_primary?: string;
|
|
19
|
-
phone_number_secondary?: string;
|
|
20
|
-
street_address?: Chrt.Feature;
|
|
21
21
|
}
|
|
@@ -35,7 +35,7 @@ export declare class TaskGroups {
|
|
|
35
35
|
get full(): Full;
|
|
36
36
|
get togglePause(): TogglePause;
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
38
|
+
* Lists all task groups assigned to the authenticated courier organization with their associated tasks.
|
|
39
39
|
*
|
|
40
40
|
* @param {TaskGroups.RequestOptions} requestOptions - Request-specific configuration.
|
|
41
41
|
*
|
|
@@ -45,28 +45,21 @@ export declare class TaskGroups {
|
|
|
45
45
|
listByCourierOrgId(requestOptions?: TaskGroups.RequestOptions): core.HttpResponsePromise<Chrt.MultipleTaskGroupsWithTasks>;
|
|
46
46
|
private __listByCourierOrgId;
|
|
47
47
|
/**
|
|
48
|
-
*
|
|
49
|
-
* @param {TaskGroups.RequestOptions} requestOptions - Request-specific configuration.
|
|
48
|
+
* Retrieves a specific task group by ID with its associated tasks.
|
|
50
49
|
*
|
|
51
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
52
|
-
*
|
|
53
|
-
* @example
|
|
54
|
-
* await client.taskGroups.listByDriverId("driver_id")
|
|
55
|
-
*/
|
|
56
|
-
listByDriverId(driverId: string, requestOptions?: TaskGroups.RequestOptions): core.HttpResponsePromise<Chrt.TaskGroup1[]>;
|
|
57
|
-
private __listByDriverId;
|
|
58
|
-
/**
|
|
59
50
|
* @param {string} id
|
|
60
51
|
* @param {TaskGroups.RequestOptions} requestOptions - Request-specific configuration.
|
|
61
52
|
*
|
|
62
53
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
63
54
|
*
|
|
64
55
|
* @example
|
|
65
|
-
* await client.taskGroups.
|
|
56
|
+
* await client.taskGroups.getById("id")
|
|
66
57
|
*/
|
|
67
|
-
|
|
68
|
-
private
|
|
58
|
+
getById(id: string, requestOptions?: TaskGroups.RequestOptions): core.HttpResponsePromise<Chrt.TaskGroupWithTasks>;
|
|
59
|
+
private __getById;
|
|
69
60
|
/**
|
|
61
|
+
* Updates task group driver assignments by adding or removing drivers.
|
|
62
|
+
*
|
|
70
63
|
* @param {Chrt.UpdateTaskGroupReq} request
|
|
71
64
|
* @param {TaskGroups.RequestOptions} requestOptions - Request-specific configuration.
|
|
72
65
|
*
|
|
@@ -80,7 +73,20 @@ export declare class TaskGroups {
|
|
|
80
73
|
update(request: Chrt.UpdateTaskGroupReq, requestOptions?: TaskGroups.RequestOptions): core.HttpResponsePromise<Chrt.UpdateTaskGroupRes>;
|
|
81
74
|
private __update;
|
|
82
75
|
/**
|
|
83
|
-
*
|
|
76
|
+
* Lists all task groups assigned to a specific driver.
|
|
77
|
+
*
|
|
78
|
+
* @param {string} driverId
|
|
79
|
+
* @param {TaskGroups.RequestOptions} requestOptions - Request-specific configuration.
|
|
80
|
+
*
|
|
81
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
82
|
+
*
|
|
83
|
+
* @example
|
|
84
|
+
* await client.taskGroups.listByDriverId("driver_id")
|
|
85
|
+
*/
|
|
86
|
+
listByDriverId(driverId: string, requestOptions?: TaskGroups.RequestOptions): core.HttpResponsePromise<Chrt.TaskGroup1[]>;
|
|
87
|
+
private __listByDriverId;
|
|
88
|
+
/**
|
|
89
|
+
* Starts a task group by changing its status to in-progress and updating the order status.
|
|
84
90
|
*
|
|
85
91
|
* @param {string} id
|
|
86
92
|
* @param {TaskGroups.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -88,9 +94,9 @@ export declare class TaskGroups {
|
|
|
88
94
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
89
95
|
*
|
|
90
96
|
* @example
|
|
91
|
-
* await client.taskGroups.
|
|
97
|
+
* await client.taskGroups.start("id")
|
|
92
98
|
*/
|
|
93
|
-
|
|
94
|
-
private
|
|
99
|
+
start(id: string, requestOptions?: TaskGroups.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
100
|
+
private __start;
|
|
95
101
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
96
102
|
}
|