@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.
Files changed (385) hide show
  1. package/README.md +390 -0
  2. package/dist/cjs/Client.d.ts +9 -0
  3. package/dist/cjs/Client.js +41 -26
  4. package/dist/cjs/api/resources/courierPayDriverLineItemGroup/client/Client.d.ts +6 -5
  5. package/dist/cjs/api/resources/courierPayDriverLineItemGroup/client/Client.js +12 -39
  6. package/dist/cjs/api/resources/courierPayDriverLineItemGroup/client/requests/{CourierPayDriverLineItemGroupCreateRequest.d.ts → CourierPayDriverLineItemGroupCreateReq.d.ts} +7 -1
  7. package/dist/cjs/api/resources/courierPayDriverLineItemGroup/client/requests/CourierPayDriverLineItemGroupPreviewReq.d.ts +27 -0
  8. package/dist/cjs/api/resources/courierPayDriverLineItemGroup/client/requests/index.d.ts +2 -2
  9. package/dist/cjs/api/resources/courierPayDriverLineItemGroup/resources/addLineItems/client/Client.d.ts +2 -2
  10. package/dist/cjs/api/resources/courierPayDriverLineItemGroup/resources/addLineItems/client/Client.js +1 -1
  11. package/dist/cjs/api/resources/courierPayDriverLineItemGroup/resources/addLineItems/client/requests/{AddLineItemsReq.d.ts → CourierPayDriverLineItemGroupAddLineItemsReq.d.ts} +1 -1
  12. package/dist/cjs/api/resources/courierPayDriverLineItemGroup/resources/addLineItems/client/requests/index.d.ts +1 -1
  13. package/dist/cjs/api/resources/courierPayDriverLineItemGroup/resources/removeLineItems/client/Client.d.ts +2 -2
  14. package/dist/cjs/api/resources/courierPayDriverLineItemGroup/resources/removeLineItems/client/Client.js +1 -1
  15. package/dist/cjs/api/resources/courierPayDriverLineItemGroup/resources/removeLineItems/client/requests/{RemoveLineItemsReq.d.ts → CourierPayDriverLineItemGroupRemoveLineItemsReq.d.ts} +1 -1
  16. package/dist/cjs/api/resources/courierPayDriverLineItemGroup/resources/removeLineItems/client/requests/index.d.ts +1 -1
  17. package/dist/cjs/api/resources/courierPayDriverPayouts/client/Client.d.ts +14 -0
  18. package/dist/cjs/api/resources/courierPayDriverPayouts/client/Client.js +61 -0
  19. package/dist/cjs/api/resources/courierPayDriverPayouts/client/requests/CourierPayDriverPayoutClientUpdate1.d.ts +14 -0
  20. package/dist/cjs/api/resources/courierPayDriverPayouts/client/requests/index.d.ts +1 -0
  21. package/dist/cjs/api/resources/courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetClientCreate1.d.ts +6 -6
  22. package/dist/cjs/api/resources/courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetClientUpdate1.d.ts +19 -19
  23. package/dist/cjs/api/resources/dev/client/Client.d.ts +10 -10
  24. package/dist/cjs/api/resources/dev/client/Client.js +47 -47
  25. package/dist/cjs/api/resources/drivers/client/requests/DriverCreateReq.d.ts +1 -1
  26. package/dist/cjs/api/resources/drivers/client/requests/DriverLastSeenReq.d.ts +1 -1
  27. package/dist/cjs/api/resources/drivers/client/requests/UpdateDriverDetailsReq.d.ts +5 -5
  28. package/dist/cjs/api/resources/index.d.ts +5 -0
  29. package/dist/cjs/api/resources/index.js +6 -1
  30. package/dist/cjs/api/resources/milestones/client/requests/MilestoneAddToTaskReq.d.ts +1 -1
  31. package/dist/cjs/api/resources/milestones/client/requests/MilestoneUpdateReq.d.ts +2 -2
  32. package/dist/cjs/api/resources/milestones/resources/images/client/Client.d.ts +1 -8
  33. package/dist/cjs/api/resources/milestones/resources/images/client/Client.js +2 -8
  34. package/dist/cjs/api/resources/milestones/resources/images/client/requests/BodyPostMilestonesUploadImageOortMilestonesImagesUploadMilestoneIdPost.d.ts +1 -1
  35. package/dist/cjs/api/resources/notifications/client/Client.d.ts +3 -3
  36. package/dist/cjs/api/resources/notifications/client/Client.js +3 -3
  37. package/dist/cjs/api/resources/notifications/resources/{courierPreferences → courier}/client/Client.d.ts +12 -12
  38. package/dist/cjs/api/resources/notifications/resources/{courierPreferences → courier}/client/Client.js +13 -13
  39. package/dist/cjs/api/resources/notifications/resources/index.d.ts +2 -2
  40. package/dist/cjs/api/resources/notifications/resources/index.js +3 -3
  41. package/dist/cjs/api/resources/offChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientCreate1.d.ts +11 -10
  42. package/dist/cjs/api/resources/offChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientUpdate1.d.ts +10 -10
  43. package/dist/cjs/api/resources/orders/client/requests/CreateOrderReq.d.ts +4 -4
  44. package/dist/cjs/api/resources/orgConnectionInfos/resources/courier/client/requests/CourierOrgConnectionInfoClientCreate1.d.ts +9 -9
  45. package/dist/cjs/api/resources/orgConnectionInfos/resources/courier/client/requests/CourierOrgConnectionInfoClientUpdate1.d.ts +10 -10
  46. package/dist/cjs/api/resources/orgConnectionInfos/resources/shipper/client/requests/ShipperOrgConnectionInfoClientCreate1.d.ts +9 -9
  47. package/dist/cjs/api/resources/orgConnectionInfos/resources/shipper/client/requests/ShipperOrgConnectionInfoClientUpdate1.d.ts +10 -10
  48. package/dist/cjs/api/resources/orgProfiles/client/requests/CourierOrgProfileClientUpdate3.d.ts +3 -3
  49. package/dist/cjs/api/resources/orgs/client/requests/UpdateOrgPublicDataReq.d.ts +2 -2
  50. package/dist/cjs/api/resources/payments/client/Client.d.ts +35 -0
  51. package/dist/cjs/api/resources/payments/client/Client.js +160 -0
  52. package/dist/cjs/api/resources/payments/client/requests/GenerateInvoiceReq.d.ts +14 -0
  53. package/dist/cjs/api/resources/payments/client/requests/index.d.ts +1 -0
  54. package/dist/cjs/api/resources/shipperContactInfo/client/requests/ShipperContactInfoClientUpdate1.d.ts +11 -11
  55. package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/client/Client.d.ts +96 -0
  56. package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/client/Client.js +321 -0
  57. package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/client/index.d.ts +2 -0
  58. package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/client/index.js +17 -0
  59. package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/client/requests/ShipperPayCourierLineItemGroupCreateReq.d.ts +28 -0
  60. package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/client/requests/ShipperPayCourierLineItemGroupPreviewReq.d.ts +28 -0
  61. package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/client/requests/index.d.ts +2 -0
  62. package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/client/requests/index.js +2 -0
  63. package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/index.d.ts +2 -0
  64. package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/index.js +18 -0
  65. package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/resources/addLineItems/client/Client.d.ts +53 -0
  66. package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/resources/addLineItems/client/Client.js +136 -0
  67. package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/resources/addLineItems/client/index.d.ts +2 -0
  68. package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/resources/addLineItems/client/index.js +17 -0
  69. package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/resources/addLineItems/client/requests/ShipperPayCourierLineItemGroupAddLineItemsReq.d.ts +19 -0
  70. package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/resources/addLineItems/client/requests/ShipperPayCourierLineItemGroupAddLineItemsReq.js +5 -0
  71. package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/resources/addLineItems/client/requests/index.d.ts +1 -0
  72. package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/resources/addLineItems/client/requests/index.js +2 -0
  73. package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/resources/addLineItems/index.d.ts +1 -0
  74. package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/resources/addLineItems/index.js +17 -0
  75. package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/resources/index.d.ts +4 -0
  76. package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/resources/index.js +43 -0
  77. package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/resources/removeLineItems/client/Client.d.ts +53 -0
  78. package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/resources/removeLineItems/client/Client.js +136 -0
  79. package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/resources/removeLineItems/client/index.d.ts +2 -0
  80. package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/resources/removeLineItems/client/index.js +17 -0
  81. package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/resources/removeLineItems/client/requests/ShipperPayCourierLineItemGroupRemoveLineItemsReq.d.ts +19 -0
  82. package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/resources/removeLineItems/client/requests/ShipperPayCourierLineItemGroupRemoveLineItemsReq.js +5 -0
  83. package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/resources/removeLineItems/client/requests/index.d.ts +1 -0
  84. package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/resources/removeLineItems/client/requests/index.js +2 -0
  85. package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/resources/removeLineItems/index.d.ts +1 -0
  86. package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/resources/removeLineItems/index.js +17 -0
  87. package/dist/cjs/api/resources/shipperPayCourierPayments/client/Client.d.ts +62 -0
  88. package/dist/cjs/api/resources/shipperPayCourierPayments/client/Client.js +192 -0
  89. package/dist/cjs/api/resources/shipperPayCourierPayments/client/index.js +2 -0
  90. package/dist/cjs/api/resources/shipperPayCourierPayments/index.d.ts +1 -0
  91. package/dist/cjs/api/resources/shipperPayCourierPayments/index.js +17 -0
  92. package/dist/cjs/api/resources/shipperPayCourierRateSheets/client/Client.d.ts +110 -0
  93. package/dist/cjs/api/resources/shipperPayCourierRateSheets/client/Client.js +367 -0
  94. package/dist/cjs/api/resources/shipperPayCourierRateSheets/client/index.d.ts +2 -0
  95. package/dist/cjs/api/resources/shipperPayCourierRateSheets/client/index.js +17 -0
  96. package/dist/cjs/api/resources/shipperPayCourierRateSheets/client/requests/ShipperPayCourierRateSheetClientCreate1.d.ts +49 -0
  97. package/dist/cjs/api/resources/shipperPayCourierRateSheets/client/requests/ShipperPayCourierRateSheetClientCreate1.js +5 -0
  98. package/dist/cjs/api/resources/shipperPayCourierRateSheets/client/requests/ShipperPayCourierRateSheetClientUpdate1.d.ts +31 -0
  99. package/dist/cjs/api/resources/shipperPayCourierRateSheets/client/requests/ShipperPayCourierRateSheetClientUpdate1.js +5 -0
  100. package/dist/cjs/api/resources/shipperPayCourierRateSheets/client/requests/index.d.ts +2 -0
  101. package/dist/cjs/api/resources/shipperPayCourierRateSheets/client/requests/index.js +2 -0
  102. package/dist/cjs/api/resources/shipperPayCourierRateSheets/index.d.ts +1 -0
  103. package/dist/cjs/api/resources/shipperPayCourierRateSheets/index.js +17 -0
  104. package/dist/cjs/api/resources/taskGroups/client/requests/UpdateTaskGroupReq.d.ts +1 -1
  105. package/dist/cjs/api/types/Cargo1.d.ts +5 -5
  106. package/dist/cjs/api/types/CargoClientCreate1.d.ts +5 -5
  107. package/dist/cjs/api/types/ConnectionEvent.d.ts +12 -0
  108. package/dist/cjs/api/types/ConnectionEvent.js +5 -0
  109. package/dist/cjs/api/types/ConnectionEventEnum.d.ts +11 -0
  110. package/dist/cjs/api/types/ConnectionEventEnum.js +13 -0
  111. package/dist/cjs/api/types/ConnectionState.d.ts +10 -0
  112. package/dist/cjs/api/types/ConnectionState.js +12 -0
  113. package/dist/cjs/api/types/CourierOrgConnectionInfo1.d.ts +10 -10
  114. package/dist/cjs/api/types/CourierPayDriverPayout1.d.ts +20 -0
  115. package/dist/cjs/api/types/CourierPayDriverPayout1.js +5 -0
  116. package/dist/cjs/api/types/CourierPayDriverRateSheet1.d.ts +6 -6
  117. package/dist/cjs/api/types/{BaseModel.d.ts → CreateConnectAccountLinkRes.d.ts} +2 -1
  118. package/dist/cjs/api/types/CreateConnectAccountLinkRes.js +5 -0
  119. package/dist/cjs/api/types/CreateConnectAccountRes.d.ts +6 -0
  120. package/dist/cjs/api/types/CreateConnectAccountRes.js +5 -0
  121. package/dist/cjs/api/types/CreateShipperPayCourierPaymentReq.d.ts +9 -0
  122. package/dist/cjs/api/types/CreateShipperPayCourierPaymentReq.js +5 -0
  123. package/dist/cjs/api/types/DecodedJwtWithOrgAndUserId.d.ts +16 -16
  124. package/dist/cjs/api/types/Driver1.d.ts +10 -10
  125. package/dist/cjs/api/types/Expense1.d.ts +2 -2
  126. package/dist/cjs/api/types/GenerateInvoiceRes.d.ts +9 -0
  127. package/dist/cjs/api/types/GenerateInvoiceRes.js +5 -0
  128. package/dist/cjs/api/types/LineItem1.d.ts +1 -1
  129. package/dist/cjs/api/types/LocationFeature.d.ts +17 -0
  130. package/dist/cjs/api/types/LocationFeature.js +5 -0
  131. package/dist/cjs/api/types/{FeatureInputGeometry.d.ts → LocationFeatureInputGeometry.d.ts} +2 -2
  132. package/dist/cjs/api/types/LocationFeatureInputGeometry.js +5 -0
  133. package/dist/cjs/api/types/{FeatureOutputGeometry.d.ts → LocationFeatureOutputGeometry.d.ts} +2 -2
  134. package/dist/cjs/api/types/LocationFeatureOutputGeometry.js +5 -0
  135. package/dist/cjs/api/types/LocationProperties.d.ts +11 -0
  136. package/dist/cjs/api/types/LocationProperties.js +5 -0
  137. package/dist/cjs/api/types/Milestone1.d.ts +10 -10
  138. package/dist/cjs/api/types/MilestoneClientCreate1.d.ts +1 -1
  139. package/dist/cjs/api/types/OffChrtShipperOrgConnectionInfo1.d.ts +11 -10
  140. package/dist/cjs/api/types/Order1.d.ts +8 -8
  141. package/dist/cjs/api/types/OrgMemberDetails.d.ts +3 -3
  142. package/dist/cjs/api/types/OrgMembersAndDrivers.d.ts +1 -1
  143. package/dist/cjs/api/types/OrgPublicData2.d.ts +6 -2
  144. package/dist/cjs/api/types/PayablesInvoice1.d.ts +7 -7
  145. package/dist/cjs/api/types/PaymentPreviewResponse.d.ts +13 -0
  146. package/dist/cjs/api/types/PaymentPreviewResponse.js +5 -0
  147. package/dist/cjs/api/types/PayoutStatusEnum.d.ts +10 -0
  148. package/dist/cjs/api/types/PayoutStatusEnum.js +12 -0
  149. package/dist/cjs/api/types/ReceivablesInvoice1.d.ts +7 -7
  150. package/dist/cjs/api/types/ShipperContactInfo1.d.ts +14 -14
  151. package/dist/cjs/api/types/ShipperContactInfoClientCreate1.d.ts +14 -14
  152. package/dist/cjs/api/types/ShipperCourierConnection1.d.ts +5 -2
  153. package/dist/cjs/api/types/ShipperOrgConnectionInfo1.d.ts +10 -10
  154. package/dist/cjs/api/types/ShipperPayCourierLineItemGroup1.d.ts +16 -0
  155. package/dist/cjs/api/types/ShipperPayCourierLineItemGroup1.js +5 -0
  156. package/dist/cjs/api/types/ShipperPayCourierLineItemGroupClientCreate1.d.ts +8 -0
  157. package/dist/cjs/api/types/ShipperPayCourierLineItemGroupClientCreate1.js +5 -0
  158. package/dist/cjs/api/types/ShipperPayCourierRateSheet1.d.ts +33 -0
  159. package/dist/cjs/api/types/ShipperPayCourierRateSheet1.js +5 -0
  160. package/dist/cjs/api/types/StripeConnectAccountEvent.d.ts +11 -0
  161. package/dist/cjs/api/types/StripeConnectAccountEvent.js +5 -0
  162. package/dist/cjs/api/types/StripeConnectAccountEventEnum.d.ts +8 -0
  163. package/dist/cjs/api/types/StripeConnectAccountEventEnum.js +10 -0
  164. package/dist/cjs/api/types/StripeConnectInvoice1.d.ts +6 -6
  165. package/dist/cjs/api/types/Task1.d.ts +12 -12
  166. package/dist/cjs/api/types/TaskClientCreate1.d.ts +7 -7
  167. package/dist/cjs/api/types/TaskCreateBundle.d.ts +4 -4
  168. package/dist/cjs/api/types/TaskGroup1.d.ts +7 -7
  169. package/dist/cjs/api/types/UserPublicData6.d.ts +3 -3
  170. package/dist/cjs/api/types/index.d.ts +19 -4
  171. package/dist/cjs/api/types/index.js +19 -4
  172. package/dist/cjs/version.d.ts +1 -1
  173. package/dist/cjs/version.js +1 -1
  174. package/dist/esm/Client.d.mts +9 -0
  175. package/dist/esm/Client.mjs +17 -2
  176. package/dist/esm/api/resources/courierPayDriverLineItemGroup/client/Client.d.mts +6 -5
  177. package/dist/esm/api/resources/courierPayDriverLineItemGroup/client/Client.mjs +12 -39
  178. package/dist/esm/api/resources/courierPayDriverLineItemGroup/client/requests/{CourierPayDriverLineItemGroupCreateRequest.d.mts → CourierPayDriverLineItemGroupCreateReq.d.mts} +7 -1
  179. package/dist/esm/api/resources/courierPayDriverLineItemGroup/client/requests/CourierPayDriverLineItemGroupPreviewReq.d.mts +27 -0
  180. package/dist/esm/api/resources/courierPayDriverLineItemGroup/client/requests/index.d.mts +2 -2
  181. package/dist/esm/api/resources/courierPayDriverLineItemGroup/resources/addLineItems/client/Client.d.mts +2 -2
  182. package/dist/esm/api/resources/courierPayDriverLineItemGroup/resources/addLineItems/client/Client.mjs +1 -1
  183. package/dist/esm/api/resources/courierPayDriverLineItemGroup/resources/addLineItems/client/requests/{AddLineItemsReq.d.mts → CourierPayDriverLineItemGroupAddLineItemsReq.d.mts} +1 -1
  184. package/dist/esm/api/resources/courierPayDriverLineItemGroup/resources/addLineItems/client/requests/index.d.mts +1 -1
  185. package/dist/esm/api/resources/courierPayDriverLineItemGroup/resources/removeLineItems/client/Client.d.mts +2 -2
  186. package/dist/esm/api/resources/courierPayDriverLineItemGroup/resources/removeLineItems/client/Client.mjs +1 -1
  187. package/dist/esm/api/resources/courierPayDriverLineItemGroup/resources/removeLineItems/client/requests/{RemoveLineItemsReq.d.mts → CourierPayDriverLineItemGroupRemoveLineItemsReq.d.mts} +1 -1
  188. package/dist/esm/api/resources/courierPayDriverLineItemGroup/resources/removeLineItems/client/requests/index.d.mts +1 -1
  189. package/dist/esm/api/resources/courierPayDriverPayouts/client/Client.d.mts +14 -0
  190. package/dist/esm/api/resources/courierPayDriverPayouts/client/Client.mjs +61 -0
  191. package/dist/esm/api/resources/courierPayDriverPayouts/client/requests/CourierPayDriverPayoutClientUpdate1.d.mts +14 -0
  192. package/dist/esm/api/resources/courierPayDriverPayouts/client/requests/index.d.mts +1 -0
  193. package/dist/esm/api/resources/courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetClientCreate1.d.mts +6 -6
  194. package/dist/esm/api/resources/courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetClientUpdate1.d.mts +19 -19
  195. package/dist/esm/api/resources/dev/client/Client.d.mts +10 -10
  196. package/dist/esm/api/resources/dev/client/Client.mjs +47 -47
  197. package/dist/esm/api/resources/drivers/client/requests/DriverCreateReq.d.mts +1 -1
  198. package/dist/esm/api/resources/drivers/client/requests/DriverLastSeenReq.d.mts +1 -1
  199. package/dist/esm/api/resources/drivers/client/requests/UpdateDriverDetailsReq.d.mts +5 -5
  200. package/dist/esm/api/resources/index.d.mts +5 -0
  201. package/dist/esm/api/resources/index.mjs +5 -0
  202. package/dist/esm/api/resources/milestones/client/requests/MilestoneAddToTaskReq.d.mts +1 -1
  203. package/dist/esm/api/resources/milestones/client/requests/MilestoneUpdateReq.d.mts +2 -2
  204. package/dist/esm/api/resources/milestones/resources/images/client/Client.d.mts +1 -8
  205. package/dist/esm/api/resources/milestones/resources/images/client/Client.mjs +2 -8
  206. package/dist/esm/api/resources/milestones/resources/images/client/requests/BodyPostMilestonesUploadImageOortMilestonesImagesUploadMilestoneIdPost.d.mts +1 -1
  207. package/dist/esm/api/resources/notifications/client/Client.d.mts +3 -3
  208. package/dist/esm/api/resources/notifications/client/Client.mjs +3 -3
  209. package/dist/esm/api/resources/notifications/resources/{courierPreferences → courier}/client/Client.d.mts +12 -12
  210. package/dist/esm/api/resources/notifications/resources/{courierPreferences → courier}/client/Client.mjs +11 -11
  211. package/dist/esm/api/resources/notifications/resources/courier/client/requests/index.mjs +1 -0
  212. package/dist/esm/api/resources/notifications/resources/index.d.mts +2 -2
  213. package/dist/esm/api/resources/notifications/resources/index.mjs +2 -2
  214. package/dist/esm/api/resources/offChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientCreate1.d.mts +11 -10
  215. package/dist/esm/api/resources/offChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientUpdate1.d.mts +10 -10
  216. package/dist/esm/api/resources/orders/client/requests/CreateOrderReq.d.mts +4 -4
  217. package/dist/esm/api/resources/orgConnectionInfos/resources/courier/client/requests/CourierOrgConnectionInfoClientCreate1.d.mts +9 -9
  218. package/dist/esm/api/resources/orgConnectionInfos/resources/courier/client/requests/CourierOrgConnectionInfoClientUpdate1.d.mts +10 -10
  219. package/dist/esm/api/resources/orgConnectionInfos/resources/shipper/client/requests/ShipperOrgConnectionInfoClientCreate1.d.mts +9 -9
  220. package/dist/esm/api/resources/orgConnectionInfos/resources/shipper/client/requests/ShipperOrgConnectionInfoClientUpdate1.d.mts +10 -10
  221. package/dist/esm/api/resources/orgProfiles/client/requests/CourierOrgProfileClientUpdate3.d.mts +3 -3
  222. package/dist/esm/api/resources/orgs/client/requests/UpdateOrgPublicDataReq.d.mts +2 -2
  223. package/dist/esm/api/resources/payments/client/Client.d.mts +35 -0
  224. package/dist/esm/api/resources/payments/client/Client.mjs +160 -0
  225. package/dist/esm/api/resources/payments/client/requests/GenerateInvoiceReq.d.mts +14 -0
  226. package/dist/esm/api/resources/payments/client/requests/index.d.mts +1 -0
  227. package/dist/esm/api/resources/shipperContactInfo/client/requests/ShipperContactInfoClientUpdate1.d.mts +11 -11
  228. package/dist/esm/api/resources/shipperPayCourierLineItemGroup/client/Client.d.mts +96 -0
  229. package/dist/esm/api/resources/shipperPayCourierLineItemGroup/client/Client.mjs +284 -0
  230. package/dist/esm/api/resources/shipperPayCourierLineItemGroup/client/index.d.mts +2 -0
  231. package/dist/esm/api/resources/shipperPayCourierLineItemGroup/client/index.mjs +1 -0
  232. package/dist/esm/api/resources/shipperPayCourierLineItemGroup/client/requests/ShipperPayCourierLineItemGroupCreateReq.d.mts +28 -0
  233. package/dist/esm/api/resources/shipperPayCourierLineItemGroup/client/requests/ShipperPayCourierLineItemGroupPreviewReq.d.mts +28 -0
  234. package/dist/esm/api/resources/shipperPayCourierLineItemGroup/client/requests/index.d.mts +2 -0
  235. package/dist/esm/api/resources/shipperPayCourierLineItemGroup/client/requests/index.mjs +1 -0
  236. package/dist/esm/api/resources/shipperPayCourierLineItemGroup/index.d.mts +2 -0
  237. package/dist/esm/api/resources/shipperPayCourierLineItemGroup/index.mjs +2 -0
  238. package/dist/esm/api/resources/shipperPayCourierLineItemGroup/resources/addLineItems/client/Client.d.mts +53 -0
  239. package/dist/esm/api/resources/shipperPayCourierLineItemGroup/resources/addLineItems/client/Client.mjs +99 -0
  240. package/dist/esm/api/resources/shipperPayCourierLineItemGroup/resources/addLineItems/client/index.d.mts +2 -0
  241. package/dist/esm/api/resources/shipperPayCourierLineItemGroup/resources/addLineItems/client/index.mjs +1 -0
  242. package/dist/esm/api/resources/shipperPayCourierLineItemGroup/resources/addLineItems/client/requests/ShipperPayCourierLineItemGroupAddLineItemsReq.d.mts +19 -0
  243. package/dist/esm/api/resources/shipperPayCourierLineItemGroup/resources/addLineItems/client/requests/ShipperPayCourierLineItemGroupAddLineItemsReq.mjs +4 -0
  244. package/dist/esm/api/resources/shipperPayCourierLineItemGroup/resources/addLineItems/client/requests/index.d.mts +1 -0
  245. package/dist/esm/api/resources/shipperPayCourierLineItemGroup/resources/addLineItems/client/requests/index.mjs +1 -0
  246. package/dist/esm/api/resources/shipperPayCourierLineItemGroup/resources/addLineItems/index.d.mts +1 -0
  247. package/dist/esm/api/resources/shipperPayCourierLineItemGroup/resources/addLineItems/index.mjs +1 -0
  248. package/dist/esm/api/resources/shipperPayCourierLineItemGroup/resources/index.d.mts +4 -0
  249. package/dist/esm/api/resources/shipperPayCourierLineItemGroup/resources/index.mjs +4 -0
  250. package/dist/esm/api/resources/shipperPayCourierLineItemGroup/resources/removeLineItems/client/Client.d.mts +53 -0
  251. package/dist/esm/api/resources/shipperPayCourierLineItemGroup/resources/removeLineItems/client/Client.mjs +99 -0
  252. package/dist/esm/api/resources/shipperPayCourierLineItemGroup/resources/removeLineItems/client/index.d.mts +2 -0
  253. package/dist/esm/api/resources/shipperPayCourierLineItemGroup/resources/removeLineItems/client/index.mjs +1 -0
  254. package/dist/esm/api/resources/shipperPayCourierLineItemGroup/resources/removeLineItems/client/requests/ShipperPayCourierLineItemGroupRemoveLineItemsReq.d.mts +19 -0
  255. package/dist/esm/api/resources/shipperPayCourierLineItemGroup/resources/removeLineItems/client/requests/ShipperPayCourierLineItemGroupRemoveLineItemsReq.mjs +4 -0
  256. package/dist/esm/api/resources/shipperPayCourierLineItemGroup/resources/removeLineItems/client/requests/index.d.mts +1 -0
  257. package/dist/esm/api/resources/shipperPayCourierLineItemGroup/resources/removeLineItems/client/requests/index.mjs +1 -0
  258. package/dist/esm/api/resources/shipperPayCourierLineItemGroup/resources/removeLineItems/index.d.mts +1 -0
  259. package/dist/esm/api/resources/shipperPayCourierLineItemGroup/resources/removeLineItems/index.mjs +1 -0
  260. package/dist/esm/api/resources/shipperPayCourierPayments/client/Client.d.mts +62 -0
  261. package/dist/esm/api/resources/shipperPayCourierPayments/client/Client.mjs +155 -0
  262. package/dist/esm/api/resources/shipperPayCourierPayments/client/index.d.mts +1 -0
  263. package/dist/esm/api/resources/shipperPayCourierPayments/client/index.mjs +1 -0
  264. package/dist/esm/api/resources/shipperPayCourierPayments/index.d.mts +1 -0
  265. package/dist/esm/api/resources/shipperPayCourierPayments/index.mjs +1 -0
  266. package/dist/esm/api/resources/shipperPayCourierRateSheets/client/Client.d.mts +110 -0
  267. package/dist/esm/api/resources/shipperPayCourierRateSheets/client/Client.mjs +330 -0
  268. package/dist/esm/api/resources/shipperPayCourierRateSheets/client/index.d.mts +2 -0
  269. package/dist/esm/api/resources/shipperPayCourierRateSheets/client/index.mjs +1 -0
  270. package/dist/esm/api/resources/shipperPayCourierRateSheets/client/requests/ShipperPayCourierRateSheetClientCreate1.d.mts +49 -0
  271. package/dist/esm/api/resources/shipperPayCourierRateSheets/client/requests/ShipperPayCourierRateSheetClientCreate1.mjs +4 -0
  272. package/dist/esm/api/resources/shipperPayCourierRateSheets/client/requests/ShipperPayCourierRateSheetClientUpdate1.d.mts +31 -0
  273. package/dist/esm/api/resources/shipperPayCourierRateSheets/client/requests/ShipperPayCourierRateSheetClientUpdate1.mjs +4 -0
  274. package/dist/esm/api/resources/shipperPayCourierRateSheets/client/requests/index.d.mts +2 -0
  275. package/dist/esm/api/resources/shipperPayCourierRateSheets/client/requests/index.mjs +1 -0
  276. package/dist/esm/api/resources/shipperPayCourierRateSheets/index.d.mts +1 -0
  277. package/dist/esm/api/resources/shipperPayCourierRateSheets/index.mjs +1 -0
  278. package/dist/esm/api/resources/taskGroups/client/requests/UpdateTaskGroupReq.d.mts +1 -1
  279. package/dist/esm/api/types/Cargo1.d.mts +5 -5
  280. package/dist/esm/api/types/CargoClientCreate1.d.mts +5 -5
  281. package/dist/esm/api/types/ConnectionEvent.d.mts +12 -0
  282. package/dist/esm/api/types/ConnectionEvent.mjs +4 -0
  283. package/dist/esm/api/types/ConnectionEventEnum.d.mts +11 -0
  284. package/dist/esm/api/types/ConnectionEventEnum.mjs +10 -0
  285. package/dist/esm/api/types/ConnectionState.d.mts +10 -0
  286. package/dist/esm/api/types/ConnectionState.mjs +9 -0
  287. package/dist/esm/api/types/CourierOrgConnectionInfo1.d.mts +10 -10
  288. package/dist/esm/api/types/CourierPayDriverPayout1.d.mts +20 -0
  289. package/dist/esm/api/types/CourierPayDriverPayout1.mjs +4 -0
  290. package/dist/esm/api/types/CourierPayDriverRateSheet1.d.mts +6 -6
  291. package/dist/esm/api/types/{BaseModel.d.mts → CreateConnectAccountLinkRes.d.mts} +2 -1
  292. package/dist/esm/api/types/CreateConnectAccountLinkRes.mjs +4 -0
  293. package/dist/esm/api/types/CreateConnectAccountRes.d.mts +6 -0
  294. package/dist/esm/api/types/CreateConnectAccountRes.mjs +4 -0
  295. package/dist/esm/api/types/CreateShipperPayCourierPaymentReq.d.mts +9 -0
  296. package/dist/esm/api/types/CreateShipperPayCourierPaymentReq.mjs +4 -0
  297. package/dist/esm/api/types/DecodedJwtWithOrgAndUserId.d.mts +16 -16
  298. package/dist/esm/api/types/Driver1.d.mts +10 -10
  299. package/dist/esm/api/types/Expense1.d.mts +2 -2
  300. package/dist/esm/api/types/GenerateInvoiceRes.d.mts +9 -0
  301. package/dist/esm/api/types/GenerateInvoiceRes.mjs +4 -0
  302. package/dist/esm/api/types/LineItem1.d.mts +1 -1
  303. package/dist/esm/api/types/LocationFeature.d.mts +17 -0
  304. package/dist/esm/api/types/LocationFeature.mjs +4 -0
  305. package/dist/esm/api/types/{FeatureInputGeometry.d.mts → LocationFeatureInputGeometry.d.mts} +2 -2
  306. package/dist/esm/api/types/LocationFeatureInputGeometry.mjs +4 -0
  307. package/dist/esm/api/types/{FeatureOutputGeometry.d.mts → LocationFeatureOutputGeometry.d.mts} +2 -2
  308. package/dist/esm/api/types/LocationFeatureOutputGeometry.mjs +4 -0
  309. package/dist/esm/api/types/LocationProperties.d.mts +11 -0
  310. package/dist/esm/api/types/LocationProperties.mjs +4 -0
  311. package/dist/esm/api/types/Milestone1.d.mts +10 -10
  312. package/dist/esm/api/types/MilestoneClientCreate1.d.mts +1 -1
  313. package/dist/esm/api/types/OffChrtShipperOrgConnectionInfo1.d.mts +11 -10
  314. package/dist/esm/api/types/Order1.d.mts +8 -8
  315. package/dist/esm/api/types/OrgMemberDetails.d.mts +3 -3
  316. package/dist/esm/api/types/OrgMembersAndDrivers.d.mts +1 -1
  317. package/dist/esm/api/types/OrgPublicData2.d.mts +6 -2
  318. package/dist/esm/api/types/PayablesInvoice1.d.mts +7 -7
  319. package/dist/esm/api/types/PaymentPreviewResponse.d.mts +13 -0
  320. package/dist/esm/api/types/PaymentPreviewResponse.mjs +4 -0
  321. package/dist/esm/api/types/PayoutStatusEnum.d.mts +10 -0
  322. package/dist/esm/api/types/PayoutStatusEnum.mjs +9 -0
  323. package/dist/esm/api/types/ReceivablesInvoice1.d.mts +7 -7
  324. package/dist/esm/api/types/ShipperContactInfo1.d.mts +14 -14
  325. package/dist/esm/api/types/ShipperContactInfoClientCreate1.d.mts +14 -14
  326. package/dist/esm/api/types/ShipperCourierConnection1.d.mts +5 -2
  327. package/dist/esm/api/types/ShipperOrgConnectionInfo1.d.mts +10 -10
  328. package/dist/esm/api/types/ShipperPayCourierLineItemGroup1.d.mts +16 -0
  329. package/dist/esm/api/types/ShipperPayCourierLineItemGroup1.mjs +4 -0
  330. package/dist/esm/api/types/ShipperPayCourierLineItemGroupClientCreate1.d.mts +8 -0
  331. package/dist/esm/api/types/ShipperPayCourierLineItemGroupClientCreate1.mjs +4 -0
  332. package/dist/esm/api/types/ShipperPayCourierRateSheet1.d.mts +33 -0
  333. package/dist/esm/api/types/ShipperPayCourierRateSheet1.mjs +4 -0
  334. package/dist/esm/api/types/StripeConnectAccountEvent.d.mts +11 -0
  335. package/dist/esm/api/types/StripeConnectAccountEvent.mjs +4 -0
  336. package/dist/esm/api/types/StripeConnectAccountEventEnum.d.mts +8 -0
  337. package/dist/esm/api/types/StripeConnectAccountEventEnum.mjs +7 -0
  338. package/dist/esm/api/types/StripeConnectInvoice1.d.mts +6 -6
  339. package/dist/esm/api/types/Task1.d.mts +12 -12
  340. package/dist/esm/api/types/TaskClientCreate1.d.mts +7 -7
  341. package/dist/esm/api/types/TaskCreateBundle.d.mts +4 -4
  342. package/dist/esm/api/types/TaskGroup1.d.mts +7 -7
  343. package/dist/esm/api/types/UserPublicData6.d.mts +3 -3
  344. package/dist/esm/api/types/index.d.mts +19 -4
  345. package/dist/esm/api/types/index.mjs +19 -4
  346. package/dist/esm/version.d.mts +1 -1
  347. package/dist/esm/version.mjs +1 -1
  348. package/package.json +1 -1
  349. package/reference.md +1304 -232
  350. package/dist/cjs/api/resources/courierPayDriverLineItemGroup/client/requests/CourierPayDriverLineItemGroupPreviewRequest.d.ts +0 -18
  351. package/dist/cjs/api/types/Feature.d.ts +0 -18
  352. package/dist/esm/api/resources/courierPayDriverLineItemGroup/client/requests/CourierPayDriverLineItemGroupPreviewRequest.d.mts +0 -18
  353. package/dist/esm/api/types/Feature.d.mts +0 -18
  354. /package/dist/cjs/api/resources/courierPayDriverLineItemGroup/client/requests/{CourierPayDriverLineItemGroupCreateRequest.js → CourierPayDriverLineItemGroupCreateReq.js} +0 -0
  355. /package/dist/cjs/api/resources/courierPayDriverLineItemGroup/client/requests/{CourierPayDriverLineItemGroupPreviewRequest.js → CourierPayDriverLineItemGroupPreviewReq.js} +0 -0
  356. /package/dist/cjs/api/resources/courierPayDriverLineItemGroup/resources/addLineItems/client/requests/{AddLineItemsReq.js → CourierPayDriverLineItemGroupAddLineItemsReq.js} +0 -0
  357. /package/dist/cjs/api/resources/courierPayDriverLineItemGroup/resources/removeLineItems/client/requests/{RemoveLineItemsReq.js → CourierPayDriverLineItemGroupRemoveLineItemsReq.js} +0 -0
  358. /package/dist/cjs/api/resources/{notifications/resources/courierPreferences/client/requests/CourierNotificationPreferencesClientCreate1.js → courierPayDriverPayouts/client/requests/CourierPayDriverPayoutClientUpdate1.js} +0 -0
  359. /package/dist/cjs/api/resources/notifications/resources/{courierPreferences → courier}/client/index.d.ts +0 -0
  360. /package/dist/cjs/api/resources/notifications/resources/{courierPreferences → courier}/client/index.js +0 -0
  361. /package/dist/cjs/api/resources/notifications/resources/{courierPreferences → courier}/client/requests/CourierNotificationPreferencesClientCreate1.d.ts +0 -0
  362. /package/dist/cjs/api/{types/BaseModel.js → resources/notifications/resources/courier/client/requests/CourierNotificationPreferencesClientCreate1.js} +0 -0
  363. /package/dist/cjs/api/resources/notifications/resources/{courierPreferences → courier}/client/requests/index.d.ts +0 -0
  364. /package/dist/cjs/api/resources/notifications/resources/{courierPreferences → courier}/client/requests/index.js +0 -0
  365. /package/dist/cjs/api/resources/notifications/resources/{courierPreferences → courier}/index.d.ts +0 -0
  366. /package/dist/cjs/api/resources/notifications/resources/{courierPreferences → courier}/index.js +0 -0
  367. /package/dist/cjs/api/{types/Feature.js → resources/payments/client/requests/GenerateInvoiceReq.js} +0 -0
  368. /package/dist/cjs/api/{types/FeatureInputGeometry.js → resources/shipperPayCourierLineItemGroup/client/requests/ShipperPayCourierLineItemGroupCreateReq.js} +0 -0
  369. /package/dist/cjs/api/{types/FeatureOutputGeometry.js → resources/shipperPayCourierLineItemGroup/client/requests/ShipperPayCourierLineItemGroupPreviewReq.js} +0 -0
  370. /package/dist/{esm/api/resources/notifications/resources/courierPreferences/client/requests/index.mjs → cjs/api/resources/shipperPayCourierPayments/client/index.d.ts} +0 -0
  371. /package/dist/esm/api/resources/courierPayDriverLineItemGroup/client/requests/{CourierPayDriverLineItemGroupCreateRequest.mjs → CourierPayDriverLineItemGroupCreateReq.mjs} +0 -0
  372. /package/dist/esm/api/resources/courierPayDriverLineItemGroup/client/requests/{CourierPayDriverLineItemGroupPreviewRequest.mjs → CourierPayDriverLineItemGroupPreviewReq.mjs} +0 -0
  373. /package/dist/esm/api/resources/courierPayDriverLineItemGroup/resources/addLineItems/client/requests/{AddLineItemsReq.mjs → CourierPayDriverLineItemGroupAddLineItemsReq.mjs} +0 -0
  374. /package/dist/esm/api/resources/courierPayDriverLineItemGroup/resources/removeLineItems/client/requests/{RemoveLineItemsReq.mjs → CourierPayDriverLineItemGroupRemoveLineItemsReq.mjs} +0 -0
  375. /package/dist/esm/api/resources/{notifications/resources/courierPreferences/client/requests/CourierNotificationPreferencesClientCreate1.mjs → courierPayDriverPayouts/client/requests/CourierPayDriverPayoutClientUpdate1.mjs} +0 -0
  376. /package/dist/esm/api/resources/notifications/resources/{courierPreferences → courier}/client/index.d.mts +0 -0
  377. /package/dist/esm/api/resources/notifications/resources/{courierPreferences → courier}/client/index.mjs +0 -0
  378. /package/dist/esm/api/resources/notifications/resources/{courierPreferences → courier}/client/requests/CourierNotificationPreferencesClientCreate1.d.mts +0 -0
  379. /package/dist/esm/api/{types/BaseModel.mjs → resources/notifications/resources/courier/client/requests/CourierNotificationPreferencesClientCreate1.mjs} +0 -0
  380. /package/dist/esm/api/resources/notifications/resources/{courierPreferences → courier}/client/requests/index.d.mts +0 -0
  381. /package/dist/esm/api/resources/notifications/resources/{courierPreferences → courier}/index.d.mts +0 -0
  382. /package/dist/esm/api/resources/notifications/resources/{courierPreferences → courier}/index.mjs +0 -0
  383. /package/dist/esm/api/{types/Feature.mjs → resources/payments/client/requests/GenerateInvoiceReq.mjs} +0 -0
  384. /package/dist/esm/api/{types/FeatureInputGeometry.mjs → resources/shipperPayCourierLineItemGroup/client/requests/ShipperPayCourierLineItemGroupCreateReq.mjs} +0 -0
  385. /package/dist/esm/api/{types/FeatureOutputGeometry.mjs → resources/shipperPayCourierLineItemGroup/client/requests/ShipperPayCourierLineItemGroupPreviewReq.mjs} +0 -0
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export const ConnectionState = {
5
+ Pending: "pending",
6
+ Approved: "approved",
7
+ Denied: "denied",
8
+ Banned: "banned",
9
+ };
@@ -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.Feature;
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
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -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 */
@@ -1,5 +1,6 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export interface BaseModel {
4
+ export interface CreateConnectAccountLinkRes {
5
+ url: string;
5
6
  }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,6 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface CreateConnectAccountRes {
5
+ account_id: string;
6
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Request model for creating a payment.
6
+ */
7
+ export interface CreateShipperPayCourierPaymentReq {
8
+ order_id: string;
9
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -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.Feature;
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,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface GenerateInvoiceRes {
5
+ invoice_id: string;
6
+ invoice_url: string;
7
+ amount_due: number;
8
+ due_date: number;
9
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -7,5 +7,5 @@ export interface LineItem1 {
7
7
  item: Chrt.LineItemEnum1;
8
8
  quantity: number;
9
9
  rate: number;
10
- comment?: string;
10
+ comment?: string | null;
11
11
  }
@@ -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
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -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 FeatureInputGeometry = Chrt.FeatureInputGeometry.GeometryCollection | Chrt.FeatureInputGeometry.LineString | Chrt.FeatureInputGeometry.MultiLineString | Chrt.FeatureInputGeometry.MultiPoint | Chrt.FeatureInputGeometry.MultiPolygon | Chrt.FeatureInputGeometry.Point | Chrt.FeatureInputGeometry.Polygon;
6
- export declare namespace FeatureInputGeometry {
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
  }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -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 FeatureOutputGeometry = Chrt.FeatureOutputGeometry.GeometryCollection | Chrt.FeatureOutputGeometry.LineString | Chrt.FeatureOutputGeometry.MultiLineString | Chrt.FeatureOutputGeometry.MultiPoint | Chrt.FeatureOutputGeometry.MultiPolygon | Chrt.FeatureOutputGeometry.Point | Chrt.FeatureOutputGeometry.Polygon;
6
- export declare namespace FeatureOutputGeometry {
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
  }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Properties for GeoJSON Feature objects
6
+ */
7
+ export interface LocationProperties {
8
+ address?: string | null;
9
+ name?: string | null;
10
+ mapbox_id?: string | null;
11
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -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.Feature;
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
  }
@@ -5,5 +5,5 @@ import * as Chrt from "../index.mjs";
5
5
  export interface MilestoneClientCreate1 {
6
6
  schema_version: number;
7
7
  type: Chrt.MilestoneTypeEnum1;
8
- requestor_comments?: string;
8
+ requestor_comments?: string | null;
9
9
  }
@@ -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.Feature;
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
  }
@@ -4,5 +4,5 @@
4
4
  import * as Chrt from "../index.mjs";
5
5
  export interface OrgMembersAndDrivers {
6
6
  org_member: Chrt.OrgMemberDetails;
7
- driver?: Chrt.Driver1;
7
+ driver?: Chrt.Driver1 | null;
8
8
  }
@@ -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
- handle: string;
9
- company_name?: string;
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,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -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
+ };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export const PayoutStatusEnum = {
5
+ Created: "created",
6
+ ReadyForReview: "ready_for_review",
7
+ Completed: "completed",
8
+ Cancelled: "cancelled",
9
+ };
@@ -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.Feature;
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.Feature;
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
  }