@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
package/README.md CHANGED
@@ -41,8 +41,11 @@ Instantiate and use the client with the following:
41
41
  import { ChrtClient } from "@chrt-inc/typescript-sdk";
42
42
 
43
43
  const client = new ChrtClient({ token: "YOUR_TOKEN" });
44
- await client.orgs.setupOrgV1({
45
- org_type: "provider",
44
+ await client.flights.searchConnectionsV1({
45
+ origin: "origin",
46
+ destination: "destination",
47
+ search_by: "departure_time",
48
+ local_date_time: "2024-01-15T09:30:00Z",
46
49
  });
47
50
  ```
48
51
 
@@ -54,7 +57,7 @@ following namespace:
54
57
  ```typescript
55
58
  import { Chrt } from "@chrt-inc/typescript-sdk";
56
59
 
57
- const request: Chrt.OrgsListMembersV1Request = {
60
+ const request: Chrt.FlightConnectionsSearchReq = {
58
61
  ...
59
62
  };
60
63
  ```
@@ -68,7 +71,7 @@ will be thrown.
68
71
  import { ChrtError } from "@chrt-inc/typescript-sdk";
69
72
 
70
73
  try {
71
- await client.orgs.setupOrgV1(...);
74
+ await client.flights.searchConnectionsV1(...);
72
75
  } catch (err) {
73
76
  if (err instanceof ChrtError) {
74
77
  console.log(err.statusCode);
@@ -476,7 +479,7 @@ const text = new TextDecoder().decode(bytes);
476
479
  If you would like to send additional headers as part of the request, use the `headers` request option.
477
480
 
478
481
  ```typescript
479
- const response = await client.orgs.setupOrgV1(..., {
482
+ const response = await client.flights.searchConnectionsV1(..., {
480
483
  headers: {
481
484
  'X-Custom-Header': 'custom value'
482
485
  }
@@ -488,7 +491,7 @@ const response = await client.orgs.setupOrgV1(..., {
488
491
  If you would like to send additional query string parameters as part of the request, use the `queryParams` request option.
489
492
 
490
493
  ```typescript
491
- const response = await client.orgs.setupOrgV1(..., {
494
+ const response = await client.flights.searchConnectionsV1(..., {
492
495
  queryParams: {
493
496
  'customQueryParamKey': 'custom query param value'
494
497
  }
@@ -510,7 +513,7 @@ A request is deemed retryable when any of the following HTTP status codes is ret
510
513
  Use the `maxRetries` request option to configure this behavior.
511
514
 
512
515
  ```typescript
513
- const response = await client.orgs.setupOrgV1(..., {
516
+ const response = await client.flights.searchConnectionsV1(..., {
514
517
  maxRetries: 0 // override maxRetries at the request level
515
518
  });
516
519
  ```
@@ -520,7 +523,7 @@ const response = await client.orgs.setupOrgV1(..., {
520
523
  The SDK defaults to a 60 second timeout. Use the `timeoutInSeconds` option to configure this behavior.
521
524
 
522
525
  ```typescript
523
- const response = await client.orgs.setupOrgV1(..., {
526
+ const response = await client.flights.searchConnectionsV1(..., {
524
527
  timeoutInSeconds: 30 // override timeout to 30s
525
528
  });
526
529
  ```
@@ -531,7 +534,7 @@ The SDK allows users to abort requests at any point by passing in an abort signa
531
534
 
532
535
  ```typescript
533
536
  const controller = new AbortController();
534
- const response = await client.orgs.setupOrgV1(..., {
537
+ const response = await client.flights.searchConnectionsV1(..., {
535
538
  abortSignal: controller.signal
536
539
  });
537
540
  controller.abort(); // aborts the request
@@ -543,7 +546,7 @@ The SDK provides access to raw response data, including headers, through the `.w
543
546
  The `.withRawResponse()` method returns a promise that results to an object with a `data` and a `rawResponse` property.
544
547
 
545
548
  ```typescript
546
- const { data, rawResponse } = await client.orgs.setupOrgV1(...).withRawResponse();
549
+ const { data, rawResponse } = await client.flights.searchConnectionsV1(...).withRawResponse();
547
550
 
548
551
  console.log(data);
549
552
  console.log(rawResponse.headers['X-My-Header']);
@@ -3,6 +3,7 @@
3
3
  */
4
4
  import * as environments from "./environments.js";
5
5
  import * as core from "./core/index.js";
6
+ import { Flights } from "./api/resources/flights/client/Client.js";
6
7
  import { Orgs } from "./api/resources/orgs/client/Client.js";
7
8
  import { Utils } from "./api/resources/utils/client/Client.js";
8
9
  import { Analytics } from "./api/resources/analytics/client/Client.js";
@@ -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;
@@ -39,76 +39,81 @@ Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.ChrtClient = void 0;
40
40
  const core = __importStar(require("./core/index.js"));
41
41
  const headers_js_1 = require("./core/headers.js");
42
- const Client_js_1 = require("./api/resources/orgs/client/Client.js");
43
- const Client_js_2 = require("./api/resources/utils/client/Client.js");
44
- const Client_js_3 = require("./api/resources/analytics/client/Client.js");
45
- const Client_js_4 = require("./api/resources/billing/client/Client.js");
46
- const Client_js_5 = require("./api/resources/integrations/client/Client.js");
47
- const Client_js_6 = require("./api/resources/listing/client/Client.js");
48
- const Client_js_7 = require("./api/resources/notifications/client/Client.js");
49
- const Client_js_8 = require("./api/resources/operations/client/Client.js");
50
- const Client_js_9 = require("./api/resources/shipping/client/Client.js");
51
- const Client_js_10 = require("./api/resources/tracking/client/Client.js");
52
- const Client_js_11 = require("./api/resources/trackingIntegrations/client/Client.js");
53
- const Client_js_12 = require("./api/resources/users/client/Client.js");
42
+ const Client_js_1 = require("./api/resources/flights/client/Client.js");
43
+ const Client_js_2 = require("./api/resources/orgs/client/Client.js");
44
+ const Client_js_3 = require("./api/resources/utils/client/Client.js");
45
+ const Client_js_4 = require("./api/resources/analytics/client/Client.js");
46
+ const Client_js_5 = require("./api/resources/billing/client/Client.js");
47
+ const Client_js_6 = require("./api/resources/integrations/client/Client.js");
48
+ const Client_js_7 = require("./api/resources/listing/client/Client.js");
49
+ const Client_js_8 = require("./api/resources/notifications/client/Client.js");
50
+ const Client_js_9 = require("./api/resources/operations/client/Client.js");
51
+ const Client_js_10 = require("./api/resources/shipping/client/Client.js");
52
+ const Client_js_11 = require("./api/resources/tracking/client/Client.js");
53
+ const Client_js_12 = require("./api/resources/trackingIntegrations/client/Client.js");
54
+ const Client_js_13 = require("./api/resources/users/client/Client.js");
54
55
  class ChrtClient {
55
56
  constructor(_options = {}) {
56
57
  this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
57
58
  "X-Fern-Language": "JavaScript",
58
59
  "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
59
- "X-Fern-SDK-Version": "1.794.0",
60
- "User-Agent": "@chrt-inc/typescript-sdk/1.794.0",
60
+ "X-Fern-SDK-Version": "1.810.0",
61
+ "User-Agent": "@chrt-inc/typescript-sdk/1.810.0",
61
62
  "X-Fern-Runtime": core.RUNTIME.type,
62
63
  "X-Fern-Runtime-Version": core.RUNTIME.version,
63
64
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
64
65
  }
66
+ get flights() {
67
+ var _a;
68
+ return ((_a = this._flights) !== null && _a !== void 0 ? _a : (this._flights = new Client_js_1.Flights(this._options)));
69
+ }
65
70
  get orgs() {
66
71
  var _a;
67
- return ((_a = this._orgs) !== null && _a !== void 0 ? _a : (this._orgs = new Client_js_1.Orgs(this._options)));
72
+ return ((_a = this._orgs) !== null && _a !== void 0 ? _a : (this._orgs = new Client_js_2.Orgs(this._options)));
68
73
  }
69
74
  get utils() {
70
75
  var _a;
71
- return ((_a = this._utils) !== null && _a !== void 0 ? _a : (this._utils = new Client_js_2.Utils(this._options)));
76
+ return ((_a = this._utils) !== null && _a !== void 0 ? _a : (this._utils = new Client_js_3.Utils(this._options)));
72
77
  }
73
78
  get analytics() {
74
79
  var _a;
75
- return ((_a = this._analytics) !== null && _a !== void 0 ? _a : (this._analytics = new Client_js_3.Analytics(this._options)));
80
+ return ((_a = this._analytics) !== null && _a !== void 0 ? _a : (this._analytics = new Client_js_4.Analytics(this._options)));
76
81
  }
77
82
  get billing() {
78
83
  var _a;
79
- return ((_a = this._billing) !== null && _a !== void 0 ? _a : (this._billing = new Client_js_4.Billing(this._options)));
84
+ return ((_a = this._billing) !== null && _a !== void 0 ? _a : (this._billing = new Client_js_5.Billing(this._options)));
80
85
  }
81
86
  get integrations() {
82
87
  var _a;
83
- return ((_a = this._integrations) !== null && _a !== void 0 ? _a : (this._integrations = new Client_js_5.Integrations(this._options)));
88
+ return ((_a = this._integrations) !== null && _a !== void 0 ? _a : (this._integrations = new Client_js_6.Integrations(this._options)));
84
89
  }
85
90
  get listing() {
86
91
  var _a;
87
- return ((_a = this._listing) !== null && _a !== void 0 ? _a : (this._listing = new Client_js_6.Listing(this._options)));
92
+ return ((_a = this._listing) !== null && _a !== void 0 ? _a : (this._listing = new Client_js_7.Listing(this._options)));
88
93
  }
89
94
  get notifications() {
90
95
  var _a;
91
- return ((_a = this._notifications) !== null && _a !== void 0 ? _a : (this._notifications = new Client_js_7.Notifications(this._options)));
96
+ return ((_a = this._notifications) !== null && _a !== void 0 ? _a : (this._notifications = new Client_js_8.Notifications(this._options)));
92
97
  }
93
98
  get operations() {
94
99
  var _a;
95
- return ((_a = this._operations) !== null && _a !== void 0 ? _a : (this._operations = new Client_js_8.Operations(this._options)));
100
+ return ((_a = this._operations) !== null && _a !== void 0 ? _a : (this._operations = new Client_js_9.Operations(this._options)));
96
101
  }
97
102
  get shipping() {
98
103
  var _a;
99
- return ((_a = this._shipping) !== null && _a !== void 0 ? _a : (this._shipping = new Client_js_9.Shipping(this._options)));
104
+ return ((_a = this._shipping) !== null && _a !== void 0 ? _a : (this._shipping = new Client_js_10.Shipping(this._options)));
100
105
  }
101
106
  get tracking() {
102
107
  var _a;
103
- return ((_a = this._tracking) !== null && _a !== void 0 ? _a : (this._tracking = new Client_js_10.Tracking(this._options)));
108
+ return ((_a = this._tracking) !== null && _a !== void 0 ? _a : (this._tracking = new Client_js_11.Tracking(this._options)));
104
109
  }
105
110
  get trackingIntegrations() {
106
111
  var _a;
107
- return ((_a = this._trackingIntegrations) !== null && _a !== void 0 ? _a : (this._trackingIntegrations = new Client_js_11.TrackingIntegrations(this._options)));
112
+ return ((_a = this._trackingIntegrations) !== null && _a !== void 0 ? _a : (this._trackingIntegrations = new Client_js_12.TrackingIntegrations(this._options)));
108
113
  }
109
114
  get users() {
110
115
  var _a;
111
- return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new Client_js_12.Users(this._options)));
116
+ return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new Client_js_13.Users(this._options)));
112
117
  }
113
118
  }
114
119
  exports.ChrtClient = ChrtClient;
@@ -0,0 +1,52 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as environments from "../../../../environments.js";
5
+ import * as core from "../../../../core/index.js";
6
+ import * as Chrt from "../../../index.js";
7
+ export declare namespace Flights {
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 Flights {
31
+ protected readonly _options: Flights.Options;
32
+ constructor(_options?: Flights.Options);
33
+ /**
34
+ * Searches Cirium for cargo flight connections between two airports, anchored on a departure or arrival time. | (FlightConnectionsSearchReq) -> (FlightConnectionsSearchRes)
35
+ *
36
+ * @param {Chrt.FlightConnectionsSearchReq} request
37
+ * @param {Flights.RequestOptions} requestOptions - Request-specific configuration.
38
+ *
39
+ * @throws {@link Chrt.UnprocessableEntityError}
40
+ *
41
+ * @example
42
+ * await client.flights.searchConnectionsV1({
43
+ * origin: "origin",
44
+ * destination: "destination",
45
+ * search_by: "departure_time",
46
+ * local_date_time: "2024-01-15T09:30:00Z"
47
+ * })
48
+ */
49
+ searchConnectionsV1(request: Chrt.FlightConnectionsSearchReq, requestOptions?: Flights.RequestOptions): core.HttpResponsePromise<Chrt.FlightConnectionsSearchRes>;
50
+ private __searchConnectionsV1;
51
+ protected _getAuthorizationHeader(): Promise<string | undefined>;
52
+ }
@@ -0,0 +1,135 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
39
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
40
+ return new (P || (P = Promise))(function (resolve, reject) {
41
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
42
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
43
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
44
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
45
+ });
46
+ };
47
+ Object.defineProperty(exports, "__esModule", { value: true });
48
+ exports.Flights = void 0;
49
+ const environments = __importStar(require("../../../../environments.js"));
50
+ const core = __importStar(require("../../../../core/index.js"));
51
+ const Chrt = __importStar(require("../../../index.js"));
52
+ const headers_js_1 = require("../../../../core/headers.js");
53
+ const errors = __importStar(require("../../../../errors/index.js"));
54
+ class Flights {
55
+ constructor(_options = {}) {
56
+ this._options = _options;
57
+ }
58
+ /**
59
+ * Searches Cirium for cargo flight connections between two airports, anchored on a departure or arrival time. | (FlightConnectionsSearchReq) -> (FlightConnectionsSearchRes)
60
+ *
61
+ * @param {Chrt.FlightConnectionsSearchReq} request
62
+ * @param {Flights.RequestOptions} requestOptions - Request-specific configuration.
63
+ *
64
+ * @throws {@link Chrt.UnprocessableEntityError}
65
+ *
66
+ * @example
67
+ * await client.flights.searchConnectionsV1({
68
+ * origin: "origin",
69
+ * destination: "destination",
70
+ * search_by: "departure_time",
71
+ * local_date_time: "2024-01-15T09:30:00Z"
72
+ * })
73
+ */
74
+ searchConnectionsV1(request, requestOptions) {
75
+ return core.HttpResponsePromise.fromPromise(this.__searchConnectionsV1(request, requestOptions));
76
+ }
77
+ __searchConnectionsV1(request, requestOptions) {
78
+ return __awaiter(this, void 0, void 0, function* () {
79
+ var _a, _b, _c, _d;
80
+ let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
81
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
82
+ 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, "flights/connections/search/v1"),
83
+ method: "POST",
84
+ headers: _headers,
85
+ contentType: "application/json",
86
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
87
+ requestType: "json",
88
+ body: request,
89
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
90
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
91
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
92
+ });
93
+ if (_response.ok) {
94
+ return { data: _response.body, rawResponse: _response.rawResponse };
95
+ }
96
+ if (_response.error.reason === "status-code") {
97
+ switch (_response.error.statusCode) {
98
+ case 422:
99
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
100
+ default:
101
+ throw new errors.ChrtError({
102
+ statusCode: _response.error.statusCode,
103
+ body: _response.error.body,
104
+ rawResponse: _response.rawResponse,
105
+ });
106
+ }
107
+ }
108
+ switch (_response.error.reason) {
109
+ case "non-json":
110
+ throw new errors.ChrtError({
111
+ statusCode: _response.error.statusCode,
112
+ body: _response.error.rawBody,
113
+ rawResponse: _response.rawResponse,
114
+ });
115
+ case "timeout":
116
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /flights/connections/search/v1.");
117
+ case "unknown":
118
+ throw new errors.ChrtError({
119
+ message: _response.error.errorMessage,
120
+ rawResponse: _response.rawResponse,
121
+ });
122
+ }
123
+ });
124
+ }
125
+ _getAuthorizationHeader() {
126
+ return __awaiter(this, void 0, void 0, function* () {
127
+ const bearer = yield core.Supplier.get(this._options.token);
128
+ if (bearer != null) {
129
+ return `Bearer ${bearer}`;
130
+ }
131
+ return undefined;
132
+ });
133
+ }
134
+ }
135
+ exports.Flights = Flights;
@@ -0,0 +1,2 @@
1
+ export {};
2
+ export * from "./requests/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("./requests/index.js"), exports);
@@ -0,0 +1,45 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../../../../index.js";
5
+ /**
6
+ * @example
7
+ * {
8
+ * origin: "origin",
9
+ * destination: "destination",
10
+ * search_by: "departure_time",
11
+ * local_date_time: "2024-01-15T09:30:00Z"
12
+ * }
13
+ */
14
+ export interface FlightConnectionsSearchReq {
15
+ /** Departure airport code (IATA preferred), e.g. 'EWR'. */
16
+ origin: string;
17
+ /** Arrival airport code (IATA preferred), e.g. 'LAX'. */
18
+ destination: string;
19
+ /** Whether local_date_time is a departure constraint (leaving after) or an arrival constraint (arriving before). */
20
+ search_by: Chrt.ConnectionSearchByEnum;
21
+ /** Return the earliest or latest flights within the search window. */
22
+ prefer?: Chrt.ConnectionSearchPreferenceEnum;
23
+ /** Airport-local date+time (naive, no offset). Origin-local for DEPARTURE_TIME, destination-local for ARRIVAL_TIME. */
24
+ local_date_time: string;
25
+ /** Search window size in hours relative to local_date_time. Default 6; Cirium max 24. */
26
+ num_hours?: number;
27
+ /** Max stops per itinerary. 0 returns nonstop only. */
28
+ max_connections?: number;
29
+ /** Max number of connections to return. */
30
+ max_results?: number;
31
+ /** Include airports sharing the origin's city code. */
32
+ allow_nearby_departures?: boolean;
33
+ /** Include airports sharing the destination's city code. */
34
+ allow_nearby_arrivals?: boolean;
35
+ /** Minimum layover in minutes; useful for cargo since published connect times are not auto-applied for cargo payloads. */
36
+ minimum_connect_time_minutes?: number | null;
37
+ /** Restrict to these airline codes. */
38
+ include_airlines?: string[] | null;
39
+ /** Exclude these airline codes. */
40
+ exclude_airlines?: string[] | null;
41
+ /** Restrict connections to pass through these airports. */
42
+ include_airports?: string[] | null;
43
+ /** Exclude these airports from connections. */
44
+ exclude_airports?: string[] | null;
45
+ }
@@ -0,0 +1 @@
1
+ export { type FlightConnectionsSearchReq } from "./FlightConnectionsSearchReq.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,5 +1,6 @@
1
1
  export * as orgs from "./orgs/index.js";
2
2
  export * as shipping from "./shipping/index.js";
3
+ export * as flights from "./flights/index.js";
3
4
  export * as utils from "./utils/index.js";
4
5
  export * as analytics from "./analytics/index.js";
5
6
  export * as billing from "./billing/index.js";
@@ -10,5 +11,6 @@ export * as operations from "./operations/index.js";
10
11
  export * as tracking from "./tracking/index.js";
11
12
  export * as trackingIntegrations from "./trackingIntegrations/index.js";
12
13
  export * as users from "./users/index.js";
14
+ export * from "./flights/client/requests/index.js";
13
15
  export * from "./orgs/client/requests/index.js";
14
16
  export * from "./utils/client/requests/index.js";
@@ -36,9 +36,10 @@ 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.users = exports.trackingIntegrations = exports.tracking = exports.operations = exports.notifications = exports.listing = exports.integrations = exports.billing = exports.analytics = exports.utils = exports.shipping = exports.orgs = void 0;
39
+ exports.users = exports.trackingIntegrations = exports.tracking = exports.operations = exports.notifications = exports.listing = exports.integrations = exports.billing = exports.analytics = exports.utils = exports.flights = exports.shipping = exports.orgs = void 0;
40
40
  exports.orgs = __importStar(require("./orgs/index.js"));
41
41
  exports.shipping = __importStar(require("./shipping/index.js"));
42
+ exports.flights = __importStar(require("./flights/index.js"));
42
43
  exports.utils = __importStar(require("./utils/index.js"));
43
44
  exports.analytics = __importStar(require("./analytics/index.js"));
44
45
  exports.billing = __importStar(require("./billing/index.js"));
@@ -49,5 +50,6 @@ exports.operations = __importStar(require("./operations/index.js"));
49
50
  exports.tracking = __importStar(require("./tracking/index.js"));
50
51
  exports.trackingIntegrations = __importStar(require("./trackingIntegrations/index.js"));
51
52
  exports.users = __importStar(require("./users/index.js"));
53
+ __exportStar(require("./flights/client/requests/index.js"), exports);
52
54
  __exportStar(require("./orgs/client/requests/index.js"), exports);
53
55
  __exportStar(require("./utils/client/requests/index.js"), exports);
@@ -201,7 +201,7 @@ export declare class OperationsTaskLists {
201
201
  applyToCaseV1(taskListId: string, caseId: string, request?: Chrt.operations.OperationsTaskListsApplyToCaseV1Request, requestOptions?: OperationsTaskLists.RequestOptions): core.HttpResponsePromise<string[]>;
202
202
  private __applyToCaseV1;
203
203
  /**
204
- * Removes the OperationsTasks this OperationsTaskList added to the Case (matched by source_task_list_id). Only untouched (not_started) tasks are deleted; started/completed/skipped tasks are kept. Returns deleted and kept counts. | authz: min_org_role=operator | () -> (OperationsTaskListRemoveFromCaseRes1)
204
+ * Removes the OperationsTasks this OperationsTaskList added to the Case (matched by source_task_list_id). Only untouched (not_started) tasks are deleted; started/completed/skipped/cancelled tasks are kept. Returns deleted and kept counts. | authz: min_org_role=operator | () -> (OperationsTaskListRemoveFromCaseRes1)
205
205
  *
206
206
  * @param {string} taskListId
207
207
  * @param {string} caseId
@@ -769,7 +769,7 @@ class OperationsTaskLists {
769
769
  });
770
770
  }
771
771
  /**
772
- * Removes the OperationsTasks this OperationsTaskList added to the Case (matched by source_task_list_id). Only untouched (not_started) tasks are deleted; started/completed/skipped tasks are kept. Returns deleted and kept counts. | authz: min_org_role=operator | () -> (OperationsTaskListRemoveFromCaseRes1)
772
+ * Removes the OperationsTasks this OperationsTaskList added to the Case (matched by source_task_list_id). Only untouched (not_started) tasks are deleted; started/completed/skipped/cancelled tasks are kept. Returns deleted and kept counts. | authz: min_org_role=operator | () -> (OperationsTaskListRemoveFromCaseRes1)
773
773
  *
774
774
  * @param {string} taskListId
775
775
  * @param {string} caseId
@@ -112,7 +112,25 @@ export declare class OperationsTasks {
112
112
  createV1(request: Chrt.operations.OperationsTaskClientCreate1, requestOptions?: OperationsTasks.RequestOptions): core.HttpResponsePromise<string>;
113
113
  private __createV1;
114
114
  /**
115
- * Sets an OperationsTask's status (not_started / in_progress / completed / skipped). Setting COMPLETED stamps completed_at/by; any other status clears them. | authz: min_org_role=operator | (OperationsTaskStatusReq) -> (bool)
115
+ * Sets deadline_timestamp on multiple OperationsTasks in one call, each scoped to the caller's organization. Task ids that don't exist or belong to another org are silently skipped; the response reports how many were updated. | authz: min_org_role=operator | (OperationsTasksBulkUpdateDeadlinesReq1) -> (OperationsTasksBulkUpdateDeadlinesRes1)
116
+ *
117
+ * @param {Chrt.operations.OperationsTasksBulkUpdateDeadlinesReq1} request
118
+ * @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
119
+ *
120
+ * @throws {@link Chrt.UnprocessableEntityError}
121
+ *
122
+ * @example
123
+ * await client.operations.operationsTasks.bulkUpdateDeadlinesV1({
124
+ * operations_task_deadline_updates: [{
125
+ * task_id: "task_id",
126
+ * deadline_timestamp: "2024-01-15T09:30:00Z"
127
+ * }]
128
+ * })
129
+ */
130
+ bulkUpdateDeadlinesV1(request: Chrt.operations.OperationsTasksBulkUpdateDeadlinesReq1, requestOptions?: OperationsTasks.RequestOptions): core.HttpResponsePromise<Chrt.OperationsTasksBulkUpdateDeadlinesRes1>;
131
+ private __bulkUpdateDeadlinesV1;
132
+ /**
133
+ * Sets an OperationsTask's status (not_started / in_progress / completed / skipped / cancelled). Setting COMPLETED stamps completed_at/by; any other status clears them. | authz: min_org_role=operator | (OperationsTaskStatusReq) -> (bool)
116
134
  *
117
135
  * @param {string} taskId
118
136
  * @param {Chrt.operations.OperationsTaskStatusReq} request