@chrt-inc/typescript-sdk 0.0.183 → 0.0.185
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 +390 -0
- package/dist/cjs/Client.d.ts +9 -0
- package/dist/cjs/Client.js +41 -26
- package/dist/cjs/api/resources/courierPayDriverLineItemGroup/client/Client.d.ts +6 -5
- package/dist/cjs/api/resources/courierPayDriverLineItemGroup/client/Client.js +12 -39
- package/dist/cjs/api/resources/courierPayDriverLineItemGroup/client/requests/{CourierPayDriverLineItemGroupCreateRequest.d.ts → CourierPayDriverLineItemGroupCreateReq.d.ts} +7 -1
- package/dist/cjs/api/resources/courierPayDriverLineItemGroup/client/requests/CourierPayDriverLineItemGroupPreviewReq.d.ts +27 -0
- package/dist/cjs/api/resources/courierPayDriverLineItemGroup/client/requests/index.d.ts +2 -2
- package/dist/cjs/api/resources/courierPayDriverLineItemGroup/resources/addLineItems/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/courierPayDriverLineItemGroup/resources/addLineItems/client/Client.js +1 -1
- package/dist/cjs/api/resources/courierPayDriverLineItemGroup/resources/addLineItems/client/requests/{AddLineItemsReq.d.ts → CourierPayDriverLineItemGroupAddLineItemsReq.d.ts} +1 -1
- package/dist/cjs/api/resources/courierPayDriverLineItemGroup/resources/addLineItems/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/courierPayDriverLineItemGroup/resources/removeLineItems/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/courierPayDriverLineItemGroup/resources/removeLineItems/client/Client.js +1 -1
- package/dist/cjs/api/resources/courierPayDriverLineItemGroup/resources/removeLineItems/client/requests/{RemoveLineItemsReq.d.ts → CourierPayDriverLineItemGroupRemoveLineItemsReq.d.ts} +1 -1
- package/dist/cjs/api/resources/courierPayDriverLineItemGroup/resources/removeLineItems/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/courierPayDriverPayouts/client/Client.d.ts +14 -0
- package/dist/cjs/api/resources/courierPayDriverPayouts/client/Client.js +61 -0
- package/dist/cjs/api/resources/courierPayDriverPayouts/client/requests/CourierPayDriverPayoutClientUpdate1.d.ts +14 -0
- package/dist/cjs/api/resources/courierPayDriverPayouts/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetClientCreate1.d.ts +6 -6
- package/dist/cjs/api/resources/courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetClientUpdate1.d.ts +19 -19
- package/dist/cjs/api/resources/dev/client/Client.d.ts +10 -10
- package/dist/cjs/api/resources/dev/client/Client.js +47 -47
- package/dist/cjs/api/resources/drivers/client/requests/DriverCreateReq.d.ts +1 -1
- package/dist/cjs/api/resources/drivers/client/requests/DriverLastSeenReq.d.ts +1 -1
- package/dist/cjs/api/resources/drivers/client/requests/UpdateDriverDetailsReq.d.ts +5 -5
- package/dist/cjs/api/resources/index.d.ts +5 -0
- package/dist/cjs/api/resources/index.js +6 -1
- package/dist/cjs/api/resources/milestones/client/requests/MilestoneAddToTaskReq.d.ts +1 -1
- package/dist/cjs/api/resources/milestones/client/requests/MilestoneUpdateReq.d.ts +2 -2
- package/dist/cjs/api/resources/milestones/resources/images/client/Client.d.ts +1 -8
- package/dist/cjs/api/resources/milestones/resources/images/client/Client.js +2 -8
- package/dist/cjs/api/resources/milestones/resources/images/client/requests/BodyPostMilestonesUploadImageOortMilestonesImagesUploadMilestoneIdPost.d.ts +1 -1
- package/dist/cjs/api/resources/notifications/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/notifications/client/Client.js +3 -3
- package/dist/cjs/api/resources/notifications/resources/{courierPreferences → courier}/client/Client.d.ts +12 -12
- package/dist/cjs/api/resources/notifications/resources/{courierPreferences → courier}/client/Client.js +13 -13
- package/dist/cjs/api/resources/notifications/resources/index.d.ts +2 -2
- package/dist/cjs/api/resources/notifications/resources/index.js +3 -3
- package/dist/cjs/api/resources/offChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientCreate1.d.ts +11 -10
- package/dist/cjs/api/resources/offChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientUpdate1.d.ts +10 -10
- package/dist/cjs/api/resources/orders/client/requests/CreateOrderReq.d.ts +4 -4
- package/dist/cjs/api/resources/orgConnectionInfos/resources/courier/client/requests/CourierOrgConnectionInfoClientCreate1.d.ts +9 -9
- package/dist/cjs/api/resources/orgConnectionInfos/resources/courier/client/requests/CourierOrgConnectionInfoClientUpdate1.d.ts +10 -10
- package/dist/cjs/api/resources/orgConnectionInfos/resources/shipper/client/requests/ShipperOrgConnectionInfoClientCreate1.d.ts +9 -9
- package/dist/cjs/api/resources/orgConnectionInfos/resources/shipper/client/requests/ShipperOrgConnectionInfoClientUpdate1.d.ts +10 -10
- package/dist/cjs/api/resources/orgProfiles/client/requests/CourierOrgProfileClientUpdate3.d.ts +3 -3
- package/dist/cjs/api/resources/orgs/client/requests/UpdateOrgPublicDataReq.d.ts +2 -2
- package/dist/cjs/api/resources/payments/client/Client.d.ts +35 -0
- package/dist/cjs/api/resources/payments/client/Client.js +160 -0
- package/dist/cjs/api/resources/payments/client/requests/GenerateInvoiceReq.d.ts +14 -0
- package/dist/cjs/api/resources/payments/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/shipperContactInfo/client/requests/ShipperContactInfoClientUpdate1.d.ts +11 -11
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/client/Client.d.ts +96 -0
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/client/Client.js +321 -0
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/client/index.js +17 -0
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/client/requests/ShipperPayCourierLineItemGroupCreateReq.d.ts +28 -0
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/client/requests/ShipperPayCourierLineItemGroupPreviewReq.d.ts +28 -0
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/index.d.ts +2 -0
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/index.js +18 -0
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/resources/addLineItems/client/Client.d.ts +53 -0
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/resources/addLineItems/client/Client.js +136 -0
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/resources/addLineItems/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/resources/addLineItems/client/index.js +17 -0
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/resources/addLineItems/client/requests/ShipperPayCourierLineItemGroupAddLineItemsReq.d.ts +19 -0
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/resources/addLineItems/client/requests/ShipperPayCourierLineItemGroupAddLineItemsReq.js +5 -0
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/resources/addLineItems/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/resources/addLineItems/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/resources/addLineItems/index.d.ts +1 -0
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/resources/addLineItems/index.js +17 -0
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/resources/index.d.ts +4 -0
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/resources/index.js +43 -0
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/resources/removeLineItems/client/Client.d.ts +53 -0
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/resources/removeLineItems/client/Client.js +136 -0
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/resources/removeLineItems/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/resources/removeLineItems/client/index.js +17 -0
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/resources/removeLineItems/client/requests/ShipperPayCourierLineItemGroupRemoveLineItemsReq.d.ts +19 -0
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/resources/removeLineItems/client/requests/ShipperPayCourierLineItemGroupRemoveLineItemsReq.js +5 -0
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/resources/removeLineItems/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/resources/removeLineItems/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/resources/removeLineItems/index.d.ts +1 -0
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/resources/removeLineItems/index.js +17 -0
- package/dist/cjs/api/resources/shipperPayCourierPayments/client/Client.d.ts +62 -0
- package/dist/cjs/api/resources/shipperPayCourierPayments/client/Client.js +192 -0
- package/dist/cjs/api/resources/shipperPayCourierPayments/client/index.js +2 -0
- package/dist/cjs/api/resources/shipperPayCourierPayments/index.d.ts +1 -0
- package/dist/cjs/api/resources/shipperPayCourierPayments/index.js +17 -0
- package/dist/cjs/api/resources/shipperPayCourierRateSheets/client/Client.d.ts +110 -0
- package/dist/cjs/api/resources/shipperPayCourierRateSheets/client/Client.js +367 -0
- package/dist/cjs/api/resources/shipperPayCourierRateSheets/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/shipperPayCourierRateSheets/client/index.js +17 -0
- package/dist/cjs/api/resources/shipperPayCourierRateSheets/client/requests/ShipperPayCourierRateSheetClientCreate1.d.ts +49 -0
- package/dist/cjs/api/resources/shipperPayCourierRateSheets/client/requests/ShipperPayCourierRateSheetClientCreate1.js +5 -0
- package/dist/cjs/api/resources/shipperPayCourierRateSheets/client/requests/ShipperPayCourierRateSheetClientUpdate1.d.ts +31 -0
- package/dist/cjs/api/resources/shipperPayCourierRateSheets/client/requests/ShipperPayCourierRateSheetClientUpdate1.js +5 -0
- package/dist/cjs/api/resources/shipperPayCourierRateSheets/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/shipperPayCourierRateSheets/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/shipperPayCourierRateSheets/index.d.ts +1 -0
- package/dist/cjs/api/resources/shipperPayCourierRateSheets/index.js +17 -0
- package/dist/cjs/api/resources/taskGroups/client/requests/UpdateTaskGroupReq.d.ts +1 -1
- package/dist/cjs/api/types/Cargo1.d.ts +5 -5
- package/dist/cjs/api/types/CargoClientCreate1.d.ts +5 -5
- package/dist/cjs/api/types/ConnectionEvent.d.ts +12 -0
- package/dist/cjs/api/types/ConnectionEvent.js +5 -0
- package/dist/cjs/api/types/ConnectionEventEnum.d.ts +11 -0
- package/dist/cjs/api/types/ConnectionEventEnum.js +13 -0
- package/dist/cjs/api/types/ConnectionState.d.ts +10 -0
- package/dist/cjs/api/types/ConnectionState.js +12 -0
- package/dist/cjs/api/types/CourierOrgConnectionInfo1.d.ts +10 -10
- package/dist/cjs/api/types/CourierPayDriverPayout1.d.ts +20 -0
- package/dist/cjs/api/types/CourierPayDriverPayout1.js +5 -0
- package/dist/cjs/api/types/CourierPayDriverRateSheet1.d.ts +6 -6
- package/dist/cjs/api/types/{BaseModel.d.ts → CreateConnectAccountLinkRes.d.ts} +2 -1
- package/dist/cjs/api/types/CreateConnectAccountLinkRes.js +5 -0
- package/dist/cjs/api/types/CreateConnectAccountRes.d.ts +6 -0
- package/dist/cjs/api/types/CreateConnectAccountRes.js +5 -0
- package/dist/cjs/api/types/CreateShipperPayCourierPaymentReq.d.ts +9 -0
- package/dist/cjs/api/types/CreateShipperPayCourierPaymentReq.js +5 -0
- package/dist/cjs/api/types/DecodedJwtWithOrgAndUserId.d.ts +16 -16
- package/dist/cjs/api/types/Driver1.d.ts +10 -10
- package/dist/cjs/api/types/Expense1.d.ts +2 -2
- package/dist/cjs/api/types/GenerateInvoiceRes.d.ts +9 -0
- package/dist/cjs/api/types/GenerateInvoiceRes.js +5 -0
- package/dist/cjs/api/types/LineItem1.d.ts +1 -1
- package/dist/cjs/api/types/LocationFeature.d.ts +17 -0
- package/dist/cjs/api/types/LocationFeature.js +5 -0
- package/dist/cjs/api/types/{FeatureInputGeometry.d.ts → LocationFeatureInputGeometry.d.ts} +2 -2
- package/dist/cjs/api/types/LocationFeatureInputGeometry.js +5 -0
- package/dist/cjs/api/types/{FeatureOutputGeometry.d.ts → LocationFeatureOutputGeometry.d.ts} +2 -2
- package/dist/cjs/api/types/LocationFeatureOutputGeometry.js +5 -0
- package/dist/cjs/api/types/LocationProperties.d.ts +11 -0
- package/dist/cjs/api/types/LocationProperties.js +5 -0
- package/dist/cjs/api/types/Milestone1.d.ts +10 -10
- package/dist/cjs/api/types/MilestoneClientCreate1.d.ts +1 -1
- package/dist/cjs/api/types/OffChrtShipperOrgConnectionInfo1.d.ts +11 -10
- package/dist/cjs/api/types/Order1.d.ts +8 -8
- package/dist/cjs/api/types/OrgMemberDetails.d.ts +3 -3
- package/dist/cjs/api/types/OrgMembersAndDrivers.d.ts +1 -1
- package/dist/cjs/api/types/OrgPublicData2.d.ts +6 -2
- package/dist/cjs/api/types/PayablesInvoice1.d.ts +7 -7
- package/dist/cjs/api/types/PaymentPreviewResponse.d.ts +13 -0
- package/dist/cjs/api/types/PaymentPreviewResponse.js +5 -0
- package/dist/cjs/api/types/PayoutStatusEnum.d.ts +10 -0
- package/dist/cjs/api/types/PayoutStatusEnum.js +12 -0
- package/dist/cjs/api/types/ReceivablesInvoice1.d.ts +7 -7
- package/dist/cjs/api/types/ShipperContactInfo1.d.ts +14 -14
- package/dist/cjs/api/types/ShipperContactInfoClientCreate1.d.ts +14 -14
- package/dist/cjs/api/types/ShipperCourierConnection1.d.ts +5 -2
- package/dist/cjs/api/types/ShipperOrgConnectionInfo1.d.ts +10 -10
- package/dist/cjs/api/types/ShipperPayCourierLineItemGroup1.d.ts +16 -0
- package/dist/cjs/api/types/ShipperPayCourierLineItemGroup1.js +5 -0
- package/dist/cjs/api/types/ShipperPayCourierLineItemGroupClientCreate1.d.ts +8 -0
- package/dist/cjs/api/types/ShipperPayCourierLineItemGroupClientCreate1.js +5 -0
- package/dist/cjs/api/types/ShipperPayCourierRateSheet1.d.ts +33 -0
- package/dist/cjs/api/types/ShipperPayCourierRateSheet1.js +5 -0
- package/dist/cjs/api/types/StripeConnectAccountEvent.d.ts +11 -0
- package/dist/cjs/api/types/StripeConnectAccountEvent.js +5 -0
- package/dist/cjs/api/types/StripeConnectAccountEventEnum.d.ts +8 -0
- package/dist/cjs/api/types/StripeConnectAccountEventEnum.js +10 -0
- package/dist/cjs/api/types/StripeConnectInvoice1.d.ts +6 -6
- package/dist/cjs/api/types/Task1.d.ts +12 -12
- package/dist/cjs/api/types/TaskClientCreate1.d.ts +7 -7
- package/dist/cjs/api/types/TaskCreateBundle.d.ts +4 -4
- package/dist/cjs/api/types/TaskGroup1.d.ts +7 -7
- package/dist/cjs/api/types/UserPublicData6.d.ts +3 -3
- package/dist/cjs/api/types/index.d.ts +19 -4
- package/dist/cjs/api/types/index.js +19 -4
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.d.mts +9 -0
- package/dist/esm/Client.mjs +17 -2
- package/dist/esm/api/resources/courierPayDriverLineItemGroup/client/Client.d.mts +6 -5
- package/dist/esm/api/resources/courierPayDriverLineItemGroup/client/Client.mjs +12 -39
- package/dist/esm/api/resources/courierPayDriverLineItemGroup/client/requests/{CourierPayDriverLineItemGroupCreateRequest.d.mts → CourierPayDriverLineItemGroupCreateReq.d.mts} +7 -1
- package/dist/esm/api/resources/courierPayDriverLineItemGroup/client/requests/CourierPayDriverLineItemGroupPreviewReq.d.mts +27 -0
- package/dist/esm/api/resources/courierPayDriverLineItemGroup/client/requests/index.d.mts +2 -2
- package/dist/esm/api/resources/courierPayDriverLineItemGroup/resources/addLineItems/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/courierPayDriverLineItemGroup/resources/addLineItems/client/Client.mjs +1 -1
- package/dist/esm/api/resources/courierPayDriverLineItemGroup/resources/addLineItems/client/requests/{AddLineItemsReq.d.mts → CourierPayDriverLineItemGroupAddLineItemsReq.d.mts} +1 -1
- package/dist/esm/api/resources/courierPayDriverLineItemGroup/resources/addLineItems/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/courierPayDriverLineItemGroup/resources/removeLineItems/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/courierPayDriverLineItemGroup/resources/removeLineItems/client/Client.mjs +1 -1
- package/dist/esm/api/resources/courierPayDriverLineItemGroup/resources/removeLineItems/client/requests/{RemoveLineItemsReq.d.mts → CourierPayDriverLineItemGroupRemoveLineItemsReq.d.mts} +1 -1
- package/dist/esm/api/resources/courierPayDriverLineItemGroup/resources/removeLineItems/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/courierPayDriverPayouts/client/Client.d.mts +14 -0
- package/dist/esm/api/resources/courierPayDriverPayouts/client/Client.mjs +61 -0
- package/dist/esm/api/resources/courierPayDriverPayouts/client/requests/CourierPayDriverPayoutClientUpdate1.d.mts +14 -0
- package/dist/esm/api/resources/courierPayDriverPayouts/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetClientCreate1.d.mts +6 -6
- package/dist/esm/api/resources/courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetClientUpdate1.d.mts +19 -19
- package/dist/esm/api/resources/dev/client/Client.d.mts +10 -10
- package/dist/esm/api/resources/dev/client/Client.mjs +47 -47
- package/dist/esm/api/resources/drivers/client/requests/DriverCreateReq.d.mts +1 -1
- package/dist/esm/api/resources/drivers/client/requests/DriverLastSeenReq.d.mts +1 -1
- package/dist/esm/api/resources/drivers/client/requests/UpdateDriverDetailsReq.d.mts +5 -5
- package/dist/esm/api/resources/index.d.mts +5 -0
- package/dist/esm/api/resources/index.mjs +5 -0
- package/dist/esm/api/resources/milestones/client/requests/MilestoneAddToTaskReq.d.mts +1 -1
- package/dist/esm/api/resources/milestones/client/requests/MilestoneUpdateReq.d.mts +2 -2
- package/dist/esm/api/resources/milestones/resources/images/client/Client.d.mts +1 -8
- package/dist/esm/api/resources/milestones/resources/images/client/Client.mjs +2 -8
- package/dist/esm/api/resources/milestones/resources/images/client/requests/BodyPostMilestonesUploadImageOortMilestonesImagesUploadMilestoneIdPost.d.mts +1 -1
- package/dist/esm/api/resources/notifications/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/notifications/client/Client.mjs +3 -3
- package/dist/esm/api/resources/notifications/resources/{courierPreferences → courier}/client/Client.d.mts +12 -12
- package/dist/esm/api/resources/notifications/resources/{courierPreferences → courier}/client/Client.mjs +11 -11
- package/dist/esm/api/resources/notifications/resources/courier/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/notifications/resources/index.d.mts +2 -2
- package/dist/esm/api/resources/notifications/resources/index.mjs +2 -2
- package/dist/esm/api/resources/offChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientCreate1.d.mts +11 -10
- package/dist/esm/api/resources/offChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientUpdate1.d.mts +10 -10
- package/dist/esm/api/resources/orders/client/requests/CreateOrderReq.d.mts +4 -4
- package/dist/esm/api/resources/orgConnectionInfos/resources/courier/client/requests/CourierOrgConnectionInfoClientCreate1.d.mts +9 -9
- package/dist/esm/api/resources/orgConnectionInfos/resources/courier/client/requests/CourierOrgConnectionInfoClientUpdate1.d.mts +10 -10
- package/dist/esm/api/resources/orgConnectionInfos/resources/shipper/client/requests/ShipperOrgConnectionInfoClientCreate1.d.mts +9 -9
- package/dist/esm/api/resources/orgConnectionInfos/resources/shipper/client/requests/ShipperOrgConnectionInfoClientUpdate1.d.mts +10 -10
- package/dist/esm/api/resources/orgProfiles/client/requests/CourierOrgProfileClientUpdate3.d.mts +3 -3
- package/dist/esm/api/resources/orgs/client/requests/UpdateOrgPublicDataReq.d.mts +2 -2
- package/dist/esm/api/resources/payments/client/Client.d.mts +35 -0
- package/dist/esm/api/resources/payments/client/Client.mjs +160 -0
- package/dist/esm/api/resources/payments/client/requests/GenerateInvoiceReq.d.mts +14 -0
- package/dist/esm/api/resources/payments/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/shipperContactInfo/client/requests/ShipperContactInfoClientUpdate1.d.mts +11 -11
- package/dist/esm/api/resources/shipperPayCourierLineItemGroup/client/Client.d.mts +96 -0
- package/dist/esm/api/resources/shipperPayCourierLineItemGroup/client/Client.mjs +284 -0
- package/dist/esm/api/resources/shipperPayCourierLineItemGroup/client/index.d.mts +2 -0
- package/dist/esm/api/resources/shipperPayCourierLineItemGroup/client/index.mjs +1 -0
- package/dist/esm/api/resources/shipperPayCourierLineItemGroup/client/requests/ShipperPayCourierLineItemGroupCreateReq.d.mts +28 -0
- package/dist/esm/api/resources/shipperPayCourierLineItemGroup/client/requests/ShipperPayCourierLineItemGroupPreviewReq.d.mts +28 -0
- package/dist/esm/api/resources/shipperPayCourierLineItemGroup/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/shipperPayCourierLineItemGroup/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/shipperPayCourierLineItemGroup/index.d.mts +2 -0
- package/dist/esm/api/resources/shipperPayCourierLineItemGroup/index.mjs +2 -0
- package/dist/esm/api/resources/shipperPayCourierLineItemGroup/resources/addLineItems/client/Client.d.mts +53 -0
- package/dist/esm/api/resources/shipperPayCourierLineItemGroup/resources/addLineItems/client/Client.mjs +99 -0
- package/dist/esm/api/resources/shipperPayCourierLineItemGroup/resources/addLineItems/client/index.d.mts +2 -0
- package/dist/esm/api/resources/shipperPayCourierLineItemGroup/resources/addLineItems/client/index.mjs +1 -0
- package/dist/esm/api/resources/shipperPayCourierLineItemGroup/resources/addLineItems/client/requests/ShipperPayCourierLineItemGroupAddLineItemsReq.d.mts +19 -0
- package/dist/esm/api/resources/shipperPayCourierLineItemGroup/resources/addLineItems/client/requests/ShipperPayCourierLineItemGroupAddLineItemsReq.mjs +4 -0
- package/dist/esm/api/resources/shipperPayCourierLineItemGroup/resources/addLineItems/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/shipperPayCourierLineItemGroup/resources/addLineItems/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/shipperPayCourierLineItemGroup/resources/addLineItems/index.d.mts +1 -0
- package/dist/esm/api/resources/shipperPayCourierLineItemGroup/resources/addLineItems/index.mjs +1 -0
- package/dist/esm/api/resources/shipperPayCourierLineItemGroup/resources/index.d.mts +4 -0
- package/dist/esm/api/resources/shipperPayCourierLineItemGroup/resources/index.mjs +4 -0
- package/dist/esm/api/resources/shipperPayCourierLineItemGroup/resources/removeLineItems/client/Client.d.mts +53 -0
- package/dist/esm/api/resources/shipperPayCourierLineItemGroup/resources/removeLineItems/client/Client.mjs +99 -0
- package/dist/esm/api/resources/shipperPayCourierLineItemGroup/resources/removeLineItems/client/index.d.mts +2 -0
- package/dist/esm/api/resources/shipperPayCourierLineItemGroup/resources/removeLineItems/client/index.mjs +1 -0
- package/dist/esm/api/resources/shipperPayCourierLineItemGroup/resources/removeLineItems/client/requests/ShipperPayCourierLineItemGroupRemoveLineItemsReq.d.mts +19 -0
- package/dist/esm/api/resources/shipperPayCourierLineItemGroup/resources/removeLineItems/client/requests/ShipperPayCourierLineItemGroupRemoveLineItemsReq.mjs +4 -0
- package/dist/esm/api/resources/shipperPayCourierLineItemGroup/resources/removeLineItems/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/shipperPayCourierLineItemGroup/resources/removeLineItems/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/shipperPayCourierLineItemGroup/resources/removeLineItems/index.d.mts +1 -0
- package/dist/esm/api/resources/shipperPayCourierLineItemGroup/resources/removeLineItems/index.mjs +1 -0
- package/dist/esm/api/resources/shipperPayCourierPayments/client/Client.d.mts +62 -0
- package/dist/esm/api/resources/shipperPayCourierPayments/client/Client.mjs +155 -0
- package/dist/esm/api/resources/shipperPayCourierPayments/client/index.d.mts +1 -0
- package/dist/esm/api/resources/shipperPayCourierPayments/client/index.mjs +1 -0
- package/dist/esm/api/resources/shipperPayCourierPayments/index.d.mts +1 -0
- package/dist/esm/api/resources/shipperPayCourierPayments/index.mjs +1 -0
- package/dist/esm/api/resources/shipperPayCourierRateSheets/client/Client.d.mts +110 -0
- package/dist/esm/api/resources/shipperPayCourierRateSheets/client/Client.mjs +330 -0
- package/dist/esm/api/resources/shipperPayCourierRateSheets/client/index.d.mts +2 -0
- package/dist/esm/api/resources/shipperPayCourierRateSheets/client/index.mjs +1 -0
- package/dist/esm/api/resources/shipperPayCourierRateSheets/client/requests/ShipperPayCourierRateSheetClientCreate1.d.mts +49 -0
- package/dist/esm/api/resources/shipperPayCourierRateSheets/client/requests/ShipperPayCourierRateSheetClientCreate1.mjs +4 -0
- package/dist/esm/api/resources/shipperPayCourierRateSheets/client/requests/ShipperPayCourierRateSheetClientUpdate1.d.mts +31 -0
- package/dist/esm/api/resources/shipperPayCourierRateSheets/client/requests/ShipperPayCourierRateSheetClientUpdate1.mjs +4 -0
- package/dist/esm/api/resources/shipperPayCourierRateSheets/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/shipperPayCourierRateSheets/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/shipperPayCourierRateSheets/index.d.mts +1 -0
- package/dist/esm/api/resources/shipperPayCourierRateSheets/index.mjs +1 -0
- package/dist/esm/api/resources/taskGroups/client/requests/UpdateTaskGroupReq.d.mts +1 -1
- package/dist/esm/api/types/Cargo1.d.mts +5 -5
- package/dist/esm/api/types/CargoClientCreate1.d.mts +5 -5
- package/dist/esm/api/types/ConnectionEvent.d.mts +12 -0
- package/dist/esm/api/types/ConnectionEvent.mjs +4 -0
- package/dist/esm/api/types/ConnectionEventEnum.d.mts +11 -0
- package/dist/esm/api/types/ConnectionEventEnum.mjs +10 -0
- package/dist/esm/api/types/ConnectionState.d.mts +10 -0
- package/dist/esm/api/types/ConnectionState.mjs +9 -0
- package/dist/esm/api/types/CourierOrgConnectionInfo1.d.mts +10 -10
- package/dist/esm/api/types/CourierPayDriverPayout1.d.mts +20 -0
- package/dist/esm/api/types/CourierPayDriverPayout1.mjs +4 -0
- package/dist/esm/api/types/CourierPayDriverRateSheet1.d.mts +6 -6
- package/dist/esm/api/types/{BaseModel.d.mts → CreateConnectAccountLinkRes.d.mts} +2 -1
- package/dist/esm/api/types/CreateConnectAccountLinkRes.mjs +4 -0
- package/dist/esm/api/types/CreateConnectAccountRes.d.mts +6 -0
- package/dist/esm/api/types/CreateConnectAccountRes.mjs +4 -0
- package/dist/esm/api/types/CreateShipperPayCourierPaymentReq.d.mts +9 -0
- package/dist/esm/api/types/CreateShipperPayCourierPaymentReq.mjs +4 -0
- package/dist/esm/api/types/DecodedJwtWithOrgAndUserId.d.mts +16 -16
- package/dist/esm/api/types/Driver1.d.mts +10 -10
- package/dist/esm/api/types/Expense1.d.mts +2 -2
- package/dist/esm/api/types/GenerateInvoiceRes.d.mts +9 -0
- package/dist/esm/api/types/GenerateInvoiceRes.mjs +4 -0
- package/dist/esm/api/types/LineItem1.d.mts +1 -1
- package/dist/esm/api/types/LocationFeature.d.mts +17 -0
- package/dist/esm/api/types/LocationFeature.mjs +4 -0
- package/dist/esm/api/types/{FeatureInputGeometry.d.mts → LocationFeatureInputGeometry.d.mts} +2 -2
- package/dist/esm/api/types/LocationFeatureInputGeometry.mjs +4 -0
- package/dist/esm/api/types/{FeatureOutputGeometry.d.mts → LocationFeatureOutputGeometry.d.mts} +2 -2
- package/dist/esm/api/types/LocationFeatureOutputGeometry.mjs +4 -0
- package/dist/esm/api/types/LocationProperties.d.mts +11 -0
- package/dist/esm/api/types/LocationProperties.mjs +4 -0
- package/dist/esm/api/types/Milestone1.d.mts +10 -10
- package/dist/esm/api/types/MilestoneClientCreate1.d.mts +1 -1
- package/dist/esm/api/types/OffChrtShipperOrgConnectionInfo1.d.mts +11 -10
- package/dist/esm/api/types/Order1.d.mts +8 -8
- package/dist/esm/api/types/OrgMemberDetails.d.mts +3 -3
- package/dist/esm/api/types/OrgMembersAndDrivers.d.mts +1 -1
- package/dist/esm/api/types/OrgPublicData2.d.mts +6 -2
- package/dist/esm/api/types/PayablesInvoice1.d.mts +7 -7
- package/dist/esm/api/types/PaymentPreviewResponse.d.mts +13 -0
- package/dist/esm/api/types/PaymentPreviewResponse.mjs +4 -0
- package/dist/esm/api/types/PayoutStatusEnum.d.mts +10 -0
- package/dist/esm/api/types/PayoutStatusEnum.mjs +9 -0
- package/dist/esm/api/types/ReceivablesInvoice1.d.mts +7 -7
- package/dist/esm/api/types/ShipperContactInfo1.d.mts +14 -14
- package/dist/esm/api/types/ShipperContactInfoClientCreate1.d.mts +14 -14
- package/dist/esm/api/types/ShipperCourierConnection1.d.mts +5 -2
- package/dist/esm/api/types/ShipperOrgConnectionInfo1.d.mts +10 -10
- package/dist/esm/api/types/ShipperPayCourierLineItemGroup1.d.mts +16 -0
- package/dist/esm/api/types/ShipperPayCourierLineItemGroup1.mjs +4 -0
- package/dist/esm/api/types/ShipperPayCourierLineItemGroupClientCreate1.d.mts +8 -0
- package/dist/esm/api/types/ShipperPayCourierLineItemGroupClientCreate1.mjs +4 -0
- package/dist/esm/api/types/ShipperPayCourierRateSheet1.d.mts +33 -0
- package/dist/esm/api/types/ShipperPayCourierRateSheet1.mjs +4 -0
- package/dist/esm/api/types/StripeConnectAccountEvent.d.mts +11 -0
- package/dist/esm/api/types/StripeConnectAccountEvent.mjs +4 -0
- package/dist/esm/api/types/StripeConnectAccountEventEnum.d.mts +8 -0
- package/dist/esm/api/types/StripeConnectAccountEventEnum.mjs +7 -0
- package/dist/esm/api/types/StripeConnectInvoice1.d.mts +6 -6
- package/dist/esm/api/types/Task1.d.mts +12 -12
- package/dist/esm/api/types/TaskClientCreate1.d.mts +7 -7
- package/dist/esm/api/types/TaskCreateBundle.d.mts +4 -4
- package/dist/esm/api/types/TaskGroup1.d.mts +7 -7
- package/dist/esm/api/types/UserPublicData6.d.mts +3 -3
- package/dist/esm/api/types/index.d.mts +19 -4
- package/dist/esm/api/types/index.mjs +19 -4
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +1304 -232
- package/dist/cjs/api/resources/courierPayDriverLineItemGroup/client/requests/CourierPayDriverLineItemGroupPreviewRequest.d.ts +0 -18
- package/dist/cjs/api/types/Feature.d.ts +0 -18
- package/dist/esm/api/resources/courierPayDriverLineItemGroup/client/requests/CourierPayDriverLineItemGroupPreviewRequest.d.mts +0 -18
- package/dist/esm/api/types/Feature.d.mts +0 -18
- /package/dist/cjs/api/resources/courierPayDriverLineItemGroup/client/requests/{CourierPayDriverLineItemGroupCreateRequest.js → CourierPayDriverLineItemGroupCreateReq.js} +0 -0
- /package/dist/cjs/api/resources/courierPayDriverLineItemGroup/client/requests/{CourierPayDriverLineItemGroupPreviewRequest.js → CourierPayDriverLineItemGroupPreviewReq.js} +0 -0
- /package/dist/cjs/api/resources/courierPayDriverLineItemGroup/resources/addLineItems/client/requests/{AddLineItemsReq.js → CourierPayDriverLineItemGroupAddLineItemsReq.js} +0 -0
- /package/dist/cjs/api/resources/courierPayDriverLineItemGroup/resources/removeLineItems/client/requests/{RemoveLineItemsReq.js → CourierPayDriverLineItemGroupRemoveLineItemsReq.js} +0 -0
- /package/dist/cjs/api/resources/{notifications/resources/courierPreferences/client/requests/CourierNotificationPreferencesClientCreate1.js → courierPayDriverPayouts/client/requests/CourierPayDriverPayoutClientUpdate1.js} +0 -0
- /package/dist/cjs/api/resources/notifications/resources/{courierPreferences → courier}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/notifications/resources/{courierPreferences → courier}/client/index.js +0 -0
- /package/dist/cjs/api/resources/notifications/resources/{courierPreferences → courier}/client/requests/CourierNotificationPreferencesClientCreate1.d.ts +0 -0
- /package/dist/cjs/api/{types/BaseModel.js → resources/notifications/resources/courier/client/requests/CourierNotificationPreferencesClientCreate1.js} +0 -0
- /package/dist/cjs/api/resources/notifications/resources/{courierPreferences → courier}/client/requests/index.d.ts +0 -0
- /package/dist/cjs/api/resources/notifications/resources/{courierPreferences → courier}/client/requests/index.js +0 -0
- /package/dist/cjs/api/resources/notifications/resources/{courierPreferences → courier}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/notifications/resources/{courierPreferences → courier}/index.js +0 -0
- /package/dist/cjs/api/{types/Feature.js → resources/payments/client/requests/GenerateInvoiceReq.js} +0 -0
- /package/dist/cjs/api/{types/FeatureInputGeometry.js → resources/shipperPayCourierLineItemGroup/client/requests/ShipperPayCourierLineItemGroupCreateReq.js} +0 -0
- /package/dist/cjs/api/{types/FeatureOutputGeometry.js → resources/shipperPayCourierLineItemGroup/client/requests/ShipperPayCourierLineItemGroupPreviewReq.js} +0 -0
- /package/dist/{esm/api/resources/notifications/resources/courierPreferences/client/requests/index.mjs → cjs/api/resources/shipperPayCourierPayments/client/index.d.ts} +0 -0
- /package/dist/esm/api/resources/courierPayDriverLineItemGroup/client/requests/{CourierPayDriverLineItemGroupCreateRequest.mjs → CourierPayDriverLineItemGroupCreateReq.mjs} +0 -0
- /package/dist/esm/api/resources/courierPayDriverLineItemGroup/client/requests/{CourierPayDriverLineItemGroupPreviewRequest.mjs → CourierPayDriverLineItemGroupPreviewReq.mjs} +0 -0
- /package/dist/esm/api/resources/courierPayDriverLineItemGroup/resources/addLineItems/client/requests/{AddLineItemsReq.mjs → CourierPayDriverLineItemGroupAddLineItemsReq.mjs} +0 -0
- /package/dist/esm/api/resources/courierPayDriverLineItemGroup/resources/removeLineItems/client/requests/{RemoveLineItemsReq.mjs → CourierPayDriverLineItemGroupRemoveLineItemsReq.mjs} +0 -0
- /package/dist/esm/api/resources/{notifications/resources/courierPreferences/client/requests/CourierNotificationPreferencesClientCreate1.mjs → courierPayDriverPayouts/client/requests/CourierPayDriverPayoutClientUpdate1.mjs} +0 -0
- /package/dist/esm/api/resources/notifications/resources/{courierPreferences → courier}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/notifications/resources/{courierPreferences → courier}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/notifications/resources/{courierPreferences → courier}/client/requests/CourierNotificationPreferencesClientCreate1.d.mts +0 -0
- /package/dist/esm/api/{types/BaseModel.mjs → resources/notifications/resources/courier/client/requests/CourierNotificationPreferencesClientCreate1.mjs} +0 -0
- /package/dist/esm/api/resources/notifications/resources/{courierPreferences → courier}/client/requests/index.d.mts +0 -0
- /package/dist/esm/api/resources/notifications/resources/{courierPreferences → courier}/index.d.mts +0 -0
- /package/dist/esm/api/resources/notifications/resources/{courierPreferences → courier}/index.mjs +0 -0
- /package/dist/esm/api/{types/Feature.mjs → resources/payments/client/requests/GenerateInvoiceReq.mjs} +0 -0
- /package/dist/esm/api/{types/FeatureInputGeometry.mjs → resources/shipperPayCourierLineItemGroup/client/requests/ShipperPayCourierLineItemGroupCreateReq.mjs} +0 -0
- /package/dist/esm/api/{types/FeatureOutputGeometry.mjs → resources/shipperPayCourierLineItemGroup/client/requests/ShipperPayCourierLineItemGroupPreviewReq.mjs} +0 -0
|
@@ -4,19 +4,19 @@
|
|
|
4
4
|
import * as Chrt from "../index.mjs";
|
|
5
5
|
export interface CourierOrgConnectionInfo1 {
|
|
6
6
|
schema_version: number;
|
|
7
|
-
industry?: string;
|
|
8
|
-
street_address?: Chrt.
|
|
9
|
-
contact_first_name?: string;
|
|
10
|
-
contact_last_name?: string;
|
|
11
|
-
phone_number_primary?: string;
|
|
12
|
-
phone_number_secondary?: string;
|
|
7
|
+
industry?: string | null;
|
|
8
|
+
street_address?: Chrt.LocationFeature | null;
|
|
9
|
+
contact_first_name?: string | null;
|
|
10
|
+
contact_last_name?: string | null;
|
|
11
|
+
phone_number_primary?: string | null;
|
|
12
|
+
phone_number_secondary?: string | null;
|
|
13
13
|
email_address_primary: string;
|
|
14
|
-
email_address_secondary?: string;
|
|
15
|
-
job_title?: string;
|
|
16
|
-
notes?: string;
|
|
14
|
+
email_address_secondary?: string | null;
|
|
15
|
+
job_title?: string | null;
|
|
16
|
+
notes?: string | null;
|
|
17
17
|
/** Must be a string starting with `org_` */
|
|
18
18
|
courier_org_id: string;
|
|
19
19
|
/** Must be a string starting with `user_` */
|
|
20
|
-
courier_user_id?: string;
|
|
20
|
+
courier_user_id?: string | null;
|
|
21
21
|
_id: string;
|
|
22
22
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Chrt from "../index.mjs";
|
|
5
|
+
export interface CourierPayDriverPayout1 {
|
|
6
|
+
schema_version: number;
|
|
7
|
+
line_item_group_ids: string[];
|
|
8
|
+
_id: string;
|
|
9
|
+
driver_id: string;
|
|
10
|
+
/** Must be a string starting with `org_` */
|
|
11
|
+
courier_org_id: string;
|
|
12
|
+
payout_amount: number;
|
|
13
|
+
payout_status?: Chrt.PayoutStatusEnum;
|
|
14
|
+
payout_completed_at?: string | null;
|
|
15
|
+
/** Must be a string starting with `user_` */
|
|
16
|
+
payout_completed_by_user_id?: string | null;
|
|
17
|
+
payout_created_at: string;
|
|
18
|
+
/** Must be a string starting with `user_` */
|
|
19
|
+
payout_created_by_user_id: string;
|
|
20
|
+
}
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
import * as Chrt from "../index.mjs";
|
|
5
5
|
export interface CourierPayDriverRateSheet1 {
|
|
6
6
|
schema_version: number;
|
|
7
|
-
name?: string;
|
|
8
|
-
cargo_types?: Chrt.CargoTypeEnum1[];
|
|
9
|
-
vehicle_types?: Chrt.VehicleTypeEnum[];
|
|
10
|
-
route_types?: Chrt.RouteTypeEnum1[];
|
|
11
|
-
driver_ids?: string[];
|
|
7
|
+
name?: string | null;
|
|
8
|
+
cargo_types?: Chrt.CargoTypeEnum1[] | null;
|
|
9
|
+
vehicle_types?: Chrt.VehicleTypeEnum[] | null;
|
|
10
|
+
route_types?: Chrt.RouteTypeEnum1[] | null;
|
|
11
|
+
driver_ids?: string[] | null;
|
|
12
12
|
/** Must be a string starting with `org_` */
|
|
13
13
|
courier_org_id: string;
|
|
14
|
-
comments?: string;
|
|
14
|
+
comments?: string | null;
|
|
15
15
|
base_mileage_distance_miles: number;
|
|
16
16
|
base_mileage_rate_usd_per_instance: number;
|
|
17
17
|
/** applies only to the additional miles */
|
|
@@ -2,23 +2,23 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
export interface DecodedJwtWithOrgAndUserId {
|
|
5
|
-
azp?: string;
|
|
6
|
-
exp?: number;
|
|
7
|
-
fva?: number[];
|
|
8
|
-
iat?: number;
|
|
9
|
-
iss?: string;
|
|
10
|
-
jti?: string;
|
|
11
|
-
nbf?: number;
|
|
12
|
-
sid?: string;
|
|
5
|
+
azp?: string | null;
|
|
6
|
+
exp?: number | null;
|
|
7
|
+
fva?: number[] | null;
|
|
8
|
+
iat?: number | null;
|
|
9
|
+
iss?: string | null;
|
|
10
|
+
jti?: string | null;
|
|
11
|
+
nbf?: number | null;
|
|
12
|
+
sid?: string | null;
|
|
13
13
|
/** Must be a string starting with `user_` */
|
|
14
|
-
sub?: string;
|
|
15
|
-
org_permissions?: unknown[];
|
|
16
|
-
org_role?: string;
|
|
17
|
-
org_slug?: string;
|
|
18
|
-
email_verified?: boolean;
|
|
19
|
-
org_public_metadata?: Record<string, unknown
|
|
20
|
-
user_public_metadata?: Record<string, unknown
|
|
21
|
-
primary_email_address?: string;
|
|
14
|
+
sub?: string | null;
|
|
15
|
+
org_permissions?: unknown[] | null;
|
|
16
|
+
org_role?: string | null;
|
|
17
|
+
org_slug?: string | null;
|
|
18
|
+
email_verified?: boolean | null;
|
|
19
|
+
org_public_metadata?: Record<string, unknown> | null;
|
|
20
|
+
user_public_metadata?: Record<string, unknown> | null;
|
|
21
|
+
primary_email_address?: string | null;
|
|
22
22
|
/** Must be a string starting with `org_` */
|
|
23
23
|
org_id: string;
|
|
24
24
|
/** Must be a string starting with `user_` */
|
|
@@ -5,19 +5,19 @@ import * as Chrt from "../index.mjs";
|
|
|
5
5
|
export interface Driver1 {
|
|
6
6
|
schema_version: number;
|
|
7
7
|
active: boolean;
|
|
8
|
-
email_address_primary?: string;
|
|
9
|
-
email_address_secondary?: string;
|
|
10
|
-
phone_number_primary?: string;
|
|
11
|
-
phone_number_secondary?: string;
|
|
12
|
-
first_name?: string;
|
|
13
|
-
last_name?: string;
|
|
8
|
+
email_address_primary?: string | null;
|
|
9
|
+
email_address_secondary?: string | null;
|
|
10
|
+
phone_number_primary?: string | null;
|
|
11
|
+
phone_number_secondary?: string | null;
|
|
12
|
+
first_name?: string | null;
|
|
13
|
+
last_name?: string | null;
|
|
14
14
|
vehicle_types?: Chrt.VehicleTypeEnum[];
|
|
15
15
|
status?: Chrt.DriverStatusEnum;
|
|
16
|
-
last_seen_at_location?: Chrt.
|
|
17
|
-
last_seen_at_timestamp?: string;
|
|
16
|
+
last_seen_at_location?: Chrt.LocationFeature | null;
|
|
17
|
+
last_seen_at_timestamp?: string | null;
|
|
18
18
|
_id: string;
|
|
19
19
|
/** Must be a string starting with `org_` */
|
|
20
|
-
org_id?: string;
|
|
20
|
+
org_id?: string | null;
|
|
21
21
|
/** Must be a string starting with `user_` */
|
|
22
|
-
user_id?: string;
|
|
22
|
+
user_id?: string | null;
|
|
23
23
|
}
|
|
@@ -6,8 +6,8 @@ export interface Expense1 {
|
|
|
6
6
|
schema_version: number;
|
|
7
7
|
_id: string;
|
|
8
8
|
amount_usd: number;
|
|
9
|
-
docs_s3_short_key?: string[];
|
|
9
|
+
docs_s3_short_key?: string[] | null;
|
|
10
10
|
vendor: string;
|
|
11
11
|
line_item_type: Chrt.LineItemEnum1;
|
|
12
|
-
comments?: string;
|
|
12
|
+
comments?: string | null;
|
|
13
13
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Chrt from "../index.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* GeoJSON Feature with typed properties for locations
|
|
7
|
+
*/
|
|
8
|
+
export interface LocationFeature {
|
|
9
|
+
bbox?: unknown[];
|
|
10
|
+
type: "Feature";
|
|
11
|
+
geometry?: Chrt.LocationFeatureOutputGeometry | null;
|
|
12
|
+
properties?: Chrt.LocationProperties | null;
|
|
13
|
+
id?: LocationFeature.Id | null;
|
|
14
|
+
}
|
|
15
|
+
export declare namespace LocationFeature {
|
|
16
|
+
type Id = number | string;
|
|
17
|
+
}
|
package/dist/esm/api/types/{FeatureInputGeometry.d.mts → LocationFeatureInputGeometry.d.mts}
RENAMED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Chrt from "../index.mjs";
|
|
5
|
-
export type
|
|
6
|
-
export declare namespace
|
|
5
|
+
export type LocationFeatureInputGeometry = Chrt.LocationFeatureInputGeometry.GeometryCollection | Chrt.LocationFeatureInputGeometry.LineString | Chrt.LocationFeatureInputGeometry.MultiLineString | Chrt.LocationFeatureInputGeometry.MultiPoint | Chrt.LocationFeatureInputGeometry.MultiPolygon | Chrt.LocationFeatureInputGeometry.Point | Chrt.LocationFeatureInputGeometry.Polygon;
|
|
6
|
+
export declare namespace LocationFeatureInputGeometry {
|
|
7
7
|
interface GeometryCollection extends Chrt.GeometryCollection {
|
|
8
8
|
type: "GeometryCollection";
|
|
9
9
|
}
|
package/dist/esm/api/types/{FeatureOutputGeometry.d.mts → LocationFeatureOutputGeometry.d.mts}
RENAMED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Chrt from "../index.mjs";
|
|
5
|
-
export type
|
|
6
|
-
export declare namespace
|
|
5
|
+
export type LocationFeatureOutputGeometry = Chrt.LocationFeatureOutputGeometry.GeometryCollection | Chrt.LocationFeatureOutputGeometry.LineString | Chrt.LocationFeatureOutputGeometry.MultiLineString | Chrt.LocationFeatureOutputGeometry.MultiPoint | Chrt.LocationFeatureOutputGeometry.MultiPolygon | Chrt.LocationFeatureOutputGeometry.Point | Chrt.LocationFeatureOutputGeometry.Polygon;
|
|
6
|
+
export declare namespace LocationFeatureOutputGeometry {
|
|
7
7
|
interface GeometryCollection extends Chrt.GeometryCollection {
|
|
8
8
|
type: "GeometryCollection";
|
|
9
9
|
}
|
|
@@ -5,23 +5,23 @@ import * as Chrt from "../index.mjs";
|
|
|
5
5
|
export interface Milestone1 {
|
|
6
6
|
schema_version: number;
|
|
7
7
|
type: Chrt.MilestoneTypeEnum1;
|
|
8
|
-
requestor_comments?: string;
|
|
8
|
+
requestor_comments?: string | null;
|
|
9
9
|
_id: string;
|
|
10
10
|
order_id: string;
|
|
11
11
|
order_short_id: string;
|
|
12
12
|
task_id: string;
|
|
13
|
-
completed_at_timestamp?: string;
|
|
14
|
-
completed_at_geojson_feature?: Chrt.
|
|
13
|
+
completed_at_timestamp?: string | null;
|
|
14
|
+
completed_at_geojson_feature?: Chrt.LocationFeature | null;
|
|
15
15
|
/** Must be a string starting with `user_` */
|
|
16
|
-
completed_by_user_id?: string;
|
|
16
|
+
completed_by_user_id?: string | null;
|
|
17
17
|
completed: boolean;
|
|
18
18
|
s3_milestone_file_metadata_ids?: string[];
|
|
19
19
|
decoded_scans?: string[];
|
|
20
20
|
requested_by_shipper: boolean;
|
|
21
|
-
completor_comments?: string;
|
|
22
|
-
chrt_comments?: string;
|
|
23
|
-
notification_email_ids?: string[];
|
|
24
|
-
notification_sms_ids?: string[];
|
|
25
|
-
notification_push_ids?: string[];
|
|
26
|
-
notification_voice_ids?: string[];
|
|
21
|
+
completor_comments?: string | null;
|
|
22
|
+
chrt_comments?: string | null;
|
|
23
|
+
notification_email_ids?: string[] | null;
|
|
24
|
+
notification_sms_ids?: string[] | null;
|
|
25
|
+
notification_push_ids?: string[] | null;
|
|
26
|
+
notification_voice_ids?: string[] | null;
|
|
27
27
|
}
|
|
@@ -4,17 +4,18 @@
|
|
|
4
4
|
import * as Chrt from "../index.mjs";
|
|
5
5
|
export interface OffChrtShipperOrgConnectionInfo1 {
|
|
6
6
|
schema_version: number;
|
|
7
|
-
industry?: string;
|
|
8
|
-
street_address?: Chrt.
|
|
9
|
-
contact_first_name?: string;
|
|
10
|
-
contact_last_name?: string;
|
|
11
|
-
phone_number_primary?: string;
|
|
12
|
-
phone_number_secondary?: string;
|
|
7
|
+
industry?: string | null;
|
|
8
|
+
street_address?: Chrt.LocationFeature | null;
|
|
9
|
+
contact_first_name?: string | null;
|
|
10
|
+
contact_last_name?: string | null;
|
|
11
|
+
phone_number_primary?: string | null;
|
|
12
|
+
phone_number_secondary?: string | null;
|
|
13
13
|
email_address_primary: string;
|
|
14
|
-
email_address_secondary?: string;
|
|
15
|
-
job_title?: string;
|
|
16
|
-
notes?: string;
|
|
17
|
-
company_name?: string;
|
|
14
|
+
email_address_secondary?: string | null;
|
|
15
|
+
job_title?: string | null;
|
|
16
|
+
notes?: string | null;
|
|
17
|
+
company_name?: string | null;
|
|
18
|
+
stripe_connect_shipper_pay_courier_customer_id?: string | null;
|
|
18
19
|
/** Must be a string starting with `org_` */
|
|
19
20
|
created_by_org_id: string;
|
|
20
21
|
/** Must be a string starting with `user_` */
|
|
@@ -14,16 +14,16 @@ export interface Order1 {
|
|
|
14
14
|
/** Must be a string starting with `user_` */
|
|
15
15
|
created_by_user_id: string;
|
|
16
16
|
draft_started_at: string;
|
|
17
|
-
task_group_ids?: string[];
|
|
18
|
-
stripe_connect_invoice_id?: string;
|
|
19
|
-
receivables_invoice_id?: string;
|
|
17
|
+
task_group_ids?: string[] | null;
|
|
18
|
+
stripe_connect_invoice_id?: string | null;
|
|
19
|
+
receivables_invoice_id?: string | null;
|
|
20
20
|
/** Must be a string starting with `org_` */
|
|
21
|
-
shipper_org_id?: string;
|
|
21
|
+
shipper_org_id?: string | null;
|
|
22
22
|
/** Must be a string starting with `user_` */
|
|
23
|
-
shipper_user_id?: string;
|
|
24
|
-
off_chrt_shipper_org_connection_info_id?: string;
|
|
25
|
-
order_level_expenses_ids?: string[];
|
|
26
|
-
order_level_receivables_line_items?: Chrt.LineItem1[];
|
|
23
|
+
shipper_user_id?: string | null;
|
|
24
|
+
off_chrt_shipper_org_connection_info_id?: string | null;
|
|
25
|
+
order_level_expenses_ids?: string[] | null;
|
|
26
|
+
order_level_receivables_line_items?: Chrt.LineItem1[] | null;
|
|
27
27
|
status?: Chrt.OrderStatusEnum1;
|
|
28
28
|
order_cancelled?: boolean;
|
|
29
29
|
}
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export interface OrgMemberDetails {
|
|
5
5
|
role: string;
|
|
6
|
-
role_name?: string;
|
|
6
|
+
role_name?: string | null;
|
|
7
7
|
/** Must be a string starting with `user_` */
|
|
8
8
|
user_id: string;
|
|
9
|
-
first_name?: string;
|
|
10
|
-
last_name?: string;
|
|
9
|
+
first_name?: string | null;
|
|
10
|
+
last_name?: string | null;
|
|
11
11
|
}
|
|
@@ -1,11 +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
|
export interface OrgPublicData2 {
|
|
5
6
|
schema_version: number;
|
|
6
7
|
/** Must be a string starting with `org_` */
|
|
7
8
|
org_id: string;
|
|
8
|
-
|
|
9
|
-
|
|
9
|
+
stripe_connect_account_id?: string | null;
|
|
10
|
+
stripe_connect_account_events?: Chrt.StripeConnectAccountEvent[];
|
|
11
|
+
handle?: string | null;
|
|
12
|
+
company_name?: string | null;
|
|
13
|
+
auto_approve_shipper_courier_connections?: boolean;
|
|
10
14
|
_id: string;
|
|
11
15
|
}
|
|
@@ -7,18 +7,18 @@ export interface PayablesInvoice1 {
|
|
|
7
7
|
_id: string;
|
|
8
8
|
order_id: string;
|
|
9
9
|
order_short_id: string;
|
|
10
|
-
task_group_id?: string;
|
|
11
|
-
line_items?: Chrt.LineItem1[];
|
|
10
|
+
task_group_id?: string | null;
|
|
11
|
+
line_items?: Chrt.LineItem1[] | null;
|
|
12
12
|
status: PayablesInvoice1.Status;
|
|
13
13
|
courier_approved?: boolean;
|
|
14
|
-
courier_approved_at?: string;
|
|
14
|
+
courier_approved_at?: string | null;
|
|
15
15
|
/** Must be a string starting with `user_` */
|
|
16
|
-
courier_approved_by_user_id?: string;
|
|
16
|
+
courier_approved_by_user_id?: string | null;
|
|
17
17
|
chrt_approved?: boolean;
|
|
18
|
-
chrt_approved_at?: string;
|
|
18
|
+
chrt_approved_at?: string | null;
|
|
19
19
|
/** Must be a string starting with `user_` */
|
|
20
|
-
chrt_approved_by_user_id?: string;
|
|
21
|
-
chrt_approved_by_automation?: string;
|
|
20
|
+
chrt_approved_by_user_id?: string | null;
|
|
21
|
+
chrt_approved_by_automation?: string | null;
|
|
22
22
|
}
|
|
23
23
|
export declare namespace PayablesInvoice1 {
|
|
24
24
|
type Status = "draft" | "pending_approvals" | "approved" | "pending_payment" | "payment_processing" | "payment_error" | "paid";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Chrt from "../index.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* Response model for payment preview.
|
|
7
|
+
*/
|
|
8
|
+
export interface PaymentPreviewResponse {
|
|
9
|
+
task_groups: Chrt.TaskGroup1[];
|
|
10
|
+
line_item_groups: Chrt.ShipperPayCourierLineItemGroup1[];
|
|
11
|
+
total_amount: number;
|
|
12
|
+
payment_ready: boolean;
|
|
13
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export type PayoutStatusEnum = "created" | "ready_for_review" | "completed" | "cancelled";
|
|
5
|
+
export declare const PayoutStatusEnum: {
|
|
6
|
+
readonly Created: "created";
|
|
7
|
+
readonly ReadyForReview: "ready_for_review";
|
|
8
|
+
readonly Completed: "completed";
|
|
9
|
+
readonly Cancelled: "cancelled";
|
|
10
|
+
};
|
|
@@ -7,18 +7,18 @@ export interface ReceivablesInvoice1 {
|
|
|
7
7
|
_id: string;
|
|
8
8
|
order_id: string;
|
|
9
9
|
order_short_id: string;
|
|
10
|
-
task_group_ids?: string[];
|
|
11
|
-
line_items?: Chrt.LineItem1[];
|
|
10
|
+
task_group_ids?: string[] | null;
|
|
11
|
+
line_items?: Chrt.LineItem1[] | null;
|
|
12
12
|
status: ReceivablesInvoice1.Status;
|
|
13
13
|
chrt_approved?: boolean;
|
|
14
|
-
chrt_approved_at?: string;
|
|
14
|
+
chrt_approved_at?: string | null;
|
|
15
15
|
/** Must be a string starting with `user_` */
|
|
16
|
-
chrt_approved_by_user_id?: string;
|
|
17
|
-
chrt_approved_by_automation?: string;
|
|
16
|
+
chrt_approved_by_user_id?: string | null;
|
|
17
|
+
chrt_approved_by_automation?: string | null;
|
|
18
18
|
shipper_approved?: boolean;
|
|
19
|
-
shipper_approved_at?: string;
|
|
19
|
+
shipper_approved_at?: string | null;
|
|
20
20
|
/** Must be a string starting with `user_` */
|
|
21
|
-
shipper_approved_by_user_id?: string;
|
|
21
|
+
shipper_approved_by_user_id?: string | null;
|
|
22
22
|
}
|
|
23
23
|
export declare namespace ReceivablesInvoice1 {
|
|
24
24
|
type Status = "draft" | "pending_approvals" | "approved" | "pending_payment" | "payment_processing" | "payment_error" | "paid";
|
|
@@ -4,22 +4,22 @@
|
|
|
4
4
|
import * as Chrt from "../index.mjs";
|
|
5
5
|
export interface ShipperContactInfo1 {
|
|
6
6
|
schema_version: number;
|
|
7
|
-
company_name?: string;
|
|
8
|
-
industry?: string;
|
|
9
|
-
street_address?: Chrt.
|
|
10
|
-
contact_first_name?: string;
|
|
11
|
-
contact_last_name?: string;
|
|
12
|
-
phone_number_primary?: string;
|
|
13
|
-
phone_number_secondary?: string;
|
|
14
|
-
email_address_primary?: string;
|
|
15
|
-
email_address_secondary?: string;
|
|
16
|
-
job_title?: string;
|
|
17
|
-
notes?: string;
|
|
7
|
+
company_name?: string | null;
|
|
8
|
+
industry?: string | null;
|
|
9
|
+
street_address?: Chrt.LocationFeature | null;
|
|
10
|
+
contact_first_name?: string | null;
|
|
11
|
+
contact_last_name?: string | null;
|
|
12
|
+
phone_number_primary?: string | null;
|
|
13
|
+
phone_number_secondary?: string | null;
|
|
14
|
+
email_address_primary?: string | null;
|
|
15
|
+
email_address_secondary?: string | null;
|
|
16
|
+
job_title?: string | null;
|
|
17
|
+
notes?: string | null;
|
|
18
18
|
/** Must be a string starting with `org_` */
|
|
19
|
-
shipper_org_id?: string;
|
|
19
|
+
shipper_org_id?: string | null;
|
|
20
20
|
/** Must be a string starting with `user_` */
|
|
21
|
-
shipper_user_id?: string;
|
|
22
|
-
off_chrt_shipper_org_connection_info_id?: string;
|
|
21
|
+
shipper_user_id?: string | null;
|
|
22
|
+
off_chrt_shipper_org_connection_info_id?: string | null;
|
|
23
23
|
/** Must be a string starting with `org_` */
|
|
24
24
|
created_by_org_id: string;
|
|
25
25
|
/** Must be a string starting with `user_` */
|
|
@@ -4,20 +4,20 @@
|
|
|
4
4
|
import * as Chrt from "../index.mjs";
|
|
5
5
|
export interface ShipperContactInfoClientCreate1 {
|
|
6
6
|
schema_version: number;
|
|
7
|
-
company_name?: string;
|
|
8
|
-
industry?: string;
|
|
9
|
-
street_address?: Chrt.
|
|
10
|
-
contact_first_name?: string;
|
|
11
|
-
contact_last_name?: string;
|
|
12
|
-
phone_number_primary?: string;
|
|
13
|
-
phone_number_secondary?: string;
|
|
14
|
-
email_address_primary?: string;
|
|
15
|
-
email_address_secondary?: string;
|
|
16
|
-
job_title?: string;
|
|
17
|
-
notes?: string;
|
|
7
|
+
company_name?: string | null;
|
|
8
|
+
industry?: string | null;
|
|
9
|
+
street_address?: Chrt.LocationFeature | null;
|
|
10
|
+
contact_first_name?: string | null;
|
|
11
|
+
contact_last_name?: string | null;
|
|
12
|
+
phone_number_primary?: string | null;
|
|
13
|
+
phone_number_secondary?: string | null;
|
|
14
|
+
email_address_primary?: string | null;
|
|
15
|
+
email_address_secondary?: string | null;
|
|
16
|
+
job_title?: string | null;
|
|
17
|
+
notes?: string | null;
|
|
18
18
|
/** Must be a string starting with `org_` */
|
|
19
|
-
shipper_org_id?: string;
|
|
19
|
+
shipper_org_id?: string | null;
|
|
20
20
|
/** Must be a string starting with `user_` */
|
|
21
|
-
shipper_user_id?: string;
|
|
22
|
-
off_chrt_shipper_org_connection_info_id?: string;
|
|
21
|
+
shipper_user_id?: string | null;
|
|
22
|
+
off_chrt_shipper_org_connection_info_id?: string | null;
|
|
23
23
|
}
|