@chrt-inc/typescript-sdk 0.0.187 → 0.0.195

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 (313) hide show
  1. package/README.md +390 -0
  2. package/dist/cjs/Client.d.ts +12 -3
  3. package/dist/cjs/Client.js +44 -29
  4. package/dist/cjs/api/resources/courierPayDriverLineItemGroup/client/Client.d.ts +1 -1
  5. package/dist/cjs/api/resources/courierPayDriverLineItemGroup/resources/addLineItems/client/Client.d.ts +1 -1
  6. package/dist/cjs/api/resources/courierPayDriverLineItemGroup/resources/addLineItems/client/Client.js +1 -1
  7. package/dist/cjs/api/resources/courierPayDriverLineItemGroup/resources/addLineItems/client/requests/CourierPayDriverLineItemGroupAddLineItemsReq.d.ts +2 -2
  8. package/dist/cjs/api/resources/courierPayDriverLineItemGroup/resources/removeLineItems/client/Client.d.ts +1 -6
  9. package/dist/cjs/api/resources/courierPayDriverLineItemGroup/resources/removeLineItems/client/Client.js +1 -6
  10. package/dist/cjs/api/resources/courierPayDriverLineItemGroup/resources/removeLineItems/client/requests/CourierPayDriverLineItemGroupRemoveLineItemsReq.d.ts +2 -9
  11. package/dist/cjs/api/resources/courierPayDriverPayouts/client/Client.d.ts +15 -1
  12. package/dist/cjs/api/resources/courierPayDriverPayouts/client/Client.js +62 -1
  13. package/dist/cjs/api/resources/courierPayDriverPayouts/client/requests/CourierPayDriverPayoutClientCreate1.d.ts +2 -2
  14. package/dist/cjs/api/resources/courierPayDriverPayouts/client/requests/CourierPayDriverPayoutClientUpdate1.d.ts +14 -0
  15. package/dist/cjs/api/resources/courierPayDriverPayouts/client/requests/index.d.ts +1 -0
  16. package/dist/cjs/api/resources/index.d.ts +7 -2
  17. package/dist/cjs/api/resources/index.js +8 -3
  18. package/dist/cjs/api/resources/milestones/resources/images/client/Client.d.ts +1 -8
  19. package/dist/cjs/api/resources/milestones/resources/images/client/Client.js +1 -7
  20. package/dist/cjs/api/resources/{offChrtShipperOrgConnectionInfo → offChrtShipperOrgInfo}/client/Client.d.ts +18 -18
  21. package/dist/cjs/api/resources/{offChrtShipperOrgConnectionInfo → offChrtShipperOrgInfo}/client/Client.js +23 -29
  22. package/dist/cjs/api/resources/{offChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientCreate1.d.ts → offChrtShipperOrgInfo/client/requests/OffChrtShipperOrgInfoClientCreate1.d.ts} +2 -1
  23. package/dist/cjs/api/resources/{offChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientUpdate1.d.ts → offChrtShipperOrgInfo/client/requests/OffChrtShipperOrgInfoClientUpdate1.d.ts} +1 -1
  24. package/dist/cjs/api/resources/offChrtShipperOrgInfo/client/requests/index.d.ts +2 -0
  25. package/dist/cjs/api/resources/orders/client/requests/CreateOrderReq.d.ts +1 -1
  26. package/dist/cjs/api/resources/payments/client/Client.d.ts +19 -25
  27. package/dist/cjs/api/resources/payments/client/Client.js +58 -72
  28. package/dist/cjs/api/resources/payments/client/requests/GenerateInvoiceReq.d.ts +14 -0
  29. package/dist/cjs/api/resources/payments/client/requests/index.d.ts +1 -2
  30. package/dist/cjs/api/resources/shipperContactInfo/client/Client.d.ts +4 -4
  31. package/dist/cjs/api/resources/shipperContactInfo/client/Client.js +7 -7
  32. package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/client/Client.d.ts +96 -0
  33. package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/client/Client.js +321 -0
  34. package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/client/index.d.ts +2 -0
  35. package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/client/index.js +17 -0
  36. package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/client/requests/ShipperPayCourierLineItemGroupCreateReq.d.ts +28 -0
  37. package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/client/requests/ShipperPayCourierLineItemGroupPreviewReq.d.ts +28 -0
  38. package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/client/requests/index.d.ts +2 -0
  39. package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/client/requests/index.js +2 -0
  40. package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/index.d.ts +2 -0
  41. package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/index.js +18 -0
  42. package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/resources/addLineItems/client/Client.d.ts +53 -0
  43. package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/resources/addLineItems/client/Client.js +136 -0
  44. package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/resources/addLineItems/client/index.d.ts +2 -0
  45. package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/resources/addLineItems/client/index.js +17 -0
  46. package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/resources/addLineItems/client/requests/ShipperPayCourierLineItemGroupAddLineItemsReq.d.ts +19 -0
  47. package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/resources/addLineItems/client/requests/index.d.ts +1 -0
  48. package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/resources/addLineItems/client/requests/index.js +2 -0
  49. package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/resources/addLineItems/index.d.ts +1 -0
  50. package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/resources/addLineItems/index.js +17 -0
  51. package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/resources/index.d.ts +4 -0
  52. package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/resources/index.js +43 -0
  53. package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/resources/removeLineItems/client/Client.d.ts +48 -0
  54. package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/resources/removeLineItems/client/Client.js +131 -0
  55. package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/resources/removeLineItems/client/index.d.ts +2 -0
  56. package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/resources/removeLineItems/client/index.js +17 -0
  57. package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/resources/removeLineItems/client/requests/ShipperPayCourierLineItemGroupRemoveLineItemsReq.d.ts +12 -0
  58. package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/resources/removeLineItems/client/requests/index.d.ts +1 -0
  59. package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/resources/removeLineItems/client/requests/index.js +2 -0
  60. package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/resources/removeLineItems/index.d.ts +1 -0
  61. package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/resources/removeLineItems/index.js +17 -0
  62. package/dist/cjs/api/resources/shipperPayCourierPayments/client/Client.d.ts +98 -0
  63. package/dist/cjs/api/resources/shipperPayCourierPayments/client/Client.js +361 -0
  64. package/dist/cjs/api/resources/shipperPayCourierPayments/client/index.js +2 -0
  65. package/dist/cjs/api/resources/shipperPayCourierPayments/index.d.ts +1 -0
  66. package/dist/cjs/api/resources/shipperPayCourierPayments/index.js +17 -0
  67. package/dist/cjs/api/resources/shipperPayCourierRateSheets/client/Client.d.ts +110 -0
  68. package/dist/cjs/api/resources/shipperPayCourierRateSheets/client/Client.js +367 -0
  69. package/dist/cjs/api/resources/shipperPayCourierRateSheets/client/index.d.ts +2 -0
  70. package/dist/cjs/api/resources/shipperPayCourierRateSheets/client/index.js +17 -0
  71. package/dist/cjs/api/resources/shipperPayCourierRateSheets/client/requests/ShipperPayCourierRateSheetClientCreate1.d.ts +49 -0
  72. package/dist/cjs/api/resources/shipperPayCourierRateSheets/client/requests/ShipperPayCourierRateSheetClientUpdate1.d.ts +31 -0
  73. package/dist/cjs/api/resources/shipperPayCourierRateSheets/client/requests/index.d.ts +2 -0
  74. package/dist/cjs/api/resources/shipperPayCourierRateSheets/client/requests/index.js +2 -0
  75. package/dist/cjs/api/resources/shipperPayCourierRateSheets/index.d.ts +1 -0
  76. package/dist/cjs/api/resources/shipperPayCourierRateSheets/index.js +17 -0
  77. package/dist/cjs/api/types/CourierPayDriverLineItemGroup1.d.ts +2 -1
  78. package/dist/cjs/api/types/CourierPayDriverLineItemGroupPreviewRes.d.ts +14 -0
  79. package/dist/cjs/api/types/CourierPayDriverLineItemGroupPreviewRes.js +5 -0
  80. package/dist/cjs/api/types/CourierPayDriverPayout1.d.ts +21 -0
  81. package/dist/cjs/api/types/CourierPayDriverPayout1.js +5 -0
  82. package/dist/cjs/api/types/CreateShipperPayCourierPaymentReq.d.ts +9 -0
  83. package/dist/cjs/api/types/CreateShipperPayCourierPaymentReq.js +5 -0
  84. package/dist/cjs/api/types/GenerateInvoiceRes.d.ts +9 -0
  85. package/dist/cjs/api/types/GenerateInvoiceRes.js +5 -0
  86. package/dist/cjs/api/types/GetShipperPayCourierPaymentsForShipperRes.d.ts +10 -0
  87. package/dist/cjs/api/types/GetShipperPayCourierPaymentsForShipperRes.js +5 -0
  88. package/dist/cjs/api/types/GetShipperPayCourierPaymentsRes.d.ts +10 -0
  89. package/dist/cjs/api/types/GetShipperPayCourierPaymentsRes.js +5 -0
  90. package/dist/cjs/api/types/LineItem1.d.ts +3 -1
  91. package/dist/cjs/api/types/LineItemClientCreate1.d.ts +11 -0
  92. package/dist/cjs/api/types/LineItemClientCreate1.js +5 -0
  93. package/dist/cjs/api/types/Milestone1.d.ts +1 -1
  94. package/dist/cjs/api/types/{OffChrtShipperOrgConnectionInfo1.d.ts → OffChrtShipperOrgInfo1.d.ts} +2 -1
  95. package/dist/cjs/api/types/OffChrtShipperOrgInfo1.js +5 -0
  96. package/dist/cjs/api/types/Order1.d.ts +1 -3
  97. package/dist/cjs/api/types/OrgPublicData2.d.ts +5 -1
  98. package/dist/cjs/api/types/PaymentPreviewResponse.d.ts +13 -0
  99. package/dist/cjs/api/types/PaymentPreviewResponse.js +5 -0
  100. package/dist/cjs/api/types/PaymentStatusEnum.d.ts +11 -0
  101. package/dist/cjs/api/types/PaymentStatusEnum.js +13 -0
  102. package/dist/cjs/api/types/PayoutStatusEnum.d.ts +10 -0
  103. package/dist/cjs/api/types/PayoutStatusEnum.js +12 -0
  104. package/dist/cjs/api/types/ShipperContactInfo1.d.ts +1 -1
  105. package/dist/cjs/api/types/ShipperContactInfoClientCreate1.d.ts +1 -1
  106. package/dist/cjs/api/types/ShipperPayCourierLineItemGroup1.d.ts +17 -0
  107. package/dist/cjs/api/types/ShipperPayCourierLineItemGroup1.js +5 -0
  108. package/dist/cjs/api/types/ShipperPayCourierLineItemGroupServerCreate1.d.ts +16 -0
  109. package/dist/cjs/api/types/ShipperPayCourierLineItemGroupServerCreate1.js +5 -0
  110. package/dist/cjs/api/types/ShipperPayCourierPayment1.d.ts +23 -0
  111. package/dist/cjs/api/types/ShipperPayCourierPayment1.js +5 -0
  112. package/dist/cjs/api/types/ShipperPayCourierRateSheet1.d.ts +33 -0
  113. package/dist/cjs/api/types/ShipperPayCourierRateSheet1.js +5 -0
  114. package/dist/cjs/api/types/StripeConnectAccountEvent.d.ts +11 -0
  115. package/dist/cjs/api/types/StripeConnectAccountEvent.js +5 -0
  116. package/dist/cjs/api/types/StripeConnectAccountEventEnum.d.ts +8 -0
  117. package/dist/cjs/api/types/StripeConnectAccountEventEnum.js +10 -0
  118. package/dist/cjs/api/types/Task1.d.ts +0 -2
  119. package/dist/cjs/api/types/TaskGroup1.d.ts +0 -4
  120. package/dist/cjs/api/types/UserPublicData6.d.ts +0 -1
  121. package/dist/cjs/api/types/index.d.ts +17 -10
  122. package/dist/cjs/api/types/index.js +17 -10
  123. package/dist/cjs/version.d.ts +1 -1
  124. package/dist/cjs/version.js +1 -1
  125. package/dist/esm/Client.d.mts +12 -3
  126. package/dist/esm/Client.mjs +20 -5
  127. package/dist/esm/api/resources/courierPayDriverLineItemGroup/client/Client.d.mts +1 -1
  128. package/dist/esm/api/resources/courierPayDriverLineItemGroup/resources/addLineItems/client/Client.d.mts +1 -1
  129. package/dist/esm/api/resources/courierPayDriverLineItemGroup/resources/addLineItems/client/Client.mjs +1 -1
  130. package/dist/esm/api/resources/courierPayDriverLineItemGroup/resources/addLineItems/client/requests/CourierPayDriverLineItemGroupAddLineItemsReq.d.mts +2 -2
  131. package/dist/esm/api/resources/courierPayDriverLineItemGroup/resources/removeLineItems/client/Client.d.mts +1 -6
  132. package/dist/esm/api/resources/courierPayDriverLineItemGroup/resources/removeLineItems/client/Client.mjs +1 -6
  133. package/dist/esm/api/resources/courierPayDriverLineItemGroup/resources/removeLineItems/client/requests/CourierPayDriverLineItemGroupRemoveLineItemsReq.d.mts +2 -9
  134. package/dist/esm/api/resources/courierPayDriverPayouts/client/Client.d.mts +15 -1
  135. package/dist/esm/api/resources/courierPayDriverPayouts/client/Client.mjs +62 -1
  136. package/dist/esm/api/resources/courierPayDriverPayouts/client/requests/CourierPayDriverPayoutClientCreate1.d.mts +2 -2
  137. package/dist/esm/api/resources/courierPayDriverPayouts/client/requests/CourierPayDriverPayoutClientUpdate1.d.mts +14 -0
  138. package/dist/esm/api/resources/courierPayDriverPayouts/client/requests/index.d.mts +1 -0
  139. package/dist/esm/api/resources/index.d.mts +7 -2
  140. package/dist/esm/api/resources/index.mjs +7 -2
  141. package/dist/esm/api/resources/milestones/resources/images/client/Client.d.mts +1 -8
  142. package/dist/esm/api/resources/milestones/resources/images/client/Client.mjs +1 -7
  143. package/dist/esm/api/resources/{offChrtShipperOrgConnectionInfo → offChrtShipperOrgInfo}/client/Client.d.mts +18 -18
  144. package/dist/esm/api/resources/{offChrtShipperOrgConnectionInfo → offChrtShipperOrgInfo}/client/Client.mjs +21 -27
  145. package/dist/esm/api/resources/{offChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientCreate1.d.mts → offChrtShipperOrgInfo/client/requests/OffChrtShipperOrgInfoClientCreate1.d.mts} +2 -1
  146. package/dist/esm/api/resources/{offChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientUpdate1.d.mts → offChrtShipperOrgInfo/client/requests/OffChrtShipperOrgInfoClientUpdate1.d.mts} +1 -1
  147. package/dist/esm/api/resources/offChrtShipperOrgInfo/client/requests/index.d.mts +2 -0
  148. package/dist/esm/api/resources/offChrtShipperOrgInfo/client/requests/index.mjs +1 -0
  149. package/dist/esm/api/resources/orders/client/requests/CreateOrderReq.d.mts +1 -1
  150. package/dist/esm/api/resources/payments/client/Client.d.mts +19 -25
  151. package/dist/esm/api/resources/payments/client/Client.mjs +58 -72
  152. package/dist/esm/api/resources/payments/client/requests/GenerateInvoiceReq.d.mts +14 -0
  153. package/dist/esm/api/resources/payments/client/requests/index.d.mts +1 -2
  154. package/dist/esm/api/resources/shipperContactInfo/client/Client.d.mts +4 -4
  155. package/dist/esm/api/resources/shipperContactInfo/client/Client.mjs +7 -7
  156. package/dist/esm/api/resources/shipperPayCourierLineItemGroup/client/Client.d.mts +96 -0
  157. package/dist/esm/api/resources/shipperPayCourierLineItemGroup/client/Client.mjs +284 -0
  158. package/dist/esm/api/resources/shipperPayCourierLineItemGroup/client/index.d.mts +2 -0
  159. package/dist/esm/api/resources/shipperPayCourierLineItemGroup/client/index.mjs +1 -0
  160. package/dist/esm/api/resources/shipperPayCourierLineItemGroup/client/requests/ShipperPayCourierLineItemGroupCreateReq.d.mts +28 -0
  161. package/dist/esm/api/resources/shipperPayCourierLineItemGroup/client/requests/ShipperPayCourierLineItemGroupPreviewReq.d.mts +28 -0
  162. package/dist/esm/api/resources/shipperPayCourierLineItemGroup/client/requests/index.d.mts +2 -0
  163. package/dist/esm/api/resources/shipperPayCourierLineItemGroup/client/requests/index.mjs +1 -0
  164. package/dist/esm/api/resources/shipperPayCourierLineItemGroup/index.d.mts +2 -0
  165. package/dist/esm/api/resources/shipperPayCourierLineItemGroup/index.mjs +2 -0
  166. package/dist/esm/api/resources/shipperPayCourierLineItemGroup/resources/addLineItems/client/Client.d.mts +53 -0
  167. package/dist/esm/api/resources/shipperPayCourierLineItemGroup/resources/addLineItems/client/Client.mjs +99 -0
  168. package/dist/esm/api/resources/shipperPayCourierLineItemGroup/resources/addLineItems/client/index.d.mts +2 -0
  169. package/dist/esm/api/resources/shipperPayCourierLineItemGroup/resources/addLineItems/client/index.mjs +1 -0
  170. package/dist/esm/api/resources/shipperPayCourierLineItemGroup/resources/addLineItems/client/requests/ShipperPayCourierLineItemGroupAddLineItemsReq.d.mts +19 -0
  171. package/dist/esm/api/resources/shipperPayCourierLineItemGroup/resources/addLineItems/client/requests/index.d.mts +1 -0
  172. package/dist/esm/api/resources/shipperPayCourierLineItemGroup/resources/addLineItems/client/requests/index.mjs +1 -0
  173. package/dist/esm/api/resources/shipperPayCourierLineItemGroup/resources/addLineItems/index.d.mts +1 -0
  174. package/dist/esm/api/resources/shipperPayCourierLineItemGroup/resources/addLineItems/index.mjs +1 -0
  175. package/dist/esm/api/resources/shipperPayCourierLineItemGroup/resources/index.d.mts +4 -0
  176. package/dist/esm/api/resources/shipperPayCourierLineItemGroup/resources/index.mjs +4 -0
  177. package/dist/esm/api/resources/shipperPayCourierLineItemGroup/resources/removeLineItems/client/Client.d.mts +48 -0
  178. package/dist/esm/api/resources/shipperPayCourierLineItemGroup/resources/removeLineItems/client/Client.mjs +94 -0
  179. package/dist/esm/api/resources/shipperPayCourierLineItemGroup/resources/removeLineItems/client/index.d.mts +2 -0
  180. package/dist/esm/api/resources/shipperPayCourierLineItemGroup/resources/removeLineItems/client/index.mjs +1 -0
  181. package/dist/esm/api/resources/shipperPayCourierLineItemGroup/resources/removeLineItems/client/requests/ShipperPayCourierLineItemGroupRemoveLineItemsReq.d.mts +12 -0
  182. package/dist/esm/api/resources/shipperPayCourierLineItemGroup/resources/removeLineItems/client/requests/index.d.mts +1 -0
  183. package/dist/esm/api/resources/shipperPayCourierLineItemGroup/resources/removeLineItems/client/requests/index.mjs +1 -0
  184. package/dist/esm/api/resources/shipperPayCourierLineItemGroup/resources/removeLineItems/index.d.mts +1 -0
  185. package/dist/esm/api/resources/shipperPayCourierLineItemGroup/resources/removeLineItems/index.mjs +1 -0
  186. package/dist/esm/api/resources/shipperPayCourierPayments/client/Client.d.mts +98 -0
  187. package/dist/esm/api/resources/shipperPayCourierPayments/client/Client.mjs +324 -0
  188. package/dist/esm/api/resources/shipperPayCourierPayments/client/index.d.mts +1 -0
  189. package/dist/esm/api/resources/shipperPayCourierPayments/client/index.mjs +1 -0
  190. package/dist/esm/api/resources/shipperPayCourierPayments/index.d.mts +1 -0
  191. package/dist/esm/api/resources/shipperPayCourierPayments/index.mjs +1 -0
  192. package/dist/esm/api/resources/shipperPayCourierRateSheets/client/Client.d.mts +110 -0
  193. package/dist/esm/api/resources/shipperPayCourierRateSheets/client/Client.mjs +330 -0
  194. package/dist/esm/api/resources/shipperPayCourierRateSheets/client/index.d.mts +2 -0
  195. package/dist/esm/api/resources/shipperPayCourierRateSheets/client/index.mjs +1 -0
  196. package/dist/esm/api/resources/shipperPayCourierRateSheets/client/requests/ShipperPayCourierRateSheetClientCreate1.d.mts +49 -0
  197. package/dist/esm/api/resources/shipperPayCourierRateSheets/client/requests/ShipperPayCourierRateSheetClientUpdate1.d.mts +31 -0
  198. package/dist/esm/api/resources/shipperPayCourierRateSheets/client/requests/index.d.mts +2 -0
  199. package/dist/esm/api/resources/shipperPayCourierRateSheets/client/requests/index.mjs +1 -0
  200. package/dist/esm/api/resources/shipperPayCourierRateSheets/index.d.mts +1 -0
  201. package/dist/esm/api/resources/shipperPayCourierRateSheets/index.mjs +1 -0
  202. package/dist/esm/api/types/CourierPayDriverLineItemGroup1.d.mts +2 -1
  203. package/dist/esm/api/types/CourierPayDriverLineItemGroupPreviewRes.d.mts +14 -0
  204. package/dist/esm/api/types/CourierPayDriverLineItemGroupPreviewRes.mjs +4 -0
  205. package/dist/esm/api/types/CourierPayDriverPayout1.d.mts +21 -0
  206. package/dist/esm/api/types/CourierPayDriverPayout1.mjs +4 -0
  207. package/dist/esm/api/types/CreateShipperPayCourierPaymentReq.d.mts +9 -0
  208. package/dist/esm/api/types/CreateShipperPayCourierPaymentReq.mjs +4 -0
  209. package/dist/esm/api/types/GenerateInvoiceRes.d.mts +9 -0
  210. package/dist/esm/api/types/GenerateInvoiceRes.mjs +4 -0
  211. package/dist/esm/api/types/GetShipperPayCourierPaymentsForShipperRes.d.mts +10 -0
  212. package/dist/esm/api/types/GetShipperPayCourierPaymentsForShipperRes.mjs +4 -0
  213. package/dist/esm/api/types/GetShipperPayCourierPaymentsRes.d.mts +10 -0
  214. package/dist/esm/api/types/GetShipperPayCourierPaymentsRes.mjs +4 -0
  215. package/dist/esm/api/types/LineItem1.d.mts +3 -1
  216. package/dist/esm/api/types/LineItemClientCreate1.d.mts +11 -0
  217. package/dist/esm/api/types/LineItemClientCreate1.mjs +4 -0
  218. package/dist/esm/api/types/Milestone1.d.mts +1 -1
  219. package/dist/esm/api/types/{OffChrtShipperOrgConnectionInfo1.d.mts → OffChrtShipperOrgInfo1.d.mts} +2 -1
  220. package/dist/esm/api/types/OffChrtShipperOrgInfo1.mjs +4 -0
  221. package/dist/esm/api/types/Order1.d.mts +1 -3
  222. package/dist/esm/api/types/OrgPublicData2.d.mts +5 -1
  223. package/dist/esm/api/types/PaymentPreviewResponse.d.mts +13 -0
  224. package/dist/esm/api/types/PaymentPreviewResponse.mjs +4 -0
  225. package/dist/esm/api/types/PaymentStatusEnum.d.mts +11 -0
  226. package/dist/esm/api/types/PaymentStatusEnum.mjs +10 -0
  227. package/dist/esm/api/types/PayoutStatusEnum.d.mts +10 -0
  228. package/dist/esm/api/types/PayoutStatusEnum.mjs +9 -0
  229. package/dist/esm/api/types/ShipperContactInfo1.d.mts +1 -1
  230. package/dist/esm/api/types/ShipperContactInfoClientCreate1.d.mts +1 -1
  231. package/dist/esm/api/types/ShipperPayCourierLineItemGroup1.d.mts +17 -0
  232. package/dist/esm/api/types/ShipperPayCourierLineItemGroup1.mjs +4 -0
  233. package/dist/esm/api/types/ShipperPayCourierLineItemGroupServerCreate1.d.mts +16 -0
  234. package/dist/esm/api/types/ShipperPayCourierLineItemGroupServerCreate1.mjs +4 -0
  235. package/dist/esm/api/types/ShipperPayCourierPayment1.d.mts +23 -0
  236. package/dist/esm/api/types/ShipperPayCourierPayment1.mjs +4 -0
  237. package/dist/esm/api/types/ShipperPayCourierRateSheet1.d.mts +33 -0
  238. package/dist/esm/api/types/ShipperPayCourierRateSheet1.mjs +4 -0
  239. package/dist/esm/api/types/StripeConnectAccountEvent.d.mts +11 -0
  240. package/dist/esm/api/types/StripeConnectAccountEvent.mjs +4 -0
  241. package/dist/esm/api/types/StripeConnectAccountEventEnum.d.mts +8 -0
  242. package/dist/esm/api/types/StripeConnectAccountEventEnum.mjs +7 -0
  243. package/dist/esm/api/types/Task1.d.mts +0 -2
  244. package/dist/esm/api/types/TaskGroup1.d.mts +0 -4
  245. package/dist/esm/api/types/UserPublicData6.d.mts +0 -1
  246. package/dist/esm/api/types/index.d.mts +17 -10
  247. package/dist/esm/api/types/index.mjs +17 -10
  248. package/dist/esm/version.d.mts +1 -1
  249. package/dist/esm/version.mjs +1 -1
  250. package/package.json +1 -1
  251. package/reference.md +1201 -149
  252. package/dist/cjs/api/resources/offChrtShipperOrgConnectionInfo/client/requests/index.d.ts +0 -2
  253. package/dist/cjs/api/resources/payments/client/requests/CreateConnectAccountLinkReq.d.ts +0 -12
  254. package/dist/cjs/api/resources/payments/client/requests/CreateDirectChargeReq.d.ts +0 -17
  255. package/dist/cjs/api/types/CourierPayDriverLineItemGroupClientCreate1.d.ts +0 -10
  256. package/dist/cjs/api/types/CreateDirectChargeRes.d.ts +0 -8
  257. package/dist/cjs/api/types/Incident1.d.ts +0 -7
  258. package/dist/cjs/api/types/IncidentEnum1.d.ts +0 -12
  259. package/dist/cjs/api/types/IncidentEnum1.js +0 -14
  260. package/dist/cjs/api/types/Insurance1.d.ts +0 -7
  261. package/dist/cjs/api/types/PayablesInvoice1.d.ts +0 -34
  262. package/dist/cjs/api/types/PayablesInvoice1.js +0 -18
  263. package/dist/cjs/api/types/ReceivablesInvoice1.d.ts +0 -34
  264. package/dist/cjs/api/types/ReceivablesInvoice1.js +0 -18
  265. package/dist/cjs/api/types/ShipperCourierConnection1.d.ts +0 -13
  266. package/dist/cjs/api/types/StripeConnectInvoice1.d.ts +0 -32
  267. package/dist/cjs/api/types/StripeConnectInvoice1.js +0 -18
  268. package/dist/esm/api/resources/offChrtShipperOrgConnectionInfo/client/requests/index.d.mts +0 -2
  269. package/dist/esm/api/resources/payments/client/requests/CreateConnectAccountLinkReq.d.mts +0 -12
  270. package/dist/esm/api/resources/payments/client/requests/CreateDirectChargeReq.d.mts +0 -17
  271. package/dist/esm/api/types/CourierPayDriverLineItemGroupClientCreate1.d.mts +0 -10
  272. package/dist/esm/api/types/CreateDirectChargeRes.d.mts +0 -8
  273. package/dist/esm/api/types/Incident1.d.mts +0 -7
  274. package/dist/esm/api/types/IncidentEnum1.d.mts +0 -12
  275. package/dist/esm/api/types/IncidentEnum1.mjs +0 -11
  276. package/dist/esm/api/types/Insurance1.d.mts +0 -7
  277. package/dist/esm/api/types/PayablesInvoice1.d.mts +0 -34
  278. package/dist/esm/api/types/PayablesInvoice1.mjs +0 -15
  279. package/dist/esm/api/types/ReceivablesInvoice1.d.mts +0 -34
  280. package/dist/esm/api/types/ReceivablesInvoice1.mjs +0 -15
  281. package/dist/esm/api/types/ShipperCourierConnection1.d.mts +0 -13
  282. package/dist/esm/api/types/StripeConnectInvoice1.d.mts +0 -32
  283. package/dist/esm/api/types/StripeConnectInvoice1.mjs +0 -15
  284. /package/dist/cjs/api/resources/{offChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientCreate1.js → courierPayDriverPayouts/client/requests/CourierPayDriverPayoutClientUpdate1.js} +0 -0
  285. /package/dist/cjs/api/resources/{offChrtShipperOrgConnectionInfo → offChrtShipperOrgInfo}/client/index.d.ts +0 -0
  286. /package/dist/cjs/api/resources/{offChrtShipperOrgConnectionInfo → offChrtShipperOrgInfo}/client/index.js +0 -0
  287. /package/dist/cjs/api/resources/{offChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientUpdate1.js → offChrtShipperOrgInfo/client/requests/OffChrtShipperOrgInfoClientCreate1.js} +0 -0
  288. /package/dist/cjs/api/resources/{payments/client/requests/CreateConnectAccountLinkReq.js → offChrtShipperOrgInfo/client/requests/OffChrtShipperOrgInfoClientUpdate1.js} +0 -0
  289. /package/dist/cjs/api/resources/{offChrtShipperOrgConnectionInfo → offChrtShipperOrgInfo}/client/requests/index.js +0 -0
  290. /package/dist/cjs/api/resources/{offChrtShipperOrgConnectionInfo → offChrtShipperOrgInfo}/index.d.ts +0 -0
  291. /package/dist/cjs/api/resources/{offChrtShipperOrgConnectionInfo → offChrtShipperOrgInfo}/index.js +0 -0
  292. /package/dist/cjs/api/resources/payments/client/requests/{CreateDirectChargeReq.js → GenerateInvoiceReq.js} +0 -0
  293. /package/dist/cjs/api/{types/CourierPayDriverLineItemGroupClientCreate1.js → resources/shipperPayCourierLineItemGroup/client/requests/ShipperPayCourierLineItemGroupCreateReq.js} +0 -0
  294. /package/dist/cjs/api/{types/CreateDirectChargeRes.js → resources/shipperPayCourierLineItemGroup/client/requests/ShipperPayCourierLineItemGroupPreviewReq.js} +0 -0
  295. /package/dist/cjs/api/{types/Incident1.js → resources/shipperPayCourierLineItemGroup/resources/addLineItems/client/requests/ShipperPayCourierLineItemGroupAddLineItemsReq.js} +0 -0
  296. /package/dist/cjs/api/{types/Insurance1.js → resources/shipperPayCourierLineItemGroup/resources/removeLineItems/client/requests/ShipperPayCourierLineItemGroupRemoveLineItemsReq.js} +0 -0
  297. /package/dist/{esm/api/resources/offChrtShipperOrgConnectionInfo/client/requests/index.mjs → cjs/api/resources/shipperPayCourierPayments/client/index.d.ts} +0 -0
  298. /package/dist/cjs/api/{types/OffChrtShipperOrgConnectionInfo1.js → resources/shipperPayCourierRateSheets/client/requests/ShipperPayCourierRateSheetClientCreate1.js} +0 -0
  299. /package/dist/cjs/api/{types/ShipperCourierConnection1.js → resources/shipperPayCourierRateSheets/client/requests/ShipperPayCourierRateSheetClientUpdate1.js} +0 -0
  300. /package/dist/esm/api/resources/{offChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientCreate1.mjs → courierPayDriverPayouts/client/requests/CourierPayDriverPayoutClientUpdate1.mjs} +0 -0
  301. /package/dist/esm/api/resources/{offChrtShipperOrgConnectionInfo → offChrtShipperOrgInfo}/client/index.d.mts +0 -0
  302. /package/dist/esm/api/resources/{offChrtShipperOrgConnectionInfo → offChrtShipperOrgInfo}/client/index.mjs +0 -0
  303. /package/dist/esm/api/resources/{offChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientUpdate1.mjs → offChrtShipperOrgInfo/client/requests/OffChrtShipperOrgInfoClientCreate1.mjs} +0 -0
  304. /package/dist/esm/api/resources/{payments/client/requests/CreateConnectAccountLinkReq.mjs → offChrtShipperOrgInfo/client/requests/OffChrtShipperOrgInfoClientUpdate1.mjs} +0 -0
  305. /package/dist/esm/api/resources/{offChrtShipperOrgConnectionInfo → offChrtShipperOrgInfo}/index.d.mts +0 -0
  306. /package/dist/esm/api/resources/{offChrtShipperOrgConnectionInfo → offChrtShipperOrgInfo}/index.mjs +0 -0
  307. /package/dist/esm/api/resources/payments/client/requests/{CreateDirectChargeReq.mjs → GenerateInvoiceReq.mjs} +0 -0
  308. /package/dist/esm/api/{types/CourierPayDriverLineItemGroupClientCreate1.mjs → resources/shipperPayCourierLineItemGroup/client/requests/ShipperPayCourierLineItemGroupCreateReq.mjs} +0 -0
  309. /package/dist/esm/api/{types/CreateDirectChargeRes.mjs → resources/shipperPayCourierLineItemGroup/client/requests/ShipperPayCourierLineItemGroupPreviewReq.mjs} +0 -0
  310. /package/dist/esm/api/{types/Incident1.mjs → resources/shipperPayCourierLineItemGroup/resources/addLineItems/client/requests/ShipperPayCourierLineItemGroupAddLineItemsReq.mjs} +0 -0
  311. /package/dist/esm/api/{types/Insurance1.mjs → resources/shipperPayCourierLineItemGroup/resources/removeLineItems/client/requests/ShipperPayCourierLineItemGroupRemoveLineItemsReq.mjs} +0 -0
  312. /package/dist/esm/api/{types/OffChrtShipperOrgConnectionInfo1.mjs → resources/shipperPayCourierRateSheets/client/requests/ShipperPayCourierRateSheetClientCreate1.mjs} +0 -0
  313. /package/dist/esm/api/{types/ShipperCourierConnection1.mjs → resources/shipperPayCourierRateSheets/client/requests/ShipperPayCourierRateSheetClientUpdate1.mjs} +0 -0
@@ -6,11 +6,14 @@ import { mergeHeaders } from "./core/headers.mjs";
6
6
  import { Dev } from "./api/resources/dev/client/Client.mjs";
7
7
  import { Drivers } from "./api/resources/drivers/client/Client.mjs";
8
8
  import { Milestones } from "./api/resources/milestones/client/Client.mjs";
9
- import { OffChrtShipperOrgConnectionInfo } from "./api/resources/offChrtShipperOrgConnectionInfo/client/Client.mjs";
9
+ import { OffChrtShipperOrgInfo } from "./api/resources/offChrtShipperOrgInfo/client/Client.mjs";
10
10
  import { OrgProfiles } from "./api/resources/orgProfiles/client/Client.mjs";
11
11
  import { Orders } from "./api/resources/orders/client/Client.mjs";
12
12
  import { CourierPayDriverRateSheets } from "./api/resources/courierPayDriverRateSheets/client/Client.mjs";
13
+ import { ShipperPayCourierRateSheets } from "./api/resources/shipperPayCourierRateSheets/client/Client.mjs";
13
14
  import { CourierPayDriverLineItemGroup } from "./api/resources/courierPayDriverLineItemGroup/client/Client.mjs";
15
+ import { ShipperPayCourierLineItemGroup } from "./api/resources/shipperPayCourierLineItemGroup/client/Client.mjs";
16
+ import { ShipperPayCourierPayments } from "./api/resources/shipperPayCourierPayments/client/Client.mjs";
14
17
  import { CourierPayDriverPayouts } from "./api/resources/courierPayDriverPayouts/client/Client.mjs";
15
18
  import { Connections } from "./api/resources/connections/client/Client.mjs";
16
19
  import { TaskGroups } from "./api/resources/taskGroups/client/Client.mjs";
@@ -27,8 +30,8 @@ export class ChrtClient {
27
30
  this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
28
31
  "X-Fern-Language": "JavaScript",
29
32
  "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
30
- "X-Fern-SDK-Version": "0.0.187",
31
- "User-Agent": "@chrt-inc/typescript-sdk/0.0.187",
33
+ "X-Fern-SDK-Version": "0.0.195",
34
+ "User-Agent": "@chrt-inc/typescript-sdk/0.0.195",
32
35
  "X-Fern-Runtime": core.RUNTIME.type,
33
36
  "X-Fern-Runtime-Version": core.RUNTIME.version,
34
37
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -45,9 +48,9 @@ export class ChrtClient {
45
48
  var _a;
46
49
  return ((_a = this._milestones) !== null && _a !== void 0 ? _a : (this._milestones = new Milestones(this._options)));
47
50
  }
48
- get offChrtShipperOrgConnectionInfo() {
51
+ get offChrtShipperOrgInfo() {
49
52
  var _a;
50
- return ((_a = this._offChrtShipperOrgConnectionInfo) !== null && _a !== void 0 ? _a : (this._offChrtShipperOrgConnectionInfo = new OffChrtShipperOrgConnectionInfo(this._options)));
53
+ return ((_a = this._offChrtShipperOrgInfo) !== null && _a !== void 0 ? _a : (this._offChrtShipperOrgInfo = new OffChrtShipperOrgInfo(this._options)));
51
54
  }
52
55
  get orgProfiles() {
53
56
  var _a;
@@ -61,10 +64,22 @@ export class ChrtClient {
61
64
  var _a;
62
65
  return ((_a = this._courierPayDriverRateSheets) !== null && _a !== void 0 ? _a : (this._courierPayDriverRateSheets = new CourierPayDriverRateSheets(this._options)));
63
66
  }
67
+ get shipperPayCourierRateSheets() {
68
+ var _a;
69
+ return ((_a = this._shipperPayCourierRateSheets) !== null && _a !== void 0 ? _a : (this._shipperPayCourierRateSheets = new ShipperPayCourierRateSheets(this._options)));
70
+ }
64
71
  get courierPayDriverLineItemGroup() {
65
72
  var _a;
66
73
  return ((_a = this._courierPayDriverLineItemGroup) !== null && _a !== void 0 ? _a : (this._courierPayDriverLineItemGroup = new CourierPayDriverLineItemGroup(this._options)));
67
74
  }
75
+ get shipperPayCourierLineItemGroup() {
76
+ var _a;
77
+ return ((_a = this._shipperPayCourierLineItemGroup) !== null && _a !== void 0 ? _a : (this._shipperPayCourierLineItemGroup = new ShipperPayCourierLineItemGroup(this._options)));
78
+ }
79
+ get shipperPayCourierPayments() {
80
+ var _a;
81
+ return ((_a = this._shipperPayCourierPayments) !== null && _a !== void 0 ? _a : (this._shipperPayCourierPayments = new ShipperPayCourierPayments(this._options)));
82
+ }
68
83
  get courierPayDriverPayouts() {
69
84
  var _a;
70
85
  return ((_a = this._courierPayDriverPayouts) !== null && _a !== void 0 ? _a : (this._courierPayDriverPayouts = new CourierPayDriverPayouts(this._options)));
@@ -49,7 +49,7 @@ export declare class CourierPayDriverLineItemGroup {
49
49
  * driver_id: "driver_id"
50
50
  * })
51
51
  */
52
- preview(request: Chrt.CourierPayDriverLineItemGroupPreviewReq, requestOptions?: CourierPayDriverLineItemGroup.RequestOptions): core.HttpResponsePromise<Chrt.CourierPayDriverLineItemGroupClientCreate1>;
52
+ preview(request: Chrt.CourierPayDriverLineItemGroupPreviewReq, requestOptions?: CourierPayDriverLineItemGroup.RequestOptions): core.HttpResponsePromise<Chrt.CourierPayDriverLineItemGroupPreviewRes>;
53
53
  private __preview;
54
54
  /**
55
55
  * Retrieves a courier driver line item group by its ID.
@@ -40,7 +40,7 @@ export declare class AddLineItems {
40
40
  * @example
41
41
  * await client.courierPayDriverLineItemGroup.addLineItems.byId("id", {
42
42
  * line_items: [{
43
- * created_at: "2024-01-15T09:30:00Z",
43
+ * schema_version: 1,
44
44
  * item: "base_rate",
45
45
  * quantity: 1.1,
46
46
  * rate: 1.1
@@ -31,7 +31,7 @@ export class AddLineItems {
31
31
  * @example
32
32
  * await client.courierPayDriverLineItemGroup.addLineItems.byId("id", {
33
33
  * line_items: [{
34
- * created_at: "2024-01-15T09:30:00Z",
34
+ * schema_version: 1,
35
35
  * item: "base_rate",
36
36
  * quantity: 1.1,
37
37
  * rate: 1.1
@@ -6,7 +6,7 @@ import * as Chrt from "../../../../../../index.mjs";
6
6
  * @example
7
7
  * {
8
8
  * line_items: [{
9
- * created_at: "2024-01-15T09:30:00Z",
9
+ * schema_version: 1,
10
10
  * item: "base_rate",
11
11
  * quantity: 1.1,
12
12
  * rate: 1.1
@@ -15,5 +15,5 @@ import * as Chrt from "../../../../../../index.mjs";
15
15
  */
16
16
  export interface CourierPayDriverLineItemGroupAddLineItemsReq {
17
17
  /** Line items to add to the group */
18
- line_items: Chrt.LineItem1[];
18
+ line_items: Chrt.LineItemClientCreate1[];
19
19
  }
@@ -39,12 +39,7 @@ export declare class RemoveLineItems {
39
39
  *
40
40
  * @example
41
41
  * await client.courierPayDriverLineItemGroup.removeLineItems.byId("id", {
42
- * line_items: [{
43
- * created_at: "2024-01-15T09:30:00Z",
44
- * item: "base_rate",
45
- * quantity: 1.1,
46
- * rate: 1.1
47
- * }]
42
+ * line_item_uuid_strs: ["line_item_uuid_strs"]
48
43
  * })
49
44
  */
50
45
  byId(id: string, request: Chrt.courierPayDriverLineItemGroup.CourierPayDriverLineItemGroupRemoveLineItemsReq, requestOptions?: RemoveLineItems.RequestOptions): core.HttpResponsePromise<Chrt.CourierPayDriverLineItemGroup1>;
@@ -30,12 +30,7 @@ export class RemoveLineItems {
30
30
  *
31
31
  * @example
32
32
  * await client.courierPayDriverLineItemGroup.removeLineItems.byId("id", {
33
- * line_items: [{
34
- * created_at: "2024-01-15T09:30:00Z",
35
- * item: "base_rate",
36
- * quantity: 1.1,
37
- * rate: 1.1
38
- * }]
33
+ * line_item_uuid_strs: ["line_item_uuid_strs"]
39
34
  * })
40
35
  */
41
36
  byId(id, request, requestOptions) {
@@ -1,19 +1,12 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Chrt from "../../../../../../index.mjs";
5
4
  /**
6
5
  * @example
7
6
  * {
8
- * line_items: [{
9
- * created_at: "2024-01-15T09:30:00Z",
10
- * item: "base_rate",
11
- * quantity: 1.1,
12
- * rate: 1.1
13
- * }]
7
+ * line_item_uuid_strs: ["line_item_uuid_strs"]
14
8
  * }
15
9
  */
16
10
  export interface CourierPayDriverLineItemGroupRemoveLineItemsReq {
17
- /** Exact line items to remove (must match exactly) */
18
- line_items: Chrt.LineItem1[];
11
+ line_item_uuid_strs: string[];
19
12
  }
@@ -65,10 +65,24 @@ export declare class CourierPayDriverPayouts {
65
65
  * @example
66
66
  * await client.courierPayDriverPayouts.create({
67
67
  * schema_version: 1,
68
- * line_item_group_ids: ["line_item_group_ids"]
68
+ * courier_pay_driver_line_item_group_ids: ["courier_pay_driver_line_item_group_ids"]
69
69
  * })
70
70
  */
71
71
  create(request: Chrt.CourierPayDriverPayoutClientCreate1, requestOptions?: CourierPayDriverPayouts.RequestOptions): core.HttpResponsePromise<string>;
72
72
  private __create;
73
+ /**
74
+ * Updates the status of a courier driver payout with proper validation.
75
+ *
76
+ * @param {string} id
77
+ * @param {Chrt.CourierPayDriverPayoutClientUpdate1} request
78
+ * @param {CourierPayDriverPayouts.RequestOptions} requestOptions - Request-specific configuration.
79
+ *
80
+ * @throws {@link Chrt.UnprocessableEntityError}
81
+ *
82
+ * @example
83
+ * await client.courierPayDriverPayouts.updateStatus("id")
84
+ */
85
+ updateStatus(id: string, request?: Chrt.CourierPayDriverPayoutClientUpdate1, requestOptions?: CourierPayDriverPayouts.RequestOptions): core.HttpResponsePromise<Chrt.CourierPayDriverPayout1>;
86
+ private __updateStatus;
73
87
  protected _getAuthorizationHeader(): Promise<string | undefined>;
74
88
  }
@@ -144,7 +144,7 @@ export class CourierPayDriverPayouts {
144
144
  * @example
145
145
  * await client.courierPayDriverPayouts.create({
146
146
  * schema_version: 1,
147
- * line_item_group_ids: ["line_item_group_ids"]
147
+ * courier_pay_driver_line_item_group_ids: ["courier_pay_driver_line_item_group_ids"]
148
148
  * })
149
149
  */
150
150
  create(request, requestOptions) {
@@ -196,6 +196,67 @@ export class CourierPayDriverPayouts {
196
196
  }
197
197
  });
198
198
  }
199
+ /**
200
+ * Updates the status of a courier driver payout with proper validation.
201
+ *
202
+ * @param {string} id
203
+ * @param {Chrt.CourierPayDriverPayoutClientUpdate1} request
204
+ * @param {CourierPayDriverPayouts.RequestOptions} requestOptions - Request-specific configuration.
205
+ *
206
+ * @throws {@link Chrt.UnprocessableEntityError}
207
+ *
208
+ * @example
209
+ * await client.courierPayDriverPayouts.updateStatus("id")
210
+ */
211
+ updateStatus(id, request = {}, requestOptions) {
212
+ return core.HttpResponsePromise.fromPromise(this.__updateStatus(id, request, requestOptions));
213
+ }
214
+ __updateStatus(id_1) {
215
+ return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
216
+ var _a, _b, _c, _d;
217
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
218
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, `oort/courier_pay_driver_payouts/${encodeURIComponent(id)}/status`),
219
+ method: "PATCH",
220
+ headers: mergeHeaders((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
221
+ contentType: "application/json",
222
+ requestType: "json",
223
+ body: request,
224
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
225
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
226
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
227
+ });
228
+ if (_response.ok) {
229
+ return { data: _response.body, rawResponse: _response.rawResponse };
230
+ }
231
+ if (_response.error.reason === "status-code") {
232
+ switch (_response.error.statusCode) {
233
+ case 422:
234
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
235
+ default:
236
+ throw new errors.ChrtError({
237
+ statusCode: _response.error.statusCode,
238
+ body: _response.error.body,
239
+ rawResponse: _response.rawResponse,
240
+ });
241
+ }
242
+ }
243
+ switch (_response.error.reason) {
244
+ case "non-json":
245
+ throw new errors.ChrtError({
246
+ statusCode: _response.error.statusCode,
247
+ body: _response.error.rawBody,
248
+ rawResponse: _response.rawResponse,
249
+ });
250
+ case "timeout":
251
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /oort/courier_pay_driver_payouts/{id}/status.");
252
+ case "unknown":
253
+ throw new errors.ChrtError({
254
+ message: _response.error.errorMessage,
255
+ rawResponse: _response.rawResponse,
256
+ });
257
+ }
258
+ });
259
+ }
199
260
  _getAuthorizationHeader() {
200
261
  return __awaiter(this, void 0, void 0, function* () {
201
262
  const bearer = yield core.Supplier.get(this._options.token);
@@ -5,10 +5,10 @@
5
5
  * @example
6
6
  * {
7
7
  * schema_version: 1,
8
- * line_item_group_ids: ["line_item_group_ids"]
8
+ * courier_pay_driver_line_item_group_ids: ["courier_pay_driver_line_item_group_ids"]
9
9
  * }
10
10
  */
11
11
  export interface CourierPayDriverPayoutClientCreate1 {
12
12
  schema_version: number;
13
- line_item_group_ids: string[];
13
+ courier_pay_driver_line_item_group_ids: string[];
14
14
  }
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../../../../index.mjs";
5
+ /**
6
+ * @example
7
+ * {}
8
+ */
9
+ export interface CourierPayDriverPayoutClientUpdate1 {
10
+ payout_status?: Chrt.PayoutStatusEnum | null;
11
+ payout_completed_at?: string | null;
12
+ /** Must be a string starting with `user_` */
13
+ payout_completed_by_user_id?: string | null;
14
+ }
@@ -1 +1,2 @@
1
1
  export { type CourierPayDriverPayoutClientCreate1 } from "./CourierPayDriverPayoutClientCreate1.mjs";
2
+ export { type CourierPayDriverPayoutClientUpdate1 } from "./CourierPayDriverPayoutClientUpdate1.mjs";
@@ -1,11 +1,14 @@
1
1
  export * as dev from "./dev/index.mjs";
2
2
  export * as drivers from "./drivers/index.mjs";
3
3
  export * as milestones from "./milestones/index.mjs";
4
- export * as offChrtShipperOrgConnectionInfo from "./offChrtShipperOrgConnectionInfo/index.mjs";
4
+ export * as offChrtShipperOrgInfo from "./offChrtShipperOrgInfo/index.mjs";
5
5
  export * as orgProfiles from "./orgProfiles/index.mjs";
6
6
  export * as orders from "./orders/index.mjs";
7
7
  export * as courierPayDriverRateSheets from "./courierPayDriverRateSheets/index.mjs";
8
+ export * as shipperPayCourierRateSheets from "./shipperPayCourierRateSheets/index.mjs";
8
9
  export * as courierPayDriverLineItemGroup from "./courierPayDriverLineItemGroup/index.mjs";
10
+ export * as shipperPayCourierLineItemGroup from "./shipperPayCourierLineItemGroup/index.mjs";
11
+ export * as shipperPayCourierPayments from "./shipperPayCourierPayments/index.mjs";
9
12
  export * as courierPayDriverPayouts from "./courierPayDriverPayouts/index.mjs";
10
13
  export * as connections from "./connections/index.mjs";
11
14
  export * as taskGroups from "./taskGroups/index.mjs";
@@ -20,11 +23,13 @@ export * as orgConnectionInfos from "./orgConnectionInfos/index.mjs";
20
23
  export * from "./dev/client/requests/index.mjs";
21
24
  export * from "./drivers/client/requests/index.mjs";
22
25
  export * from "./milestones/client/requests/index.mjs";
23
- export * from "./offChrtShipperOrgConnectionInfo/client/requests/index.mjs";
26
+ export * from "./offChrtShipperOrgInfo/client/requests/index.mjs";
24
27
  export * from "./orgProfiles/client/requests/index.mjs";
25
28
  export * from "./orders/client/requests/index.mjs";
26
29
  export * from "./courierPayDriverRateSheets/client/requests/index.mjs";
30
+ export * from "./shipperPayCourierRateSheets/client/requests/index.mjs";
27
31
  export * from "./courierPayDriverLineItemGroup/client/requests/index.mjs";
32
+ export * from "./shipperPayCourierLineItemGroup/client/requests/index.mjs";
28
33
  export * from "./courierPayDriverPayouts/client/requests/index.mjs";
29
34
  export * from "./taskGroups/client/requests/index.mjs";
30
35
  export * from "./shipperContactInfo/client/requests/index.mjs";
@@ -1,11 +1,14 @@
1
1
  export * as dev from "./dev/index.mjs";
2
2
  export * as drivers from "./drivers/index.mjs";
3
3
  export * as milestones from "./milestones/index.mjs";
4
- export * as offChrtShipperOrgConnectionInfo from "./offChrtShipperOrgConnectionInfo/index.mjs";
4
+ export * as offChrtShipperOrgInfo from "./offChrtShipperOrgInfo/index.mjs";
5
5
  export * as orgProfiles from "./orgProfiles/index.mjs";
6
6
  export * as orders from "./orders/index.mjs";
7
7
  export * as courierPayDriverRateSheets from "./courierPayDriverRateSheets/index.mjs";
8
+ export * as shipperPayCourierRateSheets from "./shipperPayCourierRateSheets/index.mjs";
8
9
  export * as courierPayDriverLineItemGroup from "./courierPayDriverLineItemGroup/index.mjs";
10
+ export * as shipperPayCourierLineItemGroup from "./shipperPayCourierLineItemGroup/index.mjs";
11
+ export * as shipperPayCourierPayments from "./shipperPayCourierPayments/index.mjs";
9
12
  export * as courierPayDriverPayouts from "./courierPayDriverPayouts/index.mjs";
10
13
  export * as connections from "./connections/index.mjs";
11
14
  export * as taskGroups from "./taskGroups/index.mjs";
@@ -20,11 +23,13 @@ export * as orgConnectionInfos from "./orgConnectionInfos/index.mjs";
20
23
  export * from "./dev/client/requests/index.mjs";
21
24
  export * from "./drivers/client/requests/index.mjs";
22
25
  export * from "./milestones/client/requests/index.mjs";
23
- export * from "./offChrtShipperOrgConnectionInfo/client/requests/index.mjs";
26
+ export * from "./offChrtShipperOrgInfo/client/requests/index.mjs";
24
27
  export * from "./orgProfiles/client/requests/index.mjs";
25
28
  export * from "./orders/client/requests/index.mjs";
26
29
  export * from "./courierPayDriverRateSheets/client/requests/index.mjs";
30
+ export * from "./shipperPayCourierRateSheets/client/requests/index.mjs";
27
31
  export * from "./courierPayDriverLineItemGroup/client/requests/index.mjs";
32
+ export * from "./shipperPayCourierLineItemGroup/client/requests/index.mjs";
28
33
  export * from "./courierPayDriverPayouts/client/requests/index.mjs";
29
34
  export * from "./taskGroups/client/requests/index.mjs";
30
35
  export * from "./shipperContactInfo/client/requests/index.mjs";
@@ -59,16 +59,9 @@ export declare class Images {
59
59
  private __deleteByMetadataId;
60
60
  /**
61
61
  * Streams a milestone image file from S3 storage.
62
- *
63
- * @param {string} milestoneS3ObjectMetadataId
64
- * @param {Images.RequestOptions} requestOptions - Request-specific configuration.
65
- *
66
62
  * @throws {@link Chrt.UnprocessableEntityError}
67
- *
68
- * @example
69
- * await client.milestones.images.getByMetadataId("milestone_s3_object_metadata_id")
70
63
  */
71
- getByMetadataId(milestoneS3ObjectMetadataId: string, requestOptions?: Images.RequestOptions): core.HttpResponsePromise<unknown>;
64
+ getByMetadataId(milestoneS3ObjectMetadataId: string, requestOptions?: Images.RequestOptions): core.HttpResponsePromise<core.BinaryResponse>;
72
65
  private __getByMetadataId;
73
66
  protected _getAuthorizationHeader(): Promise<string | undefined>;
74
67
  }
@@ -149,14 +149,7 @@ export class Images {
149
149
  }
150
150
  /**
151
151
  * Streams a milestone image file from S3 storage.
152
- *
153
- * @param {string} milestoneS3ObjectMetadataId
154
- * @param {Images.RequestOptions} requestOptions - Request-specific configuration.
155
- *
156
152
  * @throws {@link Chrt.UnprocessableEntityError}
157
- *
158
- * @example
159
- * await client.milestones.images.getByMetadataId("milestone_s3_object_metadata_id")
160
153
  */
161
154
  getByMetadataId(milestoneS3ObjectMetadataId, requestOptions) {
162
155
  return core.HttpResponsePromise.fromPromise(this.__getByMetadataId(milestoneS3ObjectMetadataId, requestOptions));
@@ -168,6 +161,7 @@ export class Images {
168
161
  url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, `oort/milestones/images/${encodeURIComponent(milestoneS3ObjectMetadataId)}`),
169
162
  method: "GET",
170
163
  headers: mergeHeaders((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
164
+ responseType: "binary-response",
171
165
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
172
166
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
173
167
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -4,7 +4,7 @@
4
4
  import * as environments from "../../../../environments.mjs";
5
5
  import * as core from "../../../../core/index.mjs";
6
6
  import * as Chrt from "../../../index.mjs";
7
- export declare namespace OffChrtShipperOrgConnectionInfo {
7
+ export declare namespace OffChrtShipperOrgInfo {
8
8
  interface Options {
9
9
  environment?: core.Supplier<environments.ChrtEnvironment | string>;
10
10
  /** Specify a custom URL to connect the client to. */
@@ -25,61 +25,61 @@ export declare namespace OffChrtShipperOrgConnectionInfo {
25
25
  headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
26
26
  }
27
27
  }
28
- export declare class OffChrtShipperOrgConnectionInfo {
29
- protected readonly _options: OffChrtShipperOrgConnectionInfo.Options;
30
- constructor(_options?: OffChrtShipperOrgConnectionInfo.Options);
28
+ export declare class OffChrtShipperOrgInfo {
29
+ protected readonly _options: OffChrtShipperOrgInfo.Options;
30
+ constructor(_options?: OffChrtShipperOrgInfo.Options);
31
31
  /**
32
32
  * Creates connection information for working with off-platform shipper organizations.
33
33
  *
34
- * @param {Chrt.OffChrtShipperOrgConnectionInfoClientCreate1} request
35
- * @param {OffChrtShipperOrgConnectionInfo.RequestOptions} requestOptions - Request-specific configuration.
34
+ * @param {Chrt.OffChrtShipperOrgInfoClientCreate1} request
35
+ * @param {OffChrtShipperOrgInfo.RequestOptions} requestOptions - Request-specific configuration.
36
36
  *
37
37
  * @throws {@link Chrt.UnprocessableEntityError}
38
38
  *
39
39
  * @example
40
- * await client.offChrtShipperOrgConnectionInfo.create({
40
+ * await client.offChrtShipperOrgInfo.create({
41
41
  * schema_version: 1,
42
42
  * email_address_primary: "email_address_primary"
43
43
  * })
44
44
  */
45
- create(request: Chrt.OffChrtShipperOrgConnectionInfoClientCreate1, requestOptions?: OffChrtShipperOrgConnectionInfo.RequestOptions): core.HttpResponsePromise<string>;
45
+ create(request: Chrt.OffChrtShipperOrgInfoClientCreate1, requestOptions?: OffChrtShipperOrgInfo.RequestOptions): core.HttpResponsePromise<string>;
46
46
  private __create;
47
47
  /**
48
48
  * Lists all off-platform shipper connections created by the authenticated organization.
49
49
  *
50
- * @param {OffChrtShipperOrgConnectionInfo.RequestOptions} requestOptions - Request-specific configuration.
50
+ * @param {OffChrtShipperOrgInfo.RequestOptions} requestOptions - Request-specific configuration.
51
51
  *
52
52
  * @example
53
- * await client.offChrtShipperOrgConnectionInfo.list()
53
+ * await client.offChrtShipperOrgInfo.list()
54
54
  */
55
- list(requestOptions?: OffChrtShipperOrgConnectionInfo.RequestOptions): core.HttpResponsePromise<Chrt.OffChrtShipperOrgConnectionInfo1[]>;
55
+ list(requestOptions?: OffChrtShipperOrgInfo.RequestOptions): core.HttpResponsePromise<Chrt.OffChrtShipperOrgInfo1[]>;
56
56
  private __list;
57
57
  /**
58
58
  * Retrieves specific off-platform shipper connection information by ID.
59
59
  *
60
60
  * @param {string} id
61
- * @param {OffChrtShipperOrgConnectionInfo.RequestOptions} requestOptions - Request-specific configuration.
61
+ * @param {OffChrtShipperOrgInfo.RequestOptions} requestOptions - Request-specific configuration.
62
62
  *
63
63
  * @throws {@link Chrt.UnprocessableEntityError}
64
64
  *
65
65
  * @example
66
- * await client.offChrtShipperOrgConnectionInfo.getById("id")
66
+ * await client.offChrtShipperOrgInfo.getById("id")
67
67
  */
68
- getById(id: string, requestOptions?: OffChrtShipperOrgConnectionInfo.RequestOptions): core.HttpResponsePromise<Chrt.OffChrtShipperOrgConnectionInfo1>;
68
+ getById(id: string, requestOptions?: OffChrtShipperOrgInfo.RequestOptions): core.HttpResponsePromise<Chrt.OffChrtShipperOrgInfo1>;
69
69
  private __getById;
70
70
  /**
71
71
  * Updates existing off-platform shipper connection information owned by the authenticated organization.
72
72
  *
73
73
  * @param {string} id
74
- * @param {Chrt.OffChrtShipperOrgConnectionInfoClientUpdate1} request
75
- * @param {OffChrtShipperOrgConnectionInfo.RequestOptions} requestOptions - Request-specific configuration.
74
+ * @param {Chrt.OffChrtShipperOrgInfoClientUpdate1} request
75
+ * @param {OffChrtShipperOrgInfo.RequestOptions} requestOptions - Request-specific configuration.
76
76
  *
77
77
  * @throws {@link Chrt.UnprocessableEntityError}
78
78
  *
79
79
  * @example
80
- * await client.offChrtShipperOrgConnectionInfo.updateById("id")
80
+ * await client.offChrtShipperOrgInfo.updateById("id")
81
81
  */
82
- updateById(id: string, request?: Chrt.OffChrtShipperOrgConnectionInfoClientUpdate1, requestOptions?: OffChrtShipperOrgConnectionInfo.RequestOptions): core.HttpResponsePromise<boolean>;
82
+ updateById(id: string, request?: Chrt.OffChrtShipperOrgInfoClientUpdate1, requestOptions?: OffChrtShipperOrgInfo.RequestOptions): core.HttpResponsePromise<boolean>;
83
83
  private __updateById;
84
84
  protected _getAuthorizationHeader(): Promise<string | undefined>;
85
85
  }