@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,379 @@
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 CargoOnFlightBookings {
19
+ constructor(_options = {}) {
20
+ this._options = _options;
21
+ }
22
+ /**
23
+ * Cancels a MANUAL booking, removing the flights it created from the task group and its AWB from its cargos; an integration booking is cancelled through its integration. | authz_personas=[task_group_coordinator_operators] | () -> (CargoOnFlightBooking1)
24
+ *
25
+ * @param {string} cargoOnFlightBookingId
26
+ * @param {CargoOnFlightBookings.RequestOptions} requestOptions - Request-specific configuration.
27
+ *
28
+ * @throws {@link Chrt.UnprocessableEntityError}
29
+ *
30
+ * @example
31
+ * await client.shipping.cargoOnFlightBookings.cancelV1("cargo_on_flight_booking_id")
32
+ */
33
+ cancelV1(cargoOnFlightBookingId, requestOptions) {
34
+ return core.HttpResponsePromise.fromPromise(this.__cancelV1(cargoOnFlightBookingId, requestOptions));
35
+ }
36
+ __cancelV1(cargoOnFlightBookingId, 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, `shipping/cargo_on_flight_bookings/cancel/v1/${encodeURIComponent(cargoOnFlightBookingId)}`),
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 /shipping/cargo_on_flight_bookings/cancel/v1/{cargo_on_flight_booking_id}.");
73
+ case "unknown":
74
+ throw new errors.ChrtError({
75
+ message: _response.error.errorMessage,
76
+ rawResponse: _response.rawResponse,
77
+ });
78
+ }
79
+ });
80
+ }
81
+ /**
82
+ * Creates a booking for a flight task group's cargos: a draft to search and book through an integration, or a MANUAL booking placed outside CHRT, confirmed with its AWB and itinerary, which sets the task group's flights and the cargos' AWB. | authz_personas=[task_group_coordinator_operators] | (CargoOnFlightBookingClientCreate1) -> (CargoOnFlightBooking1)
83
+ *
84
+ * @param {Chrt.shipping.CargoOnFlightBookingClientCreate1} request
85
+ * @param {CargoOnFlightBookings.RequestOptions} requestOptions - Request-specific configuration.
86
+ *
87
+ * @throws {@link Chrt.UnprocessableEntityError}
88
+ *
89
+ * @example
90
+ * await client.shipping.cargoOnFlightBookings.createV1({
91
+ * cargo_dimensions: [{
92
+ * height_inches: 1.1,
93
+ * length_inches: 1.1,
94
+ * quantity: 1,
95
+ * weight_per_piece_pounds: 1.1,
96
+ * width_inches: 1.1
97
+ * }],
98
+ * cargo_ids: ["cargo_ids"],
99
+ * cargo_on_flight_integration: "cargoai",
100
+ * schema_version: 1,
101
+ * task_group_id: "task_group_id"
102
+ * })
103
+ */
104
+ createV1(request, requestOptions) {
105
+ return core.HttpResponsePromise.fromPromise(this.__createV1(request, requestOptions));
106
+ }
107
+ __createV1(request, requestOptions) {
108
+ return __awaiter(this, void 0, void 0, function* () {
109
+ var _a, _b, _c, _d;
110
+ 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);
111
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
112
+ 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, "shipping/cargo_on_flight_bookings/create/v1"),
113
+ method: "POST",
114
+ headers: _headers,
115
+ contentType: "application/json",
116
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
117
+ requestType: "json",
118
+ body: request,
119
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
120
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
121
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
122
+ });
123
+ if (_response.ok) {
124
+ return { data: _response.body, rawResponse: _response.rawResponse };
125
+ }
126
+ if (_response.error.reason === "status-code") {
127
+ switch (_response.error.statusCode) {
128
+ case 422:
129
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
130
+ default:
131
+ throw new errors.ChrtError({
132
+ statusCode: _response.error.statusCode,
133
+ body: _response.error.body,
134
+ rawResponse: _response.rawResponse,
135
+ });
136
+ }
137
+ }
138
+ switch (_response.error.reason) {
139
+ case "non-json":
140
+ throw new errors.ChrtError({
141
+ statusCode: _response.error.statusCode,
142
+ body: _response.error.rawBody,
143
+ rawResponse: _response.rawResponse,
144
+ });
145
+ case "timeout":
146
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /shipping/cargo_on_flight_bookings/create/v1.");
147
+ case "unknown":
148
+ throw new errors.ChrtError({
149
+ message: _response.error.errorMessage,
150
+ rawResponse: _response.rawResponse,
151
+ });
152
+ }
153
+ });
154
+ }
155
+ /**
156
+ * Deletes a draft booking that was never booked, with its searches. | authz_personas=[task_group_coordinator_operators] | () -> (bool)
157
+ *
158
+ * @param {string} cargoOnFlightBookingId
159
+ * @param {CargoOnFlightBookings.RequestOptions} requestOptions - Request-specific configuration.
160
+ *
161
+ * @throws {@link Chrt.UnprocessableEntityError}
162
+ *
163
+ * @example
164
+ * await client.shipping.cargoOnFlightBookings.deleteDraftV1("cargo_on_flight_booking_id")
165
+ */
166
+ deleteDraftV1(cargoOnFlightBookingId, requestOptions) {
167
+ return core.HttpResponsePromise.fromPromise(this.__deleteDraftV1(cargoOnFlightBookingId, requestOptions));
168
+ }
169
+ __deleteDraftV1(cargoOnFlightBookingId, requestOptions) {
170
+ return __awaiter(this, void 0, void 0, function* () {
171
+ var _a, _b, _c, _d;
172
+ 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);
173
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
174
+ 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, `shipping/cargo_on_flight_bookings/delete_draft/v1/${encodeURIComponent(cargoOnFlightBookingId)}`),
175
+ method: "DELETE",
176
+ headers: _headers,
177
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
178
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
179
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
180
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
181
+ });
182
+ if (_response.ok) {
183
+ return { data: _response.body, rawResponse: _response.rawResponse };
184
+ }
185
+ if (_response.error.reason === "status-code") {
186
+ switch (_response.error.statusCode) {
187
+ case 422:
188
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
189
+ default:
190
+ throw new errors.ChrtError({
191
+ statusCode: _response.error.statusCode,
192
+ body: _response.error.body,
193
+ rawResponse: _response.rawResponse,
194
+ });
195
+ }
196
+ }
197
+ switch (_response.error.reason) {
198
+ case "non-json":
199
+ throw new errors.ChrtError({
200
+ statusCode: _response.error.statusCode,
201
+ body: _response.error.rawBody,
202
+ rawResponse: _response.rawResponse,
203
+ });
204
+ case "timeout":
205
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling DELETE /shipping/cargo_on_flight_bookings/delete_draft/v1/{cargo_on_flight_booking_id}.");
206
+ case "unknown":
207
+ throw new errors.ChrtError({
208
+ message: _response.error.errorMessage,
209
+ rawResponse: _response.rawResponse,
210
+ });
211
+ }
212
+ });
213
+ }
214
+ /**
215
+ * Lists a flight task group's cargo-on-flight bookings, active and history. | authz_personas=[task_group_coordinator_operators] | () -> (CargoOnFlightBookingListRes)
216
+ *
217
+ * @param {Chrt.shipping.CargoOnFlightBookingsListV1Request} request
218
+ * @param {CargoOnFlightBookings.RequestOptions} requestOptions - Request-specific configuration.
219
+ *
220
+ * @throws {@link Chrt.UnprocessableEntityError}
221
+ *
222
+ * @example
223
+ * await client.shipping.cargoOnFlightBookings.listV1({
224
+ * task_group_id: "task_group_id",
225
+ * filter_status: ["draft"],
226
+ * filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
227
+ * filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
228
+ * sort_by: "draft_started_at_timestamp",
229
+ * sort_order: "asc",
230
+ * page: 1,
231
+ * page_size: 1
232
+ * })
233
+ */
234
+ listV1(request, requestOptions) {
235
+ return core.HttpResponsePromise.fromPromise(this.__listV1(request, requestOptions));
236
+ }
237
+ __listV1(request, requestOptions) {
238
+ return __awaiter(this, void 0, void 0, function* () {
239
+ var _a, _b, _c, _d, _e, _f;
240
+ const { task_group_id: taskGroupId, filter_status: filterStatus, filter_draft_started_at_timestamp_gte: filterDraftStartedAtTimestampGte, filter_draft_started_at_timestamp_lte: filterDraftStartedAtTimestampLte, sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, } = request;
241
+ const _queryParams = {};
242
+ _queryParams["task_group_id"] = taskGroupId;
243
+ if (filterStatus !== undefined) {
244
+ if (Array.isArray(filterStatus)) {
245
+ _queryParams["filter_status"] = filterStatus.map((item) => item);
246
+ }
247
+ else {
248
+ _queryParams["filter_status"] = filterStatus;
249
+ }
250
+ }
251
+ if (filterDraftStartedAtTimestampGte !== undefined) {
252
+ _queryParams["filter_draft_started_at_timestamp_gte"] = filterDraftStartedAtTimestampGte;
253
+ }
254
+ if (filterDraftStartedAtTimestampLte !== undefined) {
255
+ _queryParams["filter_draft_started_at_timestamp_lte"] = filterDraftStartedAtTimestampLte;
256
+ }
257
+ if (sortBy !== undefined) {
258
+ _queryParams["sort_by"] = sortBy;
259
+ }
260
+ if (sortOrder !== undefined) {
261
+ _queryParams["sort_order"] = sortOrder;
262
+ }
263
+ if (page !== undefined) {
264
+ _queryParams["page"] = (_a = page === null || page === void 0 ? void 0 : page.toString()) !== null && _a !== void 0 ? _a : null;
265
+ }
266
+ if (pageSize !== undefined) {
267
+ _queryParams["page_size"] = (_b = pageSize === null || pageSize === void 0 ? void 0 : pageSize.toString()) !== null && _b !== void 0 ? _b : null;
268
+ }
269
+ let _headers = mergeHeaders((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
270
+ const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
271
+ url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ChrtEnvironment.Local, "shipping/cargo_on_flight_bookings/list/v1"),
272
+ method: "GET",
273
+ headers: _headers,
274
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
275
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
276
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
277
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
278
+ });
279
+ if (_response.ok) {
280
+ return { data: _response.body, rawResponse: _response.rawResponse };
281
+ }
282
+ if (_response.error.reason === "status-code") {
283
+ switch (_response.error.statusCode) {
284
+ case 422:
285
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
286
+ default:
287
+ throw new errors.ChrtError({
288
+ statusCode: _response.error.statusCode,
289
+ body: _response.error.body,
290
+ rawResponse: _response.rawResponse,
291
+ });
292
+ }
293
+ }
294
+ switch (_response.error.reason) {
295
+ case "non-json":
296
+ throw new errors.ChrtError({
297
+ statusCode: _response.error.statusCode,
298
+ body: _response.error.rawBody,
299
+ rawResponse: _response.rawResponse,
300
+ });
301
+ case "timeout":
302
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /shipping/cargo_on_flight_bookings/list/v1.");
303
+ case "unknown":
304
+ throw new errors.ChrtError({
305
+ message: _response.error.errorMessage,
306
+ rawResponse: _response.rawResponse,
307
+ });
308
+ }
309
+ });
310
+ }
311
+ /**
312
+ * Retrieves a cargo-on-flight booking. | authz_personas=[task_group_coordinator_operators] | () -> (CargoOnFlightBooking1)
313
+ *
314
+ * @param {string} cargoOnFlightBookingId
315
+ * @param {CargoOnFlightBookings.RequestOptions} requestOptions - Request-specific configuration.
316
+ *
317
+ * @throws {@link Chrt.UnprocessableEntityError}
318
+ *
319
+ * @example
320
+ * await client.shipping.cargoOnFlightBookings.getV1("cargo_on_flight_booking_id")
321
+ */
322
+ getV1(cargoOnFlightBookingId, requestOptions) {
323
+ return core.HttpResponsePromise.fromPromise(this.__getV1(cargoOnFlightBookingId, requestOptions));
324
+ }
325
+ __getV1(cargoOnFlightBookingId, requestOptions) {
326
+ return __awaiter(this, void 0, void 0, function* () {
327
+ var _a, _b, _c, _d;
328
+ 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);
329
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
330
+ 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, `shipping/cargo_on_flight_bookings/v1/${encodeURIComponent(cargoOnFlightBookingId)}`),
331
+ method: "GET",
332
+ headers: _headers,
333
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
334
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
335
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
336
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
337
+ });
338
+ if (_response.ok) {
339
+ return { data: _response.body, rawResponse: _response.rawResponse };
340
+ }
341
+ if (_response.error.reason === "status-code") {
342
+ switch (_response.error.statusCode) {
343
+ case 422:
344
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
345
+ default:
346
+ throw new errors.ChrtError({
347
+ statusCode: _response.error.statusCode,
348
+ body: _response.error.body,
349
+ rawResponse: _response.rawResponse,
350
+ });
351
+ }
352
+ }
353
+ switch (_response.error.reason) {
354
+ case "non-json":
355
+ throw new errors.ChrtError({
356
+ statusCode: _response.error.statusCode,
357
+ body: _response.error.rawBody,
358
+ rawResponse: _response.rawResponse,
359
+ });
360
+ case "timeout":
361
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /shipping/cargo_on_flight_bookings/v1/{cargo_on_flight_booking_id}.");
362
+ case "unknown":
363
+ throw new errors.ChrtError({
364
+ message: _response.error.errorMessage,
365
+ rawResponse: _response.rawResponse,
366
+ });
367
+ }
368
+ });
369
+ }
370
+ _getAuthorizationHeader() {
371
+ return __awaiter(this, void 0, void 0, function* () {
372
+ const bearer = yield core.Supplier.get(this._options.token);
373
+ if (bearer != null) {
374
+ return `Bearer ${bearer}`;
375
+ }
376
+ return undefined;
377
+ });
378
+ }
379
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ export * from "./requests/index.mjs";
@@ -0,0 +1 @@
1
+ export * from "./requests/index.mjs";
@@ -0,0 +1,31 @@
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
+ * cargo_dimensions: [{
9
+ * height_inches: 1.1,
10
+ * length_inches: 1.1,
11
+ * quantity: 1,
12
+ * weight_per_piece_pounds: 1.1,
13
+ * width_inches: 1.1
14
+ * }],
15
+ * cargo_ids: ["cargo_ids"],
16
+ * cargo_on_flight_integration: "cargoai",
17
+ * schema_version: 1,
18
+ * task_group_id: "task_group_id"
19
+ * }
20
+ */
21
+ export interface CargoOnFlightBookingClientCreate1 {
22
+ /** IATA Air Waybill number: 3-digit airline prefix + 8-digit serial, e.g. '020-12345678'. */
23
+ awb_number?: string | null;
24
+ booked_itinerary?: Chrt.CargoOnFlightBookingItinerary1 | null;
25
+ booked_rate?: Chrt.CargoOnFlightBookingRate1 | null;
26
+ cargo_dimensions: Chrt.CargoOnFlightBookingCargoDimension1[];
27
+ cargo_ids: string[];
28
+ cargo_on_flight_integration: Chrt.CargoOnFlightIntegrationEnum1;
29
+ schema_version: number;
30
+ task_group_id: string;
31
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,33 @@
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
+ * task_group_id: "task_group_id",
9
+ * filter_status: ["draft"],
10
+ * filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
11
+ * filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
12
+ * sort_by: "draft_started_at_timestamp",
13
+ * sort_order: "asc",
14
+ * page: 1,
15
+ * page_size: 1
16
+ * }
17
+ */
18
+ export interface CargoOnFlightBookingsListV1Request {
19
+ /** The task group whose bookings are listed. */
20
+ task_group_id: string;
21
+ /** Filter by status(es). */
22
+ filter_status?: (Chrt.CargoOnFlightBookingStatusEnum1 | null) | (Chrt.CargoOnFlightBookingStatusEnum1 | null)[];
23
+ /** Filter draft_started_at_timestamp >= value. */
24
+ filter_draft_started_at_timestamp_gte?: string | null;
25
+ /** Filter draft_started_at_timestamp <= value. */
26
+ filter_draft_started_at_timestamp_lte?: string | null;
27
+ /** Field to sort by. */
28
+ sort_by?: Chrt.CargoOnFlightBookingSortByEnum | null;
29
+ /** Sort order. */
30
+ sort_order?: Chrt.SortOrderEnum | null;
31
+ page?: number | null;
32
+ page_size?: number | null;
33
+ }
@@ -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 CargoOnFlightBookingClientCreate1 } from "./CargoOnFlightBookingClientCreate1.mjs";
2
+ export { type CargoOnFlightBookingsListV1Request } from "./CargoOnFlightBookingsListV1Request.mjs";
@@ -0,0 +1 @@
1
+ export * from "./client/index.mjs";
@@ -0,0 +1 @@
1
+ export * from "./client/index.mjs";
@@ -1,11 +1,15 @@
1
1
  export * as drivers from "./drivers/index.mjs";
2
2
  export * from "./drivers/types/index.mjs";
3
+ export * as cargoOnFlightBookingSearches from "./cargoOnFlightBookingSearches/index.mjs";
4
+ export * as cargoOnFlightBookings from "./cargoOnFlightBookings/index.mjs";
3
5
  export * as flights from "./flights/index.mjs";
4
6
  export * as orderTemplatesNew from "./orderTemplatesNew/index.mjs";
5
7
  export * as orders from "./orders/index.mjs";
6
8
  export * as taskArtifacts from "./taskArtifacts/index.mjs";
7
9
  export * as taskGroups from "./taskGroups/index.mjs";
8
10
  export * as tasks from "./tasks/index.mjs";
11
+ export * from "./cargoOnFlightBookingSearches/client/requests/index.mjs";
12
+ export * from "./cargoOnFlightBookings/client/requests/index.mjs";
9
13
  export * from "./drivers/client/requests/index.mjs";
10
14
  export * from "./flights/client/requests/index.mjs";
11
15
  export * from "./orderTemplatesNew/client/requests/index.mjs";
@@ -1,11 +1,15 @@
1
1
  export * as drivers from "./drivers/index.mjs";
2
2
  export * from "./drivers/types/index.mjs";
3
+ export * as cargoOnFlightBookingSearches from "./cargoOnFlightBookingSearches/index.mjs";
4
+ export * as cargoOnFlightBookings from "./cargoOnFlightBookings/index.mjs";
3
5
  export * as flights from "./flights/index.mjs";
4
6
  export * as orderTemplatesNew from "./orderTemplatesNew/index.mjs";
5
7
  export * as orders from "./orders/index.mjs";
6
8
  export * as taskArtifacts from "./taskArtifacts/index.mjs";
7
9
  export * as taskGroups from "./taskGroups/index.mjs";
8
10
  export * as tasks from "./tasks/index.mjs";
11
+ export * from "./cargoOnFlightBookingSearches/client/requests/index.mjs";
12
+ export * from "./cargoOnFlightBookings/client/requests/index.mjs";
9
13
  export * from "./drivers/client/requests/index.mjs";
10
14
  export * from "./flights/client/requests/index.mjs";
11
15
  export * from "./orderTemplatesNew/client/requests/index.mjs";
@@ -0,0 +1,34 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.mjs";
5
+ export interface CargoOnFlightBooking1 {
6
+ _id: string;
7
+ /** IATA Air Waybill number: 3-digit airline prefix + 8-digit serial, e.g. '020-12345678'. */
8
+ awb_number?: string | null;
9
+ booked_itinerary?: Chrt.CargoOnFlightBookingItinerary1 | null;
10
+ booked_rate?: Chrt.CargoOnFlightBookingRate1 | null;
11
+ cancellation_requested_at_timestamp?: string | null;
12
+ cancelled_at_timestamp?: string | null;
13
+ cargo_dimensions?: Chrt.CargoOnFlightBookingCargoDimension1[];
14
+ cargo_ids?: string[];
15
+ cargo_on_flight_booking_search_id?: string | null;
16
+ cargo_on_flight_integration: Chrt.CargoOnFlightIntegrationEnum1;
17
+ confirmed_at_timestamp?: string | null;
18
+ /** Must be a string starting with `org_` */
19
+ created_by_org_id: string;
20
+ /** Must be a string starting with `user_` */
21
+ created_by_user_id?: string | null;
22
+ draft_started_at_timestamp: string;
23
+ failed_at_timestamp?: string | null;
24
+ flight_leg_ids?: string[];
25
+ iata_cass_office_id?: string | null;
26
+ integration_status?: string | null;
27
+ order_id: string;
28
+ order_short_id: string;
29
+ rejected_at_timestamp?: string | null;
30
+ requested_at_timestamp?: string | null;
31
+ schema_version: number;
32
+ status: Chrt.CargoOnFlightBookingStatusEnum1;
33
+ task_group_id: string;
34
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * `quantity` identical pieces, each of these dimensions and weight.
6
+ */
7
+ export interface CargoOnFlightBookingCargoDimension1 {
8
+ height_inches: number;
9
+ length_inches: number;
10
+ quantity: number;
11
+ stackable?: boolean;
12
+ turnable?: boolean;
13
+ weight_per_piece_pounds: number;
14
+ width_inches: number;
15
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.mjs";
5
+ /**
6
+ * The itinerary of the search result a booking was placed on.
7
+ */
8
+ export interface CargoOnFlightBookingItinerary1 {
9
+ carrier_iata: string;
10
+ latest_acceptance_utc?: string | null;
11
+ legs?: Chrt.CargoOnFlightBookingItineraryLeg1[];
12
+ time_of_availability_utc?: 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,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * One leg of an itinerary: a flight, or a road feeder truck (`surface_transport`).
6
+ */
7
+ export interface CargoOnFlightBookingItineraryLeg1 {
8
+ carrier_iata: string;
9
+ destination_iata: string;
10
+ flight_number: string;
11
+ origin_iata: string;
12
+ scheduled_arrival_utc: string;
13
+ scheduled_departure_utc: string;
14
+ surface_transport: boolean;
15
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.mjs";
5
+ export interface CargoOnFlightBookingListRes {
6
+ items: Chrt.CargoOnFlightBooking1[];
7
+ total_count: number;
8
+ }
@@ -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
+ * A price quoted for a shipment: one of a search result's rates, or the price a MANUAL booking was quoted.
6
+ */
7
+ export interface CargoOnFlightBookingRate1 {
8
+ currency_code: string;
9
+ integration_rate_id?: string | null;
10
+ rate_name?: string | null;
11
+ total_amount: number;
12
+ }