@chrt-inc/typescript-sdk 0.0.174 → 0.0.179
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 +18 -10
- package/dist/cjs/api/resources/dev/client/Client.js +58 -50
- 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 +18 -10
- package/dist/esm/api/resources/dev/client/Client.mjs +58 -50
- 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 +1156 -779
- 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
package/dist/esm/Client.d.mts
CHANGED
|
@@ -3,22 +3,22 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as environments from "./environments.mjs";
|
|
5
5
|
import * as core from "./core/index.mjs";
|
|
6
|
-
import { Root } from "./api/resources/root/client/Client.mjs";
|
|
7
6
|
import { Dev } from "./api/resources/dev/client/Client.mjs";
|
|
8
|
-
import { Connections } from "./api/resources/connections/client/Client.mjs";
|
|
9
|
-
import { CourierPayDriverLineItemGroup } from "./api/resources/courierPayDriverLineItemGroup/client/Client.mjs";
|
|
10
|
-
import { CourierPayDriverPayouts } from "./api/resources/courierPayDriverPayouts/client/Client.mjs";
|
|
11
|
-
import { CourierPayDriverRateSheets } from "./api/resources/courierPayDriverRateSheets/client/Client.mjs";
|
|
12
7
|
import { Drivers } from "./api/resources/drivers/client/Client.mjs";
|
|
13
|
-
import { MilestoneNotifications } from "./api/resources/milestoneNotifications/client/Client.mjs";
|
|
14
8
|
import { Milestones } from "./api/resources/milestones/client/Client.mjs";
|
|
15
9
|
import { OffChrtShipperOrgConnectionInfo } from "./api/resources/offChrtShipperOrgConnectionInfo/client/Client.mjs";
|
|
16
|
-
import { Orders } from "./api/resources/orders/client/Client.mjs";
|
|
17
10
|
import { OrgProfiles } from "./api/resources/orgProfiles/client/Client.mjs";
|
|
18
|
-
import {
|
|
11
|
+
import { Orders } from "./api/resources/orders/client/Client.mjs";
|
|
12
|
+
import { CourierPayDriverRateSheets } from "./api/resources/courierPayDriverRateSheets/client/Client.mjs";
|
|
13
|
+
import { CourierPayDriverLineItemGroup } from "./api/resources/courierPayDriverLineItemGroup/client/Client.mjs";
|
|
14
|
+
import { CourierPayDriverPayouts } from "./api/resources/courierPayDriverPayouts/client/Client.mjs";
|
|
15
|
+
import { Connections } from "./api/resources/connections/client/Client.mjs";
|
|
19
16
|
import { TaskGroups } from "./api/resources/taskGroups/client/Client.mjs";
|
|
17
|
+
import { ShipperContactInfo } from "./api/resources/shipperContactInfo/client/Client.mjs";
|
|
18
|
+
import { MilestoneNotifications } from "./api/resources/milestoneNotifications/client/Client.mjs";
|
|
20
19
|
import { Orgs } from "./api/resources/orgs/client/Client.mjs";
|
|
21
20
|
import { Payments } from "./api/resources/payments/client/Client.mjs";
|
|
21
|
+
import { Root } from "./api/resources/root/client/Client.mjs";
|
|
22
22
|
import { Users } from "./api/resources/users/client/Client.mjs";
|
|
23
23
|
import { Notifications } from "./api/resources/notifications/client/Client.mjs";
|
|
24
24
|
import { OrgConnectionInfos } from "./api/resources/orgConnectionInfos/client/Client.mjs";
|
|
@@ -45,42 +45,42 @@ export declare namespace ChrtClient {
|
|
|
45
45
|
}
|
|
46
46
|
export declare class ChrtClient {
|
|
47
47
|
protected readonly _options: ChrtClient.Options;
|
|
48
|
-
protected _root: Root | undefined;
|
|
49
48
|
protected _dev: Dev | undefined;
|
|
50
|
-
protected _connections: Connections | undefined;
|
|
51
|
-
protected _courierPayDriverLineItemGroup: CourierPayDriverLineItemGroup | undefined;
|
|
52
|
-
protected _courierPayDriverPayouts: CourierPayDriverPayouts | undefined;
|
|
53
|
-
protected _courierPayDriverRateSheets: CourierPayDriverRateSheets | undefined;
|
|
54
49
|
protected _drivers: Drivers | undefined;
|
|
55
|
-
protected _milestoneNotifications: MilestoneNotifications | undefined;
|
|
56
50
|
protected _milestones: Milestones | undefined;
|
|
57
51
|
protected _offChrtShipperOrgConnectionInfo: OffChrtShipperOrgConnectionInfo | undefined;
|
|
58
|
-
protected _orders: Orders | undefined;
|
|
59
52
|
protected _orgProfiles: OrgProfiles | undefined;
|
|
60
|
-
protected
|
|
53
|
+
protected _orders: Orders | undefined;
|
|
54
|
+
protected _courierPayDriverRateSheets: CourierPayDriverRateSheets | undefined;
|
|
55
|
+
protected _courierPayDriverLineItemGroup: CourierPayDriverLineItemGroup | undefined;
|
|
56
|
+
protected _courierPayDriverPayouts: CourierPayDriverPayouts | undefined;
|
|
57
|
+
protected _connections: Connections | undefined;
|
|
61
58
|
protected _taskGroups: TaskGroups | undefined;
|
|
59
|
+
protected _shipperContactInfo: ShipperContactInfo | undefined;
|
|
60
|
+
protected _milestoneNotifications: MilestoneNotifications | undefined;
|
|
62
61
|
protected _orgs: Orgs | undefined;
|
|
63
62
|
protected _payments: Payments | undefined;
|
|
63
|
+
protected _root: Root | undefined;
|
|
64
64
|
protected _users: Users | undefined;
|
|
65
65
|
protected _notifications: Notifications | undefined;
|
|
66
66
|
protected _orgConnectionInfos: OrgConnectionInfos | undefined;
|
|
67
67
|
constructor(_options?: ChrtClient.Options);
|
|
68
|
-
get root(): Root;
|
|
69
68
|
get dev(): Dev;
|
|
70
|
-
get connections(): Connections;
|
|
71
|
-
get courierPayDriverLineItemGroup(): CourierPayDriverLineItemGroup;
|
|
72
|
-
get courierPayDriverPayouts(): CourierPayDriverPayouts;
|
|
73
|
-
get courierPayDriverRateSheets(): CourierPayDriverRateSheets;
|
|
74
69
|
get drivers(): Drivers;
|
|
75
|
-
get milestoneNotifications(): MilestoneNotifications;
|
|
76
70
|
get milestones(): Milestones;
|
|
77
71
|
get offChrtShipperOrgConnectionInfo(): OffChrtShipperOrgConnectionInfo;
|
|
78
|
-
get orders(): Orders;
|
|
79
72
|
get orgProfiles(): OrgProfiles;
|
|
80
|
-
get
|
|
73
|
+
get orders(): Orders;
|
|
74
|
+
get courierPayDriverRateSheets(): CourierPayDriverRateSheets;
|
|
75
|
+
get courierPayDriverLineItemGroup(): CourierPayDriverLineItemGroup;
|
|
76
|
+
get courierPayDriverPayouts(): CourierPayDriverPayouts;
|
|
77
|
+
get connections(): Connections;
|
|
81
78
|
get taskGroups(): TaskGroups;
|
|
79
|
+
get shipperContactInfo(): ShipperContactInfo;
|
|
80
|
+
get milestoneNotifications(): MilestoneNotifications;
|
|
82
81
|
get orgs(): Orgs;
|
|
83
82
|
get payments(): Payments;
|
|
83
|
+
get root(): Root;
|
|
84
84
|
get users(): Users;
|
|
85
85
|
get notifications(): Notifications;
|
|
86
86
|
get orgConnectionInfos(): OrgConnectionInfos;
|
package/dist/esm/Client.mjs
CHANGED
|
@@ -3,22 +3,22 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as core from "./core/index.mjs";
|
|
5
5
|
import { mergeHeaders } from "./core/headers.mjs";
|
|
6
|
-
import { Root } from "./api/resources/root/client/Client.mjs";
|
|
7
6
|
import { Dev } from "./api/resources/dev/client/Client.mjs";
|
|
8
|
-
import { Connections } from "./api/resources/connections/client/Client.mjs";
|
|
9
|
-
import { CourierPayDriverLineItemGroup } from "./api/resources/courierPayDriverLineItemGroup/client/Client.mjs";
|
|
10
|
-
import { CourierPayDriverPayouts } from "./api/resources/courierPayDriverPayouts/client/Client.mjs";
|
|
11
|
-
import { CourierPayDriverRateSheets } from "./api/resources/courierPayDriverRateSheets/client/Client.mjs";
|
|
12
7
|
import { Drivers } from "./api/resources/drivers/client/Client.mjs";
|
|
13
|
-
import { MilestoneNotifications } from "./api/resources/milestoneNotifications/client/Client.mjs";
|
|
14
8
|
import { Milestones } from "./api/resources/milestones/client/Client.mjs";
|
|
15
9
|
import { OffChrtShipperOrgConnectionInfo } from "./api/resources/offChrtShipperOrgConnectionInfo/client/Client.mjs";
|
|
16
|
-
import { Orders } from "./api/resources/orders/client/Client.mjs";
|
|
17
10
|
import { OrgProfiles } from "./api/resources/orgProfiles/client/Client.mjs";
|
|
18
|
-
import {
|
|
11
|
+
import { Orders } from "./api/resources/orders/client/Client.mjs";
|
|
12
|
+
import { CourierPayDriverRateSheets } from "./api/resources/courierPayDriverRateSheets/client/Client.mjs";
|
|
13
|
+
import { CourierPayDriverLineItemGroup } from "./api/resources/courierPayDriverLineItemGroup/client/Client.mjs";
|
|
14
|
+
import { CourierPayDriverPayouts } from "./api/resources/courierPayDriverPayouts/client/Client.mjs";
|
|
15
|
+
import { Connections } from "./api/resources/connections/client/Client.mjs";
|
|
19
16
|
import { TaskGroups } from "./api/resources/taskGroups/client/Client.mjs";
|
|
17
|
+
import { ShipperContactInfo } from "./api/resources/shipperContactInfo/client/Client.mjs";
|
|
18
|
+
import { MilestoneNotifications } from "./api/resources/milestoneNotifications/client/Client.mjs";
|
|
20
19
|
import { Orgs } from "./api/resources/orgs/client/Client.mjs";
|
|
21
20
|
import { Payments } from "./api/resources/payments/client/Client.mjs";
|
|
21
|
+
import { Root } from "./api/resources/root/client/Client.mjs";
|
|
22
22
|
import { Users } from "./api/resources/users/client/Client.mjs";
|
|
23
23
|
import { Notifications } from "./api/resources/notifications/client/Client.mjs";
|
|
24
24
|
import { OrgConnectionInfos } from "./api/resources/orgConnectionInfos/client/Client.mjs";
|
|
@@ -27,67 +27,63 @@ export class ChrtClient {
|
|
|
27
27
|
this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
|
|
28
28
|
"X-Fern-Language": "JavaScript",
|
|
29
29
|
"X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
|
|
30
|
-
"X-Fern-SDK-Version": "0.0.
|
|
31
|
-
"User-Agent": "@chrt-inc/typescript-sdk/0.0.
|
|
30
|
+
"X-Fern-SDK-Version": "0.0.179",
|
|
31
|
+
"User-Agent": "@chrt-inc/typescript-sdk/0.0.179",
|
|
32
32
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
33
33
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
34
34
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
35
35
|
}
|
|
36
|
-
get root() {
|
|
37
|
-
var _a;
|
|
38
|
-
return ((_a = this._root) !== null && _a !== void 0 ? _a : (this._root = new Root(this._options)));
|
|
39
|
-
}
|
|
40
36
|
get dev() {
|
|
41
37
|
var _a;
|
|
42
38
|
return ((_a = this._dev) !== null && _a !== void 0 ? _a : (this._dev = new Dev(this._options)));
|
|
43
39
|
}
|
|
44
|
-
get
|
|
40
|
+
get drivers() {
|
|
45
41
|
var _a;
|
|
46
|
-
return ((_a = this.
|
|
42
|
+
return ((_a = this._drivers) !== null && _a !== void 0 ? _a : (this._drivers = new Drivers(this._options)));
|
|
47
43
|
}
|
|
48
|
-
get
|
|
44
|
+
get milestones() {
|
|
49
45
|
var _a;
|
|
50
|
-
return ((_a = this.
|
|
46
|
+
return ((_a = this._milestones) !== null && _a !== void 0 ? _a : (this._milestones = new Milestones(this._options)));
|
|
51
47
|
}
|
|
52
|
-
get
|
|
48
|
+
get offChrtShipperOrgConnectionInfo() {
|
|
53
49
|
var _a;
|
|
54
|
-
return ((_a = this.
|
|
50
|
+
return ((_a = this._offChrtShipperOrgConnectionInfo) !== null && _a !== void 0 ? _a : (this._offChrtShipperOrgConnectionInfo = new OffChrtShipperOrgConnectionInfo(this._options)));
|
|
55
51
|
}
|
|
56
|
-
get
|
|
52
|
+
get orgProfiles() {
|
|
57
53
|
var _a;
|
|
58
|
-
return ((_a = this.
|
|
54
|
+
return ((_a = this._orgProfiles) !== null && _a !== void 0 ? _a : (this._orgProfiles = new OrgProfiles(this._options)));
|
|
59
55
|
}
|
|
60
|
-
get
|
|
56
|
+
get orders() {
|
|
61
57
|
var _a;
|
|
62
|
-
return ((_a = this.
|
|
58
|
+
return ((_a = this._orders) !== null && _a !== void 0 ? _a : (this._orders = new Orders(this._options)));
|
|
63
59
|
}
|
|
64
|
-
get
|
|
60
|
+
get courierPayDriverRateSheets() {
|
|
65
61
|
var _a;
|
|
66
|
-
return ((_a = this.
|
|
62
|
+
return ((_a = this._courierPayDriverRateSheets) !== null && _a !== void 0 ? _a : (this._courierPayDriverRateSheets = new CourierPayDriverRateSheets(this._options)));
|
|
67
63
|
}
|
|
68
|
-
get
|
|
64
|
+
get courierPayDriverLineItemGroup() {
|
|
69
65
|
var _a;
|
|
70
|
-
return ((_a = this.
|
|
66
|
+
return ((_a = this._courierPayDriverLineItemGroup) !== null && _a !== void 0 ? _a : (this._courierPayDriverLineItemGroup = new CourierPayDriverLineItemGroup(this._options)));
|
|
71
67
|
}
|
|
72
|
-
get
|
|
68
|
+
get courierPayDriverPayouts() {
|
|
73
69
|
var _a;
|
|
74
|
-
return ((_a = this.
|
|
70
|
+
return ((_a = this._courierPayDriverPayouts) !== null && _a !== void 0 ? _a : (this._courierPayDriverPayouts = new CourierPayDriverPayouts(this._options)));
|
|
75
71
|
}
|
|
76
|
-
get
|
|
72
|
+
get connections() {
|
|
77
73
|
var _a;
|
|
78
|
-
return ((_a = this.
|
|
74
|
+
return ((_a = this._connections) !== null && _a !== void 0 ? _a : (this._connections = new Connections(this._options)));
|
|
79
75
|
}
|
|
80
|
-
get
|
|
76
|
+
get taskGroups() {
|
|
81
77
|
var _a;
|
|
82
|
-
return ((_a = this.
|
|
78
|
+
return ((_a = this._taskGroups) !== null && _a !== void 0 ? _a : (this._taskGroups = new TaskGroups(this._options)));
|
|
83
79
|
}
|
|
84
80
|
get shipperContactInfo() {
|
|
85
81
|
var _a;
|
|
86
82
|
return ((_a = this._shipperContactInfo) !== null && _a !== void 0 ? _a : (this._shipperContactInfo = new ShipperContactInfo(this._options)));
|
|
87
83
|
}
|
|
88
|
-
get
|
|
84
|
+
get milestoneNotifications() {
|
|
89
85
|
var _a;
|
|
90
|
-
return ((_a = this.
|
|
86
|
+
return ((_a = this._milestoneNotifications) !== null && _a !== void 0 ? _a : (this._milestoneNotifications = new MilestoneNotifications(this._options)));
|
|
91
87
|
}
|
|
92
88
|
get orgs() {
|
|
93
89
|
var _a;
|
|
@@ -97,6 +93,10 @@ export class ChrtClient {
|
|
|
97
93
|
var _a;
|
|
98
94
|
return ((_a = this._payments) !== null && _a !== void 0 ? _a : (this._payments = new Payments(this._options)));
|
|
99
95
|
}
|
|
96
|
+
get root() {
|
|
97
|
+
var _a;
|
|
98
|
+
return ((_a = this._root) !== null && _a !== void 0 ? _a : (this._root = new Root(this._options)));
|
|
99
|
+
}
|
|
100
100
|
get users() {
|
|
101
101
|
var _a;
|
|
102
102
|
return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new Users(this._options)));
|
package/dist/esm/api/index.d.mts
CHANGED
package/dist/esm/api/index.mjs
CHANGED
|
@@ -32,24 +32,24 @@ export declare class Connections {
|
|
|
32
32
|
constructor(_options?: Connections.Options);
|
|
33
33
|
get connectionToCourier(): ConnectionToCourier;
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* Lists all shipper organizations connected to the authenticated courier organization.
|
|
36
36
|
*
|
|
37
37
|
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
38
38
|
*
|
|
39
39
|
* @example
|
|
40
|
-
* await client.connections.
|
|
40
|
+
* await client.connections.listShippers()
|
|
41
41
|
*/
|
|
42
|
-
|
|
43
|
-
private
|
|
42
|
+
listShippers(requestOptions?: Connections.RequestOptions): core.HttpResponsePromise<Chrt.ShipperOrgConnectionInfo1[]>;
|
|
43
|
+
private __listShippers;
|
|
44
44
|
/**
|
|
45
|
-
*
|
|
45
|
+
* Lists all courier organizations connected to the authenticated shipper organization.
|
|
46
46
|
*
|
|
47
47
|
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
48
48
|
*
|
|
49
49
|
* @example
|
|
50
|
-
* await client.connections.
|
|
50
|
+
* await client.connections.listCouriers()
|
|
51
51
|
*/
|
|
52
|
-
|
|
53
|
-
private
|
|
52
|
+
listCouriers(requestOptions?: Connections.RequestOptions): core.HttpResponsePromise<Chrt.CourierOrgConnectionInfo1[]>;
|
|
53
|
+
private __listCouriers;
|
|
54
54
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
55
55
|
}
|
|
@@ -24,21 +24,21 @@ export class Connections {
|
|
|
24
24
|
return ((_a = this._connectionToCourier) !== null && _a !== void 0 ? _a : (this._connectionToCourier = new ConnectionToCourier(this._options)));
|
|
25
25
|
}
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Lists all shipper organizations connected to the authenticated courier organization.
|
|
28
28
|
*
|
|
29
29
|
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
30
30
|
*
|
|
31
31
|
* @example
|
|
32
|
-
* await client.connections.
|
|
32
|
+
* await client.connections.listShippers()
|
|
33
33
|
*/
|
|
34
|
-
|
|
35
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
34
|
+
listShippers(requestOptions) {
|
|
35
|
+
return core.HttpResponsePromise.fromPromise(this.__listShippers(requestOptions));
|
|
36
36
|
}
|
|
37
|
-
|
|
37
|
+
__listShippers(requestOptions) {
|
|
38
38
|
return __awaiter(this, void 0, void 0, function* () {
|
|
39
39
|
var _a, _b, _c, _d;
|
|
40
40
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
41
|
-
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/connections/
|
|
41
|
+
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/connections/shippers/list"),
|
|
42
42
|
method: "GET",
|
|
43
43
|
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),
|
|
44
44
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -63,7 +63,7 @@ export class Connections {
|
|
|
63
63
|
rawResponse: _response.rawResponse,
|
|
64
64
|
});
|
|
65
65
|
case "timeout":
|
|
66
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/connections/
|
|
66
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/connections/shippers/list.");
|
|
67
67
|
case "unknown":
|
|
68
68
|
throw new errors.ChrtError({
|
|
69
69
|
message: _response.error.errorMessage,
|
|
@@ -73,21 +73,21 @@ export class Connections {
|
|
|
73
73
|
});
|
|
74
74
|
}
|
|
75
75
|
/**
|
|
76
|
-
*
|
|
76
|
+
* Lists all courier organizations connected to the authenticated shipper organization.
|
|
77
77
|
*
|
|
78
78
|
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
79
79
|
*
|
|
80
80
|
* @example
|
|
81
|
-
* await client.connections.
|
|
81
|
+
* await client.connections.listCouriers()
|
|
82
82
|
*/
|
|
83
|
-
|
|
84
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
83
|
+
listCouriers(requestOptions) {
|
|
84
|
+
return core.HttpResponsePromise.fromPromise(this.__listCouriers(requestOptions));
|
|
85
85
|
}
|
|
86
|
-
|
|
86
|
+
__listCouriers(requestOptions) {
|
|
87
87
|
return __awaiter(this, void 0, void 0, function* () {
|
|
88
88
|
var _a, _b, _c, _d;
|
|
89
89
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
90
|
-
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/connections/
|
|
90
|
+
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/connections/couriers/list"),
|
|
91
91
|
method: "GET",
|
|
92
92
|
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),
|
|
93
93
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -112,7 +112,7 @@ export class Connections {
|
|
|
112
112
|
rawResponse: _response.rawResponse,
|
|
113
113
|
});
|
|
114
114
|
case "timeout":
|
|
115
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/connections/
|
|
115
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/connections/couriers/list.");
|
|
116
116
|
case "unknown":
|
|
117
117
|
throw new errors.ChrtError({
|
|
118
118
|
message: _response.error.errorMessage,
|
package/dist/esm/api/resources/connections/resources/connectionToCourier/client/Client.d.mts
CHANGED
|
@@ -29,7 +29,7 @@ export declare class ConnectionToCourier {
|
|
|
29
29
|
protected readonly _options: ConnectionToCourier.Options;
|
|
30
30
|
constructor(_options?: ConnectionToCourier.Options);
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* Creates a new connection between a shipper and courier organization using the courier's handle.
|
|
33
33
|
*
|
|
34
34
|
* @param {Chrt.connections.CreateConnectionReq} request
|
|
35
35
|
* @param {ConnectionToCourier.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -20,7 +20,7 @@ export class ConnectionToCourier {
|
|
|
20
20
|
this._options = _options;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* Creates a new connection between a shipper and courier organization using the courier's handle.
|
|
24
24
|
*
|
|
25
25
|
* @param {Chrt.connections.CreateConnectionReq} request
|
|
26
26
|
* @param {ConnectionToCourier.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -35,62 +35,62 @@ export declare class CourierPayDriverLineItemGroup {
|
|
|
35
35
|
get addLineItems(): AddLineItems;
|
|
36
36
|
get removeLineItems(): RemoveLineItems;
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
38
|
+
* Previews calculated line items for a driver based on rate sheet and task group without creating the group.
|
|
39
39
|
*
|
|
40
|
-
* @param {
|
|
40
|
+
* @param {Chrt.CourierPayDriverLineItemGroupPreviewRequest} request
|
|
41
41
|
* @param {CourierPayDriverLineItemGroup.RequestOptions} requestOptions - Request-specific configuration.
|
|
42
42
|
*
|
|
43
43
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
44
44
|
*
|
|
45
45
|
* @example
|
|
46
|
-
* await client.courierPayDriverLineItemGroup.
|
|
46
|
+
* await client.courierPayDriverLineItemGroup.preview({
|
|
47
|
+
* courier_pay_driver_rate_sheet_id: "courier_pay_driver_rate_sheet_id",
|
|
48
|
+
* task_group_id: "task_group_id"
|
|
49
|
+
* })
|
|
47
50
|
*/
|
|
48
|
-
|
|
49
|
-
private
|
|
51
|
+
preview(request: Chrt.CourierPayDriverLineItemGroupPreviewRequest, requestOptions?: CourierPayDriverLineItemGroup.RequestOptions): core.HttpResponsePromise<Chrt.CourierPayDriverLineItemGroupClientCreate1>;
|
|
52
|
+
private __preview;
|
|
50
53
|
/**
|
|
51
|
-
*
|
|
54
|
+
* Retrieves a courier driver line item group by its ID.
|
|
52
55
|
*
|
|
53
|
-
* @param {
|
|
56
|
+
* @param {string} id
|
|
54
57
|
* @param {CourierPayDriverLineItemGroup.RequestOptions} requestOptions - Request-specific configuration.
|
|
55
58
|
*
|
|
56
59
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
57
60
|
*
|
|
58
61
|
* @example
|
|
59
|
-
* await client.courierPayDriverLineItemGroup.
|
|
60
|
-
* courier_pay_driver_rate_sheet_id: "courier_pay_driver_rate_sheet_id",
|
|
61
|
-
* task_group_id: "task_group_id"
|
|
62
|
-
* })
|
|
62
|
+
* await client.courierPayDriverLineItemGroup.getById("id")
|
|
63
63
|
*/
|
|
64
|
-
|
|
65
|
-
private
|
|
64
|
+
getById(id: string, requestOptions?: CourierPayDriverLineItemGroup.RequestOptions): core.HttpResponsePromise<Chrt.CourierPayDriverLineItemGroup1>;
|
|
65
|
+
private __getById;
|
|
66
66
|
/**
|
|
67
|
-
*
|
|
67
|
+
* Retrieves a courier driver line item group by its associated task group ID.
|
|
68
68
|
*
|
|
69
|
-
* @param {
|
|
69
|
+
* @param {string} taskGroupId
|
|
70
70
|
* @param {CourierPayDriverLineItemGroup.RequestOptions} requestOptions - Request-specific configuration.
|
|
71
71
|
*
|
|
72
72
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
73
73
|
*
|
|
74
74
|
* @example
|
|
75
|
-
* await client.courierPayDriverLineItemGroup.
|
|
76
|
-
* courier_pay_driver_rate_sheet_id: "courier_pay_driver_rate_sheet_id",
|
|
77
|
-
* task_group_id: "task_group_id"
|
|
78
|
-
* })
|
|
75
|
+
* await client.courierPayDriverLineItemGroup.byTaskGroupId("task_group_id")
|
|
79
76
|
*/
|
|
80
|
-
|
|
81
|
-
private
|
|
77
|
+
byTaskGroupId(taskGroupId: string, requestOptions?: CourierPayDriverLineItemGroup.RequestOptions): core.HttpResponsePromise<Chrt.CourierPayDriverLineItemGroup1>;
|
|
78
|
+
private __byTaskGroupId;
|
|
82
79
|
/**
|
|
83
|
-
*
|
|
80
|
+
* Creates a courier driver line item group by calculating items from rate sheet and task group.
|
|
84
81
|
*
|
|
85
|
-
* @param {
|
|
82
|
+
* @param {Chrt.CourierPayDriverLineItemGroupCreateRequest} request
|
|
86
83
|
* @param {CourierPayDriverLineItemGroup.RequestOptions} requestOptions - Request-specific configuration.
|
|
87
84
|
*
|
|
88
85
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
89
86
|
*
|
|
90
87
|
* @example
|
|
91
|
-
* await client.courierPayDriverLineItemGroup.
|
|
88
|
+
* await client.courierPayDriverLineItemGroup.create({
|
|
89
|
+
* courier_pay_driver_rate_sheet_id: "courier_pay_driver_rate_sheet_id",
|
|
90
|
+
* task_group_id: "task_group_id"
|
|
91
|
+
* })
|
|
92
92
|
*/
|
|
93
|
-
|
|
94
|
-
private
|
|
93
|
+
create(request: Chrt.CourierPayDriverLineItemGroupCreateRequest, requestOptions?: CourierPayDriverLineItemGroup.RequestOptions): core.HttpResponsePromise<string>;
|
|
94
|
+
private __create;
|
|
95
95
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
96
96
|
}
|