@chrt-inc/typescript-sdk 0.0.174 → 0.0.183
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/Client.d.ts +24 -24
- package/dist/cjs/Client.js +48 -48
- package/dist/cjs/api/index.d.ts +1 -1
- package/dist/cjs/api/index.js +1 -1
- package/dist/cjs/api/resources/connections/client/Client.d.ts +8 -8
- package/dist/cjs/api/resources/connections/client/Client.js +14 -14
- package/dist/cjs/api/resources/connections/resources/connectionToCourier/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/connections/resources/connectionToCourier/client/Client.js +1 -1
- package/dist/cjs/api/resources/courierPayDriverLineItemGroup/client/Client.d.ts +26 -26
- package/dist/cjs/api/resources/courierPayDriverLineItemGroup/client/Client.js +79 -79
- package/dist/cjs/api/resources/courierPayDriverLineItemGroup/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/courierPayDriverLineItemGroup/resources/addLineItems/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/courierPayDriverLineItemGroup/resources/addLineItems/client/Client.js +1 -1
- package/dist/cjs/api/resources/courierPayDriverLineItemGroup/resources/removeLineItems/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/courierPayDriverLineItemGroup/resources/removeLineItems/client/Client.js +1 -1
- package/dist/cjs/api/resources/courierPayDriverPayouts/client/Client.d.ts +16 -12
- package/dist/cjs/api/resources/courierPayDriverPayouts/client/Client.js +27 -23
- package/dist/cjs/api/resources/courierPayDriverPayouts/client/requests/CourierPayDriverPayoutClientCreate1.d.ts +3 -3
- package/dist/cjs/api/resources/courierPayDriverRateSheets/client/Client.d.ts +39 -26
- package/dist/cjs/api/resources/courierPayDriverRateSheets/client/Client.js +112 -67
- package/dist/cjs/api/resources/courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetClientCreate1.d.ts +24 -24
- package/dist/cjs/api/resources/courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetClientUpdate1.d.ts +12 -12
- package/dist/cjs/api/resources/courierPayDriverRateSheets/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/courierPayDriverRateSheets/index.d.ts +0 -1
- package/dist/cjs/api/resources/courierPayDriverRateSheets/index.js +0 -1
- package/dist/cjs/api/resources/dev/client/Client.d.ts +28 -10
- package/dist/cjs/api/resources/dev/client/Client.js +103 -46
- package/dist/cjs/api/resources/drivers/client/Client.d.ts +52 -50
- package/dist/cjs/api/resources/drivers/client/Client.js +109 -107
- package/dist/cjs/api/resources/drivers/client/requests/SetDriverActivationReq.d.ts +3 -3
- package/dist/cjs/api/resources/drivers/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/index.d.ts +14 -15
- package/dist/cjs/api/resources/index.js +15 -16
- package/dist/cjs/api/resources/milestoneNotifications/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/milestoneNotifications/client/Client.js +2 -2
- package/dist/cjs/api/resources/milestoneNotifications/client/requests/MilestoneNotificationPreferencesClientCreate1.d.ts +3 -3
- package/dist/cjs/api/resources/milestones/client/Client.d.ts +16 -16
- package/dist/cjs/api/resources/milestones/client/Client.js +25 -25
- package/dist/cjs/api/resources/milestones/client/requests/MilestoneAddToTaskReq.d.ts +1 -1
- package/dist/cjs/api/resources/milestones/client/requests/MilestoneUpdateReq.d.ts +1 -1
- package/dist/cjs/api/resources/milestones/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/milestones/resources/blurhash/client/Client.d.ts +1 -5
- package/dist/cjs/api/resources/milestones/resources/blurhash/client/Client.js +1 -5
- package/dist/cjs/api/resources/milestones/resources/images/client/Client.d.ts +14 -14
- package/dist/cjs/api/resources/milestones/resources/images/client/Client.js +35 -35
- package/dist/cjs/api/resources/milestones/resources/index.d.ts +1 -1
- package/dist/cjs/api/resources/milestones/resources/index.js +2 -2
- package/dist/cjs/api/resources/notifications/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/notifications/client/Client.js +6 -6
- package/dist/cjs/api/resources/notifications/resources/courierPreferences/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/notifications/resources/courierPreferences/client/Client.js +2 -2
- package/dist/cjs/api/resources/notifications/resources/courierPreferences/client/requests/CourierNotificationPreferencesClientCreate1.d.ts +3 -3
- package/dist/cjs/api/resources/notifications/resources/index.d.ts +2 -2
- package/dist/cjs/api/resources/notifications/resources/index.js +3 -3
- package/dist/cjs/api/resources/notifications/resources/shipper/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/notifications/resources/shipper/client/Client.js +2 -2
- package/dist/cjs/api/resources/notifications/resources/shipper/client/requests/ShipperNotificationPreferencesClientCreate1.d.ts +3 -3
- package/dist/cjs/api/resources/offChrtShipperOrgConnectionInfo/client/Client.d.ts +6 -6
- package/dist/cjs/api/resources/offChrtShipperOrgConnectionInfo/client/Client.js +6 -6
- package/dist/cjs/api/resources/offChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientCreate1.d.ts +8 -8
- package/dist/cjs/api/resources/offChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientUpdate1.d.ts +4 -4
- package/dist/cjs/api/resources/orders/client/Client.d.ts +30 -26
- package/dist/cjs/api/resources/orders/client/Client.js +74 -70
- package/dist/cjs/api/resources/orders/client/requests/CreateOrderReq.d.ts +16 -16
- package/dist/cjs/api/resources/orders/resources/full/client/Client.d.ts +12 -12
- package/dist/cjs/api/resources/orders/resources/full/client/Client.js +33 -33
- package/dist/cjs/api/resources/orgConnectionInfos/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/orgConnectionInfos/client/Client.js +6 -6
- package/dist/cjs/api/resources/orgConnectionInfos/resources/courier/client/Client.d.ts +5 -5
- package/dist/cjs/api/resources/orgConnectionInfos/resources/courier/client/Client.js +5 -5
- package/dist/cjs/api/resources/orgConnectionInfos/resources/courier/client/requests/CourierOrgConnectionInfoClientCreate1.d.ts +7 -7
- package/dist/cjs/api/resources/orgConnectionInfos/resources/courier/client/requests/CourierOrgConnectionInfoClientUpdate1.d.ts +4 -4
- package/dist/cjs/api/resources/orgConnectionInfos/resources/index.d.ts +2 -2
- package/dist/cjs/api/resources/orgConnectionInfos/resources/index.js +3 -3
- package/dist/cjs/api/resources/orgConnectionInfos/resources/shipper/client/Client.d.ts +5 -5
- package/dist/cjs/api/resources/orgConnectionInfos/resources/shipper/client/Client.js +5 -5
- package/dist/cjs/api/resources/orgConnectionInfos/resources/shipper/client/requests/ShipperOrgConnectionInfoClientCreate1.d.ts +7 -7
- package/dist/cjs/api/resources/orgConnectionInfos/resources/shipper/client/requests/ShipperOrgConnectionInfoClientUpdate1.d.ts +4 -4
- package/dist/cjs/api/resources/orgProfiles/client/Client.d.ts +15 -17
- package/dist/cjs/api/resources/orgProfiles/client/Client.js +43 -49
- package/dist/cjs/api/resources/orgProfiles/client/requests/CourierOrgProfileClientCreate3.d.ts +3 -3
- package/dist/cjs/api/resources/orgProfiles/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/orgs/client/Client.d.ts +41 -37
- package/dist/cjs/api/resources/orgs/client/Client.js +90 -86
- package/dist/cjs/api/resources/orgs/client/requests/CreateOrgPublicDataReq.d.ts +3 -3
- package/dist/cjs/api/resources/orgs/client/requests/UpdateOrgPublicDataReq.d.ts +1 -1
- package/dist/cjs/api/resources/payments/client/Client.d.ts +3 -7
- package/dist/cjs/api/resources/payments/client/Client.js +3 -7
- package/dist/cjs/api/resources/root/client/Client.d.ts +19 -13
- package/dist/cjs/api/resources/root/client/Client.js +31 -25
- package/dist/cjs/api/resources/shipperContactInfo/client/Client.d.ts +42 -42
- package/dist/cjs/api/resources/shipperContactInfo/client/Client.js +90 -90
- package/dist/cjs/api/resources/shipperContactInfo/client/requests/ShipperContactInfoClientUpdate1.d.ts +4 -4
- package/dist/cjs/api/resources/taskGroups/client/Client.d.ts +24 -18
- package/dist/cjs/api/resources/taskGroups/client/Client.js +43 -37
- package/dist/cjs/api/resources/taskGroups/client/requests/UpdateTaskGroupReq.d.ts +2 -2
- package/dist/cjs/api/resources/taskGroups/resources/full/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/taskGroups/resources/full/client/Client.js +2 -2
- package/dist/cjs/api/resources/taskGroups/resources/togglePause/client/Client.d.ts +4 -2
- package/dist/cjs/api/resources/taskGroups/resources/togglePause/client/Client.js +4 -2
- package/dist/cjs/api/resources/taskGroups/resources/togglePause/client/requests/SetTaskGroupPauseReq.d.ts +3 -3
- package/dist/cjs/api/resources/users/client/Client.d.ts +2 -0
- package/dist/cjs/api/resources/users/client/Client.js +2 -0
- package/dist/cjs/api/types/Cargo1.d.ts +6 -6
- package/dist/cjs/api/types/CargoClientCreate1.d.ts +3 -3
- package/dist/cjs/api/types/CourierNotificationPreferences1.d.ts +9 -9
- package/dist/cjs/api/types/CourierOrgConnectionInfo1.d.ts +10 -10
- package/dist/cjs/api/types/CourierOrgProfile3.d.ts +3 -3
- package/dist/cjs/api/types/CourierPayDriverLineItemGroup1.d.ts +5 -5
- package/dist/cjs/api/types/CourierPayDriverLineItemGroupClientCreate1.d.ts +1 -1
- package/dist/cjs/api/types/CourierPayDriverRateSheet1.d.ts +16 -16
- package/dist/cjs/api/types/DecodedJwtWithOrgAndUserId.d.ts +8 -8
- package/dist/cjs/api/types/Driver1.d.ts +6 -6
- package/dist/cjs/api/types/Expense1.d.ts +3 -3
- package/dist/cjs/api/types/Feature.d.ts +3 -3
- package/dist/cjs/api/types/GetOrderFullRes.d.ts +2 -2
- package/dist/cjs/api/types/Incident1.d.ts +1 -1
- package/dist/cjs/api/types/Insurance1.d.ts +1 -1
- package/dist/cjs/api/types/LineItem1.d.ts +1 -1
- package/dist/cjs/api/types/Milestone1.d.ts +13 -13
- package/dist/cjs/api/types/MilestoneClientCreate1.d.ts +1 -1
- package/dist/cjs/api/types/MilestoneNotificationPreferences1.d.ts +9 -9
- package/dist/cjs/api/types/OffChrtShipperOrgConnectionInfo1.d.ts +11 -11
- package/dist/cjs/api/types/Order1.d.ts +11 -11
- package/dist/cjs/api/types/OrgMemberDetails.d.ts +2 -2
- package/dist/cjs/api/types/OrgMembersAndDrivers.d.ts +1 -1
- package/dist/cjs/api/types/OrgPublicData2.d.ts +4 -4
- package/dist/cjs/api/types/PayablesInvoice1.d.ts +11 -11
- package/dist/cjs/api/types/ReceivablesInvoice1.d.ts +7 -7
- package/dist/cjs/api/types/ShipperContactInfo1.d.ts +11 -11
- package/dist/cjs/api/types/ShipperContactInfoClientCreate1.d.ts +6 -6
- package/dist/cjs/api/types/ShipperCourierConnection1.d.ts +4 -4
- package/dist/cjs/api/types/ShipperNotificationPreferences1.d.ts +9 -9
- package/dist/cjs/api/types/ShipperOrgConnectionInfo1.d.ts +6 -6
- package/dist/cjs/api/types/StripeConnectInvoice1.d.ts +5 -5
- package/dist/cjs/api/types/Task1.d.ts +13 -13
- package/dist/cjs/api/types/TaskClientCreate1.d.ts +4 -4
- package/dist/cjs/api/types/TaskCreateBundle.d.ts +2 -2
- package/dist/cjs/api/types/TaskGroup1.d.ts +11 -11
- package/dist/cjs/api/types/TaskWithDetails.d.ts +2 -2
- package/dist/cjs/api/types/Tracker1.d.ts +1 -1
- package/dist/cjs/api/types/TrackerSession1.d.ts +1 -1
- package/dist/cjs/api/types/UserPublicData6.d.ts +6 -6
- package/dist/cjs/api/types/Vehicle1.d.ts +1 -1
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.d.mts +24 -24
- package/dist/esm/Client.mjs +36 -36
- package/dist/esm/api/index.d.mts +1 -1
- package/dist/esm/api/index.mjs +1 -1
- package/dist/esm/api/resources/connections/client/Client.d.mts +8 -8
- package/dist/esm/api/resources/connections/client/Client.mjs +14 -14
- package/dist/esm/api/resources/connections/resources/connectionToCourier/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/connections/resources/connectionToCourier/client/Client.mjs +1 -1
- package/dist/esm/api/resources/courierPayDriverLineItemGroup/client/Client.d.mts +26 -26
- package/dist/esm/api/resources/courierPayDriverLineItemGroup/client/Client.mjs +79 -79
- package/dist/esm/api/resources/courierPayDriverLineItemGroup/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/courierPayDriverLineItemGroup/resources/addLineItems/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/courierPayDriverLineItemGroup/resources/addLineItems/client/Client.mjs +1 -1
- package/dist/esm/api/resources/courierPayDriverLineItemGroup/resources/removeLineItems/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/courierPayDriverLineItemGroup/resources/removeLineItems/client/Client.mjs +1 -1
- package/dist/esm/api/resources/courierPayDriverPayouts/client/Client.d.mts +16 -12
- package/dist/esm/api/resources/courierPayDriverPayouts/client/Client.mjs +27 -23
- package/dist/esm/api/resources/courierPayDriverPayouts/client/requests/CourierPayDriverPayoutClientCreate1.d.mts +3 -3
- package/dist/esm/api/resources/courierPayDriverRateSheets/client/Client.d.mts +39 -26
- package/dist/esm/api/resources/courierPayDriverRateSheets/client/Client.mjs +112 -67
- package/dist/esm/api/resources/courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetClientCreate1.d.mts +24 -24
- package/dist/esm/api/resources/courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetClientUpdate1.d.mts +12 -12
- package/dist/esm/api/resources/courierPayDriverRateSheets/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/courierPayDriverRateSheets/index.d.mts +0 -1
- package/dist/esm/api/resources/courierPayDriverRateSheets/index.mjs +0 -1
- package/dist/esm/api/resources/dev/client/Client.d.mts +28 -10
- package/dist/esm/api/resources/dev/client/Client.mjs +103 -46
- package/dist/esm/api/resources/drivers/client/Client.d.mts +52 -50
- package/dist/esm/api/resources/drivers/client/Client.mjs +109 -107
- package/dist/esm/api/resources/drivers/client/requests/SetDriverActivationReq.d.mts +3 -3
- package/dist/esm/api/resources/drivers/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/index.d.mts +14 -15
- package/dist/esm/api/resources/index.mjs +14 -15
- package/dist/esm/api/resources/milestoneNotifications/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/milestoneNotifications/client/Client.mjs +2 -2
- package/dist/esm/api/resources/milestoneNotifications/client/requests/MilestoneNotificationPreferencesClientCreate1.d.mts +3 -3
- package/dist/esm/api/resources/milestones/client/Client.d.mts +16 -16
- package/dist/esm/api/resources/milestones/client/Client.mjs +24 -24
- package/dist/esm/api/resources/milestones/client/requests/MilestoneAddToTaskReq.d.mts +1 -1
- package/dist/esm/api/resources/milestones/client/requests/MilestoneUpdateReq.d.mts +1 -1
- package/dist/esm/api/resources/milestones/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/milestones/resources/blurhash/client/Client.d.mts +1 -5
- package/dist/esm/api/resources/milestones/resources/blurhash/client/Client.mjs +1 -5
- package/dist/esm/api/resources/milestones/resources/images/client/Client.d.mts +14 -14
- package/dist/esm/api/resources/milestones/resources/images/client/Client.mjs +35 -35
- package/dist/esm/api/resources/milestones/resources/index.d.mts +1 -1
- package/dist/esm/api/resources/milestones/resources/index.mjs +1 -1
- package/dist/esm/api/resources/notifications/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/notifications/client/Client.mjs +5 -5
- package/dist/esm/api/resources/notifications/resources/courierPreferences/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/notifications/resources/courierPreferences/client/Client.mjs +2 -2
- package/dist/esm/api/resources/notifications/resources/courierPreferences/client/requests/CourierNotificationPreferencesClientCreate1.d.mts +3 -3
- package/dist/esm/api/resources/notifications/resources/index.d.mts +2 -2
- package/dist/esm/api/resources/notifications/resources/index.mjs +2 -2
- package/dist/esm/api/resources/notifications/resources/shipper/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/notifications/resources/shipper/client/Client.mjs +2 -2
- package/dist/esm/api/resources/notifications/resources/shipper/client/requests/ShipperNotificationPreferencesClientCreate1.d.mts +3 -3
- package/dist/esm/api/resources/offChrtShipperOrgConnectionInfo/client/Client.d.mts +6 -6
- package/dist/esm/api/resources/offChrtShipperOrgConnectionInfo/client/Client.mjs +6 -6
- package/dist/esm/api/resources/offChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientCreate1.d.mts +8 -8
- package/dist/esm/api/resources/offChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientUpdate1.d.mts +4 -4
- package/dist/esm/api/resources/orders/client/Client.d.mts +30 -26
- package/dist/esm/api/resources/orders/client/Client.mjs +74 -70
- package/dist/esm/api/resources/orders/client/requests/CreateOrderReq.d.mts +16 -16
- package/dist/esm/api/resources/orders/resources/full/client/Client.d.mts +12 -12
- package/dist/esm/api/resources/orders/resources/full/client/Client.mjs +33 -33
- package/dist/esm/api/resources/orgConnectionInfos/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/orgConnectionInfos/client/Client.mjs +5 -5
- package/dist/esm/api/resources/orgConnectionInfos/resources/courier/client/Client.d.mts +5 -5
- package/dist/esm/api/resources/orgConnectionInfos/resources/courier/client/Client.mjs +5 -5
- package/dist/esm/api/resources/orgConnectionInfos/resources/courier/client/requests/CourierOrgConnectionInfoClientCreate1.d.mts +7 -7
- package/dist/esm/api/resources/orgConnectionInfos/resources/courier/client/requests/CourierOrgConnectionInfoClientUpdate1.d.mts +4 -4
- package/dist/esm/api/resources/orgConnectionInfos/resources/index.d.mts +2 -2
- package/dist/esm/api/resources/orgConnectionInfos/resources/index.mjs +2 -2
- package/dist/esm/api/resources/orgConnectionInfos/resources/shipper/client/Client.d.mts +5 -5
- package/dist/esm/api/resources/orgConnectionInfos/resources/shipper/client/Client.mjs +5 -5
- package/dist/esm/api/resources/orgConnectionInfos/resources/shipper/client/requests/ShipperOrgConnectionInfoClientCreate1.d.mts +7 -7
- package/dist/esm/api/resources/orgConnectionInfos/resources/shipper/client/requests/ShipperOrgConnectionInfoClientUpdate1.d.mts +4 -4
- package/dist/esm/api/resources/orgProfiles/client/Client.d.mts +15 -17
- package/dist/esm/api/resources/orgProfiles/client/Client.mjs +43 -49
- package/dist/esm/api/resources/orgProfiles/client/requests/CourierOrgProfileClientCreate3.d.mts +3 -3
- package/dist/esm/api/resources/orgProfiles/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/orgs/client/Client.d.mts +41 -37
- package/dist/esm/api/resources/orgs/client/Client.mjs +90 -86
- package/dist/esm/api/resources/orgs/client/requests/CreateOrgPublicDataReq.d.mts +3 -3
- package/dist/esm/api/resources/orgs/client/requests/UpdateOrgPublicDataReq.d.mts +1 -1
- package/dist/esm/api/resources/payments/client/Client.d.mts +3 -7
- package/dist/esm/api/resources/payments/client/Client.mjs +3 -7
- package/dist/esm/api/resources/root/client/Client.d.mts +19 -13
- package/dist/esm/api/resources/root/client/Client.mjs +31 -25
- package/dist/esm/api/resources/shipperContactInfo/client/Client.d.mts +42 -42
- package/dist/esm/api/resources/shipperContactInfo/client/Client.mjs +90 -90
- package/dist/esm/api/resources/shipperContactInfo/client/requests/ShipperContactInfoClientUpdate1.d.mts +4 -4
- package/dist/esm/api/resources/taskGroups/client/Client.d.mts +24 -18
- package/dist/esm/api/resources/taskGroups/client/Client.mjs +43 -37
- package/dist/esm/api/resources/taskGroups/client/requests/UpdateTaskGroupReq.d.mts +2 -2
- package/dist/esm/api/resources/taskGroups/resources/full/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/taskGroups/resources/full/client/Client.mjs +2 -2
- package/dist/esm/api/resources/taskGroups/resources/togglePause/client/Client.d.mts +4 -2
- package/dist/esm/api/resources/taskGroups/resources/togglePause/client/Client.mjs +4 -2
- package/dist/esm/api/resources/taskGroups/resources/togglePause/client/requests/SetTaskGroupPauseReq.d.mts +3 -3
- package/dist/esm/api/resources/users/client/Client.d.mts +2 -0
- package/dist/esm/api/resources/users/client/Client.mjs +2 -0
- package/dist/esm/api/types/Cargo1.d.mts +6 -6
- package/dist/esm/api/types/CargoClientCreate1.d.mts +3 -3
- package/dist/esm/api/types/CourierNotificationPreferences1.d.mts +9 -9
- package/dist/esm/api/types/CourierOrgConnectionInfo1.d.mts +10 -10
- package/dist/esm/api/types/CourierOrgProfile3.d.mts +3 -3
- package/dist/esm/api/types/CourierPayDriverLineItemGroup1.d.mts +5 -5
- package/dist/esm/api/types/CourierPayDriverLineItemGroupClientCreate1.d.mts +1 -1
- package/dist/esm/api/types/CourierPayDriverRateSheet1.d.mts +16 -16
- package/dist/esm/api/types/DecodedJwtWithOrgAndUserId.d.mts +8 -8
- package/dist/esm/api/types/Driver1.d.mts +6 -6
- package/dist/esm/api/types/Expense1.d.mts +3 -3
- package/dist/esm/api/types/Feature.d.mts +3 -3
- package/dist/esm/api/types/GetOrderFullRes.d.mts +2 -2
- package/dist/esm/api/types/Incident1.d.mts +1 -1
- package/dist/esm/api/types/Insurance1.d.mts +1 -1
- package/dist/esm/api/types/LineItem1.d.mts +1 -1
- package/dist/esm/api/types/Milestone1.d.mts +13 -13
- package/dist/esm/api/types/MilestoneClientCreate1.d.mts +1 -1
- package/dist/esm/api/types/MilestoneNotificationPreferences1.d.mts +9 -9
- package/dist/esm/api/types/OffChrtShipperOrgConnectionInfo1.d.mts +11 -11
- package/dist/esm/api/types/Order1.d.mts +11 -11
- package/dist/esm/api/types/OrgMemberDetails.d.mts +2 -2
- package/dist/esm/api/types/OrgMembersAndDrivers.d.mts +1 -1
- package/dist/esm/api/types/OrgPublicData2.d.mts +4 -4
- package/dist/esm/api/types/PayablesInvoice1.d.mts +11 -11
- package/dist/esm/api/types/ReceivablesInvoice1.d.mts +7 -7
- package/dist/esm/api/types/ShipperContactInfo1.d.mts +11 -11
- package/dist/esm/api/types/ShipperContactInfoClientCreate1.d.mts +6 -6
- package/dist/esm/api/types/ShipperCourierConnection1.d.mts +4 -4
- package/dist/esm/api/types/ShipperNotificationPreferences1.d.mts +9 -9
- package/dist/esm/api/types/ShipperOrgConnectionInfo1.d.mts +6 -6
- package/dist/esm/api/types/StripeConnectInvoice1.d.mts +5 -5
- package/dist/esm/api/types/Task1.d.mts +13 -13
- package/dist/esm/api/types/TaskClientCreate1.d.mts +4 -4
- package/dist/esm/api/types/TaskCreateBundle.d.mts +2 -2
- package/dist/esm/api/types/TaskGroup1.d.mts +11 -11
- package/dist/esm/api/types/TaskWithDetails.d.mts +2 -2
- package/dist/esm/api/types/Tracker1.d.mts +1 -1
- package/dist/esm/api/types/TrackerSession1.d.mts +1 -1
- package/dist/esm/api/types/UserPublicData6.d.mts +6 -6
- package/dist/esm/api/types/Vehicle1.d.mts +1 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +1196 -764
- package/dist/cjs/api/resources/courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetsGetRequest.d.ts +0 -11
- package/dist/cjs/api/resources/courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetsGetRequest.js +0 -5
- package/dist/cjs/api/resources/courierPayDriverRateSheets/types/CourierPayDriverRateSheetsGetResponse.d.ts +0 -5
- package/dist/cjs/api/resources/courierPayDriverRateSheets/types/CourierPayDriverRateSheetsGetResponse.js +0 -5
- package/dist/cjs/api/resources/courierPayDriverRateSheets/types/index.d.ts +0 -1
- package/dist/cjs/api/resources/courierPayDriverRateSheets/types/index.js +0 -17
- package/dist/cjs/api/resources/orgProfiles/client/requests/OrgProfilesGetAvatarRequest.d.ts +0 -12
- package/dist/cjs/api/resources/orgProfiles/client/requests/OrgProfilesGetAvatarRequest.js +0 -5
- package/dist/esm/api/resources/courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetsGetRequest.d.mts +0 -11
- package/dist/esm/api/resources/courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetsGetRequest.mjs +0 -4
- package/dist/esm/api/resources/courierPayDriverRateSheets/types/CourierPayDriverRateSheetsGetResponse.d.mts +0 -5
- package/dist/esm/api/resources/courierPayDriverRateSheets/types/CourierPayDriverRateSheetsGetResponse.mjs +0 -4
- package/dist/esm/api/resources/courierPayDriverRateSheets/types/index.d.mts +0 -1
- package/dist/esm/api/resources/courierPayDriverRateSheets/types/index.mjs +0 -1
- package/dist/esm/api/resources/orgProfiles/client/requests/OrgProfilesGetAvatarRequest.d.mts +0 -12
- package/dist/esm/api/resources/orgProfiles/client/requests/OrgProfilesGetAvatarRequest.mjs +0 -4
|
@@ -20,21 +20,21 @@ export class Orgs {
|
|
|
20
20
|
this._options = _options;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* Retrieves basic organization information from the authentication service.
|
|
24
24
|
*
|
|
25
25
|
* @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
|
|
26
26
|
*
|
|
27
27
|
* @example
|
|
28
|
-
* await client.orgs.
|
|
28
|
+
* await client.orgs.getInfo()
|
|
29
29
|
*/
|
|
30
|
-
|
|
31
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
30
|
+
getInfo(requestOptions) {
|
|
31
|
+
return core.HttpResponsePromise.fromPromise(this.__getInfo(requestOptions));
|
|
32
32
|
}
|
|
33
|
-
|
|
33
|
+
__getInfo(requestOptions) {
|
|
34
34
|
return __awaiter(this, void 0, void 0, function* () {
|
|
35
35
|
var _a, _b, _c, _d;
|
|
36
36
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
37
|
-
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/
|
|
37
|
+
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"),
|
|
38
38
|
method: "GET",
|
|
39
39
|
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),
|
|
40
40
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -59,7 +59,7 @@ export class Orgs {
|
|
|
59
59
|
rawResponse: _response.rawResponse,
|
|
60
60
|
});
|
|
61
61
|
case "timeout":
|
|
62
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/
|
|
62
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/info.");
|
|
63
63
|
case "unknown":
|
|
64
64
|
throw new errors.ChrtError({
|
|
65
65
|
message: _response.error.errorMessage,
|
|
@@ -69,24 +69,21 @@ export class Orgs {
|
|
|
69
69
|
});
|
|
70
70
|
}
|
|
71
71
|
/**
|
|
72
|
-
*
|
|
72
|
+
* Lists all members of the authenticated organization with their roles and details.
|
|
73
73
|
*
|
|
74
|
-
* @param {string} handle
|
|
75
74
|
* @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
|
|
76
75
|
*
|
|
77
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
78
|
-
*
|
|
79
76
|
* @example
|
|
80
|
-
* await client.orgs.
|
|
77
|
+
* await client.orgs.listMembers()
|
|
81
78
|
*/
|
|
82
|
-
|
|
83
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
79
|
+
listMembers(requestOptions) {
|
|
80
|
+
return core.HttpResponsePromise.fromPromise(this.__listMembers(requestOptions));
|
|
84
81
|
}
|
|
85
|
-
|
|
82
|
+
__listMembers(requestOptions) {
|
|
86
83
|
return __awaiter(this, void 0, void 0, function* () {
|
|
87
84
|
var _a, _b, _c, _d;
|
|
88
85
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
89
|
-
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local,
|
|
86
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "orgs/members/list"),
|
|
90
87
|
method: "GET",
|
|
91
88
|
headers: mergeHeaders((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
92
89
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -97,16 +94,11 @@ export class Orgs {
|
|
|
97
94
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
98
95
|
}
|
|
99
96
|
if (_response.error.reason === "status-code") {
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
statusCode: _response.error.statusCode,
|
|
106
|
-
body: _response.error.body,
|
|
107
|
-
rawResponse: _response.rawResponse,
|
|
108
|
-
});
|
|
109
|
-
}
|
|
97
|
+
throw new errors.ChrtError({
|
|
98
|
+
statusCode: _response.error.statusCode,
|
|
99
|
+
body: _response.error.body,
|
|
100
|
+
rawResponse: _response.rawResponse,
|
|
101
|
+
});
|
|
110
102
|
}
|
|
111
103
|
switch (_response.error.reason) {
|
|
112
104
|
case "non-json":
|
|
@@ -116,7 +108,7 @@ export class Orgs {
|
|
|
116
108
|
rawResponse: _response.rawResponse,
|
|
117
109
|
});
|
|
118
110
|
case "timeout":
|
|
119
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/
|
|
111
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/members/list.");
|
|
120
112
|
case "unknown":
|
|
121
113
|
throw new errors.ChrtError({
|
|
122
114
|
message: _response.error.errorMessage,
|
|
@@ -126,19 +118,21 @@ export class Orgs {
|
|
|
126
118
|
});
|
|
127
119
|
}
|
|
128
120
|
/**
|
|
121
|
+
* Retrieves public organization data for the authenticated organization.
|
|
122
|
+
*
|
|
129
123
|
* @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
|
|
130
124
|
*
|
|
131
125
|
* @example
|
|
132
|
-
* await client.orgs.
|
|
126
|
+
* await client.orgs.getPublicData()
|
|
133
127
|
*/
|
|
134
|
-
|
|
135
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
128
|
+
getPublicData(requestOptions) {
|
|
129
|
+
return core.HttpResponsePromise.fromPromise(this.__getPublicData(requestOptions));
|
|
136
130
|
}
|
|
137
|
-
|
|
131
|
+
__getPublicData(requestOptions) {
|
|
138
132
|
return __awaiter(this, void 0, void 0, function* () {
|
|
139
133
|
var _a, _b, _c, _d;
|
|
140
134
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
141
|
-
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/
|
|
135
|
+
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"),
|
|
142
136
|
method: "GET",
|
|
143
137
|
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),
|
|
144
138
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -163,7 +157,7 @@ export class Orgs {
|
|
|
163
157
|
rawResponse: _response.rawResponse,
|
|
164
158
|
});
|
|
165
159
|
case "timeout":
|
|
166
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/
|
|
160
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/public_data.");
|
|
167
161
|
case "unknown":
|
|
168
162
|
throw new errors.ChrtError({
|
|
169
163
|
message: _response.error.errorMessage,
|
|
@@ -173,19 +167,24 @@ export class Orgs {
|
|
|
173
167
|
});
|
|
174
168
|
}
|
|
175
169
|
/**
|
|
170
|
+
* Retrieves public organization data for a specific organization by ID.
|
|
171
|
+
*
|
|
172
|
+
* @param {string} orgId
|
|
176
173
|
* @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
|
|
177
174
|
*
|
|
175
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
176
|
+
*
|
|
178
177
|
* @example
|
|
179
|
-
* await client.orgs.
|
|
178
|
+
* await client.orgs.getPublicDataByOrgId("org_id")
|
|
180
179
|
*/
|
|
181
|
-
|
|
182
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
180
|
+
getPublicDataByOrgId(orgId, requestOptions) {
|
|
181
|
+
return core.HttpResponsePromise.fromPromise(this.__getPublicDataByOrgId(orgId, requestOptions));
|
|
183
182
|
}
|
|
184
|
-
|
|
183
|
+
__getPublicDataByOrgId(orgId, requestOptions) {
|
|
185
184
|
return __awaiter(this, void 0, void 0, function* () {
|
|
186
185
|
var _a, _b, _c, _d;
|
|
187
186
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
188
|
-
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,
|
|
187
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, `orgs/public_data/${encodeURIComponent(orgId)}`),
|
|
189
188
|
method: "GET",
|
|
190
189
|
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),
|
|
191
190
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -196,11 +195,16 @@ export class Orgs {
|
|
|
196
195
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
197
196
|
}
|
|
198
197
|
if (_response.error.reason === "status-code") {
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
198
|
+
switch (_response.error.statusCode) {
|
|
199
|
+
case 422:
|
|
200
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
201
|
+
default:
|
|
202
|
+
throw new errors.ChrtError({
|
|
203
|
+
statusCode: _response.error.statusCode,
|
|
204
|
+
body: _response.error.body,
|
|
205
|
+
rawResponse: _response.rawResponse,
|
|
206
|
+
});
|
|
207
|
+
}
|
|
204
208
|
}
|
|
205
209
|
switch (_response.error.reason) {
|
|
206
210
|
case "non-json":
|
|
@@ -210,7 +214,7 @@ export class Orgs {
|
|
|
210
214
|
rawResponse: _response.rawResponse,
|
|
211
215
|
});
|
|
212
216
|
case "timeout":
|
|
213
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/
|
|
217
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/public_data/{org_id}.");
|
|
214
218
|
case "unknown":
|
|
215
219
|
throw new errors.ChrtError({
|
|
216
220
|
message: _response.error.errorMessage,
|
|
@@ -220,21 +224,21 @@ export class Orgs {
|
|
|
220
224
|
});
|
|
221
225
|
}
|
|
222
226
|
/**
|
|
223
|
-
*
|
|
227
|
+
* Retrieves the organization handle for the authenticated organization.
|
|
224
228
|
*
|
|
225
229
|
* @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
|
|
226
230
|
*
|
|
227
231
|
* @example
|
|
228
|
-
* await client.orgs.
|
|
232
|
+
* await client.orgs.getHandle()
|
|
229
233
|
*/
|
|
230
|
-
|
|
231
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
234
|
+
getHandle(requestOptions) {
|
|
235
|
+
return core.HttpResponsePromise.fromPromise(this.__getHandle(requestOptions));
|
|
232
236
|
}
|
|
233
|
-
|
|
237
|
+
__getHandle(requestOptions) {
|
|
234
238
|
return __awaiter(this, void 0, void 0, function* () {
|
|
235
239
|
var _a, _b, _c, _d;
|
|
236
240
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
237
|
-
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/
|
|
241
|
+
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"),
|
|
238
242
|
method: "GET",
|
|
239
243
|
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),
|
|
240
244
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -259,7 +263,7 @@ export class Orgs {
|
|
|
259
263
|
rawResponse: _response.rawResponse,
|
|
260
264
|
});
|
|
261
265
|
case "timeout":
|
|
262
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/
|
|
266
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/handle.");
|
|
263
267
|
case "unknown":
|
|
264
268
|
throw new errors.ChrtError({
|
|
265
269
|
message: _response.error.errorMessage,
|
|
@@ -269,32 +273,26 @@ export class Orgs {
|
|
|
269
273
|
});
|
|
270
274
|
}
|
|
271
275
|
/**
|
|
272
|
-
*
|
|
276
|
+
* Checks if an organization handle is available for use.
|
|
273
277
|
*
|
|
274
|
-
* @param {
|
|
278
|
+
* @param {string} handle
|
|
275
279
|
* @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
|
|
276
280
|
*
|
|
277
281
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
278
282
|
*
|
|
279
283
|
* @example
|
|
280
|
-
* await client.orgs.
|
|
281
|
-
* company_name: "company_name",
|
|
282
|
-
* handle: "handle"
|
|
283
|
-
* })
|
|
284
|
+
* await client.orgs.getHandleAvailability("handle")
|
|
284
285
|
*/
|
|
285
|
-
|
|
286
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
286
|
+
getHandleAvailability(handle, requestOptions) {
|
|
287
|
+
return core.HttpResponsePromise.fromPromise(this.__getHandleAvailability(handle, requestOptions));
|
|
287
288
|
}
|
|
288
|
-
|
|
289
|
+
__getHandleAvailability(handle, requestOptions) {
|
|
289
290
|
return __awaiter(this, void 0, void 0, function* () {
|
|
290
291
|
var _a, _b, _c, _d;
|
|
291
292
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
292
|
-
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,
|
|
293
|
-
method: "
|
|
293
|
+
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)}`),
|
|
294
|
+
method: "GET",
|
|
294
295
|
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),
|
|
295
|
-
contentType: "application/json",
|
|
296
|
-
requestType: "json",
|
|
297
|
-
body: request,
|
|
298
296
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
299
297
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
300
298
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -322,7 +320,7 @@ export class Orgs {
|
|
|
322
320
|
rawResponse: _response.rawResponse,
|
|
323
321
|
});
|
|
324
322
|
case "timeout":
|
|
325
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
323
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/handle/availability/{handle}.");
|
|
326
324
|
case "unknown":
|
|
327
325
|
throw new errors.ChrtError({
|
|
328
326
|
message: _response.error.errorMessage,
|
|
@@ -332,25 +330,28 @@ export class Orgs {
|
|
|
332
330
|
});
|
|
333
331
|
}
|
|
334
332
|
/**
|
|
335
|
-
*
|
|
333
|
+
* Creates public organization data with handle and company name for the authenticated organization.
|
|
336
334
|
*
|
|
337
|
-
* @param {Chrt.
|
|
335
|
+
* @param {Chrt.CreateOrgPublicDataReq} request
|
|
338
336
|
* @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
|
|
339
337
|
*
|
|
340
338
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
341
339
|
*
|
|
342
340
|
* @example
|
|
343
|
-
* await client.orgs.
|
|
341
|
+
* await client.orgs.createPublicData({
|
|
342
|
+
* handle: "handle",
|
|
343
|
+
* company_name: "company_name"
|
|
344
|
+
* })
|
|
344
345
|
*/
|
|
345
|
-
|
|
346
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
346
|
+
createPublicData(request, requestOptions) {
|
|
347
|
+
return core.HttpResponsePromise.fromPromise(this.__createPublicData(request, requestOptions));
|
|
347
348
|
}
|
|
348
|
-
|
|
349
|
-
return __awaiter(this,
|
|
349
|
+
__createPublicData(request, requestOptions) {
|
|
350
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
350
351
|
var _a, _b, _c, _d;
|
|
351
352
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
352
|
-
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/
|
|
353
|
-
method: "
|
|
353
|
+
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"),
|
|
354
|
+
method: "POST",
|
|
354
355
|
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),
|
|
355
356
|
contentType: "application/json",
|
|
356
357
|
requestType: "json",
|
|
@@ -382,7 +383,7 @@ export class Orgs {
|
|
|
382
383
|
rawResponse: _response.rawResponse,
|
|
383
384
|
});
|
|
384
385
|
case "timeout":
|
|
385
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
386
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /orgs/public_data/create.");
|
|
386
387
|
case "unknown":
|
|
387
388
|
throw new errors.ChrtError({
|
|
388
389
|
message: _response.error.errorMessage,
|
|
@@ -392,26 +393,29 @@ export class Orgs {
|
|
|
392
393
|
});
|
|
393
394
|
}
|
|
394
395
|
/**
|
|
395
|
-
*
|
|
396
|
+
* Updates the organization handle or company name for the authenticated organization.
|
|
396
397
|
*
|
|
397
|
-
* @param {
|
|
398
|
+
* @param {Chrt.UpdateOrgPublicDataReq} request
|
|
398
399
|
* @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
|
|
399
400
|
*
|
|
400
401
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
401
402
|
*
|
|
402
403
|
* @example
|
|
403
|
-
* await client.orgs.
|
|
404
|
+
* await client.orgs.updatePublicData()
|
|
404
405
|
*/
|
|
405
|
-
|
|
406
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
406
|
+
updatePublicData(request = {}, requestOptions) {
|
|
407
|
+
return core.HttpResponsePromise.fromPromise(this.__updatePublicData(request, requestOptions));
|
|
407
408
|
}
|
|
408
|
-
|
|
409
|
-
return __awaiter(this,
|
|
409
|
+
__updatePublicData() {
|
|
410
|
+
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
410
411
|
var _a, _b, _c, _d;
|
|
411
412
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
412
|
-
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,
|
|
413
|
-
method: "
|
|
413
|
+
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"),
|
|
414
|
+
method: "PATCH",
|
|
414
415
|
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),
|
|
416
|
+
contentType: "application/json",
|
|
417
|
+
requestType: "json",
|
|
418
|
+
body: request,
|
|
415
419
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
416
420
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
417
421
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -439,7 +443,7 @@ export class Orgs {
|
|
|
439
443
|
rawResponse: _response.rawResponse,
|
|
440
444
|
});
|
|
441
445
|
case "timeout":
|
|
442
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
446
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /orgs/public_data/update.");
|
|
443
447
|
case "unknown":
|
|
444
448
|
throw new errors.ChrtError({
|
|
445
449
|
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
|
|
@@ -20,13 +20,7 @@ export class Payments {
|
|
|
20
20
|
this._options = _options;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
24
|
-
* (1) (a) Validate and decode the jwt, (b) check for an org_id
|
|
25
|
-
* (2) Resolve the subscription_plan
|
|
26
|
-
* (3) Check for an already-active same subscription within the org
|
|
27
|
-
* (4) Check if the current org membership count <= subscription_plan's limit
|
|
28
|
-
* (5) Get the customer_id
|
|
29
|
-
* (6) Create the checkout session url
|
|
23
|
+
* Create a checkout session for a subscription
|
|
30
24
|
*
|
|
31
25
|
* @param {Chrt.CreateCheckoutSessionReq2} request
|
|
32
26
|
* @param {Payments.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -88,6 +82,8 @@ export class Payments {
|
|
|
88
82
|
});
|
|
89
83
|
}
|
|
90
84
|
/**
|
|
85
|
+
* Synchronizes subscription data from Stripe to the authentication service for the current user.
|
|
86
|
+
*
|
|
91
87
|
* @param {Payments.RequestOptions} requestOptions - Request-specific configuration.
|
|
92
88
|
*
|
|
93
89
|
* @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
|
}
|