@chrt-inc/typescript-sdk 1.1035.0 → 1.1037.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 (132) hide show
  1. package/dist/cjs/Client.js +2 -2
  2. package/dist/cjs/api/resources/cargoOnFlightIntegrations/client/Client.d.ts +3 -0
  3. package/dist/cjs/api/resources/cargoOnFlightIntegrations/client/Client.js +7 -2
  4. package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/airCanada/client/Client.d.ts +88 -0
  5. package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/airCanada/client/Client.js +269 -0
  6. package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/airCanada/client/index.d.ts +2 -0
  7. package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/airCanada/client/index.js +17 -0
  8. package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/airCanada/client/requests/CargoOnFlightIntegrationsAirCanadaBookReq.d.ts +18 -0
  9. package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/airCanada/client/requests/CargoOnFlightIntegrationsAirCanadaCancelReq.d.ts +12 -0
  10. package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/airCanada/client/requests/CargoOnFlightIntegrationsAirCanadaCancelReq.js +5 -0
  11. package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/airCanada/client/requests/index.d.ts +2 -0
  12. package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/airCanada/client/requests/index.js +2 -0
  13. package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/airCanada/index.d.ts +1 -0
  14. package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/airCanada/index.js +17 -0
  15. package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/Client.d.ts +2 -2
  16. package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/Client.js +1 -1
  17. package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/requests/index.d.ts +0 -1
  18. package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/index.d.ts +2 -0
  19. package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/index.js +3 -1
  20. package/dist/cjs/api/resources/orgs/client/Client.d.ts +3 -0
  21. package/dist/cjs/api/resources/orgs/client/Client.js +19 -14
  22. package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/client/Client.d.ts +137 -0
  23. package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/client/Client.js +528 -0
  24. package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/client/index.d.ts +2 -0
  25. package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/client/index.js +17 -0
  26. package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersAddReq.d.ts +12 -0
  27. package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersAddReq.js +5 -0
  28. package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersListV1Request.d.ts +27 -0
  29. package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersListV1Request.js +5 -0
  30. package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersMarkAvailableReq.d.ts +12 -0
  31. package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersMarkAvailableReq.js +5 -0
  32. package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersMarkUsedReq.d.ts +13 -0
  33. package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersMarkUsedReq.js +5 -0
  34. package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersVoidReq.d.ts +13 -0
  35. package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersVoidReq.js +5 -0
  36. package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/index.d.ts +5 -0
  37. package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/index.js +2 -0
  38. package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/index.d.ts +1 -0
  39. package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/index.js +17 -0
  40. package/dist/cjs/api/resources/orgs/resources/index.d.ts +2 -0
  41. package/dist/cjs/api/resources/orgs/resources/index.js +3 -1
  42. package/dist/cjs/api/resources/shipping/resources/cargoOnFlightBookings/client/Client.d.ts +1 -1
  43. package/dist/cjs/api/resources/shipping/resources/cargoOnFlightBookings/client/Client.js +1 -1
  44. package/dist/cjs/api/resources/shipping/resources/cargoOnFlightBookings/client/requests/CargoOnFlightBookingClientCreate1.d.ts +1 -1
  45. package/dist/cjs/api/types/AirWaybillStockNumber1.d.ts +21 -0
  46. package/dist/cjs/api/types/AirWaybillStockNumber1.js +5 -0
  47. package/dist/cjs/api/types/AirWaybillStockNumberListRes.d.ts +8 -0
  48. package/dist/cjs/api/types/AirWaybillStockNumberListRes.js +5 -0
  49. package/dist/cjs/api/types/AirWaybillStockNumberSortByEnum.d.ts +9 -0
  50. package/dist/cjs/api/types/AirWaybillStockNumberSortByEnum.js +11 -0
  51. package/dist/cjs/api/types/AirWaybillStockNumberStatusEnum1.d.ts +10 -0
  52. package/dist/cjs/api/types/AirWaybillStockNumberStatusEnum1.js +12 -0
  53. package/dist/cjs/api/types/AirWaybillStockNumbersAddRes.d.ts +8 -0
  54. package/dist/cjs/api/types/AirWaybillStockNumbersAddRes.js +5 -0
  55. package/dist/cjs/api/types/AirWaybillStockNumbersSummaryRes.d.ts +10 -0
  56. package/dist/cjs/api/types/AirWaybillStockNumbersSummaryRes.js +5 -0
  57. package/dist/cjs/api/{resources/cargoOnFlightIntegrations/resources/cargoai/client/requests → types}/CargoOnFlightBookingSearchClientCreate1.d.ts +0 -10
  58. package/dist/cjs/api/types/CargoOnFlightBookingSearchClientCreate1.js +5 -0
  59. package/dist/cjs/api/types/CargoOnFlightIntegrationEnum1.d.ts +2 -1
  60. package/dist/cjs/api/types/CargoOnFlightIntegrationEnum1.js +1 -0
  61. package/dist/cjs/api/types/index.d.ts +7 -0
  62. package/dist/cjs/api/types/index.js +7 -0
  63. package/dist/cjs/version.d.ts +1 -1
  64. package/dist/cjs/version.js +1 -1
  65. package/dist/esm/Client.mjs +2 -2
  66. package/dist/esm/api/resources/cargoOnFlightIntegrations/client/Client.d.mts +3 -0
  67. package/dist/esm/api/resources/cargoOnFlightIntegrations/client/Client.mjs +5 -0
  68. package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/airCanada/client/Client.d.mts +88 -0
  69. package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/airCanada/client/Client.mjs +232 -0
  70. package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/airCanada/client/index.d.mts +2 -0
  71. package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/airCanada/client/index.mjs +1 -0
  72. package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/airCanada/client/requests/CargoOnFlightIntegrationsAirCanadaBookReq.d.mts +18 -0
  73. package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/airCanada/client/requests/CargoOnFlightIntegrationsAirCanadaCancelReq.d.mts +12 -0
  74. package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/airCanada/client/requests/CargoOnFlightIntegrationsAirCanadaCancelReq.mjs +4 -0
  75. package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/airCanada/client/requests/index.d.mts +2 -0
  76. package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/airCanada/client/requests/index.mjs +1 -0
  77. package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/airCanada/index.d.mts +1 -0
  78. package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/airCanada/index.mjs +1 -0
  79. package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/Client.d.mts +2 -2
  80. package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/Client.mjs +1 -1
  81. package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/requests/index.d.mts +0 -1
  82. package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/index.d.mts +2 -0
  83. package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/index.mjs +2 -0
  84. package/dist/esm/api/resources/orgs/client/Client.d.mts +3 -0
  85. package/dist/esm/api/resources/orgs/client/Client.mjs +5 -0
  86. package/dist/esm/api/resources/orgs/resources/airWaybillStockNumbers/client/Client.d.mts +137 -0
  87. package/dist/esm/api/resources/orgs/resources/airWaybillStockNumbers/client/Client.mjs +491 -0
  88. package/dist/esm/api/resources/orgs/resources/airWaybillStockNumbers/client/index.d.mts +2 -0
  89. package/dist/esm/api/resources/orgs/resources/airWaybillStockNumbers/client/index.mjs +1 -0
  90. package/dist/esm/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersAddReq.d.mts +12 -0
  91. package/dist/esm/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersAddReq.mjs +4 -0
  92. package/dist/esm/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersListV1Request.d.mts +27 -0
  93. package/dist/esm/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersListV1Request.mjs +4 -0
  94. package/dist/esm/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersMarkAvailableReq.d.mts +12 -0
  95. package/dist/esm/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersMarkAvailableReq.mjs +4 -0
  96. package/dist/esm/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersMarkUsedReq.d.mts +13 -0
  97. package/dist/esm/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersMarkUsedReq.mjs +4 -0
  98. package/dist/esm/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersVoidReq.d.mts +13 -0
  99. package/dist/esm/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersVoidReq.mjs +4 -0
  100. package/dist/esm/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/index.d.mts +5 -0
  101. package/dist/esm/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/index.mjs +1 -0
  102. package/dist/esm/api/resources/orgs/resources/airWaybillStockNumbers/index.d.mts +1 -0
  103. package/dist/esm/api/resources/orgs/resources/airWaybillStockNumbers/index.mjs +1 -0
  104. package/dist/esm/api/resources/orgs/resources/index.d.mts +2 -0
  105. package/dist/esm/api/resources/orgs/resources/index.mjs +2 -0
  106. package/dist/esm/api/resources/shipping/resources/cargoOnFlightBookings/client/Client.d.mts +1 -1
  107. package/dist/esm/api/resources/shipping/resources/cargoOnFlightBookings/client/Client.mjs +1 -1
  108. package/dist/esm/api/resources/shipping/resources/cargoOnFlightBookings/client/requests/CargoOnFlightBookingClientCreate1.d.mts +1 -1
  109. package/dist/esm/api/types/AirWaybillStockNumber1.d.mts +21 -0
  110. package/dist/esm/api/types/AirWaybillStockNumber1.mjs +4 -0
  111. package/dist/esm/api/types/AirWaybillStockNumberListRes.d.mts +8 -0
  112. package/dist/esm/api/types/AirWaybillStockNumberListRes.mjs +4 -0
  113. package/dist/esm/api/types/AirWaybillStockNumberSortByEnum.d.mts +9 -0
  114. package/dist/esm/api/types/AirWaybillStockNumberSortByEnum.mjs +8 -0
  115. package/dist/esm/api/types/AirWaybillStockNumberStatusEnum1.d.mts +10 -0
  116. package/dist/esm/api/types/AirWaybillStockNumberStatusEnum1.mjs +9 -0
  117. package/dist/esm/api/types/AirWaybillStockNumbersAddRes.d.mts +8 -0
  118. package/dist/esm/api/types/AirWaybillStockNumbersAddRes.mjs +4 -0
  119. package/dist/esm/api/types/AirWaybillStockNumbersSummaryRes.d.mts +10 -0
  120. package/dist/esm/api/types/AirWaybillStockNumbersSummaryRes.mjs +4 -0
  121. package/dist/esm/api/{resources/cargoOnFlightIntegrations/resources/cargoai/client/requests → types}/CargoOnFlightBookingSearchClientCreate1.d.mts +0 -10
  122. package/dist/esm/api/types/CargoOnFlightBookingSearchClientCreate1.mjs +4 -0
  123. package/dist/esm/api/types/CargoOnFlightIntegrationEnum1.d.mts +2 -1
  124. package/dist/esm/api/types/CargoOnFlightIntegrationEnum1.mjs +1 -0
  125. package/dist/esm/api/types/index.d.mts +7 -0
  126. package/dist/esm/api/types/index.mjs +7 -0
  127. package/dist/esm/version.d.mts +1 -1
  128. package/dist/esm/version.mjs +1 -1
  129. package/package.json +1 -1
  130. package/reference.md +679 -2
  131. /package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/{cargoai/client/requests/CargoOnFlightBookingSearchClientCreate1.js → airCanada/client/requests/CargoOnFlightIntegrationsAirCanadaBookReq.js} +0 -0
  132. /package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/{cargoai/client/requests/CargoOnFlightBookingSearchClientCreate1.mjs → airCanada/client/requests/CargoOnFlightIntegrationsAirCanadaBookReq.mjs} +0 -0
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ export { type AirWaybillStockNumbersAddReq } from "./AirWaybillStockNumbersAddReq.js";
2
+ export { type AirWaybillStockNumbersListV1Request } from "./AirWaybillStockNumbersListV1Request.js";
3
+ export { type AirWaybillStockNumbersMarkAvailableReq } from "./AirWaybillStockNumbersMarkAvailableReq.js";
4
+ export { type AirWaybillStockNumbersMarkUsedReq } from "./AirWaybillStockNumbersMarkUsedReq.js";
5
+ export { type AirWaybillStockNumbersVoidReq } from "./AirWaybillStockNumbersVoidReq.js";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export * from "./client/index.js";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./client/index.js"), exports);
@@ -1,6 +1,7 @@
1
1
  export * as connections from "./connections/index.js";
2
2
  export * from "./connections/types/index.js";
3
3
  export * as accounts from "./accounts/index.js";
4
+ export * as airWaybillStockNumbers from "./airWaybillStockNumbers/index.js";
4
5
  export * as complianceDocuments from "./complianceDocuments/index.js";
5
6
  export * as contacts from "./contacts/index.js";
6
7
  export * as iataCassOffices from "./iataCassOffices/index.js";
@@ -8,6 +9,7 @@ export * as offChrtOrgData from "./offChrtOrgData/index.js";
8
9
  export * as privateData from "./privateData/index.js";
9
10
  export * as publicData from "./publicData/index.js";
10
11
  export * from "./accounts/client/requests/index.js";
12
+ export * from "./airWaybillStockNumbers/client/requests/index.js";
11
13
  export * from "./complianceDocuments/client/requests/index.js";
12
14
  export * from "./connections/client/requests/index.js";
13
15
  export * from "./contacts/client/requests/index.js";
@@ -36,10 +36,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.publicData = exports.privateData = exports.offChrtOrgData = exports.iataCassOffices = exports.contacts = exports.complianceDocuments = exports.accounts = exports.connections = void 0;
39
+ exports.publicData = exports.privateData = exports.offChrtOrgData = exports.iataCassOffices = exports.contacts = exports.complianceDocuments = exports.airWaybillStockNumbers = exports.accounts = exports.connections = void 0;
40
40
  exports.connections = __importStar(require("./connections/index.js"));
41
41
  __exportStar(require("./connections/types/index.js"), exports);
42
42
  exports.accounts = __importStar(require("./accounts/index.js"));
43
+ exports.airWaybillStockNumbers = __importStar(require("./airWaybillStockNumbers/index.js"));
43
44
  exports.complianceDocuments = __importStar(require("./complianceDocuments/index.js"));
44
45
  exports.contacts = __importStar(require("./contacts/index.js"));
45
46
  exports.iataCassOffices = __importStar(require("./iataCassOffices/index.js"));
@@ -47,6 +48,7 @@ exports.offChrtOrgData = __importStar(require("./offChrtOrgData/index.js"));
47
48
  exports.privateData = __importStar(require("./privateData/index.js"));
48
49
  exports.publicData = __importStar(require("./publicData/index.js"));
49
50
  __exportStar(require("./accounts/client/requests/index.js"), exports);
51
+ __exportStar(require("./airWaybillStockNumbers/client/requests/index.js"), exports);
50
52
  __exportStar(require("./complianceDocuments/client/requests/index.js"), exports);
51
53
  __exportStar(require("./connections/client/requests/index.js"), exports);
52
54
  __exportStar(require("./contacts/client/requests/index.js"), exports);
@@ -61,7 +61,7 @@ export declare class CargoOnFlightBookings {
61
61
  * width_inches: 1.1
62
62
  * }],
63
63
  * cargo_ids: ["cargo_ids"],
64
- * cargo_on_flight_integration: "cargoai",
64
+ * cargo_on_flight_integration: "air_canada",
65
65
  * schema_version: 1,
66
66
  * task_group_id: "task_group_id"
67
67
  * })
@@ -132,7 +132,7 @@ class CargoOnFlightBookings {
132
132
  * width_inches: 1.1
133
133
  * }],
134
134
  * cargo_ids: ["cargo_ids"],
135
- * cargo_on_flight_integration: "cargoai",
135
+ * cargo_on_flight_integration: "air_canada",
136
136
  * schema_version: 1,
137
137
  * task_group_id: "task_group_id"
138
138
  * })
@@ -13,7 +13,7 @@ import * as Chrt from "../../../../../../index.js";
13
13
  * width_inches: 1.1
14
14
  * }],
15
15
  * cargo_ids: ["cargo_ids"],
16
- * cargo_on_flight_integration: "cargoai",
16
+ * cargo_on_flight_integration: "air_canada",
17
17
  * schema_version: 1,
18
18
  * task_group_id: "task_group_id"
19
19
  * }
@@ -0,0 +1,21 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.js";
5
+ export interface AirWaybillStockNumber1 {
6
+ _id: string;
7
+ /** IATA Air Waybill number: 3-digit airline prefix + 8-digit serial, e.g. '020-12345678'. */
8
+ awb_number: string;
9
+ cargo_on_flight_booking_id?: string | null;
10
+ created_at_timestamp: string;
11
+ /** Must be a string starting with `user_` */
12
+ created_by_user_id: string;
13
+ /** Must be a string starting with `org_` */
14
+ owned_by_org_id: string;
15
+ schema_version: number;
16
+ status: Chrt.AirWaybillStockNumberStatusEnum1;
17
+ status_changed_at_timestamp: string;
18
+ /** Must be a string starting with `user_` */
19
+ status_changed_by_user_id?: string | null;
20
+ status_note?: string | null;
21
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.js";
5
+ export interface AirWaybillStockNumberListRes {
6
+ items: Chrt.AirWaybillStockNumber1[];
7
+ total_count: number;
8
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type AirWaybillStockNumberSortByEnum = "awb_number" | "status_changed_at_timestamp" | "created_at_timestamp";
5
+ export declare const AirWaybillStockNumberSortByEnum: {
6
+ readonly AwbNumber: "awb_number";
7
+ readonly StatusChangedAtTimestamp: "status_changed_at_timestamp";
8
+ readonly CreatedAtTimestamp: "created_at_timestamp";
9
+ };
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.AirWaybillStockNumberSortByEnum = void 0;
7
+ exports.AirWaybillStockNumberSortByEnum = {
8
+ AwbNumber: "awb_number",
9
+ StatusChangedAtTimestamp: "status_changed_at_timestamp",
10
+ CreatedAtTimestamp: "created_at_timestamp",
11
+ };
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type AirWaybillStockNumberStatusEnum1 = "available" | "reserved" | "used" | "void";
5
+ export declare const AirWaybillStockNumberStatusEnum1: {
6
+ readonly Available: "available";
7
+ readonly Reserved: "reserved";
8
+ readonly Used: "used";
9
+ readonly Void: "void";
10
+ };
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.AirWaybillStockNumberStatusEnum1 = void 0;
7
+ exports.AirWaybillStockNumberStatusEnum1 = {
8
+ Available: "available",
9
+ Reserved: "reserved",
10
+ Used: "used",
11
+ Void: "void",
12
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.js";
5
+ export interface AirWaybillStockNumbersAddRes {
6
+ added: Chrt.AirWaybillStockNumber1[];
7
+ already_in_stock_awb_numbers: string[];
8
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface AirWaybillStockNumbersSummaryRes {
5
+ available_count: number;
6
+ awb_prefix: string;
7
+ reserved_count: number;
8
+ used_count: number;
9
+ void_count: number;
10
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,16 +1,6 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- /**
5
- * @example
6
- * {
7
- * destination_iata: "destination_iata",
8
- * earliest_departure_date: "earliest_departure_date",
9
- * iata_cass_office_id: "iata_cass_office_id",
10
- * origin_iata: "origin_iata",
11
- * schema_version: 1
12
- * }
13
- */
14
4
  export interface CargoOnFlightBookingSearchClientCreate1 {
15
5
  destination_iata: string;
16
6
  earliest_departure_date: string;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,8 +1,9 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type CargoOnFlightIntegrationEnum1 = "cargoai" | "manual";
4
+ export type CargoOnFlightIntegrationEnum1 = "air_canada" | "cargoai" | "manual";
5
5
  export declare const CargoOnFlightIntegrationEnum1: {
6
+ readonly AirCanada: "air_canada";
6
7
  readonly Cargoai: "cargoai";
7
8
  readonly Manual: "manual";
8
9
  };
@@ -5,6 +5,7 @@
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.CargoOnFlightIntegrationEnum1 = void 0;
7
7
  exports.CargoOnFlightIntegrationEnum1 = {
8
+ AirCanada: "air_canada",
8
9
  Cargoai: "cargoai",
9
10
  Manual: "manual",
10
11
  };
@@ -11,6 +11,12 @@ export * from "./AdHocInvoiceLineItem1.js";
11
11
  export * from "./AdHocInvoiceLineItemsReq.js";
12
12
  export * from "./AdditionalMileageRate1.js";
13
13
  export * from "./AfterHoursRate1.js";
14
+ export * from "./AirWaybillStockNumber1.js";
15
+ export * from "./AirWaybillStockNumberListRes.js";
16
+ export * from "./AirWaybillStockNumberSortByEnum.js";
17
+ export * from "./AirWaybillStockNumberStatusEnum1.js";
18
+ export * from "./AirWaybillStockNumbersAddRes.js";
19
+ export * from "./AirWaybillStockNumbersSummaryRes.js";
14
20
  export * from "./AlertCallback.js";
15
21
  export * from "./AlertEvent.js";
16
22
  export * from "./AlertMessage.js";
@@ -132,6 +138,7 @@ export * from "./CargoOnFlightBookingListRes.js";
132
138
  export * from "./CargoOnFlightBookingRate1.js";
133
139
  export * from "./CargoOnFlightBookingRateCharge1.js";
134
140
  export * from "./CargoOnFlightBookingSearch1.js";
141
+ export * from "./CargoOnFlightBookingSearchClientCreate1.js";
135
142
  export * from "./CargoOnFlightBookingSearchListRes.js";
136
143
  export * from "./CargoOnFlightBookingSearchResult1.js";
137
144
  export * from "./CargoOnFlightBookingSearchResultSortByEnum.js";
@@ -27,6 +27,12 @@ __exportStar(require("./AdHocInvoiceLineItem1.js"), exports);
27
27
  __exportStar(require("./AdHocInvoiceLineItemsReq.js"), exports);
28
28
  __exportStar(require("./AdditionalMileageRate1.js"), exports);
29
29
  __exportStar(require("./AfterHoursRate1.js"), exports);
30
+ __exportStar(require("./AirWaybillStockNumber1.js"), exports);
31
+ __exportStar(require("./AirWaybillStockNumberListRes.js"), exports);
32
+ __exportStar(require("./AirWaybillStockNumberSortByEnum.js"), exports);
33
+ __exportStar(require("./AirWaybillStockNumberStatusEnum1.js"), exports);
34
+ __exportStar(require("./AirWaybillStockNumbersAddRes.js"), exports);
35
+ __exportStar(require("./AirWaybillStockNumbersSummaryRes.js"), exports);
30
36
  __exportStar(require("./AlertCallback.js"), exports);
31
37
  __exportStar(require("./AlertEvent.js"), exports);
32
38
  __exportStar(require("./AlertMessage.js"), exports);
@@ -148,6 +154,7 @@ __exportStar(require("./CargoOnFlightBookingListRes.js"), exports);
148
154
  __exportStar(require("./CargoOnFlightBookingRate1.js"), exports);
149
155
  __exportStar(require("./CargoOnFlightBookingRateCharge1.js"), exports);
150
156
  __exportStar(require("./CargoOnFlightBookingSearch1.js"), exports);
157
+ __exportStar(require("./CargoOnFlightBookingSearchClientCreate1.js"), exports);
151
158
  __exportStar(require("./CargoOnFlightBookingSearchListRes.js"), exports);
152
159
  __exportStar(require("./CargoOnFlightBookingSearchResult1.js"), exports);
153
160
  __exportStar(require("./CargoOnFlightBookingSearchResultSortByEnum.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.1035.0";
1
+ export declare const SDK_VERSION = "1.1037.0";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "1.1035.0";
4
+ exports.SDK_VERSION = "1.1037.0";
@@ -26,8 +26,8 @@ export class ChrtClient {
26
26
  this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
27
27
  "X-Fern-Language": "JavaScript",
28
28
  "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
29
- "X-Fern-SDK-Version": "1.1035.0",
30
- "User-Agent": "@chrt-inc/typescript-sdk/1.1035.0",
29
+ "X-Fern-SDK-Version": "1.1037.0",
30
+ "User-Agent": "@chrt-inc/typescript-sdk/1.1037.0",
31
31
  "X-Fern-Runtime": core.RUNTIME.type,
32
32
  "X-Fern-Runtime-Version": core.RUNTIME.version,
33
33
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -3,6 +3,7 @@
3
3
  */
4
4
  import * as environments from "../../../../environments.mjs";
5
5
  import * as core from "../../../../core/index.mjs";
6
+ import { AirCanada } from "../resources/airCanada/client/Client.mjs";
6
7
  import { Cargoai } from "../resources/cargoai/client/Client.mjs";
7
8
  export declare namespace CargoOnFlightIntegrations {
8
9
  interface Options {
@@ -17,7 +18,9 @@ export declare namespace CargoOnFlightIntegrations {
17
18
  }
18
19
  export declare class CargoOnFlightIntegrations {
19
20
  protected readonly _options: CargoOnFlightIntegrations.Options;
21
+ protected _airCanada: AirCanada | undefined;
20
22
  protected _cargoai: Cargoai | undefined;
21
23
  constructor(_options?: CargoOnFlightIntegrations.Options);
24
+ get airCanada(): AirCanada;
22
25
  get cargoai(): Cargoai;
23
26
  }
@@ -1,11 +1,16 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import { AirCanada } from "../resources/airCanada/client/Client.mjs";
4
5
  import { Cargoai } from "../resources/cargoai/client/Client.mjs";
5
6
  export class CargoOnFlightIntegrations {
6
7
  constructor(_options = {}) {
7
8
  this._options = _options;
8
9
  }
10
+ get airCanada() {
11
+ var _a;
12
+ return ((_a = this._airCanada) !== null && _a !== void 0 ? _a : (this._airCanada = new AirCanada(this._options)));
13
+ }
9
14
  get cargoai() {
10
15
  var _a;
11
16
  return ((_a = this._cargoai) !== null && _a !== void 0 ? _a : (this._cargoai = new Cargoai(this._options)));
@@ -0,0 +1,88 @@
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 AirCanada {
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 AirCanada {
31
+ protected readonly _options: AirCanada.Options;
32
+ constructor(_options?: AirCanada.Options);
33
+ /**
34
+ * Books a draft booking on Air Canada with one result and rate of one of its searches, with the user's Air Canada AWB or one Air Canada assigns. | authz_personas=[task_group_coordinator_operators] | (CargoOnFlightIntegrationsAirCanadaBookReq) -> (CargoOnFlightBooking1)
35
+ *
36
+ * @param {string} cargoOnFlightBookingId
37
+ * @param {Chrt.cargoOnFlightIntegrations.CargoOnFlightIntegrationsAirCanadaBookReq} request
38
+ * @param {AirCanada.RequestOptions} requestOptions - Request-specific configuration.
39
+ *
40
+ * @throws {@link Chrt.UnprocessableEntityError}
41
+ *
42
+ * @example
43
+ * await client.cargoOnFlightIntegrations.airCanada.bookV1("cargo_on_flight_booking_id", {
44
+ * cargo_on_flight_booking_search_id: "cargo_on_flight_booking_search_id",
45
+ * integration_rate_id: "integration_rate_id",
46
+ * integration_result_id: "integration_result_id"
47
+ * })
48
+ */
49
+ bookV1(cargoOnFlightBookingId: string, request: Chrt.cargoOnFlightIntegrations.CargoOnFlightIntegrationsAirCanadaBookReq, requestOptions?: AirCanada.RequestOptions): core.HttpResponsePromise<Chrt.CargoOnFlightBooking1>;
50
+ private __bookV1;
51
+ /**
52
+ * Deletes a booking on Air Canada and cancels it: a confirmed or requested one with an AWB, Air Canada's or else the requested one. | authz_personas=[task_group_coordinator_operators] | (CargoOnFlightIntegrationsAirCanadaCancelReq) -> (CargoOnFlightBooking1)
53
+ *
54
+ * @param {string} cargoOnFlightBookingId
55
+ * @param {Chrt.cargoOnFlightIntegrations.CargoOnFlightIntegrationsAirCanadaCancelReq} request
56
+ * @param {AirCanada.RequestOptions} requestOptions - Request-specific configuration.
57
+ *
58
+ * @throws {@link Chrt.UnprocessableEntityError}
59
+ *
60
+ * @example
61
+ * await client.cargoOnFlightIntegrations.airCanada.cancelV1("cargo_on_flight_booking_id", {
62
+ * cancellation_reason: "cancellation_reason"
63
+ * })
64
+ */
65
+ cancelV1(cargoOnFlightBookingId: string, request: Chrt.cargoOnFlightIntegrations.CargoOnFlightIntegrationsAirCanadaCancelReq, requestOptions?: AirCanada.RequestOptions): core.HttpResponsePromise<Chrt.CargoOnFlightBooking1>;
66
+ private __cancelV1;
67
+ /**
68
+ * Quotes Air Canada flights with space and rates for a draft booking's cargos on a route and dates, and stores the search. | authz_personas=[task_group_coordinator_operators] | (CargoOnFlightBookingSearchClientCreate1) -> (CargoOnFlightBookingSearch1)
69
+ *
70
+ * @param {string} cargoOnFlightBookingId
71
+ * @param {Chrt.CargoOnFlightBookingSearchClientCreate1} request
72
+ * @param {AirCanada.RequestOptions} requestOptions - Request-specific configuration.
73
+ *
74
+ * @throws {@link Chrt.UnprocessableEntityError}
75
+ *
76
+ * @example
77
+ * await client.cargoOnFlightIntegrations.airCanada.searchV1("cargo_on_flight_booking_id", {
78
+ * destination_iata: "destination_iata",
79
+ * earliest_departure_date: "earliest_departure_date",
80
+ * iata_cass_office_id: "iata_cass_office_id",
81
+ * origin_iata: "origin_iata",
82
+ * schema_version: 1
83
+ * })
84
+ */
85
+ searchV1(cargoOnFlightBookingId: string, request: Chrt.CargoOnFlightBookingSearchClientCreate1, requestOptions?: AirCanada.RequestOptions): core.HttpResponsePromise<Chrt.CargoOnFlightBookingSearch1>;
86
+ private __searchV1;
87
+ protected _getAuthorizationHeader(): Promise<string | undefined>;
88
+ }