@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
|
@@ -20,7 +20,7 @@ export class ShipperContactInfo {
|
|
|
20
20
|
this._options = _options;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* Retrieves the authenticated user's own shipper contact information.
|
|
24
24
|
*
|
|
25
25
|
* @param {ShipperContactInfo.RequestOptions} requestOptions - Request-specific configuration.
|
|
26
26
|
*
|
|
@@ -69,27 +69,21 @@ export class ShipperContactInfo {
|
|
|
69
69
|
});
|
|
70
70
|
}
|
|
71
71
|
/**
|
|
72
|
-
*
|
|
73
|
-
* Returns:
|
|
74
|
-
* 1. Contacts created by the courier org that are linked to the shipper org
|
|
75
|
-
* 2. Contacts created by the shipper org themselves (if courier and shipper are connected)
|
|
72
|
+
* Lists all shipper contacts created by the authenticated organization.
|
|
76
73
|
*
|
|
77
|
-
* @param {string} shipperOrgId
|
|
78
74
|
* @param {ShipperContactInfo.RequestOptions} requestOptions - Request-specific configuration.
|
|
79
75
|
*
|
|
80
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
81
|
-
*
|
|
82
76
|
* @example
|
|
83
|
-
* await client.shipperContactInfo.
|
|
77
|
+
* await client.shipperContactInfo.listByJwtOrgId()
|
|
84
78
|
*/
|
|
85
|
-
|
|
86
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
79
|
+
listByJwtOrgId(requestOptions) {
|
|
80
|
+
return core.HttpResponsePromise.fromPromise(this.__listByJwtOrgId(requestOptions));
|
|
87
81
|
}
|
|
88
|
-
|
|
82
|
+
__listByJwtOrgId(requestOptions) {
|
|
89
83
|
return __awaiter(this, void 0, void 0, function* () {
|
|
90
84
|
var _a, _b, _c, _d;
|
|
91
85
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
92
|
-
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,
|
|
86
|
+
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"),
|
|
93
87
|
method: "GET",
|
|
94
88
|
headers: mergeHeaders((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
95
89
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -100,16 +94,11 @@ export class ShipperContactInfo {
|
|
|
100
94
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
101
95
|
}
|
|
102
96
|
if (_response.error.reason === "status-code") {
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
statusCode: _response.error.statusCode,
|
|
109
|
-
body: _response.error.body,
|
|
110
|
-
rawResponse: _response.rawResponse,
|
|
111
|
-
});
|
|
112
|
-
}
|
|
97
|
+
throw new errors.ChrtError({
|
|
98
|
+
statusCode: _response.error.statusCode,
|
|
99
|
+
body: _response.error.body,
|
|
100
|
+
rawResponse: _response.rawResponse,
|
|
101
|
+
});
|
|
113
102
|
}
|
|
114
103
|
switch (_response.error.reason) {
|
|
115
104
|
case "non-json":
|
|
@@ -119,7 +108,7 @@ export class ShipperContactInfo {
|
|
|
119
108
|
rawResponse: _response.rawResponse,
|
|
120
109
|
});
|
|
121
110
|
case "timeout":
|
|
122
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/shipper_contact_info/
|
|
111
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/shipper_contact_info/list/by_jwt_org_id.");
|
|
123
112
|
case "unknown":
|
|
124
113
|
throw new errors.ChrtError({
|
|
125
114
|
message: _response.error.errorMessage,
|
|
@@ -129,31 +118,26 @@ export class ShipperContactInfo {
|
|
|
129
118
|
});
|
|
130
119
|
}
|
|
131
120
|
/**
|
|
132
|
-
*
|
|
121
|
+
* Lists all shipper contacts accessible to the courier organization for a specific on-platform shipper.
|
|
133
122
|
*
|
|
134
|
-
* @param {
|
|
123
|
+
* @param {string} shipperOrgId
|
|
135
124
|
* @param {ShipperContactInfo.RequestOptions} requestOptions - Request-specific configuration.
|
|
136
125
|
*
|
|
137
126
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
138
127
|
*
|
|
139
128
|
* @example
|
|
140
|
-
* await client.shipperContactInfo.
|
|
141
|
-
* schema_version: 1
|
|
142
|
-
* })
|
|
129
|
+
* await client.shipperContactInfo.listCourierContactsByShipperOrgId("shipper_org_id")
|
|
143
130
|
*/
|
|
144
|
-
|
|
145
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
131
|
+
listCourierContactsByShipperOrgId(shipperOrgId, requestOptions) {
|
|
132
|
+
return core.HttpResponsePromise.fromPromise(this.__listCourierContactsByShipperOrgId(shipperOrgId, requestOptions));
|
|
146
133
|
}
|
|
147
|
-
|
|
134
|
+
__listCourierContactsByShipperOrgId(shipperOrgId, requestOptions) {
|
|
148
135
|
return __awaiter(this, void 0, void 0, function* () {
|
|
149
136
|
var _a, _b, _c, _d;
|
|
150
137
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
151
|
-
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,
|
|
152
|
-
method: "
|
|
138
|
+
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)}`),
|
|
139
|
+
method: "GET",
|
|
153
140
|
headers: mergeHeaders((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
154
|
-
contentType: "application/json",
|
|
155
|
-
requestType: "json",
|
|
156
|
-
body: request,
|
|
157
141
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
158
142
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
159
143
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -181,7 +165,7 @@ export class ShipperContactInfo {
|
|
|
181
165
|
rawResponse: _response.rawResponse,
|
|
182
166
|
});
|
|
183
167
|
case "timeout":
|
|
184
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
168
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/shipper_contact_info/courier_contacts/list/{shipper_org_id}.");
|
|
185
169
|
case "unknown":
|
|
186
170
|
throw new errors.ChrtError({
|
|
187
171
|
message: _response.error.errorMessage,
|
|
@@ -191,31 +175,26 @@ export class ShipperContactInfo {
|
|
|
191
175
|
});
|
|
192
176
|
}
|
|
193
177
|
/**
|
|
194
|
-
*
|
|
178
|
+
* Lists all shipper contacts for a specific off-platform shipper connection.
|
|
195
179
|
*
|
|
196
|
-
* @param {
|
|
180
|
+
* @param {string} offChrtShipperOrgConnectionInfoId
|
|
197
181
|
* @param {ShipperContactInfo.RequestOptions} requestOptions - Request-specific configuration.
|
|
198
182
|
*
|
|
199
183
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
200
184
|
*
|
|
201
185
|
* @example
|
|
202
|
-
* await client.shipperContactInfo.
|
|
203
|
-
* schema_version: 1
|
|
204
|
-
* })
|
|
186
|
+
* await client.shipperContactInfo.listByOffChrtShipperOrgConnectionInfoId("off_chrt_shipper_org_connection_info_id")
|
|
205
187
|
*/
|
|
206
|
-
|
|
207
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
188
|
+
listByOffChrtShipperOrgConnectionInfoId(offChrtShipperOrgConnectionInfoId, requestOptions) {
|
|
189
|
+
return core.HttpResponsePromise.fromPromise(this.__listByOffChrtShipperOrgConnectionInfoId(offChrtShipperOrgConnectionInfoId, requestOptions));
|
|
208
190
|
}
|
|
209
|
-
|
|
191
|
+
__listByOffChrtShipperOrgConnectionInfoId(offChrtShipperOrgConnectionInfoId, requestOptions) {
|
|
210
192
|
return __awaiter(this, void 0, void 0, function* () {
|
|
211
193
|
var _a, _b, _c, _d;
|
|
212
194
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
213
|
-
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,
|
|
214
|
-
method: "
|
|
195
|
+
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)}`),
|
|
196
|
+
method: "GET",
|
|
215
197
|
headers: mergeHeaders((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
216
|
-
contentType: "application/json",
|
|
217
|
-
requestType: "json",
|
|
218
|
-
body: request,
|
|
219
198
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
220
199
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
221
200
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -243,7 +222,7 @@ export class ShipperContactInfo {
|
|
|
243
222
|
rawResponse: _response.rawResponse,
|
|
244
223
|
});
|
|
245
224
|
case "timeout":
|
|
246
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
225
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/shipper_contact_info/list/{off_chrt_shipper_org_connection_info_id}.");
|
|
247
226
|
case "unknown":
|
|
248
227
|
throw new errors.ChrtError({
|
|
249
228
|
message: _response.error.errorMessage,
|
|
@@ -253,23 +232,25 @@ export class ShipperContactInfo {
|
|
|
253
232
|
});
|
|
254
233
|
}
|
|
255
234
|
/**
|
|
235
|
+
* Retrieves a specific shipper contact by ID if authorized to access it.
|
|
236
|
+
*
|
|
256
237
|
* @param {string} id
|
|
257
238
|
* @param {ShipperContactInfo.RequestOptions} requestOptions - Request-specific configuration.
|
|
258
239
|
*
|
|
259
240
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
260
241
|
*
|
|
261
242
|
* @example
|
|
262
|
-
* await client.shipperContactInfo.
|
|
243
|
+
* await client.shipperContactInfo.getById("id")
|
|
263
244
|
*/
|
|
264
|
-
|
|
265
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
245
|
+
getById(id, requestOptions) {
|
|
246
|
+
return core.HttpResponsePromise.fromPromise(this.__getById(id, requestOptions));
|
|
266
247
|
}
|
|
267
|
-
|
|
248
|
+
__getById(id, requestOptions) {
|
|
268
249
|
return __awaiter(this, void 0, void 0, function* () {
|
|
269
250
|
var _a, _b, _c, _d;
|
|
270
251
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
271
|
-
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
|
|
272
|
-
method: "
|
|
252
|
+
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)}`),
|
|
253
|
+
method: "GET",
|
|
273
254
|
headers: mergeHeaders((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
274
255
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
275
256
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -298,7 +279,7 @@ export class ShipperContactInfo {
|
|
|
298
279
|
rawResponse: _response.rawResponse,
|
|
299
280
|
});
|
|
300
281
|
case "timeout":
|
|
301
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
282
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/shipper_contact_info/{id}.");
|
|
302
283
|
case "unknown":
|
|
303
284
|
throw new errors.ChrtError({
|
|
304
285
|
message: _response.error.errorMessage,
|
|
@@ -308,23 +289,31 @@ export class ShipperContactInfo {
|
|
|
308
289
|
});
|
|
309
290
|
}
|
|
310
291
|
/**
|
|
311
|
-
*
|
|
292
|
+
* Creates contact information for an on-platform shipper organization or user.
|
|
312
293
|
*
|
|
294
|
+
* @param {Chrt.ShipperContactInfoClientCreate1} request
|
|
313
295
|
* @param {ShipperContactInfo.RequestOptions} requestOptions - Request-specific configuration.
|
|
314
296
|
*
|
|
297
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
298
|
+
*
|
|
315
299
|
* @example
|
|
316
|
-
* await client.shipperContactInfo.
|
|
300
|
+
* await client.shipperContactInfo.createOnPlatform({
|
|
301
|
+
* schema_version: 1
|
|
302
|
+
* })
|
|
317
303
|
*/
|
|
318
|
-
|
|
319
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
304
|
+
createOnPlatform(request, requestOptions) {
|
|
305
|
+
return core.HttpResponsePromise.fromPromise(this.__createOnPlatform(request, requestOptions));
|
|
320
306
|
}
|
|
321
|
-
|
|
307
|
+
__createOnPlatform(request, requestOptions) {
|
|
322
308
|
return __awaiter(this, void 0, void 0, function* () {
|
|
323
309
|
var _a, _b, _c, _d;
|
|
324
310
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
325
|
-
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/
|
|
326
|
-
method: "
|
|
311
|
+
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"),
|
|
312
|
+
method: "POST",
|
|
327
313
|
headers: mergeHeaders((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
314
|
+
contentType: "application/json",
|
|
315
|
+
requestType: "json",
|
|
316
|
+
body: request,
|
|
328
317
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
329
318
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
330
319
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -333,11 +322,16 @@ export class ShipperContactInfo {
|
|
|
333
322
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
334
323
|
}
|
|
335
324
|
if (_response.error.reason === "status-code") {
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
325
|
+
switch (_response.error.statusCode) {
|
|
326
|
+
case 422:
|
|
327
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
328
|
+
default:
|
|
329
|
+
throw new errors.ChrtError({
|
|
330
|
+
statusCode: _response.error.statusCode,
|
|
331
|
+
body: _response.error.body,
|
|
332
|
+
rawResponse: _response.rawResponse,
|
|
333
|
+
});
|
|
334
|
+
}
|
|
341
335
|
}
|
|
342
336
|
switch (_response.error.reason) {
|
|
343
337
|
case "non-json":
|
|
@@ -347,7 +341,7 @@ export class ShipperContactInfo {
|
|
|
347
341
|
rawResponse: _response.rawResponse,
|
|
348
342
|
});
|
|
349
343
|
case "timeout":
|
|
350
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
344
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/shipper_contact_info/create/on_platform.");
|
|
351
345
|
case "unknown":
|
|
352
346
|
throw new errors.ChrtError({
|
|
353
347
|
message: _response.error.errorMessage,
|
|
@@ -357,27 +351,31 @@ export class ShipperContactInfo {
|
|
|
357
351
|
});
|
|
358
352
|
}
|
|
359
353
|
/**
|
|
360
|
-
*
|
|
361
|
-
* Returns only contacts created by the courier org since off-platform shippers cannot create their own contacts.
|
|
354
|
+
* Creates contact information for an off-platform shipper using connection info.
|
|
362
355
|
*
|
|
363
|
-
* @param {
|
|
356
|
+
* @param {Chrt.ShipperContactInfoClientCreate1} request
|
|
364
357
|
* @param {ShipperContactInfo.RequestOptions} requestOptions - Request-specific configuration.
|
|
365
358
|
*
|
|
366
359
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
367
360
|
*
|
|
368
361
|
* @example
|
|
369
|
-
* await client.shipperContactInfo.
|
|
362
|
+
* await client.shipperContactInfo.createOffPlatform({
|
|
363
|
+
* schema_version: 1
|
|
364
|
+
* })
|
|
370
365
|
*/
|
|
371
|
-
|
|
372
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
366
|
+
createOffPlatform(request, requestOptions) {
|
|
367
|
+
return core.HttpResponsePromise.fromPromise(this.__createOffPlatform(request, requestOptions));
|
|
373
368
|
}
|
|
374
|
-
|
|
369
|
+
__createOffPlatform(request, requestOptions) {
|
|
375
370
|
return __awaiter(this, void 0, void 0, function* () {
|
|
376
371
|
var _a, _b, _c, _d;
|
|
377
372
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
378
|
-
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,
|
|
379
|
-
method: "
|
|
373
|
+
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"),
|
|
374
|
+
method: "POST",
|
|
380
375
|
headers: mergeHeaders((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
376
|
+
contentType: "application/json",
|
|
377
|
+
requestType: "json",
|
|
378
|
+
body: request,
|
|
381
379
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
382
380
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
383
381
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -405,7 +403,7 @@ export class ShipperContactInfo {
|
|
|
405
403
|
rawResponse: _response.rawResponse,
|
|
406
404
|
});
|
|
407
405
|
case "timeout":
|
|
408
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
406
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/shipper_contact_info/create/off_platform.");
|
|
409
407
|
case "unknown":
|
|
410
408
|
throw new errors.ChrtError({
|
|
411
409
|
message: _response.error.errorMessage,
|
|
@@ -415,6 +413,8 @@ export class ShipperContactInfo {
|
|
|
415
413
|
});
|
|
416
414
|
}
|
|
417
415
|
/**
|
|
416
|
+
* Updates existing shipper contact information owned by the authenticated organization.
|
|
417
|
+
*
|
|
418
418
|
* @param {string} shipperContactInfoId
|
|
419
419
|
* @param {Chrt.ShipperContactInfoClientUpdate1} request
|
|
420
420
|
* @param {ShipperContactInfo.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -474,7 +474,7 @@ export class ShipperContactInfo {
|
|
|
474
474
|
});
|
|
475
475
|
}
|
|
476
476
|
/**
|
|
477
|
-
*
|
|
477
|
+
* Deletes shipper contact information owned by the authenticated organization.
|
|
478
478
|
*
|
|
479
479
|
* @param {string} id
|
|
480
480
|
* @param {ShipperContactInfo.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -482,17 +482,17 @@ export class ShipperContactInfo {
|
|
|
482
482
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
483
483
|
*
|
|
484
484
|
* @example
|
|
485
|
-
* await client.shipperContactInfo.
|
|
485
|
+
* await client.shipperContactInfo.deleteById("id")
|
|
486
486
|
*/
|
|
487
|
-
|
|
488
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
487
|
+
deleteById(id, requestOptions) {
|
|
488
|
+
return core.HttpResponsePromise.fromPromise(this.__deleteById(id, requestOptions));
|
|
489
489
|
}
|
|
490
|
-
|
|
490
|
+
__deleteById(id, requestOptions) {
|
|
491
491
|
return __awaiter(this, void 0, void 0, function* () {
|
|
492
492
|
var _a, _b, _c, _d;
|
|
493
493
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
494
|
-
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)}`),
|
|
495
|
-
method: "
|
|
494
|
+
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)}`),
|
|
495
|
+
method: "DELETE",
|
|
496
496
|
headers: mergeHeaders((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
497
497
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
498
498
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -521,7 +521,7 @@ export class ShipperContactInfo {
|
|
|
521
521
|
rawResponse: _response.rawResponse,
|
|
522
522
|
});
|
|
523
523
|
case "timeout":
|
|
524
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
524
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling DELETE /oort/shipper_contact_info/delete/{id}.");
|
|
525
525
|
case "unknown":
|
|
526
526
|
throw new errors.ChrtError({
|
|
527
527
|
message: _response.error.errorMessage,
|
|
@@ -8,14 +8,14 @@ import * as Chrt from "../../../../index.mjs";
|
|
|
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
|
}
|