@chrt-inc/typescript-sdk 1.919.0 → 1.922.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (891) hide show
  1. package/README.md +21 -21
  2. package/dist/cjs/Client.js +2 -2
  3. package/dist/cjs/api/resources/billing/client/Client.d.ts +0 -27
  4. package/dist/cjs/api/resources/billing/client/Client.js +4 -49
  5. package/dist/cjs/api/resources/billing/resources/index.d.ts +0 -17
  6. package/dist/cjs/api/resources/billing/resources/index.js +1 -18
  7. package/dist/cjs/api/resources/billingNew/client/Client.d.ts +3 -0
  8. package/dist/cjs/api/resources/billingNew/client/Client.js +13 -8
  9. package/dist/cjs/api/resources/billingNew/resources/billingPeriods/client/Client.d.ts +168 -0
  10. package/dist/cjs/api/resources/{billing/resources/rateSheetMappings → billingNew/resources/billingPeriods}/client/Client.js +178 -113
  11. package/dist/cjs/api/resources/billingNew/resources/billingPeriods/client/requests/BillingPeriodClientCreate1.d.ts +34 -0
  12. package/dist/cjs/api/resources/billingNew/resources/billingPeriods/client/requests/BillingPeriodClientUpdate1.d.ts +20 -0
  13. package/dist/cjs/api/resources/billingNew/resources/billingPeriods/client/requests/BillingPeriodsListV1Request.d.ts +54 -0
  14. package/dist/cjs/api/resources/billingNew/resources/billingPeriods/client/requests/index.d.ts +3 -0
  15. package/dist/cjs/api/resources/billingNew/resources/chrtGroundProviderRates/client/Client.d.ts +2 -1
  16. package/dist/cjs/api/resources/billingNew/resources/chrtGroundProviderRates/client/Client.js +6 -2
  17. package/dist/cjs/api/resources/billingNew/resources/chrtGroundProviderRates/client/requests/ChrtGroundProviderRatesClientCreate1.d.ts +1 -0
  18. package/dist/cjs/api/resources/billingNew/resources/chrtGroundProviderRates/client/requests/ChrtGroundProviderRatesListV1Request.d.ts +4 -1
  19. package/dist/cjs/api/resources/billingNew/resources/index.d.ts +2 -0
  20. package/dist/cjs/api/resources/billingNew/resources/index.js +3 -1
  21. package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/Client.d.ts +21 -1
  22. package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/Client.js +77 -2
  23. package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/CreateInvoiceLineItemsFromAmountReq.d.ts +3 -0
  24. package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/CreateInvoiceLineItemsFromAwbCostsReq.d.ts +17 -0
  25. package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/CreateInvoiceLineItemsFromLineItemsReq.d.ts +1 -0
  26. package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/InvoiceLineItemsListV1Request.d.ts +3 -0
  27. package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/index.d.ts +1 -0
  28. package/dist/cjs/api/resources/billingNew/resources/invoices/client/Client.d.ts +1 -0
  29. package/dist/cjs/api/resources/billingNew/resources/invoices/client/Client.js +5 -1
  30. package/dist/cjs/api/resources/billingNew/resources/invoices/client/requests/InvoiceClientCreate1.d.ts +1 -0
  31. package/dist/cjs/api/resources/billingNew/resources/invoices/client/requests/InvoicesListV1Request.d.ts +3 -0
  32. package/dist/cjs/api/resources/billingNew/resources/orders/client/Client.d.ts +16 -0
  33. package/dist/cjs/api/resources/billingNew/resources/orders/client/Client.js +70 -0
  34. package/dist/{esm/api/resources/billing/resources/rateSheetMappings/client/requests/RateSheetMappingsListV1Request.d.mts → cjs/api/resources/billingNew/resources/orders/client/requests/OrdersListAwbBillingForCoordinatorOperatorsV1Request.d.ts} +1 -1
  35. package/dist/cjs/api/resources/billingNew/resources/orders/client/requests/index.d.ts +1 -0
  36. package/dist/cjs/api/resources/listing/resources/bidThreads/client/Client.d.ts +2 -2
  37. package/dist/cjs/api/resources/listing/resources/bidThreads/client/Client.js +2 -2
  38. package/dist/cjs/api/resources/listing/resources/listings/client/Client.d.ts +1 -1
  39. package/dist/cjs/api/resources/listing/resources/listings/client/Client.js +1 -1
  40. package/dist/cjs/api/resources/orgs/resources/offChrtOrgData/client/requests/OffChrtOrgDataClientUpdate1.d.ts +2 -0
  41. package/dist/cjs/api/resources/shipping/client/Client.d.ts +0 -6
  42. package/dist/cjs/api/resources/shipping/client/Client.js +14 -24
  43. package/dist/cjs/api/resources/shipping/resources/cargos/client/Client.d.ts +1 -1
  44. package/dist/cjs/api/resources/shipping/resources/cargos/client/Client.js +1 -1
  45. package/dist/cjs/api/resources/shipping/resources/index.d.ts +0 -4
  46. package/dist/cjs/api/resources/shipping/resources/index.js +1 -5
  47. package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/client/requests/OrderTemplateNewClientCreate1.d.ts +1 -0
  48. package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/client/requests/OrderTemplateNewClientUpdate1.d.ts +1 -0
  49. package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/resources/taskGroups/client/requests/OrderTemplateNewTaskGroupClientCreate1.d.ts +1 -0
  50. package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/resources/taskGroups/client/requests/OrderTemplateNewTaskGroupClientUpdate1.d.ts +1 -0
  51. package/dist/cjs/api/resources/shipping/resources/orders/client/Client.d.ts +21 -7
  52. package/dist/cjs/api/resources/shipping/resources/orders/client/Client.js +73 -10
  53. package/dist/cjs/api/resources/shipping/resources/orders/client/requests/{OrdersUpdateDepartmentAndLabelReq.d.ts → OrdersUpdateDepartmentReq.d.ts} +1 -3
  54. package/dist/cjs/api/resources/shipping/resources/orders/client/requests/OrdersUpdateLabelReq.d.ts +11 -0
  55. package/dist/cjs/api/resources/shipping/resources/orders/client/requests/index.d.ts +2 -1
  56. package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/client/Client.d.ts +1 -1
  57. package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/client/Client.js +1 -1
  58. package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/resources/taskGroup/client/Client.d.ts +1 -15
  59. package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/resources/taskGroup/client/Client.js +1 -64
  60. package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/resources/taskGroup/client/requests/index.d.ts +0 -1
  61. package/dist/cjs/api/resources/shipping/resources/taskArtifacts/client/Client.d.ts +1 -1
  62. package/dist/cjs/api/resources/shipping/resources/taskArtifacts/client/Client.js +1 -1
  63. package/dist/cjs/api/resources/shipping/resources/taskGroups/client/Client.d.ts +3 -221
  64. package/dist/cjs/api/resources/shipping/resources/taskGroups/client/Client.js +3 -938
  65. package/dist/cjs/api/resources/shipping/resources/taskGroups/client/requests/index.d.ts +0 -3
  66. package/dist/cjs/api/resources/shipping/resources/tasks/client/Client.d.ts +4 -4
  67. package/dist/cjs/api/resources/shipping/resources/tasks/client/Client.js +4 -4
  68. package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/client/Client.d.ts +0 -3
  69. package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/client/Client.js +0 -5
  70. package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/assets/client/Client.d.ts +48 -16
  71. package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/assets/client/Client.js +173 -43
  72. package/dist/cjs/api/resources/{shipping/resources/orderGroups/client/requests/OrderGroupClientCreate1.d.ts → trackingIntegrations/resources/reelables/resources/assets/client/requests/ReelablesAssetClientCreate1.d.ts} +3 -3
  73. package/dist/cjs/api/resources/{billing/resources/lineItemGroups/resources/messages/client/requests/AddLineItemGroupMessageReq.d.ts → trackingIntegrations/resources/reelables/resources/assets/client/requests/ReelablesAssetLabelLinkReq.d.ts} +3 -3
  74. package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/assets/client/requests/index.d.ts +2 -0
  75. package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/index.d.ts +0 -2
  76. package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/index.js +1 -3
  77. package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/timeseries/client/Client.d.ts +18 -1
  78. package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/timeseries/client/Client.js +68 -1
  79. package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/timeseries/client/requests/TimeseriesRefreshV1Request.d.ts +14 -0
  80. package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/timeseries/client/requests/index.d.ts +1 -0
  81. package/dist/cjs/api/types/BillingPeriod1.d.ts +34 -0
  82. package/dist/cjs/api/types/{BillingCycleEnum.d.ts → BillingPeriodCycleEnum1.d.ts} +2 -2
  83. package/dist/cjs/api/types/{BillingCycleEnum.js → BillingPeriodCycleEnum1.js} +2 -2
  84. package/dist/cjs/api/types/BillingPeriodExpanded1.d.ts +9 -0
  85. package/dist/cjs/api/types/{OrderGroupListRes.d.ts → BillingPeriodListRes.d.ts} +2 -2
  86. package/dist/cjs/api/types/BillingPeriodSortByEnum.d.ts +12 -0
  87. package/dist/cjs/api/types/{OrderGroupExpandedSortByEnum.js → BillingPeriodSortByEnum.js} +5 -3
  88. package/dist/cjs/api/types/{BillingLedgerPeriodStatusEnum.d.ts → BillingPeriodStatusEnum1.d.ts} +2 -2
  89. package/dist/cjs/api/types/{BillingLedgerPeriodStatusEnum.js → BillingPeriodStatusEnum1.js} +2 -2
  90. package/dist/cjs/api/types/BillingPeriodTaskGroupsReq.d.ts +6 -0
  91. package/dist/cjs/api/types/Cargo1.d.ts +1 -0
  92. package/dist/cjs/api/types/ChrtGroundProviderRates1.d.ts +1 -0
  93. package/dist/cjs/api/types/CreateInvoiceLineItemsFromAwbCostsCreatedAwb1.d.ts +9 -0
  94. package/dist/cjs/api/types/CreateInvoiceLineItemsFromAwbCostsInvoiceRes1.d.ts +11 -0
  95. package/dist/cjs/api/types/CreateInvoiceLineItemsFromAwbCostsItem1.d.ts +13 -0
  96. package/dist/cjs/api/types/CreateInvoiceLineItemsFromAwbCostsRejectedAwb1.d.ts +9 -0
  97. package/dist/cjs/api/types/CreateInvoiceLineItemsFromAwbCostsRejectedReasonEnum1.d.ts +9 -0
  98. package/dist/cjs/api/types/CreateInvoiceLineItemsFromAwbCostsRejectedReasonEnum1.js +11 -0
  99. package/dist/cjs/api/types/CreateInvoiceLineItemsFromAwbCostsRes.d.ts +10 -0
  100. package/dist/cjs/api/types/Invoice1.d.ts +1 -0
  101. package/dist/cjs/api/types/InvoiceExpandedRes.d.ts +1 -0
  102. package/dist/cjs/api/types/InvoiceLineItem1.d.ts +4 -0
  103. package/dist/cjs/api/types/InvoiceLineItemClientCreate1.d.ts +3 -0
  104. package/dist/cjs/api/types/InvoiceLineItemServerCreate1.d.ts +4 -0
  105. package/dist/cjs/api/types/InvoiceLineItemsByOrderExpandedRes.d.ts +2 -0
  106. package/dist/cjs/api/types/NotificationEventsForOrgsEnum.d.ts +1 -6
  107. package/dist/cjs/api/types/NotificationEventsForOrgsEnum.js +0 -5
  108. package/dist/cjs/api/types/NotificationEventsForUsersEnum.d.ts +1 -3
  109. package/dist/cjs/api/types/NotificationEventsForUsersEnum.js +0 -2
  110. package/dist/cjs/api/types/OffChrtOrgData1.d.ts +1 -0
  111. package/dist/cjs/api/types/OffChrtOrgDataClientCreate1.d.ts +1 -0
  112. package/dist/{esm/api/types/CreateLigFromRateSheetForVectorClientReq.d.mts → cjs/api/types/OrderAwbBillingAccount1.d.ts} +3 -2
  113. package/dist/cjs/api/types/OrderAwbBillingListItem1.d.ts +12 -0
  114. package/dist/cjs/api/types/{BillingLedgerPeriodListRes.d.ts → OrderAwbBillingListRes.d.ts} +2 -2
  115. package/dist/cjs/api/types/OrderBillingExpandedListItem1.d.ts +1 -0
  116. package/dist/cjs/api/types/OrderBillingPeriod1.d.ts +11 -0
  117. package/dist/cjs/api/types/OrderTemplateNew1.d.ts +1 -0
  118. package/dist/cjs/api/types/OrderTemplateNewCore1.d.ts +1 -0
  119. package/dist/cjs/api/types/OrderTemplateNewTaskGroup1.d.ts +1 -0
  120. package/dist/cjs/api/types/OrdersDraftDeleteManyRes.d.ts +0 -1
  121. package/dist/cjs/api/types/ProFormaLineItem1.d.ts +9 -7
  122. package/dist/cjs/api/types/{LineItemProvenanceEnum.d.ts → ProFormaLineItemProvenanceEnum1.d.ts} +2 -2
  123. package/dist/cjs/api/types/{LineItemProvenanceEnum.js → ProFormaLineItemProvenanceEnum1.js} +2 -2
  124. package/dist/cjs/api/types/TaskGroup1.d.ts +0 -9
  125. package/dist/cjs/api/types/index.d.ts +18 -63
  126. package/dist/cjs/api/types/index.js +18 -63
  127. package/dist/cjs/version.d.ts +1 -1
  128. package/dist/cjs/version.js +1 -1
  129. package/dist/esm/Client.mjs +2 -2
  130. package/dist/esm/api/resources/billing/client/Client.d.mts +0 -27
  131. package/dist/esm/api/resources/billing/client/Client.mjs +0 -45
  132. package/dist/esm/api/resources/billing/resources/index.d.mts +0 -17
  133. package/dist/esm/api/resources/billing/resources/index.mjs +0 -17
  134. package/dist/esm/api/resources/billingNew/client/Client.d.mts +3 -0
  135. package/dist/esm/api/resources/billingNew/client/Client.mjs +5 -0
  136. package/dist/esm/api/resources/billingNew/resources/billingPeriods/client/Client.d.mts +168 -0
  137. package/dist/esm/api/resources/{billing/resources/rateSheetMappings → billingNew/resources/billingPeriods}/client/Client.mjs +176 -111
  138. package/dist/esm/api/resources/billingNew/resources/billingPeriods/client/requests/BillingPeriodClientCreate1.d.mts +34 -0
  139. package/dist/esm/api/resources/billingNew/resources/billingPeriods/client/requests/BillingPeriodClientUpdate1.d.mts +20 -0
  140. package/dist/esm/api/resources/billingNew/resources/billingPeriods/client/requests/BillingPeriodsListV1Request.d.mts +54 -0
  141. package/dist/esm/api/resources/billingNew/resources/billingPeriods/client/requests/index.d.mts +3 -0
  142. package/dist/esm/api/resources/billingNew/resources/chrtGroundProviderRates/client/Client.d.mts +2 -1
  143. package/dist/esm/api/resources/billingNew/resources/chrtGroundProviderRates/client/Client.mjs +6 -2
  144. package/dist/esm/api/resources/billingNew/resources/chrtGroundProviderRates/client/requests/ChrtGroundProviderRatesClientCreate1.d.mts +1 -0
  145. package/dist/esm/api/resources/billingNew/resources/chrtGroundProviderRates/client/requests/ChrtGroundProviderRatesListV1Request.d.mts +4 -1
  146. package/dist/esm/api/resources/billingNew/resources/index.d.mts +2 -0
  147. package/dist/esm/api/resources/billingNew/resources/index.mjs +2 -0
  148. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/Client.d.mts +21 -1
  149. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/Client.mjs +77 -2
  150. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/CreateInvoiceLineItemsFromAmountReq.d.mts +3 -0
  151. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/CreateInvoiceLineItemsFromAwbCostsReq.d.mts +17 -0
  152. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/CreateInvoiceLineItemsFromLineItemsReq.d.mts +1 -0
  153. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/InvoiceLineItemsListV1Request.d.mts +3 -0
  154. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/index.d.mts +1 -0
  155. package/dist/esm/api/resources/billingNew/resources/invoices/client/Client.d.mts +1 -0
  156. package/dist/esm/api/resources/billingNew/resources/invoices/client/Client.mjs +5 -1
  157. package/dist/esm/api/resources/billingNew/resources/invoices/client/requests/InvoiceClientCreate1.d.mts +1 -0
  158. package/dist/esm/api/resources/billingNew/resources/invoices/client/requests/InvoicesListV1Request.d.mts +3 -0
  159. package/dist/esm/api/resources/billingNew/resources/orders/client/Client.d.mts +16 -0
  160. package/dist/esm/api/resources/billingNew/resources/orders/client/Client.mjs +70 -0
  161. package/dist/{cjs/api/resources/billing/resources/rateSheetMappings/client/requests/RateSheetMappingsListV1Request.d.ts → esm/api/resources/billingNew/resources/orders/client/requests/OrdersListAwbBillingForCoordinatorOperatorsV1Request.d.mts} +1 -1
  162. package/dist/esm/api/resources/billingNew/resources/orders/client/requests/index.d.mts +1 -0
  163. package/dist/esm/api/resources/listing/resources/bidThreads/client/Client.d.mts +2 -2
  164. package/dist/esm/api/resources/listing/resources/bidThreads/client/Client.mjs +2 -2
  165. package/dist/esm/api/resources/listing/resources/listings/client/Client.d.mts +1 -1
  166. package/dist/esm/api/resources/listing/resources/listings/client/Client.mjs +1 -1
  167. package/dist/esm/api/resources/orgs/resources/offChrtOrgData/client/requests/OffChrtOrgDataClientUpdate1.d.mts +2 -0
  168. package/dist/esm/api/resources/shipping/client/Client.d.mts +0 -6
  169. package/dist/esm/api/resources/shipping/client/Client.mjs +0 -10
  170. package/dist/esm/api/resources/shipping/resources/cargos/client/Client.d.mts +1 -1
  171. package/dist/esm/api/resources/shipping/resources/cargos/client/Client.mjs +1 -1
  172. package/dist/esm/api/resources/shipping/resources/index.d.mts +0 -4
  173. package/dist/esm/api/resources/shipping/resources/index.mjs +0 -4
  174. package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/client/requests/OrderTemplateNewClientCreate1.d.mts +1 -0
  175. package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/client/requests/OrderTemplateNewClientUpdate1.d.mts +1 -0
  176. package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/resources/taskGroups/client/requests/OrderTemplateNewTaskGroupClientCreate1.d.mts +1 -0
  177. package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/resources/taskGroups/client/requests/OrderTemplateNewTaskGroupClientUpdate1.d.mts +1 -0
  178. package/dist/esm/api/resources/shipping/resources/orders/client/Client.d.mts +21 -7
  179. package/dist/esm/api/resources/shipping/resources/orders/client/Client.mjs +73 -10
  180. package/dist/esm/api/resources/shipping/resources/orders/client/requests/{OrdersUpdateDepartmentAndLabelReq.d.mts → OrdersUpdateDepartmentReq.d.mts} +1 -3
  181. package/dist/esm/api/resources/shipping/resources/orders/client/requests/OrdersUpdateLabelReq.d.mts +11 -0
  182. package/dist/esm/api/resources/shipping/resources/orders/client/requests/index.d.mts +2 -1
  183. package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/client/Client.d.mts +1 -1
  184. package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/client/Client.mjs +1 -1
  185. package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/resources/taskGroup/client/Client.d.mts +1 -15
  186. package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/resources/taskGroup/client/Client.mjs +1 -64
  187. package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/resources/taskGroup/client/requests/index.d.mts +0 -1
  188. package/dist/esm/api/resources/shipping/resources/taskArtifacts/client/Client.d.mts +1 -1
  189. package/dist/esm/api/resources/shipping/resources/taskArtifacts/client/Client.mjs +1 -1
  190. package/dist/esm/api/resources/shipping/resources/taskGroups/client/Client.d.mts +3 -221
  191. package/dist/esm/api/resources/shipping/resources/taskGroups/client/Client.mjs +3 -938
  192. package/dist/esm/api/resources/shipping/resources/taskGroups/client/requests/index.d.mts +0 -3
  193. package/dist/esm/api/resources/shipping/resources/tasks/client/Client.d.mts +4 -4
  194. package/dist/esm/api/resources/shipping/resources/tasks/client/Client.mjs +4 -4
  195. package/dist/esm/api/resources/trackingIntegrations/resources/reelables/client/Client.d.mts +0 -3
  196. package/dist/esm/api/resources/trackingIntegrations/resources/reelables/client/Client.mjs +0 -5
  197. package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/assets/client/Client.d.mts +48 -16
  198. package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/assets/client/Client.mjs +173 -43
  199. package/dist/esm/api/resources/{shipping/resources/orderGroups/client/requests/OrderGroupClientCreate1.d.mts → trackingIntegrations/resources/reelables/resources/assets/client/requests/ReelablesAssetClientCreate1.d.mts} +3 -3
  200. package/dist/esm/api/resources/{billing/resources/lineItemGroups/resources/messages/client/requests/AddLineItemGroupMessageReq.d.mts → trackingIntegrations/resources/reelables/resources/assets/client/requests/ReelablesAssetLabelLinkReq.d.mts} +3 -3
  201. package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/assets/client/requests/index.d.mts +2 -0
  202. package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/index.d.mts +0 -2
  203. package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/index.mjs +0 -2
  204. package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/timeseries/client/Client.d.mts +18 -1
  205. package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/timeseries/client/Client.mjs +68 -1
  206. package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/timeseries/client/requests/TimeseriesRefreshV1Request.d.mts +14 -0
  207. package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/timeseries/client/requests/index.d.mts +1 -0
  208. package/dist/esm/api/types/BillingPeriod1.d.mts +34 -0
  209. package/dist/esm/api/types/{BillingCycleEnum.d.mts → BillingPeriodCycleEnum1.d.mts} +2 -2
  210. package/dist/esm/api/types/{BillingCycleEnum.mjs → BillingPeriodCycleEnum1.mjs} +1 -1
  211. package/dist/esm/api/types/BillingPeriodExpanded1.d.mts +9 -0
  212. package/dist/esm/api/types/{BillingLedgerListRes.d.mts → BillingPeriodListRes.d.mts} +2 -2
  213. package/dist/esm/api/types/BillingPeriodSortByEnum.d.mts +12 -0
  214. package/dist/esm/api/types/{OrderGroupSortByEnum.mjs → BillingPeriodSortByEnum.mjs} +4 -1
  215. package/dist/esm/api/types/{BillingLedgerPeriodStatusEnum.d.mts → BillingPeriodStatusEnum1.d.mts} +2 -2
  216. package/dist/esm/api/types/{BillingLedgerPeriodStatusEnum.mjs → BillingPeriodStatusEnum1.mjs} +1 -1
  217. package/dist/esm/api/types/BillingPeriodTaskGroupsReq.d.mts +6 -0
  218. package/dist/esm/api/types/Cargo1.d.mts +1 -0
  219. package/dist/esm/api/types/ChrtGroundProviderRates1.d.mts +1 -0
  220. package/dist/esm/api/types/CreateInvoiceLineItemsFromAwbCostsCreatedAwb1.d.mts +9 -0
  221. package/dist/esm/api/types/CreateInvoiceLineItemsFromAwbCostsInvoiceRes1.d.mts +11 -0
  222. package/dist/esm/api/types/CreateInvoiceLineItemsFromAwbCostsItem1.d.mts +13 -0
  223. package/dist/esm/api/types/CreateInvoiceLineItemsFromAwbCostsRejectedAwb1.d.mts +9 -0
  224. package/dist/esm/api/types/CreateInvoiceLineItemsFromAwbCostsRejectedReasonEnum1.d.mts +9 -0
  225. package/dist/esm/api/types/CreateInvoiceLineItemsFromAwbCostsRejectedReasonEnum1.mjs +8 -0
  226. package/dist/esm/api/types/CreateInvoiceLineItemsFromAwbCostsRes.d.mts +10 -0
  227. package/dist/esm/api/types/Invoice1.d.mts +1 -0
  228. package/dist/esm/api/types/InvoiceExpandedRes.d.mts +1 -0
  229. package/dist/esm/api/types/InvoiceLineItem1.d.mts +4 -0
  230. package/dist/esm/api/types/InvoiceLineItemClientCreate1.d.mts +3 -0
  231. package/dist/esm/api/types/InvoiceLineItemServerCreate1.d.mts +4 -0
  232. package/dist/esm/api/types/InvoiceLineItemsByOrderExpandedRes.d.mts +2 -0
  233. package/dist/esm/api/types/NotificationEventsForOrgsEnum.d.mts +1 -6
  234. package/dist/esm/api/types/NotificationEventsForOrgsEnum.mjs +0 -5
  235. package/dist/esm/api/types/NotificationEventsForUsersEnum.d.mts +1 -3
  236. package/dist/esm/api/types/NotificationEventsForUsersEnum.mjs +0 -2
  237. package/dist/esm/api/types/OffChrtOrgData1.d.mts +1 -0
  238. package/dist/esm/api/types/OffChrtOrgDataClientCreate1.d.mts +1 -0
  239. package/dist/{cjs/api/types/CreateLigFromRateSheetForVectorClientReq.d.ts → esm/api/types/OrderAwbBillingAccount1.d.mts} +3 -2
  240. package/dist/esm/api/types/OrderAwbBillingListItem1.d.mts +12 -0
  241. package/dist/esm/api/types/{BillingLedgerPeriodListRes.d.mts → OrderAwbBillingListRes.d.mts} +2 -2
  242. package/dist/esm/api/types/OrderBillingExpandedListItem1.d.mts +1 -0
  243. package/dist/esm/api/types/OrderBillingPeriod1.d.mts +11 -0
  244. package/dist/esm/api/types/OrderTemplateNew1.d.mts +1 -0
  245. package/dist/esm/api/types/OrderTemplateNewCore1.d.mts +1 -0
  246. package/dist/esm/api/types/OrderTemplateNewTaskGroup1.d.mts +1 -0
  247. package/dist/esm/api/types/OrdersDraftDeleteManyRes.d.mts +0 -1
  248. package/dist/esm/api/types/ProFormaLineItem1.d.mts +9 -7
  249. package/dist/esm/api/types/{LineItemProvenanceEnum.d.mts → ProFormaLineItemProvenanceEnum1.d.mts} +2 -2
  250. package/dist/esm/api/types/{LineItemProvenanceEnum.mjs → ProFormaLineItemProvenanceEnum1.mjs} +1 -1
  251. package/dist/esm/api/types/TaskGroup1.d.mts +0 -9
  252. package/dist/esm/api/types/index.d.mts +18 -63
  253. package/dist/esm/api/types/index.mjs +18 -63
  254. package/dist/esm/version.d.mts +1 -1
  255. package/dist/esm/version.mjs +1 -1
  256. package/package.json +1 -1
  257. package/reference.md +2731 -9226
  258. package/dist/cjs/api/resources/billing/resources/billingLedgerPeriods/client/Client.d.ts +0 -115
  259. package/dist/cjs/api/resources/billing/resources/billingLedgerPeriods/client/Client.js +0 -425
  260. package/dist/cjs/api/resources/billing/resources/billingLedgerPeriods/client/requests/BillingLedgerPeriodClientUpdate1.d.ts +0 -14
  261. package/dist/cjs/api/resources/billing/resources/billingLedgerPeriods/client/requests/BillingLedgerPeriodsListV1Request.d.ts +0 -41
  262. package/dist/cjs/api/resources/billing/resources/billingLedgerPeriods/client/requests/OpenPeriodReq.d.ts +0 -17
  263. package/dist/cjs/api/resources/billing/resources/billingLedgerPeriods/client/requests/index.d.ts +0 -3
  264. package/dist/cjs/api/resources/billing/resources/billingLedgers/client/Client.d.ts +0 -110
  265. package/dist/cjs/api/resources/billing/resources/billingLedgers/client/Client.js +0 -411
  266. package/dist/cjs/api/resources/billing/resources/billingLedgers/client/index.d.ts +0 -2
  267. package/dist/cjs/api/resources/billing/resources/billingLedgers/client/index.js +0 -17
  268. package/dist/cjs/api/resources/billing/resources/billingLedgers/client/requests/BillingLedgerClientCreate1.d.ts +0 -23
  269. package/dist/cjs/api/resources/billing/resources/billingLedgers/client/requests/BillingLedgerClientUpdate1.d.ts +0 -13
  270. package/dist/cjs/api/resources/billing/resources/billingLedgers/client/requests/BillingLedgersListV1Request.d.ts +0 -32
  271. package/dist/cjs/api/resources/billing/resources/billingLedgers/client/requests/index.d.ts +0 -3
  272. package/dist/cjs/api/resources/billing/resources/billingLedgers/client/requests/index.js +0 -2
  273. package/dist/cjs/api/resources/billing/resources/billingLedgers/index.d.ts +0 -1
  274. package/dist/cjs/api/resources/billing/resources/billingLedgers/index.js +0 -17
  275. package/dist/cjs/api/resources/billing/resources/cargoOnFlightRateSheets/client/Client.d.ts +0 -132
  276. package/dist/cjs/api/resources/billing/resources/cargoOnFlightRateSheets/client/Client.js +0 -505
  277. package/dist/cjs/api/resources/billing/resources/cargoOnFlightRateSheets/client/index.d.ts +0 -2
  278. package/dist/cjs/api/resources/billing/resources/cargoOnFlightRateSheets/client/index.js +0 -17
  279. package/dist/cjs/api/resources/billing/resources/cargoOnFlightRateSheets/client/requests/CargoOnFlightRateSheetClientCreate1.d.ts +0 -19
  280. package/dist/cjs/api/resources/billing/resources/cargoOnFlightRateSheets/client/requests/CargoOnFlightRateSheetClientUpdate1.d.ts +0 -21
  281. package/dist/cjs/api/resources/billing/resources/cargoOnFlightRateSheets/client/requests/CargoOnFlightRateSheetsListV1Request.d.ts +0 -16
  282. package/dist/cjs/api/resources/billing/resources/cargoOnFlightRateSheets/client/requests/index.d.ts +0 -3
  283. package/dist/cjs/api/resources/billing/resources/cargoOnFlightRateSheets/client/requests/index.js +0 -2
  284. package/dist/cjs/api/resources/billing/resources/cargoOnFlightRateSheets/index.d.ts +0 -1
  285. package/dist/cjs/api/resources/billing/resources/cargoOnFlightRateSheets/index.js +0 -17
  286. package/dist/cjs/api/resources/billing/resources/chrtGroundProviderRateSheets/client/Client.d.ts +0 -132
  287. package/dist/cjs/api/resources/billing/resources/chrtGroundProviderRateSheets/client/Client.js +0 -508
  288. package/dist/cjs/api/resources/billing/resources/chrtGroundProviderRateSheets/client/index.d.ts +0 -2
  289. package/dist/cjs/api/resources/billing/resources/chrtGroundProviderRateSheets/client/index.js +0 -17
  290. package/dist/cjs/api/resources/billing/resources/chrtGroundProviderRateSheets/client/requests/ChrtGroundProviderRateSheetClientCreate1.d.ts +0 -35
  291. package/dist/cjs/api/resources/billing/resources/chrtGroundProviderRateSheets/client/requests/ChrtGroundProviderRateSheetClientUpdate1.d.ts +0 -46
  292. package/dist/cjs/api/resources/billing/resources/chrtGroundProviderRateSheets/client/requests/ChrtGroundProviderRateSheetsListV1Request.d.ts +0 -16
  293. package/dist/cjs/api/resources/billing/resources/chrtGroundProviderRateSheets/client/requests/index.d.ts +0 -3
  294. package/dist/cjs/api/resources/billing/resources/chrtGroundProviderRateSheets/client/requests/index.js +0 -2
  295. package/dist/cjs/api/resources/billing/resources/chrtGroundProviderRateSheets/index.d.ts +0 -1
  296. package/dist/cjs/api/resources/billing/resources/chrtGroundProviderRateSheets/index.js +0 -17
  297. package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/Client.d.ts +0 -307
  298. package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/Client.js +0 -1203
  299. package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/index.d.ts +0 -2
  300. package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/index.js +0 -17
  301. package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/requests/LineItemGroupAdHocCreateClientReq.d.ts +0 -23
  302. package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/requests/LineItemGroupsListV1Request.d.ts +0 -53
  303. package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/requests/SharedTaskGroupMileageCreateForProviderPayDriverClientReq.d.ts +0 -23
  304. package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/requests/SharedTaskGroupMileageCreateForProviderPayProviderClientReq.d.ts +0 -24
  305. package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/requests/index.d.ts +0 -4
  306. package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/requests/index.js +0 -2
  307. package/dist/cjs/api/resources/billing/resources/lineItemGroups/index.d.ts +0 -2
  308. package/dist/cjs/api/resources/billing/resources/lineItemGroups/index.js +0 -18
  309. package/dist/cjs/api/resources/billing/resources/lineItemGroups/resources/index.d.ts +0 -4
  310. package/dist/cjs/api/resources/billing/resources/lineItemGroups/resources/index.js +0 -43
  311. package/dist/cjs/api/resources/billing/resources/lineItemGroups/resources/messages/client/Client.d.ts +0 -50
  312. package/dist/cjs/api/resources/billing/resources/lineItemGroups/resources/messages/client/Client.js +0 -133
  313. package/dist/cjs/api/resources/billing/resources/lineItemGroups/resources/messages/client/index.d.ts +0 -2
  314. package/dist/cjs/api/resources/billing/resources/lineItemGroups/resources/messages/client/index.js +0 -17
  315. package/dist/cjs/api/resources/billing/resources/lineItemGroups/resources/messages/client/requests/index.d.ts +0 -1
  316. package/dist/cjs/api/resources/billing/resources/lineItemGroups/resources/messages/client/requests/index.js +0 -2
  317. package/dist/cjs/api/resources/billing/resources/lineItemGroups/resources/messages/index.d.ts +0 -1
  318. package/dist/cjs/api/resources/billing/resources/lineItemGroups/resources/messages/index.js +0 -17
  319. package/dist/cjs/api/resources/billing/resources/lineItemGroups/resources/s3Objects/client/Client.d.ts +0 -83
  320. package/dist/cjs/api/resources/billing/resources/lineItemGroups/resources/s3Objects/client/Client.js +0 -308
  321. package/dist/cjs/api/resources/billing/resources/lineItemGroups/resources/s3Objects/client/index.d.ts +0 -2
  322. package/dist/cjs/api/resources/billing/resources/lineItemGroups/resources/s3Objects/client/index.js +0 -17
  323. package/dist/cjs/api/resources/billing/resources/lineItemGroups/resources/s3Objects/client/requests/BodyLineItemGroupsS3ObjectPostAddV1.d.ts +0 -13
  324. package/dist/cjs/api/resources/billing/resources/lineItemGroups/resources/s3Objects/client/requests/index.d.ts +0 -1
  325. package/dist/cjs/api/resources/billing/resources/lineItemGroups/resources/s3Objects/client/requests/index.js +0 -2
  326. package/dist/cjs/api/resources/billing/resources/lineItemGroups/resources/s3Objects/index.d.ts +0 -1
  327. package/dist/cjs/api/resources/billing/resources/lineItemGroups/resources/s3Objects/index.js +0 -17
  328. package/dist/cjs/api/resources/billing/resources/lineItems/client/Client.d.ts +0 -23
  329. package/dist/cjs/api/resources/billing/resources/lineItems/client/Client.js +0 -17
  330. package/dist/cjs/api/resources/billing/resources/lineItems/client/index.d.ts +0 -1
  331. package/dist/cjs/api/resources/billing/resources/lineItems/client/index.js +0 -2
  332. package/dist/cjs/api/resources/billing/resources/lineItems/index.d.ts +0 -2
  333. package/dist/cjs/api/resources/billing/resources/lineItems/index.js +0 -18
  334. package/dist/cjs/api/resources/billing/resources/lineItems/resources/index.d.ts +0 -2
  335. package/dist/cjs/api/resources/billing/resources/lineItems/resources/index.js +0 -41
  336. package/dist/cjs/api/resources/billing/resources/lineItems/resources/s3Objects/client/Client.d.ts +0 -83
  337. package/dist/cjs/api/resources/billing/resources/lineItems/resources/s3Objects/client/Client.js +0 -308
  338. package/dist/cjs/api/resources/billing/resources/lineItems/resources/s3Objects/client/index.d.ts +0 -2
  339. package/dist/cjs/api/resources/billing/resources/lineItems/resources/s3Objects/client/index.js +0 -17
  340. package/dist/cjs/api/resources/billing/resources/lineItems/resources/s3Objects/client/requests/BodyLineItemsS3ObjectPostAddV1.d.ts +0 -13
  341. package/dist/cjs/api/resources/billing/resources/lineItems/resources/s3Objects/client/requests/index.d.ts +0 -1
  342. package/dist/cjs/api/resources/billing/resources/lineItems/resources/s3Objects/client/requests/index.js +0 -2
  343. package/dist/cjs/api/resources/billing/resources/lineItems/resources/s3Objects/index.d.ts +0 -1
  344. package/dist/cjs/api/resources/billing/resources/lineItems/resources/s3Objects/index.js +0 -17
  345. package/dist/cjs/api/resources/billing/resources/onboardCourierRateSheets/client/Client.d.ts +0 -132
  346. package/dist/cjs/api/resources/billing/resources/onboardCourierRateSheets/client/Client.js +0 -505
  347. package/dist/cjs/api/resources/billing/resources/onboardCourierRateSheets/client/index.d.ts +0 -2
  348. package/dist/cjs/api/resources/billing/resources/onboardCourierRateSheets/client/index.js +0 -17
  349. package/dist/cjs/api/resources/billing/resources/onboardCourierRateSheets/client/requests/OnboardCourierRateSheetClientCreate1.d.ts +0 -16
  350. package/dist/cjs/api/resources/billing/resources/onboardCourierRateSheets/client/requests/OnboardCourierRateSheetClientUpdate1.d.ts +0 -15
  351. package/dist/cjs/api/resources/billing/resources/onboardCourierRateSheets/client/requests/OnboardCourierRateSheetsListV1Request.d.ts +0 -16
  352. package/dist/cjs/api/resources/billing/resources/onboardCourierRateSheets/client/requests/index.d.ts +0 -3
  353. package/dist/cjs/api/resources/billing/resources/onboardCourierRateSheets/client/requests/index.js +0 -2
  354. package/dist/cjs/api/resources/billing/resources/onboardCourierRateSheets/index.d.ts +0 -1
  355. package/dist/cjs/api/resources/billing/resources/onboardCourierRateSheets/index.js +0 -17
  356. package/dist/cjs/api/resources/billing/resources/rateSheetMappings/client/Client.d.ts +0 -155
  357. package/dist/cjs/api/resources/billing/resources/rateSheetMappings/client/index.d.ts +0 -2
  358. package/dist/cjs/api/resources/billing/resources/rateSheetMappings/client/index.js +0 -17
  359. package/dist/cjs/api/resources/billing/resources/rateSheetMappings/client/requests/RateSheetMappingClientCreate1.d.ts +0 -20
  360. package/dist/cjs/api/resources/billing/resources/rateSheetMappings/client/requests/RateSheetMappingsListRateSheetIdsByCounterpartyV1Request.d.ts +0 -18
  361. package/dist/cjs/api/resources/billing/resources/rateSheetMappings/client/requests/RateSheetMappingsListRateSheetIdsByCounterpartyV1Request.js +0 -5
  362. package/dist/cjs/api/resources/billing/resources/rateSheetMappings/client/requests/RateSheetMappingsListV1Request.js +0 -5
  363. package/dist/cjs/api/resources/billing/resources/rateSheetMappings/client/requests/index.d.ts +0 -3
  364. package/dist/cjs/api/resources/billing/resources/rateSheetMappings/client/requests/index.js +0 -2
  365. package/dist/cjs/api/resources/billing/resources/rateSheetMappings/index.d.ts +0 -1
  366. package/dist/cjs/api/resources/billing/resources/rateSheetMappings/index.js +0 -17
  367. package/dist/cjs/api/resources/billing/resources/statements/client/Client.d.ts +0 -321
  368. package/dist/cjs/api/resources/billing/resources/statements/client/Client.js +0 -1334
  369. package/dist/cjs/api/resources/billing/resources/statements/client/index.d.ts +0 -2
  370. package/dist/cjs/api/resources/billing/resources/statements/client/index.js +0 -17
  371. package/dist/cjs/api/resources/billing/resources/statements/client/requests/StatementCreateClientReq.d.ts +0 -21
  372. package/dist/cjs/api/resources/billing/resources/statements/client/requests/StatementCreateClientReq.js +0 -5
  373. package/dist/cjs/api/resources/billing/resources/statements/client/requests/StatementExpandedRetrieveReq.d.ts +0 -12
  374. package/dist/cjs/api/resources/billing/resources/statements/client/requests/StatementExpandedRetrieveReq.js +0 -5
  375. package/dist/cjs/api/resources/billing/resources/statements/client/requests/StatementUpdateSettlementTypeReq.d.ts +0 -13
  376. package/dist/cjs/api/resources/billing/resources/statements/client/requests/StatementUpdateSettlementTypeReq.js +0 -5
  377. package/dist/cjs/api/resources/billing/resources/statements/client/requests/StatementsExpandedListV1Request.d.ts +0 -71
  378. package/dist/cjs/api/resources/billing/resources/statements/client/requests/StatementsExpandedListV1Request.js +0 -5
  379. package/dist/cjs/api/resources/billing/resources/statements/client/requests/StatementsListV1Request.d.ts +0 -71
  380. package/dist/cjs/api/resources/billing/resources/statements/client/requests/StatementsListV1Request.js +0 -5
  381. package/dist/cjs/api/resources/billing/resources/statements/client/requests/index.d.ts +0 -5
  382. package/dist/cjs/api/resources/billing/resources/statements/client/requests/index.js +0 -2
  383. package/dist/cjs/api/resources/billing/resources/statements/index.d.ts +0 -1
  384. package/dist/cjs/api/resources/billing/resources/statements/index.js +0 -17
  385. package/dist/cjs/api/resources/shipping/resources/orderGroups/client/Client.d.ts +0 -142
  386. package/dist/cjs/api/resources/shipping/resources/orderGroups/client/Client.js +0 -530
  387. package/dist/cjs/api/resources/shipping/resources/orderGroups/client/index.d.ts +0 -2
  388. package/dist/cjs/api/resources/shipping/resources/orderGroups/client/index.js +0 -17
  389. package/dist/cjs/api/resources/shipping/resources/orderGroups/client/requests/OrderGroupClientCreate1.js +0 -5
  390. package/dist/cjs/api/resources/shipping/resources/orderGroups/client/requests/OrderGroupClientUpdate1.d.ts +0 -12
  391. package/dist/cjs/api/resources/shipping/resources/orderGroups/client/requests/OrderGroupClientUpdate1.js +0 -5
  392. package/dist/cjs/api/resources/shipping/resources/orderGroups/client/requests/OrderGroupSetBillingReviewStatusReq.d.ts +0 -13
  393. package/dist/cjs/api/resources/shipping/resources/orderGroups/client/requests/OrderGroupSetBillingReviewStatusReq.js +0 -5
  394. package/dist/cjs/api/resources/shipping/resources/orderGroups/client/requests/OrderGroupsListV1Request.d.ts +0 -30
  395. package/dist/cjs/api/resources/shipping/resources/orderGroups/client/requests/OrderGroupsListV1Request.js +0 -5
  396. package/dist/cjs/api/resources/shipping/resources/orderGroups/client/requests/index.d.ts +0 -4
  397. package/dist/cjs/api/resources/shipping/resources/orderGroups/client/requests/index.js +0 -2
  398. package/dist/cjs/api/resources/shipping/resources/orderGroups/index.d.ts +0 -1
  399. package/dist/cjs/api/resources/shipping/resources/orderGroups/index.js +0 -17
  400. package/dist/cjs/api/resources/shipping/resources/orders/client/requests/OrdersUpdateDepartmentAndLabelReq.js +0 -5
  401. package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/resources/taskGroup/client/requests/SetRateSheetsReq.d.ts +0 -13
  402. package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/resources/taskGroup/client/requests/SetRateSheetsReq.js +0 -5
  403. package/dist/cjs/api/resources/shipping/resources/ordersAndOrderGroups/client/Client.d.ts +0 -73
  404. package/dist/cjs/api/resources/shipping/resources/ordersAndOrderGroups/client/Client.js +0 -260
  405. package/dist/cjs/api/resources/shipping/resources/ordersAndOrderGroups/client/index.d.ts +0 -2
  406. package/dist/cjs/api/resources/shipping/resources/ordersAndOrderGroups/client/index.js +0 -17
  407. package/dist/cjs/api/resources/shipping/resources/ordersAndOrderGroups/client/requests/OrdersAndOrderGroupsOrderGroupsListV1Request.d.ts +0 -32
  408. package/dist/cjs/api/resources/shipping/resources/ordersAndOrderGroups/client/requests/OrdersAndOrderGroupsOrderGroupsListV1Request.js +0 -5
  409. package/dist/cjs/api/resources/shipping/resources/ordersAndOrderGroups/client/requests/OrdersAndOrderGroupsUngroupedOrdersListV1Request.d.ts +0 -25
  410. package/dist/cjs/api/resources/shipping/resources/ordersAndOrderGroups/client/requests/OrdersAndOrderGroupsUngroupedOrdersListV1Request.js +0 -5
  411. package/dist/cjs/api/resources/shipping/resources/ordersAndOrderGroups/client/requests/index.d.ts +0 -2
  412. package/dist/cjs/api/resources/shipping/resources/ordersAndOrderGroups/client/requests/index.js +0 -2
  413. package/dist/cjs/api/resources/shipping/resources/ordersAndOrderGroups/index.d.ts +0 -1
  414. package/dist/cjs/api/resources/shipping/resources/ordersAndOrderGroups/index.js +0 -17
  415. package/dist/cjs/api/resources/shipping/resources/taskGroups/client/requests/TaskGroupQuoteForProviderPayDriverClientReq.d.ts +0 -13
  416. package/dist/cjs/api/resources/shipping/resources/taskGroups/client/requests/TaskGroupQuoteForProviderPayDriverClientReq.js +0 -5
  417. package/dist/cjs/api/resources/shipping/resources/taskGroups/client/requests/TaskGroupQuoteForProviderPayProviderClientReq.d.ts +0 -13
  418. package/dist/cjs/api/resources/shipping/resources/taskGroups/client/requests/TaskGroupQuoteForProviderPayProviderClientReq.js +0 -5
  419. package/dist/cjs/api/resources/shipping/resources/taskGroups/client/requests/TaskGroupQuoteForShipperPayProviderClientReq.d.ts +0 -13
  420. package/dist/cjs/api/resources/shipping/resources/taskGroups/client/requests/TaskGroupQuoteForShipperPayProviderClientReq.js +0 -5
  421. package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/workspaces/client/Client.d.ts +0 -62
  422. package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/workspaces/client/Client.js +0 -197
  423. package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/workspaces/client/index.d.ts +0 -2
  424. package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/workspaces/client/index.js +0 -17
  425. package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/workspaces/client/requests/WorkspacesListV1Request.d.ts +0 -21
  426. package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/workspaces/client/requests/WorkspacesListV1Request.js +0 -5
  427. package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/workspaces/client/requests/index.d.ts +0 -1
  428. package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/workspaces/client/requests/index.js +0 -2
  429. package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/workspaces/index.d.ts +0 -1
  430. package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/workspaces/index.js +0 -17
  431. package/dist/cjs/api/types/AttachBillingLedgerPeriodReq.d.ts +0 -6
  432. package/dist/cjs/api/types/AttachBillingLedgerPeriodReq.js +0 -5
  433. package/dist/cjs/api/types/AttachLigToVectorClientReq.d.ts +0 -6
  434. package/dist/cjs/api/types/AttachLigToVectorClientReq.js +0 -5
  435. package/dist/cjs/api/types/BillingLedger1.d.ts +0 -27
  436. package/dist/cjs/api/types/BillingLedger1.js +0 -5
  437. package/dist/cjs/api/types/BillingLedgerListRes.d.ts +0 -8
  438. package/dist/cjs/api/types/BillingLedgerListRes.js +0 -5
  439. package/dist/cjs/api/types/BillingLedgerPeriod1.d.ts +0 -35
  440. package/dist/cjs/api/types/BillingLedgerPeriod1.js +0 -5
  441. package/dist/cjs/api/types/BillingLedgerPeriodListRes.js +0 -5
  442. package/dist/cjs/api/types/BillingLedgerPeriodSortByEnum.d.ts +0 -9
  443. package/dist/cjs/api/types/BillingLedgerPeriodSortByEnum.js +0 -11
  444. package/dist/cjs/api/types/BillingLedgerSortByEnum.d.ts +0 -4
  445. package/dist/cjs/api/types/BillingLedgerSortByEnum.js +0 -5
  446. package/dist/cjs/api/types/BillingLedgerStatusEnum.d.ts +0 -8
  447. package/dist/cjs/api/types/BillingLedgerStatusEnum.js +0 -10
  448. package/dist/cjs/api/types/BillingLineItemGroupMessageWebhookPayload.d.ts +0 -13
  449. package/dist/cjs/api/types/BillingLineItemGroupMessageWebhookPayload.js +0 -5
  450. package/dist/cjs/api/types/BillingLineItemGroupS3ObjectAddedWebhookPayload.d.ts +0 -10
  451. package/dist/cjs/api/types/BillingLineItemGroupS3ObjectAddedWebhookPayload.js +0 -5
  452. package/dist/cjs/api/types/BillingLineItemS3ObjectAddedWebhookPayload.d.ts +0 -14
  453. package/dist/cjs/api/types/BillingLineItemS3ObjectAddedWebhookPayload.js +0 -5
  454. package/dist/cjs/api/types/BillingReviewStatusEnum.d.ts +0 -15
  455. package/dist/cjs/api/types/BillingReviewStatusEnum.js +0 -12
  456. package/dist/cjs/api/types/BillingStatementOpenedWebhookPayload.d.ts +0 -10
  457. package/dist/cjs/api/types/BillingStatementOpenedWebhookPayload.js +0 -5
  458. package/dist/cjs/api/types/BillingStatementPaidWebhookPayload.d.ts +0 -10
  459. package/dist/cjs/api/types/BillingStatementPaidWebhookPayload.js +0 -5
  460. package/dist/cjs/api/types/CargoOnFlightRateSheet1.d.ts +0 -16
  461. package/dist/cjs/api/types/CargoOnFlightRateSheet1.js +0 -5
  462. package/dist/cjs/api/types/CargoOnFlightRateSheetListRes.d.ts +0 -8
  463. package/dist/cjs/api/types/CargoOnFlightRateSheetListRes.js +0 -5
  464. package/dist/cjs/api/types/ChrtGroundProviderRateSheet1.d.ts +0 -32
  465. package/dist/cjs/api/types/ChrtGroundProviderRateSheet1.js +0 -5
  466. package/dist/cjs/api/types/ChrtGroundProviderRateSheetListRes.d.ts +0 -8
  467. package/dist/cjs/api/types/ChrtGroundProviderRateSheetListRes.js +0 -5
  468. package/dist/cjs/api/types/CreateLigFromRateSheetForVectorClientReq.js +0 -5
  469. package/dist/cjs/api/types/LineItem1.d.ts +0 -32
  470. package/dist/cjs/api/types/LineItem1.js +0 -5
  471. package/dist/cjs/api/types/LineItemClientCreate1.d.ts +0 -14
  472. package/dist/cjs/api/types/LineItemClientCreate1.js +0 -5
  473. package/dist/cjs/api/types/LineItemEnum1.d.ts +0 -39
  474. package/dist/cjs/api/types/LineItemEnum1.js +0 -35
  475. package/dist/cjs/api/types/LineItemGroup1.d.ts +0 -59
  476. package/dist/cjs/api/types/LineItemGroup1.js +0 -5
  477. package/dist/cjs/api/types/LineItemGroupLineItemsRes.d.ts +0 -11
  478. package/dist/cjs/api/types/LineItemGroupLineItemsRes.js +0 -5
  479. package/dist/cjs/api/types/LineItemGroupListRes.d.ts +0 -8
  480. package/dist/cjs/api/types/LineItemGroupListRes.js +0 -5
  481. package/dist/cjs/api/types/LineItemGroupMessage1.d.ts +0 -12
  482. package/dist/cjs/api/types/LineItemGroupMessage1.js +0 -5
  483. package/dist/cjs/api/types/LineItemGroupS3ObjectMetadata1.d.ts +0 -19
  484. package/dist/cjs/api/types/LineItemGroupS3ObjectMetadata1.js +0 -5
  485. package/dist/cjs/api/types/LineItemGroupStatusEnum1.d.ts +0 -30
  486. package/dist/cjs/api/types/LineItemGroupStatusEnum1.js +0 -13
  487. package/dist/cjs/api/types/LineItemS3ObjectMetadata1.d.ts +0 -19
  488. package/dist/cjs/api/types/LineItemS3ObjectMetadata1.js +0 -5
  489. package/dist/cjs/api/types/LineItemStatusEnum.d.ts +0 -9
  490. package/dist/cjs/api/types/LineItemStatusEnum.js +0 -11
  491. package/dist/cjs/api/types/OnboardCourierRateSheet1.d.ts +0 -13
  492. package/dist/cjs/api/types/OnboardCourierRateSheet1.js +0 -5
  493. package/dist/cjs/api/types/OnboardCourierRateSheetListRes.d.ts +0 -8
  494. package/dist/cjs/api/types/OnboardCourierRateSheetListRes.js +0 -5
  495. package/dist/cjs/api/types/OrderGroup1.d.ts +0 -21
  496. package/dist/cjs/api/types/OrderGroup1.js +0 -5
  497. package/dist/cjs/api/types/OrderGroupExpandedListRes.d.ts +0 -8
  498. package/dist/cjs/api/types/OrderGroupExpandedListRes.js +0 -5
  499. package/dist/cjs/api/types/OrderGroupExpandedRow.d.ts +0 -9
  500. package/dist/cjs/api/types/OrderGroupExpandedRow.js +0 -5
  501. package/dist/cjs/api/types/OrderGroupExpandedSortByEnum.d.ts +0 -10
  502. package/dist/cjs/api/types/OrderGroupListRes.js +0 -5
  503. package/dist/cjs/api/types/OrderGroupSortByEnum.d.ts +0 -9
  504. package/dist/cjs/api/types/OrderGroupSortByEnum.js +0 -11
  505. package/dist/cjs/api/types/RateSheetMapping1.d.ts +0 -17
  506. package/dist/cjs/api/types/RateSheetMapping1.js +0 -5
  507. package/dist/cjs/api/types/RateSheetMappingListRes.d.ts +0 -8
  508. package/dist/cjs/api/types/RateSheetMappingListRes.js +0 -5
  509. package/dist/cjs/api/types/ReelablesAssetSyncRes.d.ts +0 -8
  510. package/dist/cjs/api/types/ReelablesAssetSyncRes.js +0 -5
  511. package/dist/cjs/api/types/ReelablesWorkspace1.d.ts +0 -13
  512. package/dist/cjs/api/types/ReelablesWorkspace1.js +0 -5
  513. package/dist/cjs/api/types/ReelablesWorkspaceListRes.d.ts +0 -8
  514. package/dist/cjs/api/types/ReelablesWorkspaceListRes.js +0 -5
  515. package/dist/cjs/api/types/ReelablesWorkspaceSortByEnum.d.ts +0 -4
  516. package/dist/cjs/api/types/ReelablesWorkspaceSortByEnum.js +0 -5
  517. package/dist/cjs/api/types/ReelablesWorkspaceSyncRes.d.ts +0 -9
  518. package/dist/cjs/api/types/ReelablesWorkspaceSyncRes.js +0 -5
  519. package/dist/cjs/api/types/SettlementTypeEnum1.d.ts +0 -8
  520. package/dist/cjs/api/types/SettlementTypeEnum1.js +0 -10
  521. package/dist/cjs/api/types/Statement1.d.ts +0 -45
  522. package/dist/cjs/api/types/Statement1.js +0 -5
  523. package/dist/cjs/api/types/StatementExpandedListItem.d.ts +0 -9
  524. package/dist/cjs/api/types/StatementExpandedListItem.js +0 -5
  525. package/dist/cjs/api/types/StatementExpandedRes.d.ts +0 -8
  526. package/dist/cjs/api/types/StatementExpandedRes.js +0 -5
  527. package/dist/cjs/api/types/StatementSortByEnum.d.ts +0 -11
  528. package/dist/cjs/api/types/StatementSortByEnum.js +0 -13
  529. package/dist/cjs/api/types/StatementStatusEnum1.d.ts +0 -10
  530. package/dist/cjs/api/types/StatementStatusEnum1.js +0 -12
  531. package/dist/cjs/api/types/StatementsExpandedListRes.d.ts +0 -8
  532. package/dist/cjs/api/types/StatementsExpandedListRes.js +0 -5
  533. package/dist/cjs/api/types/StatementsListRes.d.ts +0 -8
  534. package/dist/cjs/api/types/StatementsListRes.js +0 -5
  535. package/dist/cjs/api/types/StripeConnectInvoiceStatusEnum.d.ts +0 -12
  536. package/dist/cjs/api/types/StripeConnectInvoiceStatusEnum.js +0 -14
  537. package/dist/cjs/api/types/TaskGroupQuoteResp.d.ts +0 -37
  538. package/dist/cjs/api/types/TaskGroupQuoteResp.js +0 -5
  539. package/dist/cjs/api/types/UngroupedOrderListRes.d.ts +0 -8
  540. package/dist/cjs/api/types/UngroupedOrderListRes.js +0 -5
  541. package/dist/cjs/api/types/UngroupedOrderRow.d.ts +0 -7
  542. package/dist/cjs/api/types/UngroupedOrderRow.js +0 -5
  543. package/dist/cjs/api/types/UngroupedOrderSortByEnum.d.ts +0 -11
  544. package/dist/cjs/api/types/UngroupedOrderSortByEnum.js +0 -13
  545. package/dist/cjs/api/types/UnitsEnum.d.ts +0 -8
  546. package/dist/cjs/api/types/UnitsEnum.js +0 -10
  547. package/dist/esm/api/resources/billing/resources/billingLedgerPeriods/client/Client.d.mts +0 -115
  548. package/dist/esm/api/resources/billing/resources/billingLedgerPeriods/client/Client.mjs +0 -388
  549. package/dist/esm/api/resources/billing/resources/billingLedgerPeriods/client/requests/BillingLedgerPeriodClientUpdate1.d.mts +0 -14
  550. package/dist/esm/api/resources/billing/resources/billingLedgerPeriods/client/requests/BillingLedgerPeriodsListV1Request.d.mts +0 -41
  551. package/dist/esm/api/resources/billing/resources/billingLedgerPeriods/client/requests/OpenPeriodReq.d.mts +0 -17
  552. package/dist/esm/api/resources/billing/resources/billingLedgerPeriods/client/requests/index.d.mts +0 -3
  553. package/dist/esm/api/resources/billing/resources/billingLedgers/client/Client.d.mts +0 -110
  554. package/dist/esm/api/resources/billing/resources/billingLedgers/client/Client.mjs +0 -374
  555. package/dist/esm/api/resources/billing/resources/billingLedgers/client/index.d.mts +0 -2
  556. package/dist/esm/api/resources/billing/resources/billingLedgers/client/index.mjs +0 -1
  557. package/dist/esm/api/resources/billing/resources/billingLedgers/client/requests/BillingLedgerClientCreate1.d.mts +0 -23
  558. package/dist/esm/api/resources/billing/resources/billingLedgers/client/requests/BillingLedgerClientUpdate1.d.mts +0 -13
  559. package/dist/esm/api/resources/billing/resources/billingLedgers/client/requests/BillingLedgersListV1Request.d.mts +0 -32
  560. package/dist/esm/api/resources/billing/resources/billingLedgers/client/requests/index.d.mts +0 -3
  561. package/dist/esm/api/resources/billing/resources/billingLedgers/client/requests/index.mjs +0 -1
  562. package/dist/esm/api/resources/billing/resources/billingLedgers/index.d.mts +0 -1
  563. package/dist/esm/api/resources/billing/resources/billingLedgers/index.mjs +0 -1
  564. package/dist/esm/api/resources/billing/resources/cargoOnFlightRateSheets/client/Client.d.mts +0 -132
  565. package/dist/esm/api/resources/billing/resources/cargoOnFlightRateSheets/client/Client.mjs +0 -468
  566. package/dist/esm/api/resources/billing/resources/cargoOnFlightRateSheets/client/index.d.mts +0 -2
  567. package/dist/esm/api/resources/billing/resources/cargoOnFlightRateSheets/client/index.mjs +0 -1
  568. package/dist/esm/api/resources/billing/resources/cargoOnFlightRateSheets/client/requests/CargoOnFlightRateSheetClientCreate1.d.mts +0 -19
  569. package/dist/esm/api/resources/billing/resources/cargoOnFlightRateSheets/client/requests/CargoOnFlightRateSheetClientUpdate1.d.mts +0 -21
  570. package/dist/esm/api/resources/billing/resources/cargoOnFlightRateSheets/client/requests/CargoOnFlightRateSheetsListV1Request.d.mts +0 -16
  571. package/dist/esm/api/resources/billing/resources/cargoOnFlightRateSheets/client/requests/index.d.mts +0 -3
  572. package/dist/esm/api/resources/billing/resources/cargoOnFlightRateSheets/client/requests/index.mjs +0 -1
  573. package/dist/esm/api/resources/billing/resources/cargoOnFlightRateSheets/index.d.mts +0 -1
  574. package/dist/esm/api/resources/billing/resources/cargoOnFlightRateSheets/index.mjs +0 -1
  575. package/dist/esm/api/resources/billing/resources/chrtGroundProviderRateSheets/client/Client.d.mts +0 -132
  576. package/dist/esm/api/resources/billing/resources/chrtGroundProviderRateSheets/client/Client.mjs +0 -471
  577. package/dist/esm/api/resources/billing/resources/chrtGroundProviderRateSheets/client/index.d.mts +0 -2
  578. package/dist/esm/api/resources/billing/resources/chrtGroundProviderRateSheets/client/index.mjs +0 -1
  579. package/dist/esm/api/resources/billing/resources/chrtGroundProviderRateSheets/client/requests/ChrtGroundProviderRateSheetClientCreate1.d.mts +0 -35
  580. package/dist/esm/api/resources/billing/resources/chrtGroundProviderRateSheets/client/requests/ChrtGroundProviderRateSheetClientUpdate1.d.mts +0 -46
  581. package/dist/esm/api/resources/billing/resources/chrtGroundProviderRateSheets/client/requests/ChrtGroundProviderRateSheetsListV1Request.d.mts +0 -16
  582. package/dist/esm/api/resources/billing/resources/chrtGroundProviderRateSheets/client/requests/index.d.mts +0 -3
  583. package/dist/esm/api/resources/billing/resources/chrtGroundProviderRateSheets/client/requests/index.mjs +0 -1
  584. package/dist/esm/api/resources/billing/resources/chrtGroundProviderRateSheets/index.d.mts +0 -1
  585. package/dist/esm/api/resources/billing/resources/chrtGroundProviderRateSheets/index.mjs +0 -1
  586. package/dist/esm/api/resources/billing/resources/lineItemGroups/client/Client.d.mts +0 -307
  587. package/dist/esm/api/resources/billing/resources/lineItemGroups/client/Client.mjs +0 -1166
  588. package/dist/esm/api/resources/billing/resources/lineItemGroups/client/index.d.mts +0 -2
  589. package/dist/esm/api/resources/billing/resources/lineItemGroups/client/index.mjs +0 -1
  590. package/dist/esm/api/resources/billing/resources/lineItemGroups/client/requests/LineItemGroupAdHocCreateClientReq.d.mts +0 -23
  591. package/dist/esm/api/resources/billing/resources/lineItemGroups/client/requests/LineItemGroupsListV1Request.d.mts +0 -53
  592. package/dist/esm/api/resources/billing/resources/lineItemGroups/client/requests/SharedTaskGroupMileageCreateForProviderPayDriverClientReq.d.mts +0 -23
  593. package/dist/esm/api/resources/billing/resources/lineItemGroups/client/requests/SharedTaskGroupMileageCreateForProviderPayProviderClientReq.d.mts +0 -24
  594. package/dist/esm/api/resources/billing/resources/lineItemGroups/client/requests/index.d.mts +0 -4
  595. package/dist/esm/api/resources/billing/resources/lineItemGroups/client/requests/index.mjs +0 -1
  596. package/dist/esm/api/resources/billing/resources/lineItemGroups/index.d.mts +0 -2
  597. package/dist/esm/api/resources/billing/resources/lineItemGroups/index.mjs +0 -2
  598. package/dist/esm/api/resources/billing/resources/lineItemGroups/resources/index.d.mts +0 -4
  599. package/dist/esm/api/resources/billing/resources/lineItemGroups/resources/index.mjs +0 -4
  600. package/dist/esm/api/resources/billing/resources/lineItemGroups/resources/messages/client/Client.d.mts +0 -50
  601. package/dist/esm/api/resources/billing/resources/lineItemGroups/resources/messages/client/Client.mjs +0 -96
  602. package/dist/esm/api/resources/billing/resources/lineItemGroups/resources/messages/client/index.d.mts +0 -2
  603. package/dist/esm/api/resources/billing/resources/lineItemGroups/resources/messages/client/index.mjs +0 -1
  604. package/dist/esm/api/resources/billing/resources/lineItemGroups/resources/messages/client/requests/index.d.mts +0 -1
  605. package/dist/esm/api/resources/billing/resources/lineItemGroups/resources/messages/client/requests/index.mjs +0 -1
  606. package/dist/esm/api/resources/billing/resources/lineItemGroups/resources/messages/index.d.mts +0 -1
  607. package/dist/esm/api/resources/billing/resources/lineItemGroups/resources/messages/index.mjs +0 -1
  608. package/dist/esm/api/resources/billing/resources/lineItemGroups/resources/s3Objects/client/Client.d.mts +0 -83
  609. package/dist/esm/api/resources/billing/resources/lineItemGroups/resources/s3Objects/client/Client.mjs +0 -271
  610. package/dist/esm/api/resources/billing/resources/lineItemGroups/resources/s3Objects/client/index.d.mts +0 -2
  611. package/dist/esm/api/resources/billing/resources/lineItemGroups/resources/s3Objects/client/index.mjs +0 -1
  612. package/dist/esm/api/resources/billing/resources/lineItemGroups/resources/s3Objects/client/requests/BodyLineItemGroupsS3ObjectPostAddV1.d.mts +0 -13
  613. package/dist/esm/api/resources/billing/resources/lineItemGroups/resources/s3Objects/client/requests/index.d.mts +0 -1
  614. package/dist/esm/api/resources/billing/resources/lineItemGroups/resources/s3Objects/client/requests/index.mjs +0 -1
  615. package/dist/esm/api/resources/billing/resources/lineItemGroups/resources/s3Objects/index.d.mts +0 -1
  616. package/dist/esm/api/resources/billing/resources/lineItemGroups/resources/s3Objects/index.mjs +0 -1
  617. package/dist/esm/api/resources/billing/resources/lineItems/client/Client.d.mts +0 -23
  618. package/dist/esm/api/resources/billing/resources/lineItems/client/Client.mjs +0 -13
  619. package/dist/esm/api/resources/billing/resources/lineItems/client/index.d.mts +0 -1
  620. package/dist/esm/api/resources/billing/resources/lineItems/client/index.mjs +0 -1
  621. package/dist/esm/api/resources/billing/resources/lineItems/index.d.mts +0 -2
  622. package/dist/esm/api/resources/billing/resources/lineItems/index.mjs +0 -2
  623. package/dist/esm/api/resources/billing/resources/lineItems/resources/index.d.mts +0 -2
  624. package/dist/esm/api/resources/billing/resources/lineItems/resources/index.mjs +0 -2
  625. package/dist/esm/api/resources/billing/resources/lineItems/resources/s3Objects/client/Client.d.mts +0 -83
  626. package/dist/esm/api/resources/billing/resources/lineItems/resources/s3Objects/client/Client.mjs +0 -271
  627. package/dist/esm/api/resources/billing/resources/lineItems/resources/s3Objects/client/index.d.mts +0 -2
  628. package/dist/esm/api/resources/billing/resources/lineItems/resources/s3Objects/client/index.mjs +0 -1
  629. package/dist/esm/api/resources/billing/resources/lineItems/resources/s3Objects/client/requests/BodyLineItemsS3ObjectPostAddV1.d.mts +0 -13
  630. package/dist/esm/api/resources/billing/resources/lineItems/resources/s3Objects/client/requests/index.d.mts +0 -1
  631. package/dist/esm/api/resources/billing/resources/lineItems/resources/s3Objects/client/requests/index.mjs +0 -1
  632. package/dist/esm/api/resources/billing/resources/lineItems/resources/s3Objects/index.d.mts +0 -1
  633. package/dist/esm/api/resources/billing/resources/lineItems/resources/s3Objects/index.mjs +0 -1
  634. package/dist/esm/api/resources/billing/resources/onboardCourierRateSheets/client/Client.d.mts +0 -132
  635. package/dist/esm/api/resources/billing/resources/onboardCourierRateSheets/client/Client.mjs +0 -468
  636. package/dist/esm/api/resources/billing/resources/onboardCourierRateSheets/client/index.d.mts +0 -2
  637. package/dist/esm/api/resources/billing/resources/onboardCourierRateSheets/client/index.mjs +0 -1
  638. package/dist/esm/api/resources/billing/resources/onboardCourierRateSheets/client/requests/OnboardCourierRateSheetClientCreate1.d.mts +0 -16
  639. package/dist/esm/api/resources/billing/resources/onboardCourierRateSheets/client/requests/OnboardCourierRateSheetClientUpdate1.d.mts +0 -15
  640. package/dist/esm/api/resources/billing/resources/onboardCourierRateSheets/client/requests/OnboardCourierRateSheetsListV1Request.d.mts +0 -16
  641. package/dist/esm/api/resources/billing/resources/onboardCourierRateSheets/client/requests/index.d.mts +0 -3
  642. package/dist/esm/api/resources/billing/resources/onboardCourierRateSheets/client/requests/index.mjs +0 -1
  643. package/dist/esm/api/resources/billing/resources/onboardCourierRateSheets/index.d.mts +0 -1
  644. package/dist/esm/api/resources/billing/resources/onboardCourierRateSheets/index.mjs +0 -1
  645. package/dist/esm/api/resources/billing/resources/rateSheetMappings/client/Client.d.mts +0 -155
  646. package/dist/esm/api/resources/billing/resources/rateSheetMappings/client/index.d.mts +0 -2
  647. package/dist/esm/api/resources/billing/resources/rateSheetMappings/client/index.mjs +0 -1
  648. package/dist/esm/api/resources/billing/resources/rateSheetMappings/client/requests/RateSheetMappingClientCreate1.d.mts +0 -20
  649. package/dist/esm/api/resources/billing/resources/rateSheetMappings/client/requests/RateSheetMappingsListRateSheetIdsByCounterpartyV1Request.d.mts +0 -18
  650. package/dist/esm/api/resources/billing/resources/rateSheetMappings/client/requests/RateSheetMappingsListRateSheetIdsByCounterpartyV1Request.mjs +0 -4
  651. package/dist/esm/api/resources/billing/resources/rateSheetMappings/client/requests/RateSheetMappingsListV1Request.mjs +0 -4
  652. package/dist/esm/api/resources/billing/resources/rateSheetMappings/client/requests/index.d.mts +0 -3
  653. package/dist/esm/api/resources/billing/resources/rateSheetMappings/client/requests/index.mjs +0 -1
  654. package/dist/esm/api/resources/billing/resources/rateSheetMappings/index.d.mts +0 -1
  655. package/dist/esm/api/resources/billing/resources/rateSheetMappings/index.mjs +0 -1
  656. package/dist/esm/api/resources/billing/resources/statements/client/Client.d.mts +0 -321
  657. package/dist/esm/api/resources/billing/resources/statements/client/Client.mjs +0 -1297
  658. package/dist/esm/api/resources/billing/resources/statements/client/index.d.mts +0 -2
  659. package/dist/esm/api/resources/billing/resources/statements/client/index.mjs +0 -1
  660. package/dist/esm/api/resources/billing/resources/statements/client/requests/StatementCreateClientReq.d.mts +0 -21
  661. package/dist/esm/api/resources/billing/resources/statements/client/requests/StatementCreateClientReq.mjs +0 -4
  662. package/dist/esm/api/resources/billing/resources/statements/client/requests/StatementExpandedRetrieveReq.d.mts +0 -12
  663. package/dist/esm/api/resources/billing/resources/statements/client/requests/StatementExpandedRetrieveReq.mjs +0 -4
  664. package/dist/esm/api/resources/billing/resources/statements/client/requests/StatementUpdateSettlementTypeReq.d.mts +0 -13
  665. package/dist/esm/api/resources/billing/resources/statements/client/requests/StatementUpdateSettlementTypeReq.mjs +0 -4
  666. package/dist/esm/api/resources/billing/resources/statements/client/requests/StatementsExpandedListV1Request.d.mts +0 -71
  667. package/dist/esm/api/resources/billing/resources/statements/client/requests/StatementsExpandedListV1Request.mjs +0 -4
  668. package/dist/esm/api/resources/billing/resources/statements/client/requests/StatementsListV1Request.d.mts +0 -71
  669. package/dist/esm/api/resources/billing/resources/statements/client/requests/StatementsListV1Request.mjs +0 -4
  670. package/dist/esm/api/resources/billing/resources/statements/client/requests/index.d.mts +0 -5
  671. package/dist/esm/api/resources/billing/resources/statements/client/requests/index.mjs +0 -1
  672. package/dist/esm/api/resources/billing/resources/statements/index.d.mts +0 -1
  673. package/dist/esm/api/resources/billing/resources/statements/index.mjs +0 -1
  674. package/dist/esm/api/resources/shipping/resources/orderGroups/client/Client.d.mts +0 -142
  675. package/dist/esm/api/resources/shipping/resources/orderGroups/client/Client.mjs +0 -493
  676. package/dist/esm/api/resources/shipping/resources/orderGroups/client/index.d.mts +0 -2
  677. package/dist/esm/api/resources/shipping/resources/orderGroups/client/index.mjs +0 -1
  678. package/dist/esm/api/resources/shipping/resources/orderGroups/client/requests/OrderGroupClientCreate1.mjs +0 -4
  679. package/dist/esm/api/resources/shipping/resources/orderGroups/client/requests/OrderGroupClientUpdate1.d.mts +0 -12
  680. package/dist/esm/api/resources/shipping/resources/orderGroups/client/requests/OrderGroupClientUpdate1.mjs +0 -4
  681. package/dist/esm/api/resources/shipping/resources/orderGroups/client/requests/OrderGroupSetBillingReviewStatusReq.d.mts +0 -13
  682. package/dist/esm/api/resources/shipping/resources/orderGroups/client/requests/OrderGroupSetBillingReviewStatusReq.mjs +0 -4
  683. package/dist/esm/api/resources/shipping/resources/orderGroups/client/requests/OrderGroupsListV1Request.d.mts +0 -30
  684. package/dist/esm/api/resources/shipping/resources/orderGroups/client/requests/OrderGroupsListV1Request.mjs +0 -4
  685. package/dist/esm/api/resources/shipping/resources/orderGroups/client/requests/index.d.mts +0 -4
  686. package/dist/esm/api/resources/shipping/resources/orderGroups/client/requests/index.mjs +0 -1
  687. package/dist/esm/api/resources/shipping/resources/orderGroups/index.d.mts +0 -1
  688. package/dist/esm/api/resources/shipping/resources/orderGroups/index.mjs +0 -1
  689. package/dist/esm/api/resources/shipping/resources/orders/client/requests/OrdersUpdateDepartmentAndLabelReq.mjs +0 -4
  690. package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/resources/taskGroup/client/requests/SetRateSheetsReq.d.mts +0 -13
  691. package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/resources/taskGroup/client/requests/SetRateSheetsReq.mjs +0 -4
  692. package/dist/esm/api/resources/shipping/resources/ordersAndOrderGroups/client/Client.d.mts +0 -73
  693. package/dist/esm/api/resources/shipping/resources/ordersAndOrderGroups/client/Client.mjs +0 -223
  694. package/dist/esm/api/resources/shipping/resources/ordersAndOrderGroups/client/index.d.mts +0 -2
  695. package/dist/esm/api/resources/shipping/resources/ordersAndOrderGroups/client/index.mjs +0 -1
  696. package/dist/esm/api/resources/shipping/resources/ordersAndOrderGroups/client/requests/OrdersAndOrderGroupsOrderGroupsListV1Request.d.mts +0 -32
  697. package/dist/esm/api/resources/shipping/resources/ordersAndOrderGroups/client/requests/OrdersAndOrderGroupsOrderGroupsListV1Request.mjs +0 -4
  698. package/dist/esm/api/resources/shipping/resources/ordersAndOrderGroups/client/requests/OrdersAndOrderGroupsUngroupedOrdersListV1Request.d.mts +0 -25
  699. package/dist/esm/api/resources/shipping/resources/ordersAndOrderGroups/client/requests/OrdersAndOrderGroupsUngroupedOrdersListV1Request.mjs +0 -4
  700. package/dist/esm/api/resources/shipping/resources/ordersAndOrderGroups/client/requests/index.d.mts +0 -2
  701. package/dist/esm/api/resources/shipping/resources/ordersAndOrderGroups/client/requests/index.mjs +0 -1
  702. package/dist/esm/api/resources/shipping/resources/ordersAndOrderGroups/index.d.mts +0 -1
  703. package/dist/esm/api/resources/shipping/resources/ordersAndOrderGroups/index.mjs +0 -1
  704. package/dist/esm/api/resources/shipping/resources/taskGroups/client/requests/TaskGroupQuoteForProviderPayDriverClientReq.d.mts +0 -13
  705. package/dist/esm/api/resources/shipping/resources/taskGroups/client/requests/TaskGroupQuoteForProviderPayDriverClientReq.mjs +0 -4
  706. package/dist/esm/api/resources/shipping/resources/taskGroups/client/requests/TaskGroupQuoteForProviderPayProviderClientReq.d.mts +0 -13
  707. package/dist/esm/api/resources/shipping/resources/taskGroups/client/requests/TaskGroupQuoteForProviderPayProviderClientReq.mjs +0 -4
  708. package/dist/esm/api/resources/shipping/resources/taskGroups/client/requests/TaskGroupQuoteForShipperPayProviderClientReq.d.mts +0 -13
  709. package/dist/esm/api/resources/shipping/resources/taskGroups/client/requests/TaskGroupQuoteForShipperPayProviderClientReq.mjs +0 -4
  710. package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/workspaces/client/Client.d.mts +0 -62
  711. package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/workspaces/client/Client.mjs +0 -160
  712. package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/workspaces/client/index.d.mts +0 -2
  713. package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/workspaces/client/index.mjs +0 -1
  714. package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/workspaces/client/requests/WorkspacesListV1Request.d.mts +0 -21
  715. package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/workspaces/client/requests/WorkspacesListV1Request.mjs +0 -4
  716. package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/workspaces/client/requests/index.d.mts +0 -1
  717. package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/workspaces/client/requests/index.mjs +0 -1
  718. package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/workspaces/index.d.mts +0 -1
  719. package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/workspaces/index.mjs +0 -1
  720. package/dist/esm/api/types/AttachBillingLedgerPeriodReq.d.mts +0 -6
  721. package/dist/esm/api/types/AttachBillingLedgerPeriodReq.mjs +0 -4
  722. package/dist/esm/api/types/AttachLigToVectorClientReq.d.mts +0 -6
  723. package/dist/esm/api/types/AttachLigToVectorClientReq.mjs +0 -4
  724. package/dist/esm/api/types/BillingLedger1.d.mts +0 -27
  725. package/dist/esm/api/types/BillingLedger1.mjs +0 -4
  726. package/dist/esm/api/types/BillingLedgerListRes.mjs +0 -4
  727. package/dist/esm/api/types/BillingLedgerPeriod1.d.mts +0 -35
  728. package/dist/esm/api/types/BillingLedgerPeriod1.mjs +0 -4
  729. package/dist/esm/api/types/BillingLedgerPeriodListRes.mjs +0 -4
  730. package/dist/esm/api/types/BillingLedgerPeriodSortByEnum.d.mts +0 -9
  731. package/dist/esm/api/types/BillingLedgerPeriodSortByEnum.mjs +0 -8
  732. package/dist/esm/api/types/BillingLedgerSortByEnum.d.mts +0 -4
  733. package/dist/esm/api/types/BillingLedgerSortByEnum.mjs +0 -4
  734. package/dist/esm/api/types/BillingLedgerStatusEnum.d.mts +0 -8
  735. package/dist/esm/api/types/BillingLedgerStatusEnum.mjs +0 -7
  736. package/dist/esm/api/types/BillingLineItemGroupMessageWebhookPayload.d.mts +0 -13
  737. package/dist/esm/api/types/BillingLineItemGroupMessageWebhookPayload.mjs +0 -4
  738. package/dist/esm/api/types/BillingLineItemGroupS3ObjectAddedWebhookPayload.d.mts +0 -10
  739. package/dist/esm/api/types/BillingLineItemGroupS3ObjectAddedWebhookPayload.mjs +0 -4
  740. package/dist/esm/api/types/BillingLineItemS3ObjectAddedWebhookPayload.d.mts +0 -14
  741. package/dist/esm/api/types/BillingLineItemS3ObjectAddedWebhookPayload.mjs +0 -4
  742. package/dist/esm/api/types/BillingReviewStatusEnum.d.mts +0 -15
  743. package/dist/esm/api/types/BillingReviewStatusEnum.mjs +0 -9
  744. package/dist/esm/api/types/BillingStatementOpenedWebhookPayload.d.mts +0 -10
  745. package/dist/esm/api/types/BillingStatementOpenedWebhookPayload.mjs +0 -4
  746. package/dist/esm/api/types/BillingStatementPaidWebhookPayload.d.mts +0 -10
  747. package/dist/esm/api/types/BillingStatementPaidWebhookPayload.mjs +0 -4
  748. package/dist/esm/api/types/CargoOnFlightRateSheet1.d.mts +0 -16
  749. package/dist/esm/api/types/CargoOnFlightRateSheet1.mjs +0 -4
  750. package/dist/esm/api/types/CargoOnFlightRateSheetListRes.d.mts +0 -8
  751. package/dist/esm/api/types/CargoOnFlightRateSheetListRes.mjs +0 -4
  752. package/dist/esm/api/types/ChrtGroundProviderRateSheet1.d.mts +0 -32
  753. package/dist/esm/api/types/ChrtGroundProviderRateSheet1.mjs +0 -4
  754. package/dist/esm/api/types/ChrtGroundProviderRateSheetListRes.d.mts +0 -8
  755. package/dist/esm/api/types/ChrtGroundProviderRateSheetListRes.mjs +0 -4
  756. package/dist/esm/api/types/CreateLigFromRateSheetForVectorClientReq.mjs +0 -4
  757. package/dist/esm/api/types/LineItem1.d.mts +0 -32
  758. package/dist/esm/api/types/LineItem1.mjs +0 -4
  759. package/dist/esm/api/types/LineItemClientCreate1.d.mts +0 -14
  760. package/dist/esm/api/types/LineItemClientCreate1.mjs +0 -4
  761. package/dist/esm/api/types/LineItemEnum1.d.mts +0 -39
  762. package/dist/esm/api/types/LineItemEnum1.mjs +0 -32
  763. package/dist/esm/api/types/LineItemGroup1.d.mts +0 -59
  764. package/dist/esm/api/types/LineItemGroup1.mjs +0 -4
  765. package/dist/esm/api/types/LineItemGroupLineItemsRes.d.mts +0 -11
  766. package/dist/esm/api/types/LineItemGroupLineItemsRes.mjs +0 -4
  767. package/dist/esm/api/types/LineItemGroupListRes.d.mts +0 -8
  768. package/dist/esm/api/types/LineItemGroupListRes.mjs +0 -4
  769. package/dist/esm/api/types/LineItemGroupMessage1.d.mts +0 -12
  770. package/dist/esm/api/types/LineItemGroupMessage1.mjs +0 -4
  771. package/dist/esm/api/types/LineItemGroupS3ObjectMetadata1.d.mts +0 -19
  772. package/dist/esm/api/types/LineItemGroupS3ObjectMetadata1.mjs +0 -4
  773. package/dist/esm/api/types/LineItemGroupStatusEnum1.d.mts +0 -30
  774. package/dist/esm/api/types/LineItemGroupStatusEnum1.mjs +0 -10
  775. package/dist/esm/api/types/LineItemS3ObjectMetadata1.d.mts +0 -19
  776. package/dist/esm/api/types/LineItemS3ObjectMetadata1.mjs +0 -4
  777. package/dist/esm/api/types/LineItemStatusEnum.d.mts +0 -9
  778. package/dist/esm/api/types/LineItemStatusEnum.mjs +0 -8
  779. package/dist/esm/api/types/OnboardCourierRateSheet1.d.mts +0 -13
  780. package/dist/esm/api/types/OnboardCourierRateSheet1.mjs +0 -4
  781. package/dist/esm/api/types/OnboardCourierRateSheetListRes.d.mts +0 -8
  782. package/dist/esm/api/types/OnboardCourierRateSheetListRes.mjs +0 -4
  783. package/dist/esm/api/types/OrderGroup1.d.mts +0 -21
  784. package/dist/esm/api/types/OrderGroup1.mjs +0 -4
  785. package/dist/esm/api/types/OrderGroupExpandedListRes.d.mts +0 -8
  786. package/dist/esm/api/types/OrderGroupExpandedListRes.mjs +0 -4
  787. package/dist/esm/api/types/OrderGroupExpandedRow.d.mts +0 -9
  788. package/dist/esm/api/types/OrderGroupExpandedRow.mjs +0 -4
  789. package/dist/esm/api/types/OrderGroupExpandedSortByEnum.d.mts +0 -10
  790. package/dist/esm/api/types/OrderGroupExpandedSortByEnum.mjs +0 -9
  791. package/dist/esm/api/types/OrderGroupListRes.d.mts +0 -8
  792. package/dist/esm/api/types/OrderGroupListRes.mjs +0 -4
  793. package/dist/esm/api/types/OrderGroupSortByEnum.d.mts +0 -9
  794. package/dist/esm/api/types/RateSheetMapping1.d.mts +0 -17
  795. package/dist/esm/api/types/RateSheetMapping1.mjs +0 -4
  796. package/dist/esm/api/types/RateSheetMappingListRes.d.mts +0 -8
  797. package/dist/esm/api/types/RateSheetMappingListRes.mjs +0 -4
  798. package/dist/esm/api/types/ReelablesAssetSyncRes.d.mts +0 -8
  799. package/dist/esm/api/types/ReelablesAssetSyncRes.mjs +0 -4
  800. package/dist/esm/api/types/ReelablesWorkspace1.d.mts +0 -13
  801. package/dist/esm/api/types/ReelablesWorkspace1.mjs +0 -4
  802. package/dist/esm/api/types/ReelablesWorkspaceListRes.d.mts +0 -8
  803. package/dist/esm/api/types/ReelablesWorkspaceListRes.mjs +0 -4
  804. package/dist/esm/api/types/ReelablesWorkspaceSortByEnum.d.mts +0 -4
  805. package/dist/esm/api/types/ReelablesWorkspaceSortByEnum.mjs +0 -4
  806. package/dist/esm/api/types/ReelablesWorkspaceSyncRes.d.mts +0 -9
  807. package/dist/esm/api/types/ReelablesWorkspaceSyncRes.mjs +0 -4
  808. package/dist/esm/api/types/SettlementTypeEnum1.d.mts +0 -8
  809. package/dist/esm/api/types/SettlementTypeEnum1.mjs +0 -7
  810. package/dist/esm/api/types/Statement1.d.mts +0 -45
  811. package/dist/esm/api/types/Statement1.mjs +0 -4
  812. package/dist/esm/api/types/StatementExpandedListItem.d.mts +0 -9
  813. package/dist/esm/api/types/StatementExpandedListItem.mjs +0 -4
  814. package/dist/esm/api/types/StatementExpandedRes.d.mts +0 -8
  815. package/dist/esm/api/types/StatementExpandedRes.mjs +0 -4
  816. package/dist/esm/api/types/StatementSortByEnum.d.mts +0 -11
  817. package/dist/esm/api/types/StatementSortByEnum.mjs +0 -10
  818. package/dist/esm/api/types/StatementStatusEnum1.d.mts +0 -10
  819. package/dist/esm/api/types/StatementStatusEnum1.mjs +0 -9
  820. package/dist/esm/api/types/StatementsExpandedListRes.d.mts +0 -8
  821. package/dist/esm/api/types/StatementsExpandedListRes.mjs +0 -4
  822. package/dist/esm/api/types/StatementsListRes.d.mts +0 -8
  823. package/dist/esm/api/types/StatementsListRes.mjs +0 -4
  824. package/dist/esm/api/types/StripeConnectInvoiceStatusEnum.d.mts +0 -12
  825. package/dist/esm/api/types/StripeConnectInvoiceStatusEnum.mjs +0 -11
  826. package/dist/esm/api/types/TaskGroupQuoteResp.d.mts +0 -37
  827. package/dist/esm/api/types/TaskGroupQuoteResp.mjs +0 -4
  828. package/dist/esm/api/types/UngroupedOrderListRes.d.mts +0 -8
  829. package/dist/esm/api/types/UngroupedOrderListRes.mjs +0 -4
  830. package/dist/esm/api/types/UngroupedOrderRow.d.mts +0 -7
  831. package/dist/esm/api/types/UngroupedOrderRow.mjs +0 -4
  832. package/dist/esm/api/types/UngroupedOrderSortByEnum.d.mts +0 -11
  833. package/dist/esm/api/types/UngroupedOrderSortByEnum.mjs +0 -10
  834. package/dist/esm/api/types/UnitsEnum.d.mts +0 -8
  835. package/dist/esm/api/types/UnitsEnum.mjs +0 -7
  836. /package/dist/cjs/api/resources/{billing/resources/billingLedgerPeriods → billingNew/resources/billingPeriods}/client/index.d.ts +0 -0
  837. /package/dist/cjs/api/resources/{billing/resources/billingLedgerPeriods → billingNew/resources/billingPeriods}/client/index.js +0 -0
  838. /package/dist/cjs/api/resources/{billing/resources/billingLedgerPeriods/client/requests/BillingLedgerPeriodClientUpdate1.js → billingNew/resources/billingPeriods/client/requests/BillingPeriodClientCreate1.js} +0 -0
  839. /package/dist/cjs/api/resources/{billing/resources/billingLedgerPeriods/client/requests/BillingLedgerPeriodsListV1Request.js → billingNew/resources/billingPeriods/client/requests/BillingPeriodClientUpdate1.js} +0 -0
  840. /package/dist/cjs/api/resources/{billing/resources/billingLedgerPeriods/client/requests/OpenPeriodReq.js → billingNew/resources/billingPeriods/client/requests/BillingPeriodsListV1Request.js} +0 -0
  841. /package/dist/cjs/api/resources/{billing/resources/billingLedgerPeriods → billingNew/resources/billingPeriods}/client/requests/index.js +0 -0
  842. /package/dist/cjs/api/resources/{billing/resources/billingLedgerPeriods → billingNew/resources/billingPeriods}/index.d.ts +0 -0
  843. /package/dist/cjs/api/resources/{billing/resources/billingLedgerPeriods → billingNew/resources/billingPeriods}/index.js +0 -0
  844. /package/dist/cjs/api/resources/{billing/resources/billingLedgers/client/requests/BillingLedgerClientCreate1.js → billingNew/resources/invoiceLineItems/client/requests/CreateInvoiceLineItemsFromAwbCostsReq.js} +0 -0
  845. /package/dist/cjs/api/resources/{billing/resources/billingLedgers/client/requests/BillingLedgerClientUpdate1.js → billingNew/resources/orders/client/requests/OrdersListAwbBillingForCoordinatorOperatorsV1Request.js} +0 -0
  846. /package/dist/cjs/api/resources/{billing/resources/billingLedgers/client/requests/BillingLedgersListV1Request.js → shipping/resources/orders/client/requests/OrdersUpdateDepartmentReq.js} +0 -0
  847. /package/dist/cjs/api/resources/{billing/resources/cargoOnFlightRateSheets/client/requests/CargoOnFlightRateSheetClientCreate1.js → shipping/resources/orders/client/requests/OrdersUpdateLabelReq.js} +0 -0
  848. /package/dist/cjs/api/resources/{billing/resources/cargoOnFlightRateSheets/client/requests/CargoOnFlightRateSheetClientUpdate1.js → trackingIntegrations/resources/reelables/resources/assets/client/requests/ReelablesAssetClientCreate1.js} +0 -0
  849. /package/dist/cjs/api/resources/{billing/resources/cargoOnFlightRateSheets/client/requests/CargoOnFlightRateSheetsListV1Request.js → trackingIntegrations/resources/reelables/resources/assets/client/requests/ReelablesAssetLabelLinkReq.js} +0 -0
  850. /package/dist/cjs/api/resources/{billing/resources/chrtGroundProviderRateSheets/client/requests/ChrtGroundProviderRateSheetClientCreate1.js → trackingIntegrations/resources/reelables/resources/timeseries/client/requests/TimeseriesRefreshV1Request.js} +0 -0
  851. /package/dist/cjs/api/{resources/billing/resources/chrtGroundProviderRateSheets/client/requests/ChrtGroundProviderRateSheetClientUpdate1.js → types/BillingPeriod1.js} +0 -0
  852. /package/dist/cjs/api/{resources/billing/resources/chrtGroundProviderRateSheets/client/requests/ChrtGroundProviderRateSheetsListV1Request.js → types/BillingPeriodExpanded1.js} +0 -0
  853. /package/dist/cjs/api/{resources/billing/resources/lineItemGroups/client/requests/LineItemGroupAdHocCreateClientReq.js → types/BillingPeriodListRes.js} +0 -0
  854. /package/dist/cjs/api/{resources/billing/resources/lineItemGroups/client/requests/LineItemGroupsListV1Request.js → types/BillingPeriodTaskGroupsReq.js} +0 -0
  855. /package/dist/cjs/api/{resources/billing/resources/lineItemGroups/client/requests/SharedTaskGroupMileageCreateForProviderPayDriverClientReq.js → types/CreateInvoiceLineItemsFromAwbCostsCreatedAwb1.js} +0 -0
  856. /package/dist/cjs/api/{resources/billing/resources/lineItemGroups/client/requests/SharedTaskGroupMileageCreateForProviderPayProviderClientReq.js → types/CreateInvoiceLineItemsFromAwbCostsInvoiceRes1.js} +0 -0
  857. /package/dist/cjs/api/{resources/billing/resources/lineItemGroups/resources/messages/client/requests/AddLineItemGroupMessageReq.js → types/CreateInvoiceLineItemsFromAwbCostsItem1.js} +0 -0
  858. /package/dist/cjs/api/{resources/billing/resources/lineItemGroups/resources/s3Objects/client/requests/BodyLineItemGroupsS3ObjectPostAddV1.js → types/CreateInvoiceLineItemsFromAwbCostsRejectedAwb1.js} +0 -0
  859. /package/dist/cjs/api/{resources/billing/resources/lineItems/resources/s3Objects/client/requests/BodyLineItemsS3ObjectPostAddV1.js → types/CreateInvoiceLineItemsFromAwbCostsRes.js} +0 -0
  860. /package/dist/cjs/api/{resources/billing/resources/onboardCourierRateSheets/client/requests/OnboardCourierRateSheetClientCreate1.js → types/OrderAwbBillingAccount1.js} +0 -0
  861. /package/dist/cjs/api/{resources/billing/resources/onboardCourierRateSheets/client/requests/OnboardCourierRateSheetClientUpdate1.js → types/OrderAwbBillingListItem1.js} +0 -0
  862. /package/dist/cjs/api/{resources/billing/resources/onboardCourierRateSheets/client/requests/OnboardCourierRateSheetsListV1Request.js → types/OrderAwbBillingListRes.js} +0 -0
  863. /package/dist/cjs/api/{resources/billing/resources/rateSheetMappings/client/requests/RateSheetMappingClientCreate1.js → types/OrderBillingPeriod1.js} +0 -0
  864. /package/dist/esm/api/resources/{billing/resources/billingLedgerPeriods → billingNew/resources/billingPeriods}/client/index.d.mts +0 -0
  865. /package/dist/esm/api/resources/{billing/resources/billingLedgerPeriods → billingNew/resources/billingPeriods}/client/index.mjs +0 -0
  866. /package/dist/esm/api/resources/{billing/resources/billingLedgerPeriods/client/requests/BillingLedgerPeriodClientUpdate1.mjs → billingNew/resources/billingPeriods/client/requests/BillingPeriodClientCreate1.mjs} +0 -0
  867. /package/dist/esm/api/resources/{billing/resources/billingLedgerPeriods/client/requests/BillingLedgerPeriodsListV1Request.mjs → billingNew/resources/billingPeriods/client/requests/BillingPeriodClientUpdate1.mjs} +0 -0
  868. /package/dist/esm/api/resources/{billing/resources/billingLedgerPeriods/client/requests/OpenPeriodReq.mjs → billingNew/resources/billingPeriods/client/requests/BillingPeriodsListV1Request.mjs} +0 -0
  869. /package/dist/esm/api/resources/{billing/resources/billingLedgerPeriods → billingNew/resources/billingPeriods}/client/requests/index.mjs +0 -0
  870. /package/dist/esm/api/resources/{billing/resources/billingLedgerPeriods → billingNew/resources/billingPeriods}/index.d.mts +0 -0
  871. /package/dist/esm/api/resources/{billing/resources/billingLedgerPeriods → billingNew/resources/billingPeriods}/index.mjs +0 -0
  872. /package/dist/esm/api/resources/{billing/resources/billingLedgers/client/requests/BillingLedgerClientCreate1.mjs → billingNew/resources/invoiceLineItems/client/requests/CreateInvoiceLineItemsFromAwbCostsReq.mjs} +0 -0
  873. /package/dist/esm/api/resources/{billing/resources/billingLedgers/client/requests/BillingLedgerClientUpdate1.mjs → billingNew/resources/orders/client/requests/OrdersListAwbBillingForCoordinatorOperatorsV1Request.mjs} +0 -0
  874. /package/dist/esm/api/resources/{billing/resources/billingLedgers/client/requests/BillingLedgersListV1Request.mjs → shipping/resources/orders/client/requests/OrdersUpdateDepartmentReq.mjs} +0 -0
  875. /package/dist/esm/api/resources/{billing/resources/cargoOnFlightRateSheets/client/requests/CargoOnFlightRateSheetClientCreate1.mjs → shipping/resources/orders/client/requests/OrdersUpdateLabelReq.mjs} +0 -0
  876. /package/dist/esm/api/resources/{billing/resources/cargoOnFlightRateSheets/client/requests/CargoOnFlightRateSheetClientUpdate1.mjs → trackingIntegrations/resources/reelables/resources/assets/client/requests/ReelablesAssetClientCreate1.mjs} +0 -0
  877. /package/dist/esm/api/resources/{billing/resources/cargoOnFlightRateSheets/client/requests/CargoOnFlightRateSheetsListV1Request.mjs → trackingIntegrations/resources/reelables/resources/assets/client/requests/ReelablesAssetLabelLinkReq.mjs} +0 -0
  878. /package/dist/esm/api/resources/{billing/resources/chrtGroundProviderRateSheets/client/requests/ChrtGroundProviderRateSheetClientCreate1.mjs → trackingIntegrations/resources/reelables/resources/timeseries/client/requests/TimeseriesRefreshV1Request.mjs} +0 -0
  879. /package/dist/esm/api/{resources/billing/resources/chrtGroundProviderRateSheets/client/requests/ChrtGroundProviderRateSheetClientUpdate1.mjs → types/BillingPeriod1.mjs} +0 -0
  880. /package/dist/esm/api/{resources/billing/resources/chrtGroundProviderRateSheets/client/requests/ChrtGroundProviderRateSheetsListV1Request.mjs → types/BillingPeriodExpanded1.mjs} +0 -0
  881. /package/dist/esm/api/{resources/billing/resources/lineItemGroups/client/requests/LineItemGroupAdHocCreateClientReq.mjs → types/BillingPeriodListRes.mjs} +0 -0
  882. /package/dist/esm/api/{resources/billing/resources/lineItemGroups/client/requests/LineItemGroupsListV1Request.mjs → types/BillingPeriodTaskGroupsReq.mjs} +0 -0
  883. /package/dist/esm/api/{resources/billing/resources/lineItemGroups/client/requests/SharedTaskGroupMileageCreateForProviderPayDriverClientReq.mjs → types/CreateInvoiceLineItemsFromAwbCostsCreatedAwb1.mjs} +0 -0
  884. /package/dist/esm/api/{resources/billing/resources/lineItemGroups/client/requests/SharedTaskGroupMileageCreateForProviderPayProviderClientReq.mjs → types/CreateInvoiceLineItemsFromAwbCostsInvoiceRes1.mjs} +0 -0
  885. /package/dist/esm/api/{resources/billing/resources/lineItemGroups/resources/messages/client/requests/AddLineItemGroupMessageReq.mjs → types/CreateInvoiceLineItemsFromAwbCostsItem1.mjs} +0 -0
  886. /package/dist/esm/api/{resources/billing/resources/lineItemGroups/resources/s3Objects/client/requests/BodyLineItemGroupsS3ObjectPostAddV1.mjs → types/CreateInvoiceLineItemsFromAwbCostsRejectedAwb1.mjs} +0 -0
  887. /package/dist/esm/api/{resources/billing/resources/lineItems/resources/s3Objects/client/requests/BodyLineItemsS3ObjectPostAddV1.mjs → types/CreateInvoiceLineItemsFromAwbCostsRes.mjs} +0 -0
  888. /package/dist/esm/api/{resources/billing/resources/onboardCourierRateSheets/client/requests/OnboardCourierRateSheetClientCreate1.mjs → types/OrderAwbBillingAccount1.mjs} +0 -0
  889. /package/dist/esm/api/{resources/billing/resources/onboardCourierRateSheets/client/requests/OnboardCourierRateSheetClientUpdate1.mjs → types/OrderAwbBillingListItem1.mjs} +0 -0
  890. /package/dist/esm/api/{resources/billing/resources/onboardCourierRateSheets/client/requests/OnboardCourierRateSheetsListV1Request.mjs → types/OrderAwbBillingListRes.mjs} +0 -0
  891. /package/dist/esm/api/{resources/billing/resources/rateSheetMappings/client/requests/RateSheetMappingClientCreate1.mjs → types/OrderBillingPeriod1.mjs} +0 -0
@@ -1,1166 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
5
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
6
- return new (P || (P = Promise))(function (resolve, reject) {
7
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
8
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
9
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
10
- step((generator = generator.apply(thisArg, _arguments || [])).next());
11
- });
12
- };
13
- import * as environments from "../../../../../../environments.mjs";
14
- import * as core from "../../../../../../core/index.mjs";
15
- import * as Chrt from "../../../../../index.mjs";
16
- import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../../../core/headers.mjs";
17
- import * as errors from "../../../../../../errors/index.mjs";
18
- import { Messages } from "../resources/messages/client/Client.mjs";
19
- import { S3Objects } from "../resources/s3Objects/client/Client.mjs";
20
- export class LineItemGroups {
21
- constructor(_options = {}) {
22
- this._options = _options;
23
- }
24
- get messages() {
25
- var _a;
26
- return ((_a = this._messages) !== null && _a !== void 0 ? _a : (this._messages = new Messages(this._options)));
27
- }
28
- get s3Objects() {
29
- var _a;
30
- return ((_a = this._s3Objects) !== null && _a !== void 0 ? _a : (this._s3Objects = new S3Objects(this._options)));
31
- }
32
- /**
33
- * Appends an owner-direct AD_HOC LineItem to the amendment bucket of a LineItemGroup that has not yet been finalized. The agreement bucket is reserved for the original deal at creation; everything added after lands in amendment. | authz_personas=[lig_org_operators] | (LineItemClientCreate1) -> (LineItemGroup1)
34
- *
35
- * @param {string} lineItemGroupId
36
- * @param {Chrt.LineItemClientCreate1} request
37
- * @param {LineItemGroups.RequestOptions} requestOptions - Request-specific configuration.
38
- *
39
- * @throws {@link Chrt.UnprocessableEntityError}
40
- *
41
- * @example
42
- * await client.billing.lineItemGroups.adHocAddLineItemV1("line_item_group_id", {
43
- * item: "base_rate",
44
- * quantity: 1.1,
45
- * rate: 1.1
46
- * })
47
- */
48
- adHocAddLineItemV1(lineItemGroupId, request, requestOptions) {
49
- return core.HttpResponsePromise.fromPromise(this.__adHocAddLineItemV1(lineItemGroupId, request, requestOptions));
50
- }
51
- __adHocAddLineItemV1(lineItemGroupId, request, requestOptions) {
52
- return __awaiter(this, void 0, void 0, function* () {
53
- var _a, _b, _c, _d;
54
- let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
55
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
56
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `billing/line_item_groups/ad_hoc/add_line_item/v1/${encodeURIComponent(lineItemGroupId)}`),
57
- method: "POST",
58
- headers: _headers,
59
- contentType: "application/json",
60
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
61
- requestType: "json",
62
- body: request,
63
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
64
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
65
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
66
- });
67
- if (_response.ok) {
68
- return { data: _response.body, rawResponse: _response.rawResponse };
69
- }
70
- if (_response.error.reason === "status-code") {
71
- switch (_response.error.statusCode) {
72
- case 422:
73
- throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
74
- default:
75
- throw new errors.ChrtError({
76
- statusCode: _response.error.statusCode,
77
- body: _response.error.body,
78
- rawResponse: _response.rawResponse,
79
- });
80
- }
81
- }
82
- switch (_response.error.reason) {
83
- case "non-json":
84
- throw new errors.ChrtError({
85
- statusCode: _response.error.statusCode,
86
- body: _response.error.rawBody,
87
- rawResponse: _response.rawResponse,
88
- });
89
- case "timeout":
90
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /billing/line_item_groups/ad_hoc/add_line_item/v1/{line_item_group_id}.");
91
- case "unknown":
92
- throw new errors.ChrtError({
93
- message: _response.error.errorMessage,
94
- rawResponse: _response.rawResponse,
95
- });
96
- }
97
- });
98
- }
99
- /**
100
- * Creates a detached ad-hoc LineItemGroup. The LIG is not linked to any TaskGroup at create time — operator follows up with `/shipping/task_groups/attach_lig_to_<vector>/v1` to populate the TG vector link field and the `task_group_id` back-ref together (one txn). | authz: allowed_org_types=[provider, shipper], min_org_role=operator | (LineItemGroupAdHocCreateClientReq) -> (LineItemGroup1)
101
- *
102
- * @param {Chrt.billing.LineItemGroupAdHocCreateClientReq} request
103
- * @param {LineItemGroups.RequestOptions} requestOptions - Request-specific configuration.
104
- *
105
- * @throws {@link Chrt.UnprocessableEntityError}
106
- *
107
- * @example
108
- * await client.billing.lineItemGroups.adHocCreateV1({
109
- * owned_by_org_id: "owned_by_org_id"
110
- * })
111
- */
112
- adHocCreateV1(request, requestOptions) {
113
- return core.HttpResponsePromise.fromPromise(this.__adHocCreateV1(request, requestOptions));
114
- }
115
- __adHocCreateV1(request, requestOptions) {
116
- return __awaiter(this, void 0, void 0, function* () {
117
- var _a, _b, _c, _d;
118
- let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
119
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
120
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "billing/line_item_groups/ad_hoc/create/v1"),
121
- method: "POST",
122
- headers: _headers,
123
- contentType: "application/json",
124
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
125
- requestType: "json",
126
- body: request,
127
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
128
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
129
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
130
- });
131
- if (_response.ok) {
132
- return { data: _response.body, rawResponse: _response.rawResponse };
133
- }
134
- if (_response.error.reason === "status-code") {
135
- switch (_response.error.statusCode) {
136
- case 422:
137
- throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
138
- default:
139
- throw new errors.ChrtError({
140
- statusCode: _response.error.statusCode,
141
- body: _response.error.body,
142
- rawResponse: _response.rawResponse,
143
- });
144
- }
145
- }
146
- switch (_response.error.reason) {
147
- case "non-json":
148
- throw new errors.ChrtError({
149
- statusCode: _response.error.statusCode,
150
- body: _response.error.rawBody,
151
- rawResponse: _response.rawResponse,
152
- });
153
- case "timeout":
154
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /billing/line_item_groups/ad_hoc/create/v1.");
155
- case "unknown":
156
- throw new errors.ChrtError({
157
- message: _response.error.errorMessage,
158
- rawResponse: _response.rawResponse,
159
- });
160
- }
161
- });
162
- }
163
- /**
164
- * Removes an AD_HOC LineItem from a LineItemGroup that has not yet been finalized. | authz_personas=[lig_org_operators] | () -> (LineItemGroup1)
165
- *
166
- * @param {string} lineItemGroupId
167
- * @param {string} lineItemId
168
- * @param {LineItemGroups.RequestOptions} requestOptions - Request-specific configuration.
169
- *
170
- * @throws {@link Chrt.UnprocessableEntityError}
171
- *
172
- * @example
173
- * await client.billing.lineItemGroups.adHocRemoveLineItemV1("line_item_group_id", "line_item_id")
174
- */
175
- adHocRemoveLineItemV1(lineItemGroupId, lineItemId, requestOptions) {
176
- return core.HttpResponsePromise.fromPromise(this.__adHocRemoveLineItemV1(lineItemGroupId, lineItemId, requestOptions));
177
- }
178
- __adHocRemoveLineItemV1(lineItemGroupId, lineItemId, requestOptions) {
179
- return __awaiter(this, void 0, void 0, function* () {
180
- var _a, _b, _c, _d;
181
- let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
182
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
183
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `billing/line_item_groups/ad_hoc/remove_line_item/v1/${encodeURIComponent(lineItemGroupId)}/${encodeURIComponent(lineItemId)}`),
184
- method: "DELETE",
185
- headers: _headers,
186
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
187
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
188
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
189
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
190
- });
191
- if (_response.ok) {
192
- return { data: _response.body, rawResponse: _response.rawResponse };
193
- }
194
- if (_response.error.reason === "status-code") {
195
- switch (_response.error.statusCode) {
196
- case 422:
197
- throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
198
- default:
199
- throw new errors.ChrtError({
200
- statusCode: _response.error.statusCode,
201
- body: _response.error.body,
202
- rawResponse: _response.rawResponse,
203
- });
204
- }
205
- }
206
- switch (_response.error.reason) {
207
- case "non-json":
208
- throw new errors.ChrtError({
209
- statusCode: _response.error.statusCode,
210
- body: _response.error.rawBody,
211
- rawResponse: _response.rawResponse,
212
- });
213
- case "timeout":
214
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling DELETE /billing/line_item_groups/ad_hoc/remove_line_item/v1/{line_item_group_id}/{line_item_id}.");
215
- case "unknown":
216
- throw new errors.ChrtError({
217
- message: _response.error.errorMessage,
218
- rawResponse: _response.rawResponse,
219
- });
220
- }
221
- });
222
- }
223
- /**
224
- * Owner approves a counterparty-proposed LineItem on a non-FINALIZED LineItemGroup, moving it from pending_line_item_ids to amendment_line_item_ids and stamping ad_hoc__status=APPROVED. The agreement bucket is reserved for the original deal at creation; counterparty additions land in amendment by construction. | authz_personas=[lig_owner_operators] | () -> (LineItemGroup1)
225
- *
226
- * @param {string} lineItemGroupId
227
- * @param {string} lineItemId
228
- * @param {LineItemGroups.RequestOptions} requestOptions - Request-specific configuration.
229
- *
230
- * @throws {@link Chrt.UnprocessableEntityError}
231
- *
232
- * @example
233
- * await client.billing.lineItemGroups.approveLineItemV1("line_item_group_id", "line_item_id")
234
- */
235
- approveLineItemV1(lineItemGroupId, lineItemId, requestOptions) {
236
- return core.HttpResponsePromise.fromPromise(this.__approveLineItemV1(lineItemGroupId, lineItemId, requestOptions));
237
- }
238
- __approveLineItemV1(lineItemGroupId, lineItemId, requestOptions) {
239
- return __awaiter(this, void 0, void 0, function* () {
240
- var _a, _b, _c, _d;
241
- let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
242
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
243
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `billing/line_item_groups/approve_line_item/v1/${encodeURIComponent(lineItemGroupId)}/${encodeURIComponent(lineItemId)}`),
244
- method: "POST",
245
- headers: _headers,
246
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
247
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
248
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
249
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
250
- });
251
- if (_response.ok) {
252
- return { data: _response.body, rawResponse: _response.rawResponse };
253
- }
254
- if (_response.error.reason === "status-code") {
255
- switch (_response.error.statusCode) {
256
- case 422:
257
- throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
258
- default:
259
- throw new errors.ChrtError({
260
- statusCode: _response.error.statusCode,
261
- body: _response.error.body,
262
- rawResponse: _response.rawResponse,
263
- });
264
- }
265
- }
266
- switch (_response.error.reason) {
267
- case "non-json":
268
- throw new errors.ChrtError({
269
- statusCode: _response.error.statusCode,
270
- body: _response.error.rawBody,
271
- rawResponse: _response.rawResponse,
272
- });
273
- case "timeout":
274
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /billing/line_item_groups/approve_line_item/v1/{line_item_group_id}/{line_item_id}.");
275
- case "unknown":
276
- throw new errors.ChrtError({
277
- message: _response.error.errorMessage,
278
- rawResponse: _response.rawResponse,
279
- });
280
- }
281
- });
282
- }
283
- /**
284
- * Retrieves a LineItemGroup the caller owns, is a payment counterparty on, or is the destination driver for. | authz_personas=[lig_org_operators, lig_driver] | () -> (LineItemGroup1)
285
- *
286
- * @param {string} id
287
- * @param {LineItemGroups.RequestOptions} requestOptions - Request-specific configuration.
288
- *
289
- * @throws {@link Chrt.UnprocessableEntityError}
290
- *
291
- * @example
292
- * await client.billing.lineItemGroups.getByIdV1("id")
293
- */
294
- getByIdV1(id, requestOptions) {
295
- return core.HttpResponsePromise.fromPromise(this.__getByIdV1(id, requestOptions));
296
- }
297
- __getByIdV1(id, requestOptions) {
298
- return __awaiter(this, void 0, void 0, function* () {
299
- var _a, _b, _c, _d;
300
- let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
301
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
302
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `billing/line_item_groups/by_id/v1/${encodeURIComponent(id)}`),
303
- method: "GET",
304
- headers: _headers,
305
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
306
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
307
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
308
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
309
- });
310
- if (_response.ok) {
311
- return { data: _response.body, rawResponse: _response.rawResponse };
312
- }
313
- if (_response.error.reason === "status-code") {
314
- switch (_response.error.statusCode) {
315
- case 422:
316
- throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
317
- default:
318
- throw new errors.ChrtError({
319
- statusCode: _response.error.statusCode,
320
- body: _response.error.body,
321
- rawResponse: _response.rawResponse,
322
- });
323
- }
324
- }
325
- switch (_response.error.reason) {
326
- case "non-json":
327
- throw new errors.ChrtError({
328
- statusCode: _response.error.statusCode,
329
- body: _response.error.rawBody,
330
- rawResponse: _response.rawResponse,
331
- });
332
- case "timeout":
333
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /billing/line_item_groups/by_id/v1/{id}.");
334
- case "unknown":
335
- throw new errors.ChrtError({
336
- message: _response.error.errorMessage,
337
- rawResponse: _response.rawResponse,
338
- });
339
- }
340
- });
341
- }
342
- /**
343
- * Owner-only operator cleanup: deletes a STAGED LineItemGroup and cascades. Cascades: (1) deletes every LineItem referenced across the four buckets (agreement / amendment / pending / denied); (2) if the LIG is attached to a parent TaskGroup vector, clears that vector's `_line_item_group_id` and `_rate_sheet_id` (the LIG's `task_group_id` back-ref disappears with the LIG itself). Refuses if the LIG is already attached to a Statement (defense-in-depth — should be unreachable since attach requires FINALIZED). FINALIZED-or-beyond LIGs cannot be deleted (audit records). | authz_personas=[lig_owner_operators] | () -> (bool)
344
- *
345
- * @param {string} lineItemGroupId
346
- * @param {LineItemGroups.RequestOptions} requestOptions - Request-specific configuration.
347
- *
348
- * @throws {@link Chrt.UnprocessableEntityError}
349
- *
350
- * @example
351
- * await client.billing.lineItemGroups.deleteV1("line_item_group_id")
352
- */
353
- deleteV1(lineItemGroupId, requestOptions) {
354
- return core.HttpResponsePromise.fromPromise(this.__deleteV1(lineItemGroupId, requestOptions));
355
- }
356
- __deleteV1(lineItemGroupId, requestOptions) {
357
- return __awaiter(this, void 0, void 0, function* () {
358
- var _a, _b, _c, _d;
359
- let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
360
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
361
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `billing/line_item_groups/delete/v1/${encodeURIComponent(lineItemGroupId)}`),
362
- method: "DELETE",
363
- headers: _headers,
364
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
365
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
366
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
367
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
368
- });
369
- if (_response.ok) {
370
- return { data: _response.body, rawResponse: _response.rawResponse };
371
- }
372
- if (_response.error.reason === "status-code") {
373
- switch (_response.error.statusCode) {
374
- case 422:
375
- throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
376
- default:
377
- throw new errors.ChrtError({
378
- statusCode: _response.error.statusCode,
379
- body: _response.error.body,
380
- rawResponse: _response.rawResponse,
381
- });
382
- }
383
- }
384
- switch (_response.error.reason) {
385
- case "non-json":
386
- throw new errors.ChrtError({
387
- statusCode: _response.error.statusCode,
388
- body: _response.error.rawBody,
389
- rawResponse: _response.rawResponse,
390
- });
391
- case "timeout":
392
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling DELETE /billing/line_item_groups/delete/v1/{line_item_group_id}.");
393
- case "unknown":
394
- throw new errors.ChrtError({
395
- message: _response.error.errorMessage,
396
- rawResponse: _response.rawResponse,
397
- });
398
- }
399
- });
400
- }
401
- /**
402
- * Owner denies a counterparty-proposed LineItem on a non-FINALIZED LineItemGroup, moving it from pending_line_item_ids to denied_line_item_ids and stamping ad_hoc__status=DENIED. | authz_personas=[lig_owner_operators] | () -> (LineItemGroup1)
403
- *
404
- * @param {string} lineItemGroupId
405
- * @param {string} lineItemId
406
- * @param {LineItemGroups.RequestOptions} requestOptions - Request-specific configuration.
407
- *
408
- * @throws {@link Chrt.UnprocessableEntityError}
409
- *
410
- * @example
411
- * await client.billing.lineItemGroups.denyLineItemV1("line_item_group_id", "line_item_id")
412
- */
413
- denyLineItemV1(lineItemGroupId, lineItemId, requestOptions) {
414
- return core.HttpResponsePromise.fromPromise(this.__denyLineItemV1(lineItemGroupId, lineItemId, requestOptions));
415
- }
416
- __denyLineItemV1(lineItemGroupId, lineItemId, requestOptions) {
417
- return __awaiter(this, void 0, void 0, function* () {
418
- var _a, _b, _c, _d;
419
- let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
420
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
421
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `billing/line_item_groups/deny_line_item/v1/${encodeURIComponent(lineItemGroupId)}/${encodeURIComponent(lineItemId)}`),
422
- method: "POST",
423
- headers: _headers,
424
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
425
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
426
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
427
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
428
- });
429
- if (_response.ok) {
430
- return { data: _response.body, rawResponse: _response.rawResponse };
431
- }
432
- if (_response.error.reason === "status-code") {
433
- switch (_response.error.statusCode) {
434
- case 422:
435
- throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
436
- default:
437
- throw new errors.ChrtError({
438
- statusCode: _response.error.statusCode,
439
- body: _response.error.body,
440
- rawResponse: _response.rawResponse,
441
- });
442
- }
443
- }
444
- switch (_response.error.reason) {
445
- case "non-json":
446
- throw new errors.ChrtError({
447
- statusCode: _response.error.statusCode,
448
- body: _response.error.rawBody,
449
- rawResponse: _response.rawResponse,
450
- });
451
- case "timeout":
452
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /billing/line_item_groups/deny_line_item/v1/{line_item_group_id}/{line_item_id}.");
453
- case "unknown":
454
- throw new errors.ChrtError({
455
- message: _response.error.errorMessage,
456
- rawResponse: _response.rawResponse,
457
- });
458
- }
459
- });
460
- }
461
- /**
462
- * Locks a LineItemGroup, transitioning STAGED → FINALIZED. Required precondition for attaching to a Statement. Owner-only. Rejects if the LIG has no items in agreement_line_item_ids ∪ amendment_line_item_ids, or if pending_line_item_ids is non-empty (counterparty proposals must be resolved first). | authz: allowed_org_types=[provider, shipper], min_org_role=operator, authz_personas=[lig_owner_operators] | () -> (LineItemGroup1)
463
- *
464
- * @param {string} lineItemGroupId
465
- * @param {LineItemGroups.RequestOptions} requestOptions - Request-specific configuration.
466
- *
467
- * @throws {@link Chrt.UnprocessableEntityError}
468
- *
469
- * @example
470
- * await client.billing.lineItemGroups.finalizeV1("line_item_group_id")
471
- */
472
- finalizeV1(lineItemGroupId, requestOptions) {
473
- return core.HttpResponsePromise.fromPromise(this.__finalizeV1(lineItemGroupId, requestOptions));
474
- }
475
- __finalizeV1(lineItemGroupId, requestOptions) {
476
- return __awaiter(this, void 0, void 0, function* () {
477
- var _a, _b, _c, _d;
478
- let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
479
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
480
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `billing/line_item_groups/finalize/v1/${encodeURIComponent(lineItemGroupId)}`),
481
- method: "POST",
482
- headers: _headers,
483
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
484
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
485
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
486
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
487
- });
488
- if (_response.ok) {
489
- return { data: _response.body, rawResponse: _response.rawResponse };
490
- }
491
- if (_response.error.reason === "status-code") {
492
- switch (_response.error.statusCode) {
493
- case 422:
494
- throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
495
- default:
496
- throw new errors.ChrtError({
497
- statusCode: _response.error.statusCode,
498
- body: _response.error.body,
499
- rawResponse: _response.rawResponse,
500
- });
501
- }
502
- }
503
- switch (_response.error.reason) {
504
- case "non-json":
505
- throw new errors.ChrtError({
506
- statusCode: _response.error.statusCode,
507
- body: _response.error.rawBody,
508
- rawResponse: _response.rawResponse,
509
- });
510
- case "timeout":
511
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /billing/line_item_groups/finalize/v1/{line_item_group_id}.");
512
- case "unknown":
513
- throw new errors.ChrtError({
514
- message: _response.error.errorMessage,
515
- rawResponse: _response.rawResponse,
516
- });
517
- }
518
- });
519
- }
520
- /**
521
- * Atomically materialises a STAGED LineItemGroup from a rate sheet AND attaches it to the PPD vector of the named TaskGroup (one transaction; both sides of the LIG ↔ TG link populated together). Auto-resolves the rate sheet via RateSheetMapping1 unless body.rate_sheet_id is provided. Rejects if the PPD vector already has a LIG attached, or if a billing ledger period is attached (rate-sheet/ledger exclusivity). | authz: allowed_org_types=[provider], min_org_role=operator, authz_personas=[executor_org_operators] | (CreateLigFromRateSheetForVectorClientReq) -> (LineItemGroup1)
522
- *
523
- * @param {Chrt.CreateLigFromRateSheetForVectorClientReq} request
524
- * @param {LineItemGroups.RequestOptions} requestOptions - Request-specific configuration.
525
- *
526
- * @throws {@link Chrt.UnprocessableEntityError}
527
- *
528
- * @example
529
- * await client.billing.lineItemGroups.fromRateSheetCreateForProviderPayDriverV1({
530
- * task_group_id: "task_group_id"
531
- * })
532
- */
533
- fromRateSheetCreateForProviderPayDriverV1(request, requestOptions) {
534
- return core.HttpResponsePromise.fromPromise(this.__fromRateSheetCreateForProviderPayDriverV1(request, requestOptions));
535
- }
536
- __fromRateSheetCreateForProviderPayDriverV1(request, requestOptions) {
537
- return __awaiter(this, void 0, void 0, function* () {
538
- var _a, _b, _c, _d;
539
- let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
540
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
541
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "billing/line_item_groups/from_rate_sheet/create_for_provider_pay_driver/v1"),
542
- method: "POST",
543
- headers: _headers,
544
- contentType: "application/json",
545
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
546
- requestType: "json",
547
- body: request,
548
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
549
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
550
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
551
- });
552
- if (_response.ok) {
553
- return { data: _response.body, rawResponse: _response.rawResponse };
554
- }
555
- if (_response.error.reason === "status-code") {
556
- switch (_response.error.statusCode) {
557
- case 422:
558
- throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
559
- default:
560
- throw new errors.ChrtError({
561
- statusCode: _response.error.statusCode,
562
- body: _response.error.body,
563
- rawResponse: _response.rawResponse,
564
- });
565
- }
566
- }
567
- switch (_response.error.reason) {
568
- case "non-json":
569
- throw new errors.ChrtError({
570
- statusCode: _response.error.statusCode,
571
- body: _response.error.rawBody,
572
- rawResponse: _response.rawResponse,
573
- });
574
- case "timeout":
575
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /billing/line_item_groups/from_rate_sheet/create_for_provider_pay_driver/v1.");
576
- case "unknown":
577
- throw new errors.ChrtError({
578
- message: _response.error.errorMessage,
579
- rawResponse: _response.rawResponse,
580
- });
581
- }
582
- });
583
- }
584
- /**
585
- * Atomically materialises a STAGED LineItemGroup from a rate sheet AND attaches it to the PPP vector of the named TaskGroup (one transaction; both sides of the LIG ↔ TG link populated together). Auto-resolves the rate sheet via RateSheetMapping1 unless body.rate_sheet_id is provided. Rejects if the PPP vector already has a LIG attached, or if a billing ledger period is attached (rate-sheet/ledger exclusivity). | authz: allowed_org_types=[provider], min_org_role=operator, authz_personas=[task_group_coordinator_operators] | (CreateLigFromRateSheetForVectorClientReq) -> (LineItemGroup1)
586
- *
587
- * @param {Chrt.CreateLigFromRateSheetForVectorClientReq} request
588
- * @param {LineItemGroups.RequestOptions} requestOptions - Request-specific configuration.
589
- *
590
- * @throws {@link Chrt.UnprocessableEntityError}
591
- *
592
- * @example
593
- * await client.billing.lineItemGroups.fromRateSheetCreateForProviderPayProviderV1({
594
- * task_group_id: "task_group_id"
595
- * })
596
- */
597
- fromRateSheetCreateForProviderPayProviderV1(request, requestOptions) {
598
- return core.HttpResponsePromise.fromPromise(this.__fromRateSheetCreateForProviderPayProviderV1(request, requestOptions));
599
- }
600
- __fromRateSheetCreateForProviderPayProviderV1(request, requestOptions) {
601
- return __awaiter(this, void 0, void 0, function* () {
602
- var _a, _b, _c, _d;
603
- let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
604
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
605
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "billing/line_item_groups/from_rate_sheet/create_for_provider_pay_provider/v1"),
606
- method: "POST",
607
- headers: _headers,
608
- contentType: "application/json",
609
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
610
- requestType: "json",
611
- body: request,
612
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
613
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
614
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
615
- });
616
- if (_response.ok) {
617
- return { data: _response.body, rawResponse: _response.rawResponse };
618
- }
619
- if (_response.error.reason === "status-code") {
620
- switch (_response.error.statusCode) {
621
- case 422:
622
- throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
623
- default:
624
- throw new errors.ChrtError({
625
- statusCode: _response.error.statusCode,
626
- body: _response.error.body,
627
- rawResponse: _response.rawResponse,
628
- });
629
- }
630
- }
631
- switch (_response.error.reason) {
632
- case "non-json":
633
- throw new errors.ChrtError({
634
- statusCode: _response.error.statusCode,
635
- body: _response.error.rawBody,
636
- rawResponse: _response.rawResponse,
637
- });
638
- case "timeout":
639
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /billing/line_item_groups/from_rate_sheet/create_for_provider_pay_provider/v1.");
640
- case "unknown":
641
- throw new errors.ChrtError({
642
- message: _response.error.errorMessage,
643
- rawResponse: _response.rawResponse,
644
- });
645
- }
646
- });
647
- }
648
- /**
649
- * Atomically materialises a STAGED LineItemGroup from a rate sheet AND attaches it to the SPP vector of the named TaskGroup (one transaction; both sides of the LIG ↔ TG link populated together). Auto-resolves the rate sheet via RateSheetMapping1 unless body.rate_sheet_id is provided. Rejects if the SPP vector already has a LIG attached, or if a billing ledger period is attached (rate-sheet/ledger exclusivity). | authz: allowed_org_types=[provider], min_org_role=operator, authz_personas=[task_group_coordinator_operators] | (CreateLigFromRateSheetForVectorClientReq) -> (LineItemGroup1)
650
- *
651
- * @param {Chrt.CreateLigFromRateSheetForVectorClientReq} request
652
- * @param {LineItemGroups.RequestOptions} requestOptions - Request-specific configuration.
653
- *
654
- * @throws {@link Chrt.UnprocessableEntityError}
655
- *
656
- * @example
657
- * await client.billing.lineItemGroups.fromRateSheetCreateForShipperPayProviderV1({
658
- * task_group_id: "task_group_id"
659
- * })
660
- */
661
- fromRateSheetCreateForShipperPayProviderV1(request, requestOptions) {
662
- return core.HttpResponsePromise.fromPromise(this.__fromRateSheetCreateForShipperPayProviderV1(request, requestOptions));
663
- }
664
- __fromRateSheetCreateForShipperPayProviderV1(request, requestOptions) {
665
- return __awaiter(this, void 0, void 0, function* () {
666
- var _a, _b, _c, _d;
667
- let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
668
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
669
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "billing/line_item_groups/from_rate_sheet/create_for_shipper_pay_provider/v1"),
670
- method: "POST",
671
- headers: _headers,
672
- contentType: "application/json",
673
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
674
- requestType: "json",
675
- body: request,
676
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
677
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
678
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
679
- });
680
- if (_response.ok) {
681
- return { data: _response.body, rawResponse: _response.rawResponse };
682
- }
683
- if (_response.error.reason === "status-code") {
684
- switch (_response.error.statusCode) {
685
- case 422:
686
- throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
687
- default:
688
- throw new errors.ChrtError({
689
- statusCode: _response.error.statusCode,
690
- body: _response.error.body,
691
- rawResponse: _response.rawResponse,
692
- });
693
- }
694
- }
695
- switch (_response.error.reason) {
696
- case "non-json":
697
- throw new errors.ChrtError({
698
- statusCode: _response.error.statusCode,
699
- body: _response.error.rawBody,
700
- rawResponse: _response.rawResponse,
701
- });
702
- case "timeout":
703
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /billing/line_item_groups/from_rate_sheet/create_for_shipper_pay_provider/v1.");
704
- case "unknown":
705
- throw new errors.ChrtError({
706
- message: _response.error.errorMessage,
707
- rawResponse: _response.rawResponse,
708
- });
709
- }
710
- });
711
- }
712
- /**
713
- * Retrieves all LineItems referenced by a LineItemGroup the caller can access. | authz_personas=[lig_org_operators, lig_driver] | () -> (LineItemGroupLineItemsRes)
714
- *
715
- * @param {string} lineItemGroupId
716
- * @param {LineItemGroups.RequestOptions} requestOptions - Request-specific configuration.
717
- *
718
- * @throws {@link Chrt.UnprocessableEntityError}
719
- *
720
- * @example
721
- * await client.billing.lineItemGroups.getLineItemsV1("line_item_group_id")
722
- */
723
- getLineItemsV1(lineItemGroupId, requestOptions) {
724
- return core.HttpResponsePromise.fromPromise(this.__getLineItemsV1(lineItemGroupId, requestOptions));
725
- }
726
- __getLineItemsV1(lineItemGroupId, requestOptions) {
727
- return __awaiter(this, void 0, void 0, function* () {
728
- var _a, _b, _c, _d;
729
- let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
730
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
731
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `billing/line_item_groups/line_items/v1/${encodeURIComponent(lineItemGroupId)}`),
732
- method: "GET",
733
- headers: _headers,
734
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
735
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
736
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
737
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
738
- });
739
- if (_response.ok) {
740
- return { data: _response.body, rawResponse: _response.rawResponse };
741
- }
742
- if (_response.error.reason === "status-code") {
743
- switch (_response.error.statusCode) {
744
- case 422:
745
- throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
746
- default:
747
- throw new errors.ChrtError({
748
- statusCode: _response.error.statusCode,
749
- body: _response.error.body,
750
- rawResponse: _response.rawResponse,
751
- });
752
- }
753
- }
754
- switch (_response.error.reason) {
755
- case "non-json":
756
- throw new errors.ChrtError({
757
- statusCode: _response.error.statusCode,
758
- body: _response.error.rawBody,
759
- rawResponse: _response.rawResponse,
760
- });
761
- case "timeout":
762
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /billing/line_item_groups/line_items/v1/{line_item_group_id}.");
763
- case "unknown":
764
- throw new errors.ChrtError({
765
- message: _response.error.errorMessage,
766
- rawResponse: _response.rawResponse,
767
- });
768
- }
769
- });
770
- }
771
- /**
772
- * Lists LineItemGroups the caller owns, is a payment counterparty on, or is the destination driver for. | authz_personas=[lig_org_operators, lig_driver] | () -> (LineItemGroupListRes)
773
- *
774
- * @param {Chrt.billing.LineItemGroupsListV1Request} request
775
- * @param {LineItemGroups.RequestOptions} requestOptions - Request-specific configuration.
776
- *
777
- * @throws {@link Chrt.UnprocessableEntityError}
778
- *
779
- * @example
780
- * await client.billing.lineItemGroups.listV1({
781
- * sort_order: "asc",
782
- * page: 1,
783
- * page_size: 1,
784
- * filter_task_group_id: "filter_task_group_id",
785
- * filter_order_id: "filter_order_id",
786
- * filter_order_short_id: "filter_order_short_id",
787
- * filter_order_off_chrt_reference_id: "filter_order_off_chrt_reference_id",
788
- * filter_owned_by_org_id: "filter_owned_by_org_id",
789
- * filter_payment_origin_org_id: "filter_payment_origin_org_id",
790
- * filter_payment_destination_org_id: "filter_payment_destination_org_id",
791
- * filter_payment_destination_driver_id: "filter_payment_destination_driver_id",
792
- * filter_rate_sheet_id: "filter_rate_sheet_id",
793
- * filter_statement_id: "filter_statement_id",
794
- * filter_attached_to_statement: true
795
- * })
796
- */
797
- listV1(request = {}, requestOptions) {
798
- return core.HttpResponsePromise.fromPromise(this.__listV1(request, requestOptions));
799
- }
800
- __listV1() {
801
- return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
802
- var _a, _b, _c, _d, _e, _f, _g;
803
- const { sort_order: sortOrder, page, page_size: pageSize, filter_status: filterStatus, filter_task_group_id: filterTaskGroupId, filter_order_id: filterOrderId, filter_order_short_id: filterOrderShortId, filter_order_off_chrt_reference_id: filterOrderOffChrtReferenceId, filter_owned_by_org_id: filterOwnedByOrgId, filter_payment_origin_org_id: filterPaymentOriginOrgId, filter_payment_destination_org_id: filterPaymentDestinationOrgId, filter_payment_destination_driver_id: filterPaymentDestinationDriverId, filter_rate_sheet_id: filterRateSheetId, filter_statement_id: filterStatementId, filter_attached_to_statement: filterAttachedToStatement, } = request;
804
- const _queryParams = {};
805
- if (sortOrder !== undefined) {
806
- _queryParams["sort_order"] = sortOrder;
807
- }
808
- if (page !== undefined) {
809
- _queryParams["page"] = (_a = page === null || page === void 0 ? void 0 : page.toString()) !== null && _a !== void 0 ? _a : null;
810
- }
811
- if (pageSize !== undefined) {
812
- _queryParams["page_size"] = (_b = pageSize === null || pageSize === void 0 ? void 0 : pageSize.toString()) !== null && _b !== void 0 ? _b : null;
813
- }
814
- if (filterStatus !== undefined) {
815
- if (Array.isArray(filterStatus)) {
816
- _queryParams["filter_status"] = filterStatus.map((item) => item);
817
- }
818
- else {
819
- _queryParams["filter_status"] = filterStatus;
820
- }
821
- }
822
- if (filterTaskGroupId !== undefined) {
823
- _queryParams["filter_task_group_id"] = filterTaskGroupId;
824
- }
825
- if (filterOrderId !== undefined) {
826
- _queryParams["filter_order_id"] = filterOrderId;
827
- }
828
- if (filterOrderShortId !== undefined) {
829
- _queryParams["filter_order_short_id"] = filterOrderShortId;
830
- }
831
- if (filterOrderOffChrtReferenceId !== undefined) {
832
- _queryParams["filter_order_off_chrt_reference_id"] = filterOrderOffChrtReferenceId;
833
- }
834
- if (filterOwnedByOrgId !== undefined) {
835
- _queryParams["filter_owned_by_org_id"] = filterOwnedByOrgId;
836
- }
837
- if (filterPaymentOriginOrgId !== undefined) {
838
- _queryParams["filter_payment_origin_org_id"] = filterPaymentOriginOrgId;
839
- }
840
- if (filterPaymentDestinationOrgId !== undefined) {
841
- _queryParams["filter_payment_destination_org_id"] = filterPaymentDestinationOrgId;
842
- }
843
- if (filterPaymentDestinationDriverId !== undefined) {
844
- _queryParams["filter_payment_destination_driver_id"] = filterPaymentDestinationDriverId;
845
- }
846
- if (filterRateSheetId !== undefined) {
847
- _queryParams["filter_rate_sheet_id"] = filterRateSheetId;
848
- }
849
- if (filterStatementId !== undefined) {
850
- _queryParams["filter_statement_id"] = filterStatementId;
851
- }
852
- if (filterAttachedToStatement !== undefined) {
853
- _queryParams["filter_attached_to_statement"] = (_c = filterAttachedToStatement === null || filterAttachedToStatement === void 0 ? void 0 : filterAttachedToStatement.toString()) !== null && _c !== void 0 ? _c : null;
854
- }
855
- let _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);
856
- const _response = yield ((_e = this._options.fetcher) !== null && _e !== void 0 ? _e : core.fetcher)({
857
- url: core.url.join((_g = (_f = (yield core.Supplier.get(this._options.baseUrl))) !== null && _f !== void 0 ? _f : (yield core.Supplier.get(this._options.environment))) !== null && _g !== void 0 ? _g : environments.ChrtEnvironment.Local, "billing/line_item_groups/list/v1"),
858
- method: "GET",
859
- headers: _headers,
860
- queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
861
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
862
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
863
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
864
- });
865
- if (_response.ok) {
866
- return { data: _response.body, rawResponse: _response.rawResponse };
867
- }
868
- if (_response.error.reason === "status-code") {
869
- switch (_response.error.statusCode) {
870
- case 422:
871
- throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
872
- default:
873
- throw new errors.ChrtError({
874
- statusCode: _response.error.statusCode,
875
- body: _response.error.body,
876
- rawResponse: _response.rawResponse,
877
- });
878
- }
879
- }
880
- switch (_response.error.reason) {
881
- case "non-json":
882
- throw new errors.ChrtError({
883
- statusCode: _response.error.statusCode,
884
- body: _response.error.rawBody,
885
- rawResponse: _response.rawResponse,
886
- });
887
- case "timeout":
888
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /billing/line_item_groups/list/v1.");
889
- case "unknown":
890
- throw new errors.ChrtError({
891
- message: _response.error.errorMessage,
892
- rawResponse: _response.rawResponse,
893
- });
894
- }
895
- });
896
- }
897
- /**
898
- * Counterparty proposes a draft AD_HOC LineItem on a non-FINALIZED LineItemGroup. The item lands in pending_line_item_ids with ad_hoc__status=PENDING; the owner resolves it via approve/deny. Caller must be on the LIG (origin or destination) but not the owner. | authz_personas=[lig_org_operators] | (LineItemClientCreate1) -> (LineItemGroup1)
899
- *
900
- * @param {string} lineItemGroupId
901
- * @param {Chrt.LineItemClientCreate1} request
902
- * @param {LineItemGroups.RequestOptions} requestOptions - Request-specific configuration.
903
- *
904
- * @throws {@link Chrt.UnprocessableEntityError}
905
- *
906
- * @example
907
- * await client.billing.lineItemGroups.proposeLineItemV1("line_item_group_id", {
908
- * item: "base_rate",
909
- * quantity: 1.1,
910
- * rate: 1.1
911
- * })
912
- */
913
- proposeLineItemV1(lineItemGroupId, request, requestOptions) {
914
- return core.HttpResponsePromise.fromPromise(this.__proposeLineItemV1(lineItemGroupId, request, requestOptions));
915
- }
916
- __proposeLineItemV1(lineItemGroupId, request, requestOptions) {
917
- return __awaiter(this, void 0, void 0, function* () {
918
- var _a, _b, _c, _d;
919
- let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
920
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
921
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `billing/line_item_groups/propose_line_item/v1/${encodeURIComponent(lineItemGroupId)}`),
922
- method: "POST",
923
- headers: _headers,
924
- contentType: "application/json",
925
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
926
- requestType: "json",
927
- body: request,
928
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
929
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
930
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
931
- });
932
- if (_response.ok) {
933
- return { data: _response.body, rawResponse: _response.rawResponse };
934
- }
935
- if (_response.error.reason === "status-code") {
936
- switch (_response.error.statusCode) {
937
- case 422:
938
- throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
939
- default:
940
- throw new errors.ChrtError({
941
- statusCode: _response.error.statusCode,
942
- body: _response.error.body,
943
- rawResponse: _response.rawResponse,
944
- });
945
- }
946
- }
947
- switch (_response.error.reason) {
948
- case "non-json":
949
- throw new errors.ChrtError({
950
- statusCode: _response.error.statusCode,
951
- body: _response.error.rawBody,
952
- rawResponse: _response.rawResponse,
953
- });
954
- case "timeout":
955
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /billing/line_item_groups/propose_line_item/v1/{line_item_group_id}.");
956
- case "unknown":
957
- throw new errors.ChrtError({
958
- message: _response.error.errorMessage,
959
- rawResponse: _response.rawResponse,
960
- });
961
- }
962
- });
963
- }
964
- /**
965
- * Prices a single driver's combined trip across several task groups once. Recomputes route mileage from the ordered task locations (plus optional start/end legs), applies the CHRT-ground rate sheet, and atomically creates an OrderGroup-anchored LineItemGroup, its mileage LineItems, and the LineItemCalculation that records how the charges were derived. The LIG is detached on create (task_group_id is None) — attach to a Statement afterwards. | authz: allowed_org_types=[provider], min_org_role=operator | (SharedTaskGroupMileageCreateForProviderPayDriverClientReq) -> (LineItemGroup1)
966
- *
967
- * @param {Chrt.billing.SharedTaskGroupMileageCreateForProviderPayDriverClientReq} request
968
- * @param {LineItemGroups.RequestOptions} requestOptions - Request-specific configuration.
969
- *
970
- * @throws {@link Chrt.UnprocessableEntityError}
971
- *
972
- * @example
973
- * await client.billing.lineItemGroups.sharedTaskGroupMileageCreateV1({
974
- * order_group_id: "order_group_id",
975
- * payment_destination_driver_id: "payment_destination_driver_id",
976
- * rate_sheet_id: "rate_sheet_id",
977
- * task_ids: ["task_ids"]
978
- * })
979
- */
980
- sharedTaskGroupMileageCreateV1(request, requestOptions) {
981
- return core.HttpResponsePromise.fromPromise(this.__sharedTaskGroupMileageCreateV1(request, requestOptions));
982
- }
983
- __sharedTaskGroupMileageCreateV1(request, requestOptions) {
984
- return __awaiter(this, void 0, void 0, function* () {
985
- var _a, _b, _c, _d;
986
- let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
987
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
988
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "billing/line_item_groups/shared_task_group_mileage/create/v1"),
989
- method: "POST",
990
- headers: _headers,
991
- contentType: "application/json",
992
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
993
- requestType: "json",
994
- body: request,
995
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
996
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
997
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
998
- });
999
- if (_response.ok) {
1000
- return { data: _response.body, rawResponse: _response.rawResponse };
1001
- }
1002
- if (_response.error.reason === "status-code") {
1003
- switch (_response.error.statusCode) {
1004
- case 422:
1005
- throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
1006
- default:
1007
- throw new errors.ChrtError({
1008
- statusCode: _response.error.statusCode,
1009
- body: _response.error.body,
1010
- rawResponse: _response.rawResponse,
1011
- });
1012
- }
1013
- }
1014
- switch (_response.error.reason) {
1015
- case "non-json":
1016
- throw new errors.ChrtError({
1017
- statusCode: _response.error.statusCode,
1018
- body: _response.error.rawBody,
1019
- rawResponse: _response.rawResponse,
1020
- });
1021
- case "timeout":
1022
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /billing/line_item_groups/shared_task_group_mileage/create/v1.");
1023
- case "unknown":
1024
- throw new errors.ChrtError({
1025
- message: _response.error.errorMessage,
1026
- rawResponse: _response.rawResponse,
1027
- });
1028
- }
1029
- });
1030
- }
1031
- /**
1032
- * Prices a single agent's combined trip across several task groups once, on the provider_pay_provider vector — a coordinator paying the executor (commonly an off-chrt agent) that ran the route. Recomputes route mileage from the ordered task locations (plus optional start/end legs), applies the CHRT-ground rate sheet, and atomically creates an OrderGroup-anchored LineItemGroup, its mileage LineItems, and the LineItemCalculation that records how the charges were derived. The LIG is detached on create (task_group_id is None) — attach to a Statement afterwards. | authz: allowed_org_types=[provider], min_org_role=operator | (SharedTaskGroupMileageCreateForProviderPayProviderClientReq) -> (LineItemGroup1)
1033
- *
1034
- * @param {Chrt.billing.SharedTaskGroupMileageCreateForProviderPayProviderClientReq} request
1035
- * @param {LineItemGroups.RequestOptions} requestOptions - Request-specific configuration.
1036
- *
1037
- * @throws {@link Chrt.UnprocessableEntityError}
1038
- *
1039
- * @example
1040
- * await client.billing.lineItemGroups.sharedTaskGroupMileageCreateForProviderPayProviderV1({
1041
- * order_group_id: "order_group_id",
1042
- * rate_sheet_id: "rate_sheet_id",
1043
- * task_ids: ["task_ids"]
1044
- * })
1045
- */
1046
- sharedTaskGroupMileageCreateForProviderPayProviderV1(request, requestOptions) {
1047
- return core.HttpResponsePromise.fromPromise(this.__sharedTaskGroupMileageCreateForProviderPayProviderV1(request, requestOptions));
1048
- }
1049
- __sharedTaskGroupMileageCreateForProviderPayProviderV1(request, requestOptions) {
1050
- return __awaiter(this, void 0, void 0, function* () {
1051
- var _a, _b, _c, _d;
1052
- let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
1053
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
1054
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "billing/line_item_groups/shared_task_group_mileage/create_for_provider_pay_provider/v1"),
1055
- method: "POST",
1056
- headers: _headers,
1057
- contentType: "application/json",
1058
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
1059
- requestType: "json",
1060
- body: request,
1061
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1062
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
1063
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1064
- });
1065
- if (_response.ok) {
1066
- return { data: _response.body, rawResponse: _response.rawResponse };
1067
- }
1068
- if (_response.error.reason === "status-code") {
1069
- switch (_response.error.statusCode) {
1070
- case 422:
1071
- throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
1072
- default:
1073
- throw new errors.ChrtError({
1074
- statusCode: _response.error.statusCode,
1075
- body: _response.error.body,
1076
- rawResponse: _response.rawResponse,
1077
- });
1078
- }
1079
- }
1080
- switch (_response.error.reason) {
1081
- case "non-json":
1082
- throw new errors.ChrtError({
1083
- statusCode: _response.error.statusCode,
1084
- body: _response.error.rawBody,
1085
- rawResponse: _response.rawResponse,
1086
- });
1087
- case "timeout":
1088
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /billing/line_item_groups/shared_task_group_mileage/create_for_provider_pay_provider/v1.");
1089
- case "unknown":
1090
- throw new errors.ChrtError({
1091
- message: _response.error.errorMessage,
1092
- rawResponse: _response.rawResponse,
1093
- });
1094
- }
1095
- });
1096
- }
1097
- /**
1098
- * Counterparty pulls back their own pending LineItem on a non-FINALIZED LineItemGroup. Only the proposing org can withdraw; the LineItem doc is deleted (no breadcrumb). | authz_personas=[lig_org_operators] | () -> (LineItemGroup1)
1099
- *
1100
- * @param {string} lineItemGroupId
1101
- * @param {string} lineItemId
1102
- * @param {LineItemGroups.RequestOptions} requestOptions - Request-specific configuration.
1103
- *
1104
- * @throws {@link Chrt.UnprocessableEntityError}
1105
- *
1106
- * @example
1107
- * await client.billing.lineItemGroups.withdrawLineItemV1("line_item_group_id", "line_item_id")
1108
- */
1109
- withdrawLineItemV1(lineItemGroupId, lineItemId, requestOptions) {
1110
- return core.HttpResponsePromise.fromPromise(this.__withdrawLineItemV1(lineItemGroupId, lineItemId, requestOptions));
1111
- }
1112
- __withdrawLineItemV1(lineItemGroupId, lineItemId, requestOptions) {
1113
- return __awaiter(this, void 0, void 0, function* () {
1114
- var _a, _b, _c, _d;
1115
- let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
1116
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
1117
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `billing/line_item_groups/withdraw_line_item/v1/${encodeURIComponent(lineItemGroupId)}/${encodeURIComponent(lineItemId)}`),
1118
- method: "DELETE",
1119
- headers: _headers,
1120
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
1121
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1122
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
1123
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1124
- });
1125
- if (_response.ok) {
1126
- return { data: _response.body, rawResponse: _response.rawResponse };
1127
- }
1128
- if (_response.error.reason === "status-code") {
1129
- switch (_response.error.statusCode) {
1130
- case 422:
1131
- throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
1132
- default:
1133
- throw new errors.ChrtError({
1134
- statusCode: _response.error.statusCode,
1135
- body: _response.error.body,
1136
- rawResponse: _response.rawResponse,
1137
- });
1138
- }
1139
- }
1140
- switch (_response.error.reason) {
1141
- case "non-json":
1142
- throw new errors.ChrtError({
1143
- statusCode: _response.error.statusCode,
1144
- body: _response.error.rawBody,
1145
- rawResponse: _response.rawResponse,
1146
- });
1147
- case "timeout":
1148
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling DELETE /billing/line_item_groups/withdraw_line_item/v1/{line_item_group_id}/{line_item_id}.");
1149
- case "unknown":
1150
- throw new errors.ChrtError({
1151
- message: _response.error.errorMessage,
1152
- rawResponse: _response.rawResponse,
1153
- });
1154
- }
1155
- });
1156
- }
1157
- _getAuthorizationHeader() {
1158
- return __awaiter(this, void 0, void 0, function* () {
1159
- const bearer = yield core.Supplier.get(this._options.token);
1160
- if (bearer != null) {
1161
- return `Bearer ${bearer}`;
1162
- }
1163
- return undefined;
1164
- });
1165
- }
1166
- }