@chrt-inc/typescript-sdk 1.794.0 → 1.810.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 (177) hide show
  1. package/README.md +13 -10
  2. package/dist/cjs/Client.d.ts +3 -0
  3. package/dist/cjs/Client.js +31 -26
  4. package/dist/cjs/api/resources/flights/client/Client.d.ts +52 -0
  5. package/dist/cjs/api/resources/flights/client/Client.js +135 -0
  6. package/dist/cjs/api/resources/flights/client/index.d.ts +2 -0
  7. package/dist/cjs/api/resources/flights/client/index.js +17 -0
  8. package/dist/cjs/api/resources/flights/client/requests/FlightConnectionsSearchReq.d.ts +45 -0
  9. package/dist/cjs/api/resources/flights/client/requests/index.d.ts +1 -0
  10. package/dist/cjs/api/resources/flights/client/requests/index.js +2 -0
  11. package/dist/cjs/api/resources/flights/index.d.ts +1 -0
  12. package/dist/cjs/api/resources/flights/index.js +17 -0
  13. package/dist/cjs/api/resources/index.d.ts +2 -0
  14. package/dist/cjs/api/resources/index.js +3 -1
  15. package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/Client.d.ts +1 -1
  16. package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/Client.js +1 -1
  17. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/Client.d.ts +19 -1
  18. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/Client.js +71 -1
  19. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksBulkUpdateDeadlinesReq1.d.ts +16 -0
  20. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/index.d.ts +1 -0
  21. package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/requests/OrdersNewDraftReq.d.ts +2 -0
  22. package/dist/cjs/api/resources/tracking/resources/driver/client/Client.d.ts +0 -22
  23. package/dist/cjs/api/resources/tracking/resources/driver/client/Client.js +0 -71
  24. package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.d.ts +29 -24
  25. package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.js +54 -51
  26. package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionClientCreate1.d.ts +0 -2
  27. package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionSetFlightInfoReq1.d.ts +24 -0
  28. package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/{SessionsSyncFlightStatusV1Request.d.ts → SessionsFlightLegsV1Request.d.ts} +1 -1
  29. package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionsFlightTrackV1Request.d.ts +14 -0
  30. package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionsListV1Request.d.ts +0 -3
  31. package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/index.d.ts +3 -3
  32. package/dist/cjs/api/types/AlertCallback.d.ts +7 -0
  33. package/dist/cjs/api/types/AlertEvent.d.ts +6 -0
  34. package/dist/cjs/api/types/AlertEvent.js +5 -0
  35. package/dist/cjs/api/types/AlertMessage.d.ts +10 -0
  36. package/dist/cjs/api/types/AlertMessage.js +5 -0
  37. package/dist/cjs/api/types/AlertNameValue.d.ts +7 -0
  38. package/dist/cjs/api/types/AlertNameValue.js +5 -0
  39. package/dist/cjs/api/types/AlertNameValues.d.ts +7 -0
  40. package/dist/cjs/api/types/AlertNameValues.js +5 -0
  41. package/dist/cjs/api/types/AlertRuleEnvelope.d.ts +7 -0
  42. package/dist/cjs/api/types/AlertRuleEnvelope.js +5 -0
  43. package/dist/cjs/api/types/CiriumAirportResources.d.ts +9 -0
  44. package/dist/cjs/api/types/CiriumAirportResources.js +5 -0
  45. package/dist/cjs/api/types/CiriumDate.d.ts +6 -0
  46. package/dist/cjs/api/types/CiriumDate.js +5 -0
  47. package/dist/cjs/api/types/{FlightAwareWebhookResponse.d.ts → CiriumFlightAlertsWebhookResponse.d.ts} +1 -1
  48. package/dist/cjs/api/types/CiriumFlightAlertsWebhookResponse.js +5 -0
  49. package/dist/cjs/api/types/CiriumFlightStatus.d.ts +15 -0
  50. package/dist/cjs/api/types/CiriumFlightStatus.js +5 -0
  51. package/dist/cjs/api/types/CiriumOperationalTimes.d.ts +17 -0
  52. package/dist/cjs/api/types/CiriumOperationalTimes.js +5 -0
  53. package/dist/cjs/api/types/ConnectionSearchByEnum.d.ts +8 -0
  54. package/dist/cjs/api/types/ConnectionSearchByEnum.js +10 -0
  55. package/dist/cjs/api/types/ConnectionSearchPreferenceEnum.d.ts +8 -0
  56. package/dist/cjs/api/types/ConnectionSearchPreferenceEnum.js +10 -0
  57. package/dist/cjs/api/types/FlightConnection.d.ts +10 -0
  58. package/dist/cjs/api/types/FlightConnection.js +5 -0
  59. package/dist/cjs/api/types/FlightConnectionLeg.d.ts +22 -0
  60. package/dist/cjs/api/types/FlightConnectionLeg.js +5 -0
  61. package/dist/cjs/api/types/FlightConnectionsSearchRes.d.ts +7 -0
  62. package/dist/cjs/api/types/FlightConnectionsSearchRes.js +5 -0
  63. package/dist/cjs/api/types/FlightLeg1.d.ts +3 -2
  64. package/dist/cjs/api/types/OperationsTaskDeadlineUpdate1.d.ts +7 -0
  65. package/dist/cjs/api/types/OperationsTaskDeadlineUpdate1.js +5 -0
  66. package/dist/cjs/api/types/OperationsTaskListRemoveFromCaseRes1.d.ts +1 -1
  67. package/dist/cjs/api/types/OperationsTaskStatusEnum.d.ts +2 -1
  68. package/dist/cjs/api/types/OperationsTaskStatusEnum.js +1 -0
  69. package/dist/cjs/api/types/OperationsTasksBulkUpdateDeadlinesRes1.d.ts +7 -0
  70. package/dist/cjs/api/types/OperationsTasksBulkUpdateDeadlinesRes1.js +5 -0
  71. package/dist/cjs/api/types/OrderBuilderReq.d.ts +2 -0
  72. package/dist/cjs/api/types/Session1.d.ts +3 -6
  73. package/dist/cjs/api/types/index.d.ts +18 -4
  74. package/dist/cjs/api/types/index.js +18 -4
  75. package/dist/cjs/version.d.ts +1 -1
  76. package/dist/cjs/version.js +1 -1
  77. package/dist/esm/Client.d.mts +3 -0
  78. package/dist/esm/Client.mjs +7 -2
  79. package/dist/esm/api/resources/flights/client/Client.d.mts +52 -0
  80. package/dist/esm/api/resources/flights/client/Client.mjs +98 -0
  81. package/dist/esm/api/resources/flights/client/index.d.mts +2 -0
  82. package/dist/esm/api/resources/flights/client/index.mjs +1 -0
  83. package/dist/esm/api/resources/flights/client/requests/FlightConnectionsSearchReq.d.mts +45 -0
  84. package/dist/esm/api/resources/flights/client/requests/index.d.mts +1 -0
  85. package/dist/esm/api/resources/flights/client/requests/index.mjs +1 -0
  86. package/dist/esm/api/resources/flights/index.d.mts +1 -0
  87. package/dist/esm/api/resources/flights/index.mjs +1 -0
  88. package/dist/esm/api/resources/index.d.mts +2 -0
  89. package/dist/esm/api/resources/index.mjs +2 -0
  90. package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/Client.d.mts +1 -1
  91. package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/Client.mjs +1 -1
  92. package/dist/esm/api/resources/operations/resources/operationsTasks/client/Client.d.mts +19 -1
  93. package/dist/esm/api/resources/operations/resources/operationsTasks/client/Client.mjs +71 -1
  94. package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksBulkUpdateDeadlinesReq1.d.mts +16 -0
  95. package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/index.d.mts +1 -0
  96. package/dist/esm/api/resources/shipping/resources/orderDrafts/client/requests/OrdersNewDraftReq.d.mts +2 -0
  97. package/dist/esm/api/resources/tracking/resources/driver/client/Client.d.mts +0 -22
  98. package/dist/esm/api/resources/tracking/resources/driver/client/Client.mjs +0 -71
  99. package/dist/esm/api/resources/tracking/resources/sessions/client/Client.d.mts +29 -24
  100. package/dist/esm/api/resources/tracking/resources/sessions/client/Client.mjs +54 -51
  101. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionClientCreate1.d.mts +0 -2
  102. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionSetFlightInfoReq1.d.mts +24 -0
  103. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/{SessionsSyncFlightStatusV1Request.d.mts → SessionsFlightLegsV1Request.d.mts} +1 -1
  104. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionsFlightTrackV1Request.d.mts +14 -0
  105. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionsListV1Request.d.mts +0 -3
  106. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/index.d.mts +3 -3
  107. package/dist/esm/api/types/AlertCallback.d.mts +7 -0
  108. package/dist/esm/api/types/AlertEvent.d.mts +6 -0
  109. package/dist/esm/api/types/AlertEvent.mjs +4 -0
  110. package/dist/esm/api/types/AlertMessage.d.mts +10 -0
  111. package/dist/esm/api/types/AlertMessage.mjs +4 -0
  112. package/dist/esm/api/types/AlertNameValue.d.mts +7 -0
  113. package/dist/esm/api/types/AlertNameValue.mjs +4 -0
  114. package/dist/esm/api/types/AlertNameValues.d.mts +7 -0
  115. package/dist/esm/api/types/AlertNameValues.mjs +4 -0
  116. package/dist/esm/api/types/AlertRuleEnvelope.d.mts +7 -0
  117. package/dist/esm/api/types/AlertRuleEnvelope.mjs +4 -0
  118. package/dist/esm/api/types/CiriumAirportResources.d.mts +9 -0
  119. package/dist/esm/api/types/CiriumAirportResources.mjs +4 -0
  120. package/dist/esm/api/types/CiriumDate.d.mts +6 -0
  121. package/dist/esm/api/types/CiriumDate.mjs +4 -0
  122. package/dist/esm/api/types/{FlightAwareWebhookResponse.d.mts → CiriumFlightAlertsWebhookResponse.d.mts} +1 -1
  123. package/dist/esm/api/types/CiriumFlightAlertsWebhookResponse.mjs +4 -0
  124. package/dist/esm/api/types/CiriumFlightStatus.d.mts +15 -0
  125. package/dist/esm/api/types/CiriumFlightStatus.mjs +4 -0
  126. package/dist/esm/api/types/CiriumOperationalTimes.d.mts +17 -0
  127. package/dist/esm/api/types/CiriumOperationalTimes.mjs +4 -0
  128. package/dist/esm/api/types/ConnectionSearchByEnum.d.mts +8 -0
  129. package/dist/esm/api/types/ConnectionSearchByEnum.mjs +7 -0
  130. package/dist/esm/api/types/ConnectionSearchPreferenceEnum.d.mts +8 -0
  131. package/dist/esm/api/types/ConnectionSearchPreferenceEnum.mjs +7 -0
  132. package/dist/esm/api/types/FlightConnection.d.mts +10 -0
  133. package/dist/esm/api/types/FlightConnection.mjs +4 -0
  134. package/dist/esm/api/types/FlightConnectionLeg.d.mts +22 -0
  135. package/dist/esm/api/types/FlightConnectionLeg.mjs +4 -0
  136. package/dist/esm/api/types/FlightConnectionsSearchRes.d.mts +7 -0
  137. package/dist/esm/api/types/FlightConnectionsSearchRes.mjs +4 -0
  138. package/dist/esm/api/types/FlightLeg1.d.mts +3 -2
  139. package/dist/esm/api/types/OperationsTaskDeadlineUpdate1.d.mts +7 -0
  140. package/dist/esm/api/types/OperationsTaskDeadlineUpdate1.mjs +4 -0
  141. package/dist/esm/api/types/OperationsTaskListRemoveFromCaseRes1.d.mts +1 -1
  142. package/dist/esm/api/types/OperationsTaskStatusEnum.d.mts +2 -1
  143. package/dist/esm/api/types/OperationsTaskStatusEnum.mjs +1 -0
  144. package/dist/esm/api/types/OperationsTasksBulkUpdateDeadlinesRes1.d.mts +7 -0
  145. package/dist/esm/api/types/OperationsTasksBulkUpdateDeadlinesRes1.mjs +4 -0
  146. package/dist/esm/api/types/OrderBuilderReq.d.mts +2 -0
  147. package/dist/esm/api/types/Session1.d.mts +3 -6
  148. package/dist/esm/api/types/index.d.mts +18 -4
  149. package/dist/esm/api/types/index.mjs +18 -4
  150. package/dist/esm/version.d.mts +1 -1
  151. package/dist/esm/version.mjs +1 -1
  152. package/package.json +1 -1
  153. package/reference.md +168 -95
  154. package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionAddFlightReq1.d.ts +0 -16
  155. package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionRemoveFlightReq1.d.ts +0 -16
  156. package/dist/cjs/api/types/FlightAwareAlertFlight.d.ts +0 -16
  157. package/dist/cjs/api/types/FlightAwareAlertPayload.d.ts +0 -17
  158. package/dist/cjs/api/types/FlightStatusEnum.d.ts +0 -14
  159. package/dist/cjs/api/types/FlightStatusEnum.js +0 -16
  160. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionAddFlightReq1.d.mts +0 -16
  161. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionRemoveFlightReq1.d.mts +0 -16
  162. package/dist/esm/api/types/FlightAwareAlertFlight.d.mts +0 -16
  163. package/dist/esm/api/types/FlightAwareAlertPayload.d.mts +0 -17
  164. package/dist/esm/api/types/FlightStatusEnum.d.mts +0 -14
  165. package/dist/esm/api/types/FlightStatusEnum.mjs +0 -13
  166. /package/dist/cjs/api/resources/{tracking/resources/sessions/client/requests/SessionAddFlightReq1.js → flights/client/requests/FlightConnectionsSearchReq.js} +0 -0
  167. /package/dist/cjs/api/resources/{tracking/resources/sessions/client/requests/SessionRemoveFlightReq1.js → operations/resources/operationsTasks/client/requests/OperationsTasksBulkUpdateDeadlinesReq1.js} +0 -0
  168. /package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/{SessionsSyncFlightStatusV1Request.js → SessionSetFlightInfoReq1.js} +0 -0
  169. /package/dist/cjs/api/{types/FlightAwareAlertFlight.js → resources/tracking/resources/sessions/client/requests/SessionsFlightLegsV1Request.js} +0 -0
  170. /package/dist/cjs/api/{types/FlightAwareAlertPayload.js → resources/tracking/resources/sessions/client/requests/SessionsFlightTrackV1Request.js} +0 -0
  171. /package/dist/cjs/api/types/{FlightAwareWebhookResponse.js → AlertCallback.js} +0 -0
  172. /package/dist/esm/api/resources/{tracking/resources/sessions/client/requests/SessionAddFlightReq1.mjs → flights/client/requests/FlightConnectionsSearchReq.mjs} +0 -0
  173. /package/dist/esm/api/resources/{tracking/resources/sessions/client/requests/SessionRemoveFlightReq1.mjs → operations/resources/operationsTasks/client/requests/OperationsTasksBulkUpdateDeadlinesReq1.mjs} +0 -0
  174. /package/dist/esm/api/resources/tracking/resources/sessions/client/requests/{SessionsSyncFlightStatusV1Request.mjs → SessionSetFlightInfoReq1.mjs} +0 -0
  175. /package/dist/esm/api/{types/FlightAwareAlertFlight.mjs → resources/tracking/resources/sessions/client/requests/SessionsFlightLegsV1Request.mjs} +0 -0
  176. /package/dist/esm/api/{types/FlightAwareAlertPayload.mjs → resources/tracking/resources/sessions/client/requests/SessionsFlightTrackV1Request.mjs} +0 -0
  177. /package/dist/esm/api/types/{FlightAwareWebhookResponse.mjs → AlertCallback.mjs} +0 -0
@@ -16,7 +16,6 @@ import * as Chrt from "../../../../../../index.js";
16
16
  * filter_device_id: "filter_device_id",
17
17
  * filter_off_chrt_reference_id: "filter_off_chrt_reference_id",
18
18
  * filter_flight_number: "filter_flight_number",
19
- * filter_fa_flight_id: "filter_fa_flight_id",
20
19
  * filter_flight_loaded_status: "filter_flight_loaded_status",
21
20
  * filter_has_last_seen: true,
22
21
  * filter_created_at_timestamp_gte: "2024-01-15T09:30:00Z",
@@ -50,8 +49,6 @@ export interface SessionsListV1Request {
50
49
  filter_off_chrt_reference_id?: string | null;
51
50
  /** Filter by flight number (exact match) */
52
51
  filter_flight_number?: string | null;
53
- /** Filter by FlightAware flight ID (exact match) */
54
- filter_fa_flight_id?: string | null;
55
52
  /** Filter by flight loaded status (exact match) */
56
53
  filter_flight_loaded_status?: string | null;
57
54
  /** Filter by whether both last_seen_at_location and last_seen_at_timestamp are set */
@@ -5,6 +5,6 @@ export { type SessionClientCreate1 } from "./SessionClientCreate1.js";
5
5
  export { type SessionClientUpdate1 } from "./SessionClientUpdate1.js";
6
6
  export { type SessionsUpdateSharedOrgsReq1 } from "./SessionsUpdateSharedOrgsReq1.js";
7
7
  export { type SessionsTerminateV1Request } from "./SessionsTerminateV1Request.js";
8
- export { type SessionAddFlightReq1 } from "./SessionAddFlightReq1.js";
9
- export { type SessionRemoveFlightReq1 } from "./SessionRemoveFlightReq1.js";
10
- export { type SessionsSyncFlightStatusV1Request } from "./SessionsSyncFlightStatusV1Request.js";
8
+ export { type SessionsFlightLegsV1Request } from "./SessionsFlightLegsV1Request.js";
9
+ export { type SessionsFlightTrackV1Request } from "./SessionsFlightTrackV1Request.js";
10
+ export { type SessionSetFlightInfoReq1 } from "./SessionSetFlightInfoReq1.js";
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.js";
5
+ export interface AlertCallback {
6
+ alert?: Chrt.AlertMessage | null;
7
+ }
@@ -0,0 +1,6 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface AlertEvent {
5
+ type?: string | null;
6
+ }
@@ -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
+ import * as Chrt from "../index.js";
5
+ export interface AlertMessage {
6
+ rule?: Chrt.AlertRuleEnvelope;
7
+ event?: Chrt.AlertEvent;
8
+ dateTimeRecorded?: string | null;
9
+ flightStatus?: Chrt.CiriumFlightStatus | null;
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 });
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface AlertNameValue {
5
+ name?: string | null;
6
+ value?: string | null;
7
+ }
@@ -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,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.js";
5
+ export interface AlertNameValues {
6
+ nameValue?: Chrt.AlertNameValue[];
7
+ }
@@ -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,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.js";
5
+ export interface AlertRuleEnvelope {
6
+ nameValues?: Chrt.AlertNameValues;
7
+ }
@@ -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 interface CiriumAirportResources {
5
+ departureTerminal?: string | null;
6
+ departureGate?: string | null;
7
+ arrivalTerminal?: string | null;
8
+ arrivalGate?: string | null;
9
+ }
@@ -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,6 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface CiriumDate {
5
+ dateUtc?: string | null;
6
+ }
@@ -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,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export interface FlightAwareWebhookResponse {
4
+ export interface CiriumFlightAlertsWebhookResponse {
5
5
  success: boolean;
6
6
  message: string;
7
7
  }
@@ -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,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.js";
5
+ export interface CiriumFlightStatus {
6
+ flightId?: number | null;
7
+ status?: string | null;
8
+ carrierFsCode?: string | null;
9
+ flightNumber?: string | null;
10
+ departureAirportFsCode?: string | null;
11
+ arrivalAirportFsCode?: string | null;
12
+ departureDate?: Chrt.CiriumDate | null;
13
+ operationalTimes?: Chrt.CiriumOperationalTimes;
14
+ airportResources?: Chrt.CiriumAirportResources;
15
+ }
@@ -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,17 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.js";
5
+ /**
6
+ * OOOI-equivalent times. Gate = out/in, runway = off/on.
7
+ */
8
+ export interface CiriumOperationalTimes {
9
+ estimatedGateDeparture?: Chrt.CiriumDate | null;
10
+ actualGateDeparture?: Chrt.CiriumDate | null;
11
+ estimatedRunwayDeparture?: Chrt.CiriumDate | null;
12
+ actualRunwayDeparture?: Chrt.CiriumDate | null;
13
+ estimatedGateArrival?: Chrt.CiriumDate | null;
14
+ actualGateArrival?: Chrt.CiriumDate | null;
15
+ estimatedRunwayArrival?: Chrt.CiriumDate | null;
16
+ actualRunwayArrival?: Chrt.CiriumDate | null;
17
+ }
@@ -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
+ export type ConnectionSearchByEnum = "departure_time" | "arrival_time";
5
+ export declare const ConnectionSearchByEnum: {
6
+ readonly DepartureTime: "departure_time";
7
+ readonly ArrivalTime: "arrival_time";
8
+ };
@@ -0,0 +1,10 @@
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.ConnectionSearchByEnum = void 0;
7
+ exports.ConnectionSearchByEnum = {
8
+ DepartureTime: "departure_time",
9
+ ArrivalTime: "arrival_time",
10
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type ConnectionSearchPreferenceEnum = "earliest" | "latest";
5
+ export declare const ConnectionSearchPreferenceEnum: {
6
+ readonly Earliest: "earliest";
7
+ readonly Latest: "latest";
8
+ };
@@ -0,0 +1,10 @@
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.ConnectionSearchPreferenceEnum = void 0;
7
+ exports.ConnectionSearchPreferenceEnum = {
8
+ Earliest: "earliest",
9
+ Latest: "latest",
10
+ };
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.js";
5
+ export interface FlightConnection {
6
+ elapsed_minutes?: number | null;
7
+ score?: number | null;
8
+ stops: number;
9
+ legs: Chrt.FlightConnectionLeg[];
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 });
@@ -0,0 +1,22 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface FlightConnectionLeg {
5
+ carrier_iata?: string | null;
6
+ carrier_name?: string | null;
7
+ flight_number?: string | null;
8
+ origin_iata?: string | null;
9
+ origin_name?: string | null;
10
+ origin_time_zone?: string | null;
11
+ origin_latitude?: number | null;
12
+ origin_longitude?: number | null;
13
+ destination_iata?: string | null;
14
+ destination_name?: string | null;
15
+ destination_time_zone?: string | null;
16
+ destination_latitude?: number | null;
17
+ destination_longitude?: number | null;
18
+ departure_time_utc?: string | null;
19
+ arrival_time_utc?: string | null;
20
+ equipment_name?: string | null;
21
+ is_codeshare?: boolean | null;
22
+ }
@@ -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,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.js";
5
+ export interface FlightConnectionsSearchRes {
6
+ connections?: Chrt.FlightConnection[];
7
+ }
@@ -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 });
@@ -5,8 +5,9 @@ import * as Chrt from "../index.js";
5
5
  export interface FlightLeg1 {
6
6
  schema_version: number;
7
7
  _id: string;
8
- order_id: string;
9
- task_group_id: string;
8
+ order_id?: string | null;
9
+ task_group_id?: string | null;
10
+ session_id?: string | null;
10
11
  flight_number: string;
11
12
  provenance: Chrt.FlightLegProvenanceEnum1;
12
13
  origin_iata: string;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface OperationsTaskDeadlineUpdate1 {
5
+ task_id: string;
6
+ deadline_timestamp: string;
7
+ }
@@ -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 });
@@ -5,7 +5,7 @@
5
5
  * Result of removing a Task List from a Case.
6
6
  *
7
7
  * Only untouched (`not_started`) tasks are deleted; tasks an operator has
8
- * started, completed, or skipped are preserved and reported as `kept_count`.
8
+ * started, completed, skipped, or cancelled are preserved and reported as `kept_count`.
9
9
  */
10
10
  export interface OperationsTaskListRemoveFromCaseRes1 {
11
11
  deleted_count: number;
@@ -8,10 +8,11 @@
8
8
  * structurally parallel to the Check status model in anticipation of the
9
9
  * eventual Task <-> Check merge.
10
10
  */
11
- export type OperationsTaskStatusEnum = "not_started" | "in_progress" | "completed" | "skipped";
11
+ export type OperationsTaskStatusEnum = "not_started" | "in_progress" | "completed" | "skipped" | "cancelled";
12
12
  export declare const OperationsTaskStatusEnum: {
13
13
  readonly NotStarted: "not_started";
14
14
  readonly InProgress: "in_progress";
15
15
  readonly Completed: "completed";
16
16
  readonly Skipped: "skipped";
17
+ readonly Cancelled: "cancelled";
17
18
  };
@@ -9,4 +9,5 @@ exports.OperationsTaskStatusEnum = {
9
9
  InProgress: "in_progress",
10
10
  Completed: "completed",
11
11
  Skipped: "skipped",
12
+ Cancelled: "cancelled",
12
13
  };
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface OperationsTasksBulkUpdateDeadlinesRes1 {
5
+ /** How many of the requested tasks were found in the caller's org and had their deadline set; a value below the number of requested updates means some ids were silently skipped (missing or cross-org). */
6
+ updated_count: number;
7
+ }
@@ -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 });
@@ -5,4 +5,6 @@ import * as Chrt from "../index.js";
5
5
  export interface OrderBuilderReq {
6
6
  order_template_core?: Chrt.OrderTemplateCore1 | null;
7
7
  order_template_id?: string | null;
8
+ /** Per-build pin for the first applied OperationsTask's deadline (later from_previous_task entries cascade from it). Kept off the template so saved templates don't carry a stale absolute time; None anchors the chain to the build time. */
9
+ initial_deadline_timestamp?: string | null;
8
10
  }
@@ -10,8 +10,6 @@ export interface Session1 {
10
10
  public?: boolean;
11
11
  off_chrt_shipper_org_id?: string | null;
12
12
  termination_scheduled_for_timestamp?: string | null;
13
- flight_numbers?: string[];
14
- fa_flight_ids?: string[];
15
13
  device_id: string;
16
14
  device_mac_address: string;
17
15
  /** Must be a string starting with `org_` */
@@ -27,10 +25,9 @@ export interface Session1 {
27
25
  destination_geofence_location?: Chrt.LocationFeature | null;
28
26
  destination_geofence_radius_miles?: number;
29
27
  destination_geofence_entered?: boolean;
30
- fa_alert_ids?: number[];
28
+ flight_leg_ids?: string[];
29
+ flight_numbers?: string[];
31
30
  flight_loaded_statuses?: string[];
32
- fa_alert_id_by_flight_number?: Record<string, number>;
33
- flight_status_by_fa_flight_id?: Record<string, Chrt.FlightStatusEnum>;
34
- flight_loaded_status_by_fa_flight_id?: Record<string, (string | null) | undefined>;
31
+ flight_loaded_status_by_flight_leg_id?: Record<string, (string | null) | undefined>;
35
32
  _id: string;
36
33
  }
@@ -1,4 +1,10 @@
1
1
  export * from "./AiImageDescription.js";
2
+ export * from "./AlertCallback.js";
3
+ export * from "./AlertEvent.js";
4
+ export * from "./AlertMessage.js";
5
+ export * from "./AlertNameValue.js";
6
+ export * from "./AlertNameValues.js";
7
+ export * from "./AlertRuleEnvelope.js";
2
8
  export * from "./AnalyticsTimeBucketRes.js";
3
9
  export * from "./AttachBillingLedgerPeriodReq.js";
4
10
  export * from "./AttachLigToVectorClientReq.js";
@@ -111,6 +117,13 @@ export * from "./ChampQuantity.js";
111
117
  export * from "./ChrtGroundProviderRateSheet1.js";
112
118
  export * from "./ChrtGroundProviderRateSheetListRes.js";
113
119
  export * from "./ChrtGroundProviderTaskActionEnum1.js";
120
+ export * from "./CiriumAirportResources.js";
121
+ export * from "./CiriumDate.js";
122
+ export * from "./CiriumFlightAlertsWebhookResponse.js";
123
+ export * from "./CiriumFlightStatus.js";
124
+ export * from "./CiriumOperationalTimes.js";
125
+ export * from "./ConnectionSearchByEnum.js";
126
+ export * from "./ConnectionSearchPreferenceEnum.js";
114
127
  export * from "./CreateCheckoutSessionRes.js";
115
128
  export * from "./CreateConnectionReq.js";
116
129
  export * from "./CreateCustomerPortalSessionRes.js";
@@ -148,9 +161,9 @@ export * from "./DriverUpdateAvailabilityReq.js";
148
161
  export * from "./DriverUpdateRes.js";
149
162
  export * from "./DriverWithActiveTaskGroupIds1.js";
150
163
  export * from "./FirebaseCloudMessagingTokenData1.js";
151
- export * from "./FlightAwareAlertFlight.js";
152
- export * from "./FlightAwareAlertPayload.js";
153
- export * from "./FlightAwareWebhookResponse.js";
164
+ export * from "./FlightConnection.js";
165
+ export * from "./FlightConnectionLeg.js";
166
+ export * from "./FlightConnectionsSearchRes.js";
154
167
  export * from "./FlightInfoForTaskRes.js";
155
168
  export * from "./FlightLeg1.js";
156
169
  export * from "./FlightLegClientCreate1.js";
@@ -158,7 +171,6 @@ export * from "./FlightLegProvenanceEnum1.js";
158
171
  export * from "./FlightLegStatusEnum1.js";
159
172
  export * from "./FlightLegStatusSourceEnum1.js";
160
173
  export * from "./FlightLegWebhookInfo.js";
161
- export * from "./FlightStatusEnum.js";
162
174
  export * from "./FlightTrackPosition1.js";
163
175
  export * from "./FlightTrackRes.js";
164
176
  export * from "./FlightTrackWaypoint1.js";
@@ -228,6 +240,7 @@ export * from "./OperationsCaseOperatorAssignedWebhookPayload.js";
228
240
  export * from "./OperationsCaseS3ObjectAddedWebhookPayload.js";
229
241
  export * from "./OperationsTask1.js";
230
242
  export * from "./OperationsTaskComment1.js";
243
+ export * from "./OperationsTaskDeadlineUpdate1.js";
231
244
  export * from "./OperationsTaskList1.js";
232
245
  export * from "./OperationsTaskListEntry1.js";
233
246
  export * from "./OperationsTaskListEntryClientCreate1.js";
@@ -238,6 +251,7 @@ export * from "./OperationsTaskListSortByEnum.js";
238
251
  export * from "./OperationsTaskSortByEnum.js";
239
252
  export * from "./OperationsTaskStatusEnum.js";
240
253
  export * from "./OperationsTaskTypeEnum.js";
254
+ export * from "./OperationsTasksBulkUpdateDeadlinesRes1.js";
241
255
  export * from "./Order1.js";
242
256
  export * from "./OrderAndTaskGroupExpandedReq.js";
243
257
  export * from "./OrderBuilderReq.js";
@@ -15,6 +15,12 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./AiImageDescription.js"), exports);
18
+ __exportStar(require("./AlertCallback.js"), exports);
19
+ __exportStar(require("./AlertEvent.js"), exports);
20
+ __exportStar(require("./AlertMessage.js"), exports);
21
+ __exportStar(require("./AlertNameValue.js"), exports);
22
+ __exportStar(require("./AlertNameValues.js"), exports);
23
+ __exportStar(require("./AlertRuleEnvelope.js"), exports);
18
24
  __exportStar(require("./AnalyticsTimeBucketRes.js"), exports);
19
25
  __exportStar(require("./AttachBillingLedgerPeriodReq.js"), exports);
20
26
  __exportStar(require("./AttachLigToVectorClientReq.js"), exports);
@@ -127,6 +133,13 @@ __exportStar(require("./ChampQuantity.js"), exports);
127
133
  __exportStar(require("./ChrtGroundProviderRateSheet1.js"), exports);
128
134
  __exportStar(require("./ChrtGroundProviderRateSheetListRes.js"), exports);
129
135
  __exportStar(require("./ChrtGroundProviderTaskActionEnum1.js"), exports);
136
+ __exportStar(require("./CiriumAirportResources.js"), exports);
137
+ __exportStar(require("./CiriumDate.js"), exports);
138
+ __exportStar(require("./CiriumFlightAlertsWebhookResponse.js"), exports);
139
+ __exportStar(require("./CiriumFlightStatus.js"), exports);
140
+ __exportStar(require("./CiriumOperationalTimes.js"), exports);
141
+ __exportStar(require("./ConnectionSearchByEnum.js"), exports);
142
+ __exportStar(require("./ConnectionSearchPreferenceEnum.js"), exports);
130
143
  __exportStar(require("./CreateCheckoutSessionRes.js"), exports);
131
144
  __exportStar(require("./CreateConnectionReq.js"), exports);
132
145
  __exportStar(require("./CreateCustomerPortalSessionRes.js"), exports);
@@ -164,9 +177,9 @@ __exportStar(require("./DriverUpdateAvailabilityReq.js"), exports);
164
177
  __exportStar(require("./DriverUpdateRes.js"), exports);
165
178
  __exportStar(require("./DriverWithActiveTaskGroupIds1.js"), exports);
166
179
  __exportStar(require("./FirebaseCloudMessagingTokenData1.js"), exports);
167
- __exportStar(require("./FlightAwareAlertFlight.js"), exports);
168
- __exportStar(require("./FlightAwareAlertPayload.js"), exports);
169
- __exportStar(require("./FlightAwareWebhookResponse.js"), exports);
180
+ __exportStar(require("./FlightConnection.js"), exports);
181
+ __exportStar(require("./FlightConnectionLeg.js"), exports);
182
+ __exportStar(require("./FlightConnectionsSearchRes.js"), exports);
170
183
  __exportStar(require("./FlightInfoForTaskRes.js"), exports);
171
184
  __exportStar(require("./FlightLeg1.js"), exports);
172
185
  __exportStar(require("./FlightLegClientCreate1.js"), exports);
@@ -174,7 +187,6 @@ __exportStar(require("./FlightLegProvenanceEnum1.js"), exports);
174
187
  __exportStar(require("./FlightLegStatusEnum1.js"), exports);
175
188
  __exportStar(require("./FlightLegStatusSourceEnum1.js"), exports);
176
189
  __exportStar(require("./FlightLegWebhookInfo.js"), exports);
177
- __exportStar(require("./FlightStatusEnum.js"), exports);
178
190
  __exportStar(require("./FlightTrackPosition1.js"), exports);
179
191
  __exportStar(require("./FlightTrackRes.js"), exports);
180
192
  __exportStar(require("./FlightTrackWaypoint1.js"), exports);
@@ -244,6 +256,7 @@ __exportStar(require("./OperationsCaseOperatorAssignedWebhookPayload.js"), expor
244
256
  __exportStar(require("./OperationsCaseS3ObjectAddedWebhookPayload.js"), exports);
245
257
  __exportStar(require("./OperationsTask1.js"), exports);
246
258
  __exportStar(require("./OperationsTaskComment1.js"), exports);
259
+ __exportStar(require("./OperationsTaskDeadlineUpdate1.js"), exports);
247
260
  __exportStar(require("./OperationsTaskList1.js"), exports);
248
261
  __exportStar(require("./OperationsTaskListEntry1.js"), exports);
249
262
  __exportStar(require("./OperationsTaskListEntryClientCreate1.js"), exports);
@@ -254,6 +267,7 @@ __exportStar(require("./OperationsTaskListSortByEnum.js"), exports);
254
267
  __exportStar(require("./OperationsTaskSortByEnum.js"), exports);
255
268
  __exportStar(require("./OperationsTaskStatusEnum.js"), exports);
256
269
  __exportStar(require("./OperationsTaskTypeEnum.js"), exports);
270
+ __exportStar(require("./OperationsTasksBulkUpdateDeadlinesRes1.js"), exports);
257
271
  __exportStar(require("./Order1.js"), exports);
258
272
  __exportStar(require("./OrderAndTaskGroupExpandedReq.js"), exports);
259
273
  __exportStar(require("./OrderBuilderReq.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.794.0";
1
+ export declare const SDK_VERSION = "1.810.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.794.0";
4
+ exports.SDK_VERSION = "1.810.0";
@@ -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 { Flights } from "./api/resources/flights/client/Client.mjs";
6
7
  import { Orgs } from "./api/resources/orgs/client/Client.mjs";
7
8
  import { Utils } from "./api/resources/utils/client/Client.mjs";
8
9
  import { Analytics } from "./api/resources/analytics/client/Client.mjs";
@@ -40,6 +41,7 @@ export declare namespace ChrtClient {
40
41
  }
41
42
  export declare class ChrtClient {
42
43
  protected readonly _options: ChrtClient.Options;
44
+ protected _flights: Flights | undefined;
43
45
  protected _orgs: Orgs | undefined;
44
46
  protected _utils: Utils | undefined;
45
47
  protected _analytics: Analytics | undefined;
@@ -53,6 +55,7 @@ export declare class ChrtClient {
53
55
  protected _trackingIntegrations: TrackingIntegrations | undefined;
54
56
  protected _users: Users | undefined;
55
57
  constructor(_options?: ChrtClient.Options);
58
+ get flights(): Flights;
56
59
  get orgs(): Orgs;
57
60
  get utils(): Utils;
58
61
  get analytics(): Analytics;
@@ -3,6 +3,7 @@
3
3
  */
4
4
  import * as core from "./core/index.mjs";
5
5
  import { mergeHeaders } from "./core/headers.mjs";
6
+ import { Flights } from "./api/resources/flights/client/Client.mjs";
6
7
  import { Orgs } from "./api/resources/orgs/client/Client.mjs";
7
8
  import { Utils } from "./api/resources/utils/client/Client.mjs";
8
9
  import { Analytics } from "./api/resources/analytics/client/Client.mjs";
@@ -20,12 +21,16 @@ export class ChrtClient {
20
21
  this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
21
22
  "X-Fern-Language": "JavaScript",
22
23
  "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
23
- "X-Fern-SDK-Version": "1.794.0",
24
- "User-Agent": "@chrt-inc/typescript-sdk/1.794.0",
24
+ "X-Fern-SDK-Version": "1.810.0",
25
+ "User-Agent": "@chrt-inc/typescript-sdk/1.810.0",
25
26
  "X-Fern-Runtime": core.RUNTIME.type,
26
27
  "X-Fern-Runtime-Version": core.RUNTIME.version,
27
28
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
28
29
  }
30
+ get flights() {
31
+ var _a;
32
+ return ((_a = this._flights) !== null && _a !== void 0 ? _a : (this._flights = new Flights(this._options)));
33
+ }
29
34
  get orgs() {
30
35
  var _a;
31
36
  return ((_a = this._orgs) !== null && _a !== void 0 ? _a : (this._orgs = new Orgs(this._options)));