@chrt-inc/typescript-sdk 1.299.0 → 1.303.0
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/README.md +69 -34
- package/dist/cjs/Client.d.ts +42 -33
- package/dist/cjs/Client.js +80 -65
- package/dist/cjs/api/resources/connections/client/Client.d.ts +20 -4
- package/dist/cjs/api/resources/connections/client/Client.js +67 -6
- package/dist/cjs/api/resources/connections/resources/connectionToCourier/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/connections/resources/connectionToCourier/client/Client.js +4 -4
- package/dist/cjs/api/resources/connections/resources/connectionToCourier/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/connections/resources/connectionToCourier/client/index.js +0 -15
- package/dist/cjs/api/resources/connections/resources/connectionToForwarder/client/Client.d.ts +49 -0
- package/dist/cjs/api/resources/connections/resources/connectionToForwarder/client/Client.js +132 -0
- package/dist/cjs/api/resources/connections/resources/connectionToShipper/client/Client.d.ts +49 -0
- package/dist/cjs/api/resources/connections/resources/connectionToShipper/client/Client.js +132 -0
- package/dist/cjs/api/resources/connections/resources/index.d.ts +2 -1
- package/dist/cjs/api/resources/connections/resources/index.js +3 -5
- package/dist/cjs/api/resources/courierPayDriverPayouts/client/Client.d.ts +7 -7
- package/dist/cjs/api/resources/courierPayDriverPayouts/client/Client.js +6 -6
- package/dist/cjs/api/resources/courierPayDriverPayouts/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/courierPayDriverPayouts/client/index.js +0 -15
- package/dist/cjs/api/resources/courierPayDriverStatements/client/Client.d.ts +90 -0
- package/dist/cjs/api/resources/courierPayDriverStatements/client/Client.js +314 -0
- package/dist/cjs/api/resources/index.d.ts +24 -21
- package/dist/cjs/api/resources/index.js +25 -22
- package/dist/cjs/api/resources/offChrtShipperOrg/client/Client.d.ts +100 -0
- package/dist/cjs/api/resources/{offChrtShipperOrgInfo → offChrtShipperOrg}/client/Client.js +30 -30
- package/dist/cjs/api/resources/{offChrtShipperOrgInfo/client/requests/OffChrtShipperOrgInfoClientCreate1.d.ts → offChrtShipperOrg/client/requests/OffChrtShipperOrgClientCreate1.d.ts} +3 -3
- package/dist/cjs/api/resources/{offChrtShipperOrgInfo/client/requests/OffChrtShipperOrgInfoClientUpdate1.d.ts → offChrtShipperOrg/client/requests/OffChrtShipperOrgClientUpdate1.d.ts} +1 -1
- package/dist/cjs/api/resources/offChrtShipperOrg/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/orderDrafts/client/Client.d.ts +100 -0
- package/dist/cjs/api/resources/orderDrafts/client/Client.js +332 -0
- package/dist/cjs/api/resources/orderDrafts/client/requests/OrdersDraftUpdateReq.d.ts +17 -0
- package/dist/cjs/api/resources/orderDrafts/client/requests/OrdersNewDraftReq.d.ts +14 -0
- package/dist/cjs/api/resources/orderDrafts/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/orderDrafts/resources/cargo/client/Client.d.ts +99 -0
- package/dist/cjs/api/resources/orderDrafts/resources/cargo/client/Client.js +326 -0
- package/dist/cjs/api/resources/orderDrafts/resources/cargo/client/requests/OrderDraftAddCargoReq.d.ts +18 -0
- package/dist/cjs/api/resources/orderDrafts/resources/cargo/client/requests/OrderDraftAssociateCargoWithTaskReq.d.ts +16 -0
- package/dist/cjs/api/resources/orderDrafts/resources/cargo/client/requests/OrderDraftUpdateCargoReq.d.ts +15 -0
- package/dist/cjs/api/resources/orderDrafts/resources/cargo/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/orderDrafts/resources/index.d.ts +8 -0
- package/dist/cjs/api/resources/orderDrafts/resources/index.js +47 -0
- package/dist/cjs/api/resources/orderDrafts/resources/task/client/Client.d.ts +81 -0
- package/dist/cjs/api/resources/{orders/resources/full → orderDrafts/resources/task}/client/Client.js +71 -41
- package/dist/cjs/api/resources/orderDrafts/resources/task/client/requests/OrderDraftAddTaskReqV1.d.ts +18 -0
- package/dist/cjs/api/resources/orderDrafts/resources/task/client/requests/OrderDraftUpdateTaskReq.d.ts +15 -0
- package/dist/cjs/api/resources/orderDrafts/resources/task/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/orderDrafts/resources/task/index.d.ts +1 -0
- package/dist/cjs/api/resources/orderDrafts/resources/task/index.js +17 -0
- package/dist/cjs/api/resources/orderDrafts/resources/taskArtifact/client/Client.d.ts +63 -0
- package/dist/cjs/api/resources/orderDrafts/resources/taskArtifact/client/Client.js +192 -0
- package/dist/cjs/api/resources/orderDrafts/resources/taskArtifact/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/orderDrafts/resources/taskArtifact/client/index.js +17 -0
- package/dist/cjs/api/resources/orderDrafts/resources/taskArtifact/client/requests/OrderDraftAddTaskArtifactReq.d.ts +15 -0
- package/dist/cjs/api/resources/orderDrafts/resources/taskArtifact/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/orderDrafts/resources/taskArtifact/index.d.ts +1 -0
- package/dist/cjs/api/resources/orderDrafts/resources/taskArtifact/index.js +17 -0
- package/dist/cjs/api/resources/orderDrafts/resources/taskGroup/client/Client.d.ts +63 -0
- package/dist/cjs/api/resources/orderDrafts/resources/taskGroup/client/Client.js +192 -0
- package/dist/cjs/api/resources/orderDrafts/resources/taskGroup/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/orderDrafts/resources/taskGroup/client/index.js +17 -0
- package/dist/cjs/api/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftAddTaskGroupReq.d.ts +17 -0
- package/dist/cjs/api/resources/orderDrafts/resources/taskGroup/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/orderDrafts/resources/taskGroup/index.d.ts +1 -0
- package/dist/cjs/api/resources/orderDrafts/resources/taskGroup/index.js +17 -0
- package/dist/cjs/api/resources/orders/client/Client.d.ts +14 -88
- package/dist/cjs/api/resources/orders/client/Client.js +19 -314
- package/dist/cjs/api/resources/orders/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/orders/client/index.js +0 -15
- package/dist/cjs/api/resources/orders/resources/draft/client/Client.d.ts +23 -0
- package/dist/cjs/api/resources/orders/resources/draft/client/Client.js +17 -0
- package/dist/cjs/api/resources/orders/resources/draft/client/index.js +2 -0
- package/dist/cjs/api/resources/orders/resources/draft/index.d.ts +2 -0
- package/dist/cjs/api/resources/orders/resources/draft/index.js +18 -0
- package/dist/cjs/api/resources/orders/resources/draft/resources/expanded/client/Client.d.ts +61 -0
- package/dist/cjs/api/resources/orders/resources/draft/resources/expanded/client/Client.js +193 -0
- package/dist/cjs/api/resources/orders/resources/draft/resources/expanded/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/orders/resources/draft/resources/expanded/client/index.js +17 -0
- package/dist/cjs/api/resources/orders/resources/draft/resources/expanded/client/requests/OrderDraftExpandedListReq.d.ts +21 -0
- package/dist/cjs/api/resources/orders/resources/draft/resources/expanded/client/requests/OrderDraftExpandedReq.d.ts +21 -0
- package/dist/cjs/api/resources/orders/resources/draft/resources/expanded/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/orders/resources/draft/resources/expanded/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/orders/resources/draft/resources/expanded/index.d.ts +1 -0
- package/dist/cjs/api/resources/orders/resources/draft/resources/expanded/index.js +17 -0
- package/dist/cjs/api/resources/orders/resources/draft/resources/index.d.ts +2 -0
- package/dist/cjs/api/resources/orders/resources/draft/resources/index.js +41 -0
- package/dist/cjs/api/resources/orders/resources/{full → expanded}/client/Client.d.ts +18 -23
- package/dist/cjs/api/resources/{milestones → orders/resources/expanded}/client/Client.js +28 -41
- package/dist/cjs/api/resources/orders/resources/expanded/client/index.js +2 -0
- package/dist/cjs/api/resources/orders/resources/expanded/index.d.ts +1 -0
- package/dist/cjs/api/resources/orders/resources/expanded/index.js +17 -0
- package/dist/cjs/api/resources/orders/resources/expandedList/client/Client.d.ts +78 -0
- package/dist/cjs/api/resources/orders/resources/expandedList/client/Client.js +291 -0
- package/dist/cjs/api/resources/orders/resources/expandedList/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/orders/resources/expandedList/client/index.js +17 -0
- package/dist/cjs/api/resources/orders/resources/expandedList/client/requests/ExpandedListPostOrderCreatorExpandedListV1Request.d.ts +30 -0
- package/dist/cjs/api/resources/orders/resources/expandedList/client/requests/ExpandedListPostShipperExpandedListV1Request.d.ts +28 -0
- package/dist/cjs/api/resources/orders/resources/expandedList/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/orders/resources/expandedList/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/orders/resources/expandedList/index.d.ts +1 -0
- package/dist/cjs/api/resources/orders/resources/expandedList/index.js +17 -0
- package/dist/cjs/api/resources/orders/resources/index.d.ts +4 -1
- package/dist/cjs/api/resources/orders/resources/index.js +8 -2
- 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 +8 -8
- package/dist/cjs/api/resources/orgConnectionInfos/resources/courier/client/requests/{CourierOrgConnectionInfoClientCreate1.d.ts → CourierOrgInfoForConnectionsClientCreate1.d.ts} +1 -1
- package/dist/cjs/api/resources/orgConnectionInfos/resources/{shipper/client/requests/ShipperOrgConnectionInfoClientUpdate1.d.ts → courier/client/requests/CourierOrgInfoForConnectionsClientUpdate1.d.ts} +1 -1
- package/dist/cjs/api/resources/orgConnectionInfos/resources/courier/client/requests/index.d.ts +2 -2
- 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 +8 -8
- package/dist/cjs/api/resources/orgConnectionInfos/resources/shipper/client/requests/{ShipperOrgConnectionInfoClientCreate1.d.ts → ShipperOrgInfoForConnectionsClientCreate1.d.ts} +1 -1
- package/dist/cjs/api/resources/orgConnectionInfos/resources/{courier/client/requests/CourierOrgConnectionInfoClientUpdate1.d.ts → shipper/client/requests/ShipperOrgInfoForConnectionsClientUpdate1.d.ts} +1 -1
- package/dist/cjs/api/resources/orgConnectionInfos/resources/shipper/client/requests/index.d.ts +2 -2
- package/dist/cjs/api/resources/orgProfiles/client/Client.d.ts +43 -12
- package/dist/cjs/api/resources/orgProfiles/client/Client.js +151 -22
- package/dist/{esm/api/resources/orgProfiles/client/requests/CourierOrgProfileClientCreate3.d.mts → cjs/api/resources/orgProfiles/client/requests/CourierOrgProfileClientCreate1.d.ts} +1 -1
- package/dist/{esm/api/resources/orgProfiles/client/requests/CourierOrgProfileClientUpdate3.d.mts → cjs/api/resources/orgProfiles/client/requests/CourierOrgProfileClientUpdate1.d.ts} +1 -1
- package/dist/cjs/api/resources/orgProfiles/client/requests/ForwarderOrgProfileClientCreate1.d.ts +18 -0
- package/dist/cjs/api/resources/orgProfiles/client/requests/ForwarderOrgProfileClientUpdate1.d.ts +12 -0
- package/dist/cjs/api/resources/orgProfiles/client/requests/index.d.ts +4 -2
- package/dist/cjs/api/resources/orgs/client/Client.d.ts +25 -36
- package/dist/cjs/api/resources/orgs/client/Client.js +52 -104
- package/dist/cjs/api/resources/orgs/client/requests/CreateOrgPublicDataReq.d.ts +5 -4
- package/dist/cjs/api/resources/payments/client/Client.d.ts +15 -15
- package/dist/cjs/api/resources/payments/client/Client.js +62 -62
- package/dist/cjs/api/resources/payments/client/requests/GenerateInvoiceReq.d.ts +2 -2
- package/dist/cjs/api/resources/payments/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/shipperContactInfo/client/Client.d.ts +14 -14
- package/dist/cjs/api/resources/shipperContactInfo/client/Client.js +10 -10
- package/dist/cjs/api/resources/shipperContactInfo/client/requests/{ShipperContactInfoClientUpdate1.d.ts → ShipperContactClientUpdate1.d.ts} +1 -1
- package/dist/cjs/api/resources/shipperContactInfo/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/shipperPayCourierPayments/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/shipperPayCourierPayments/client/requests/ListPaymentsByCourierReq.d.ts +1 -1
- package/dist/cjs/api/resources/shipperPayCourierRateSheets/client/requests/ShipperPayCourierRateSheetClientCreate1.d.ts +1 -1
- package/dist/cjs/api/resources/shipperPayCourierRateSheets/client/requests/ShipperPayCourierRateSheetClientUpdate1.d.ts +1 -1
- package/dist/cjs/api/resources/shipperPayCourierStatements/client/Client.d.ts +133 -0
- package/dist/cjs/api/resources/shipperPayCourierStatements/client/Client.js +507 -0
- package/dist/cjs/api/resources/shipperPayCourierStatements/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/shipperPayCourierStatements/client/index.js +17 -0
- package/dist/cjs/api/resources/shipperPayCourierStatements/client/requests/ListStatementsByCourierReq.d.ts +16 -0
- package/dist/cjs/api/resources/shipperPayCourierStatements/client/requests/ListStatementsByShipperReq.d.ts +15 -0
- package/dist/cjs/api/resources/shipperPayCourierStatements/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/shipperPayCourierStatements/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/shipperPayCourierStatements/index.d.ts +1 -0
- package/dist/cjs/api/resources/shipperPayCourierStatements/index.js +17 -0
- package/dist/cjs/api/resources/{milestoneNotifications → taskArtifactNotifications}/client/Client.d.ts +13 -13
- package/dist/cjs/api/resources/{milestoneNotifications → taskArtifactNotifications}/client/Client.js +14 -14
- package/dist/cjs/api/resources/taskArtifactNotifications/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/taskArtifactNotifications/client/index.js +17 -0
- package/dist/cjs/api/resources/{milestoneNotifications/client/requests/MilestoneNotificationPreferencesClientCreate1.d.ts → taskArtifactNotifications/client/requests/TaskArtifactNotificationPreferencesClientCreate1.d.ts} +2 -2
- package/dist/cjs/api/resources/taskArtifactNotifications/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/taskArtifactNotifications/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/taskArtifactNotifications/index.d.ts +1 -0
- package/dist/cjs/api/resources/taskArtifactNotifications/index.js +17 -0
- package/dist/cjs/api/resources/{milestones → taskArtifacts}/client/Client.d.ts +32 -17
- package/dist/cjs/api/resources/taskArtifacts/client/Client.js +268 -0
- package/dist/cjs/api/resources/taskArtifacts/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/taskArtifacts/client/index.js +17 -0
- package/dist/cjs/api/resources/taskArtifacts/client/requests/TaskArtifactAddToTaskReq.d.ts +19 -0
- package/dist/cjs/api/resources/taskArtifacts/client/requests/TaskArtifactUpdateCommentsReq.d.ts +14 -0
- package/dist/cjs/api/resources/taskArtifacts/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/taskArtifacts/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/taskArtifacts/index.d.ts +2 -0
- package/dist/cjs/api/resources/taskArtifacts/index.js +18 -0
- package/dist/cjs/api/resources/{milestones → taskArtifacts}/resources/blurhash/client/Client.d.ts +4 -4
- package/dist/cjs/api/resources/{milestones → taskArtifacts}/resources/blurhash/client/Client.js +8 -8
- package/dist/cjs/api/resources/taskArtifacts/resources/blurhash/client/index.js +2 -0
- package/dist/cjs/api/resources/taskArtifacts/resources/blurhash/index.d.ts +1 -0
- package/dist/cjs/api/resources/taskArtifacts/resources/blurhash/index.js +17 -0
- package/dist/cjs/api/resources/{milestones → taskArtifacts}/resources/images/client/Client.d.ts +17 -18
- package/dist/cjs/api/resources/{milestones → taskArtifacts}/resources/images/client/Client.js +44 -49
- package/dist/cjs/api/resources/taskArtifacts/resources/images/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/taskArtifacts/resources/images/client/index.js +17 -0
- package/dist/cjs/api/resources/taskArtifacts/resources/images/client/requests/BodyPostTaskArtifactsUploadImageV1OortTaskArtifactsImagesUploadV1TaskArtifactIdPost.d.ts +13 -0
- package/dist/cjs/api/resources/taskArtifacts/resources/images/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/taskArtifacts/resources/images/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/taskArtifacts/resources/images/index.d.ts +1 -0
- package/dist/cjs/api/resources/taskArtifacts/resources/images/index.js +17 -0
- package/dist/cjs/api/resources/taskGroups/client/Client.d.ts +5 -5
- package/dist/cjs/api/resources/taskGroups/client/Client.js +8 -8
- package/dist/cjs/api/resources/taskGroups/resources/expanded/client/requests/TaskGroupExpandedForShipperReq.d.ts +1 -1
- package/dist/cjs/api/resources/taskGroups/resources/expandedList/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/taskGroups/resources/expandedList/client/Client.js +2 -2
- package/dist/cjs/api/resources/taskGroups/resources/expandedList/client/requests/ExpandedListForCourierAdministratorV1Request.d.ts +1 -1
- package/dist/cjs/api/resources/taskGroups/resources/expandedList/client/requests/ExpandedListForCourierDriverV1Request.d.ts +1 -1
- package/dist/cjs/api/types/Cargo1.d.ts +12 -0
- package/dist/cjs/api/types/CargoClientCreate1.d.ts +3 -0
- package/dist/cjs/api/types/CargoClientUpdate1.d.ts +15 -0
- package/dist/cjs/api/types/CargoStatusEnum1.d.ts +3 -2
- package/dist/cjs/api/types/CargoStatusEnum1.js +2 -1
- package/dist/cjs/api/types/ChrtGroundCourierTaskActionEnum1.d.ts +30 -0
- package/dist/cjs/api/types/ChrtGroundCourierTaskActionEnum1.js +15 -0
- package/dist/cjs/api/types/CourierConnectionRes.d.ts +8 -0
- package/dist/cjs/api/types/CourierNotificationPreferences1.d.ts +1 -1
- package/dist/cjs/api/types/{CourierOrgConnectionInfo1.d.ts → CourierOrgInfoForConnections1.d.ts} +1 -1
- package/dist/cjs/api/types/{CourierOrgProfile3.d.ts → CourierOrgProfile1.d.ts} +1 -1
- package/dist/cjs/api/types/{CourierPayDriverPayout1.d.ts → CourierPayDriverStatement1.d.ts} +7 -7
- package/dist/cjs/api/types/CourierPayDriverStatementClientCreate1.d.ts +7 -0
- package/dist/cjs/api/types/CourierPayDriverStatementClientUpdate1.d.ts +13 -0
- package/dist/cjs/api/{resources/connections/resources/connectionToCourier/client/requests → types}/CreateConnectionReq.d.ts +0 -6
- package/dist/cjs/api/types/CreateShipperPayCourierStatementReq.d.ts +6 -0
- package/dist/cjs/api/types/Driver1.d.ts +1 -1
- package/dist/cjs/api/types/FlightTaskActionEnum1.d.ts +17 -0
- package/dist/cjs/api/types/FlightTaskActionEnum1.js +15 -0
- package/dist/cjs/api/types/ForwarderConnectionRes.d.ts +8 -0
- package/dist/cjs/api/types/ForwarderOrgInfoForConnections1.d.ts +22 -0
- package/dist/cjs/api/types/ForwarderOrgProfile1.d.ts +12 -0
- package/dist/cjs/api/types/ForwarderOrgProfile1.js +5 -0
- package/dist/cjs/api/types/GetShipperPayCourierPaymentsForShipperRes.d.ts +1 -1
- package/dist/cjs/api/types/GetShipperPayCourierStatementsForShipperRes.d.ts +7 -0
- package/dist/cjs/api/types/GetShipperPayCourierStatementsForShipperRes.js +5 -0
- package/dist/cjs/api/types/LineItem1.d.ts +1 -1
- package/dist/cjs/api/types/LocationProperties.d.ts +0 -1
- package/dist/cjs/api/types/{OffChrtShipperOrgInfo1.d.ts → OffChrtShipperOrg1.d.ts} +3 -3
- package/dist/cjs/api/types/OffChrtShipperOrg1.js +5 -0
- package/dist/cjs/api/types/OnboardCourierTaskActionEnum1.d.ts +29 -0
- package/dist/cjs/api/types/OnboardCourierTaskActionEnum1.js +24 -0
- package/dist/cjs/api/types/Order1.d.ts +11 -10
- package/dist/cjs/api/types/OrderDraftExpandedListRes.d.ts +11 -0
- package/dist/cjs/api/types/OrderDraftExpandedListRes.js +5 -0
- package/dist/cjs/api/types/OrderDraftExpandedRes.d.ts +13 -0
- package/dist/cjs/api/types/OrderDraftExpandedRes.js +5 -0
- package/dist/cjs/api/types/OrderExpandedForOrderCreator.d.ts +16 -0
- package/dist/cjs/api/types/OrderExpandedForOrderCreator.js +5 -0
- package/dist/cjs/api/types/OrderExpandedForOrderCreatorReq.d.ts +14 -0
- package/dist/cjs/api/types/OrderExpandedForOrderCreatorReq.js +5 -0
- package/dist/cjs/api/types/OrderExpandedForShipper.d.ts +16 -0
- package/dist/cjs/api/types/OrderExpandedForShipper.js +5 -0
- package/dist/cjs/api/types/OrderExpandedForShipperReq.d.ts +14 -0
- package/dist/cjs/api/types/OrderExpandedForShipperReq.js +5 -0
- package/dist/cjs/api/types/OrderExpandedListSortFieldEnum.d.ts +11 -0
- package/dist/cjs/api/types/OrderExpandedListSortFieldEnum.js +10 -0
- package/dist/cjs/api/types/OrderStatusEnum1.d.ts +4 -3
- package/dist/cjs/api/types/OrderStatusEnum1.js +3 -2
- package/dist/cjs/api/types/OrdersDraftUpdateRes.d.ts +12 -0
- package/dist/cjs/api/types/OrdersDraftUpdateRes.js +5 -0
- package/dist/cjs/api/types/OrdersExpandedForOrderCreatorRes.d.ts +11 -0
- package/dist/cjs/api/types/OrdersExpandedForOrderCreatorRes.js +5 -0
- package/dist/cjs/api/types/OrdersExpandedForShipperRes.d.ts +11 -0
- package/dist/cjs/api/types/OrdersExpandedForShipperRes.js +5 -0
- package/dist/cjs/api/types/{CreateOrderRes.d.ts → OrdersNewDraftRes.d.ts} +1 -1
- package/dist/cjs/api/types/OrdersNewDraftRes.js +5 -0
- package/dist/cjs/api/types/OrgProfileRes1.d.ts +8 -0
- package/dist/cjs/api/types/OrgProfileRes1.js +5 -0
- package/dist/cjs/api/types/{OrgPublicData2.d.ts → OrgPublicData1.d.ts} +2 -4
- package/dist/cjs/api/types/OrgPublicData1.js +5 -0
- package/dist/cjs/api/types/OrgTypeEnum.d.ts +9 -0
- package/dist/cjs/api/types/{OrderCreatedByTypeEnum.js → OrgTypeEnum.js} +4 -4
- package/dist/cjs/api/types/ShipperConnectionRes.d.ts +8 -0
- package/dist/cjs/api/types/ShipperConnectionRes.js +5 -0
- package/dist/cjs/api/types/{ShipperContactInfo1.d.ts → ShipperContact1.d.ts} +6 -6
- package/dist/cjs/api/types/ShipperContact1.js +5 -0
- package/dist/cjs/api/types/{ShipperContactInfoClientCreate1.d.ts → ShipperContactClientCreate1.d.ts} +6 -6
- package/dist/cjs/api/types/ShipperContactClientCreate1.js +5 -0
- package/dist/cjs/api/types/ShipperNotificationPreferences1.d.ts +1 -1
- package/dist/cjs/api/types/{ShipperOrgConnectionInfo1.d.ts → ShipperOrgInfoForConnections1.d.ts} +1 -1
- package/dist/cjs/api/types/ShipperOrgInfoForConnections1.js +5 -0
- package/dist/cjs/api/types/ShipperPayCourierLineItemGroup1.d.ts +1 -1
- package/dist/cjs/api/types/ShipperPayCourierLineItemGroupServerCreate1.d.ts +1 -1
- package/dist/cjs/api/types/ShipperPayCourierRateSheet1.d.ts +1 -1
- package/dist/cjs/api/types/{ShipperPayCourierPayment1.d.ts → ShipperPayCourierStatement1.d.ts} +4 -4
- package/dist/cjs/api/types/ShipperPayCourierStatement1.js +5 -0
- package/dist/cjs/api/types/StatementPreviewResponse.d.ts +10 -0
- package/dist/cjs/api/types/StatementPreviewResponse.js +5 -0
- package/dist/cjs/api/types/{PayoutStatusEnum.d.ts → StatementStatusEnum.d.ts} +2 -2
- package/dist/cjs/api/types/{PayoutStatusEnum.js → StatementStatusEnum.js} +2 -2
- package/dist/cjs/api/types/Task1.d.ts +19 -8
- package/dist/cjs/api/types/TaskArtifact1.d.ts +31 -0
- package/dist/cjs/api/types/TaskArtifact1.js +5 -0
- package/dist/cjs/api/types/{MilestoneNotificationPreferences1.d.ts → TaskArtifactNotificationPreferences1.d.ts} +3 -3
- package/dist/cjs/api/types/TaskArtifactNotificationPreferences1.js +5 -0
- package/dist/cjs/api/types/TaskArtifactStatusEnum1.d.ts +10 -0
- package/dist/cjs/api/types/TaskArtifactStatusEnum1.js +12 -0
- package/dist/cjs/api/types/TaskArtifactTypeEnum1.d.ts +9 -0
- package/dist/cjs/api/types/{OrderDispatchTypeEnum.js → TaskArtifactTypeEnum1.js} +5 -5
- package/dist/cjs/api/types/TaskClientCreate1.d.ts +3 -4
- package/dist/cjs/api/types/TaskClientUpdate1.d.ts +15 -0
- package/dist/cjs/api/types/TaskClientUpdate1.js +5 -0
- package/dist/cjs/api/types/TaskDraftExpanded.d.ts +10 -0
- package/dist/cjs/api/types/TaskDraftExpanded.js +5 -0
- package/dist/cjs/api/types/TaskExpanded.d.ts +2 -2
- package/dist/cjs/api/types/TaskGroup1.d.ts +16 -8
- package/dist/cjs/api/types/TaskGroupDraftExpanded.d.ts +10 -0
- package/dist/cjs/api/types/TaskGroupDraftExpanded.js +5 -0
- package/dist/cjs/api/types/TaskGroupExpandedForCourierAdministrator.d.ts +1 -1
- package/dist/cjs/api/types/TaskGroupExpandedForCourierAdministratorReq.d.ts +1 -1
- package/dist/cjs/api/types/TaskGroupExpandedForCourierDriver.d.ts +1 -1
- package/dist/cjs/api/types/TaskGroupExpandedForCourierDriverReq.d.ts +1 -1
- package/dist/cjs/api/types/TaskGroupExpandedForShipper.d.ts +1 -1
- package/dist/cjs/api/types/TaskGroupExpandedSortFieldEnum.d.ts +4 -4
- package/dist/cjs/api/types/TaskGroupExpandedSortFieldEnum.js +3 -3
- package/dist/cjs/api/types/{StripeConnectAccountEvent.d.ts → TaskGroupMessage1.d.ts} +5 -5
- package/dist/cjs/api/types/TaskGroupMessage1.js +5 -0
- package/dist/cjs/api/types/TaskGroupMileage1.d.ts +9 -0
- package/dist/cjs/api/types/TaskGroupMileage1.js +5 -0
- package/dist/cjs/api/types/TaskGroupStatusEnum1.d.ts +4 -2
- package/dist/cjs/api/types/TaskGroupStatusEnum1.js +3 -1
- package/dist/cjs/api/types/TaskGroupTypeEnum1.d.ts +9 -0
- package/dist/cjs/api/types/TaskGroupTypeEnum1.js +11 -0
- package/dist/cjs/api/types/TaskStatusEnum1.d.ts +10 -0
- package/dist/cjs/api/types/TaskStatusEnum1.js +12 -0
- package/dist/cjs/api/types/TimeWindow1.d.ts +7 -0
- package/dist/cjs/api/types/TimeWindow1.js +5 -0
- package/dist/cjs/api/types/index.d.ts +51 -32
- package/dist/cjs/api/types/index.js +51 -32
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.d.mts +42 -33
- package/dist/esm/Client.mjs +60 -45
- package/dist/esm/api/resources/connections/client/Client.d.mts +20 -4
- package/dist/esm/api/resources/connections/client/Client.mjs +67 -6
- package/dist/esm/api/resources/connections/resources/connectionToCourier/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/connections/resources/connectionToCourier/client/Client.mjs +4 -4
- package/dist/esm/api/resources/connections/resources/connectionToCourier/client/index.d.mts +0 -1
- package/dist/esm/api/resources/connections/resources/connectionToCourier/client/index.mjs +1 -1
- package/dist/esm/api/resources/connections/resources/connectionToForwarder/client/Client.d.mts +49 -0
- package/dist/esm/api/resources/connections/resources/connectionToForwarder/client/Client.mjs +95 -0
- package/dist/esm/api/resources/connections/resources/connectionToShipper/client/Client.d.mts +49 -0
- package/dist/esm/api/resources/connections/resources/connectionToShipper/client/Client.mjs +95 -0
- package/dist/esm/api/resources/connections/resources/index.d.mts +2 -1
- package/dist/esm/api/resources/connections/resources/index.mjs +2 -1
- package/dist/esm/api/resources/courierPayDriverPayouts/client/Client.d.mts +7 -7
- package/dist/esm/api/resources/courierPayDriverPayouts/client/Client.mjs +6 -6
- package/dist/esm/api/resources/courierPayDriverPayouts/client/index.d.mts +0 -1
- package/dist/esm/api/resources/courierPayDriverPayouts/client/index.mjs +1 -1
- package/dist/esm/api/resources/courierPayDriverStatements/client/Client.d.mts +90 -0
- package/dist/esm/api/resources/courierPayDriverStatements/client/Client.mjs +277 -0
- package/dist/esm/api/resources/index.d.mts +24 -21
- package/dist/esm/api/resources/index.mjs +24 -21
- package/dist/esm/api/resources/offChrtShipperOrg/client/Client.d.mts +100 -0
- package/dist/esm/api/resources/{offChrtShipperOrgInfo → offChrtShipperOrg}/client/Client.mjs +28 -28
- package/dist/esm/api/resources/{offChrtShipperOrgInfo/client/requests/OffChrtShipperOrgInfoClientCreate1.d.mts → offChrtShipperOrg/client/requests/OffChrtShipperOrgClientCreate1.d.mts} +3 -3
- package/dist/esm/api/resources/{offChrtShipperOrgInfo/client/requests/OffChrtShipperOrgInfoClientUpdate1.d.mts → offChrtShipperOrg/client/requests/OffChrtShipperOrgClientUpdate1.d.mts} +1 -1
- package/dist/esm/api/resources/offChrtShipperOrg/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/orderDrafts/client/Client.d.mts +100 -0
- package/dist/esm/api/resources/orderDrafts/client/Client.mjs +295 -0
- package/dist/esm/api/resources/orderDrafts/client/requests/OrdersDraftUpdateReq.d.mts +17 -0
- package/dist/esm/api/resources/orderDrafts/client/requests/OrdersNewDraftReq.d.mts +14 -0
- package/dist/esm/api/resources/orderDrafts/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/orderDrafts/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/orderDrafts/resources/cargo/client/Client.d.mts +99 -0
- package/dist/esm/api/resources/orderDrafts/resources/cargo/client/Client.mjs +289 -0
- package/dist/esm/api/resources/orderDrafts/resources/cargo/client/requests/OrderDraftAddCargoReq.d.mts +18 -0
- package/dist/esm/api/resources/orderDrafts/resources/cargo/client/requests/OrderDraftAssociateCargoWithTaskReq.d.mts +16 -0
- package/dist/esm/api/resources/orderDrafts/resources/cargo/client/requests/OrderDraftUpdateCargoReq.d.mts +15 -0
- package/dist/esm/api/resources/orderDrafts/resources/cargo/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/orderDrafts/resources/cargo/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/orderDrafts/resources/index.d.mts +8 -0
- package/dist/esm/api/resources/orderDrafts/resources/index.mjs +8 -0
- package/dist/esm/api/resources/orderDrafts/resources/task/client/Client.d.mts +81 -0
- package/dist/esm/api/resources/{orders/resources/full → orderDrafts/resources/task}/client/Client.mjs +69 -39
- package/dist/esm/api/resources/orderDrafts/resources/task/client/requests/OrderDraftAddTaskReqV1.d.mts +18 -0
- package/dist/esm/api/resources/orderDrafts/resources/task/client/requests/OrderDraftUpdateTaskReq.d.mts +15 -0
- package/dist/esm/api/resources/orderDrafts/resources/task/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/orderDrafts/resources/task/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/orderDrafts/resources/task/index.d.mts +1 -0
- package/dist/esm/api/resources/orderDrafts/resources/task/index.mjs +1 -0
- package/dist/esm/api/resources/orderDrafts/resources/taskArtifact/client/Client.d.mts +63 -0
- package/dist/esm/api/resources/orderDrafts/resources/taskArtifact/client/Client.mjs +155 -0
- package/dist/esm/api/resources/orderDrafts/resources/taskArtifact/client/index.d.mts +2 -0
- package/dist/esm/api/resources/orderDrafts/resources/taskArtifact/client/index.mjs +1 -0
- package/dist/esm/api/resources/orderDrafts/resources/taskArtifact/client/requests/OrderDraftAddTaskArtifactReq.d.mts +15 -0
- package/dist/esm/api/resources/orderDrafts/resources/taskArtifact/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/orderDrafts/resources/taskArtifact/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/orderDrafts/resources/taskArtifact/index.d.mts +1 -0
- package/dist/esm/api/resources/orderDrafts/resources/taskArtifact/index.mjs +1 -0
- package/dist/esm/api/resources/orderDrafts/resources/taskGroup/client/Client.d.mts +63 -0
- package/dist/esm/api/resources/orderDrafts/resources/taskGroup/client/Client.mjs +155 -0
- package/dist/esm/api/resources/orderDrafts/resources/taskGroup/client/index.d.mts +2 -0
- package/dist/esm/api/resources/orderDrafts/resources/taskGroup/client/index.mjs +1 -0
- package/dist/esm/api/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftAddTaskGroupReq.d.mts +17 -0
- package/dist/esm/api/resources/orderDrafts/resources/taskGroup/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/orderDrafts/resources/taskGroup/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/orderDrafts/resources/taskGroup/index.d.mts +1 -0
- package/dist/esm/api/resources/orderDrafts/resources/taskGroup/index.mjs +1 -0
- package/dist/esm/api/resources/orders/client/Client.d.mts +14 -88
- package/dist/esm/api/resources/orders/client/Client.mjs +19 -314
- package/dist/esm/api/resources/orders/client/index.d.mts +0 -1
- package/dist/esm/api/resources/orders/client/index.mjs +1 -1
- package/dist/esm/api/resources/orders/resources/draft/client/Client.d.mts +23 -0
- package/dist/esm/api/resources/orders/resources/draft/client/Client.mjs +13 -0
- package/dist/esm/api/resources/orders/resources/draft/client/index.d.mts +1 -0
- package/dist/esm/api/resources/orders/resources/draft/client/index.mjs +1 -0
- package/dist/esm/api/resources/orders/resources/draft/index.d.mts +2 -0
- package/dist/esm/api/resources/orders/resources/draft/index.mjs +2 -0
- package/dist/esm/api/resources/orders/resources/draft/resources/expanded/client/Client.d.mts +61 -0
- package/dist/esm/api/resources/orders/resources/draft/resources/expanded/client/Client.mjs +156 -0
- package/dist/esm/api/resources/orders/resources/draft/resources/expanded/client/index.d.mts +2 -0
- package/dist/esm/api/resources/orders/resources/draft/resources/expanded/client/index.mjs +1 -0
- package/dist/esm/api/resources/orders/resources/draft/resources/expanded/client/requests/OrderDraftExpandedListReq.d.mts +21 -0
- package/dist/esm/api/resources/orders/resources/draft/resources/expanded/client/requests/OrderDraftExpandedReq.d.mts +21 -0
- package/dist/esm/api/resources/orders/resources/draft/resources/expanded/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/orders/resources/draft/resources/expanded/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/orders/resources/draft/resources/expanded/index.d.mts +1 -0
- package/dist/esm/api/resources/orders/resources/draft/resources/expanded/index.mjs +1 -0
- package/dist/esm/api/resources/orders/resources/draft/resources/index.d.mts +2 -0
- package/dist/esm/api/resources/orders/resources/draft/resources/index.mjs +2 -0
- package/dist/esm/api/resources/orders/resources/{full → expanded}/client/Client.d.mts +18 -23
- package/dist/esm/api/resources/{milestones → orders/resources/expanded}/client/Client.mjs +26 -39
- package/dist/esm/api/resources/orders/resources/expanded/client/index.d.mts +1 -0
- package/dist/esm/api/resources/orders/resources/expanded/client/index.mjs +1 -0
- package/dist/esm/api/resources/orders/resources/expanded/index.d.mts +1 -0
- package/dist/esm/api/resources/orders/resources/expanded/index.mjs +1 -0
- package/dist/esm/api/resources/orders/resources/expandedList/client/Client.d.mts +78 -0
- package/dist/esm/api/resources/orders/resources/expandedList/client/Client.mjs +254 -0
- package/dist/esm/api/resources/orders/resources/expandedList/client/index.d.mts +2 -0
- package/dist/esm/api/resources/orders/resources/expandedList/client/index.mjs +1 -0
- package/dist/esm/api/resources/orders/resources/expandedList/client/requests/ExpandedListPostOrderCreatorExpandedListV1Request.d.mts +30 -0
- package/dist/esm/api/resources/orders/resources/expandedList/client/requests/ExpandedListPostShipperExpandedListV1Request.d.mts +28 -0
- package/dist/esm/api/resources/orders/resources/expandedList/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/orders/resources/expandedList/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/orders/resources/expandedList/index.d.mts +1 -0
- package/dist/esm/api/resources/orders/resources/expandedList/index.mjs +1 -0
- package/dist/esm/api/resources/orders/resources/index.d.mts +4 -1
- package/dist/esm/api/resources/orders/resources/index.mjs +4 -1
- 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 +8 -8
- package/dist/esm/api/resources/orgConnectionInfos/resources/{shipper/client/requests/ShipperOrgConnectionInfoClientCreate1.d.mts → courier/client/requests/CourierOrgInfoForConnectionsClientCreate1.d.mts} +1 -1
- package/dist/esm/api/resources/orgConnectionInfos/resources/courier/client/requests/{CourierOrgConnectionInfoClientUpdate1.d.mts → CourierOrgInfoForConnectionsClientUpdate1.d.mts} +1 -1
- package/dist/esm/api/resources/orgConnectionInfos/resources/courier/client/requests/index.d.mts +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 +8 -8
- package/dist/esm/api/resources/orgConnectionInfos/resources/{courier/client/requests/CourierOrgConnectionInfoClientCreate1.d.mts → shipper/client/requests/ShipperOrgInfoForConnectionsClientCreate1.d.mts} +1 -1
- package/dist/esm/api/resources/orgConnectionInfos/resources/shipper/client/requests/{ShipperOrgConnectionInfoClientUpdate1.d.mts → ShipperOrgInfoForConnectionsClientUpdate1.d.mts} +1 -1
- package/dist/esm/api/resources/orgConnectionInfos/resources/shipper/client/requests/index.d.mts +2 -2
- package/dist/esm/api/resources/orgProfiles/client/Client.d.mts +43 -12
- package/dist/esm/api/resources/orgProfiles/client/Client.mjs +151 -22
- package/dist/{cjs/api/resources/orgProfiles/client/requests/CourierOrgProfileClientCreate3.d.ts → esm/api/resources/orgProfiles/client/requests/CourierOrgProfileClientCreate1.d.mts} +1 -1
- package/dist/{cjs/api/resources/orgProfiles/client/requests/CourierOrgProfileClientUpdate3.d.ts → esm/api/resources/orgProfiles/client/requests/CourierOrgProfileClientUpdate1.d.mts} +1 -1
- package/dist/esm/api/resources/orgProfiles/client/requests/ForwarderOrgProfileClientCreate1.d.mts +18 -0
- package/dist/esm/api/resources/orgProfiles/client/requests/ForwarderOrgProfileClientUpdate1.d.mts +12 -0
- package/dist/esm/api/resources/orgProfiles/client/requests/index.d.mts +4 -2
- package/dist/esm/api/resources/orgs/client/Client.d.mts +25 -36
- package/dist/esm/api/resources/orgs/client/Client.mjs +52 -104
- package/dist/esm/api/resources/orgs/client/requests/CreateOrgPublicDataReq.d.mts +5 -4
- package/dist/esm/api/resources/payments/client/Client.d.mts +15 -15
- package/dist/esm/api/resources/payments/client/Client.mjs +62 -62
- package/dist/esm/api/resources/payments/client/requests/GenerateInvoiceReq.d.mts +2 -2
- package/dist/esm/api/resources/payments/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/shipperContactInfo/client/Client.d.mts +14 -14
- package/dist/esm/api/resources/shipperContactInfo/client/Client.mjs +10 -10
- package/dist/esm/api/resources/shipperContactInfo/client/requests/{ShipperContactInfoClientUpdate1.d.mts → ShipperContactClientUpdate1.d.mts} +1 -1
- package/dist/esm/api/resources/shipperContactInfo/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/shipperPayCourierPayments/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/shipperPayCourierPayments/client/requests/ListPaymentsByCourierReq.d.mts +1 -1
- package/dist/esm/api/resources/shipperPayCourierRateSheets/client/requests/ShipperPayCourierRateSheetClientCreate1.d.mts +1 -1
- package/dist/esm/api/resources/shipperPayCourierRateSheets/client/requests/ShipperPayCourierRateSheetClientUpdate1.d.mts +1 -1
- package/dist/esm/api/resources/shipperPayCourierStatements/client/Client.d.mts +133 -0
- package/dist/esm/api/resources/shipperPayCourierStatements/client/Client.mjs +470 -0
- package/dist/esm/api/resources/shipperPayCourierStatements/client/index.d.mts +2 -0
- package/dist/esm/api/resources/shipperPayCourierStatements/client/index.mjs +1 -0
- package/dist/esm/api/resources/shipperPayCourierStatements/client/requests/ListStatementsByCourierReq.d.mts +16 -0
- package/dist/esm/api/resources/shipperPayCourierStatements/client/requests/ListStatementsByShipperReq.d.mts +15 -0
- package/dist/esm/api/resources/shipperPayCourierStatements/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/shipperPayCourierStatements/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/shipperPayCourierStatements/index.d.mts +1 -0
- package/dist/esm/api/resources/shipperPayCourierStatements/index.mjs +1 -0
- package/dist/esm/api/resources/{milestoneNotifications → taskArtifactNotifications}/client/Client.d.mts +13 -13
- package/dist/esm/api/resources/{milestoneNotifications → taskArtifactNotifications}/client/Client.mjs +12 -12
- package/dist/esm/api/resources/taskArtifactNotifications/client/index.d.mts +2 -0
- package/dist/esm/api/resources/taskArtifactNotifications/client/index.mjs +1 -0
- package/dist/esm/api/resources/{milestoneNotifications/client/requests/MilestoneNotificationPreferencesClientCreate1.d.mts → taskArtifactNotifications/client/requests/TaskArtifactNotificationPreferencesClientCreate1.d.mts} +2 -2
- package/dist/esm/api/resources/taskArtifactNotifications/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/taskArtifactNotifications/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/taskArtifactNotifications/index.d.mts +1 -0
- package/dist/esm/api/resources/taskArtifactNotifications/index.mjs +1 -0
- package/dist/esm/api/resources/{milestones → taskArtifacts}/client/Client.d.mts +32 -17
- package/dist/esm/api/resources/taskArtifacts/client/Client.mjs +231 -0
- package/dist/esm/api/resources/taskArtifacts/client/index.d.mts +2 -0
- package/dist/esm/api/resources/taskArtifacts/client/index.mjs +1 -0
- package/dist/esm/api/resources/taskArtifacts/client/requests/TaskArtifactAddToTaskReq.d.mts +19 -0
- package/dist/esm/api/resources/taskArtifacts/client/requests/TaskArtifactUpdateCommentsReq.d.mts +14 -0
- package/dist/esm/api/resources/taskArtifacts/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/taskArtifacts/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/taskArtifacts/index.d.mts +2 -0
- package/dist/esm/api/resources/taskArtifacts/index.mjs +2 -0
- package/dist/esm/api/resources/{milestones → taskArtifacts}/resources/blurhash/client/Client.d.mts +4 -4
- package/dist/esm/api/resources/{milestones → taskArtifacts}/resources/blurhash/client/Client.mjs +8 -8
- package/dist/esm/api/resources/taskArtifacts/resources/blurhash/client/index.d.mts +1 -0
- package/dist/esm/api/resources/taskArtifacts/resources/blurhash/client/index.mjs +1 -0
- package/dist/esm/api/resources/taskArtifacts/resources/blurhash/index.d.mts +1 -0
- package/dist/esm/api/resources/taskArtifacts/resources/blurhash/index.mjs +1 -0
- package/dist/esm/api/resources/{milestones → taskArtifacts}/resources/images/client/Client.d.mts +17 -18
- package/dist/esm/api/resources/{milestones → taskArtifacts}/resources/images/client/Client.mjs +44 -49
- package/dist/esm/api/resources/taskArtifacts/resources/images/client/index.d.mts +2 -0
- package/dist/esm/api/resources/taskArtifacts/resources/images/client/index.mjs +1 -0
- package/dist/esm/api/resources/taskArtifacts/resources/images/client/requests/BodyPostTaskArtifactsUploadImageV1OortTaskArtifactsImagesUploadV1TaskArtifactIdPost.d.mts +13 -0
- package/dist/esm/api/resources/taskArtifacts/resources/images/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/taskArtifacts/resources/images/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/taskArtifacts/resources/images/index.d.mts +1 -0
- package/dist/esm/api/resources/taskArtifacts/resources/images/index.mjs +1 -0
- package/dist/esm/api/resources/taskGroups/client/Client.d.mts +5 -5
- package/dist/esm/api/resources/taskGroups/client/Client.mjs +8 -8
- package/dist/esm/api/resources/taskGroups/resources/expanded/client/requests/TaskGroupExpandedForShipperReq.d.mts +1 -1
- package/dist/esm/api/resources/taskGroups/resources/expandedList/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/taskGroups/resources/expandedList/client/Client.mjs +2 -2
- package/dist/esm/api/resources/taskGroups/resources/expandedList/client/requests/ExpandedListForCourierAdministratorV1Request.d.mts +1 -1
- package/dist/esm/api/resources/taskGroups/resources/expandedList/client/requests/ExpandedListForCourierDriverV1Request.d.mts +1 -1
- package/dist/esm/api/types/Cargo1.d.mts +12 -0
- package/dist/esm/api/types/CargoClientCreate1.d.mts +3 -0
- package/dist/esm/api/types/CargoClientUpdate1.d.mts +15 -0
- package/dist/esm/api/types/CargoStatusEnum1.d.mts +3 -2
- package/dist/esm/api/types/CargoStatusEnum1.mjs +2 -1
- package/dist/esm/api/types/ChrtGroundCourierTaskActionEnum1.d.mts +30 -0
- package/dist/esm/api/types/ChrtGroundCourierTaskActionEnum1.mjs +12 -0
- package/dist/esm/api/types/CourierConnectionRes.d.mts +8 -0
- package/dist/esm/api/types/CourierNotificationPreferences1.d.mts +1 -1
- package/dist/esm/api/types/{CourierOrgConnectionInfo1.d.mts → CourierOrgInfoForConnections1.d.mts} +1 -1
- package/dist/esm/api/types/{CourierOrgProfile3.d.mts → CourierOrgProfile1.d.mts} +1 -1
- package/dist/esm/api/types/{CourierPayDriverPayout1.d.mts → CourierPayDriverStatement1.d.mts} +7 -7
- package/dist/esm/api/types/CourierPayDriverStatementClientCreate1.d.mts +7 -0
- package/dist/esm/api/types/CourierPayDriverStatementClientUpdate1.d.mts +13 -0
- package/dist/esm/api/{resources/connections/resources/connectionToCourier/client/requests → types}/CreateConnectionReq.d.mts +0 -6
- package/dist/esm/api/types/CreateShipperPayCourierStatementReq.d.mts +6 -0
- package/dist/esm/api/types/Driver1.d.mts +1 -1
- package/dist/esm/api/types/FlightTaskActionEnum1.d.mts +17 -0
- package/dist/esm/api/types/FlightTaskActionEnum1.mjs +12 -0
- package/dist/esm/api/types/ForwarderConnectionRes.d.mts +8 -0
- package/dist/esm/api/types/ForwarderOrgInfoForConnections1.d.mts +22 -0
- package/dist/esm/api/types/ForwarderOrgProfile1.d.mts +12 -0
- package/dist/esm/api/types/ForwarderOrgProfile1.mjs +4 -0
- package/dist/esm/api/types/GetShipperPayCourierPaymentsForShipperRes.d.mts +1 -1
- package/dist/esm/api/types/GetShipperPayCourierStatementsForShipperRes.d.mts +7 -0
- package/dist/esm/api/types/GetShipperPayCourierStatementsForShipperRes.mjs +4 -0
- package/dist/esm/api/types/LineItem1.d.mts +1 -1
- package/dist/esm/api/types/LocationProperties.d.mts +0 -1
- package/dist/esm/api/types/{OffChrtShipperOrgInfo1.d.mts → OffChrtShipperOrg1.d.mts} +3 -3
- package/dist/esm/api/types/OffChrtShipperOrg1.mjs +4 -0
- package/dist/esm/api/types/OnboardCourierTaskActionEnum1.d.mts +29 -0
- package/dist/esm/api/types/OnboardCourierTaskActionEnum1.mjs +21 -0
- package/dist/esm/api/types/Order1.d.mts +11 -10
- package/dist/esm/api/types/OrderDraftExpandedListRes.d.mts +11 -0
- package/dist/esm/api/types/OrderDraftExpandedListRes.mjs +4 -0
- package/dist/esm/api/types/OrderDraftExpandedRes.d.mts +13 -0
- package/dist/esm/api/types/OrderDraftExpandedRes.mjs +4 -0
- package/dist/esm/api/types/OrderExpandedForOrderCreator.d.mts +16 -0
- package/dist/esm/api/types/OrderExpandedForOrderCreator.mjs +4 -0
- package/dist/esm/api/types/OrderExpandedForOrderCreatorReq.d.mts +14 -0
- package/dist/esm/api/types/OrderExpandedForOrderCreatorReq.mjs +4 -0
- package/dist/esm/api/types/OrderExpandedForShipper.d.mts +16 -0
- package/dist/esm/api/types/OrderExpandedForShipper.mjs +4 -0
- package/dist/esm/api/types/OrderExpandedForShipperReq.d.mts +14 -0
- package/dist/esm/api/types/OrderExpandedForShipperReq.mjs +4 -0
- package/dist/esm/api/types/OrderExpandedListSortFieldEnum.d.mts +11 -0
- package/dist/esm/api/types/OrderExpandedListSortFieldEnum.mjs +7 -0
- package/dist/esm/api/types/OrderStatusEnum1.d.mts +4 -3
- package/dist/esm/api/types/OrderStatusEnum1.mjs +3 -2
- package/dist/esm/api/types/OrdersDraftUpdateRes.d.mts +12 -0
- package/dist/esm/api/types/OrdersDraftUpdateRes.mjs +4 -0
- package/dist/esm/api/types/OrdersExpandedForOrderCreatorRes.d.mts +11 -0
- package/dist/esm/api/types/OrdersExpandedForOrderCreatorRes.mjs +4 -0
- package/dist/esm/api/types/OrdersExpandedForShipperRes.d.mts +11 -0
- package/dist/esm/api/types/OrdersExpandedForShipperRes.mjs +4 -0
- package/dist/esm/api/types/{CreateOrderRes.d.mts → OrdersNewDraftRes.d.mts} +1 -1
- package/dist/esm/api/types/OrdersNewDraftRes.mjs +4 -0
- package/dist/esm/api/types/OrgProfileRes1.d.mts +8 -0
- package/dist/esm/api/types/OrgProfileRes1.mjs +4 -0
- package/dist/esm/api/types/{OrgPublicData2.d.mts → OrgPublicData1.d.mts} +2 -4
- package/dist/esm/api/types/OrgPublicData1.mjs +4 -0
- package/dist/esm/api/types/OrgTypeEnum.d.mts +9 -0
- package/dist/esm/api/types/{OrderCreatedByTypeEnum.mjs → OrgTypeEnum.mjs} +3 -3
- package/dist/esm/api/types/ShipperConnectionRes.d.mts +8 -0
- package/dist/esm/api/types/ShipperConnectionRes.mjs +4 -0
- package/dist/esm/api/types/{ShipperContactInfo1.d.mts → ShipperContact1.d.mts} +6 -6
- package/dist/esm/api/types/ShipperContact1.mjs +4 -0
- package/dist/esm/api/types/{ShipperContactInfoClientCreate1.d.mts → ShipperContactClientCreate1.d.mts} +6 -6
- package/dist/esm/api/types/ShipperContactClientCreate1.mjs +4 -0
- package/dist/esm/api/types/ShipperNotificationPreferences1.d.mts +1 -1
- package/dist/esm/api/types/{ShipperOrgConnectionInfo1.d.mts → ShipperOrgInfoForConnections1.d.mts} +1 -1
- package/dist/esm/api/types/ShipperOrgInfoForConnections1.mjs +4 -0
- package/dist/esm/api/types/ShipperPayCourierLineItemGroup1.d.mts +1 -1
- package/dist/esm/api/types/ShipperPayCourierLineItemGroupServerCreate1.d.mts +1 -1
- package/dist/esm/api/types/ShipperPayCourierRateSheet1.d.mts +1 -1
- package/dist/esm/api/types/{ShipperPayCourierPayment1.d.mts → ShipperPayCourierStatement1.d.mts} +4 -4
- package/dist/esm/api/types/ShipperPayCourierStatement1.mjs +4 -0
- package/dist/esm/api/types/StatementPreviewResponse.d.mts +10 -0
- package/dist/esm/api/types/StatementPreviewResponse.mjs +4 -0
- package/dist/esm/api/types/{PayoutStatusEnum.d.mts → StatementStatusEnum.d.mts} +2 -2
- package/dist/esm/api/types/{PayoutStatusEnum.mjs → StatementStatusEnum.mjs} +1 -1
- package/dist/esm/api/types/Task1.d.mts +19 -8
- package/dist/esm/api/types/TaskArtifact1.d.mts +31 -0
- package/dist/esm/api/types/TaskArtifact1.mjs +4 -0
- package/dist/esm/api/types/{MilestoneNotificationPreferences1.d.mts → TaskArtifactNotificationPreferences1.d.mts} +3 -3
- package/dist/esm/api/types/TaskArtifactNotificationPreferences1.mjs +4 -0
- package/dist/esm/api/types/TaskArtifactStatusEnum1.d.mts +10 -0
- package/dist/esm/api/types/TaskArtifactStatusEnum1.mjs +9 -0
- package/dist/esm/api/types/TaskArtifactTypeEnum1.d.mts +9 -0
- package/dist/esm/api/types/TaskArtifactTypeEnum1.mjs +8 -0
- package/dist/esm/api/types/TaskClientCreate1.d.mts +3 -4
- package/dist/esm/api/types/TaskClientUpdate1.d.mts +15 -0
- package/dist/esm/api/types/TaskClientUpdate1.mjs +4 -0
- package/dist/esm/api/types/TaskDraftExpanded.d.mts +10 -0
- package/dist/esm/api/types/TaskDraftExpanded.mjs +4 -0
- package/dist/esm/api/types/TaskExpanded.d.mts +2 -2
- package/dist/esm/api/types/TaskGroup1.d.mts +16 -8
- package/dist/esm/api/types/{TaskGroupExpanded.d.mts → TaskGroupDraftExpanded.d.mts} +3 -6
- package/dist/esm/api/types/TaskGroupDraftExpanded.mjs +4 -0
- package/dist/esm/api/types/TaskGroupExpandedForCourierAdministrator.d.mts +1 -1
- package/dist/esm/api/types/TaskGroupExpandedForCourierAdministratorReq.d.mts +1 -1
- package/dist/esm/api/types/TaskGroupExpandedForCourierDriver.d.mts +1 -1
- package/dist/esm/api/types/TaskGroupExpandedForCourierDriverReq.d.mts +1 -1
- package/dist/esm/api/types/TaskGroupExpandedForShipper.d.mts +1 -1
- package/dist/esm/api/types/TaskGroupExpandedSortFieldEnum.d.mts +4 -4
- package/dist/esm/api/types/TaskGroupExpandedSortFieldEnum.mjs +3 -3
- package/dist/esm/api/types/{StripeConnectAccountEvent.d.mts → TaskGroupMessage1.d.mts} +5 -5
- package/dist/esm/api/types/TaskGroupMessage1.mjs +4 -0
- package/dist/esm/api/types/TaskGroupMileage1.d.mts +9 -0
- package/dist/esm/api/types/TaskGroupMileage1.mjs +4 -0
- package/dist/esm/api/types/TaskGroupStatusEnum1.d.mts +4 -2
- package/dist/esm/api/types/TaskGroupStatusEnum1.mjs +3 -1
- package/dist/esm/api/types/TaskGroupTypeEnum1.d.mts +9 -0
- package/dist/esm/api/types/TaskGroupTypeEnum1.mjs +8 -0
- package/dist/esm/api/types/TaskStatusEnum1.d.mts +10 -0
- package/dist/esm/api/types/TaskStatusEnum1.mjs +9 -0
- package/dist/esm/api/types/TimeWindow1.d.mts +7 -0
- package/dist/esm/api/types/TimeWindow1.mjs +4 -0
- package/dist/esm/api/types/index.d.mts +51 -32
- package/dist/esm/api/types/index.mjs +51 -32
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +3009 -1053
- package/dist/cjs/api/resources/connections/resources/connectionToCourier/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/courierPayDriverPayouts/client/requests/CourierPayDriverPayoutClientCreate1.d.ts +0 -14
- package/dist/cjs/api/resources/courierPayDriverPayouts/client/requests/CourierPayDriverPayoutClientUpdate1.d.ts +0 -14
- package/dist/cjs/api/resources/courierPayDriverPayouts/client/requests/index.d.ts +0 -2
- package/dist/cjs/api/resources/milestoneNotifications/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/milestones/client/requests/MilestoneAddToTaskReq.d.ts +0 -16
- package/dist/cjs/api/resources/milestones/client/requests/MilestoneUpdateReq.d.ts +0 -14
- package/dist/cjs/api/resources/milestones/client/requests/index.d.ts +0 -2
- package/dist/cjs/api/resources/milestones/resources/images/client/requests/BodyPostMilestonesUploadImageV1OortMilestonesImagesUploadV1MilestoneIdPost.d.ts +0 -15
- package/dist/cjs/api/resources/milestones/resources/images/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/offChrtShipperOrgInfo/client/Client.d.ts +0 -100
- package/dist/cjs/api/resources/offChrtShipperOrgInfo/client/requests/index.d.ts +0 -2
- package/dist/cjs/api/resources/orders/client/requests/CreateOrderReq.d.ts +0 -45
- package/dist/cjs/api/resources/orders/client/requests/OrdersExpandedReq.d.ts +0 -19
- package/dist/cjs/api/resources/orders/client/requests/index.d.ts +0 -2
- package/dist/cjs/api/types/Expense1.d.ts +0 -13
- package/dist/cjs/api/types/GetOrderFullRes.d.ts +0 -11
- package/dist/cjs/api/types/GetOrderRes.d.ts +0 -7
- package/dist/cjs/api/types/Milestone1.d.ts +0 -27
- package/dist/cjs/api/types/MilestoneClientCreate1.d.ts +0 -9
- package/dist/cjs/api/types/MilestoneTypeEnum1.d.ts +0 -14
- package/dist/cjs/api/types/MilestoneTypeEnum1.js +0 -16
- package/dist/cjs/api/types/ObcNfoTaskActionEnum.d.ts +0 -38
- package/dist/cjs/api/types/ObcNfoTaskActionEnum.js +0 -40
- package/dist/cjs/api/types/OrderClientCreate1.d.ts +0 -6
- package/dist/cjs/api/types/OrderCreatedByTypeEnum.d.ts +0 -9
- package/dist/cjs/api/types/OrderDispatchTypeEnum.d.ts +0 -9
- package/dist/cjs/api/types/OrderExpanded.d.ts +0 -11
- package/dist/cjs/api/types/OrdersExpandedRes.d.ts +0 -10
- package/dist/cjs/api/types/StripeConnectAccountEventEnum.d.ts +0 -8
- package/dist/cjs/api/types/StripeConnectAccountEventEnum.js +0 -10
- package/dist/cjs/api/types/TaskActionEnum1.d.ts +0 -14
- package/dist/cjs/api/types/TaskActionEnum1.js +0 -16
- package/dist/cjs/api/types/TaskCreateBundle.d.ts +0 -13
- package/dist/cjs/api/types/TaskGroupExpanded.d.ts +0 -13
- package/dist/cjs/api/types/TransportTypeEnum.d.ts +0 -11
- package/dist/cjs/api/types/TransportTypeEnum.js +0 -13
- package/dist/cjs/api/types/UpdateTaskGroupRes.d.ts +0 -6
- package/dist/esm/api/resources/connections/resources/connectionToCourier/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/courierPayDriverPayouts/client/requests/CourierPayDriverPayoutClientCreate1.d.mts +0 -14
- package/dist/esm/api/resources/courierPayDriverPayouts/client/requests/CourierPayDriverPayoutClientUpdate1.d.mts +0 -14
- package/dist/esm/api/resources/courierPayDriverPayouts/client/requests/index.d.mts +0 -2
- package/dist/esm/api/resources/milestoneNotifications/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/milestones/client/requests/MilestoneAddToTaskReq.d.mts +0 -16
- package/dist/esm/api/resources/milestones/client/requests/MilestoneUpdateReq.d.mts +0 -14
- package/dist/esm/api/resources/milestones/client/requests/index.d.mts +0 -2
- package/dist/esm/api/resources/milestones/resources/images/client/requests/BodyPostMilestonesUploadImageV1OortMilestonesImagesUploadV1MilestoneIdPost.d.mts +0 -15
- package/dist/esm/api/resources/milestones/resources/images/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/offChrtShipperOrgInfo/client/Client.d.mts +0 -100
- package/dist/esm/api/resources/offChrtShipperOrgInfo/client/requests/index.d.mts +0 -2
- package/dist/esm/api/resources/orders/client/requests/CreateOrderReq.d.mts +0 -45
- package/dist/esm/api/resources/orders/client/requests/OrdersExpandedReq.d.mts +0 -19
- package/dist/esm/api/resources/orders/client/requests/index.d.mts +0 -2
- package/dist/esm/api/types/Expense1.d.mts +0 -13
- package/dist/esm/api/types/GetOrderFullRes.d.mts +0 -11
- package/dist/esm/api/types/GetOrderRes.d.mts +0 -7
- package/dist/esm/api/types/Milestone1.d.mts +0 -27
- package/dist/esm/api/types/MilestoneClientCreate1.d.mts +0 -9
- package/dist/esm/api/types/MilestoneTypeEnum1.d.mts +0 -14
- package/dist/esm/api/types/MilestoneTypeEnum1.mjs +0 -13
- package/dist/esm/api/types/ObcNfoTaskActionEnum.d.mts +0 -38
- package/dist/esm/api/types/ObcNfoTaskActionEnum.mjs +0 -37
- package/dist/esm/api/types/OrderClientCreate1.d.mts +0 -6
- package/dist/esm/api/types/OrderCreatedByTypeEnum.d.mts +0 -9
- package/dist/esm/api/types/OrderDispatchTypeEnum.d.mts +0 -9
- package/dist/esm/api/types/OrderDispatchTypeEnum.mjs +0 -8
- package/dist/esm/api/types/OrderExpanded.d.mts +0 -11
- package/dist/esm/api/types/OrdersExpandedRes.d.mts +0 -10
- package/dist/esm/api/types/StripeConnectAccountEventEnum.d.mts +0 -8
- package/dist/esm/api/types/StripeConnectAccountEventEnum.mjs +0 -7
- package/dist/esm/api/types/TaskActionEnum1.d.mts +0 -14
- package/dist/esm/api/types/TaskActionEnum1.mjs +0 -13
- package/dist/esm/api/types/TaskCreateBundle.d.mts +0 -13
- package/dist/esm/api/types/TransportTypeEnum.d.mts +0 -11
- package/dist/esm/api/types/TransportTypeEnum.mjs +0 -10
- package/dist/esm/api/types/UpdateTaskGroupRes.d.mts +0 -6
- /package/dist/cjs/api/resources/{milestones/resources/blurhash → connections/resources/connectionToForwarder}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/connections/resources/{connectionToCourier/client/requests → connectionToForwarder/client}/index.js +0 -0
- /package/dist/cjs/api/resources/{milestoneNotifications → connections/resources/connectionToForwarder}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{milestoneNotifications → connections/resources/connectionToForwarder}/index.js +0 -0
- /package/dist/cjs/api/resources/{orders/resources/full → connections/resources/connectionToShipper}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{courierPayDriverPayouts/client/requests → connections/resources/connectionToShipper/client}/index.js +0 -0
- /package/dist/cjs/api/resources/{milestones/resources/blurhash → connections/resources/connectionToShipper}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{milestones/resources/blurhash → connections/resources/connectionToShipper}/index.js +0 -0
- /package/dist/{esm/api/resources/connections/resources/connectionToCourier/client/requests/index.mjs → cjs/api/resources/courierPayDriverStatements/client/index.d.ts} +0 -0
- /package/dist/cjs/api/resources/{milestoneNotifications/client/requests → courierPayDriverStatements/client}/index.js +0 -0
- /package/dist/cjs/api/resources/{milestones/resources/images → courierPayDriverStatements}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{milestones/resources/images → courierPayDriverStatements}/index.js +0 -0
- /package/dist/cjs/api/resources/{milestoneNotifications → offChrtShipperOrg}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{milestoneNotifications → offChrtShipperOrg}/client/index.js +0 -0
- /package/dist/cjs/api/resources/{connections/resources/connectionToCourier/client/requests/CreateConnectionReq.js → offChrtShipperOrg/client/requests/OffChrtShipperOrgClientCreate1.js} +0 -0
- /package/dist/cjs/api/resources/{courierPayDriverPayouts/client/requests/CourierPayDriverPayoutClientCreate1.js → offChrtShipperOrg/client/requests/OffChrtShipperOrgClientUpdate1.js} +0 -0
- /package/dist/cjs/api/resources/{milestones → offChrtShipperOrg}/client/requests/index.js +0 -0
- /package/dist/cjs/api/resources/{offChrtShipperOrgInfo → offChrtShipperOrg}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{offChrtShipperOrgInfo → offChrtShipperOrg}/index.js +0 -0
- /package/dist/cjs/api/resources/{milestones → orderDrafts}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{milestones → orderDrafts}/client/index.js +0 -0
- /package/dist/cjs/api/resources/{courierPayDriverPayouts/client/requests/CourierPayDriverPayoutClientUpdate1.js → orderDrafts/client/requests/OrdersDraftUpdateReq.js} +0 -0
- /package/dist/cjs/api/resources/{milestoneNotifications/client/requests/MilestoneNotificationPreferencesClientCreate1.js → orderDrafts/client/requests/OrdersNewDraftReq.js} +0 -0
- /package/dist/cjs/api/resources/{milestones/resources/blurhash/client → orderDrafts/client/requests}/index.js +0 -0
- /package/dist/cjs/api/resources/{milestones → orderDrafts}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{milestones → orderDrafts}/index.js +0 -0
- /package/dist/cjs/api/resources/{milestones/resources/images → orderDrafts/resources/cargo}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{milestones/resources/images → orderDrafts/resources/cargo}/client/index.js +0 -0
- /package/dist/cjs/api/resources/{milestones/client/requests/MilestoneAddToTaskReq.js → orderDrafts/resources/cargo/client/requests/OrderDraftAddCargoReq.js} +0 -0
- /package/dist/cjs/api/resources/{milestones/client/requests/MilestoneUpdateReq.js → orderDrafts/resources/cargo/client/requests/OrderDraftAssociateCargoWithTaskReq.js} +0 -0
- /package/dist/cjs/api/resources/{milestones/resources/images/client/requests/BodyPostMilestonesUploadImageV1OortMilestonesImagesUploadV1MilestoneIdPost.js → orderDrafts/resources/cargo/client/requests/OrderDraftUpdateCargoReq.js} +0 -0
- /package/dist/cjs/api/resources/{milestones/resources/images → orderDrafts/resources/cargo}/client/requests/index.js +0 -0
- /package/dist/cjs/api/resources/{orders/resources/full → orderDrafts/resources/cargo}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{orders/resources/full → orderDrafts/resources/cargo}/index.js +0 -0
- /package/dist/cjs/api/resources/{offChrtShipperOrgInfo → orderDrafts/resources/task}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{offChrtShipperOrgInfo → orderDrafts/resources/task}/client/index.js +0 -0
- /package/dist/cjs/api/resources/{offChrtShipperOrgInfo/client/requests/OffChrtShipperOrgInfoClientCreate1.js → orderDrafts/resources/task/client/requests/OrderDraftAddTaskReqV1.js} +0 -0
- /package/dist/cjs/api/resources/{offChrtShipperOrgInfo/client/requests/OffChrtShipperOrgInfoClientUpdate1.js → orderDrafts/resources/task/client/requests/OrderDraftUpdateTaskReq.js} +0 -0
- /package/dist/cjs/api/resources/{offChrtShipperOrgInfo → orderDrafts/resources/task}/client/requests/index.js +0 -0
- /package/dist/cjs/api/resources/{orders/client/requests/CreateOrderReq.js → orderDrafts/resources/taskArtifact/client/requests/OrderDraftAddTaskArtifactReq.js} +0 -0
- /package/dist/cjs/api/resources/{orders → orderDrafts/resources/taskArtifact}/client/requests/index.js +0 -0
- /package/dist/cjs/api/resources/{orders/client/requests/OrdersExpandedReq.js → orderDrafts/resources/taskGroup/client/requests/OrderDraftAddTaskGroupReq.js} +0 -0
- /package/dist/cjs/api/resources/{orders/resources/full/client → orderDrafts/resources/taskGroup/client/requests}/index.js +0 -0
- /package/dist/{esm/api/resources/courierPayDriverPayouts/client/requests/index.mjs → cjs/api/resources/orders/resources/draft/client/index.d.ts} +0 -0
- /package/dist/cjs/api/resources/{orgConnectionInfos/resources/courier/client/requests/CourierOrgConnectionInfoClientCreate1.js → orders/resources/draft/resources/expanded/client/requests/OrderDraftExpandedListReq.js} +0 -0
- /package/dist/cjs/api/resources/{orgConnectionInfos/resources/courier/client/requests/CourierOrgConnectionInfoClientUpdate1.js → orders/resources/draft/resources/expanded/client/requests/OrderDraftExpandedReq.js} +0 -0
- /package/dist/{esm/api/resources/milestoneNotifications/client/requests/index.mjs → cjs/api/resources/orders/resources/expanded/client/index.d.ts} +0 -0
- /package/dist/cjs/api/resources/{orgConnectionInfos/resources/shipper/client/requests/ShipperOrgConnectionInfoClientCreate1.js → orders/resources/expandedList/client/requests/ExpandedListPostOrderCreatorExpandedListV1Request.js} +0 -0
- /package/dist/cjs/api/resources/{orgConnectionInfos/resources/shipper/client/requests/ShipperOrgConnectionInfoClientUpdate1.js → orders/resources/expandedList/client/requests/ExpandedListPostShipperExpandedListV1Request.js} +0 -0
- /package/dist/cjs/api/resources/{orgProfiles/client/requests/CourierOrgProfileClientCreate3.js → orgConnectionInfos/resources/courier/client/requests/CourierOrgInfoForConnectionsClientCreate1.js} +0 -0
- /package/dist/cjs/api/resources/{orgProfiles/client/requests/CourierOrgProfileClientUpdate3.js → orgConnectionInfos/resources/courier/client/requests/CourierOrgInfoForConnectionsClientUpdate1.js} +0 -0
- /package/dist/cjs/api/resources/{shipperContactInfo/client/requests/ShipperContactInfoClientUpdate1.js → orgConnectionInfos/resources/shipper/client/requests/ShipperOrgInfoForConnectionsClientCreate1.js} +0 -0
- /package/dist/cjs/api/{types/CourierOrgConnectionInfo1.js → resources/orgConnectionInfos/resources/shipper/client/requests/ShipperOrgInfoForConnectionsClientUpdate1.js} +0 -0
- /package/dist/cjs/api/{types/CourierOrgProfile3.js → resources/orgProfiles/client/requests/CourierOrgProfileClientCreate1.js} +0 -0
- /package/dist/cjs/api/{types/CourierPayDriverPayout1.js → resources/orgProfiles/client/requests/CourierOrgProfileClientUpdate1.js} +0 -0
- /package/dist/cjs/api/{types/CreateOrderRes.js → resources/orgProfiles/client/requests/ForwarderOrgProfileClientCreate1.js} +0 -0
- /package/dist/cjs/api/{types/Expense1.js → resources/orgProfiles/client/requests/ForwarderOrgProfileClientUpdate1.js} +0 -0
- /package/dist/cjs/api/{types/GetOrderFullRes.js → resources/shipperContactInfo/client/requests/ShipperContactClientUpdate1.js} +0 -0
- /package/dist/cjs/api/{types/GetOrderRes.js → resources/shipperPayCourierStatements/client/requests/ListStatementsByCourierReq.js} +0 -0
- /package/dist/cjs/api/{types/Milestone1.js → resources/shipperPayCourierStatements/client/requests/ListStatementsByShipperReq.js} +0 -0
- /package/dist/cjs/api/{types/MilestoneClientCreate1.js → resources/taskArtifactNotifications/client/requests/TaskArtifactNotificationPreferencesClientCreate1.js} +0 -0
- /package/dist/cjs/api/{types/MilestoneNotificationPreferences1.js → resources/taskArtifacts/client/requests/TaskArtifactAddToTaskReq.js} +0 -0
- /package/dist/cjs/api/{types/OffChrtShipperOrgInfo1.js → resources/taskArtifacts/client/requests/TaskArtifactUpdateCommentsReq.js} +0 -0
- /package/dist/{esm/api/resources/milestones/client/requests/index.mjs → cjs/api/resources/taskArtifacts/resources/blurhash/client/index.d.ts} +0 -0
- /package/dist/cjs/api/{types/OrderClientCreate1.js → resources/taskArtifacts/resources/images/client/requests/BodyPostTaskArtifactsUploadImageV1OortTaskArtifactsImagesUploadV1TaskArtifactIdPost.js} +0 -0
- /package/dist/cjs/api/resources/{milestones → taskArtifacts}/resources/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{milestones → taskArtifacts}/resources/index.js +0 -0
- /package/dist/cjs/api/types/{OrderExpanded.js → CargoClientUpdate1.js} +0 -0
- /package/dist/cjs/api/types/{OrdersExpandedRes.js → CourierConnectionRes.js} +0 -0
- /package/dist/cjs/api/types/{OrgPublicData2.js → CourierOrgInfoForConnections1.js} +0 -0
- /package/dist/cjs/api/types/{ShipperContactInfo1.js → CourierOrgProfile1.js} +0 -0
- /package/dist/cjs/api/types/{ShipperContactInfoClientCreate1.js → CourierPayDriverStatement1.js} +0 -0
- /package/dist/cjs/api/types/{ShipperOrgConnectionInfo1.js → CourierPayDriverStatementClientCreate1.js} +0 -0
- /package/dist/cjs/api/types/{ShipperPayCourierPayment1.js → CourierPayDriverStatementClientUpdate1.js} +0 -0
- /package/dist/cjs/api/types/{StripeConnectAccountEvent.js → CreateConnectionReq.js} +0 -0
- /package/dist/cjs/api/types/{TaskCreateBundle.js → CreateShipperPayCourierStatementReq.js} +0 -0
- /package/dist/cjs/api/types/{TaskGroupExpanded.js → ForwarderConnectionRes.js} +0 -0
- /package/dist/cjs/api/types/{UpdateTaskGroupRes.js → ForwarderOrgInfoForConnections1.js} +0 -0
- /package/dist/esm/api/resources/{milestones/resources/blurhash → connections/resources/connectionToForwarder}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{milestones/resources/blurhash → connections/resources/connectionToForwarder}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/{milestoneNotifications → connections/resources/connectionToForwarder}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{milestoneNotifications → connections/resources/connectionToForwarder}/index.mjs +0 -0
- /package/dist/esm/api/resources/{orders/resources/full → connections/resources/connectionToShipper}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{milestones/resources/images/client/requests → connections/resources/connectionToShipper/client}/index.mjs +0 -0
- /package/dist/esm/api/resources/{milestones/resources/blurhash → connections/resources/connectionToShipper}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{milestones/resources/blurhash → connections/resources/connectionToShipper}/index.mjs +0 -0
- /package/dist/esm/api/resources/{offChrtShipperOrgInfo/client/requests/index.mjs → courierPayDriverStatements/client/index.d.mts} +0 -0
- /package/dist/esm/api/resources/{orders/client/requests → courierPayDriverStatements/client}/index.mjs +0 -0
- /package/dist/esm/api/resources/{milestones/resources/images → courierPayDriverStatements}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{milestones/resources/images → courierPayDriverStatements}/index.mjs +0 -0
- /package/dist/esm/api/resources/{milestoneNotifications → offChrtShipperOrg}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{milestoneNotifications → offChrtShipperOrg}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/{connections/resources/connectionToCourier/client/requests/CreateConnectionReq.mjs → offChrtShipperOrg/client/requests/OffChrtShipperOrgClientCreate1.mjs} +0 -0
- /package/dist/esm/api/resources/{courierPayDriverPayouts/client/requests/CourierPayDriverPayoutClientCreate1.mjs → offChrtShipperOrg/client/requests/OffChrtShipperOrgClientUpdate1.mjs} +0 -0
- /package/dist/esm/api/resources/{orders/resources/full/client → offChrtShipperOrg/client/requests}/index.mjs +0 -0
- /package/dist/esm/api/resources/{offChrtShipperOrgInfo → offChrtShipperOrg}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{offChrtShipperOrgInfo → offChrtShipperOrg}/index.mjs +0 -0
- /package/dist/esm/api/resources/{milestones → orderDrafts}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{milestones → orderDrafts}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/{courierPayDriverPayouts/client/requests/CourierPayDriverPayoutClientUpdate1.mjs → orderDrafts/client/requests/OrdersDraftUpdateReq.mjs} +0 -0
- /package/dist/esm/api/resources/{milestoneNotifications/client/requests/MilestoneNotificationPreferencesClientCreate1.mjs → orderDrafts/client/requests/OrdersNewDraftReq.mjs} +0 -0
- /package/dist/esm/api/resources/{milestones → orderDrafts}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{milestones → orderDrafts}/index.mjs +0 -0
- /package/dist/esm/api/resources/{milestones/resources/images → orderDrafts/resources/cargo}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{milestones/resources/images → orderDrafts/resources/cargo}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/{milestones/client/requests/MilestoneAddToTaskReq.mjs → orderDrafts/resources/cargo/client/requests/OrderDraftAddCargoReq.mjs} +0 -0
- /package/dist/esm/api/resources/{milestones/client/requests/MilestoneUpdateReq.mjs → orderDrafts/resources/cargo/client/requests/OrderDraftAssociateCargoWithTaskReq.mjs} +0 -0
- /package/dist/esm/api/resources/{milestones/resources/images/client/requests/BodyPostMilestonesUploadImageV1OortMilestonesImagesUploadV1MilestoneIdPost.mjs → orderDrafts/resources/cargo/client/requests/OrderDraftUpdateCargoReq.mjs} +0 -0
- /package/dist/esm/api/resources/{orders/resources/full → orderDrafts/resources/cargo}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{orders/resources/full → orderDrafts/resources/cargo}/index.mjs +0 -0
- /package/dist/esm/api/resources/{offChrtShipperOrgInfo → orderDrafts/resources/task}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{offChrtShipperOrgInfo → orderDrafts/resources/task}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/{offChrtShipperOrgInfo/client/requests/OffChrtShipperOrgInfoClientCreate1.mjs → orderDrafts/resources/task/client/requests/OrderDraftAddTaskReqV1.mjs} +0 -0
- /package/dist/esm/api/resources/{offChrtShipperOrgInfo/client/requests/OffChrtShipperOrgInfoClientUpdate1.mjs → orderDrafts/resources/task/client/requests/OrderDraftUpdateTaskReq.mjs} +0 -0
- /package/dist/esm/api/resources/{orders/client/requests/CreateOrderReq.mjs → orderDrafts/resources/taskArtifact/client/requests/OrderDraftAddTaskArtifactReq.mjs} +0 -0
- /package/dist/esm/api/resources/{orders/client/requests/OrdersExpandedReq.mjs → orderDrafts/resources/taskGroup/client/requests/OrderDraftAddTaskGroupReq.mjs} +0 -0
- /package/dist/esm/api/resources/{orgConnectionInfos/resources/courier/client/requests/CourierOrgConnectionInfoClientCreate1.mjs → orders/resources/draft/resources/expanded/client/requests/OrderDraftExpandedListReq.mjs} +0 -0
- /package/dist/esm/api/resources/{orgConnectionInfos/resources/courier/client/requests/CourierOrgConnectionInfoClientUpdate1.mjs → orders/resources/draft/resources/expanded/client/requests/OrderDraftExpandedReq.mjs} +0 -0
- /package/dist/esm/api/resources/{orgConnectionInfos/resources/shipper/client/requests/ShipperOrgConnectionInfoClientCreate1.mjs → orders/resources/expandedList/client/requests/ExpandedListPostOrderCreatorExpandedListV1Request.mjs} +0 -0
- /package/dist/esm/api/resources/{orgConnectionInfos/resources/shipper/client/requests/ShipperOrgConnectionInfoClientUpdate1.mjs → orders/resources/expandedList/client/requests/ExpandedListPostShipperExpandedListV1Request.mjs} +0 -0
- /package/dist/esm/api/resources/{orgProfiles/client/requests/CourierOrgProfileClientCreate3.mjs → orgConnectionInfos/resources/courier/client/requests/CourierOrgInfoForConnectionsClientCreate1.mjs} +0 -0
- /package/dist/esm/api/resources/{orgProfiles/client/requests/CourierOrgProfileClientUpdate3.mjs → orgConnectionInfos/resources/courier/client/requests/CourierOrgInfoForConnectionsClientUpdate1.mjs} +0 -0
- /package/dist/esm/api/resources/{shipperContactInfo/client/requests/ShipperContactInfoClientUpdate1.mjs → orgConnectionInfos/resources/shipper/client/requests/ShipperOrgInfoForConnectionsClientCreate1.mjs} +0 -0
- /package/dist/esm/api/{types/CourierOrgConnectionInfo1.mjs → resources/orgConnectionInfos/resources/shipper/client/requests/ShipperOrgInfoForConnectionsClientUpdate1.mjs} +0 -0
- /package/dist/esm/api/{types/CourierOrgProfile3.mjs → resources/orgProfiles/client/requests/CourierOrgProfileClientCreate1.mjs} +0 -0
- /package/dist/esm/api/{types/CourierPayDriverPayout1.mjs → resources/orgProfiles/client/requests/CourierOrgProfileClientUpdate1.mjs} +0 -0
- /package/dist/esm/api/{types/CreateOrderRes.mjs → resources/orgProfiles/client/requests/ForwarderOrgProfileClientCreate1.mjs} +0 -0
- /package/dist/esm/api/{types/Expense1.mjs → resources/orgProfiles/client/requests/ForwarderOrgProfileClientUpdate1.mjs} +0 -0
- /package/dist/esm/api/{types/GetOrderFullRes.mjs → resources/shipperContactInfo/client/requests/ShipperContactClientUpdate1.mjs} +0 -0
- /package/dist/esm/api/{types/GetOrderRes.mjs → resources/shipperPayCourierStatements/client/requests/ListStatementsByCourierReq.mjs} +0 -0
- /package/dist/esm/api/{types/Milestone1.mjs → resources/shipperPayCourierStatements/client/requests/ListStatementsByShipperReq.mjs} +0 -0
- /package/dist/esm/api/{types/MilestoneClientCreate1.mjs → resources/taskArtifactNotifications/client/requests/TaskArtifactNotificationPreferencesClientCreate1.mjs} +0 -0
- /package/dist/esm/api/{types/MilestoneNotificationPreferences1.mjs → resources/taskArtifacts/client/requests/TaskArtifactAddToTaskReq.mjs} +0 -0
- /package/dist/esm/api/{types/OffChrtShipperOrgInfo1.mjs → resources/taskArtifacts/client/requests/TaskArtifactUpdateCommentsReq.mjs} +0 -0
- /package/dist/esm/api/{types/OrderClientCreate1.mjs → resources/taskArtifacts/resources/images/client/requests/BodyPostTaskArtifactsUploadImageV1OortTaskArtifactsImagesUploadV1TaskArtifactIdPost.mjs} +0 -0
- /package/dist/esm/api/resources/{milestones → taskArtifacts}/resources/index.d.mts +0 -0
- /package/dist/esm/api/resources/{milestones → taskArtifacts}/resources/index.mjs +0 -0
- /package/dist/esm/api/types/{OrderExpanded.mjs → CargoClientUpdate1.mjs} +0 -0
- /package/dist/esm/api/types/{OrdersExpandedRes.mjs → CourierConnectionRes.mjs} +0 -0
- /package/dist/esm/api/types/{OrgPublicData2.mjs → CourierOrgInfoForConnections1.mjs} +0 -0
- /package/dist/esm/api/types/{ShipperContactInfo1.mjs → CourierOrgProfile1.mjs} +0 -0
- /package/dist/esm/api/types/{ShipperContactInfoClientCreate1.mjs → CourierPayDriverStatement1.mjs} +0 -0
- /package/dist/esm/api/types/{ShipperOrgConnectionInfo1.mjs → CourierPayDriverStatementClientCreate1.mjs} +0 -0
- /package/dist/esm/api/types/{ShipperPayCourierPayment1.mjs → CourierPayDriverStatementClientUpdate1.mjs} +0 -0
- /package/dist/esm/api/types/{StripeConnectAccountEvent.mjs → CreateConnectionReq.mjs} +0 -0
- /package/dist/esm/api/types/{TaskCreateBundle.mjs → CreateShipperPayCourierStatementReq.mjs} +0 -0
- /package/dist/esm/api/types/{TaskGroupExpanded.mjs → ForwarderConnectionRes.mjs} +0 -0
- /package/dist/esm/api/types/{UpdateTaskGroupRes.mjs → ForwarderOrgInfoForConnections1.mjs} +0 -0
|
@@ -127,17 +127,17 @@ export class Orgs {
|
|
|
127
127
|
* @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
|
|
128
128
|
*
|
|
129
129
|
* @example
|
|
130
|
-
* await client.orgs.
|
|
130
|
+
* await client.orgs.getOrgPublicDataV1()
|
|
131
131
|
*/
|
|
132
|
-
|
|
133
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
132
|
+
getOrgPublicDataV1(requestOptions) {
|
|
133
|
+
return core.HttpResponsePromise.fromPromise(this.__getOrgPublicDataV1(requestOptions));
|
|
134
134
|
}
|
|
135
|
-
|
|
135
|
+
__getOrgPublicDataV1(requestOptions) {
|
|
136
136
|
return __awaiter(this, void 0, void 0, function* () {
|
|
137
137
|
var _a, _b, _c, _d;
|
|
138
138
|
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
139
139
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
140
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "orgs/
|
|
140
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "orgs/org_public_data/v1"),
|
|
141
141
|
method: "GET",
|
|
142
142
|
headers: _headers,
|
|
143
143
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -163,7 +163,7 @@ export class Orgs {
|
|
|
163
163
|
rawResponse: _response.rawResponse,
|
|
164
164
|
});
|
|
165
165
|
case "timeout":
|
|
166
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/
|
|
166
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/org_public_data/v1.");
|
|
167
167
|
case "unknown":
|
|
168
168
|
throw new errors.ChrtError({
|
|
169
169
|
message: _response.error.errorMessage,
|
|
@@ -173,28 +173,33 @@ export class Orgs {
|
|
|
173
173
|
});
|
|
174
174
|
}
|
|
175
175
|
/**
|
|
176
|
-
*
|
|
176
|
+
* Creates an org_public_data document for the authenticated organization.
|
|
177
177
|
*
|
|
178
|
-
* @param {
|
|
178
|
+
* @param {Chrt.CreateOrgPublicDataReq} request
|
|
179
179
|
* @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
|
|
180
180
|
*
|
|
181
181
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
182
182
|
*
|
|
183
183
|
* @example
|
|
184
|
-
* await client.orgs.
|
|
184
|
+
* await client.orgs.createOrgPublicDataV1({
|
|
185
|
+
* org_type: "courier"
|
|
186
|
+
* })
|
|
185
187
|
*/
|
|
186
|
-
|
|
187
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
188
|
+
createOrgPublicDataV1(request, requestOptions) {
|
|
189
|
+
return core.HttpResponsePromise.fromPromise(this.__createOrgPublicDataV1(request, requestOptions));
|
|
188
190
|
}
|
|
189
|
-
|
|
191
|
+
__createOrgPublicDataV1(request, requestOptions) {
|
|
190
192
|
return __awaiter(this, void 0, void 0, function* () {
|
|
191
193
|
var _a, _b, _c, _d;
|
|
192
194
|
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
193
195
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
194
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local,
|
|
195
|
-
method: "
|
|
196
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "orgs/org_public_data/v1"),
|
|
197
|
+
method: "POST",
|
|
196
198
|
headers: _headers,
|
|
199
|
+
contentType: "application/json",
|
|
197
200
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
201
|
+
requestType: "json",
|
|
202
|
+
body: request,
|
|
198
203
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
199
204
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
200
205
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -222,58 +227,7 @@ export class Orgs {
|
|
|
222
227
|
rawResponse: _response.rawResponse,
|
|
223
228
|
});
|
|
224
229
|
case "timeout":
|
|
225
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
226
|
-
case "unknown":
|
|
227
|
-
throw new errors.ChrtError({
|
|
228
|
-
message: _response.error.errorMessage,
|
|
229
|
-
rawResponse: _response.rawResponse,
|
|
230
|
-
});
|
|
231
|
-
}
|
|
232
|
-
});
|
|
233
|
-
}
|
|
234
|
-
/**
|
|
235
|
-
* Retrieves the organization handle for the authenticated organization.
|
|
236
|
-
*
|
|
237
|
-
* @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
|
|
238
|
-
*
|
|
239
|
-
* @example
|
|
240
|
-
* await client.orgs.getHandleV1()
|
|
241
|
-
*/
|
|
242
|
-
getHandleV1(requestOptions) {
|
|
243
|
-
return core.HttpResponsePromise.fromPromise(this.__getHandleV1(requestOptions));
|
|
244
|
-
}
|
|
245
|
-
__getHandleV1(requestOptions) {
|
|
246
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
247
|
-
var _a, _b, _c, _d;
|
|
248
|
-
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
249
|
-
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
250
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "orgs/handle/v1"),
|
|
251
|
-
method: "GET",
|
|
252
|
-
headers: _headers,
|
|
253
|
-
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
254
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
255
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
256
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
257
|
-
});
|
|
258
|
-
if (_response.ok) {
|
|
259
|
-
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
260
|
-
}
|
|
261
|
-
if (_response.error.reason === "status-code") {
|
|
262
|
-
throw new errors.ChrtError({
|
|
263
|
-
statusCode: _response.error.statusCode,
|
|
264
|
-
body: _response.error.body,
|
|
265
|
-
rawResponse: _response.rawResponse,
|
|
266
|
-
});
|
|
267
|
-
}
|
|
268
|
-
switch (_response.error.reason) {
|
|
269
|
-
case "non-json":
|
|
270
|
-
throw new errors.ChrtError({
|
|
271
|
-
statusCode: _response.error.statusCode,
|
|
272
|
-
body: _response.error.rawBody,
|
|
273
|
-
rawResponse: _response.rawResponse,
|
|
274
|
-
});
|
|
275
|
-
case "timeout":
|
|
276
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/handle/v1.");
|
|
230
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /orgs/org_public_data/v1.");
|
|
277
231
|
case "unknown":
|
|
278
232
|
throw new errors.ChrtError({
|
|
279
233
|
message: _response.error.errorMessage,
|
|
@@ -283,28 +237,31 @@ export class Orgs {
|
|
|
283
237
|
});
|
|
284
238
|
}
|
|
285
239
|
/**
|
|
286
|
-
*
|
|
240
|
+
* Updates the handle and/or company_name for the authenticated organization.
|
|
287
241
|
*
|
|
288
|
-
* @param {
|
|
242
|
+
* @param {Chrt.UpdateOrgPublicDataReq} request
|
|
289
243
|
* @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
|
|
290
244
|
*
|
|
291
245
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
292
246
|
*
|
|
293
247
|
* @example
|
|
294
|
-
* await client.orgs.
|
|
248
|
+
* await client.orgs.updateOrgPublicDataV1()
|
|
295
249
|
*/
|
|
296
|
-
|
|
297
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
250
|
+
updateOrgPublicDataV1(request = {}, requestOptions) {
|
|
251
|
+
return core.HttpResponsePromise.fromPromise(this.__updateOrgPublicDataV1(request, requestOptions));
|
|
298
252
|
}
|
|
299
|
-
|
|
300
|
-
return __awaiter(this,
|
|
253
|
+
__updateOrgPublicDataV1() {
|
|
254
|
+
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
301
255
|
var _a, _b, _c, _d;
|
|
302
256
|
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
303
257
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
304
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local,
|
|
305
|
-
method: "
|
|
258
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "orgs/org_public_data/v1"),
|
|
259
|
+
method: "PATCH",
|
|
306
260
|
headers: _headers,
|
|
261
|
+
contentType: "application/json",
|
|
307
262
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
263
|
+
requestType: "json",
|
|
264
|
+
body: request,
|
|
308
265
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
309
266
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
310
267
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -332,7 +289,7 @@ export class Orgs {
|
|
|
332
289
|
rawResponse: _response.rawResponse,
|
|
333
290
|
});
|
|
334
291
|
case "timeout":
|
|
335
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
292
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /orgs/org_public_data/v1.");
|
|
336
293
|
case "unknown":
|
|
337
294
|
throw new errors.ChrtError({
|
|
338
295
|
message: _response.error.errorMessage,
|
|
@@ -342,34 +299,28 @@ export class Orgs {
|
|
|
342
299
|
});
|
|
343
300
|
}
|
|
344
301
|
/**
|
|
345
|
-
*
|
|
302
|
+
* Retrieves public organization data for a specific organization by ID.
|
|
346
303
|
*
|
|
347
|
-
* @param {
|
|
304
|
+
* @param {string} orgId
|
|
348
305
|
* @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
|
|
349
306
|
*
|
|
350
307
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
351
308
|
*
|
|
352
309
|
* @example
|
|
353
|
-
* await client.orgs.
|
|
354
|
-
* handle: "handle",
|
|
355
|
-
* company_name: "company_name"
|
|
356
|
-
* })
|
|
310
|
+
* await client.orgs.getOrgPublicDataByOrgIdV1("org_id")
|
|
357
311
|
*/
|
|
358
|
-
|
|
359
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
312
|
+
getOrgPublicDataByOrgIdV1(orgId, requestOptions) {
|
|
313
|
+
return core.HttpResponsePromise.fromPromise(this.__getOrgPublicDataByOrgIdV1(orgId, requestOptions));
|
|
360
314
|
}
|
|
361
|
-
|
|
315
|
+
__getOrgPublicDataByOrgIdV1(orgId, requestOptions) {
|
|
362
316
|
return __awaiter(this, void 0, void 0, function* () {
|
|
363
317
|
var _a, _b, _c, _d;
|
|
364
318
|
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
365
319
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
366
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local,
|
|
367
|
-
method: "
|
|
320
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `orgs/org_public_data/v1/${encodeURIComponent(orgId)}`),
|
|
321
|
+
method: "GET",
|
|
368
322
|
headers: _headers,
|
|
369
|
-
contentType: "application/json",
|
|
370
323
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
371
|
-
requestType: "json",
|
|
372
|
-
body: request,
|
|
373
324
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
374
325
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
375
326
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -397,7 +348,7 @@ export class Orgs {
|
|
|
397
348
|
rawResponse: _response.rawResponse,
|
|
398
349
|
});
|
|
399
350
|
case "timeout":
|
|
400
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
351
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/org_public_data/v1/{org_id}.");
|
|
401
352
|
case "unknown":
|
|
402
353
|
throw new errors.ChrtError({
|
|
403
354
|
message: _response.error.errorMessage,
|
|
@@ -407,31 +358,28 @@ export class Orgs {
|
|
|
407
358
|
});
|
|
408
359
|
}
|
|
409
360
|
/**
|
|
410
|
-
*
|
|
361
|
+
* Returns True when the provided handle is available, otherwise False.
|
|
411
362
|
*
|
|
412
|
-
* @param {
|
|
363
|
+
* @param {string} handle
|
|
413
364
|
* @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
|
|
414
365
|
*
|
|
415
366
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
416
367
|
*
|
|
417
368
|
* @example
|
|
418
|
-
* await client.orgs.
|
|
369
|
+
* await client.orgs.getOrgPublicDataHandleAvailabilityV1("handle")
|
|
419
370
|
*/
|
|
420
|
-
|
|
421
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
371
|
+
getOrgPublicDataHandleAvailabilityV1(handle, requestOptions) {
|
|
372
|
+
return core.HttpResponsePromise.fromPromise(this.__getOrgPublicDataHandleAvailabilityV1(handle, requestOptions));
|
|
422
373
|
}
|
|
423
|
-
|
|
424
|
-
return __awaiter(this,
|
|
374
|
+
__getOrgPublicDataHandleAvailabilityV1(handle, requestOptions) {
|
|
375
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
425
376
|
var _a, _b, _c, _d;
|
|
426
377
|
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
427
378
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
428
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local,
|
|
429
|
-
method: "
|
|
379
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `orgs/org_public_data/handle_available/v1/${encodeURIComponent(handle)}`),
|
|
380
|
+
method: "GET",
|
|
430
381
|
headers: _headers,
|
|
431
|
-
contentType: "application/json",
|
|
432
382
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
433
|
-
requestType: "json",
|
|
434
|
-
body: request,
|
|
435
383
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
436
384
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
437
385
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -459,7 +407,7 @@ export class Orgs {
|
|
|
459
407
|
rawResponse: _response.rawResponse,
|
|
460
408
|
});
|
|
461
409
|
case "timeout":
|
|
462
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
410
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/org_public_data/handle_available/v1/{handle}.");
|
|
463
411
|
case "unknown":
|
|
464
412
|
throw new errors.ChrtError({
|
|
465
413
|
message: _response.error.errorMessage,
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as Chrt from "../../../../index.mjs";
|
|
4
5
|
/**
|
|
5
6
|
* @example
|
|
6
7
|
* {
|
|
7
|
-
*
|
|
8
|
-
* company_name: "company_name"
|
|
8
|
+
* org_type: "courier"
|
|
9
9
|
* }
|
|
10
10
|
*/
|
|
11
11
|
export interface CreateOrgPublicDataReq {
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
org_type: Chrt.OrgTypeEnum;
|
|
13
|
+
handle?: string | null;
|
|
14
|
+
company_name?: string | null;
|
|
14
15
|
}
|
|
@@ -30,6 +30,21 @@ export declare namespace Payments {
|
|
|
30
30
|
export declare class Payments {
|
|
31
31
|
protected readonly _options: Payments.Options;
|
|
32
32
|
constructor(_options?: Payments.Options);
|
|
33
|
+
/**
|
|
34
|
+
* Generates and sends a Stripe invoice for a shipper statement to a courier organization's Connect account. Applies a 10% application fee.
|
|
35
|
+
*
|
|
36
|
+
* @param {Chrt.GenerateInvoiceReq} request
|
|
37
|
+
* @param {Payments.RequestOptions} requestOptions - Request-specific configuration.
|
|
38
|
+
*
|
|
39
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* await client.payments.generateInvoiceV1({
|
|
43
|
+
* shipper_pay_courier_statement_id: "shipper_pay_courier_statement_id"
|
|
44
|
+
* })
|
|
45
|
+
*/
|
|
46
|
+
generateInvoiceV1(request: Chrt.GenerateInvoiceReq, requestOptions?: Payments.RequestOptions): core.HttpResponsePromise<Chrt.GenerateInvoiceRes>;
|
|
47
|
+
private __generateInvoiceV1;
|
|
33
48
|
/**
|
|
34
49
|
* Creates a Stripe checkout session for a subscription with pricing based on the selected plan.
|
|
35
50
|
*
|
|
@@ -75,20 +90,5 @@ export declare class Payments {
|
|
|
75
90
|
*/
|
|
76
91
|
createConnectAccountLinkV1(requestOptions?: Payments.RequestOptions): core.HttpResponsePromise<Chrt.CreateConnectAccountLinkRes>;
|
|
77
92
|
private __createConnectAccountLinkV1;
|
|
78
|
-
/**
|
|
79
|
-
* Generates and sends a Stripe invoice for a shipper payment to a courier organization's Connect account. Applies a 10% application fee.
|
|
80
|
-
*
|
|
81
|
-
* @param {Chrt.GenerateInvoiceReq} request
|
|
82
|
-
* @param {Payments.RequestOptions} requestOptions - Request-specific configuration.
|
|
83
|
-
*
|
|
84
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
85
|
-
*
|
|
86
|
-
* @example
|
|
87
|
-
* await client.payments.generateInvoiceV1({
|
|
88
|
-
* shipper_pay_courier_payment_id: "shipper_pay_courier_payment_id"
|
|
89
|
-
* })
|
|
90
|
-
*/
|
|
91
|
-
generateInvoiceV1(request: Chrt.GenerateInvoiceReq, requestOptions?: Payments.RequestOptions): core.HttpResponsePromise<Chrt.GenerateInvoiceRes>;
|
|
92
|
-
private __generateInvoiceV1;
|
|
93
93
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
94
94
|
}
|
|
@@ -20,27 +20,27 @@ export class Payments {
|
|
|
20
20
|
this._options = _options;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* Generates and sends a Stripe invoice for a shipper statement to a courier organization's Connect account. Applies a 10% application fee.
|
|
24
24
|
*
|
|
25
|
-
* @param {Chrt.
|
|
25
|
+
* @param {Chrt.GenerateInvoiceReq} request
|
|
26
26
|
* @param {Payments.RequestOptions} requestOptions - Request-specific configuration.
|
|
27
27
|
*
|
|
28
28
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
29
29
|
*
|
|
30
30
|
* @example
|
|
31
|
-
* await client.payments.
|
|
32
|
-
*
|
|
31
|
+
* await client.payments.generateInvoiceV1({
|
|
32
|
+
* shipper_pay_courier_statement_id: "shipper_pay_courier_statement_id"
|
|
33
33
|
* })
|
|
34
34
|
*/
|
|
35
|
-
|
|
36
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
35
|
+
generateInvoiceV1(request, requestOptions) {
|
|
36
|
+
return core.HttpResponsePromise.fromPromise(this.__generateInvoiceV1(request, requestOptions));
|
|
37
37
|
}
|
|
38
|
-
|
|
38
|
+
__generateInvoiceV1(request, requestOptions) {
|
|
39
39
|
return __awaiter(this, void 0, void 0, function* () {
|
|
40
40
|
var _a, _b, _c, _d;
|
|
41
41
|
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
42
42
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
43
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "
|
|
43
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "generate-invoice/v1"),
|
|
44
44
|
method: "POST",
|
|
45
45
|
headers: _headers,
|
|
46
46
|
contentType: "application/json",
|
|
@@ -74,7 +74,7 @@ export class Payments {
|
|
|
74
74
|
rawResponse: _response.rawResponse,
|
|
75
75
|
});
|
|
76
76
|
case "timeout":
|
|
77
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /
|
|
77
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /generate-invoice/v1.");
|
|
78
78
|
case "unknown":
|
|
79
79
|
throw new errors.ChrtError({
|
|
80
80
|
message: _response.error.errorMessage,
|
|
@@ -84,25 +84,33 @@ export class Payments {
|
|
|
84
84
|
});
|
|
85
85
|
}
|
|
86
86
|
/**
|
|
87
|
-
*
|
|
87
|
+
* Creates a Stripe checkout session for a subscription with pricing based on the selected plan.
|
|
88
88
|
*
|
|
89
|
+
* @param {Chrt.CreateCheckoutSessionReq} request
|
|
89
90
|
* @param {Payments.RequestOptions} requestOptions - Request-specific configuration.
|
|
90
91
|
*
|
|
92
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
93
|
+
*
|
|
91
94
|
* @example
|
|
92
|
-
* await client.payments.
|
|
95
|
+
* await client.payments.createCheckoutSessionV1({
|
|
96
|
+
* price_name: "courier_ops_100_usd_per_month"
|
|
97
|
+
* })
|
|
93
98
|
*/
|
|
94
|
-
|
|
95
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
99
|
+
createCheckoutSessionV1(request, requestOptions) {
|
|
100
|
+
return core.HttpResponsePromise.fromPromise(this.__createCheckoutSessionV1(request, requestOptions));
|
|
96
101
|
}
|
|
97
|
-
|
|
102
|
+
__createCheckoutSessionV1(request, requestOptions) {
|
|
98
103
|
return __awaiter(this, void 0, void 0, function* () {
|
|
99
104
|
var _a, _b, _c, _d;
|
|
100
105
|
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
101
106
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
102
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "
|
|
103
|
-
method: "
|
|
107
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "create-checkout-session/v1"),
|
|
108
|
+
method: "POST",
|
|
104
109
|
headers: _headers,
|
|
110
|
+
contentType: "application/json",
|
|
105
111
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
112
|
+
requestType: "json",
|
|
113
|
+
body: request,
|
|
106
114
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
107
115
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
108
116
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -111,11 +119,16 @@ export class Payments {
|
|
|
111
119
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
112
120
|
}
|
|
113
121
|
if (_response.error.reason === "status-code") {
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
122
|
+
switch (_response.error.statusCode) {
|
|
123
|
+
case 422:
|
|
124
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
125
|
+
default:
|
|
126
|
+
throw new errors.ChrtError({
|
|
127
|
+
statusCode: _response.error.statusCode,
|
|
128
|
+
body: _response.error.body,
|
|
129
|
+
rawResponse: _response.rawResponse,
|
|
130
|
+
});
|
|
131
|
+
}
|
|
119
132
|
}
|
|
120
133
|
switch (_response.error.reason) {
|
|
121
134
|
case "non-json":
|
|
@@ -125,7 +138,7 @@ export class Payments {
|
|
|
125
138
|
rawResponse: _response.rawResponse,
|
|
126
139
|
});
|
|
127
140
|
case "timeout":
|
|
128
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
141
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /create-checkout-session/v1.");
|
|
129
142
|
case "unknown":
|
|
130
143
|
throw new errors.ChrtError({
|
|
131
144
|
message: _response.error.errorMessage,
|
|
@@ -135,23 +148,23 @@ export class Payments {
|
|
|
135
148
|
});
|
|
136
149
|
}
|
|
137
150
|
/**
|
|
138
|
-
*
|
|
151
|
+
* Synchronizes subscription data from Stripe to the authentication service for the current user.
|
|
139
152
|
*
|
|
140
153
|
* @param {Payments.RequestOptions} requestOptions - Request-specific configuration.
|
|
141
154
|
*
|
|
142
155
|
* @example
|
|
143
|
-
* await client.payments.
|
|
156
|
+
* await client.payments.syncStripeToClerkV1()
|
|
144
157
|
*/
|
|
145
|
-
|
|
146
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
158
|
+
syncStripeToClerkV1(requestOptions) {
|
|
159
|
+
return core.HttpResponsePromise.fromPromise(this.__syncStripeToClerkV1(requestOptions));
|
|
147
160
|
}
|
|
148
|
-
|
|
161
|
+
__syncStripeToClerkV1(requestOptions) {
|
|
149
162
|
return __awaiter(this, void 0, void 0, function* () {
|
|
150
163
|
var _a, _b, _c, _d;
|
|
151
164
|
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
152
165
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
153
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "
|
|
154
|
-
method: "
|
|
166
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "sync_stripe_to_clerk/v1"),
|
|
167
|
+
method: "GET",
|
|
155
168
|
headers: _headers,
|
|
156
169
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
157
170
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -176,7 +189,7 @@ export class Payments {
|
|
|
176
189
|
rawResponse: _response.rawResponse,
|
|
177
190
|
});
|
|
178
191
|
case "timeout":
|
|
179
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
192
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /sync_stripe_to_clerk/v1.");
|
|
180
193
|
case "unknown":
|
|
181
194
|
throw new errors.ChrtError({
|
|
182
195
|
message: _response.error.errorMessage,
|
|
@@ -186,22 +199,22 @@ export class Payments {
|
|
|
186
199
|
});
|
|
187
200
|
}
|
|
188
201
|
/**
|
|
189
|
-
* Creates
|
|
202
|
+
* Creates a Stripe Connect account for the organization to receive payments. Idempotent - returns existing account if already created.
|
|
190
203
|
*
|
|
191
204
|
* @param {Payments.RequestOptions} requestOptions - Request-specific configuration.
|
|
192
205
|
*
|
|
193
206
|
* @example
|
|
194
|
-
* await client.payments.
|
|
207
|
+
* await client.payments.createConnectAccountV1()
|
|
195
208
|
*/
|
|
196
|
-
|
|
197
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
209
|
+
createConnectAccountV1(requestOptions) {
|
|
210
|
+
return core.HttpResponsePromise.fromPromise(this.__createConnectAccountV1(requestOptions));
|
|
198
211
|
}
|
|
199
|
-
|
|
212
|
+
__createConnectAccountV1(requestOptions) {
|
|
200
213
|
return __awaiter(this, void 0, void 0, function* () {
|
|
201
214
|
var _a, _b, _c, _d;
|
|
202
215
|
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
203
216
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
204
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "
|
|
217
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "create-connect-account/v1"),
|
|
205
218
|
method: "POST",
|
|
206
219
|
headers: _headers,
|
|
207
220
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -227,7 +240,7 @@ export class Payments {
|
|
|
227
240
|
rawResponse: _response.rawResponse,
|
|
228
241
|
});
|
|
229
242
|
case "timeout":
|
|
230
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /
|
|
243
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /create-connect-account/v1.");
|
|
231
244
|
case "unknown":
|
|
232
245
|
throw new errors.ChrtError({
|
|
233
246
|
message: _response.error.errorMessage,
|
|
@@ -237,33 +250,25 @@ export class Payments {
|
|
|
237
250
|
});
|
|
238
251
|
}
|
|
239
252
|
/**
|
|
240
|
-
*
|
|
253
|
+
* Creates an onboarding link for a Stripe Connect account. Used to complete or update account setup.
|
|
241
254
|
*
|
|
242
|
-
* @param {Chrt.GenerateInvoiceReq} request
|
|
243
255
|
* @param {Payments.RequestOptions} requestOptions - Request-specific configuration.
|
|
244
256
|
*
|
|
245
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
246
|
-
*
|
|
247
257
|
* @example
|
|
248
|
-
* await client.payments.
|
|
249
|
-
* shipper_pay_courier_payment_id: "shipper_pay_courier_payment_id"
|
|
250
|
-
* })
|
|
258
|
+
* await client.payments.createConnectAccountLinkV1()
|
|
251
259
|
*/
|
|
252
|
-
|
|
253
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
260
|
+
createConnectAccountLinkV1(requestOptions) {
|
|
261
|
+
return core.HttpResponsePromise.fromPromise(this.__createConnectAccountLinkV1(requestOptions));
|
|
254
262
|
}
|
|
255
|
-
|
|
263
|
+
__createConnectAccountLinkV1(requestOptions) {
|
|
256
264
|
return __awaiter(this, void 0, void 0, function* () {
|
|
257
265
|
var _a, _b, _c, _d;
|
|
258
266
|
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
259
267
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
260
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "
|
|
268
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "create-connect-account-link/v1"),
|
|
261
269
|
method: "POST",
|
|
262
270
|
headers: _headers,
|
|
263
|
-
contentType: "application/json",
|
|
264
271
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
265
|
-
requestType: "json",
|
|
266
|
-
body: request,
|
|
267
272
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
268
273
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
269
274
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -272,16 +277,11 @@ export class Payments {
|
|
|
272
277
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
273
278
|
}
|
|
274
279
|
if (_response.error.reason === "status-code") {
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
statusCode: _response.error.statusCode,
|
|
281
|
-
body: _response.error.body,
|
|
282
|
-
rawResponse: _response.rawResponse,
|
|
283
|
-
});
|
|
284
|
-
}
|
|
280
|
+
throw new errors.ChrtError({
|
|
281
|
+
statusCode: _response.error.statusCode,
|
|
282
|
+
body: _response.error.body,
|
|
283
|
+
rawResponse: _response.rawResponse,
|
|
284
|
+
});
|
|
285
285
|
}
|
|
286
286
|
switch (_response.error.reason) {
|
|
287
287
|
case "non-json":
|
|
@@ -291,7 +291,7 @@ export class Payments {
|
|
|
291
291
|
rawResponse: _response.rawResponse,
|
|
292
292
|
});
|
|
293
293
|
case "timeout":
|
|
294
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /
|
|
294
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /create-connect-account-link/v1.");
|
|
295
295
|
case "unknown":
|
|
296
296
|
throw new errors.ChrtError({
|
|
297
297
|
message: _response.error.errorMessage,
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* @example
|
|
6
6
|
* {
|
|
7
|
-
*
|
|
7
|
+
* shipper_pay_courier_statement_id: "shipper_pay_courier_statement_id"
|
|
8
8
|
* }
|
|
9
9
|
*/
|
|
10
10
|
export interface GenerateInvoiceReq {
|
|
11
|
-
|
|
11
|
+
shipper_pay_courier_statement_id: string;
|
|
12
12
|
days_until_due?: number;
|
|
13
13
|
description?: string;
|
|
14
14
|
}
|