@chrt-inc/typescript-sdk 1.1011.0 → 1.1013.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 (218) hide show
  1. package/dist/cjs/Client.d.ts +3 -0
  2. package/dist/cjs/Client.js +25 -20
  3. package/dist/cjs/api/resources/cargoOnFlightIntegrations/client/Client.d.ts +23 -0
  4. package/dist/cjs/api/resources/cargoOnFlightIntegrations/client/Client.js +17 -0
  5. package/dist/cjs/api/resources/cargoOnFlightIntegrations/client/index.d.ts +1 -0
  6. package/dist/cjs/api/resources/cargoOnFlightIntegrations/client/index.js +2 -0
  7. package/dist/cjs/api/resources/cargoOnFlightIntegrations/index.d.ts +2 -0
  8. package/dist/cjs/api/resources/cargoOnFlightIntegrations/index.js +18 -0
  9. package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/Client.d.ts +114 -0
  10. package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/Client.js +387 -0
  11. package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/index.d.ts +2 -0
  12. package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/index.js +17 -0
  13. package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/requests/CargoOnFlightBookingSearchClientCreate1.d.ts +20 -0
  14. package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/requests/CargoOnFlightBookingSearchClientCreate1.js +5 -0
  15. package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/requests/CargoOnFlightIntegrationsCargoAiBookReq.d.ts +18 -0
  16. package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/requests/CargoOnFlightIntegrationsCargoAiBookReq.js +5 -0
  17. package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/requests/CargoOnFlightIntegrationsCargoAiCancelReq.d.ts +12 -0
  18. package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/requests/CargoOnFlightIntegrationsCargoAiCancelReq.js +5 -0
  19. package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/requests/index.d.ts +3 -0
  20. package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/requests/index.js +2 -0
  21. package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/cargoai/index.d.ts +1 -0
  22. package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/cargoai/index.js +17 -0
  23. package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/index.d.ts +2 -0
  24. package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/index.js +41 -0
  25. package/dist/cjs/api/resources/index.d.ts +1 -0
  26. package/dist/cjs/api/resources/index.js +2 -1
  27. package/dist/cjs/api/resources/orgs/client/Client.d.ts +3 -0
  28. package/dist/cjs/api/resources/orgs/client/Client.js +11 -6
  29. package/dist/cjs/api/resources/orgs/resources/iataCassOffices/client/Client.d.ts +93 -0
  30. package/dist/cjs/api/resources/orgs/resources/iataCassOffices/client/Client.js +331 -0
  31. package/dist/cjs/api/resources/orgs/resources/iataCassOffices/client/index.d.ts +2 -0
  32. package/dist/cjs/api/resources/orgs/resources/iataCassOffices/client/index.js +17 -0
  33. package/dist/cjs/api/resources/orgs/resources/iataCassOffices/client/requests/IataCassOfficeClientUpdate1.d.ts +13 -0
  34. package/dist/cjs/api/resources/orgs/resources/iataCassOffices/client/requests/IataCassOfficeClientUpdate1.js +5 -0
  35. package/dist/cjs/api/resources/orgs/resources/iataCassOffices/client/requests/IataCassOfficesListV1Request.d.ts +24 -0
  36. package/dist/cjs/api/resources/orgs/resources/iataCassOffices/client/requests/IataCassOfficesListV1Request.js +5 -0
  37. package/dist/cjs/api/resources/orgs/resources/iataCassOffices/client/requests/index.d.ts +2 -0
  38. package/dist/cjs/api/resources/orgs/resources/iataCassOffices/client/requests/index.js +2 -0
  39. package/dist/cjs/api/resources/orgs/resources/iataCassOffices/index.d.ts +1 -0
  40. package/dist/cjs/api/resources/orgs/resources/iataCassOffices/index.js +17 -0
  41. package/dist/cjs/api/resources/orgs/resources/index.d.ts +2 -0
  42. package/dist/cjs/api/resources/orgs/resources/index.js +3 -1
  43. package/dist/cjs/api/resources/shipping/client/Client.d.ts +6 -0
  44. package/dist/cjs/api/resources/shipping/client/Client.js +24 -14
  45. package/dist/cjs/api/resources/shipping/resources/cargoOnFlightBookingSearches/client/Client.d.ts +68 -0
  46. package/dist/cjs/api/resources/shipping/resources/cargoOnFlightBookingSearches/client/Client.js +218 -0
  47. package/dist/cjs/api/resources/shipping/resources/cargoOnFlightBookingSearches/client/index.d.ts +2 -0
  48. package/dist/cjs/api/resources/shipping/resources/cargoOnFlightBookingSearches/client/index.js +17 -0
  49. package/dist/cjs/api/resources/shipping/resources/cargoOnFlightBookingSearches/client/requests/CargoOnFlightBookingSearchesListV1Request.d.ts +30 -0
  50. package/dist/cjs/api/resources/shipping/resources/cargoOnFlightBookingSearches/client/requests/CargoOnFlightBookingSearchesListV1Request.js +5 -0
  51. package/dist/cjs/api/resources/shipping/resources/cargoOnFlightBookingSearches/client/requests/index.d.ts +1 -0
  52. package/dist/cjs/api/resources/shipping/resources/cargoOnFlightBookingSearches/client/requests/index.js +2 -0
  53. package/dist/cjs/api/resources/shipping/resources/cargoOnFlightBookingSearches/index.d.ts +1 -0
  54. package/dist/cjs/api/resources/shipping/resources/cargoOnFlightBookingSearches/index.js +17 -0
  55. package/dist/cjs/api/resources/shipping/resources/cargoOnFlightBookings/client/Client.d.ts +120 -0
  56. package/dist/cjs/api/resources/shipping/resources/cargoOnFlightBookings/client/Client.js +416 -0
  57. package/dist/cjs/api/resources/shipping/resources/cargoOnFlightBookings/client/index.d.ts +2 -0
  58. package/dist/cjs/api/resources/shipping/resources/cargoOnFlightBookings/client/index.js +17 -0
  59. package/dist/cjs/api/resources/shipping/resources/cargoOnFlightBookings/client/requests/CargoOnFlightBookingClientCreate1.d.ts +31 -0
  60. package/dist/cjs/api/resources/shipping/resources/cargoOnFlightBookings/client/requests/CargoOnFlightBookingClientCreate1.js +5 -0
  61. package/dist/cjs/api/resources/shipping/resources/cargoOnFlightBookings/client/requests/CargoOnFlightBookingsListV1Request.d.ts +33 -0
  62. package/dist/cjs/api/resources/shipping/resources/cargoOnFlightBookings/client/requests/CargoOnFlightBookingsListV1Request.js +5 -0
  63. package/dist/cjs/api/resources/shipping/resources/cargoOnFlightBookings/client/requests/index.d.ts +2 -0
  64. package/dist/cjs/api/resources/shipping/resources/cargoOnFlightBookings/client/requests/index.js +2 -0
  65. package/dist/cjs/api/resources/shipping/resources/cargoOnFlightBookings/index.d.ts +1 -0
  66. package/dist/cjs/api/resources/shipping/resources/cargoOnFlightBookings/index.js +17 -0
  67. package/dist/cjs/api/resources/shipping/resources/index.d.ts +4 -0
  68. package/dist/cjs/api/resources/shipping/resources/index.js +5 -1
  69. package/dist/cjs/api/types/CargoOnFlightBooking1.d.ts +34 -0
  70. package/dist/cjs/api/types/CargoOnFlightBooking1.js +5 -0
  71. package/dist/cjs/api/types/CargoOnFlightBookingCargoDimension1.d.ts +15 -0
  72. package/dist/cjs/api/types/CargoOnFlightBookingCargoDimension1.js +5 -0
  73. package/dist/cjs/api/types/CargoOnFlightBookingItinerary1.d.ts +13 -0
  74. package/dist/cjs/api/types/CargoOnFlightBookingItinerary1.js +5 -0
  75. package/dist/cjs/api/types/CargoOnFlightBookingItineraryLeg1.d.ts +15 -0
  76. package/dist/cjs/api/types/CargoOnFlightBookingItineraryLeg1.js +5 -0
  77. package/dist/cjs/api/types/CargoOnFlightBookingListRes.d.ts +8 -0
  78. package/dist/cjs/api/types/CargoOnFlightBookingListRes.js +5 -0
  79. package/dist/cjs/api/types/CargoOnFlightBookingRate1.d.ts +12 -0
  80. package/dist/cjs/api/types/CargoOnFlightBookingRate1.js +5 -0
  81. package/dist/cjs/api/types/CargoOnFlightBookingSearch1.d.ts +23 -0
  82. package/dist/cjs/api/types/CargoOnFlightBookingSearch1.js +5 -0
  83. package/dist/cjs/api/types/CargoOnFlightBookingSearchListRes.d.ts +8 -0
  84. package/dist/cjs/api/types/CargoOnFlightBookingSearchListRes.js +5 -0
  85. package/dist/cjs/api/types/CargoOnFlightBookingSearchResult1.d.ts +16 -0
  86. package/dist/cjs/api/types/CargoOnFlightBookingSearchResult1.js +5 -0
  87. package/dist/cjs/api/types/CargoOnFlightBookingSearchSortByEnum.d.ts +4 -0
  88. package/dist/cjs/api/types/CargoOnFlightBookingSearchSortByEnum.js +5 -0
  89. package/dist/cjs/api/types/CargoOnFlightBookingSortByEnum.d.ts +4 -0
  90. package/dist/cjs/api/types/CargoOnFlightBookingSortByEnum.js +5 -0
  91. package/dist/cjs/api/types/CargoOnFlightBookingStatusEnum1.d.ts +13 -0
  92. package/dist/cjs/api/types/CargoOnFlightBookingStatusEnum1.js +15 -0
  93. package/dist/cjs/api/types/CargoOnFlightIntegrationEnum1.d.ts +8 -0
  94. package/dist/cjs/api/types/CargoOnFlightIntegrationEnum1.js +10 -0
  95. package/dist/cjs/api/types/CargoOnFlightIntegrationsCargoAiWebhookRes.d.ts +6 -0
  96. package/dist/cjs/api/types/CargoOnFlightIntegrationsCargoAiWebhookRes.js +5 -0
  97. package/dist/cjs/api/types/FlightLegProvenanceEnum1.d.ts +2 -1
  98. package/dist/cjs/api/types/FlightLegProvenanceEnum1.js +1 -0
  99. package/dist/cjs/api/types/IataCassOffice1.d.ts +22 -0
  100. package/dist/cjs/api/types/IataCassOffice1.js +5 -0
  101. package/dist/cjs/api/types/IataCassOfficeListRes.d.ts +8 -0
  102. package/dist/cjs/api/types/IataCassOfficeListRes.js +5 -0
  103. package/dist/cjs/api/types/IataCassOfficeSortByEnum.d.ts +8 -0
  104. package/dist/cjs/api/types/IataCassOfficeSortByEnum.js +10 -0
  105. package/dist/cjs/api/types/index.d.ts +17 -0
  106. package/dist/cjs/api/types/index.js +17 -0
  107. package/dist/cjs/version.d.ts +1 -1
  108. package/dist/cjs/version.js +1 -1
  109. package/dist/esm/Client.d.mts +3 -0
  110. package/dist/esm/Client.mjs +7 -2
  111. package/dist/esm/api/resources/cargoOnFlightIntegrations/client/Client.d.mts +23 -0
  112. package/dist/esm/api/resources/cargoOnFlightIntegrations/client/Client.mjs +13 -0
  113. package/dist/esm/api/resources/cargoOnFlightIntegrations/client/index.d.mts +1 -0
  114. package/dist/esm/api/resources/cargoOnFlightIntegrations/client/index.mjs +1 -0
  115. package/dist/esm/api/resources/cargoOnFlightIntegrations/index.d.mts +2 -0
  116. package/dist/esm/api/resources/cargoOnFlightIntegrations/index.mjs +2 -0
  117. package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/Client.d.mts +114 -0
  118. package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/Client.mjs +350 -0
  119. package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/index.d.mts +2 -0
  120. package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/index.mjs +1 -0
  121. package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/requests/CargoOnFlightBookingSearchClientCreate1.d.mts +20 -0
  122. package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/requests/CargoOnFlightBookingSearchClientCreate1.mjs +4 -0
  123. package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/requests/CargoOnFlightIntegrationsCargoAiBookReq.d.mts +18 -0
  124. package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/requests/CargoOnFlightIntegrationsCargoAiBookReq.mjs +4 -0
  125. package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/requests/CargoOnFlightIntegrationsCargoAiCancelReq.d.mts +12 -0
  126. package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/requests/CargoOnFlightIntegrationsCargoAiCancelReq.mjs +4 -0
  127. package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/requests/index.d.mts +3 -0
  128. package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/requests/index.mjs +1 -0
  129. package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/cargoai/index.d.mts +1 -0
  130. package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/cargoai/index.mjs +1 -0
  131. package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/index.d.mts +2 -0
  132. package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/index.mjs +2 -0
  133. package/dist/esm/api/resources/index.d.mts +1 -0
  134. package/dist/esm/api/resources/index.mjs +1 -0
  135. package/dist/esm/api/resources/orgs/client/Client.d.mts +3 -0
  136. package/dist/esm/api/resources/orgs/client/Client.mjs +5 -0
  137. package/dist/esm/api/resources/orgs/resources/iataCassOffices/client/Client.d.mts +93 -0
  138. package/dist/esm/api/resources/orgs/resources/iataCassOffices/client/Client.mjs +294 -0
  139. package/dist/esm/api/resources/orgs/resources/iataCassOffices/client/index.d.mts +2 -0
  140. package/dist/esm/api/resources/orgs/resources/iataCassOffices/client/index.mjs +1 -0
  141. package/dist/esm/api/resources/orgs/resources/iataCassOffices/client/requests/IataCassOfficeClientUpdate1.d.mts +13 -0
  142. package/dist/esm/api/resources/orgs/resources/iataCassOffices/client/requests/IataCassOfficeClientUpdate1.mjs +4 -0
  143. package/dist/esm/api/resources/orgs/resources/iataCassOffices/client/requests/IataCassOfficesListV1Request.d.mts +24 -0
  144. package/dist/esm/api/resources/orgs/resources/iataCassOffices/client/requests/IataCassOfficesListV1Request.mjs +4 -0
  145. package/dist/esm/api/resources/orgs/resources/iataCassOffices/client/requests/index.d.mts +2 -0
  146. package/dist/esm/api/resources/orgs/resources/iataCassOffices/client/requests/index.mjs +1 -0
  147. package/dist/esm/api/resources/orgs/resources/iataCassOffices/index.d.mts +1 -0
  148. package/dist/esm/api/resources/orgs/resources/iataCassOffices/index.mjs +1 -0
  149. package/dist/esm/api/resources/orgs/resources/index.d.mts +2 -0
  150. package/dist/esm/api/resources/orgs/resources/index.mjs +2 -0
  151. package/dist/esm/api/resources/shipping/client/Client.d.mts +6 -0
  152. package/dist/esm/api/resources/shipping/client/Client.mjs +10 -0
  153. package/dist/esm/api/resources/shipping/resources/cargoOnFlightBookingSearches/client/Client.d.mts +68 -0
  154. package/dist/esm/api/resources/shipping/resources/cargoOnFlightBookingSearches/client/Client.mjs +181 -0
  155. package/dist/esm/api/resources/shipping/resources/cargoOnFlightBookingSearches/client/index.d.mts +2 -0
  156. package/dist/esm/api/resources/shipping/resources/cargoOnFlightBookingSearches/client/index.mjs +1 -0
  157. package/dist/esm/api/resources/shipping/resources/cargoOnFlightBookingSearches/client/requests/CargoOnFlightBookingSearchesListV1Request.d.mts +30 -0
  158. package/dist/esm/api/resources/shipping/resources/cargoOnFlightBookingSearches/client/requests/CargoOnFlightBookingSearchesListV1Request.mjs +4 -0
  159. package/dist/esm/api/resources/shipping/resources/cargoOnFlightBookingSearches/client/requests/index.d.mts +1 -0
  160. package/dist/esm/api/resources/shipping/resources/cargoOnFlightBookingSearches/client/requests/index.mjs +1 -0
  161. package/dist/esm/api/resources/shipping/resources/cargoOnFlightBookingSearches/index.d.mts +1 -0
  162. package/dist/esm/api/resources/shipping/resources/cargoOnFlightBookingSearches/index.mjs +1 -0
  163. package/dist/esm/api/resources/shipping/resources/cargoOnFlightBookings/client/Client.d.mts +120 -0
  164. package/dist/esm/api/resources/shipping/resources/cargoOnFlightBookings/client/Client.mjs +379 -0
  165. package/dist/esm/api/resources/shipping/resources/cargoOnFlightBookings/client/index.d.mts +2 -0
  166. package/dist/esm/api/resources/shipping/resources/cargoOnFlightBookings/client/index.mjs +1 -0
  167. package/dist/esm/api/resources/shipping/resources/cargoOnFlightBookings/client/requests/CargoOnFlightBookingClientCreate1.d.mts +31 -0
  168. package/dist/esm/api/resources/shipping/resources/cargoOnFlightBookings/client/requests/CargoOnFlightBookingClientCreate1.mjs +4 -0
  169. package/dist/esm/api/resources/shipping/resources/cargoOnFlightBookings/client/requests/CargoOnFlightBookingsListV1Request.d.mts +33 -0
  170. package/dist/esm/api/resources/shipping/resources/cargoOnFlightBookings/client/requests/CargoOnFlightBookingsListV1Request.mjs +4 -0
  171. package/dist/esm/api/resources/shipping/resources/cargoOnFlightBookings/client/requests/index.d.mts +2 -0
  172. package/dist/esm/api/resources/shipping/resources/cargoOnFlightBookings/client/requests/index.mjs +1 -0
  173. package/dist/esm/api/resources/shipping/resources/cargoOnFlightBookings/index.d.mts +1 -0
  174. package/dist/esm/api/resources/shipping/resources/cargoOnFlightBookings/index.mjs +1 -0
  175. package/dist/esm/api/resources/shipping/resources/index.d.mts +4 -0
  176. package/dist/esm/api/resources/shipping/resources/index.mjs +4 -0
  177. package/dist/esm/api/types/CargoOnFlightBooking1.d.mts +34 -0
  178. package/dist/esm/api/types/CargoOnFlightBooking1.mjs +4 -0
  179. package/dist/esm/api/types/CargoOnFlightBookingCargoDimension1.d.mts +15 -0
  180. package/dist/esm/api/types/CargoOnFlightBookingCargoDimension1.mjs +4 -0
  181. package/dist/esm/api/types/CargoOnFlightBookingItinerary1.d.mts +13 -0
  182. package/dist/esm/api/types/CargoOnFlightBookingItinerary1.mjs +4 -0
  183. package/dist/esm/api/types/CargoOnFlightBookingItineraryLeg1.d.mts +15 -0
  184. package/dist/esm/api/types/CargoOnFlightBookingItineraryLeg1.mjs +4 -0
  185. package/dist/esm/api/types/CargoOnFlightBookingListRes.d.mts +8 -0
  186. package/dist/esm/api/types/CargoOnFlightBookingListRes.mjs +4 -0
  187. package/dist/esm/api/types/CargoOnFlightBookingRate1.d.mts +12 -0
  188. package/dist/esm/api/types/CargoOnFlightBookingRate1.mjs +4 -0
  189. package/dist/esm/api/types/CargoOnFlightBookingSearch1.d.mts +23 -0
  190. package/dist/esm/api/types/CargoOnFlightBookingSearch1.mjs +4 -0
  191. package/dist/esm/api/types/CargoOnFlightBookingSearchListRes.d.mts +8 -0
  192. package/dist/esm/api/types/CargoOnFlightBookingSearchListRes.mjs +4 -0
  193. package/dist/esm/api/types/CargoOnFlightBookingSearchResult1.d.mts +16 -0
  194. package/dist/esm/api/types/CargoOnFlightBookingSearchResult1.mjs +4 -0
  195. package/dist/esm/api/types/CargoOnFlightBookingSearchSortByEnum.d.mts +4 -0
  196. package/dist/esm/api/types/CargoOnFlightBookingSearchSortByEnum.mjs +4 -0
  197. package/dist/esm/api/types/CargoOnFlightBookingSortByEnum.d.mts +4 -0
  198. package/dist/esm/api/types/CargoOnFlightBookingSortByEnum.mjs +4 -0
  199. package/dist/esm/api/types/CargoOnFlightBookingStatusEnum1.d.mts +13 -0
  200. package/dist/esm/api/types/CargoOnFlightBookingStatusEnum1.mjs +12 -0
  201. package/dist/esm/api/types/CargoOnFlightIntegrationEnum1.d.mts +8 -0
  202. package/dist/esm/api/types/CargoOnFlightIntegrationEnum1.mjs +7 -0
  203. package/dist/esm/api/types/CargoOnFlightIntegrationsCargoAiWebhookRes.d.mts +6 -0
  204. package/dist/esm/api/types/CargoOnFlightIntegrationsCargoAiWebhookRes.mjs +4 -0
  205. package/dist/esm/api/types/FlightLegProvenanceEnum1.d.mts +2 -1
  206. package/dist/esm/api/types/FlightLegProvenanceEnum1.mjs +1 -0
  207. package/dist/esm/api/types/IataCassOffice1.d.mts +22 -0
  208. package/dist/esm/api/types/IataCassOffice1.mjs +4 -0
  209. package/dist/esm/api/types/IataCassOfficeListRes.d.mts +8 -0
  210. package/dist/esm/api/types/IataCassOfficeListRes.mjs +4 -0
  211. package/dist/esm/api/types/IataCassOfficeSortByEnum.d.mts +8 -0
  212. package/dist/esm/api/types/IataCassOfficeSortByEnum.mjs +7 -0
  213. package/dist/esm/api/types/index.d.mts +17 -0
  214. package/dist/esm/api/types/index.mjs +17 -0
  215. package/dist/esm/version.d.mts +1 -1
  216. package/dist/esm/version.mjs +1 -1
  217. package/package.json +1 -1
  218. package/reference.md +2602 -1505
@@ -0,0 +1,350 @@
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
+ export class Cargoai {
19
+ constructor(_options = {}) {
20
+ this._options = _options;
21
+ }
22
+ /**
23
+ * Books a draft booking on CargoAi with one result and rate of one of its searches, with the user's AWB or one from the airline's stock. | authz_personas=[task_group_coordinator_operators] | (CargoOnFlightIntegrationsCargoAiBookReq) -> (CargoOnFlightBooking1)
24
+ *
25
+ * @param {string} cargoOnFlightBookingId
26
+ * @param {Chrt.cargoOnFlightIntegrations.CargoOnFlightIntegrationsCargoAiBookReq} request
27
+ * @param {Cargoai.RequestOptions} requestOptions - Request-specific configuration.
28
+ *
29
+ * @throws {@link Chrt.UnprocessableEntityError}
30
+ *
31
+ * @example
32
+ * await client.cargoOnFlightIntegrations.cargoai.bookV1("cargo_on_flight_booking_id", {
33
+ * cargo_on_flight_booking_search_id: "cargo_on_flight_booking_search_id",
34
+ * integration_rate_id: "integration_rate_id",
35
+ * integration_result_id: "integration_result_id"
36
+ * })
37
+ */
38
+ bookV1(cargoOnFlightBookingId, request, requestOptions) {
39
+ return core.HttpResponsePromise.fromPromise(this.__bookV1(cargoOnFlightBookingId, request, requestOptions));
40
+ }
41
+ __bookV1(cargoOnFlightBookingId, request, requestOptions) {
42
+ return __awaiter(this, void 0, void 0, function* () {
43
+ var _a, _b, _c, _d;
44
+ 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);
45
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
46
+ 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, `cargo_on_flight_integrations/cargoai/book/v1/${encodeURIComponent(cargoOnFlightBookingId)}`),
47
+ method: "POST",
48
+ headers: _headers,
49
+ contentType: "application/json",
50
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
51
+ requestType: "json",
52
+ body: request,
53
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
54
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
55
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
56
+ });
57
+ if (_response.ok) {
58
+ return { data: _response.body, rawResponse: _response.rawResponse };
59
+ }
60
+ if (_response.error.reason === "status-code") {
61
+ switch (_response.error.statusCode) {
62
+ case 422:
63
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
64
+ default:
65
+ throw new errors.ChrtError({
66
+ statusCode: _response.error.statusCode,
67
+ body: _response.error.body,
68
+ rawResponse: _response.rawResponse,
69
+ });
70
+ }
71
+ }
72
+ switch (_response.error.reason) {
73
+ case "non-json":
74
+ throw new errors.ChrtError({
75
+ statusCode: _response.error.statusCode,
76
+ body: _response.error.rawBody,
77
+ rawResponse: _response.rawResponse,
78
+ });
79
+ case "timeout":
80
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /cargo_on_flight_integrations/cargoai/book/v1/{cargo_on_flight_booking_id}.");
81
+ case "unknown":
82
+ throw new errors.ChrtError({
83
+ message: _response.error.errorMessage,
84
+ rawResponse: _response.rawResponse,
85
+ });
86
+ }
87
+ });
88
+ }
89
+ /**
90
+ * Asks CargoAi to cancel a confirmed booking; it is CANCELLATION_REQUESTED until the airline answers. | authz_personas=[task_group_coordinator_operators] | (CargoOnFlightIntegrationsCargoAiCancelReq) -> (CargoOnFlightBooking1)
91
+ *
92
+ * @param {string} cargoOnFlightBookingId
93
+ * @param {Chrt.cargoOnFlightIntegrations.CargoOnFlightIntegrationsCargoAiCancelReq} request
94
+ * @param {Cargoai.RequestOptions} requestOptions - Request-specific configuration.
95
+ *
96
+ * @throws {@link Chrt.UnprocessableEntityError}
97
+ *
98
+ * @example
99
+ * await client.cargoOnFlightIntegrations.cargoai.cancelV1("cargo_on_flight_booking_id", {
100
+ * cancellation_reason: "cancellation_reason"
101
+ * })
102
+ */
103
+ cancelV1(cargoOnFlightBookingId, request, requestOptions) {
104
+ return core.HttpResponsePromise.fromPromise(this.__cancelV1(cargoOnFlightBookingId, request, requestOptions));
105
+ }
106
+ __cancelV1(cargoOnFlightBookingId, request, requestOptions) {
107
+ return __awaiter(this, void 0, void 0, function* () {
108
+ var _a, _b, _c, _d;
109
+ 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);
110
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
111
+ 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, `cargo_on_flight_integrations/cargoai/cancel/v1/${encodeURIComponent(cargoOnFlightBookingId)}`),
112
+ method: "POST",
113
+ headers: _headers,
114
+ contentType: "application/json",
115
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
116
+ requestType: "json",
117
+ body: request,
118
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
119
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
120
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
121
+ });
122
+ if (_response.ok) {
123
+ return { data: _response.body, rawResponse: _response.rawResponse };
124
+ }
125
+ if (_response.error.reason === "status-code") {
126
+ switch (_response.error.statusCode) {
127
+ case 422:
128
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
129
+ default:
130
+ throw new errors.ChrtError({
131
+ statusCode: _response.error.statusCode,
132
+ body: _response.error.body,
133
+ rawResponse: _response.rawResponse,
134
+ });
135
+ }
136
+ }
137
+ switch (_response.error.reason) {
138
+ case "non-json":
139
+ throw new errors.ChrtError({
140
+ statusCode: _response.error.statusCode,
141
+ body: _response.error.rawBody,
142
+ rawResponse: _response.rawResponse,
143
+ });
144
+ case "timeout":
145
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /cargo_on_flight_integrations/cargoai/cancel/v1/{cargo_on_flight_booking_id}.");
146
+ case "unknown":
147
+ throw new errors.ChrtError({
148
+ message: _response.error.errorMessage,
149
+ rawResponse: _response.rawResponse,
150
+ });
151
+ }
152
+ });
153
+ }
154
+ /**
155
+ * Asks CargoAi for an active booking's current status and AWB and applies them, e.g. when its book answer was lost. | authz_personas=[task_group_coordinator_operators] | () -> (CargoOnFlightBooking1)
156
+ *
157
+ * @param {string} cargoOnFlightBookingId
158
+ * @param {Cargoai.RequestOptions} requestOptions - Request-specific configuration.
159
+ *
160
+ * @throws {@link Chrt.UnprocessableEntityError}
161
+ *
162
+ * @example
163
+ * await client.cargoOnFlightIntegrations.cargoai.refreshV1("cargo_on_flight_booking_id")
164
+ */
165
+ refreshV1(cargoOnFlightBookingId, requestOptions) {
166
+ return core.HttpResponsePromise.fromPromise(this.__refreshV1(cargoOnFlightBookingId, requestOptions));
167
+ }
168
+ __refreshV1(cargoOnFlightBookingId, requestOptions) {
169
+ return __awaiter(this, void 0, void 0, function* () {
170
+ var _a, _b, _c, _d;
171
+ 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);
172
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
173
+ 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, `cargo_on_flight_integrations/cargoai/refresh/v1/${encodeURIComponent(cargoOnFlightBookingId)}`),
174
+ method: "POST",
175
+ headers: _headers,
176
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
177
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
178
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
179
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
180
+ });
181
+ if (_response.ok) {
182
+ return { data: _response.body, rawResponse: _response.rawResponse };
183
+ }
184
+ if (_response.error.reason === "status-code") {
185
+ switch (_response.error.statusCode) {
186
+ case 422:
187
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
188
+ default:
189
+ throw new errors.ChrtError({
190
+ statusCode: _response.error.statusCode,
191
+ body: _response.error.body,
192
+ rawResponse: _response.rawResponse,
193
+ });
194
+ }
195
+ }
196
+ switch (_response.error.reason) {
197
+ case "non-json":
198
+ throw new errors.ChrtError({
199
+ statusCode: _response.error.statusCode,
200
+ body: _response.error.rawBody,
201
+ rawResponse: _response.rawResponse,
202
+ });
203
+ case "timeout":
204
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /cargo_on_flight_integrations/cargoai/refresh/v1/{cargo_on_flight_booking_id}.");
205
+ case "unknown":
206
+ throw new errors.ChrtError({
207
+ message: _response.error.errorMessage,
208
+ rawResponse: _response.rawResponse,
209
+ });
210
+ }
211
+ });
212
+ }
213
+ /**
214
+ * Collects the remaining CargoAi results of an unfinished search and stores them; a completed search is returned as is. | authz_personas=[task_group_coordinator_operators] | () -> (CargoOnFlightBookingSearch1)
215
+ *
216
+ * @param {string} cargoOnFlightBookingSearchId
217
+ * @param {Cargoai.RequestOptions} requestOptions - Request-specific configuration.
218
+ *
219
+ * @throws {@link Chrt.UnprocessableEntityError}
220
+ *
221
+ * @example
222
+ * await client.cargoOnFlightIntegrations.cargoai.searchContinueV1("cargo_on_flight_booking_search_id")
223
+ */
224
+ searchContinueV1(cargoOnFlightBookingSearchId, requestOptions) {
225
+ return core.HttpResponsePromise.fromPromise(this.__searchContinueV1(cargoOnFlightBookingSearchId, requestOptions));
226
+ }
227
+ __searchContinueV1(cargoOnFlightBookingSearchId, requestOptions) {
228
+ return __awaiter(this, void 0, void 0, function* () {
229
+ var _a, _b, _c, _d;
230
+ 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);
231
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
232
+ 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, `cargo_on_flight_integrations/cargoai/search/continue/v1/${encodeURIComponent(cargoOnFlightBookingSearchId)}`),
233
+ method: "POST",
234
+ headers: _headers,
235
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
236
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
237
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
238
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
239
+ });
240
+ if (_response.ok) {
241
+ return { data: _response.body, rawResponse: _response.rawResponse };
242
+ }
243
+ if (_response.error.reason === "status-code") {
244
+ switch (_response.error.statusCode) {
245
+ case 422:
246
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
247
+ default:
248
+ throw new errors.ChrtError({
249
+ statusCode: _response.error.statusCode,
250
+ body: _response.error.body,
251
+ rawResponse: _response.rawResponse,
252
+ });
253
+ }
254
+ }
255
+ switch (_response.error.reason) {
256
+ case "non-json":
257
+ throw new errors.ChrtError({
258
+ statusCode: _response.error.statusCode,
259
+ body: _response.error.rawBody,
260
+ rawResponse: _response.rawResponse,
261
+ });
262
+ case "timeout":
263
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /cargo_on_flight_integrations/cargoai/search/continue/v1/{cargo_on_flight_booking_search_id}.");
264
+ case "unknown":
265
+ throw new errors.ChrtError({
266
+ message: _response.error.errorMessage,
267
+ rawResponse: _response.rawResponse,
268
+ });
269
+ }
270
+ });
271
+ }
272
+ /**
273
+ * Starts a CargoAi search for flights with space and rates for a draft booking's cargos on a route and date, and stores it. | authz_personas=[task_group_coordinator_operators] | (CargoOnFlightBookingSearchClientCreate1) -> (CargoOnFlightBookingSearch1)
274
+ *
275
+ * @param {string} cargoOnFlightBookingId
276
+ * @param {Chrt.cargoOnFlightIntegrations.CargoOnFlightBookingSearchClientCreate1} request
277
+ * @param {Cargoai.RequestOptions} requestOptions - Request-specific configuration.
278
+ *
279
+ * @throws {@link Chrt.UnprocessableEntityError}
280
+ *
281
+ * @example
282
+ * await client.cargoOnFlightIntegrations.cargoai.searchV1("cargo_on_flight_booking_id", {
283
+ * destination_iata: "destination_iata",
284
+ * earliest_departure_date: "earliest_departure_date",
285
+ * iata_cass_office_id: "iata_cass_office_id",
286
+ * origin_iata: "origin_iata",
287
+ * schema_version: 1
288
+ * })
289
+ */
290
+ searchV1(cargoOnFlightBookingId, request, requestOptions) {
291
+ return core.HttpResponsePromise.fromPromise(this.__searchV1(cargoOnFlightBookingId, request, requestOptions));
292
+ }
293
+ __searchV1(cargoOnFlightBookingId, request, requestOptions) {
294
+ return __awaiter(this, void 0, void 0, function* () {
295
+ var _a, _b, _c, _d;
296
+ 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);
297
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
298
+ 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, `cargo_on_flight_integrations/cargoai/search/v1/${encodeURIComponent(cargoOnFlightBookingId)}`),
299
+ method: "POST",
300
+ headers: _headers,
301
+ contentType: "application/json",
302
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
303
+ requestType: "json",
304
+ body: request,
305
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
306
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
307
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
308
+ });
309
+ if (_response.ok) {
310
+ return { data: _response.body, rawResponse: _response.rawResponse };
311
+ }
312
+ if (_response.error.reason === "status-code") {
313
+ switch (_response.error.statusCode) {
314
+ case 422:
315
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
316
+ default:
317
+ throw new errors.ChrtError({
318
+ statusCode: _response.error.statusCode,
319
+ body: _response.error.body,
320
+ rawResponse: _response.rawResponse,
321
+ });
322
+ }
323
+ }
324
+ switch (_response.error.reason) {
325
+ case "non-json":
326
+ throw new errors.ChrtError({
327
+ statusCode: _response.error.statusCode,
328
+ body: _response.error.rawBody,
329
+ rawResponse: _response.rawResponse,
330
+ });
331
+ case "timeout":
332
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /cargo_on_flight_integrations/cargoai/search/v1/{cargo_on_flight_booking_id}.");
333
+ case "unknown":
334
+ throw new errors.ChrtError({
335
+ message: _response.error.errorMessage,
336
+ rawResponse: _response.rawResponse,
337
+ });
338
+ }
339
+ });
340
+ }
341
+ _getAuthorizationHeader() {
342
+ return __awaiter(this, void 0, void 0, function* () {
343
+ const bearer = yield core.Supplier.get(this._options.token);
344
+ if (bearer != null) {
345
+ return `Bearer ${bearer}`;
346
+ }
347
+ return undefined;
348
+ });
349
+ }
350
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ export * from "./requests/index.mjs";
@@ -0,0 +1 @@
1
+ export * from "./requests/index.mjs";
@@ -0,0 +1,20 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * destination_iata: "destination_iata",
8
+ * earliest_departure_date: "earliest_departure_date",
9
+ * iata_cass_office_id: "iata_cass_office_id",
10
+ * origin_iata: "origin_iata",
11
+ * schema_version: 1
12
+ * }
13
+ */
14
+ export interface CargoOnFlightBookingSearchClientCreate1 {
15
+ destination_iata: string;
16
+ earliest_departure_date: string;
17
+ iata_cass_office_id: string;
18
+ origin_iata: string;
19
+ schema_version: number;
20
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,18 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * cargo_on_flight_booking_search_id: "cargo_on_flight_booking_search_id",
8
+ * integration_rate_id: "integration_rate_id",
9
+ * integration_result_id: "integration_result_id"
10
+ * }
11
+ */
12
+ export interface CargoOnFlightIntegrationsCargoAiBookReq {
13
+ /** IATA Air Waybill number: 3-digit airline prefix + 8-digit serial, e.g. '020-12345678'. */
14
+ awb_number?: string | null;
15
+ cargo_on_flight_booking_search_id: string;
16
+ integration_rate_id: string;
17
+ integration_result_id: string;
18
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * cancellation_reason: "cancellation_reason"
8
+ * }
9
+ */
10
+ export interface CargoOnFlightIntegrationsCargoAiCancelReq {
11
+ cancellation_reason: string;
12
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,3 @@
1
+ export { type CargoOnFlightIntegrationsCargoAiBookReq } from "./CargoOnFlightIntegrationsCargoAiBookReq.mjs";
2
+ export { type CargoOnFlightIntegrationsCargoAiCancelReq } from "./CargoOnFlightIntegrationsCargoAiCancelReq.mjs";
3
+ export { type CargoOnFlightBookingSearchClientCreate1 } from "./CargoOnFlightBookingSearchClientCreate1.mjs";
@@ -0,0 +1 @@
1
+ export * from "./client/index.mjs";
@@ -0,0 +1 @@
1
+ export * from "./client/index.mjs";
@@ -0,0 +1,2 @@
1
+ export * as cargoai from "./cargoai/index.mjs";
2
+ export * from "./cargoai/client/requests/index.mjs";
@@ -0,0 +1,2 @@
1
+ export * as cargoai from "./cargoai/index.mjs";
2
+ export * from "./cargoai/client/requests/index.mjs";
@@ -6,6 +6,7 @@ export * as agent from "./agent/index.mjs";
6
6
  export * as analytics from "./analytics/index.mjs";
7
7
  export * as billing from "./billing/index.mjs";
8
8
  export * as billingNew from "./billingNew/index.mjs";
9
+ export * as cargoOnFlightIntegrations from "./cargoOnFlightIntegrations/index.mjs";
9
10
  export * as integrations from "./integrations/index.mjs";
10
11
  export * as listing from "./listing/index.mjs";
11
12
  export * as notifications from "./notifications/index.mjs";
@@ -6,6 +6,7 @@ export * as agent from "./agent/index.mjs";
6
6
  export * as analytics from "./analytics/index.mjs";
7
7
  export * as billing from "./billing/index.mjs";
8
8
  export * as billingNew from "./billingNew/index.mjs";
9
+ export * as cargoOnFlightIntegrations from "./cargoOnFlightIntegrations/index.mjs";
9
10
  export * as integrations from "./integrations/index.mjs";
10
11
  export * as listing from "./listing/index.mjs";
11
12
  export * as notifications from "./notifications/index.mjs";
@@ -8,6 +8,7 @@ import { Accounts } from "../resources/accounts/client/Client.mjs";
8
8
  import { ComplianceDocuments } from "../resources/complianceDocuments/client/Client.mjs";
9
9
  import { Connections } from "../resources/connections/client/Client.mjs";
10
10
  import { Contacts } from "../resources/contacts/client/Client.mjs";
11
+ import { IataCassOffices } from "../resources/iataCassOffices/client/Client.mjs";
11
12
  import { OffChrtOrgData } from "../resources/offChrtOrgData/client/Client.mjs";
12
13
  import { PrivateData } from "../resources/privateData/client/Client.mjs";
13
14
  import { PublicData } from "../resources/publicData/client/Client.mjs";
@@ -40,6 +41,7 @@ export declare class Orgs {
40
41
  protected _complianceDocuments: ComplianceDocuments | undefined;
41
42
  protected _connections: Connections | undefined;
42
43
  protected _contacts: Contacts | undefined;
44
+ protected _iataCassOffices: IataCassOffices | undefined;
43
45
  protected _offChrtOrgData: OffChrtOrgData | undefined;
44
46
  protected _privateData: PrivateData | undefined;
45
47
  protected _publicData: PublicData | undefined;
@@ -48,6 +50,7 @@ export declare class Orgs {
48
50
  get complianceDocuments(): ComplianceDocuments;
49
51
  get connections(): Connections;
50
52
  get contacts(): Contacts;
53
+ get iataCassOffices(): IataCassOffices;
51
54
  get offChrtOrgData(): OffChrtOrgData;
52
55
  get privateData(): PrivateData;
53
56
  get publicData(): PublicData;
@@ -19,6 +19,7 @@ import { Accounts } from "../resources/accounts/client/Client.mjs";
19
19
  import { ComplianceDocuments } from "../resources/complianceDocuments/client/Client.mjs";
20
20
  import { Connections } from "../resources/connections/client/Client.mjs";
21
21
  import { Contacts } from "../resources/contacts/client/Client.mjs";
22
+ import { IataCassOffices } from "../resources/iataCassOffices/client/Client.mjs";
22
23
  import { OffChrtOrgData } from "../resources/offChrtOrgData/client/Client.mjs";
23
24
  import { PrivateData } from "../resources/privateData/client/Client.mjs";
24
25
  import { PublicData } from "../resources/publicData/client/Client.mjs";
@@ -42,6 +43,10 @@ export class Orgs {
42
43
  var _a;
43
44
  return ((_a = this._contacts) !== null && _a !== void 0 ? _a : (this._contacts = new Contacts(this._options)));
44
45
  }
46
+ get iataCassOffices() {
47
+ var _a;
48
+ return ((_a = this._iataCassOffices) !== null && _a !== void 0 ? _a : (this._iataCassOffices = new IataCassOffices(this._options)));
49
+ }
45
50
  get offChrtOrgData() {
46
51
  var _a;
47
52
  return ((_a = this._offChrtOrgData) !== null && _a !== void 0 ? _a : (this._offChrtOrgData = new OffChrtOrgData(this._options)));
@@ -0,0 +1,93 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as environments from "../../../../../../environments.mjs";
5
+ import * as core from "../../../../../../core/index.mjs";
6
+ import * as Chrt from "../../../../../index.mjs";
7
+ export declare namespace IataCassOffices {
8
+ interface Options {
9
+ environment?: core.Supplier<environments.ChrtEnvironment | string>;
10
+ /** Specify a custom URL to connect the client to. */
11
+ baseUrl?: core.Supplier<string>;
12
+ token?: core.Supplier<core.BearerToken | undefined>;
13
+ /** Additional headers to include in requests. */
14
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
15
+ fetcher?: core.FetchFunction;
16
+ }
17
+ interface RequestOptions {
18
+ /** The maximum time to wait for a response in seconds. */
19
+ timeoutInSeconds?: number;
20
+ /** The number of times to retry the request. Defaults to 2. */
21
+ maxRetries?: number;
22
+ /** A hook to abort the request. */
23
+ abortSignal?: AbortSignal;
24
+ /** Additional query string parameters to include in the request. */
25
+ queryParams?: Record<string, unknown>;
26
+ /** Additional headers to include in the request. */
27
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
28
+ }
29
+ }
30
+ export declare class IataCassOffices {
31
+ protected readonly _options: IataCassOffices.Options;
32
+ constructor(_options?: IataCassOffices.Options);
33
+ /**
34
+ * Archives an IATA CASS office of the caller's organization so it can no longer be booked under. | authz: min_org_role=admin | () -> (bool)
35
+ *
36
+ * @param {string} iataCassOfficeId
37
+ * @param {IataCassOffices.RequestOptions} requestOptions - Request-specific configuration.
38
+ *
39
+ * @throws {@link Chrt.UnprocessableEntityError}
40
+ *
41
+ * @example
42
+ * await client.orgs.iataCassOffices.archiveV1("iata_cass_office_id")
43
+ */
44
+ archiveV1(iataCassOfficeId: string, requestOptions?: IataCassOffices.RequestOptions): core.HttpResponsePromise<boolean>;
45
+ private __archiveV1;
46
+ /**
47
+ * Lists the IATA CASS offices of the caller's organization, active or archived. | () -> (IataCassOfficeListRes)
48
+ *
49
+ * @param {Chrt.orgs.IataCassOfficesListV1Request} request
50
+ * @param {IataCassOffices.RequestOptions} requestOptions - Request-specific configuration.
51
+ *
52
+ * @throws {@link Chrt.UnprocessableEntityError}
53
+ *
54
+ * @example
55
+ * await client.orgs.iataCassOffices.listV1({
56
+ * filter_archived: true,
57
+ * sort_by: "created_at_timestamp",
58
+ * sort_order: "asc",
59
+ * page: 1,
60
+ * page_size: 1
61
+ * })
62
+ */
63
+ listV1(request?: Chrt.orgs.IataCassOfficesListV1Request, requestOptions?: IataCassOffices.RequestOptions): core.HttpResponsePromise<Chrt.IataCassOfficeListRes>;
64
+ private __listV1;
65
+ /**
66
+ * Updates the name or contact names of an IATA CASS office of the caller's organization. | authz: min_org_role=admin | (IataCassOfficeClientUpdate1) -> (IataCassOffice1)
67
+ *
68
+ * @param {string} iataCassOfficeId
69
+ * @param {Chrt.orgs.IataCassOfficeClientUpdate1} request
70
+ * @param {IataCassOffices.RequestOptions} requestOptions - Request-specific configuration.
71
+ *
72
+ * @throws {@link Chrt.UnprocessableEntityError}
73
+ *
74
+ * @example
75
+ * await client.orgs.iataCassOffices.updateV1("iata_cass_office_id")
76
+ */
77
+ updateV1(iataCassOfficeId: string, request?: Chrt.orgs.IataCassOfficeClientUpdate1, requestOptions?: IataCassOffices.RequestOptions): core.HttpResponsePromise<Chrt.IataCassOffice1>;
78
+ private __updateV1;
79
+ /**
80
+ * Retrieves an IATA CASS office of the caller's organization. | () -> (IataCassOffice1)
81
+ *
82
+ * @param {string} iataCassOfficeId
83
+ * @param {IataCassOffices.RequestOptions} requestOptions - Request-specific configuration.
84
+ *
85
+ * @throws {@link Chrt.UnprocessableEntityError}
86
+ *
87
+ * @example
88
+ * await client.orgs.iataCassOffices.getV1("iata_cass_office_id")
89
+ */
90
+ getV1(iataCassOfficeId: string, requestOptions?: IataCassOffices.RequestOptions): core.HttpResponsePromise<Chrt.IataCassOffice1>;
91
+ private __getV1;
92
+ protected _getAuthorizationHeader(): Promise<string | undefined>;
93
+ }