@chrt-inc/typescript-sdk 0.0.174 → 0.0.183
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/Client.d.ts +24 -24
- package/dist/cjs/Client.js +48 -48
- package/dist/cjs/api/index.d.ts +1 -1
- package/dist/cjs/api/index.js +1 -1
- package/dist/cjs/api/resources/connections/client/Client.d.ts +8 -8
- package/dist/cjs/api/resources/connections/client/Client.js +14 -14
- package/dist/cjs/api/resources/connections/resources/connectionToCourier/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/connections/resources/connectionToCourier/client/Client.js +1 -1
- package/dist/cjs/api/resources/courierPayDriverLineItemGroup/client/Client.d.ts +26 -26
- package/dist/cjs/api/resources/courierPayDriverLineItemGroup/client/Client.js +79 -79
- package/dist/cjs/api/resources/courierPayDriverLineItemGroup/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/courierPayDriverLineItemGroup/resources/addLineItems/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/courierPayDriverLineItemGroup/resources/addLineItems/client/Client.js +1 -1
- package/dist/cjs/api/resources/courierPayDriverLineItemGroup/resources/removeLineItems/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/courierPayDriverLineItemGroup/resources/removeLineItems/client/Client.js +1 -1
- package/dist/cjs/api/resources/courierPayDriverPayouts/client/Client.d.ts +16 -12
- package/dist/cjs/api/resources/courierPayDriverPayouts/client/Client.js +27 -23
- package/dist/cjs/api/resources/courierPayDriverPayouts/client/requests/CourierPayDriverPayoutClientCreate1.d.ts +3 -3
- package/dist/cjs/api/resources/courierPayDriverRateSheets/client/Client.d.ts +39 -26
- package/dist/cjs/api/resources/courierPayDriverRateSheets/client/Client.js +112 -67
- package/dist/cjs/api/resources/courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetClientCreate1.d.ts +24 -24
- package/dist/cjs/api/resources/courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetClientUpdate1.d.ts +12 -12
- package/dist/cjs/api/resources/courierPayDriverRateSheets/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/courierPayDriverRateSheets/index.d.ts +0 -1
- package/dist/cjs/api/resources/courierPayDriverRateSheets/index.js +0 -1
- package/dist/cjs/api/resources/dev/client/Client.d.ts +28 -10
- package/dist/cjs/api/resources/dev/client/Client.js +103 -46
- package/dist/cjs/api/resources/drivers/client/Client.d.ts +52 -50
- package/dist/cjs/api/resources/drivers/client/Client.js +109 -107
- package/dist/cjs/api/resources/drivers/client/requests/SetDriverActivationReq.d.ts +3 -3
- package/dist/cjs/api/resources/drivers/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/index.d.ts +14 -15
- package/dist/cjs/api/resources/index.js +15 -16
- package/dist/cjs/api/resources/milestoneNotifications/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/milestoneNotifications/client/Client.js +2 -2
- package/dist/cjs/api/resources/milestoneNotifications/client/requests/MilestoneNotificationPreferencesClientCreate1.d.ts +3 -3
- package/dist/cjs/api/resources/milestones/client/Client.d.ts +16 -16
- package/dist/cjs/api/resources/milestones/client/Client.js +25 -25
- package/dist/cjs/api/resources/milestones/client/requests/MilestoneAddToTaskReq.d.ts +1 -1
- package/dist/cjs/api/resources/milestones/client/requests/MilestoneUpdateReq.d.ts +1 -1
- package/dist/cjs/api/resources/milestones/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/milestones/resources/blurhash/client/Client.d.ts +1 -5
- package/dist/cjs/api/resources/milestones/resources/blurhash/client/Client.js +1 -5
- package/dist/cjs/api/resources/milestones/resources/images/client/Client.d.ts +14 -14
- package/dist/cjs/api/resources/milestones/resources/images/client/Client.js +35 -35
- package/dist/cjs/api/resources/milestones/resources/index.d.ts +1 -1
- package/dist/cjs/api/resources/milestones/resources/index.js +2 -2
- package/dist/cjs/api/resources/notifications/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/notifications/client/Client.js +6 -6
- package/dist/cjs/api/resources/notifications/resources/courierPreferences/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/notifications/resources/courierPreferences/client/Client.js +2 -2
- package/dist/cjs/api/resources/notifications/resources/courierPreferences/client/requests/CourierNotificationPreferencesClientCreate1.d.ts +3 -3
- package/dist/cjs/api/resources/notifications/resources/index.d.ts +2 -2
- package/dist/cjs/api/resources/notifications/resources/index.js +3 -3
- package/dist/cjs/api/resources/notifications/resources/shipper/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/notifications/resources/shipper/client/Client.js +2 -2
- package/dist/cjs/api/resources/notifications/resources/shipper/client/requests/ShipperNotificationPreferencesClientCreate1.d.ts +3 -3
- package/dist/cjs/api/resources/offChrtShipperOrgConnectionInfo/client/Client.d.ts +6 -6
- package/dist/cjs/api/resources/offChrtShipperOrgConnectionInfo/client/Client.js +6 -6
- package/dist/cjs/api/resources/offChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientCreate1.d.ts +8 -8
- package/dist/cjs/api/resources/offChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientUpdate1.d.ts +4 -4
- package/dist/cjs/api/resources/orders/client/Client.d.ts +30 -26
- package/dist/cjs/api/resources/orders/client/Client.js +74 -70
- package/dist/cjs/api/resources/orders/client/requests/CreateOrderReq.d.ts +16 -16
- package/dist/cjs/api/resources/orders/resources/full/client/Client.d.ts +12 -12
- package/dist/cjs/api/resources/orders/resources/full/client/Client.js +33 -33
- package/dist/cjs/api/resources/orgConnectionInfos/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/orgConnectionInfos/client/Client.js +6 -6
- package/dist/cjs/api/resources/orgConnectionInfos/resources/courier/client/Client.d.ts +5 -5
- package/dist/cjs/api/resources/orgConnectionInfos/resources/courier/client/Client.js +5 -5
- package/dist/cjs/api/resources/orgConnectionInfos/resources/courier/client/requests/CourierOrgConnectionInfoClientCreate1.d.ts +7 -7
- package/dist/cjs/api/resources/orgConnectionInfos/resources/courier/client/requests/CourierOrgConnectionInfoClientUpdate1.d.ts +4 -4
- package/dist/cjs/api/resources/orgConnectionInfos/resources/index.d.ts +2 -2
- package/dist/cjs/api/resources/orgConnectionInfos/resources/index.js +3 -3
- package/dist/cjs/api/resources/orgConnectionInfos/resources/shipper/client/Client.d.ts +5 -5
- package/dist/cjs/api/resources/orgConnectionInfos/resources/shipper/client/Client.js +5 -5
- package/dist/cjs/api/resources/orgConnectionInfos/resources/shipper/client/requests/ShipperOrgConnectionInfoClientCreate1.d.ts +7 -7
- package/dist/cjs/api/resources/orgConnectionInfos/resources/shipper/client/requests/ShipperOrgConnectionInfoClientUpdate1.d.ts +4 -4
- package/dist/cjs/api/resources/orgProfiles/client/Client.d.ts +15 -17
- package/dist/cjs/api/resources/orgProfiles/client/Client.js +43 -49
- package/dist/cjs/api/resources/orgProfiles/client/requests/CourierOrgProfileClientCreate3.d.ts +3 -3
- package/dist/cjs/api/resources/orgProfiles/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/orgs/client/Client.d.ts +41 -37
- package/dist/cjs/api/resources/orgs/client/Client.js +90 -86
- package/dist/cjs/api/resources/orgs/client/requests/CreateOrgPublicDataReq.d.ts +3 -3
- package/dist/cjs/api/resources/orgs/client/requests/UpdateOrgPublicDataReq.d.ts +1 -1
- package/dist/cjs/api/resources/payments/client/Client.d.ts +3 -7
- package/dist/cjs/api/resources/payments/client/Client.js +3 -7
- package/dist/cjs/api/resources/root/client/Client.d.ts +19 -13
- package/dist/cjs/api/resources/root/client/Client.js +31 -25
- package/dist/cjs/api/resources/shipperContactInfo/client/Client.d.ts +42 -42
- package/dist/cjs/api/resources/shipperContactInfo/client/Client.js +90 -90
- package/dist/cjs/api/resources/shipperContactInfo/client/requests/ShipperContactInfoClientUpdate1.d.ts +4 -4
- package/dist/cjs/api/resources/taskGroups/client/Client.d.ts +24 -18
- package/dist/cjs/api/resources/taskGroups/client/Client.js +43 -37
- package/dist/cjs/api/resources/taskGroups/client/requests/UpdateTaskGroupReq.d.ts +2 -2
- package/dist/cjs/api/resources/taskGroups/resources/full/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/taskGroups/resources/full/client/Client.js +2 -2
- package/dist/cjs/api/resources/taskGroups/resources/togglePause/client/Client.d.ts +4 -2
- package/dist/cjs/api/resources/taskGroups/resources/togglePause/client/Client.js +4 -2
- package/dist/cjs/api/resources/taskGroups/resources/togglePause/client/requests/SetTaskGroupPauseReq.d.ts +3 -3
- package/dist/cjs/api/resources/users/client/Client.d.ts +2 -0
- package/dist/cjs/api/resources/users/client/Client.js +2 -0
- package/dist/cjs/api/types/Cargo1.d.ts +6 -6
- package/dist/cjs/api/types/CargoClientCreate1.d.ts +3 -3
- package/dist/cjs/api/types/CourierNotificationPreferences1.d.ts +9 -9
- package/dist/cjs/api/types/CourierOrgConnectionInfo1.d.ts +10 -10
- package/dist/cjs/api/types/CourierOrgProfile3.d.ts +3 -3
- package/dist/cjs/api/types/CourierPayDriverLineItemGroup1.d.ts +5 -5
- package/dist/cjs/api/types/CourierPayDriverLineItemGroupClientCreate1.d.ts +1 -1
- package/dist/cjs/api/types/CourierPayDriverRateSheet1.d.ts +16 -16
- package/dist/cjs/api/types/DecodedJwtWithOrgAndUserId.d.ts +8 -8
- package/dist/cjs/api/types/Driver1.d.ts +6 -6
- package/dist/cjs/api/types/Expense1.d.ts +3 -3
- package/dist/cjs/api/types/Feature.d.ts +3 -3
- package/dist/cjs/api/types/GetOrderFullRes.d.ts +2 -2
- package/dist/cjs/api/types/Incident1.d.ts +1 -1
- package/dist/cjs/api/types/Insurance1.d.ts +1 -1
- package/dist/cjs/api/types/LineItem1.d.ts +1 -1
- package/dist/cjs/api/types/Milestone1.d.ts +13 -13
- package/dist/cjs/api/types/MilestoneClientCreate1.d.ts +1 -1
- package/dist/cjs/api/types/MilestoneNotificationPreferences1.d.ts +9 -9
- package/dist/cjs/api/types/OffChrtShipperOrgConnectionInfo1.d.ts +11 -11
- package/dist/cjs/api/types/Order1.d.ts +11 -11
- package/dist/cjs/api/types/OrgMemberDetails.d.ts +2 -2
- package/dist/cjs/api/types/OrgMembersAndDrivers.d.ts +1 -1
- package/dist/cjs/api/types/OrgPublicData2.d.ts +4 -4
- package/dist/cjs/api/types/PayablesInvoice1.d.ts +11 -11
- package/dist/cjs/api/types/ReceivablesInvoice1.d.ts +7 -7
- package/dist/cjs/api/types/ShipperContactInfo1.d.ts +11 -11
- package/dist/cjs/api/types/ShipperContactInfoClientCreate1.d.ts +6 -6
- package/dist/cjs/api/types/ShipperCourierConnection1.d.ts +4 -4
- package/dist/cjs/api/types/ShipperNotificationPreferences1.d.ts +9 -9
- package/dist/cjs/api/types/ShipperOrgConnectionInfo1.d.ts +6 -6
- package/dist/cjs/api/types/StripeConnectInvoice1.d.ts +5 -5
- package/dist/cjs/api/types/Task1.d.ts +13 -13
- package/dist/cjs/api/types/TaskClientCreate1.d.ts +4 -4
- package/dist/cjs/api/types/TaskCreateBundle.d.ts +2 -2
- package/dist/cjs/api/types/TaskGroup1.d.ts +11 -11
- package/dist/cjs/api/types/TaskWithDetails.d.ts +2 -2
- package/dist/cjs/api/types/Tracker1.d.ts +1 -1
- package/dist/cjs/api/types/TrackerSession1.d.ts +1 -1
- package/dist/cjs/api/types/UserPublicData6.d.ts +6 -6
- package/dist/cjs/api/types/Vehicle1.d.ts +1 -1
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.d.mts +24 -24
- package/dist/esm/Client.mjs +36 -36
- package/dist/esm/api/index.d.mts +1 -1
- package/dist/esm/api/index.mjs +1 -1
- package/dist/esm/api/resources/connections/client/Client.d.mts +8 -8
- package/dist/esm/api/resources/connections/client/Client.mjs +14 -14
- package/dist/esm/api/resources/connections/resources/connectionToCourier/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/connections/resources/connectionToCourier/client/Client.mjs +1 -1
- package/dist/esm/api/resources/courierPayDriverLineItemGroup/client/Client.d.mts +26 -26
- package/dist/esm/api/resources/courierPayDriverLineItemGroup/client/Client.mjs +79 -79
- package/dist/esm/api/resources/courierPayDriverLineItemGroup/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/courierPayDriverLineItemGroup/resources/addLineItems/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/courierPayDriverLineItemGroup/resources/addLineItems/client/Client.mjs +1 -1
- package/dist/esm/api/resources/courierPayDriverLineItemGroup/resources/removeLineItems/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/courierPayDriverLineItemGroup/resources/removeLineItems/client/Client.mjs +1 -1
- package/dist/esm/api/resources/courierPayDriverPayouts/client/Client.d.mts +16 -12
- package/dist/esm/api/resources/courierPayDriverPayouts/client/Client.mjs +27 -23
- package/dist/esm/api/resources/courierPayDriverPayouts/client/requests/CourierPayDriverPayoutClientCreate1.d.mts +3 -3
- package/dist/esm/api/resources/courierPayDriverRateSheets/client/Client.d.mts +39 -26
- package/dist/esm/api/resources/courierPayDriverRateSheets/client/Client.mjs +112 -67
- package/dist/esm/api/resources/courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetClientCreate1.d.mts +24 -24
- package/dist/esm/api/resources/courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetClientUpdate1.d.mts +12 -12
- package/dist/esm/api/resources/courierPayDriverRateSheets/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/courierPayDriverRateSheets/index.d.mts +0 -1
- package/dist/esm/api/resources/courierPayDriverRateSheets/index.mjs +0 -1
- package/dist/esm/api/resources/dev/client/Client.d.mts +28 -10
- package/dist/esm/api/resources/dev/client/Client.mjs +103 -46
- package/dist/esm/api/resources/drivers/client/Client.d.mts +52 -50
- package/dist/esm/api/resources/drivers/client/Client.mjs +109 -107
- package/dist/esm/api/resources/drivers/client/requests/SetDriverActivationReq.d.mts +3 -3
- package/dist/esm/api/resources/drivers/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/index.d.mts +14 -15
- package/dist/esm/api/resources/index.mjs +14 -15
- package/dist/esm/api/resources/milestoneNotifications/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/milestoneNotifications/client/Client.mjs +2 -2
- package/dist/esm/api/resources/milestoneNotifications/client/requests/MilestoneNotificationPreferencesClientCreate1.d.mts +3 -3
- package/dist/esm/api/resources/milestones/client/Client.d.mts +16 -16
- package/dist/esm/api/resources/milestones/client/Client.mjs +24 -24
- package/dist/esm/api/resources/milestones/client/requests/MilestoneAddToTaskReq.d.mts +1 -1
- package/dist/esm/api/resources/milestones/client/requests/MilestoneUpdateReq.d.mts +1 -1
- package/dist/esm/api/resources/milestones/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/milestones/resources/blurhash/client/Client.d.mts +1 -5
- package/dist/esm/api/resources/milestones/resources/blurhash/client/Client.mjs +1 -5
- package/dist/esm/api/resources/milestones/resources/images/client/Client.d.mts +14 -14
- package/dist/esm/api/resources/milestones/resources/images/client/Client.mjs +35 -35
- package/dist/esm/api/resources/milestones/resources/index.d.mts +1 -1
- package/dist/esm/api/resources/milestones/resources/index.mjs +1 -1
- package/dist/esm/api/resources/notifications/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/notifications/client/Client.mjs +5 -5
- package/dist/esm/api/resources/notifications/resources/courierPreferences/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/notifications/resources/courierPreferences/client/Client.mjs +2 -2
- package/dist/esm/api/resources/notifications/resources/courierPreferences/client/requests/CourierNotificationPreferencesClientCreate1.d.mts +3 -3
- package/dist/esm/api/resources/notifications/resources/index.d.mts +2 -2
- package/dist/esm/api/resources/notifications/resources/index.mjs +2 -2
- package/dist/esm/api/resources/notifications/resources/shipper/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/notifications/resources/shipper/client/Client.mjs +2 -2
- package/dist/esm/api/resources/notifications/resources/shipper/client/requests/ShipperNotificationPreferencesClientCreate1.d.mts +3 -3
- package/dist/esm/api/resources/offChrtShipperOrgConnectionInfo/client/Client.d.mts +6 -6
- package/dist/esm/api/resources/offChrtShipperOrgConnectionInfo/client/Client.mjs +6 -6
- package/dist/esm/api/resources/offChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientCreate1.d.mts +8 -8
- package/dist/esm/api/resources/offChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientUpdate1.d.mts +4 -4
- package/dist/esm/api/resources/orders/client/Client.d.mts +30 -26
- package/dist/esm/api/resources/orders/client/Client.mjs +74 -70
- package/dist/esm/api/resources/orders/client/requests/CreateOrderReq.d.mts +16 -16
- package/dist/esm/api/resources/orders/resources/full/client/Client.d.mts +12 -12
- package/dist/esm/api/resources/orders/resources/full/client/Client.mjs +33 -33
- package/dist/esm/api/resources/orgConnectionInfos/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/orgConnectionInfos/client/Client.mjs +5 -5
- package/dist/esm/api/resources/orgConnectionInfos/resources/courier/client/Client.d.mts +5 -5
- package/dist/esm/api/resources/orgConnectionInfos/resources/courier/client/Client.mjs +5 -5
- package/dist/esm/api/resources/orgConnectionInfos/resources/courier/client/requests/CourierOrgConnectionInfoClientCreate1.d.mts +7 -7
- package/dist/esm/api/resources/orgConnectionInfos/resources/courier/client/requests/CourierOrgConnectionInfoClientUpdate1.d.mts +4 -4
- package/dist/esm/api/resources/orgConnectionInfos/resources/index.d.mts +2 -2
- package/dist/esm/api/resources/orgConnectionInfos/resources/index.mjs +2 -2
- package/dist/esm/api/resources/orgConnectionInfos/resources/shipper/client/Client.d.mts +5 -5
- package/dist/esm/api/resources/orgConnectionInfos/resources/shipper/client/Client.mjs +5 -5
- package/dist/esm/api/resources/orgConnectionInfos/resources/shipper/client/requests/ShipperOrgConnectionInfoClientCreate1.d.mts +7 -7
- package/dist/esm/api/resources/orgConnectionInfos/resources/shipper/client/requests/ShipperOrgConnectionInfoClientUpdate1.d.mts +4 -4
- package/dist/esm/api/resources/orgProfiles/client/Client.d.mts +15 -17
- package/dist/esm/api/resources/orgProfiles/client/Client.mjs +43 -49
- package/dist/esm/api/resources/orgProfiles/client/requests/CourierOrgProfileClientCreate3.d.mts +3 -3
- package/dist/esm/api/resources/orgProfiles/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/orgs/client/Client.d.mts +41 -37
- package/dist/esm/api/resources/orgs/client/Client.mjs +90 -86
- package/dist/esm/api/resources/orgs/client/requests/CreateOrgPublicDataReq.d.mts +3 -3
- package/dist/esm/api/resources/orgs/client/requests/UpdateOrgPublicDataReq.d.mts +1 -1
- package/dist/esm/api/resources/payments/client/Client.d.mts +3 -7
- package/dist/esm/api/resources/payments/client/Client.mjs +3 -7
- package/dist/esm/api/resources/root/client/Client.d.mts +19 -13
- package/dist/esm/api/resources/root/client/Client.mjs +31 -25
- package/dist/esm/api/resources/shipperContactInfo/client/Client.d.mts +42 -42
- package/dist/esm/api/resources/shipperContactInfo/client/Client.mjs +90 -90
- package/dist/esm/api/resources/shipperContactInfo/client/requests/ShipperContactInfoClientUpdate1.d.mts +4 -4
- package/dist/esm/api/resources/taskGroups/client/Client.d.mts +24 -18
- package/dist/esm/api/resources/taskGroups/client/Client.mjs +43 -37
- package/dist/esm/api/resources/taskGroups/client/requests/UpdateTaskGroupReq.d.mts +2 -2
- package/dist/esm/api/resources/taskGroups/resources/full/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/taskGroups/resources/full/client/Client.mjs +2 -2
- package/dist/esm/api/resources/taskGroups/resources/togglePause/client/Client.d.mts +4 -2
- package/dist/esm/api/resources/taskGroups/resources/togglePause/client/Client.mjs +4 -2
- package/dist/esm/api/resources/taskGroups/resources/togglePause/client/requests/SetTaskGroupPauseReq.d.mts +3 -3
- package/dist/esm/api/resources/users/client/Client.d.mts +2 -0
- package/dist/esm/api/resources/users/client/Client.mjs +2 -0
- package/dist/esm/api/types/Cargo1.d.mts +6 -6
- package/dist/esm/api/types/CargoClientCreate1.d.mts +3 -3
- package/dist/esm/api/types/CourierNotificationPreferences1.d.mts +9 -9
- package/dist/esm/api/types/CourierOrgConnectionInfo1.d.mts +10 -10
- package/dist/esm/api/types/CourierOrgProfile3.d.mts +3 -3
- package/dist/esm/api/types/CourierPayDriverLineItemGroup1.d.mts +5 -5
- package/dist/esm/api/types/CourierPayDriverLineItemGroupClientCreate1.d.mts +1 -1
- package/dist/esm/api/types/CourierPayDriverRateSheet1.d.mts +16 -16
- package/dist/esm/api/types/DecodedJwtWithOrgAndUserId.d.mts +8 -8
- package/dist/esm/api/types/Driver1.d.mts +6 -6
- package/dist/esm/api/types/Expense1.d.mts +3 -3
- package/dist/esm/api/types/Feature.d.mts +3 -3
- package/dist/esm/api/types/GetOrderFullRes.d.mts +2 -2
- package/dist/esm/api/types/Incident1.d.mts +1 -1
- package/dist/esm/api/types/Insurance1.d.mts +1 -1
- package/dist/esm/api/types/LineItem1.d.mts +1 -1
- package/dist/esm/api/types/Milestone1.d.mts +13 -13
- package/dist/esm/api/types/MilestoneClientCreate1.d.mts +1 -1
- package/dist/esm/api/types/MilestoneNotificationPreferences1.d.mts +9 -9
- package/dist/esm/api/types/OffChrtShipperOrgConnectionInfo1.d.mts +11 -11
- package/dist/esm/api/types/Order1.d.mts +11 -11
- package/dist/esm/api/types/OrgMemberDetails.d.mts +2 -2
- package/dist/esm/api/types/OrgMembersAndDrivers.d.mts +1 -1
- package/dist/esm/api/types/OrgPublicData2.d.mts +4 -4
- package/dist/esm/api/types/PayablesInvoice1.d.mts +11 -11
- package/dist/esm/api/types/ReceivablesInvoice1.d.mts +7 -7
- package/dist/esm/api/types/ShipperContactInfo1.d.mts +11 -11
- package/dist/esm/api/types/ShipperContactInfoClientCreate1.d.mts +6 -6
- package/dist/esm/api/types/ShipperCourierConnection1.d.mts +4 -4
- package/dist/esm/api/types/ShipperNotificationPreferences1.d.mts +9 -9
- package/dist/esm/api/types/ShipperOrgConnectionInfo1.d.mts +6 -6
- package/dist/esm/api/types/StripeConnectInvoice1.d.mts +5 -5
- package/dist/esm/api/types/Task1.d.mts +13 -13
- package/dist/esm/api/types/TaskClientCreate1.d.mts +4 -4
- package/dist/esm/api/types/TaskCreateBundle.d.mts +2 -2
- package/dist/esm/api/types/TaskGroup1.d.mts +11 -11
- package/dist/esm/api/types/TaskWithDetails.d.mts +2 -2
- package/dist/esm/api/types/Tracker1.d.mts +1 -1
- package/dist/esm/api/types/TrackerSession1.d.mts +1 -1
- package/dist/esm/api/types/UserPublicData6.d.mts +6 -6
- package/dist/esm/api/types/Vehicle1.d.mts +1 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +1196 -764
- package/dist/cjs/api/resources/courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetsGetRequest.d.ts +0 -11
- package/dist/cjs/api/resources/courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetsGetRequest.js +0 -5
- package/dist/cjs/api/resources/courierPayDriverRateSheets/types/CourierPayDriverRateSheetsGetResponse.d.ts +0 -5
- package/dist/cjs/api/resources/courierPayDriverRateSheets/types/CourierPayDriverRateSheetsGetResponse.js +0 -5
- package/dist/cjs/api/resources/courierPayDriverRateSheets/types/index.d.ts +0 -1
- package/dist/cjs/api/resources/courierPayDriverRateSheets/types/index.js +0 -17
- package/dist/cjs/api/resources/orgProfiles/client/requests/OrgProfilesGetAvatarRequest.d.ts +0 -12
- package/dist/cjs/api/resources/orgProfiles/client/requests/OrgProfilesGetAvatarRequest.js +0 -5
- package/dist/esm/api/resources/courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetsGetRequest.d.mts +0 -11
- package/dist/esm/api/resources/courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetsGetRequest.mjs +0 -4
- package/dist/esm/api/resources/courierPayDriverRateSheets/types/CourierPayDriverRateSheetsGetResponse.d.mts +0 -5
- package/dist/esm/api/resources/courierPayDriverRateSheets/types/CourierPayDriverRateSheetsGetResponse.mjs +0 -4
- package/dist/esm/api/resources/courierPayDriverRateSheets/types/index.d.mts +0 -1
- package/dist/esm/api/resources/courierPayDriverRateSheets/types/index.mjs +0 -1
- package/dist/esm/api/resources/orgProfiles/client/requests/OrgProfilesGetAvatarRequest.d.mts +0 -12
- package/dist/esm/api/resources/orgProfiles/client/requests/OrgProfilesGetAvatarRequest.mjs +0 -4
|
@@ -56,21 +56,21 @@ class Orgs {
|
|
|
56
56
|
this._options = _options;
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
|
-
*
|
|
59
|
+
* Retrieves basic organization information from the authentication service.
|
|
60
60
|
*
|
|
61
61
|
* @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
|
|
62
62
|
*
|
|
63
63
|
* @example
|
|
64
|
-
* await client.orgs.
|
|
64
|
+
* await client.orgs.getInfo()
|
|
65
65
|
*/
|
|
66
|
-
|
|
67
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
66
|
+
getInfo(requestOptions) {
|
|
67
|
+
return core.HttpResponsePromise.fromPromise(this.__getInfo(requestOptions));
|
|
68
68
|
}
|
|
69
|
-
|
|
69
|
+
__getInfo(requestOptions) {
|
|
70
70
|
return __awaiter(this, void 0, void 0, function* () {
|
|
71
71
|
var _a, _b, _c, _d;
|
|
72
72
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
73
|
-
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, "orgs/
|
|
73
|
+
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, "orgs/info"),
|
|
74
74
|
method: "GET",
|
|
75
75
|
headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
76
76
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -95,7 +95,7 @@ class Orgs {
|
|
|
95
95
|
rawResponse: _response.rawResponse,
|
|
96
96
|
});
|
|
97
97
|
case "timeout":
|
|
98
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/
|
|
98
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/info.");
|
|
99
99
|
case "unknown":
|
|
100
100
|
throw new errors.ChrtError({
|
|
101
101
|
message: _response.error.errorMessage,
|
|
@@ -105,24 +105,21 @@ class Orgs {
|
|
|
105
105
|
});
|
|
106
106
|
}
|
|
107
107
|
/**
|
|
108
|
-
*
|
|
108
|
+
* Lists all members of the authenticated organization with their roles and details.
|
|
109
109
|
*
|
|
110
|
-
* @param {string} handle
|
|
111
110
|
* @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
|
|
112
111
|
*
|
|
113
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
114
|
-
*
|
|
115
112
|
* @example
|
|
116
|
-
* await client.orgs.
|
|
113
|
+
* await client.orgs.listMembers()
|
|
117
114
|
*/
|
|
118
|
-
|
|
119
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
115
|
+
listMembers(requestOptions) {
|
|
116
|
+
return core.HttpResponsePromise.fromPromise(this.__listMembers(requestOptions));
|
|
120
117
|
}
|
|
121
|
-
|
|
118
|
+
__listMembers(requestOptions) {
|
|
122
119
|
return __awaiter(this, void 0, void 0, function* () {
|
|
123
120
|
var _a, _b, _c, _d;
|
|
124
121
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
125
|
-
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local,
|
|
122
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "orgs/members/list"),
|
|
126
123
|
method: "GET",
|
|
127
124
|
headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
128
125
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -133,16 +130,11 @@ class Orgs {
|
|
|
133
130
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
134
131
|
}
|
|
135
132
|
if (_response.error.reason === "status-code") {
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
statusCode: _response.error.statusCode,
|
|
142
|
-
body: _response.error.body,
|
|
143
|
-
rawResponse: _response.rawResponse,
|
|
144
|
-
});
|
|
145
|
-
}
|
|
133
|
+
throw new errors.ChrtError({
|
|
134
|
+
statusCode: _response.error.statusCode,
|
|
135
|
+
body: _response.error.body,
|
|
136
|
+
rawResponse: _response.rawResponse,
|
|
137
|
+
});
|
|
146
138
|
}
|
|
147
139
|
switch (_response.error.reason) {
|
|
148
140
|
case "non-json":
|
|
@@ -152,7 +144,7 @@ class Orgs {
|
|
|
152
144
|
rawResponse: _response.rawResponse,
|
|
153
145
|
});
|
|
154
146
|
case "timeout":
|
|
155
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/
|
|
147
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/members/list.");
|
|
156
148
|
case "unknown":
|
|
157
149
|
throw new errors.ChrtError({
|
|
158
150
|
message: _response.error.errorMessage,
|
|
@@ -162,19 +154,21 @@ class Orgs {
|
|
|
162
154
|
});
|
|
163
155
|
}
|
|
164
156
|
/**
|
|
157
|
+
* Retrieves public organization data for the authenticated organization.
|
|
158
|
+
*
|
|
165
159
|
* @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
|
|
166
160
|
*
|
|
167
161
|
* @example
|
|
168
|
-
* await client.orgs.
|
|
162
|
+
* await client.orgs.getPublicData()
|
|
169
163
|
*/
|
|
170
|
-
|
|
171
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
164
|
+
getPublicData(requestOptions) {
|
|
165
|
+
return core.HttpResponsePromise.fromPromise(this.__getPublicData(requestOptions));
|
|
172
166
|
}
|
|
173
|
-
|
|
167
|
+
__getPublicData(requestOptions) {
|
|
174
168
|
return __awaiter(this, void 0, void 0, function* () {
|
|
175
169
|
var _a, _b, _c, _d;
|
|
176
170
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
177
|
-
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, "orgs/
|
|
171
|
+
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, "orgs/public_data"),
|
|
178
172
|
method: "GET",
|
|
179
173
|
headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
180
174
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -199,7 +193,7 @@ class Orgs {
|
|
|
199
193
|
rawResponse: _response.rawResponse,
|
|
200
194
|
});
|
|
201
195
|
case "timeout":
|
|
202
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/
|
|
196
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/public_data.");
|
|
203
197
|
case "unknown":
|
|
204
198
|
throw new errors.ChrtError({
|
|
205
199
|
message: _response.error.errorMessage,
|
|
@@ -209,19 +203,24 @@ class Orgs {
|
|
|
209
203
|
});
|
|
210
204
|
}
|
|
211
205
|
/**
|
|
206
|
+
* Retrieves public organization data for a specific organization by ID.
|
|
207
|
+
*
|
|
208
|
+
* @param {string} orgId
|
|
212
209
|
* @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
|
|
213
210
|
*
|
|
211
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
212
|
+
*
|
|
214
213
|
* @example
|
|
215
|
-
* await client.orgs.
|
|
214
|
+
* await client.orgs.getPublicDataByOrgId("org_id")
|
|
216
215
|
*/
|
|
217
|
-
|
|
218
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
216
|
+
getPublicDataByOrgId(orgId, requestOptions) {
|
|
217
|
+
return core.HttpResponsePromise.fromPromise(this.__getPublicDataByOrgId(orgId, requestOptions));
|
|
219
218
|
}
|
|
220
|
-
|
|
219
|
+
__getPublicDataByOrgId(orgId, requestOptions) {
|
|
221
220
|
return __awaiter(this, void 0, void 0, function* () {
|
|
222
221
|
var _a, _b, _c, _d;
|
|
223
222
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
224
|
-
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,
|
|
223
|
+
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, `orgs/public_data/${encodeURIComponent(orgId)}`),
|
|
225
224
|
method: "GET",
|
|
226
225
|
headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
227
226
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -232,11 +231,16 @@ class Orgs {
|
|
|
232
231
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
233
232
|
}
|
|
234
233
|
if (_response.error.reason === "status-code") {
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
234
|
+
switch (_response.error.statusCode) {
|
|
235
|
+
case 422:
|
|
236
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
237
|
+
default:
|
|
238
|
+
throw new errors.ChrtError({
|
|
239
|
+
statusCode: _response.error.statusCode,
|
|
240
|
+
body: _response.error.body,
|
|
241
|
+
rawResponse: _response.rawResponse,
|
|
242
|
+
});
|
|
243
|
+
}
|
|
240
244
|
}
|
|
241
245
|
switch (_response.error.reason) {
|
|
242
246
|
case "non-json":
|
|
@@ -246,7 +250,7 @@ class Orgs {
|
|
|
246
250
|
rawResponse: _response.rawResponse,
|
|
247
251
|
});
|
|
248
252
|
case "timeout":
|
|
249
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/
|
|
253
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/public_data/{org_id}.");
|
|
250
254
|
case "unknown":
|
|
251
255
|
throw new errors.ChrtError({
|
|
252
256
|
message: _response.error.errorMessage,
|
|
@@ -256,21 +260,21 @@ class Orgs {
|
|
|
256
260
|
});
|
|
257
261
|
}
|
|
258
262
|
/**
|
|
259
|
-
*
|
|
263
|
+
* Retrieves the organization handle for the authenticated organization.
|
|
260
264
|
*
|
|
261
265
|
* @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
|
|
262
266
|
*
|
|
263
267
|
* @example
|
|
264
|
-
* await client.orgs.
|
|
268
|
+
* await client.orgs.getHandle()
|
|
265
269
|
*/
|
|
266
|
-
|
|
267
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
270
|
+
getHandle(requestOptions) {
|
|
271
|
+
return core.HttpResponsePromise.fromPromise(this.__getHandle(requestOptions));
|
|
268
272
|
}
|
|
269
|
-
|
|
273
|
+
__getHandle(requestOptions) {
|
|
270
274
|
return __awaiter(this, void 0, void 0, function* () {
|
|
271
275
|
var _a, _b, _c, _d;
|
|
272
276
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
273
|
-
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, "orgs/
|
|
277
|
+
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, "orgs/handle"),
|
|
274
278
|
method: "GET",
|
|
275
279
|
headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
276
280
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -295,7 +299,7 @@ class Orgs {
|
|
|
295
299
|
rawResponse: _response.rawResponse,
|
|
296
300
|
});
|
|
297
301
|
case "timeout":
|
|
298
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/
|
|
302
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/handle.");
|
|
299
303
|
case "unknown":
|
|
300
304
|
throw new errors.ChrtError({
|
|
301
305
|
message: _response.error.errorMessage,
|
|
@@ -305,32 +309,26 @@ class Orgs {
|
|
|
305
309
|
});
|
|
306
310
|
}
|
|
307
311
|
/**
|
|
308
|
-
*
|
|
312
|
+
* Checks if an organization handle is available for use.
|
|
309
313
|
*
|
|
310
|
-
* @param {
|
|
314
|
+
* @param {string} handle
|
|
311
315
|
* @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
|
|
312
316
|
*
|
|
313
317
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
314
318
|
*
|
|
315
319
|
* @example
|
|
316
|
-
* await client.orgs.
|
|
317
|
-
* company_name: "company_name",
|
|
318
|
-
* handle: "handle"
|
|
319
|
-
* })
|
|
320
|
+
* await client.orgs.getHandleAvailability("handle")
|
|
320
321
|
*/
|
|
321
|
-
|
|
322
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
322
|
+
getHandleAvailability(handle, requestOptions) {
|
|
323
|
+
return core.HttpResponsePromise.fromPromise(this.__getHandleAvailability(handle, requestOptions));
|
|
323
324
|
}
|
|
324
|
-
|
|
325
|
+
__getHandleAvailability(handle, requestOptions) {
|
|
325
326
|
return __awaiter(this, void 0, void 0, function* () {
|
|
326
327
|
var _a, _b, _c, _d;
|
|
327
328
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
328
|
-
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,
|
|
329
|
-
method: "
|
|
329
|
+
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, `orgs/handle/availability/${encodeURIComponent(handle)}`),
|
|
330
|
+
method: "GET",
|
|
330
331
|
headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
331
|
-
contentType: "application/json",
|
|
332
|
-
requestType: "json",
|
|
333
|
-
body: request,
|
|
334
332
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
335
333
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
336
334
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -358,7 +356,7 @@ class Orgs {
|
|
|
358
356
|
rawResponse: _response.rawResponse,
|
|
359
357
|
});
|
|
360
358
|
case "timeout":
|
|
361
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
359
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/handle/availability/{handle}.");
|
|
362
360
|
case "unknown":
|
|
363
361
|
throw new errors.ChrtError({
|
|
364
362
|
message: _response.error.errorMessage,
|
|
@@ -368,25 +366,28 @@ class Orgs {
|
|
|
368
366
|
});
|
|
369
367
|
}
|
|
370
368
|
/**
|
|
371
|
-
*
|
|
369
|
+
* Creates public organization data with handle and company name for the authenticated organization.
|
|
372
370
|
*
|
|
373
|
-
* @param {Chrt.
|
|
371
|
+
* @param {Chrt.CreateOrgPublicDataReq} request
|
|
374
372
|
* @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
|
|
375
373
|
*
|
|
376
374
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
377
375
|
*
|
|
378
376
|
* @example
|
|
379
|
-
* await client.orgs.
|
|
377
|
+
* await client.orgs.createPublicData({
|
|
378
|
+
* handle: "handle",
|
|
379
|
+
* company_name: "company_name"
|
|
380
|
+
* })
|
|
380
381
|
*/
|
|
381
|
-
|
|
382
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
382
|
+
createPublicData(request, requestOptions) {
|
|
383
|
+
return core.HttpResponsePromise.fromPromise(this.__createPublicData(request, requestOptions));
|
|
383
384
|
}
|
|
384
|
-
|
|
385
|
-
return __awaiter(this,
|
|
385
|
+
__createPublicData(request, requestOptions) {
|
|
386
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
386
387
|
var _a, _b, _c, _d;
|
|
387
388
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
388
|
-
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, "orgs/public_data/
|
|
389
|
-
method: "
|
|
389
|
+
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, "orgs/public_data/create"),
|
|
390
|
+
method: "POST",
|
|
390
391
|
headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
391
392
|
contentType: "application/json",
|
|
392
393
|
requestType: "json",
|
|
@@ -418,7 +419,7 @@ class Orgs {
|
|
|
418
419
|
rawResponse: _response.rawResponse,
|
|
419
420
|
});
|
|
420
421
|
case "timeout":
|
|
421
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
422
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /orgs/public_data/create.");
|
|
422
423
|
case "unknown":
|
|
423
424
|
throw new errors.ChrtError({
|
|
424
425
|
message: _response.error.errorMessage,
|
|
@@ -428,26 +429,29 @@ class Orgs {
|
|
|
428
429
|
});
|
|
429
430
|
}
|
|
430
431
|
/**
|
|
431
|
-
*
|
|
432
|
+
* Updates the organization handle or company name for the authenticated organization.
|
|
432
433
|
*
|
|
433
|
-
* @param {
|
|
434
|
+
* @param {Chrt.UpdateOrgPublicDataReq} request
|
|
434
435
|
* @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
|
|
435
436
|
*
|
|
436
437
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
437
438
|
*
|
|
438
439
|
* @example
|
|
439
|
-
* await client.orgs.
|
|
440
|
+
* await client.orgs.updatePublicData()
|
|
440
441
|
*/
|
|
441
|
-
|
|
442
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
442
|
+
updatePublicData(request = {}, requestOptions) {
|
|
443
|
+
return core.HttpResponsePromise.fromPromise(this.__updatePublicData(request, requestOptions));
|
|
443
444
|
}
|
|
444
|
-
|
|
445
|
-
return __awaiter(this,
|
|
445
|
+
__updatePublicData() {
|
|
446
|
+
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
446
447
|
var _a, _b, _c, _d;
|
|
447
448
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
448
|
-
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,
|
|
449
|
-
method: "
|
|
449
|
+
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, "orgs/public_data/update"),
|
|
450
|
+
method: "PATCH",
|
|
450
451
|
headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
452
|
+
contentType: "application/json",
|
|
453
|
+
requestType: "json",
|
|
454
|
+
body: request,
|
|
451
455
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
452
456
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
453
457
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -475,7 +479,7 @@ class Orgs {
|
|
|
475
479
|
rawResponse: _response.rawResponse,
|
|
476
480
|
});
|
|
477
481
|
case "timeout":
|
|
478
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
482
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /orgs/public_data/update.");
|
|
479
483
|
case "unknown":
|
|
480
484
|
throw new errors.ChrtError({
|
|
481
485
|
message: _response.error.errorMessage,
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* @example
|
|
6
6
|
* {
|
|
7
|
-
*
|
|
8
|
-
*
|
|
7
|
+
* handle: "handle",
|
|
8
|
+
* company_name: "company_name"
|
|
9
9
|
* }
|
|
10
10
|
*/
|
|
11
11
|
export interface CreateOrgPublicDataReq {
|
|
12
|
-
company_name: string;
|
|
13
12
|
handle: string;
|
|
13
|
+
company_name: string;
|
|
14
14
|
}
|
|
@@ -29,13 +29,7 @@ export declare class Payments {
|
|
|
29
29
|
protected readonly _options: Payments.Options;
|
|
30
30
|
constructor(_options?: Payments.Options);
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
33
|
-
* (1) (a) Validate and decode the jwt, (b) check for an org_id
|
|
34
|
-
* (2) Resolve the subscription_plan
|
|
35
|
-
* (3) Check for an already-active same subscription within the org
|
|
36
|
-
* (4) Check if the current org membership count <= subscription_plan's limit
|
|
37
|
-
* (5) Get the customer_id
|
|
38
|
-
* (6) Create the checkout session url
|
|
32
|
+
* Create a checkout session for a subscription
|
|
39
33
|
*
|
|
40
34
|
* @param {Chrt.CreateCheckoutSessionReq2} request
|
|
41
35
|
* @param {Payments.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -50,6 +44,8 @@ export declare class Payments {
|
|
|
50
44
|
createCheckoutSession(request: Chrt.CreateCheckoutSessionReq2, requestOptions?: Payments.RequestOptions): core.HttpResponsePromise<Chrt.CreateCheckoutSessionRes2>;
|
|
51
45
|
private __createCheckoutSession;
|
|
52
46
|
/**
|
|
47
|
+
* Synchronizes subscription data from Stripe to the authentication service for the current user.
|
|
48
|
+
*
|
|
53
49
|
* @param {Payments.RequestOptions} requestOptions - Request-specific configuration.
|
|
54
50
|
*
|
|
55
51
|
* @example
|
|
@@ -56,13 +56,7 @@ class Payments {
|
|
|
56
56
|
this._options = _options;
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
|
-
*
|
|
60
|
-
* (1) (a) Validate and decode the jwt, (b) check for an org_id
|
|
61
|
-
* (2) Resolve the subscription_plan
|
|
62
|
-
* (3) Check for an already-active same subscription within the org
|
|
63
|
-
* (4) Check if the current org membership count <= subscription_plan's limit
|
|
64
|
-
* (5) Get the customer_id
|
|
65
|
-
* (6) Create the checkout session url
|
|
59
|
+
* Create a checkout session for a subscription
|
|
66
60
|
*
|
|
67
61
|
* @param {Chrt.CreateCheckoutSessionReq2} request
|
|
68
62
|
* @param {Payments.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -124,6 +118,8 @@ class Payments {
|
|
|
124
118
|
});
|
|
125
119
|
}
|
|
126
120
|
/**
|
|
121
|
+
* Synchronizes subscription data from Stripe to the authentication service for the current user.
|
|
122
|
+
*
|
|
127
123
|
* @param {Payments.RequestOptions} requestOptions - Request-specific configuration.
|
|
128
124
|
*
|
|
129
125
|
* @example
|
|
@@ -28,31 +28,35 @@ export declare class Root {
|
|
|
28
28
|
protected readonly _options: Root.Options;
|
|
29
29
|
constructor(_options?: Root.Options);
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Test endpoint for authenticated requests that requires valid authentication tokens.
|
|
32
32
|
*
|
|
33
33
|
* @param {Root.RequestOptions} requestOptions - Request-specific configuration.
|
|
34
34
|
*
|
|
35
35
|
* @example
|
|
36
|
-
* await client.root.
|
|
36
|
+
* await client.root.pingAuthd()
|
|
37
37
|
*/
|
|
38
|
-
|
|
39
|
-
private
|
|
38
|
+
pingAuthd(requestOptions?: Root.RequestOptions): core.HttpResponsePromise<Record<string, string>>;
|
|
39
|
+
private __pingAuthd;
|
|
40
40
|
/**
|
|
41
|
+
* Test endpoint for optionally authenticated requests that works with or without authentication.
|
|
42
|
+
*
|
|
41
43
|
* @param {Root.RequestOptions} requestOptions - Request-specific configuration.
|
|
42
44
|
*
|
|
43
45
|
* @example
|
|
44
|
-
* await client.root.
|
|
46
|
+
* await client.root.pingOptionallyAuthd()
|
|
45
47
|
*/
|
|
46
|
-
|
|
47
|
-
private
|
|
48
|
+
pingOptionallyAuthd(requestOptions?: Root.RequestOptions): core.HttpResponsePromise<unknown>;
|
|
49
|
+
private __pingOptionallyAuthd;
|
|
48
50
|
/**
|
|
51
|
+
* Returns a greeting message
|
|
52
|
+
*
|
|
49
53
|
* @param {Root.RequestOptions} requestOptions - Request-specific configuration.
|
|
50
54
|
*
|
|
51
55
|
* @example
|
|
52
|
-
* await client.root.
|
|
56
|
+
* await client.root.pingUnauthd()
|
|
53
57
|
*/
|
|
54
|
-
|
|
55
|
-
private
|
|
58
|
+
pingUnauthd(requestOptions?: Root.RequestOptions): core.HttpResponsePromise<unknown>;
|
|
59
|
+
private __pingUnauthd;
|
|
56
60
|
/**
|
|
57
61
|
* Used for monitoring system health
|
|
58
62
|
*
|
|
@@ -64,12 +68,14 @@ export declare class Root {
|
|
|
64
68
|
health(requestOptions?: Root.RequestOptions): core.HttpResponsePromise<unknown>;
|
|
65
69
|
private __health;
|
|
66
70
|
/**
|
|
71
|
+
* Test endpoint that intentionally fails for error handling validation and monitoring purposes.
|
|
72
|
+
*
|
|
67
73
|
* @param {Root.RequestOptions} requestOptions - Request-specific configuration.
|
|
68
74
|
*
|
|
69
75
|
* @example
|
|
70
|
-
* await client.root.
|
|
76
|
+
* await client.root.failure()
|
|
71
77
|
*/
|
|
72
|
-
|
|
73
|
-
private
|
|
78
|
+
failure(requestOptions?: Root.RequestOptions): core.HttpResponsePromise<unknown>;
|
|
79
|
+
private __failure;
|
|
74
80
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
75
81
|
}
|