@chrt-inc/typescript-sdk 1.1008.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 (220) 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/CalculatedInvoiceTax1.d.ts +3 -1
  70. package/dist/cjs/api/types/CargoOnFlightBooking1.d.ts +34 -0
  71. package/dist/cjs/api/types/CargoOnFlightBooking1.js +5 -0
  72. package/dist/cjs/api/types/CargoOnFlightBookingCargoDimension1.d.ts +15 -0
  73. package/dist/cjs/api/types/CargoOnFlightBookingCargoDimension1.js +5 -0
  74. package/dist/cjs/api/types/CargoOnFlightBookingItinerary1.d.ts +13 -0
  75. package/dist/cjs/api/types/CargoOnFlightBookingItinerary1.js +5 -0
  76. package/dist/cjs/api/types/CargoOnFlightBookingItineraryLeg1.d.ts +15 -0
  77. package/dist/cjs/api/types/CargoOnFlightBookingItineraryLeg1.js +5 -0
  78. package/dist/cjs/api/types/CargoOnFlightBookingListRes.d.ts +8 -0
  79. package/dist/cjs/api/types/CargoOnFlightBookingListRes.js +5 -0
  80. package/dist/cjs/api/types/CargoOnFlightBookingRate1.d.ts +12 -0
  81. package/dist/cjs/api/types/CargoOnFlightBookingRate1.js +5 -0
  82. package/dist/cjs/api/types/CargoOnFlightBookingSearch1.d.ts +23 -0
  83. package/dist/cjs/api/types/CargoOnFlightBookingSearch1.js +5 -0
  84. package/dist/cjs/api/types/CargoOnFlightBookingSearchListRes.d.ts +8 -0
  85. package/dist/cjs/api/types/CargoOnFlightBookingSearchListRes.js +5 -0
  86. package/dist/cjs/api/types/CargoOnFlightBookingSearchResult1.d.ts +16 -0
  87. package/dist/cjs/api/types/CargoOnFlightBookingSearchResult1.js +5 -0
  88. package/dist/cjs/api/types/CargoOnFlightBookingSearchSortByEnum.d.ts +4 -0
  89. package/dist/cjs/api/types/CargoOnFlightBookingSearchSortByEnum.js +5 -0
  90. package/dist/cjs/api/types/CargoOnFlightBookingSortByEnum.d.ts +4 -0
  91. package/dist/cjs/api/types/CargoOnFlightBookingSortByEnum.js +5 -0
  92. package/dist/cjs/api/types/CargoOnFlightBookingStatusEnum1.d.ts +13 -0
  93. package/dist/cjs/api/types/CargoOnFlightBookingStatusEnum1.js +15 -0
  94. package/dist/cjs/api/types/CargoOnFlightIntegrationEnum1.d.ts +8 -0
  95. package/dist/cjs/api/types/CargoOnFlightIntegrationEnum1.js +10 -0
  96. package/dist/cjs/api/types/CargoOnFlightIntegrationsCargoAiWebhookRes.d.ts +6 -0
  97. package/dist/cjs/api/types/CargoOnFlightIntegrationsCargoAiWebhookRes.js +5 -0
  98. package/dist/cjs/api/types/FlightLegProvenanceEnum1.d.ts +2 -1
  99. package/dist/cjs/api/types/FlightLegProvenanceEnum1.js +1 -0
  100. package/dist/cjs/api/types/IataCassOffice1.d.ts +22 -0
  101. package/dist/cjs/api/types/IataCassOffice1.js +5 -0
  102. package/dist/cjs/api/types/IataCassOfficeListRes.d.ts +8 -0
  103. package/dist/cjs/api/types/IataCassOfficeListRes.js +5 -0
  104. package/dist/cjs/api/types/IataCassOfficeSortByEnum.d.ts +8 -0
  105. package/dist/cjs/api/types/IataCassOfficeSortByEnum.js +10 -0
  106. package/dist/cjs/api/types/index.d.ts +17 -0
  107. package/dist/cjs/api/types/index.js +17 -0
  108. package/dist/cjs/version.d.ts +1 -1
  109. package/dist/cjs/version.js +1 -1
  110. package/dist/esm/Client.d.mts +3 -0
  111. package/dist/esm/Client.mjs +7 -2
  112. package/dist/esm/api/resources/cargoOnFlightIntegrations/client/Client.d.mts +23 -0
  113. package/dist/esm/api/resources/cargoOnFlightIntegrations/client/Client.mjs +13 -0
  114. package/dist/esm/api/resources/cargoOnFlightIntegrations/client/index.d.mts +1 -0
  115. package/dist/esm/api/resources/cargoOnFlightIntegrations/client/index.mjs +1 -0
  116. package/dist/esm/api/resources/cargoOnFlightIntegrations/index.d.mts +2 -0
  117. package/dist/esm/api/resources/cargoOnFlightIntegrations/index.mjs +2 -0
  118. package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/Client.d.mts +114 -0
  119. package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/Client.mjs +350 -0
  120. package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/index.d.mts +2 -0
  121. package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/index.mjs +1 -0
  122. package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/requests/CargoOnFlightBookingSearchClientCreate1.d.mts +20 -0
  123. package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/requests/CargoOnFlightBookingSearchClientCreate1.mjs +4 -0
  124. package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/requests/CargoOnFlightIntegrationsCargoAiBookReq.d.mts +18 -0
  125. package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/requests/CargoOnFlightIntegrationsCargoAiBookReq.mjs +4 -0
  126. package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/requests/CargoOnFlightIntegrationsCargoAiCancelReq.d.mts +12 -0
  127. package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/requests/CargoOnFlightIntegrationsCargoAiCancelReq.mjs +4 -0
  128. package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/requests/index.d.mts +3 -0
  129. package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/requests/index.mjs +1 -0
  130. package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/cargoai/index.d.mts +1 -0
  131. package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/cargoai/index.mjs +1 -0
  132. package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/index.d.mts +2 -0
  133. package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/index.mjs +2 -0
  134. package/dist/esm/api/resources/index.d.mts +1 -0
  135. package/dist/esm/api/resources/index.mjs +1 -0
  136. package/dist/esm/api/resources/orgs/client/Client.d.mts +3 -0
  137. package/dist/esm/api/resources/orgs/client/Client.mjs +5 -0
  138. package/dist/esm/api/resources/orgs/resources/iataCassOffices/client/Client.d.mts +93 -0
  139. package/dist/esm/api/resources/orgs/resources/iataCassOffices/client/Client.mjs +294 -0
  140. package/dist/esm/api/resources/orgs/resources/iataCassOffices/client/index.d.mts +2 -0
  141. package/dist/esm/api/resources/orgs/resources/iataCassOffices/client/index.mjs +1 -0
  142. package/dist/esm/api/resources/orgs/resources/iataCassOffices/client/requests/IataCassOfficeClientUpdate1.d.mts +13 -0
  143. package/dist/esm/api/resources/orgs/resources/iataCassOffices/client/requests/IataCassOfficeClientUpdate1.mjs +4 -0
  144. package/dist/esm/api/resources/orgs/resources/iataCassOffices/client/requests/IataCassOfficesListV1Request.d.mts +24 -0
  145. package/dist/esm/api/resources/orgs/resources/iataCassOffices/client/requests/IataCassOfficesListV1Request.mjs +4 -0
  146. package/dist/esm/api/resources/orgs/resources/iataCassOffices/client/requests/index.d.mts +2 -0
  147. package/dist/esm/api/resources/orgs/resources/iataCassOffices/client/requests/index.mjs +1 -0
  148. package/dist/esm/api/resources/orgs/resources/iataCassOffices/index.d.mts +1 -0
  149. package/dist/esm/api/resources/orgs/resources/iataCassOffices/index.mjs +1 -0
  150. package/dist/esm/api/resources/orgs/resources/index.d.mts +2 -0
  151. package/dist/esm/api/resources/orgs/resources/index.mjs +2 -0
  152. package/dist/esm/api/resources/shipping/client/Client.d.mts +6 -0
  153. package/dist/esm/api/resources/shipping/client/Client.mjs +10 -0
  154. package/dist/esm/api/resources/shipping/resources/cargoOnFlightBookingSearches/client/Client.d.mts +68 -0
  155. package/dist/esm/api/resources/shipping/resources/cargoOnFlightBookingSearches/client/Client.mjs +181 -0
  156. package/dist/esm/api/resources/shipping/resources/cargoOnFlightBookingSearches/client/index.d.mts +2 -0
  157. package/dist/esm/api/resources/shipping/resources/cargoOnFlightBookingSearches/client/index.mjs +1 -0
  158. package/dist/esm/api/resources/shipping/resources/cargoOnFlightBookingSearches/client/requests/CargoOnFlightBookingSearchesListV1Request.d.mts +30 -0
  159. package/dist/esm/api/resources/shipping/resources/cargoOnFlightBookingSearches/client/requests/CargoOnFlightBookingSearchesListV1Request.mjs +4 -0
  160. package/dist/esm/api/resources/shipping/resources/cargoOnFlightBookingSearches/client/requests/index.d.mts +1 -0
  161. package/dist/esm/api/resources/shipping/resources/cargoOnFlightBookingSearches/client/requests/index.mjs +1 -0
  162. package/dist/esm/api/resources/shipping/resources/cargoOnFlightBookingSearches/index.d.mts +1 -0
  163. package/dist/esm/api/resources/shipping/resources/cargoOnFlightBookingSearches/index.mjs +1 -0
  164. package/dist/esm/api/resources/shipping/resources/cargoOnFlightBookings/client/Client.d.mts +120 -0
  165. package/dist/esm/api/resources/shipping/resources/cargoOnFlightBookings/client/Client.mjs +379 -0
  166. package/dist/esm/api/resources/shipping/resources/cargoOnFlightBookings/client/index.d.mts +2 -0
  167. package/dist/esm/api/resources/shipping/resources/cargoOnFlightBookings/client/index.mjs +1 -0
  168. package/dist/esm/api/resources/shipping/resources/cargoOnFlightBookings/client/requests/CargoOnFlightBookingClientCreate1.d.mts +31 -0
  169. package/dist/esm/api/resources/shipping/resources/cargoOnFlightBookings/client/requests/CargoOnFlightBookingClientCreate1.mjs +4 -0
  170. package/dist/esm/api/resources/shipping/resources/cargoOnFlightBookings/client/requests/CargoOnFlightBookingsListV1Request.d.mts +33 -0
  171. package/dist/esm/api/resources/shipping/resources/cargoOnFlightBookings/client/requests/CargoOnFlightBookingsListV1Request.mjs +4 -0
  172. package/dist/esm/api/resources/shipping/resources/cargoOnFlightBookings/client/requests/index.d.mts +2 -0
  173. package/dist/esm/api/resources/shipping/resources/cargoOnFlightBookings/client/requests/index.mjs +1 -0
  174. package/dist/esm/api/resources/shipping/resources/cargoOnFlightBookings/index.d.mts +1 -0
  175. package/dist/esm/api/resources/shipping/resources/cargoOnFlightBookings/index.mjs +1 -0
  176. package/dist/esm/api/resources/shipping/resources/index.d.mts +4 -0
  177. package/dist/esm/api/resources/shipping/resources/index.mjs +4 -0
  178. package/dist/esm/api/types/CalculatedInvoiceTax1.d.mts +3 -1
  179. package/dist/esm/api/types/CargoOnFlightBooking1.d.mts +34 -0
  180. package/dist/esm/api/types/CargoOnFlightBooking1.mjs +4 -0
  181. package/dist/esm/api/types/CargoOnFlightBookingCargoDimension1.d.mts +15 -0
  182. package/dist/esm/api/types/CargoOnFlightBookingCargoDimension1.mjs +4 -0
  183. package/dist/esm/api/types/CargoOnFlightBookingItinerary1.d.mts +13 -0
  184. package/dist/esm/api/types/CargoOnFlightBookingItinerary1.mjs +4 -0
  185. package/dist/esm/api/types/CargoOnFlightBookingItineraryLeg1.d.mts +15 -0
  186. package/dist/esm/api/types/CargoOnFlightBookingItineraryLeg1.mjs +4 -0
  187. package/dist/esm/api/types/CargoOnFlightBookingListRes.d.mts +8 -0
  188. package/dist/esm/api/types/CargoOnFlightBookingListRes.mjs +4 -0
  189. package/dist/esm/api/types/CargoOnFlightBookingRate1.d.mts +12 -0
  190. package/dist/esm/api/types/CargoOnFlightBookingRate1.mjs +4 -0
  191. package/dist/esm/api/types/CargoOnFlightBookingSearch1.d.mts +23 -0
  192. package/dist/esm/api/types/CargoOnFlightBookingSearch1.mjs +4 -0
  193. package/dist/esm/api/types/CargoOnFlightBookingSearchListRes.d.mts +8 -0
  194. package/dist/esm/api/types/CargoOnFlightBookingSearchListRes.mjs +4 -0
  195. package/dist/esm/api/types/CargoOnFlightBookingSearchResult1.d.mts +16 -0
  196. package/dist/esm/api/types/CargoOnFlightBookingSearchResult1.mjs +4 -0
  197. package/dist/esm/api/types/CargoOnFlightBookingSearchSortByEnum.d.mts +4 -0
  198. package/dist/esm/api/types/CargoOnFlightBookingSearchSortByEnum.mjs +4 -0
  199. package/dist/esm/api/types/CargoOnFlightBookingSortByEnum.d.mts +4 -0
  200. package/dist/esm/api/types/CargoOnFlightBookingSortByEnum.mjs +4 -0
  201. package/dist/esm/api/types/CargoOnFlightBookingStatusEnum1.d.mts +13 -0
  202. package/dist/esm/api/types/CargoOnFlightBookingStatusEnum1.mjs +12 -0
  203. package/dist/esm/api/types/CargoOnFlightIntegrationEnum1.d.mts +8 -0
  204. package/dist/esm/api/types/CargoOnFlightIntegrationEnum1.mjs +7 -0
  205. package/dist/esm/api/types/CargoOnFlightIntegrationsCargoAiWebhookRes.d.mts +6 -0
  206. package/dist/esm/api/types/CargoOnFlightIntegrationsCargoAiWebhookRes.mjs +4 -0
  207. package/dist/esm/api/types/FlightLegProvenanceEnum1.d.mts +2 -1
  208. package/dist/esm/api/types/FlightLegProvenanceEnum1.mjs +1 -0
  209. package/dist/esm/api/types/IataCassOffice1.d.mts +22 -0
  210. package/dist/esm/api/types/IataCassOffice1.mjs +4 -0
  211. package/dist/esm/api/types/IataCassOfficeListRes.d.mts +8 -0
  212. package/dist/esm/api/types/IataCassOfficeListRes.mjs +4 -0
  213. package/dist/esm/api/types/IataCassOfficeSortByEnum.d.mts +8 -0
  214. package/dist/esm/api/types/IataCassOfficeSortByEnum.mjs +7 -0
  215. package/dist/esm/api/types/index.d.mts +17 -0
  216. package/dist/esm/api/types/index.mjs +17 -0
  217. package/dist/esm/version.d.mts +1 -1
  218. package/dist/esm/version.mjs +1 -1
  219. package/package.json +1 -1
  220. package/reference.md +2602 -1505
@@ -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
+ }
@@ -0,0 +1,294 @@
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 IataCassOffices {
19
+ constructor(_options = {}) {
20
+ this._options = _options;
21
+ }
22
+ /**
23
+ * Archives an IATA CASS office of the caller's organization so it can no longer be booked under. | authz: min_org_role=admin | () -> (bool)
24
+ *
25
+ * @param {string} iataCassOfficeId
26
+ * @param {IataCassOffices.RequestOptions} requestOptions - Request-specific configuration.
27
+ *
28
+ * @throws {@link Chrt.UnprocessableEntityError}
29
+ *
30
+ * @example
31
+ * await client.orgs.iataCassOffices.archiveV1("iata_cass_office_id")
32
+ */
33
+ archiveV1(iataCassOfficeId, requestOptions) {
34
+ return core.HttpResponsePromise.fromPromise(this.__archiveV1(iataCassOfficeId, requestOptions));
35
+ }
36
+ __archiveV1(iataCassOfficeId, requestOptions) {
37
+ return __awaiter(this, void 0, void 0, function* () {
38
+ var _a, _b, _c, _d;
39
+ 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);
40
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
41
+ 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, `orgs/iata_cass_offices/archive/v1/${encodeURIComponent(iataCassOfficeId)}`),
42
+ method: "POST",
43
+ headers: _headers,
44
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
45
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
46
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
47
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
48
+ });
49
+ if (_response.ok) {
50
+ return { data: _response.body, rawResponse: _response.rawResponse };
51
+ }
52
+ if (_response.error.reason === "status-code") {
53
+ switch (_response.error.statusCode) {
54
+ case 422:
55
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
56
+ default:
57
+ throw new errors.ChrtError({
58
+ statusCode: _response.error.statusCode,
59
+ body: _response.error.body,
60
+ rawResponse: _response.rawResponse,
61
+ });
62
+ }
63
+ }
64
+ switch (_response.error.reason) {
65
+ case "non-json":
66
+ throw new errors.ChrtError({
67
+ statusCode: _response.error.statusCode,
68
+ body: _response.error.rawBody,
69
+ rawResponse: _response.rawResponse,
70
+ });
71
+ case "timeout":
72
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /orgs/iata_cass_offices/archive/v1/{iata_cass_office_id}.");
73
+ case "unknown":
74
+ throw new errors.ChrtError({
75
+ message: _response.error.errorMessage,
76
+ rawResponse: _response.rawResponse,
77
+ });
78
+ }
79
+ });
80
+ }
81
+ /**
82
+ * Lists the IATA CASS offices of the caller's organization, active or archived. | () -> (IataCassOfficeListRes)
83
+ *
84
+ * @param {Chrt.orgs.IataCassOfficesListV1Request} request
85
+ * @param {IataCassOffices.RequestOptions} requestOptions - Request-specific configuration.
86
+ *
87
+ * @throws {@link Chrt.UnprocessableEntityError}
88
+ *
89
+ * @example
90
+ * await client.orgs.iataCassOffices.listV1({
91
+ * filter_archived: true,
92
+ * sort_by: "created_at_timestamp",
93
+ * sort_order: "asc",
94
+ * page: 1,
95
+ * page_size: 1
96
+ * })
97
+ */
98
+ listV1(request = {}, requestOptions) {
99
+ return core.HttpResponsePromise.fromPromise(this.__listV1(request, requestOptions));
100
+ }
101
+ __listV1() {
102
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
103
+ var _a, _b, _c, _d, _e, _f, _g;
104
+ const { filter_archived: filterArchived, sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, } = request;
105
+ const _queryParams = {};
106
+ if (filterArchived !== undefined) {
107
+ _queryParams["filter_archived"] = (_a = filterArchived === null || filterArchived === void 0 ? void 0 : filterArchived.toString()) !== null && _a !== void 0 ? _a : null;
108
+ }
109
+ if (sortBy !== undefined) {
110
+ _queryParams["sort_by"] = sortBy;
111
+ }
112
+ if (sortOrder !== undefined) {
113
+ _queryParams["sort_order"] = sortOrder;
114
+ }
115
+ if (page !== undefined) {
116
+ _queryParams["page"] = (_b = page === null || page === void 0 ? void 0 : page.toString()) !== null && _b !== void 0 ? _b : null;
117
+ }
118
+ if (pageSize !== undefined) {
119
+ _queryParams["page_size"] = (_c = pageSize === null || pageSize === void 0 ? void 0 : pageSize.toString()) !== null && _c !== void 0 ? _c : null;
120
+ }
121
+ let _headers = mergeHeaders((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
122
+ const _response = yield ((_e = this._options.fetcher) !== null && _e !== void 0 ? _e : core.fetcher)({
123
+ url: core.url.join((_g = (_f = (yield core.Supplier.get(this._options.baseUrl))) !== null && _f !== void 0 ? _f : (yield core.Supplier.get(this._options.environment))) !== null && _g !== void 0 ? _g : environments.ChrtEnvironment.Local, "orgs/iata_cass_offices/list/v1"),
124
+ method: "GET",
125
+ headers: _headers,
126
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
127
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
128
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
129
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
130
+ });
131
+ if (_response.ok) {
132
+ return { data: _response.body, rawResponse: _response.rawResponse };
133
+ }
134
+ if (_response.error.reason === "status-code") {
135
+ switch (_response.error.statusCode) {
136
+ case 422:
137
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
138
+ default:
139
+ throw new errors.ChrtError({
140
+ statusCode: _response.error.statusCode,
141
+ body: _response.error.body,
142
+ rawResponse: _response.rawResponse,
143
+ });
144
+ }
145
+ }
146
+ switch (_response.error.reason) {
147
+ case "non-json":
148
+ throw new errors.ChrtError({
149
+ statusCode: _response.error.statusCode,
150
+ body: _response.error.rawBody,
151
+ rawResponse: _response.rawResponse,
152
+ });
153
+ case "timeout":
154
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/iata_cass_offices/list/v1.");
155
+ case "unknown":
156
+ throw new errors.ChrtError({
157
+ message: _response.error.errorMessage,
158
+ rawResponse: _response.rawResponse,
159
+ });
160
+ }
161
+ });
162
+ }
163
+ /**
164
+ * Updates the name or contact names of an IATA CASS office of the caller's organization. | authz: min_org_role=admin | (IataCassOfficeClientUpdate1) -> (IataCassOffice1)
165
+ *
166
+ * @param {string} iataCassOfficeId
167
+ * @param {Chrt.orgs.IataCassOfficeClientUpdate1} request
168
+ * @param {IataCassOffices.RequestOptions} requestOptions - Request-specific configuration.
169
+ *
170
+ * @throws {@link Chrt.UnprocessableEntityError}
171
+ *
172
+ * @example
173
+ * await client.orgs.iataCassOffices.updateV1("iata_cass_office_id")
174
+ */
175
+ updateV1(iataCassOfficeId, request = {}, requestOptions) {
176
+ return core.HttpResponsePromise.fromPromise(this.__updateV1(iataCassOfficeId, request, requestOptions));
177
+ }
178
+ __updateV1(iataCassOfficeId_1) {
179
+ return __awaiter(this, arguments, void 0, function* (iataCassOfficeId, request = {}, requestOptions) {
180
+ var _a, _b, _c, _d;
181
+ let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
182
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
183
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `orgs/iata_cass_offices/update/v1/${encodeURIComponent(iataCassOfficeId)}`),
184
+ method: "PATCH",
185
+ headers: _headers,
186
+ contentType: "application/json",
187
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
188
+ requestType: "json",
189
+ body: request,
190
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
191
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
192
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
193
+ });
194
+ if (_response.ok) {
195
+ return { data: _response.body, rawResponse: _response.rawResponse };
196
+ }
197
+ if (_response.error.reason === "status-code") {
198
+ switch (_response.error.statusCode) {
199
+ case 422:
200
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
201
+ default:
202
+ throw new errors.ChrtError({
203
+ statusCode: _response.error.statusCode,
204
+ body: _response.error.body,
205
+ rawResponse: _response.rawResponse,
206
+ });
207
+ }
208
+ }
209
+ switch (_response.error.reason) {
210
+ case "non-json":
211
+ throw new errors.ChrtError({
212
+ statusCode: _response.error.statusCode,
213
+ body: _response.error.rawBody,
214
+ rawResponse: _response.rawResponse,
215
+ });
216
+ case "timeout":
217
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /orgs/iata_cass_offices/update/v1/{iata_cass_office_id}.");
218
+ case "unknown":
219
+ throw new errors.ChrtError({
220
+ message: _response.error.errorMessage,
221
+ rawResponse: _response.rawResponse,
222
+ });
223
+ }
224
+ });
225
+ }
226
+ /**
227
+ * Retrieves an IATA CASS office of the caller's organization. | () -> (IataCassOffice1)
228
+ *
229
+ * @param {string} iataCassOfficeId
230
+ * @param {IataCassOffices.RequestOptions} requestOptions - Request-specific configuration.
231
+ *
232
+ * @throws {@link Chrt.UnprocessableEntityError}
233
+ *
234
+ * @example
235
+ * await client.orgs.iataCassOffices.getV1("iata_cass_office_id")
236
+ */
237
+ getV1(iataCassOfficeId, requestOptions) {
238
+ return core.HttpResponsePromise.fromPromise(this.__getV1(iataCassOfficeId, requestOptions));
239
+ }
240
+ __getV1(iataCassOfficeId, requestOptions) {
241
+ return __awaiter(this, void 0, void 0, function* () {
242
+ var _a, _b, _c, _d;
243
+ 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);
244
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
245
+ 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, `orgs/iata_cass_offices/v1/${encodeURIComponent(iataCassOfficeId)}`),
246
+ method: "GET",
247
+ headers: _headers,
248
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
249
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
250
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
251
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
252
+ });
253
+ if (_response.ok) {
254
+ return { data: _response.body, rawResponse: _response.rawResponse };
255
+ }
256
+ if (_response.error.reason === "status-code") {
257
+ switch (_response.error.statusCode) {
258
+ case 422:
259
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
260
+ default:
261
+ throw new errors.ChrtError({
262
+ statusCode: _response.error.statusCode,
263
+ body: _response.error.body,
264
+ rawResponse: _response.rawResponse,
265
+ });
266
+ }
267
+ }
268
+ switch (_response.error.reason) {
269
+ case "non-json":
270
+ throw new errors.ChrtError({
271
+ statusCode: _response.error.statusCode,
272
+ body: _response.error.rawBody,
273
+ rawResponse: _response.rawResponse,
274
+ });
275
+ case "timeout":
276
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/iata_cass_offices/v1/{iata_cass_office_id}.");
277
+ case "unknown":
278
+ throw new errors.ChrtError({
279
+ message: _response.error.errorMessage,
280
+ rawResponse: _response.rawResponse,
281
+ });
282
+ }
283
+ });
284
+ }
285
+ _getAuthorizationHeader() {
286
+ return __awaiter(this, void 0, void 0, function* () {
287
+ const bearer = yield core.Supplier.get(this._options.token);
288
+ if (bearer != null) {
289
+ return `Bearer ${bearer}`;
290
+ }
291
+ return undefined;
292
+ });
293
+ }
294
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ export * from "./requests/index.mjs";
@@ -0,0 +1 @@
1
+ export * from "./requests/index.mjs";
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {}
7
+ */
8
+ export interface IataCassOfficeClientUpdate1 {
9
+ company_name?: string | null;
10
+ contact_first_name?: string | null;
11
+ contact_last_name?: string | null;
12
+ name?: string | null;
13
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,24 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../../../../../../index.mjs";
5
+ /**
6
+ * @example
7
+ * {
8
+ * filter_archived: true,
9
+ * sort_by: "created_at_timestamp",
10
+ * sort_order: "asc",
11
+ * page: 1,
12
+ * page_size: 1
13
+ * }
14
+ */
15
+ export interface IataCassOfficesListV1Request {
16
+ /** List archived offices instead of active offices. */
17
+ filter_archived?: boolean | null;
18
+ /** Field to sort by. */
19
+ sort_by?: Chrt.IataCassOfficeSortByEnum | null;
20
+ /** Sort order. */
21
+ sort_order?: Chrt.SortOrderEnum | null;
22
+ page?: number | null;
23
+ page_size?: number | null;
24
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,2 @@
1
+ export { type IataCassOfficesListV1Request } from "./IataCassOfficesListV1Request.mjs";
2
+ export { type IataCassOfficeClientUpdate1 } from "./IataCassOfficeClientUpdate1.mjs";
@@ -0,0 +1 @@
1
+ export * from "./client/index.mjs";
@@ -0,0 +1 @@
1
+ export * from "./client/index.mjs";
@@ -3,6 +3,7 @@ export * from "./connections/types/index.mjs";
3
3
  export * as accounts from "./accounts/index.mjs";
4
4
  export * as complianceDocuments from "./complianceDocuments/index.mjs";
5
5
  export * as contacts from "./contacts/index.mjs";
6
+ export * as iataCassOffices from "./iataCassOffices/index.mjs";
6
7
  export * as offChrtOrgData from "./offChrtOrgData/index.mjs";
7
8
  export * as privateData from "./privateData/index.mjs";
8
9
  export * as publicData from "./publicData/index.mjs";
@@ -10,5 +11,6 @@ export * from "./accounts/client/requests/index.mjs";
10
11
  export * from "./complianceDocuments/client/requests/index.mjs";
11
12
  export * from "./connections/client/requests/index.mjs";
12
13
  export * from "./contacts/client/requests/index.mjs";
14
+ export * from "./iataCassOffices/client/requests/index.mjs";
13
15
  export * from "./offChrtOrgData/client/requests/index.mjs";
14
16
  export * from "./publicData/client/requests/index.mjs";
@@ -3,6 +3,7 @@ export * from "./connections/types/index.mjs";
3
3
  export * as accounts from "./accounts/index.mjs";
4
4
  export * as complianceDocuments from "./complianceDocuments/index.mjs";
5
5
  export * as contacts from "./contacts/index.mjs";
6
+ export * as iataCassOffices from "./iataCassOffices/index.mjs";
6
7
  export * as offChrtOrgData from "./offChrtOrgData/index.mjs";
7
8
  export * as privateData from "./privateData/index.mjs";
8
9
  export * as publicData from "./publicData/index.mjs";
@@ -10,5 +11,6 @@ export * from "./accounts/client/requests/index.mjs";
10
11
  export * from "./complianceDocuments/client/requests/index.mjs";
11
12
  export * from "./connections/client/requests/index.mjs";
12
13
  export * from "./contacts/client/requests/index.mjs";
14
+ export * from "./iataCassOffices/client/requests/index.mjs";
13
15
  export * from "./offChrtOrgData/client/requests/index.mjs";
14
16
  export * from "./publicData/client/requests/index.mjs";
@@ -3,6 +3,8 @@
3
3
  */
4
4
  import * as environments from "../../../../environments.mjs";
5
5
  import * as core from "../../../../core/index.mjs";
6
+ import { CargoOnFlightBookingSearches } from "../resources/cargoOnFlightBookingSearches/client/Client.mjs";
7
+ import { CargoOnFlightBookings } from "../resources/cargoOnFlightBookings/client/Client.mjs";
6
8
  import { Drivers } from "../resources/drivers/client/Client.mjs";
7
9
  import { Flights } from "../resources/flights/client/Client.mjs";
8
10
  import { OrderTemplatesNew } from "../resources/orderTemplatesNew/client/Client.mjs";
@@ -23,6 +25,8 @@ export declare namespace Shipping {
23
25
  }
24
26
  export declare class Shipping {
25
27
  protected readonly _options: Shipping.Options;
28
+ protected _cargoOnFlightBookingSearches: CargoOnFlightBookingSearches | undefined;
29
+ protected _cargoOnFlightBookings: CargoOnFlightBookings | undefined;
26
30
  protected _drivers: Drivers | undefined;
27
31
  protected _flights: Flights | undefined;
28
32
  protected _orderTemplatesNew: OrderTemplatesNew | undefined;
@@ -31,6 +35,8 @@ export declare class Shipping {
31
35
  protected _taskGroups: TaskGroups | undefined;
32
36
  protected _tasks: Tasks | undefined;
33
37
  constructor(_options?: Shipping.Options);
38
+ get cargoOnFlightBookingSearches(): CargoOnFlightBookingSearches;
39
+ get cargoOnFlightBookings(): CargoOnFlightBookings;
34
40
  get drivers(): Drivers;
35
41
  get flights(): Flights;
36
42
  get orderTemplatesNew(): OrderTemplatesNew;
@@ -1,6 +1,8 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import { CargoOnFlightBookingSearches } from "../resources/cargoOnFlightBookingSearches/client/Client.mjs";
5
+ import { CargoOnFlightBookings } from "../resources/cargoOnFlightBookings/client/Client.mjs";
4
6
  import { Drivers } from "../resources/drivers/client/Client.mjs";
5
7
  import { Flights } from "../resources/flights/client/Client.mjs";
6
8
  import { OrderTemplatesNew } from "../resources/orderTemplatesNew/client/Client.mjs";
@@ -12,6 +14,14 @@ export class Shipping {
12
14
  constructor(_options = {}) {
13
15
  this._options = _options;
14
16
  }
17
+ get cargoOnFlightBookingSearches() {
18
+ var _a;
19
+ return ((_a = this._cargoOnFlightBookingSearches) !== null && _a !== void 0 ? _a : (this._cargoOnFlightBookingSearches = new CargoOnFlightBookingSearches(this._options)));
20
+ }
21
+ get cargoOnFlightBookings() {
22
+ var _a;
23
+ return ((_a = this._cargoOnFlightBookings) !== null && _a !== void 0 ? _a : (this._cargoOnFlightBookings = new CargoOnFlightBookings(this._options)));
24
+ }
15
25
  get drivers() {
16
26
  var _a;
17
27
  return ((_a = this._drivers) !== null && _a !== void 0 ? _a : (this._drivers = new Drivers(this._options)));
@@ -0,0 +1,68 @@
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 CargoOnFlightBookingSearches {
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 CargoOnFlightBookingSearches {
31
+ protected readonly _options: CargoOnFlightBookingSearches.Options;
32
+ constructor(_options?: CargoOnFlightBookingSearches.Options);
33
+ /**
34
+ * Lists a cargo-on-flight booking's searches with their results. | authz_personas=[task_group_coordinator_operators] | () -> (CargoOnFlightBookingSearchListRes)
35
+ *
36
+ * @param {Chrt.shipping.CargoOnFlightBookingSearchesListV1Request} request
37
+ * @param {CargoOnFlightBookingSearches.RequestOptions} requestOptions - Request-specific configuration.
38
+ *
39
+ * @throws {@link Chrt.UnprocessableEntityError}
40
+ *
41
+ * @example
42
+ * await client.shipping.cargoOnFlightBookingSearches.listV1({
43
+ * cargo_on_flight_booking_id: "cargo_on_flight_booking_id",
44
+ * filter_created_at_timestamp_gte: "2024-01-15T09:30:00Z",
45
+ * filter_created_at_timestamp_lte: "2024-01-15T09:30:00Z",
46
+ * sort_by: "created_at_timestamp",
47
+ * sort_order: "asc",
48
+ * page: 1,
49
+ * page_size: 1
50
+ * })
51
+ */
52
+ listV1(request: Chrt.shipping.CargoOnFlightBookingSearchesListV1Request, requestOptions?: CargoOnFlightBookingSearches.RequestOptions): core.HttpResponsePromise<Chrt.CargoOnFlightBookingSearchListRes>;
53
+ private __listV1;
54
+ /**
55
+ * Retrieves a cargo-on-flight booking search with its results. | authz_personas=[task_group_coordinator_operators] | () -> (CargoOnFlightBookingSearch1)
56
+ *
57
+ * @param {string} cargoOnFlightBookingSearchId
58
+ * @param {CargoOnFlightBookingSearches.RequestOptions} requestOptions - Request-specific configuration.
59
+ *
60
+ * @throws {@link Chrt.UnprocessableEntityError}
61
+ *
62
+ * @example
63
+ * await client.shipping.cargoOnFlightBookingSearches.getV1("cargo_on_flight_booking_search_id")
64
+ */
65
+ getV1(cargoOnFlightBookingSearchId: string, requestOptions?: CargoOnFlightBookingSearches.RequestOptions): core.HttpResponsePromise<Chrt.CargoOnFlightBookingSearch1>;
66
+ private __getV1;
67
+ protected _getAuthorizationHeader(): Promise<string | undefined>;
68
+ }