@chrt-inc/typescript-sdk 1.504.0 → 1.511.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 (422) hide show
  1. package/dist/cjs/Client.d.ts +3 -0
  2. package/dist/cjs/Client.js +15 -10
  3. package/dist/cjs/api/resources/index.d.ts +1 -0
  4. package/dist/cjs/api/resources/index.js +2 -1
  5. package/dist/cjs/api/resources/integrations/client/Client.d.ts +29 -0
  6. package/dist/cjs/api/resources/integrations/client/Client.js +27 -0
  7. package/dist/cjs/api/resources/integrations/client/index.d.ts +1 -0
  8. package/dist/cjs/api/resources/integrations/client/index.js +2 -0
  9. package/dist/cjs/api/resources/integrations/index.d.ts +2 -0
  10. package/dist/cjs/api/resources/integrations/index.js +18 -0
  11. package/dist/cjs/api/resources/integrations/resources/airWaybills/client/Client.d.ts +128 -0
  12. package/dist/cjs/api/resources/integrations/resources/airWaybills/client/Client.js +490 -0
  13. package/dist/cjs/api/resources/integrations/resources/airWaybills/client/index.d.ts +2 -0
  14. package/dist/cjs/api/resources/integrations/resources/airWaybills/client/index.js +17 -0
  15. package/dist/cjs/api/resources/integrations/resources/airWaybills/client/requests/AirWaybillCreateReq.d.ts +12 -0
  16. package/dist/cjs/api/resources/integrations/resources/airWaybills/client/requests/ChampAirWaybillClientUpdate1.d.ts +40 -0
  17. package/dist/cjs/api/resources/integrations/resources/airWaybills/client/requests/ChampAirWaybillClientUpdate1.js +5 -0
  18. package/dist/cjs/api/resources/integrations/resources/airWaybills/client/requests/index.d.ts +2 -0
  19. package/dist/cjs/api/resources/integrations/resources/airWaybills/client/requests/index.js +2 -0
  20. package/dist/cjs/api/resources/integrations/resources/airWaybills/index.d.ts +1 -0
  21. package/dist/cjs/api/resources/integrations/resources/airWaybills/index.js +17 -0
  22. package/dist/cjs/api/resources/integrations/resources/index.d.ts +5 -0
  23. package/dist/cjs/api/resources/integrations/resources/index.js +44 -0
  24. package/dist/cjs/api/resources/integrations/resources/webcargoBookings/client/Client.d.ts +60 -0
  25. package/dist/cjs/api/resources/integrations/resources/webcargoBookings/client/Client.js +186 -0
  26. package/dist/cjs/api/resources/integrations/resources/webcargoBookings/client/index.d.ts +1 -0
  27. package/dist/cjs/api/resources/integrations/resources/webcargoBookings/client/index.js +2 -0
  28. package/dist/cjs/api/resources/integrations/resources/webcargoBookings/index.d.ts +1 -0
  29. package/dist/cjs/api/resources/integrations/resources/webcargoBookings/index.js +17 -0
  30. package/dist/cjs/api/resources/integrations/resources/webcargoEmbed/client/Client.d.ts +53 -0
  31. package/dist/cjs/api/resources/integrations/resources/webcargoEmbed/client/Client.js +136 -0
  32. package/dist/cjs/api/resources/integrations/resources/webcargoEmbed/client/index.d.ts +2 -0
  33. package/dist/cjs/api/resources/integrations/resources/webcargoEmbed/client/index.js +17 -0
  34. package/dist/cjs/api/resources/integrations/resources/webcargoEmbed/client/requests/GetWebcargoEmbedReq.d.ts +18 -0
  35. package/dist/cjs/api/resources/integrations/resources/webcargoEmbed/client/requests/GetWebcargoEmbedReq.js +5 -0
  36. package/dist/cjs/api/resources/integrations/resources/webcargoEmbed/client/requests/index.d.ts +1 -0
  37. package/dist/cjs/api/resources/integrations/resources/webcargoEmbed/client/requests/index.js +2 -0
  38. package/dist/cjs/api/resources/integrations/resources/webcargoEmbed/index.d.ts +1 -0
  39. package/dist/cjs/api/resources/integrations/resources/webcargoEmbed/index.js +17 -0
  40. package/dist/cjs/api/resources/utils/resources/dev/client/Client.d.ts +4 -4
  41. package/dist/cjs/api/resources/utils/resources/dev/client/Client.js +7 -7
  42. package/dist/cjs/api/types/Caller.d.ts +14 -0
  43. package/dist/cjs/api/types/Caller.js +5 -0
  44. package/dist/cjs/api/types/CallerCredentialTypeEnum.d.ts +9 -0
  45. package/dist/cjs/api/types/CallerCredentialTypeEnum.js +11 -0
  46. package/dist/cjs/api/types/CargojsonAccountContact.d.ts +13 -0
  47. package/dist/cjs/api/types/CargojsonAccountContact.js +5 -0
  48. package/dist/cjs/api/types/CargojsonAccounting.d.ts +11 -0
  49. package/dist/cjs/api/types/CargojsonAccounting.js +5 -0
  50. package/dist/cjs/api/types/CargojsonAccountingInformationIdentifier.d.ts +18 -0
  51. package/dist/cjs/api/types/CargojsonAccountingInformationIdentifier.js +17 -0
  52. package/dist/cjs/api/types/CargojsonAddress.d.ts +16 -0
  53. package/dist/cjs/api/types/CargojsonAddress.js +5 -0
  54. package/dist/cjs/api/types/CargojsonAddressing.d.ts +14 -0
  55. package/dist/cjs/api/types/CargojsonAddressing.js +5 -0
  56. package/dist/cjs/api/types/CargojsonAgent.d.ts +16 -0
  57. package/dist/cjs/api/types/CargojsonAgent.js +5 -0
  58. package/dist/cjs/api/types/CargojsonCassIndicator.d.ts +21 -0
  59. package/dist/cjs/api/types/CargojsonCassIndicator.js +20 -0
  60. package/dist/cjs/api/types/CargojsonCharge.d.ts +16 -0
  61. package/dist/cjs/api/types/CargojsonCharge.js +5 -0
  62. package/dist/cjs/api/types/CargojsonChargeCode.d.ts +34 -0
  63. package/dist/cjs/api/types/CargojsonChargeCode.js +33 -0
  64. package/dist/cjs/api/types/CargojsonChargeDeclarations.d.ts +17 -0
  65. package/dist/cjs/api/types/CargojsonChargeDeclarations.js +5 -0
  66. package/dist/cjs/api/types/CargojsonChargeItem.d.ts +20 -0
  67. package/dist/cjs/api/types/CargojsonChargeItem.js +5 -0
  68. package/dist/cjs/api/types/CargojsonChargeSummary.d.ts +15 -0
  69. package/dist/cjs/api/types/CargojsonChargeSummary.js +5 -0
  70. package/dist/cjs/api/types/CargojsonCollectChargesInDestCurrency.d.ts +13 -0
  71. package/dist/cjs/api/types/CargojsonCollectChargesInDestCurrency.js +5 -0
  72. package/dist/cjs/api/types/CargojsonCommissionInfo.d.ts +10 -0
  73. package/dist/cjs/api/types/CargojsonCommissionInfo.js +5 -0
  74. package/dist/cjs/api/types/CargojsonContactDetail.d.ts +11 -0
  75. package/dist/cjs/api/types/CargojsonContactDetail.js +5 -0
  76. package/dist/cjs/api/types/CargojsonDimensionUnit.d.ts +17 -0
  77. package/dist/cjs/api/types/CargojsonDimensionUnit.js +15 -0
  78. package/dist/cjs/api/types/CargojsonDimensions.d.ts +13 -0
  79. package/dist/cjs/api/types/CargojsonDimensions.js +5 -0
  80. package/dist/cjs/api/types/CargojsonEdifactData.d.ts +12 -0
  81. package/dist/cjs/api/types/CargojsonEdifactData.js +5 -0
  82. package/dist/cjs/api/types/CargojsonEntitlementCode.d.ts +11 -0
  83. package/dist/cjs/api/types/CargojsonEntitlementCode.js +10 -0
  84. package/dist/cjs/api/types/CargojsonFlightIdentity.d.ts +13 -0
  85. package/dist/cjs/api/types/CargojsonFlightIdentity.js +5 -0
  86. package/dist/cjs/api/types/CargojsonMessageHeader.d.ts +12 -0
  87. package/dist/cjs/api/types/CargojsonMessageHeader.js +5 -0
  88. package/dist/cjs/api/types/CargojsonNominatedHandlingParty.d.ts +10 -0
  89. package/dist/cjs/api/types/CargojsonNominatedHandlingParty.js +5 -0
  90. package/dist/cjs/api/types/CargojsonOci.d.ts +13 -0
  91. package/dist/cjs/api/types/CargojsonOci.js +5 -0
  92. package/dist/cjs/api/types/CargojsonOfficeMessageAddress.d.ts +11 -0
  93. package/dist/cjs/api/types/CargojsonOfficeMessageAddress.js +5 -0
  94. package/dist/cjs/api/types/CargojsonOtherChargeCode.d.ts +147 -0
  95. package/dist/cjs/api/types/CargojsonOtherChargeCode.js +143 -0
  96. package/dist/cjs/api/types/CargojsonOtherChargeItem.d.ts +13 -0
  97. package/dist/cjs/api/types/CargojsonOtherChargeItem.js +5 -0
  98. package/dist/cjs/api/types/CargojsonOtherParticipant.d.ts +13 -0
  99. package/dist/cjs/api/types/CargojsonOtherParticipant.js +5 -0
  100. package/dist/cjs/api/types/CargojsonPackaging.d.ts +15 -0
  101. package/dist/cjs/api/types/CargojsonPackaging.js +5 -0
  102. package/dist/cjs/api/types/CargojsonParticipantAddress.d.ts +11 -0
  103. package/dist/cjs/api/types/CargojsonParticipantAddress.js +5 -0
  104. package/dist/cjs/api/types/CargojsonParticipantAddressType.d.ts +16 -0
  105. package/dist/cjs/api/types/CargojsonParticipantAddressType.js +15 -0
  106. package/dist/cjs/api/types/CargojsonParticipantIdentifier.d.ts +12 -0
  107. package/dist/cjs/api/types/CargojsonParticipantIdentifier.js +5 -0
  108. package/dist/cjs/api/types/CargojsonParticipantType.d.ts +23 -0
  109. package/dist/cjs/api/types/CargojsonParticipantType.js +22 -0
  110. package/dist/cjs/api/types/CargojsonPaymentCondition.d.ts +11 -0
  111. package/dist/cjs/api/types/CargojsonPaymentCondition.js +10 -0
  112. package/dist/cjs/api/types/CargojsonRateClassCode.d.ts +22 -0
  113. package/dist/cjs/api/types/CargojsonRateClassCode.js +21 -0
  114. package/dist/cjs/api/types/CargojsonRouting.d.ts +10 -0
  115. package/dist/cjs/api/types/CargojsonRouting.js +5 -0
  116. package/dist/cjs/api/types/CargojsonSalesIncentive.d.ts +11 -0
  117. package/dist/cjs/api/types/CargojsonSalesIncentive.js +5 -0
  118. package/dist/cjs/api/types/CargojsonServiceCode.d.ts +35 -0
  119. package/dist/cjs/api/types/CargojsonServiceCode.js +34 -0
  120. package/dist/cjs/api/types/CargojsonShipmentReferenceInformation.d.ts +10 -0
  121. package/dist/cjs/api/types/CargojsonShipmentReferenceInformation.js +5 -0
  122. package/dist/cjs/api/types/CargojsonSpecialHandlingCode.d.ts +122 -0
  123. package/dist/cjs/api/types/CargojsonSpecialHandlingCode.js +120 -0
  124. package/dist/cjs/api/types/CargojsonUld.d.ts +15 -0
  125. package/dist/cjs/api/types/CargojsonUld.js +5 -0
  126. package/dist/cjs/api/types/CargojsonVolume.d.ts +11 -0
  127. package/dist/cjs/api/types/CargojsonVolume.js +5 -0
  128. package/dist/cjs/api/types/CargojsonVolumeUnit.d.ts +10 -0
  129. package/dist/cjs/api/types/CargojsonVolumeUnit.js +12 -0
  130. package/dist/cjs/api/types/CargojsonWeight.d.ts +16 -0
  131. package/dist/cjs/api/types/CargojsonWeight.js +5 -0
  132. package/dist/cjs/api/types/CargojsonWeightUnit.d.ts +8 -0
  133. package/dist/cjs/api/types/CargojsonWeightUnit.js +10 -0
  134. package/dist/cjs/api/types/ChampAirWaybill1.d.ts +49 -0
  135. package/dist/cjs/api/types/ChampAirWaybill1.js +5 -0
  136. package/dist/cjs/api/types/ChampAirWaybillStatusEnum1.d.ts +10 -0
  137. package/dist/cjs/api/types/ChampAirWaybillStatusEnum1.js +12 -0
  138. package/dist/cjs/api/types/ChampConfirmationReceipt1.d.ts +22 -0
  139. package/dist/cjs/api/types/ChampConfirmationReceipt1.js +5 -0
  140. package/dist/cjs/api/types/ChampFlightStatus1.d.ts +20 -0
  141. package/dist/cjs/api/types/ChampFlightStatus1.js +5 -0
  142. package/dist/cjs/api/types/ChampFlightStatusEvent1.d.ts +27 -0
  143. package/dist/cjs/api/types/ChampFlightStatusEvent1.js +5 -0
  144. package/dist/cjs/api/types/ChampOriginAndDestination.d.ts +7 -0
  145. package/dist/cjs/api/types/ChampOriginAndDestination.js +5 -0
  146. package/dist/cjs/api/types/ChampQuantity.d.ts +9 -0
  147. package/dist/cjs/api/types/ChampQuantity.js +5 -0
  148. package/dist/cjs/api/types/CredentialInfoResponse.d.ts +17 -0
  149. package/dist/cjs/api/types/CredentialInfoResponse.js +14 -0
  150. package/dist/cjs/api/types/OrgPrivateData1.d.ts +3 -0
  151. package/dist/cjs/api/types/WebcargoAccountId.d.ts +7 -0
  152. package/dist/cjs/api/types/WebcargoAccountId.js +5 -0
  153. package/dist/cjs/api/types/WebcargoBookStatus.d.ts +7 -0
  154. package/dist/cjs/api/types/WebcargoBookStatus.js +5 -0
  155. package/dist/cjs/api/types/WebcargoBookingRate.d.ts +20 -0
  156. package/dist/cjs/api/types/WebcargoBookingRate.js +5 -0
  157. package/dist/cjs/api/types/WebcargoBookingRecord1.d.ts +19 -0
  158. package/dist/cjs/api/types/WebcargoBookingRecord1.js +5 -0
  159. package/dist/cjs/api/types/WebcargoBusinessInfo.d.ts +9 -0
  160. package/dist/cjs/api/types/WebcargoBusinessInfo.js +5 -0
  161. package/dist/cjs/api/types/WebcargoCarrier.d.ts +6 -0
  162. package/dist/cjs/api/types/WebcargoCarrier.js +5 -0
  163. package/dist/cjs/api/types/WebcargoCommodityClass.d.ts +8 -0
  164. package/dist/cjs/api/types/WebcargoCommodityClass.js +5 -0
  165. package/dist/cjs/api/types/WebcargoConnection.d.ts +8 -0
  166. package/dist/cjs/api/types/WebcargoConnection.js +5 -0
  167. package/dist/cjs/api/types/WebcargoContact.d.ts +9 -0
  168. package/dist/cjs/api/types/WebcargoContact.js +5 -0
  169. package/dist/cjs/api/types/WebcargoDimension.d.ts +9 -0
  170. package/dist/cjs/api/types/WebcargoDimension.js +5 -0
  171. package/dist/cjs/api/types/WebcargoDocumentIdentifier.d.ts +8 -0
  172. package/dist/cjs/api/types/WebcargoDocumentIdentifier.js +5 -0
  173. package/dist/cjs/api/types/WebcargoEmbedResponse.d.ts +11 -0
  174. package/dist/cjs/api/types/WebcargoEmbedResponse.js +5 -0
  175. package/dist/cjs/api/types/WebcargoFee.d.ts +16 -0
  176. package/dist/cjs/api/types/WebcargoFee.js +5 -0
  177. package/dist/cjs/api/types/WebcargoLeg.d.ts +10 -0
  178. package/dist/cjs/api/types/WebcargoLeg.js +5 -0
  179. package/dist/cjs/api/types/WebcargoLoad.d.ts +11 -0
  180. package/dist/cjs/api/types/WebcargoLoad.js +5 -0
  181. package/dist/cjs/api/types/WebcargoLocation.d.ts +11 -0
  182. package/dist/cjs/api/types/WebcargoLocation.js +5 -0
  183. package/dist/cjs/api/types/WebcargoMessageHeader.d.ts +7 -0
  184. package/dist/cjs/api/types/WebcargoMessageHeader.js +5 -0
  185. package/dist/cjs/api/types/WebcargoPackage.d.ts +12 -0
  186. package/dist/cjs/api/types/WebcargoPackage.js +5 -0
  187. package/dist/cjs/api/types/WebcargoParty.d.ts +12 -0
  188. package/dist/cjs/api/types/WebcargoParty.js +5 -0
  189. package/dist/cjs/api/types/WebcargoPostalAddress.d.ts +14 -0
  190. package/dist/cjs/api/types/WebcargoPostalAddress.js +5 -0
  191. package/dist/cjs/api/types/WebcargoPriceIndicator.d.ts +12 -0
  192. package/dist/cjs/api/types/WebcargoPriceIndicator.js +5 -0
  193. package/dist/cjs/api/types/WebcargoProduct.d.ts +7 -0
  194. package/dist/cjs/api/types/WebcargoProduct.js +5 -0
  195. package/dist/cjs/api/types/WebcargoResponseStatus.d.ts +7 -0
  196. package/dist/cjs/api/types/WebcargoResponseStatus.js +5 -0
  197. package/dist/cjs/api/types/WebcargoResponseStatusEntry.d.ts +7 -0
  198. package/dist/cjs/api/types/WebcargoResponseStatusEntry.js +5 -0
  199. package/dist/cjs/api/types/WebcargoSegment.d.ts +21 -0
  200. package/dist/cjs/api/types/WebcargoSegment.js +5 -0
  201. package/dist/cjs/api/types/WebcargoShipment.d.ts +8 -0
  202. package/dist/cjs/api/types/WebcargoShipment.js +5 -0
  203. package/dist/cjs/api/types/WebcargoValueWithUnit.d.ts +13 -0
  204. package/dist/cjs/api/types/WebcargoValueWithUnit.js +5 -0
  205. package/dist/cjs/api/types/index.d.ts +81 -1
  206. package/dist/cjs/api/types/index.js +81 -1
  207. package/dist/cjs/version.d.ts +1 -1
  208. package/dist/cjs/version.js +1 -1
  209. package/dist/esm/Client.d.mts +3 -0
  210. package/dist/esm/Client.mjs +7 -2
  211. package/dist/esm/api/resources/index.d.mts +1 -0
  212. package/dist/esm/api/resources/index.mjs +1 -0
  213. package/dist/esm/api/resources/integrations/client/Client.d.mts +29 -0
  214. package/dist/esm/api/resources/integrations/client/Client.mjs +23 -0
  215. package/dist/esm/api/resources/integrations/client/index.d.mts +1 -0
  216. package/dist/esm/api/resources/integrations/client/index.mjs +1 -0
  217. package/dist/esm/api/resources/integrations/index.d.mts +2 -0
  218. package/dist/esm/api/resources/integrations/index.mjs +2 -0
  219. package/dist/esm/api/resources/integrations/resources/airWaybills/client/Client.d.mts +128 -0
  220. package/dist/esm/api/resources/integrations/resources/airWaybills/client/Client.mjs +453 -0
  221. package/dist/esm/api/resources/integrations/resources/airWaybills/client/index.d.mts +2 -0
  222. package/dist/esm/api/resources/integrations/resources/airWaybills/client/index.mjs +1 -0
  223. package/dist/esm/api/resources/integrations/resources/airWaybills/client/requests/AirWaybillCreateReq.d.mts +12 -0
  224. package/dist/esm/api/resources/integrations/resources/airWaybills/client/requests/ChampAirWaybillClientUpdate1.d.mts +40 -0
  225. package/dist/esm/api/resources/integrations/resources/airWaybills/client/requests/ChampAirWaybillClientUpdate1.mjs +4 -0
  226. package/dist/esm/api/resources/integrations/resources/airWaybills/client/requests/index.d.mts +2 -0
  227. package/dist/esm/api/resources/integrations/resources/airWaybills/client/requests/index.mjs +1 -0
  228. package/dist/esm/api/resources/integrations/resources/airWaybills/index.d.mts +1 -0
  229. package/dist/esm/api/resources/integrations/resources/airWaybills/index.mjs +1 -0
  230. package/dist/esm/api/resources/integrations/resources/index.d.mts +5 -0
  231. package/dist/esm/api/resources/integrations/resources/index.mjs +5 -0
  232. package/dist/esm/api/resources/integrations/resources/webcargoBookings/client/Client.d.mts +60 -0
  233. package/dist/esm/api/resources/integrations/resources/webcargoBookings/client/Client.mjs +149 -0
  234. package/dist/esm/api/resources/integrations/resources/webcargoBookings/client/index.d.mts +1 -0
  235. package/dist/esm/api/resources/integrations/resources/webcargoBookings/client/index.mjs +1 -0
  236. package/dist/esm/api/resources/integrations/resources/webcargoBookings/index.d.mts +1 -0
  237. package/dist/esm/api/resources/integrations/resources/webcargoBookings/index.mjs +1 -0
  238. package/dist/esm/api/resources/integrations/resources/webcargoEmbed/client/Client.d.mts +53 -0
  239. package/dist/esm/api/resources/integrations/resources/webcargoEmbed/client/Client.mjs +99 -0
  240. package/dist/esm/api/resources/integrations/resources/webcargoEmbed/client/index.d.mts +2 -0
  241. package/dist/esm/api/resources/integrations/resources/webcargoEmbed/client/index.mjs +1 -0
  242. package/dist/esm/api/resources/integrations/resources/webcargoEmbed/client/requests/GetWebcargoEmbedReq.d.mts +18 -0
  243. package/dist/esm/api/resources/integrations/resources/webcargoEmbed/client/requests/GetWebcargoEmbedReq.mjs +4 -0
  244. package/dist/esm/api/resources/integrations/resources/webcargoEmbed/client/requests/index.d.mts +1 -0
  245. package/dist/esm/api/resources/integrations/resources/webcargoEmbed/client/requests/index.mjs +1 -0
  246. package/dist/esm/api/resources/integrations/resources/webcargoEmbed/index.d.mts +1 -0
  247. package/dist/esm/api/resources/integrations/resources/webcargoEmbed/index.mjs +1 -0
  248. package/dist/esm/api/resources/utils/resources/dev/client/Client.d.mts +4 -4
  249. package/dist/esm/api/resources/utils/resources/dev/client/Client.mjs +7 -7
  250. package/dist/esm/api/types/Caller.d.mts +14 -0
  251. package/dist/esm/api/types/Caller.mjs +4 -0
  252. package/dist/esm/api/types/CallerCredentialTypeEnum.d.mts +9 -0
  253. package/dist/esm/api/types/CallerCredentialTypeEnum.mjs +8 -0
  254. package/dist/esm/api/types/CargojsonAccountContact.d.mts +13 -0
  255. package/dist/esm/api/types/CargojsonAccountContact.mjs +4 -0
  256. package/dist/esm/api/types/CargojsonAccounting.d.mts +11 -0
  257. package/dist/esm/api/types/CargojsonAccounting.mjs +4 -0
  258. package/dist/esm/api/types/CargojsonAccountingInformationIdentifier.d.mts +18 -0
  259. package/dist/esm/api/types/CargojsonAccountingInformationIdentifier.mjs +14 -0
  260. package/dist/esm/api/types/CargojsonAddress.d.mts +16 -0
  261. package/dist/esm/api/types/CargojsonAddress.mjs +4 -0
  262. package/dist/esm/api/types/CargojsonAddressing.d.mts +14 -0
  263. package/dist/esm/api/types/CargojsonAddressing.mjs +4 -0
  264. package/dist/esm/api/types/CargojsonAgent.d.mts +16 -0
  265. package/dist/esm/api/types/CargojsonAgent.mjs +4 -0
  266. package/dist/esm/api/types/CargojsonCassIndicator.d.mts +21 -0
  267. package/dist/esm/api/types/CargojsonCassIndicator.mjs +17 -0
  268. package/dist/esm/api/types/CargojsonCharge.d.mts +16 -0
  269. package/dist/esm/api/types/CargojsonCharge.mjs +4 -0
  270. package/dist/esm/api/types/CargojsonChargeCode.d.mts +34 -0
  271. package/dist/esm/api/types/CargojsonChargeCode.mjs +30 -0
  272. package/dist/esm/api/types/CargojsonChargeDeclarations.d.mts +17 -0
  273. package/dist/esm/api/types/CargojsonChargeDeclarations.mjs +4 -0
  274. package/dist/esm/api/types/CargojsonChargeItem.d.mts +20 -0
  275. package/dist/esm/api/types/CargojsonChargeItem.mjs +4 -0
  276. package/dist/esm/api/types/CargojsonChargeSummary.d.mts +15 -0
  277. package/dist/esm/api/types/CargojsonChargeSummary.mjs +4 -0
  278. package/dist/esm/api/types/CargojsonCollectChargesInDestCurrency.d.mts +13 -0
  279. package/dist/esm/api/types/CargojsonCollectChargesInDestCurrency.mjs +4 -0
  280. package/dist/esm/api/types/CargojsonCommissionInfo.d.mts +10 -0
  281. package/dist/esm/api/types/CargojsonCommissionInfo.mjs +4 -0
  282. package/dist/esm/api/types/CargojsonContactDetail.d.mts +11 -0
  283. package/dist/esm/api/types/CargojsonContactDetail.mjs +4 -0
  284. package/dist/esm/api/types/CargojsonDimensionUnit.d.mts +17 -0
  285. package/dist/esm/api/types/CargojsonDimensionUnit.mjs +12 -0
  286. package/dist/esm/api/types/CargojsonDimensions.d.mts +13 -0
  287. package/dist/esm/api/types/CargojsonDimensions.mjs +4 -0
  288. package/dist/esm/api/types/CargojsonEdifactData.d.mts +12 -0
  289. package/dist/esm/api/types/CargojsonEdifactData.mjs +4 -0
  290. package/dist/esm/api/types/CargojsonEntitlementCode.d.mts +11 -0
  291. package/dist/esm/api/types/CargojsonEntitlementCode.mjs +7 -0
  292. package/dist/esm/api/types/CargojsonFlightIdentity.d.mts +13 -0
  293. package/dist/esm/api/types/CargojsonFlightIdentity.mjs +4 -0
  294. package/dist/esm/api/types/CargojsonMessageHeader.d.mts +12 -0
  295. package/dist/esm/api/types/CargojsonMessageHeader.mjs +4 -0
  296. package/dist/esm/api/types/CargojsonNominatedHandlingParty.d.mts +10 -0
  297. package/dist/esm/api/types/CargojsonNominatedHandlingParty.mjs +4 -0
  298. package/dist/esm/api/types/CargojsonOci.d.mts +13 -0
  299. package/dist/esm/api/types/CargojsonOci.mjs +4 -0
  300. package/dist/esm/api/types/CargojsonOfficeMessageAddress.d.mts +11 -0
  301. package/dist/esm/api/types/CargojsonOfficeMessageAddress.mjs +4 -0
  302. package/dist/esm/api/types/CargojsonOtherChargeCode.d.mts +147 -0
  303. package/dist/esm/api/types/CargojsonOtherChargeCode.mjs +140 -0
  304. package/dist/esm/api/types/CargojsonOtherChargeItem.d.mts +13 -0
  305. package/dist/esm/api/types/CargojsonOtherChargeItem.mjs +4 -0
  306. package/dist/esm/api/types/CargojsonOtherParticipant.d.mts +13 -0
  307. package/dist/esm/api/types/CargojsonOtherParticipant.mjs +4 -0
  308. package/dist/esm/api/types/CargojsonPackaging.d.mts +15 -0
  309. package/dist/esm/api/types/CargojsonPackaging.mjs +4 -0
  310. package/dist/esm/api/types/CargojsonParticipantAddress.d.mts +11 -0
  311. package/dist/esm/api/types/CargojsonParticipantAddress.mjs +4 -0
  312. package/dist/esm/api/types/CargojsonParticipantAddressType.d.mts +16 -0
  313. package/dist/esm/api/types/CargojsonParticipantAddressType.mjs +12 -0
  314. package/dist/esm/api/types/CargojsonParticipantIdentifier.d.mts +12 -0
  315. package/dist/esm/api/types/CargojsonParticipantIdentifier.mjs +4 -0
  316. package/dist/esm/api/types/CargojsonParticipantType.d.mts +23 -0
  317. package/dist/esm/api/types/CargojsonParticipantType.mjs +19 -0
  318. package/dist/esm/api/types/CargojsonPaymentCondition.d.mts +11 -0
  319. package/dist/esm/api/types/CargojsonPaymentCondition.mjs +7 -0
  320. package/dist/esm/api/types/CargojsonRateClassCode.d.mts +22 -0
  321. package/dist/esm/api/types/CargojsonRateClassCode.mjs +18 -0
  322. package/dist/esm/api/types/CargojsonRouting.d.mts +10 -0
  323. package/dist/esm/api/types/CargojsonRouting.mjs +4 -0
  324. package/dist/esm/api/types/CargojsonSalesIncentive.d.mts +11 -0
  325. package/dist/esm/api/types/CargojsonSalesIncentive.mjs +4 -0
  326. package/dist/esm/api/types/CargojsonServiceCode.d.mts +35 -0
  327. package/dist/esm/api/types/CargojsonServiceCode.mjs +31 -0
  328. package/dist/esm/api/types/CargojsonShipmentReferenceInformation.d.mts +10 -0
  329. package/dist/esm/api/types/CargojsonShipmentReferenceInformation.mjs +4 -0
  330. package/dist/esm/api/types/CargojsonSpecialHandlingCode.d.mts +122 -0
  331. package/dist/esm/api/types/CargojsonSpecialHandlingCode.mjs +117 -0
  332. package/dist/esm/api/types/CargojsonUld.d.mts +15 -0
  333. package/dist/esm/api/types/CargojsonUld.mjs +4 -0
  334. package/dist/esm/api/types/CargojsonVolume.d.mts +11 -0
  335. package/dist/esm/api/types/CargojsonVolume.mjs +4 -0
  336. package/dist/esm/api/types/CargojsonVolumeUnit.d.mts +10 -0
  337. package/dist/esm/api/types/CargojsonVolumeUnit.mjs +9 -0
  338. package/dist/esm/api/types/CargojsonWeight.d.mts +16 -0
  339. package/dist/esm/api/types/CargojsonWeight.mjs +4 -0
  340. package/dist/esm/api/types/CargojsonWeightUnit.d.mts +8 -0
  341. package/dist/esm/api/types/CargojsonWeightUnit.mjs +7 -0
  342. package/dist/esm/api/types/ChampAirWaybill1.d.mts +49 -0
  343. package/dist/esm/api/types/ChampAirWaybill1.mjs +4 -0
  344. package/dist/esm/api/types/ChampAirWaybillStatusEnum1.d.mts +10 -0
  345. package/dist/esm/api/types/ChampAirWaybillStatusEnum1.mjs +9 -0
  346. package/dist/esm/api/types/ChampConfirmationReceipt1.d.mts +22 -0
  347. package/dist/esm/api/types/ChampConfirmationReceipt1.mjs +4 -0
  348. package/dist/esm/api/types/ChampFlightStatus1.d.mts +20 -0
  349. package/dist/esm/api/types/ChampFlightStatus1.mjs +4 -0
  350. package/dist/esm/api/types/ChampFlightStatusEvent1.d.mts +27 -0
  351. package/dist/esm/api/types/ChampFlightStatusEvent1.mjs +4 -0
  352. package/dist/esm/api/types/ChampOriginAndDestination.d.mts +7 -0
  353. package/dist/esm/api/types/ChampOriginAndDestination.mjs +4 -0
  354. package/dist/esm/api/types/ChampQuantity.d.mts +9 -0
  355. package/dist/esm/api/types/ChampQuantity.mjs +4 -0
  356. package/dist/esm/api/types/CredentialInfoResponse.d.mts +17 -0
  357. package/dist/esm/api/types/CredentialInfoResponse.mjs +11 -0
  358. package/dist/esm/api/types/OrgPrivateData1.d.mts +3 -0
  359. package/dist/esm/api/types/WebcargoAccountId.d.mts +7 -0
  360. package/dist/esm/api/types/WebcargoAccountId.mjs +4 -0
  361. package/dist/esm/api/types/WebcargoBookStatus.d.mts +7 -0
  362. package/dist/esm/api/types/WebcargoBookStatus.mjs +4 -0
  363. package/dist/esm/api/types/WebcargoBookingRate.d.mts +20 -0
  364. package/dist/esm/api/types/WebcargoBookingRate.mjs +4 -0
  365. package/dist/esm/api/types/WebcargoBookingRecord1.d.mts +19 -0
  366. package/dist/esm/api/types/WebcargoBookingRecord1.mjs +4 -0
  367. package/dist/esm/api/types/WebcargoBusinessInfo.d.mts +9 -0
  368. package/dist/esm/api/types/WebcargoBusinessInfo.mjs +4 -0
  369. package/dist/esm/api/types/WebcargoCarrier.d.mts +6 -0
  370. package/dist/esm/api/types/WebcargoCarrier.mjs +4 -0
  371. package/dist/esm/api/types/WebcargoCommodityClass.d.mts +8 -0
  372. package/dist/esm/api/types/WebcargoCommodityClass.mjs +4 -0
  373. package/dist/esm/api/types/WebcargoConnection.d.mts +8 -0
  374. package/dist/esm/api/types/WebcargoConnection.mjs +4 -0
  375. package/dist/esm/api/types/WebcargoContact.d.mts +9 -0
  376. package/dist/esm/api/types/WebcargoContact.mjs +4 -0
  377. package/dist/esm/api/types/WebcargoDimension.d.mts +9 -0
  378. package/dist/esm/api/types/WebcargoDimension.mjs +4 -0
  379. package/dist/esm/api/types/WebcargoDocumentIdentifier.d.mts +8 -0
  380. package/dist/esm/api/types/WebcargoDocumentIdentifier.mjs +4 -0
  381. package/dist/esm/api/types/WebcargoEmbedResponse.d.mts +11 -0
  382. package/dist/esm/api/types/WebcargoEmbedResponse.mjs +4 -0
  383. package/dist/esm/api/types/WebcargoFee.d.mts +16 -0
  384. package/dist/esm/api/types/WebcargoFee.mjs +4 -0
  385. package/dist/esm/api/types/WebcargoLeg.d.mts +10 -0
  386. package/dist/esm/api/types/WebcargoLeg.mjs +4 -0
  387. package/dist/esm/api/types/WebcargoLoad.d.mts +11 -0
  388. package/dist/esm/api/types/WebcargoLoad.mjs +4 -0
  389. package/dist/esm/api/types/WebcargoLocation.d.mts +11 -0
  390. package/dist/esm/api/types/WebcargoLocation.mjs +4 -0
  391. package/dist/esm/api/types/WebcargoMessageHeader.d.mts +7 -0
  392. package/dist/esm/api/types/WebcargoMessageHeader.mjs +4 -0
  393. package/dist/esm/api/types/WebcargoPackage.d.mts +12 -0
  394. package/dist/esm/api/types/WebcargoPackage.mjs +4 -0
  395. package/dist/esm/api/types/WebcargoParty.d.mts +12 -0
  396. package/dist/esm/api/types/WebcargoParty.mjs +4 -0
  397. package/dist/esm/api/types/WebcargoPostalAddress.d.mts +14 -0
  398. package/dist/esm/api/types/WebcargoPostalAddress.mjs +4 -0
  399. package/dist/esm/api/types/WebcargoPriceIndicator.d.mts +12 -0
  400. package/dist/esm/api/types/WebcargoPriceIndicator.mjs +4 -0
  401. package/dist/esm/api/types/WebcargoProduct.d.mts +7 -0
  402. package/dist/esm/api/types/WebcargoProduct.mjs +4 -0
  403. package/dist/esm/api/types/WebcargoResponseStatus.d.mts +7 -0
  404. package/dist/esm/api/types/WebcargoResponseStatus.mjs +4 -0
  405. package/dist/esm/api/types/WebcargoResponseStatusEntry.d.mts +7 -0
  406. package/dist/esm/api/types/WebcargoResponseStatusEntry.mjs +4 -0
  407. package/dist/esm/api/types/WebcargoSegment.d.mts +21 -0
  408. package/dist/esm/api/types/WebcargoSegment.mjs +4 -0
  409. package/dist/esm/api/types/WebcargoShipment.d.mts +8 -0
  410. package/dist/esm/api/types/WebcargoShipment.mjs +4 -0
  411. package/dist/esm/api/types/WebcargoValueWithUnit.d.mts +13 -0
  412. package/dist/esm/api/types/WebcargoValueWithUnit.mjs +4 -0
  413. package/dist/esm/api/types/index.d.mts +81 -1
  414. package/dist/esm/api/types/index.mjs +81 -1
  415. package/dist/esm/version.d.mts +1 -1
  416. package/dist/esm/version.mjs +1 -1
  417. package/package.json +1 -1
  418. package/reference.md +662 -3
  419. package/dist/cjs/api/types/DecodedJwtWithOrgAndUserId.d.ts +0 -27
  420. package/dist/esm/api/types/DecodedJwtWithOrgAndUserId.d.mts +0 -27
  421. /package/dist/cjs/api/{types/DecodedJwtWithOrgAndUserId.js → resources/integrations/resources/airWaybills/client/requests/AirWaybillCreateReq.js} +0 -0
  422. /package/dist/esm/api/{types/DecodedJwtWithOrgAndUserId.mjs → resources/integrations/resources/airWaybills/client/requests/AirWaybillCreateReq.mjs} +0 -0
@@ -0,0 +1,490 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
39
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
40
+ return new (P || (P = Promise))(function (resolve, reject) {
41
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
42
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
43
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
44
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
45
+ });
46
+ };
47
+ Object.defineProperty(exports, "__esModule", { value: true });
48
+ exports.AirWaybills = void 0;
49
+ const environments = __importStar(require("../../../../../../environments.js"));
50
+ const core = __importStar(require("../../../../../../core/index.js"));
51
+ const Chrt = __importStar(require("../../../../../index.js"));
52
+ const headers_js_1 = require("../../../../../../core/headers.js");
53
+ const errors = __importStar(require("../../../../../../errors/index.js"));
54
+ class AirWaybills {
55
+ constructor(_options = {}) {
56
+ this._options = _options;
57
+ }
58
+ /**
59
+ * Creates a CHAMP air waybill pre-populated from the stored WebCargo booking record. The booking must be synced first via the webcargo_bookings sync route. Returns 409 if an air waybill already exists for this task group. | (AirWaybillCreateReq) -> (ChampAirWaybill1)
60
+ *
61
+ * @param {Chrt.integrations.AirWaybillCreateReq} request
62
+ * @param {AirWaybills.RequestOptions} requestOptions - Request-specific configuration.
63
+ *
64
+ * @throws {@link Chrt.UnprocessableEntityError}
65
+ *
66
+ * @example
67
+ * await client.integrations.airWaybills.createV1({
68
+ * task_group_id: "task_group_id"
69
+ * })
70
+ */
71
+ createV1(request, requestOptions) {
72
+ return core.HttpResponsePromise.fromPromise(this.__createV1(request, requestOptions));
73
+ }
74
+ __createV1(request, requestOptions) {
75
+ return __awaiter(this, void 0, void 0, function* () {
76
+ var _a, _b, _c, _d;
77
+ let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
78
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
79
+ 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, "integrations/air_waybills/create/v1"),
80
+ method: "POST",
81
+ headers: _headers,
82
+ contentType: "application/json",
83
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
84
+ requestType: "json",
85
+ body: request,
86
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
87
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
88
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
89
+ });
90
+ if (_response.ok) {
91
+ return { data: _response.body, rawResponse: _response.rawResponse };
92
+ }
93
+ if (_response.error.reason === "status-code") {
94
+ switch (_response.error.statusCode) {
95
+ case 422:
96
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
97
+ default:
98
+ throw new errors.ChrtError({
99
+ statusCode: _response.error.statusCode,
100
+ body: _response.error.body,
101
+ rawResponse: _response.rawResponse,
102
+ });
103
+ }
104
+ }
105
+ switch (_response.error.reason) {
106
+ case "non-json":
107
+ throw new errors.ChrtError({
108
+ statusCode: _response.error.statusCode,
109
+ body: _response.error.rawBody,
110
+ rawResponse: _response.rawResponse,
111
+ });
112
+ case "timeout":
113
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /integrations/air_waybills/create/v1.");
114
+ case "unknown":
115
+ throw new errors.ChrtError({
116
+ message: _response.error.errorMessage,
117
+ rawResponse: _response.rawResponse,
118
+ });
119
+ }
120
+ });
121
+ }
122
+ /**
123
+ * Retrieves the stored CHAMP air waybill for a task group. | () -> (ChampAirWaybill1)
124
+ *
125
+ * @param {string} taskGroupId
126
+ * @param {AirWaybills.RequestOptions} requestOptions - Request-specific configuration.
127
+ *
128
+ * @throws {@link Chrt.UnprocessableEntityError}
129
+ *
130
+ * @example
131
+ * await client.integrations.airWaybills.retrieveV1("task_group_id")
132
+ */
133
+ retrieveV1(taskGroupId, requestOptions) {
134
+ return core.HttpResponsePromise.fromPromise(this.__retrieveV1(taskGroupId, requestOptions));
135
+ }
136
+ __retrieveV1(taskGroupId, requestOptions) {
137
+ return __awaiter(this, void 0, void 0, function* () {
138
+ var _a, _b, _c, _d;
139
+ let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
140
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
141
+ 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, `integrations/air_waybills/retrieve/v1/${encodeURIComponent(taskGroupId)}`),
142
+ method: "GET",
143
+ headers: _headers,
144
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
145
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
146
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
147
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
148
+ });
149
+ if (_response.ok) {
150
+ return { data: _response.body, rawResponse: _response.rawResponse };
151
+ }
152
+ if (_response.error.reason === "status-code") {
153
+ switch (_response.error.statusCode) {
154
+ case 422:
155
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
156
+ default:
157
+ throw new errors.ChrtError({
158
+ statusCode: _response.error.statusCode,
159
+ body: _response.error.body,
160
+ rawResponse: _response.rawResponse,
161
+ });
162
+ }
163
+ }
164
+ switch (_response.error.reason) {
165
+ case "non-json":
166
+ throw new errors.ChrtError({
167
+ statusCode: _response.error.statusCode,
168
+ body: _response.error.rawBody,
169
+ rawResponse: _response.rawResponse,
170
+ });
171
+ case "timeout":
172
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /integrations/air_waybills/retrieve/v1/{task_group_id}.");
173
+ case "unknown":
174
+ throw new errors.ChrtError({
175
+ message: _response.error.errorMessage,
176
+ rawResponse: _response.rawResponse,
177
+ });
178
+ }
179
+ });
180
+ }
181
+ /**
182
+ * Updates fields on an existing CHAMP air waybill. Any editable field can be set — only fields included in the request body are changed. | (ChampAirWaybillClientUpdate1) -> (ChampAirWaybill1)
183
+ *
184
+ * @param {string} taskGroupId
185
+ * @param {Chrt.integrations.ChampAirWaybillClientUpdate1} request
186
+ * @param {AirWaybills.RequestOptions} requestOptions - Request-specific configuration.
187
+ *
188
+ * @throws {@link Chrt.UnprocessableEntityError}
189
+ *
190
+ * @example
191
+ * await client.integrations.airWaybills.updateV1("task_group_id")
192
+ */
193
+ updateV1(taskGroupId, request = {}, requestOptions) {
194
+ return core.HttpResponsePromise.fromPromise(this.__updateV1(taskGroupId, request, requestOptions));
195
+ }
196
+ __updateV1(taskGroupId_1) {
197
+ return __awaiter(this, arguments, void 0, function* (taskGroupId, request = {}, requestOptions) {
198
+ var _a, _b, _c, _d;
199
+ let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
200
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
201
+ 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, `integrations/air_waybills/update/v1/${encodeURIComponent(taskGroupId)}`),
202
+ method: "PATCH",
203
+ headers: _headers,
204
+ contentType: "application/json",
205
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
206
+ requestType: "json",
207
+ body: request,
208
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
209
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
210
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
211
+ });
212
+ if (_response.ok) {
213
+ return { data: _response.body, rawResponse: _response.rawResponse };
214
+ }
215
+ if (_response.error.reason === "status-code") {
216
+ switch (_response.error.statusCode) {
217
+ case 422:
218
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
219
+ default:
220
+ throw new errors.ChrtError({
221
+ statusCode: _response.error.statusCode,
222
+ body: _response.error.body,
223
+ rawResponse: _response.rawResponse,
224
+ });
225
+ }
226
+ }
227
+ switch (_response.error.reason) {
228
+ case "non-json":
229
+ throw new errors.ChrtError({
230
+ statusCode: _response.error.statusCode,
231
+ body: _response.error.rawBody,
232
+ rawResponse: _response.rawResponse,
233
+ });
234
+ case "timeout":
235
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /integrations/air_waybills/update/v1/{task_group_id}.");
236
+ case "unknown":
237
+ throw new errors.ChrtError({
238
+ message: _response.error.errorMessage,
239
+ rawResponse: _response.rawResponse,
240
+ });
241
+ }
242
+ });
243
+ }
244
+ /**
245
+ * Submits a draft CHAMP air waybill to Traxon cargoHUB. Requires shipper, consignee, and charge_declarations to be filled in. Returns 422 if the AWB is not in draft status or required fields are missing. | () -> (ChampAirWaybill1)
246
+ *
247
+ * @param {string} taskGroupId
248
+ * @param {AirWaybills.RequestOptions} requestOptions - Request-specific configuration.
249
+ *
250
+ * @throws {@link Chrt.UnprocessableEntityError}
251
+ *
252
+ * @example
253
+ * await client.integrations.airWaybills.submitV1("task_group_id")
254
+ */
255
+ submitV1(taskGroupId, requestOptions) {
256
+ return core.HttpResponsePromise.fromPromise(this.__submitV1(taskGroupId, requestOptions));
257
+ }
258
+ __submitV1(taskGroupId, requestOptions) {
259
+ return __awaiter(this, void 0, void 0, function* () {
260
+ var _a, _b, _c, _d;
261
+ let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
262
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
263
+ 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, `integrations/air_waybills/submit/v1/${encodeURIComponent(taskGroupId)}`),
264
+ method: "POST",
265
+ headers: _headers,
266
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
267
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
268
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
269
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
270
+ });
271
+ if (_response.ok) {
272
+ return { data: _response.body, rawResponse: _response.rawResponse };
273
+ }
274
+ if (_response.error.reason === "status-code") {
275
+ switch (_response.error.statusCode) {
276
+ case 422:
277
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
278
+ default:
279
+ throw new errors.ChrtError({
280
+ statusCode: _response.error.statusCode,
281
+ body: _response.error.body,
282
+ rawResponse: _response.rawResponse,
283
+ });
284
+ }
285
+ }
286
+ switch (_response.error.reason) {
287
+ case "non-json":
288
+ throw new errors.ChrtError({
289
+ statusCode: _response.error.statusCode,
290
+ body: _response.error.rawBody,
291
+ rawResponse: _response.rawResponse,
292
+ });
293
+ case "timeout":
294
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /integrations/air_waybills/submit/v1/{task_group_id}.");
295
+ case "unknown":
296
+ throw new errors.ChrtError({
297
+ message: _response.error.errorMessage,
298
+ rawResponse: _response.rawResponse,
299
+ });
300
+ }
301
+ });
302
+ }
303
+ /**
304
+ * Converts a CHAMP air waybill to PDF via CHAMP's conversion API. Requires shipper, consignee, and charge_declarations to be filled in. Returns the PDF file as application/pdf. | () -> (PDF binary)
305
+ *
306
+ * @param {string} taskGroupId
307
+ * @param {AirWaybills.RequestOptions} requestOptions - Request-specific configuration.
308
+ *
309
+ * @throws {@link Chrt.UnprocessableEntityError}
310
+ *
311
+ * @example
312
+ * await client.integrations.airWaybills.pdfV1("task_group_id")
313
+ */
314
+ pdfV1(taskGroupId, requestOptions) {
315
+ return core.HttpResponsePromise.fromPromise(this.__pdfV1(taskGroupId, requestOptions));
316
+ }
317
+ __pdfV1(taskGroupId, requestOptions) {
318
+ return __awaiter(this, void 0, void 0, function* () {
319
+ var _a, _b, _c, _d;
320
+ let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
321
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
322
+ 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, `integrations/air_waybills/pdf/v1/${encodeURIComponent(taskGroupId)}`),
323
+ method: "POST",
324
+ headers: _headers,
325
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
326
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
327
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
328
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
329
+ });
330
+ if (_response.ok) {
331
+ return { data: _response.body, rawResponse: _response.rawResponse };
332
+ }
333
+ if (_response.error.reason === "status-code") {
334
+ switch (_response.error.statusCode) {
335
+ case 422:
336
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
337
+ default:
338
+ throw new errors.ChrtError({
339
+ statusCode: _response.error.statusCode,
340
+ body: _response.error.body,
341
+ rawResponse: _response.rawResponse,
342
+ });
343
+ }
344
+ }
345
+ switch (_response.error.reason) {
346
+ case "non-json":
347
+ throw new errors.ChrtError({
348
+ statusCode: _response.error.statusCode,
349
+ body: _response.error.rawBody,
350
+ rawResponse: _response.rawResponse,
351
+ });
352
+ case "timeout":
353
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /integrations/air_waybills/pdf/v1/{task_group_id}.");
354
+ case "unknown":
355
+ throw new errors.ChrtError({
356
+ message: _response.error.errorMessage,
357
+ rawResponse: _response.rawResponse,
358
+ });
359
+ }
360
+ });
361
+ }
362
+ /**
363
+ * Retrieves all CHAMP confirmation receipts linked to the air waybill for a task group. | () -> (list[ChampConfirmationReceipt1])
364
+ *
365
+ * @param {string} taskGroupId
366
+ * @param {AirWaybills.RequestOptions} requestOptions - Request-specific configuration.
367
+ *
368
+ * @throws {@link Chrt.UnprocessableEntityError}
369
+ *
370
+ * @example
371
+ * await client.integrations.airWaybills.confirmationsV1("task_group_id")
372
+ */
373
+ confirmationsV1(taskGroupId, requestOptions) {
374
+ return core.HttpResponsePromise.fromPromise(this.__confirmationsV1(taskGroupId, requestOptions));
375
+ }
376
+ __confirmationsV1(taskGroupId, requestOptions) {
377
+ return __awaiter(this, void 0, void 0, function* () {
378
+ var _a, _b, _c, _d;
379
+ let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
380
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
381
+ 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, `integrations/air_waybills/confirmations/v1/${encodeURIComponent(taskGroupId)}`),
382
+ method: "GET",
383
+ headers: _headers,
384
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
385
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
386
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
387
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
388
+ });
389
+ if (_response.ok) {
390
+ return { data: _response.body, rawResponse: _response.rawResponse };
391
+ }
392
+ if (_response.error.reason === "status-code") {
393
+ switch (_response.error.statusCode) {
394
+ case 422:
395
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
396
+ default:
397
+ throw new errors.ChrtError({
398
+ statusCode: _response.error.statusCode,
399
+ body: _response.error.body,
400
+ rawResponse: _response.rawResponse,
401
+ });
402
+ }
403
+ }
404
+ switch (_response.error.reason) {
405
+ case "non-json":
406
+ throw new errors.ChrtError({
407
+ statusCode: _response.error.statusCode,
408
+ body: _response.error.rawBody,
409
+ rawResponse: _response.rawResponse,
410
+ });
411
+ case "timeout":
412
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /integrations/air_waybills/confirmations/v1/{task_group_id}.");
413
+ case "unknown":
414
+ throw new errors.ChrtError({
415
+ message: _response.error.errorMessage,
416
+ rawResponse: _response.rawResponse,
417
+ });
418
+ }
419
+ });
420
+ }
421
+ /**
422
+ * Retrieves all CHAMP flight status updates linked to the air waybill for a task group. | () -> (list[ChampFlightStatus1])
423
+ *
424
+ * @param {string} taskGroupId
425
+ * @param {AirWaybills.RequestOptions} requestOptions - Request-specific configuration.
426
+ *
427
+ * @throws {@link Chrt.UnprocessableEntityError}
428
+ *
429
+ * @example
430
+ * await client.integrations.airWaybills.flightStatusesV1("task_group_id")
431
+ */
432
+ flightStatusesV1(taskGroupId, requestOptions) {
433
+ return core.HttpResponsePromise.fromPromise(this.__flightStatusesV1(taskGroupId, requestOptions));
434
+ }
435
+ __flightStatusesV1(taskGroupId, requestOptions) {
436
+ return __awaiter(this, void 0, void 0, function* () {
437
+ var _a, _b, _c, _d;
438
+ let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
439
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
440
+ 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, `integrations/air_waybills/flight_statuses/v1/${encodeURIComponent(taskGroupId)}`),
441
+ method: "GET",
442
+ headers: _headers,
443
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
444
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
445
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
446
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
447
+ });
448
+ if (_response.ok) {
449
+ return { data: _response.body, rawResponse: _response.rawResponse };
450
+ }
451
+ if (_response.error.reason === "status-code") {
452
+ switch (_response.error.statusCode) {
453
+ case 422:
454
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
455
+ default:
456
+ throw new errors.ChrtError({
457
+ statusCode: _response.error.statusCode,
458
+ body: _response.error.body,
459
+ rawResponse: _response.rawResponse,
460
+ });
461
+ }
462
+ }
463
+ switch (_response.error.reason) {
464
+ case "non-json":
465
+ throw new errors.ChrtError({
466
+ statusCode: _response.error.statusCode,
467
+ body: _response.error.rawBody,
468
+ rawResponse: _response.rawResponse,
469
+ });
470
+ case "timeout":
471
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /integrations/air_waybills/flight_statuses/v1/{task_group_id}.");
472
+ case "unknown":
473
+ throw new errors.ChrtError({
474
+ message: _response.error.errorMessage,
475
+ rawResponse: _response.rawResponse,
476
+ });
477
+ }
478
+ });
479
+ }
480
+ _getAuthorizationHeader() {
481
+ return __awaiter(this, void 0, void 0, function* () {
482
+ const bearer = yield core.Supplier.get(this._options.token);
483
+ if (bearer != null) {
484
+ return `Bearer ${bearer}`;
485
+ }
486
+ return undefined;
487
+ });
488
+ }
489
+ }
490
+ exports.AirWaybills = AirWaybills;
@@ -0,0 +1,2 @@
1
+ export {};
2
+ export * from "./requests/index.js";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./requests/index.js"), exports);
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * task_group_id: "task_group_id"
8
+ * }
9
+ */
10
+ export interface AirWaybillCreateReq {
11
+ task_group_id: string;
12
+ }
@@ -0,0 +1,40 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../../../../../../index.js";
5
+ /**
6
+ * @example
7
+ * {}
8
+ */
9
+ export interface ChampAirWaybillClientUpdate1 {
10
+ total_consignment_number_of_pieces?: number | null;
11
+ weight?: Chrt.CargojsonWeight | null;
12
+ volume?: Chrt.CargojsonVolume | null;
13
+ charge_items?: Chrt.CargojsonChargeItem[] | null;
14
+ flights?: Chrt.CargojsonFlightIdentity[] | null;
15
+ iso_currency_code?: string | null;
16
+ agent?: Chrt.CargojsonAgent | null;
17
+ route?: Chrt.CargojsonRouting[] | null;
18
+ shipper?: Chrt.CargojsonAccountContact | null;
19
+ consignee?: Chrt.CargojsonAccountContact | null;
20
+ charge_declarations?: Chrt.CargojsonChargeDeclarations | null;
21
+ density_group?: number | null;
22
+ special_handling_codes?: Chrt.CargojsonSpecialHandlingCode[] | null;
23
+ additional_special_handling_codes?: string[] | null;
24
+ special_service_request?: string | null;
25
+ also_notify?: Chrt.CargojsonAccountContact | null;
26
+ prepaid_charge_summary?: Chrt.CargojsonChargeSummary | null;
27
+ collect_charge_summary?: Chrt.CargojsonChargeSummary | null;
28
+ accounting?: Chrt.CargojsonAccounting[] | null;
29
+ other_charges?: Chrt.CargojsonOtherChargeItem[] | null;
30
+ shippers_certification?: string | null;
31
+ other_service_information?: string | null;
32
+ charges_collect_in_dest_currency?: Chrt.CargojsonCollectChargesInDestCurrency | null;
33
+ customs_origin_code?: string | null;
34
+ commission_info?: Chrt.CargojsonCommissionInfo | null;
35
+ sales_incentive?: Chrt.CargojsonSalesIncentive | null;
36
+ nominated_handling_party?: Chrt.CargojsonNominatedHandlingParty | null;
37
+ shipment_reference_information?: Chrt.CargojsonShipmentReferenceInformation | null;
38
+ other_participant?: Chrt.CargojsonOtherParticipant[] | null;
39
+ oci?: Chrt.CargojsonOci[] | null;
40
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export { type AirWaybillCreateReq } from "./AirWaybillCreateReq.js";
2
+ export { type ChampAirWaybillClientUpdate1 } from "./ChampAirWaybillClientUpdate1.js";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export * from "./client/index.js";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./client/index.js"), exports);
@@ -0,0 +1,5 @@
1
+ export * as airWaybills from "./airWaybills/index.js";
2
+ export * as webcargoBookings from "./webcargoBookings/index.js";
3
+ export * as webcargoEmbed from "./webcargoEmbed/index.js";
4
+ export * from "./airWaybills/client/requests/index.js";
5
+ export * from "./webcargoEmbed/client/requests/index.js";
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
+ };
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.webcargoEmbed = exports.webcargoBookings = exports.airWaybills = void 0;
40
+ exports.airWaybills = __importStar(require("./airWaybills/index.js"));
41
+ exports.webcargoBookings = __importStar(require("./webcargoBookings/index.js"));
42
+ exports.webcargoEmbed = __importStar(require("./webcargoEmbed/index.js"));
43
+ __exportStar(require("./airWaybills/client/requests/index.js"), exports);
44
+ __exportStar(require("./webcargoEmbed/client/requests/index.js"), exports);