@chrt-inc/typescript-sdk 1.749.0 → 1.751.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 (68) hide show
  1. package/dist/cjs/Client.js +2 -2
  2. package/dist/cjs/api/resources/shipping/resources/flights/client/Client.d.ts +13 -0
  3. package/dist/cjs/api/resources/shipping/resources/flights/client/Client.js +59 -0
  4. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/Client.d.ts +8 -2
  5. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/Client.js +8 -2
  6. package/dist/cjs/api/resources/shipping/resources/taskGroups/client/Client.d.ts +8 -2
  7. package/dist/cjs/api/resources/shipping/resources/taskGroups/client/Client.js +8 -2
  8. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForDriverForExecutorV1Request.d.ts +1 -1
  9. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.d.ts +1 -1
  10. package/dist/cjs/api/resources/utils/resources/dev/client/Client.d.ts +0 -13
  11. package/dist/cjs/api/resources/utils/resources/dev/client/Client.js +0 -62
  12. package/dist/cjs/api/resources/utils/resources/dev/client/requests/index.d.ts +0 -1
  13. package/dist/cjs/api/types/FlightInfoForTaskRes.d.ts +4 -3
  14. package/dist/cjs/api/types/FlightLeg1.d.ts +19 -0
  15. package/dist/cjs/api/types/FlightLegClientCreate1.d.ts +16 -0
  16. package/dist/cjs/api/types/FlightLegProvenanceEnum1.d.ts +9 -0
  17. package/dist/cjs/api/types/FlightLegProvenanceEnum1.js +11 -0
  18. package/dist/cjs/api/types/FlightLegWebhookInfo.d.ts +22 -0
  19. package/dist/cjs/api/types/OrderSchedule1.d.ts +1 -0
  20. package/dist/cjs/api/types/OrderScheduleAboutRes.d.ts +1 -0
  21. package/dist/cjs/api/types/SetFlightInfoReq.d.ts +3 -4
  22. package/dist/cjs/api/types/ShippingTaskGroupFlightInfoUpdatedWebhookPayload.d.ts +3 -4
  23. package/dist/cjs/api/types/TaskGroup1.d.ts +1 -2
  24. package/dist/cjs/api/types/index.d.ts +4 -2
  25. package/dist/cjs/api/types/index.js +4 -2
  26. package/dist/cjs/version.d.ts +1 -1
  27. package/dist/cjs/version.js +1 -1
  28. package/dist/esm/Client.mjs +2 -2
  29. package/dist/esm/api/resources/shipping/resources/flights/client/Client.d.mts +13 -0
  30. package/dist/esm/api/resources/shipping/resources/flights/client/Client.mjs +59 -0
  31. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/Client.d.mts +8 -2
  32. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/Client.mjs +8 -2
  33. package/dist/esm/api/resources/shipping/resources/taskGroups/client/Client.d.mts +8 -2
  34. package/dist/esm/api/resources/shipping/resources/taskGroups/client/Client.mjs +8 -2
  35. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForDriverForExecutorV1Request.d.mts +1 -1
  36. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.d.mts +1 -1
  37. package/dist/esm/api/resources/utils/resources/dev/client/Client.d.mts +0 -13
  38. package/dist/esm/api/resources/utils/resources/dev/client/Client.mjs +0 -62
  39. package/dist/esm/api/resources/utils/resources/dev/client/requests/index.d.mts +0 -1
  40. package/dist/esm/api/types/FlightInfoForTaskRes.d.mts +4 -3
  41. package/dist/esm/api/types/FlightLeg1.d.mts +19 -0
  42. package/dist/esm/api/types/FlightLegClientCreate1.d.mts +16 -0
  43. package/dist/esm/api/types/FlightLegProvenanceEnum1.d.mts +9 -0
  44. package/dist/esm/api/types/FlightLegProvenanceEnum1.mjs +8 -0
  45. package/dist/esm/api/types/FlightLegWebhookInfo.d.mts +22 -0
  46. package/dist/esm/api/types/OrderSchedule1.d.mts +1 -0
  47. package/dist/esm/api/types/OrderScheduleAboutRes.d.mts +1 -0
  48. package/dist/esm/api/types/SetFlightInfoReq.d.mts +3 -4
  49. package/dist/esm/api/types/ShippingTaskGroupFlightInfoUpdatedWebhookPayload.d.mts +3 -4
  50. package/dist/esm/api/types/TaskGroup1.d.mts +1 -2
  51. package/dist/esm/api/types/index.d.mts +4 -2
  52. package/dist/esm/api/types/index.mjs +4 -2
  53. package/dist/esm/version.d.mts +1 -1
  54. package/dist/esm/version.mjs +1 -1
  55. package/package.json +1 -1
  56. package/reference.md +83 -67
  57. package/dist/cjs/api/resources/utils/resources/dev/client/requests/ScheduledPingReq.d.ts +0 -13
  58. package/dist/cjs/api/types/ScheduleSpec.d.ts +0 -14
  59. package/dist/cjs/api/types/ScheduledPingRes.d.ts +0 -16
  60. package/dist/esm/api/resources/utils/resources/dev/client/requests/ScheduledPingReq.d.mts +0 -13
  61. package/dist/esm/api/types/ScheduleSpec.d.mts +0 -14
  62. package/dist/esm/api/types/ScheduledPingRes.d.mts +0 -16
  63. /package/dist/cjs/api/{resources/utils/resources/dev/client/requests/ScheduledPingReq.js → types/FlightLeg1.js} +0 -0
  64. /package/dist/cjs/api/types/{ScheduleSpec.js → FlightLegClientCreate1.js} +0 -0
  65. /package/dist/cjs/api/types/{ScheduledPingRes.js → FlightLegWebhookInfo.js} +0 -0
  66. /package/dist/esm/api/{resources/utils/resources/dev/client/requests/ScheduledPingReq.mjs → types/FlightLeg1.mjs} +0 -0
  67. /package/dist/esm/api/types/{ScheduleSpec.mjs → FlightLegClientCreate1.mjs} +0 -0
  68. /package/dist/esm/api/types/{ScheduledPingRes.mjs → FlightLegWebhookInfo.mjs} +0 -0
@@ -47,7 +47,7 @@ export declare class TaskGroup {
47
47
  addV1(request: Chrt.shipping.orderDrafts.OrderDraftAddTaskGroupReq, requestOptions?: TaskGroup.RequestOptions): core.HttpResponsePromise<string>;
48
48
  private __addV1;
49
49
  /**
50
- * Sets the flight number and/or fa_flight_ids on a draft task group. | (SetFlightInfoReq) -> (bool)
50
+ * Replaces the ordered list of flights on a draft task group. | (SetFlightInfoReq) -> (bool)
51
51
  *
52
52
  * @param {string} taskGroupId
53
53
  * @param {Chrt.SetFlightInfoReq} request
@@ -56,7 +56,13 @@ export declare class TaskGroup {
56
56
  * @throws {@link Chrt.UnprocessableEntityError}
57
57
  *
58
58
  * @example
59
- * await client.shipping.orderDrafts.taskGroup.setFlightInfoV1("task_group_id", {})
59
+ * await client.shipping.orderDrafts.taskGroup.setFlightInfoV1("task_group_id", {
60
+ * flight_legs: [{
61
+ * schema_version: 1,
62
+ * flight_number: "flight_number",
63
+ * provenance: "manual"
64
+ * }]
65
+ * })
60
66
  */
61
67
  setFlightInfoV1(taskGroupId: string, request: Chrt.SetFlightInfoReq, requestOptions?: TaskGroup.RequestOptions): core.HttpResponsePromise<boolean>;
62
68
  private __setFlightInfoV1;
@@ -85,7 +85,7 @@ export class TaskGroup {
85
85
  });
86
86
  }
87
87
  /**
88
- * Sets the flight number and/or fa_flight_ids on a draft task group. | (SetFlightInfoReq) -> (bool)
88
+ * Replaces the ordered list of flights on a draft task group. | (SetFlightInfoReq) -> (bool)
89
89
  *
90
90
  * @param {string} taskGroupId
91
91
  * @param {Chrt.SetFlightInfoReq} request
@@ -94,7 +94,13 @@ export class TaskGroup {
94
94
  * @throws {@link Chrt.UnprocessableEntityError}
95
95
  *
96
96
  * @example
97
- * await client.shipping.orderDrafts.taskGroup.setFlightInfoV1("task_group_id", {})
97
+ * await client.shipping.orderDrafts.taskGroup.setFlightInfoV1("task_group_id", {
98
+ * flight_legs: [{
99
+ * schema_version: 1,
100
+ * flight_number: "flight_number",
101
+ * provenance: "manual"
102
+ * }]
103
+ * })
98
104
  */
99
105
  setFlightInfoV1(taskGroupId, request, requestOptions) {
100
106
  return core.HttpResponsePromise.fromPromise(this.__setFlightInfoV1(taskGroupId, request, requestOptions));
@@ -141,7 +141,7 @@ export declare class TaskGroups {
141
141
  removeExecutorV1(taskGroupId: string, requestOptions?: TaskGroups.RequestOptions): core.HttpResponsePromise<boolean>;
142
142
  private __removeExecutorV1;
143
143
  /**
144
- * Sets the flight number and/or fa_flight_ids on a task group. | authz_personas=[lig_owner_operators] | (SetFlightInfoReq) -> (bool)
144
+ * Replaces the ordered list of flights on a task group. | authz_personas=[lig_owner_operators] | (SetFlightInfoReq) -> (bool)
145
145
  *
146
146
  * @param {string} taskGroupId
147
147
  * @param {Chrt.SetFlightInfoReq} request
@@ -150,7 +150,13 @@ export declare class TaskGroups {
150
150
  * @throws {@link Chrt.UnprocessableEntityError}
151
151
  *
152
152
  * @example
153
- * await client.shipping.taskGroups.setFlightInfoV1("task_group_id", {})
153
+ * await client.shipping.taskGroups.setFlightInfoV1("task_group_id", {
154
+ * flight_legs: [{
155
+ * schema_version: 1,
156
+ * flight_number: "flight_number",
157
+ * provenance: "manual"
158
+ * }]
159
+ * })
154
160
  */
155
161
  setFlightInfoV1(taskGroupId: string, request: Chrt.SetFlightInfoReq, requestOptions?: TaskGroups.RequestOptions): core.HttpResponsePromise<boolean>;
156
162
  private __setFlightInfoV1;
@@ -473,7 +473,7 @@ export class TaskGroups {
473
473
  });
474
474
  }
475
475
  /**
476
- * Sets the flight number and/or fa_flight_ids on a task group. | authz_personas=[lig_owner_operators] | (SetFlightInfoReq) -> (bool)
476
+ * Replaces the ordered list of flights on a task group. | authz_personas=[lig_owner_operators] | (SetFlightInfoReq) -> (bool)
477
477
  *
478
478
  * @param {string} taskGroupId
479
479
  * @param {Chrt.SetFlightInfoReq} request
@@ -482,7 +482,13 @@ export class TaskGroups {
482
482
  * @throws {@link Chrt.UnprocessableEntityError}
483
483
  *
484
484
  * @example
485
- * await client.shipping.taskGroups.setFlightInfoV1("task_group_id", {})
485
+ * await client.shipping.taskGroups.setFlightInfoV1("task_group_id", {
486
+ * flight_legs: [{
487
+ * schema_version: 1,
488
+ * flight_number: "flight_number",
489
+ * provenance: "manual"
490
+ * }]
491
+ * })
486
492
  */
487
493
  setFlightInfoV1(taskGroupId, request, requestOptions) {
488
494
  return core.HttpResponsePromise.fromPromise(this.__setFlightInfoV1(taskGroupId, request, requestOptions));
@@ -36,7 +36,7 @@ export interface ExpandedListForDriverForExecutorV1Request {
36
36
  sort_order?: Chrt.SortOrderEnum | null;
37
37
  page?: number | null;
38
38
  page_size?: number | null;
39
- /** Full-text search query (searches order_short_id, order_off_chrt_reference_id, flight_number) */
39
+ /** Full-text search query (searches order_short_id, order_off_chrt_reference_id) */
40
40
  search?: string | null;
41
41
  filter_status?: (Chrt.TaskGroupStatusEnum1 | null) | (Chrt.TaskGroupStatusEnum1 | null)[];
42
42
  filter_draft_started_at_timestamp_lte?: string | null;
@@ -37,7 +37,7 @@ export interface ExpandedListForExecutorOperatorsV1Request {
37
37
  sort_order?: Chrt.SortOrderEnum | null;
38
38
  page?: number | null;
39
39
  page_size?: number | null;
40
- /** Full-text search query (searches order_short_id, order_off_chrt_reference_id, flight_number) */
40
+ /** Full-text search query (searches order_short_id, order_off_chrt_reference_id) */
41
41
  search?: string | null;
42
42
  filter_status?: (Chrt.TaskGroupStatusEnum1 | null) | (Chrt.TaskGroupStatusEnum1 | null)[];
43
43
  filter_draft_started_at_timestamp_lte?: string | null;
@@ -30,19 +30,6 @@ export declare namespace Dev {
30
30
  export declare class Dev {
31
31
  protected readonly _options: Dev.Options;
32
32
  constructor(_options?: Dev.Options);
33
- /**
34
- * Creates or updates a Temporal Schedule that runs the scheduled ping workflow for developer diagnostics. | authz: min_org_role=administrator | (ScheduledPingReq) -> (ScheduledPingRes)
35
- *
36
- * @param {Chrt.utils.ScheduledPingReq} request
37
- * @param {Dev.RequestOptions} requestOptions - Request-specific configuration.
38
- *
39
- * @throws {@link Chrt.UnprocessableEntityError}
40
- *
41
- * @example
42
- * await client.utils.dev.postAgentPingScheduleV1()
43
- */
44
- postAgentPingScheduleV1(request?: Chrt.utils.ScheduledPingReq, requestOptions?: Dev.RequestOptions): core.HttpResponsePromise<Chrt.ScheduledPingRes>;
45
- private __postAgentPingScheduleV1;
46
33
  /**
47
34
  * Runs a minimal Temporal workflow that sends a prompt to OpenAI and returns the response. | (PingOpenAIReq) -> (PingOpenAIRes)
48
35
  *
@@ -19,68 +19,6 @@ export class Dev {
19
19
  constructor(_options = {}) {
20
20
  this._options = _options;
21
21
  }
22
- /**
23
- * Creates or updates a Temporal Schedule that runs the scheduled ping workflow for developer diagnostics. | authz: min_org_role=administrator | (ScheduledPingReq) -> (ScheduledPingRes)
24
- *
25
- * @param {Chrt.utils.ScheduledPingReq} request
26
- * @param {Dev.RequestOptions} requestOptions - Request-specific configuration.
27
- *
28
- * @throws {@link Chrt.UnprocessableEntityError}
29
- *
30
- * @example
31
- * await client.utils.dev.postAgentPingScheduleV1()
32
- */
33
- postAgentPingScheduleV1(request = {}, requestOptions) {
34
- return core.HttpResponsePromise.fromPromise(this.__postAgentPingScheduleV1(request, requestOptions));
35
- }
36
- __postAgentPingScheduleV1() {
37
- return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
38
- var _a, _b, _c, _d;
39
- let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
40
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
41
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "dev/agent/ping-schedule/v1"),
42
- method: "POST",
43
- headers: _headers,
44
- contentType: "application/json",
45
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
46
- requestType: "json",
47
- body: request,
48
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
49
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
50
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
51
- });
52
- if (_response.ok) {
53
- return { data: _response.body, rawResponse: _response.rawResponse };
54
- }
55
- if (_response.error.reason === "status-code") {
56
- switch (_response.error.statusCode) {
57
- case 422:
58
- throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
59
- default:
60
- throw new errors.ChrtError({
61
- statusCode: _response.error.statusCode,
62
- body: _response.error.body,
63
- rawResponse: _response.rawResponse,
64
- });
65
- }
66
- }
67
- switch (_response.error.reason) {
68
- case "non-json":
69
- throw new errors.ChrtError({
70
- statusCode: _response.error.statusCode,
71
- body: _response.error.rawBody,
72
- rawResponse: _response.rawResponse,
73
- });
74
- case "timeout":
75
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /dev/agent/ping-schedule/v1.");
76
- case "unknown":
77
- throw new errors.ChrtError({
78
- message: _response.error.errorMessage,
79
- rawResponse: _response.rawResponse,
80
- });
81
- }
82
- });
83
- }
84
22
  /**
85
23
  * Runs a minimal Temporal workflow that sends a prompt to OpenAI and returns the response. | (PingOpenAIReq) -> (PingOpenAIRes)
86
24
  *
@@ -1,4 +1,3 @@
1
- export { type ScheduledPingReq } from "./ScheduledPingReq.mjs";
2
1
  export { type PingOpenAiReq } from "./PingOpenAiReq.mjs";
3
2
  export { type PingReq } from "./PingReq.mjs";
4
3
  export { type TemplateReq } from "./TemplateReq.mjs";
@@ -1,10 +1,11 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as Chrt from "../index.mjs";
4
5
  /**
5
- * Response model for flight info lookup by task.
6
+ * Response model for flight info lookup by task — the ordered flight legs
7
+ * of the adjacent CARGO_ON_FLIGHT task group.
6
8
  */
7
9
  export interface FlightInfoForTaskRes {
8
- flight_number?: string | null;
9
- fa_flight_ids?: string[];
10
+ flight_legs?: Chrt.FlightLeg1[];
10
11
  }
@@ -0,0 +1,19 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.mjs";
5
+ export interface FlightLeg1 {
6
+ schema_version: number;
7
+ _id: string;
8
+ order_id: string;
9
+ task_group_id: string;
10
+ flight_number: string;
11
+ provenance: Chrt.FlightLegProvenanceEnum1;
12
+ carrier_iata?: string | null;
13
+ carrier_icao?: string | null;
14
+ origin_iata?: string | null;
15
+ destination_iata?: string | null;
16
+ scheduled_departure_utc?: string | null;
17
+ scheduled_arrival_utc?: string | null;
18
+ fa_flight_ids?: string[];
19
+ }
@@ -0,0 +1,16 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.mjs";
5
+ export interface FlightLegClientCreate1 {
6
+ schema_version: number;
7
+ flight_number: string;
8
+ provenance: Chrt.FlightLegProvenanceEnum1;
9
+ carrier_iata?: string | null;
10
+ carrier_icao?: string | null;
11
+ origin_iata?: string | null;
12
+ destination_iata?: string | null;
13
+ scheduled_departure_utc?: string | null;
14
+ scheduled_arrival_utc?: string | null;
15
+ fa_flight_ids?: string[];
16
+ }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type FlightLegProvenanceEnum1 = "manual" | "cirium" | "flightaware";
5
+ export declare const FlightLegProvenanceEnum1: {
6
+ readonly Manual: "manual";
7
+ readonly Cirium: "cirium";
8
+ readonly Flightaware: "flightaware";
9
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export const FlightLegProvenanceEnum1 = {
5
+ Manual: "manual",
6
+ Cirium: "cirium",
7
+ Flightaware: "flightaware",
8
+ };
@@ -0,0 +1,22 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * A single flight leg in a task group's ordered flight legs.
6
+ */
7
+ export interface FlightLegWebhookInfo {
8
+ /** The flight number */
9
+ flight_number: string;
10
+ /** Carrier IATA code */
11
+ carrier_iata?: string | null;
12
+ /** Origin airport IATA code */
13
+ origin_iata?: string | null;
14
+ /** Destination airport IATA code */
15
+ destination_iata?: string | null;
16
+ /** Scheduled departure (UTC) */
17
+ scheduled_departure_utc?: string | null;
18
+ /** Scheduled arrival (UTC) */
19
+ scheduled_arrival_utc?: string | null;
20
+ /** FlightAware flight UUIDs associated with this leg */
21
+ fa_flight_ids?: string[];
22
+ }
@@ -9,6 +9,7 @@ export interface OrderSchedule1 {
9
9
  order_manifest?: Chrt.OrderManifest1 | null;
10
10
  schedule_spec?: Chrt.OrderScheduleSpec1 | null;
11
11
  _id: string;
12
+ short_id: string;
12
13
  /** Must be a string starting with `user_` */
13
14
  owned_by_user_id: string;
14
15
  /** Must be a string starting with `org_` */
@@ -3,6 +3,7 @@
3
3
  */
4
4
  import * as Chrt from "../index.mjs";
5
5
  export interface OrderScheduleAboutRes {
6
+ short_id: string;
6
7
  orders_created_count: number;
7
8
  orchestrator_schedule_status: Chrt.OrderScheduleOrchestratorScheduleStatus;
8
9
  }
@@ -1,9 +1,8 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as Chrt from "../index.mjs";
4
5
  export interface SetFlightInfoReq {
5
- /** Flight number to set on the task group */
6
- flight_number?: string | null;
7
- /** Flight Aware's uuid for flights */
8
- fa_flight_ids?: string[] | null;
6
+ /** Ordered list of flight legs for the task group. Replaces any existing flight legs. Pass an empty list to clear all flight legs. */
7
+ flight_legs: Chrt.FlightLegClientCreate1[];
9
8
  }
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as Chrt from "../index.mjs";
4
5
  export interface ShippingTaskGroupFlightInfoUpdatedWebhookPayload {
5
6
  event_type?: "shipping.task_group.flight_info_updated";
6
7
  /** UTC timestamp when the event occurred */
@@ -9,8 +10,6 @@ export interface ShippingTaskGroupFlightInfoUpdatedWebhookPayload {
9
10
  order_id: string;
10
11
  /** The task group whose flight info was updated */
11
12
  task_group_id: string;
12
- /** The flight number (if set) */
13
- flight_number?: string | null;
14
- /** FlightAware flight UUIDs associated with this task group */
15
- fa_flight_ids: string[];
13
+ /** The task group's ordered flight legs */
14
+ flight_legs: Chrt.FlightLegWebhookInfo[];
16
15
  }
@@ -39,8 +39,7 @@ export interface TaskGroup1 {
39
39
  mileage_observed?: number | null;
40
40
  wait_time_total_minutes?: number | null;
41
41
  mileage_asserted?: boolean;
42
- flight_number?: string | null;
43
- fa_flight_ids?: string[];
42
+ flight_leg_ids?: string[];
44
43
  messages?: Chrt.TaskGroupMessage1[];
45
44
  shipper_pay_provider_rate_sheet_id?: string | null;
46
45
  shipper_pay_provider_line_item_group_id?: string | null;
@@ -148,6 +148,10 @@ export * from "./FlightAwareAlertFlight.mjs";
148
148
  export * from "./FlightAwareAlertPayload.mjs";
149
149
  export * from "./FlightAwareWebhookResponse.mjs";
150
150
  export * from "./FlightInfoForTaskRes.mjs";
151
+ export * from "./FlightLeg1.mjs";
152
+ export * from "./FlightLegClientCreate1.mjs";
153
+ export * from "./FlightLegProvenanceEnum1.mjs";
154
+ export * from "./FlightLegWebhookInfo.mjs";
151
155
  export * from "./FlightStatusEnum.mjs";
152
156
  export * from "./GeometryCollectionGeometriesItem.mjs";
153
157
  export * from "./GeometryCollection.mjs";
@@ -294,9 +298,7 @@ export * from "./ScanPayloadKindEnum.mjs";
294
298
  export * from "./ScheduleCalendarSpec.mjs";
295
299
  export * from "./ScheduleIntervalSpec.mjs";
296
300
  export * from "./ScheduleRange.mjs";
297
- export * from "./ScheduleSpec.mjs";
298
301
  export * from "./ScheduledOrdersNewDraftReq.mjs";
299
- export * from "./ScheduledPingRes.mjs";
300
302
  export * from "./Session1.mjs";
301
303
  export * from "./SessionByDeviceDataPoint1.mjs";
302
304
  export * from "./SessionByDeviceDataPointMetadata1.mjs";
@@ -148,6 +148,10 @@ export * from "./FlightAwareAlertFlight.mjs";
148
148
  export * from "./FlightAwareAlertPayload.mjs";
149
149
  export * from "./FlightAwareWebhookResponse.mjs";
150
150
  export * from "./FlightInfoForTaskRes.mjs";
151
+ export * from "./FlightLeg1.mjs";
152
+ export * from "./FlightLegClientCreate1.mjs";
153
+ export * from "./FlightLegProvenanceEnum1.mjs";
154
+ export * from "./FlightLegWebhookInfo.mjs";
151
155
  export * from "./FlightStatusEnum.mjs";
152
156
  export * from "./GeometryCollectionGeometriesItem.mjs";
153
157
  export * from "./GeometryCollection.mjs";
@@ -294,9 +298,7 @@ export * from "./ScanPayloadKindEnum.mjs";
294
298
  export * from "./ScheduleCalendarSpec.mjs";
295
299
  export * from "./ScheduleIntervalSpec.mjs";
296
300
  export * from "./ScheduleRange.mjs";
297
- export * from "./ScheduleSpec.mjs";
298
301
  export * from "./ScheduledOrdersNewDraftReq.mjs";
299
- export * from "./ScheduledPingRes.mjs";
300
302
  export * from "./Session1.mjs";
301
303
  export * from "./SessionByDeviceDataPoint1.mjs";
302
304
  export * from "./SessionByDeviceDataPointMetadata1.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.749.0";
1
+ export declare const SDK_VERSION = "1.751.0";
@@ -1 +1 @@
1
- export const SDK_VERSION = "1.749.0";
1
+ export const SDK_VERSION = "1.751.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chrt-inc/typescript-sdk",
3
- "version": "1.749.0",
3
+ "version": "1.751.0",
4
4
  "private": false,
5
5
  "repository": "github:chrt-inc/typescript-sdk",
6
6
  "type": "commonjs",
package/reference.md CHANGED
@@ -17510,6 +17510,69 @@ await client.shipping.flights.getFlightInfoForTaskV1("task_id");
17510
17510
  </dl>
17511
17511
  </details>
17512
17512
 
17513
+ <details><summary><code>client.shipping.flights.<a href="/src/api/resources/shipping/resources/flights/client/Client.ts">getFlightLegsForTaskGroupV1</a>(taskGroupId) -> Chrt.FlightInfoForTaskRes</code></summary>
17514
+ <dl>
17515
+ <dd>
17516
+
17517
+ #### 📝 Description
17518
+
17519
+ <dl>
17520
+ <dd>
17521
+
17522
+ <dl>
17523
+ <dd>
17524
+
17525
+ Returns the ordered list of flight legs for a task group. | authz_personas=[driver_for_executor, coordinator_org_operators, executor_org_operators, shipper_org_operators] | () -> (FlightInfoForTaskRes)
17526
+
17527
+ </dd>
17528
+ </dl>
17529
+ </dd>
17530
+ </dl>
17531
+
17532
+ #### 🔌 Usage
17533
+
17534
+ <dl>
17535
+ <dd>
17536
+
17537
+ <dl>
17538
+ <dd>
17539
+
17540
+ ```typescript
17541
+ await client.shipping.flights.getFlightLegsForTaskGroupV1("task_group_id");
17542
+ ```
17543
+
17544
+ </dd>
17545
+ </dl>
17546
+ </dd>
17547
+ </dl>
17548
+
17549
+ #### ⚙️ Parameters
17550
+
17551
+ <dl>
17552
+ <dd>
17553
+
17554
+ <dl>
17555
+ <dd>
17556
+
17557
+ **taskGroupId:** `string`
17558
+
17559
+ </dd>
17560
+ </dl>
17561
+
17562
+ <dl>
17563
+ <dd>
17564
+
17565
+ **requestOptions:** `Flights.RequestOptions`
17566
+
17567
+ </dd>
17568
+ </dl>
17569
+ </dd>
17570
+ </dl>
17571
+
17572
+ </dd>
17573
+ </dl>
17574
+ </details>
17575
+
17513
17576
  ## Shipping TaskArtifacts
17514
17577
 
17515
17578
  <details><summary><code>client.shipping.taskArtifacts.<a href="/src/api/resources/shipping/resources/taskArtifacts/client/Client.ts">addToTaskV1</a>(taskId, { ...params }) -> string</code></summary>
@@ -20369,7 +20432,7 @@ await client.shipping.taskGroups.removeExecutorV1("task_group_id");
20369
20432
  <dl>
20370
20433
  <dd>
20371
20434
 
20372
- Sets the flight number and/or fa_flight_ids on a task group. | authz_personas=[lig_owner_operators] | (SetFlightInfoReq) -> (bool)
20435
+ Replaces the ordered list of flights on a task group. | authz_personas=[lig_owner_operators] | (SetFlightInfoReq) -> (bool)
20373
20436
 
20374
20437
  </dd>
20375
20438
  </dl>
@@ -20385,7 +20448,15 @@ Sets the flight number and/or fa_flight_ids on a task group. | authz_personas=[l
20385
20448
  <dd>
20386
20449
 
20387
20450
  ```typescript
20388
- await client.shipping.taskGroups.setFlightInfoV1("task_group_id", {});
20451
+ await client.shipping.taskGroups.setFlightInfoV1("task_group_id", {
20452
+ flight_legs: [
20453
+ {
20454
+ schema_version: 1,
20455
+ flight_number: "flight_number",
20456
+ provenance: "manual",
20457
+ },
20458
+ ],
20459
+ });
20389
20460
  ```
20390
20461
 
20391
20462
  </dd>
@@ -23087,7 +23158,7 @@ await client.shipping.orderDrafts.taskGroup.addV1({
23087
23158
  <dl>
23088
23159
  <dd>
23089
23160
 
23090
- Sets the flight number and/or fa_flight_ids on a draft task group. | (SetFlightInfoReq) -> (bool)
23161
+ Replaces the ordered list of flights on a draft task group. | (SetFlightInfoReq) -> (bool)
23091
23162
 
23092
23163
  </dd>
23093
23164
  </dl>
@@ -23103,7 +23174,15 @@ Sets the flight number and/or fa_flight_ids on a draft task group. | (SetFlightI
23103
23174
  <dd>
23104
23175
 
23105
23176
  ```typescript
23106
- await client.shipping.orderDrafts.taskGroup.setFlightInfoV1("task_group_id", {});
23177
+ await client.shipping.orderDrafts.taskGroup.setFlightInfoV1("task_group_id", {
23178
+ flight_legs: [
23179
+ {
23180
+ schema_version: 1,
23181
+ flight_number: "flight_number",
23182
+ provenance: "manual",
23183
+ },
23184
+ ],
23185
+ });
23107
23186
  ```
23108
23187
 
23109
23188
  </dd>
@@ -30400,69 +30479,6 @@ await client.users.directoryEntries.deleteV1("directory_entry_id");
30400
30479
 
30401
30480
  ## Utils Dev
30402
30481
 
30403
- <details><summary><code>client.utils.dev.<a href="/src/api/resources/utils/resources/dev/client/Client.ts">postAgentPingScheduleV1</a>({ ...params }) -> Chrt.ScheduledPingRes</code></summary>
30404
- <dl>
30405
- <dd>
30406
-
30407
- #### 📝 Description
30408
-
30409
- <dl>
30410
- <dd>
30411
-
30412
- <dl>
30413
- <dd>
30414
-
30415
- Creates or updates a Temporal Schedule that runs the scheduled ping workflow for developer diagnostics. | authz: min_org_role=administrator | (ScheduledPingReq) -> (ScheduledPingRes)
30416
-
30417
- </dd>
30418
- </dl>
30419
- </dd>
30420
- </dl>
30421
-
30422
- #### 🔌 Usage
30423
-
30424
- <dl>
30425
- <dd>
30426
-
30427
- <dl>
30428
- <dd>
30429
-
30430
- ```typescript
30431
- await client.utils.dev.postAgentPingScheduleV1();
30432
- ```
30433
-
30434
- </dd>
30435
- </dl>
30436
- </dd>
30437
- </dl>
30438
-
30439
- #### ⚙️ Parameters
30440
-
30441
- <dl>
30442
- <dd>
30443
-
30444
- <dl>
30445
- <dd>
30446
-
30447
- **request:** `Chrt.utils.ScheduledPingReq`
30448
-
30449
- </dd>
30450
- </dl>
30451
-
30452
- <dl>
30453
- <dd>
30454
-
30455
- **requestOptions:** `Dev.RequestOptions`
30456
-
30457
- </dd>
30458
- </dl>
30459
- </dd>
30460
- </dl>
30461
-
30462
- </dd>
30463
- </dl>
30464
- </details>
30465
-
30466
30482
  <details><summary><code>client.utils.dev.<a href="/src/api/resources/utils/resources/dev/client/Client.ts">postAgentOpenaiPingV1</a>({ ...params }) -> Chrt.PingOpenAiRes</code></summary>
30467
30483
  <dl>
30468
30484
  <dd>
@@ -1,13 +0,0 @@
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
- */
9
- export interface ScheduledPingReq {
10
- message?: string;
11
- schedule_spec?: Chrt.ScheduleSpec;
12
- catchup_window_seconds?: number;
13
- }
@@ -1,14 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Chrt from "../index.js";
5
- export interface ScheduleSpec {
6
- calendars?: Chrt.ScheduleCalendarSpec[];
7
- intervals?: Chrt.ScheduleIntervalSpec[];
8
- cron_expressions?: string[];
9
- skip?: Chrt.ScheduleCalendarSpec[];
10
- start_at?: string | null;
11
- end_at?: string | null;
12
- jitter?: string | null;
13
- time_zone_name?: string | null;
14
- }