@chrt-inc/typescript-sdk 1.866.0 → 1.875.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 (24) hide show
  1. package/dist/cjs/Client.js +2 -2
  2. package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/client/Client.d.ts +2 -2
  3. package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/client/Client.js +2 -2
  4. package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/types/OrderBuilderStreamEvent.d.ts +1 -0
  5. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.ts +4 -0
  6. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.js +34 -2
  7. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForCoordinatorOperatorsV1Request.d.ts +5 -0
  8. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForProviderOperatorsV1Request.d.ts +5 -0
  9. package/dist/cjs/api/types/OrderBuilderReq.d.ts +3 -0
  10. package/dist/cjs/version.d.ts +1 -1
  11. package/dist/cjs/version.js +1 -1
  12. package/dist/esm/Client.mjs +2 -2
  13. package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/client/Client.d.mts +2 -2
  14. package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/client/Client.mjs +2 -2
  15. package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/types/OrderBuilderStreamEvent.d.mts +1 -0
  16. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.mts +4 -0
  17. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.mjs +34 -2
  18. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForCoordinatorOperatorsV1Request.d.mts +5 -0
  19. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForProviderOperatorsV1Request.d.mts +5 -0
  20. package/dist/esm/api/types/OrderBuilderReq.d.mts +3 -0
  21. package/dist/esm/version.d.mts +1 -1
  22. package/dist/esm/version.mjs +1 -1
  23. package/package.json +1 -1
  24. package/reference.md +6 -2
@@ -57,8 +57,8 @@ class ChrtClient {
57
57
  this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
58
58
  "X-Fern-Language": "JavaScript",
59
59
  "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
60
- "X-Fern-SDK-Version": "1.866.0",
61
- "User-Agent": "@chrt-inc/typescript-sdk/1.866.0",
60
+ "X-Fern-SDK-Version": "1.875.0",
61
+ "User-Agent": "@chrt-inc/typescript-sdk/1.875.0",
62
62
  "X-Fern-Runtime": core.RUNTIME.type,
63
63
  "X-Fern-Runtime-Version": core.RUNTIME.version,
64
64
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -46,7 +46,7 @@ export declare class Drafts {
46
46
  get taskArtifact(): TaskArtifact;
47
47
  get taskGroup(): TaskGroup;
48
48
  /**
49
- * Creates a draft order, populating cargo, task groups, and tasks parsed from natural language or a template. | authz: min_org_role=operator | (OrderBuilderReq) -> (OrderBuilderRes)
49
+ * Creates a draft order from an ad-hoc core or saved template. When both a core and template ID are supplied, the core drives the build and the template ID is recorded as provenance. | authz: min_org_role=operator | (OrderBuilderReq) -> (OrderBuilderRes)
50
50
  *
51
51
  * @param {Chrt.OrderBuilderReq} request
52
52
  * @param {Drafts.RequestOptions} requestOptions - Request-specific configuration.
@@ -72,7 +72,7 @@ export declare class Drafts {
72
72
  buildPrecheckV1(request: Chrt.OrderBuilderReq, requestOptions?: Drafts.RequestOptions): core.HttpResponsePromise<Chrt.OrderTemplateResolvabilityRes>;
73
73
  private __buildPrecheckV1;
74
74
  /**
75
- * Creates a draft order from natural language or a template and streams progress events via SSE. | authz: min_org_role=operator | (OrderBuilderReq) -> (OrderBuilderStreamEvent)
75
+ * Creates a draft order from an ad-hoc core or saved template and streams progress events via SSE. When both a core and template ID are supplied, the core drives the build and the template ID is recorded as provenance. | authz: min_org_role=operator | (OrderBuilderReq) -> (OrderBuilderStreamEvent)
76
76
  */
77
77
  buildWithStreamingV1(request: Chrt.OrderBuilderReq, requestOptions?: Drafts.RequestOptions): core.HttpResponsePromise<core.Stream<Chrt.shipping.orders.OrderBuilderStreamEvent>>;
78
78
  private __buildWithStreamingV1;
@@ -81,7 +81,7 @@ class Drafts {
81
81
  return ((_a = this._taskGroup) !== null && _a !== void 0 ? _a : (this._taskGroup = new Client_js_5.TaskGroup(this._options)));
82
82
  }
83
83
  /**
84
- * Creates a draft order, populating cargo, task groups, and tasks parsed from natural language or a template. | authz: min_org_role=operator | (OrderBuilderReq) -> (OrderBuilderRes)
84
+ * Creates a draft order from an ad-hoc core or saved template. When both a core and template ID are supplied, the core drives the build and the template ID is recorded as provenance. | authz: min_org_role=operator | (OrderBuilderReq) -> (OrderBuilderRes)
85
85
  *
86
86
  * @param {Chrt.OrderBuilderReq} request
87
87
  * @param {Drafts.RequestOptions} requestOptions - Request-specific configuration.
@@ -205,7 +205,7 @@ class Drafts {
205
205
  });
206
206
  }
207
207
  /**
208
- * Creates a draft order from natural language or a template and streams progress events via SSE. | authz: min_org_role=operator | (OrderBuilderReq) -> (OrderBuilderStreamEvent)
208
+ * Creates a draft order from an ad-hoc core or saved template and streams progress events via SSE. When both a core and template ID are supplied, the core drives the build and the template ID is recorded as provenance. | authz: min_org_role=operator | (OrderBuilderReq) -> (OrderBuilderStreamEvent)
209
209
  */
210
210
  buildWithStreamingV1(request, requestOptions) {
211
211
  return core.HttpResponsePromise.fromPromise(this.__buildWithStreamingV1(request, requestOptions));
@@ -11,6 +11,7 @@ export interface OrderBuilderStreamEvent {
11
11
  notes?: string[] | null;
12
12
  order_id?: string | null;
13
13
  order_short_id?: string | null;
14
+ progress: number;
14
15
  summary?: string | null;
15
16
  validation_issues?: string[] | null;
16
17
  validation_passed?: boolean | null;
@@ -116,6 +116,8 @@ export declare class Expanded {
116
116
  * filter_executor_org_id: "filter_executor_org_id",
117
117
  * filter_shipper_org_id: "filter_shipper_org_id",
118
118
  * filter_off_chrt_shipper_org_id: "filter_off_chrt_shipper_org_id",
119
+ * filter_coordinator_department_id: "filter_coordinator_department_id",
120
+ * filter_coordinator_label: "filter_coordinator_label",
119
121
  * body: {}
120
122
  * })
121
123
  */
@@ -188,6 +190,8 @@ export declare class Expanded {
188
190
  * filter_coordinator_org_id: "filter_coordinator_org_id",
189
191
  * filter_shipper_org_id: "filter_shipper_org_id",
190
192
  * filter_off_chrt_shipper_org_id: "filter_off_chrt_shipper_org_id",
193
+ * filter_coordinator_department_id: "filter_coordinator_department_id",
194
+ * filter_coordinator_label: "filter_coordinator_label",
191
195
  * body: {}
192
196
  * })
193
197
  */
@@ -337,6 +337,8 @@ class Expanded {
337
337
  * filter_executor_org_id: "filter_executor_org_id",
338
338
  * filter_shipper_org_id: "filter_shipper_org_id",
339
339
  * filter_off_chrt_shipper_org_id: "filter_off_chrt_shipper_org_id",
340
+ * filter_coordinator_department_id: "filter_coordinator_department_id",
341
+ * filter_coordinator_label: "filter_coordinator_label",
340
342
  * body: {}
341
343
  * })
342
344
  */
@@ -346,7 +348,7 @@ class Expanded {
346
348
  __listForCoordinatorOperatorsV1(request, requestOptions) {
347
349
  return __awaiter(this, void 0, void 0, function* () {
348
350
  var _a, _b, _c, _d, _e, _f;
349
- const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_status: filterStatus, filter_draft_started_at_timestamp_lte: filterDraftStartedAtTimestampLte, filter_draft_started_at_timestamp_gte: filterDraftStartedAtTimestampGte, filter_staged_at_timestamp_lte: filterStagedAtTimestampLte, filter_staged_at_timestamp_gte: filterStagedAtTimestampGte, filter_in_progress_at_timestamp_lte: filterInProgressAtTimestampLte, filter_in_progress_at_timestamp_gte: filterInProgressAtTimestampGte, filter_completed_at_timestamp_lte: filterCompletedAtTimestampLte, filter_completed_at_timestamp_gte: filterCompletedAtTimestampGte, filter_cancelled_at_timestamp_lte: filterCancelledAtTimestampLte, filter_cancelled_at_timestamp_gte: filterCancelledAtTimestampGte, filter_exception_at_timestamp_lte: filterExceptionAtTimestampLte, filter_exception_at_timestamp_gte: filterExceptionAtTimestampGte, filter_executor_org_id: filterExecutorOrgId, filter_shipper_org_id: filterShipperOrgId, filter_off_chrt_shipper_org_id: filterOffChrtShipperOrgId, body: _body, } = request;
351
+ const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_status: filterStatus, filter_draft_started_at_timestamp_lte: filterDraftStartedAtTimestampLte, filter_draft_started_at_timestamp_gte: filterDraftStartedAtTimestampGte, filter_staged_at_timestamp_lte: filterStagedAtTimestampLte, filter_staged_at_timestamp_gte: filterStagedAtTimestampGte, filter_in_progress_at_timestamp_lte: filterInProgressAtTimestampLte, filter_in_progress_at_timestamp_gte: filterInProgressAtTimestampGte, filter_completed_at_timestamp_lte: filterCompletedAtTimestampLte, filter_completed_at_timestamp_gte: filterCompletedAtTimestampGte, filter_cancelled_at_timestamp_lte: filterCancelledAtTimestampLte, filter_cancelled_at_timestamp_gte: filterCancelledAtTimestampGte, filter_exception_at_timestamp_lte: filterExceptionAtTimestampLte, filter_exception_at_timestamp_gte: filterExceptionAtTimestampGte, filter_executor_org_id: filterExecutorOrgId, filter_shipper_org_id: filterShipperOrgId, filter_off_chrt_shipper_org_id: filterOffChrtShipperOrgId, filter_coordinator_department_id: filterCoordinatorDepartmentId, filter_coordinator_assigned_user_ids: filterCoordinatorAssignedUserIds, filter_coordinator_label: filterCoordinatorLabel, body: _body, } = request;
350
352
  const _queryParams = {};
351
353
  if (sortBy !== undefined) {
352
354
  _queryParams["sort_by"] = sortBy;
@@ -416,6 +418,20 @@ class Expanded {
416
418
  if (filterOffChrtShipperOrgId !== undefined) {
417
419
  _queryParams["filter_off_chrt_shipper_org_id"] = filterOffChrtShipperOrgId;
418
420
  }
421
+ if (filterCoordinatorDepartmentId !== undefined) {
422
+ _queryParams["filter_coordinator_department_id"] = filterCoordinatorDepartmentId;
423
+ }
424
+ if (filterCoordinatorAssignedUserIds !== undefined) {
425
+ if (Array.isArray(filterCoordinatorAssignedUserIds)) {
426
+ _queryParams["filter_coordinator_assigned_user_ids"] = filterCoordinatorAssignedUserIds.map((item) => item);
427
+ }
428
+ else {
429
+ _queryParams["filter_coordinator_assigned_user_ids"] = filterCoordinatorAssignedUserIds;
430
+ }
431
+ }
432
+ if (filterCoordinatorLabel !== undefined) {
433
+ _queryParams["filter_coordinator_label"] = filterCoordinatorLabel;
434
+ }
419
435
  let _headers = (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
420
436
  const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
421
437
  url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ChrtEnvironment.Local, "shipping/orders/expanded/list/for_coordinator_operators/v1"),
@@ -653,6 +669,8 @@ class Expanded {
653
669
  * filter_coordinator_org_id: "filter_coordinator_org_id",
654
670
  * filter_shipper_org_id: "filter_shipper_org_id",
655
671
  * filter_off_chrt_shipper_org_id: "filter_off_chrt_shipper_org_id",
672
+ * filter_coordinator_department_id: "filter_coordinator_department_id",
673
+ * filter_coordinator_label: "filter_coordinator_label",
656
674
  * body: {}
657
675
  * })
658
676
  */
@@ -662,7 +680,7 @@ class Expanded {
662
680
  __listForProviderOperatorsV1(request, requestOptions) {
663
681
  return __awaiter(this, void 0, void 0, function* () {
664
682
  var _a, _b, _c, _d, _e, _f;
665
- const { provider_role: providerRole, sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_status: filterStatus, filter_draft_started_at_timestamp_lte: filterDraftStartedAtTimestampLte, filter_draft_started_at_timestamp_gte: filterDraftStartedAtTimestampGte, filter_staged_at_timestamp_lte: filterStagedAtTimestampLte, filter_staged_at_timestamp_gte: filterStagedAtTimestampGte, filter_in_progress_at_timestamp_lte: filterInProgressAtTimestampLte, filter_in_progress_at_timestamp_gte: filterInProgressAtTimestampGte, filter_completed_at_timestamp_lte: filterCompletedAtTimestampLte, filter_completed_at_timestamp_gte: filterCompletedAtTimestampGte, filter_cancelled_at_timestamp_lte: filterCancelledAtTimestampLte, filter_cancelled_at_timestamp_gte: filterCancelledAtTimestampGte, filter_exception_at_timestamp_lte: filterExceptionAtTimestampLte, filter_exception_at_timestamp_gte: filterExceptionAtTimestampGte, filter_executor_org_id: filterExecutorOrgId, filter_coordinator_org_id: filterCoordinatorOrgId, filter_shipper_org_id: filterShipperOrgId, filter_off_chrt_shipper_org_id: filterOffChrtShipperOrgId, body: _body, } = request;
683
+ const { provider_role: providerRole, sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_status: filterStatus, filter_draft_started_at_timestamp_lte: filterDraftStartedAtTimestampLte, filter_draft_started_at_timestamp_gte: filterDraftStartedAtTimestampGte, filter_staged_at_timestamp_lte: filterStagedAtTimestampLte, filter_staged_at_timestamp_gte: filterStagedAtTimestampGte, filter_in_progress_at_timestamp_lte: filterInProgressAtTimestampLte, filter_in_progress_at_timestamp_gte: filterInProgressAtTimestampGte, filter_completed_at_timestamp_lte: filterCompletedAtTimestampLte, filter_completed_at_timestamp_gte: filterCompletedAtTimestampGte, filter_cancelled_at_timestamp_lte: filterCancelledAtTimestampLte, filter_cancelled_at_timestamp_gte: filterCancelledAtTimestampGte, filter_exception_at_timestamp_lte: filterExceptionAtTimestampLte, filter_exception_at_timestamp_gte: filterExceptionAtTimestampGte, filter_executor_org_id: filterExecutorOrgId, filter_coordinator_org_id: filterCoordinatorOrgId, filter_shipper_org_id: filterShipperOrgId, filter_off_chrt_shipper_org_id: filterOffChrtShipperOrgId, filter_coordinator_department_id: filterCoordinatorDepartmentId, filter_coordinator_assigned_user_ids: filterCoordinatorAssignedUserIds, filter_coordinator_label: filterCoordinatorLabel, body: _body, } = request;
666
684
  const _queryParams = {};
667
685
  if (providerRole !== undefined) {
668
686
  _queryParams["provider_role"] = providerRole;
@@ -738,6 +756,20 @@ class Expanded {
738
756
  if (filterOffChrtShipperOrgId !== undefined) {
739
757
  _queryParams["filter_off_chrt_shipper_org_id"] = filterOffChrtShipperOrgId;
740
758
  }
759
+ if (filterCoordinatorDepartmentId !== undefined) {
760
+ _queryParams["filter_coordinator_department_id"] = filterCoordinatorDepartmentId;
761
+ }
762
+ if (filterCoordinatorAssignedUserIds !== undefined) {
763
+ if (Array.isArray(filterCoordinatorAssignedUserIds)) {
764
+ _queryParams["filter_coordinator_assigned_user_ids"] = filterCoordinatorAssignedUserIds.map((item) => item);
765
+ }
766
+ else {
767
+ _queryParams["filter_coordinator_assigned_user_ids"] = filterCoordinatorAssignedUserIds;
768
+ }
769
+ }
770
+ if (filterCoordinatorLabel !== undefined) {
771
+ _queryParams["filter_coordinator_label"] = filterCoordinatorLabel;
772
+ }
741
773
  let _headers = (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
742
774
  const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
743
775
  url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ChrtEnvironment.Local, "shipping/orders/expanded/list/for_provider_operators/v1"),
@@ -25,6 +25,8 @@ import * as Chrt from "../../../../../../../../index.js";
25
25
  * filter_executor_org_id: "filter_executor_org_id",
26
26
  * filter_shipper_org_id: "filter_shipper_org_id",
27
27
  * filter_off_chrt_shipper_org_id: "filter_off_chrt_shipper_org_id",
28
+ * filter_coordinator_department_id: "filter_coordinator_department_id",
29
+ * filter_coordinator_label: "filter_coordinator_label",
28
30
  * body: {}
29
31
  * }
30
32
  */
@@ -52,5 +54,8 @@ export interface ExpandedListForCoordinatorOperatorsV1Request {
52
54
  filter_executor_org_id?: string | null;
53
55
  filter_shipper_org_id?: string | null;
54
56
  filter_off_chrt_shipper_org_id?: string | null;
57
+ filter_coordinator_department_id?: string | null;
58
+ filter_coordinator_assigned_user_ids?: (string | null) | (string | null)[];
59
+ filter_coordinator_label?: string | null;
55
60
  body: Chrt.OrderAndTaskGroupExpandedReq;
56
61
  }
@@ -27,6 +27,8 @@ import * as Chrt from "../../../../../../../../index.js";
27
27
  * filter_coordinator_org_id: "filter_coordinator_org_id",
28
28
  * filter_shipper_org_id: "filter_shipper_org_id",
29
29
  * filter_off_chrt_shipper_org_id: "filter_off_chrt_shipper_org_id",
30
+ * filter_coordinator_department_id: "filter_coordinator_department_id",
31
+ * filter_coordinator_label: "filter_coordinator_label",
30
32
  * body: {}
31
33
  * }
32
34
  */
@@ -56,5 +58,8 @@ export interface ExpandedListForProviderOperatorsV1Request {
56
58
  filter_coordinator_org_id?: string | null;
57
59
  filter_shipper_org_id?: string | null;
58
60
  filter_off_chrt_shipper_org_id?: string | null;
61
+ filter_coordinator_department_id?: string | null;
62
+ filter_coordinator_assigned_user_ids?: (string | null) | (string | null)[];
63
+ filter_coordinator_label?: string | null;
59
64
  body: Chrt.OrderAndTaskGroupExpandedReq;
60
65
  }
@@ -3,6 +3,9 @@
3
3
  */
4
4
  import * as Chrt from "../index.js";
5
5
  export interface OrderBuilderReq {
6
+ /** Build input. Required if order_template_id is omitted. When both are provided, this edited core is used instead of the saved template. */
6
7
  order_template_core?: Chrt.OrderTemplateCore1 | null;
8
+ /** Saved-template provenance. Required if order_template_core is omitted. When provided, it is authorized for the caller and marked used when the draft opens. */
7
9
  order_template_id?: string | null;
10
+ stream_order_parsing_progress_updates?: boolean;
8
11
  }
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.866.0";
1
+ export declare const SDK_VERSION = "1.875.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.866.0";
4
+ exports.SDK_VERSION = "1.875.0";
@@ -21,8 +21,8 @@ export class ChrtClient {
21
21
  this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
22
22
  "X-Fern-Language": "JavaScript",
23
23
  "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
24
- "X-Fern-SDK-Version": "1.866.0",
25
- "User-Agent": "@chrt-inc/typescript-sdk/1.866.0",
24
+ "X-Fern-SDK-Version": "1.875.0",
25
+ "User-Agent": "@chrt-inc/typescript-sdk/1.875.0",
26
26
  "X-Fern-Runtime": core.RUNTIME.type,
27
27
  "X-Fern-Runtime-Version": core.RUNTIME.version,
28
28
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -46,7 +46,7 @@ export declare class Drafts {
46
46
  get taskArtifact(): TaskArtifact;
47
47
  get taskGroup(): TaskGroup;
48
48
  /**
49
- * Creates a draft order, populating cargo, task groups, and tasks parsed from natural language or a template. | authz: min_org_role=operator | (OrderBuilderReq) -> (OrderBuilderRes)
49
+ * Creates a draft order from an ad-hoc core or saved template. When both a core and template ID are supplied, the core drives the build and the template ID is recorded as provenance. | authz: min_org_role=operator | (OrderBuilderReq) -> (OrderBuilderRes)
50
50
  *
51
51
  * @param {Chrt.OrderBuilderReq} request
52
52
  * @param {Drafts.RequestOptions} requestOptions - Request-specific configuration.
@@ -72,7 +72,7 @@ export declare class Drafts {
72
72
  buildPrecheckV1(request: Chrt.OrderBuilderReq, requestOptions?: Drafts.RequestOptions): core.HttpResponsePromise<Chrt.OrderTemplateResolvabilityRes>;
73
73
  private __buildPrecheckV1;
74
74
  /**
75
- * Creates a draft order from natural language or a template and streams progress events via SSE. | authz: min_org_role=operator | (OrderBuilderReq) -> (OrderBuilderStreamEvent)
75
+ * Creates a draft order from an ad-hoc core or saved template and streams progress events via SSE. When both a core and template ID are supplied, the core drives the build and the template ID is recorded as provenance. | authz: min_org_role=operator | (OrderBuilderReq) -> (OrderBuilderStreamEvent)
76
76
  */
77
77
  buildWithStreamingV1(request: Chrt.OrderBuilderReq, requestOptions?: Drafts.RequestOptions): core.HttpResponsePromise<core.Stream<Chrt.shipping.orders.OrderBuilderStreamEvent>>;
78
78
  private __buildWithStreamingV1;
@@ -45,7 +45,7 @@ export class Drafts {
45
45
  return ((_a = this._taskGroup) !== null && _a !== void 0 ? _a : (this._taskGroup = new TaskGroup(this._options)));
46
46
  }
47
47
  /**
48
- * Creates a draft order, populating cargo, task groups, and tasks parsed from natural language or a template. | authz: min_org_role=operator | (OrderBuilderReq) -> (OrderBuilderRes)
48
+ * Creates a draft order from an ad-hoc core or saved template. When both a core and template ID are supplied, the core drives the build and the template ID is recorded as provenance. | authz: min_org_role=operator | (OrderBuilderReq) -> (OrderBuilderRes)
49
49
  *
50
50
  * @param {Chrt.OrderBuilderReq} request
51
51
  * @param {Drafts.RequestOptions} requestOptions - Request-specific configuration.
@@ -169,7 +169,7 @@ export class Drafts {
169
169
  });
170
170
  }
171
171
  /**
172
- * Creates a draft order from natural language or a template and streams progress events via SSE. | authz: min_org_role=operator | (OrderBuilderReq) -> (OrderBuilderStreamEvent)
172
+ * Creates a draft order from an ad-hoc core or saved template and streams progress events via SSE. When both a core and template ID are supplied, the core drives the build and the template ID is recorded as provenance. | authz: min_org_role=operator | (OrderBuilderReq) -> (OrderBuilderStreamEvent)
173
173
  */
174
174
  buildWithStreamingV1(request, requestOptions) {
175
175
  return core.HttpResponsePromise.fromPromise(this.__buildWithStreamingV1(request, requestOptions));
@@ -11,6 +11,7 @@ export interface OrderBuilderStreamEvent {
11
11
  notes?: string[] | null;
12
12
  order_id?: string | null;
13
13
  order_short_id?: string | null;
14
+ progress: number;
14
15
  summary?: string | null;
15
16
  validation_issues?: string[] | null;
16
17
  validation_passed?: boolean | null;
@@ -116,6 +116,8 @@ export declare class Expanded {
116
116
  * filter_executor_org_id: "filter_executor_org_id",
117
117
  * filter_shipper_org_id: "filter_shipper_org_id",
118
118
  * filter_off_chrt_shipper_org_id: "filter_off_chrt_shipper_org_id",
119
+ * filter_coordinator_department_id: "filter_coordinator_department_id",
120
+ * filter_coordinator_label: "filter_coordinator_label",
119
121
  * body: {}
120
122
  * })
121
123
  */
@@ -188,6 +190,8 @@ export declare class Expanded {
188
190
  * filter_coordinator_org_id: "filter_coordinator_org_id",
189
191
  * filter_shipper_org_id: "filter_shipper_org_id",
190
192
  * filter_off_chrt_shipper_org_id: "filter_off_chrt_shipper_org_id",
193
+ * filter_coordinator_department_id: "filter_coordinator_department_id",
194
+ * filter_coordinator_label: "filter_coordinator_label",
191
195
  * body: {}
192
196
  * })
193
197
  */
@@ -301,6 +301,8 @@ export class Expanded {
301
301
  * filter_executor_org_id: "filter_executor_org_id",
302
302
  * filter_shipper_org_id: "filter_shipper_org_id",
303
303
  * filter_off_chrt_shipper_org_id: "filter_off_chrt_shipper_org_id",
304
+ * filter_coordinator_department_id: "filter_coordinator_department_id",
305
+ * filter_coordinator_label: "filter_coordinator_label",
304
306
  * body: {}
305
307
  * })
306
308
  */
@@ -310,7 +312,7 @@ export class Expanded {
310
312
  __listForCoordinatorOperatorsV1(request, requestOptions) {
311
313
  return __awaiter(this, void 0, void 0, function* () {
312
314
  var _a, _b, _c, _d, _e, _f;
313
- const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_status: filterStatus, filter_draft_started_at_timestamp_lte: filterDraftStartedAtTimestampLte, filter_draft_started_at_timestamp_gte: filterDraftStartedAtTimestampGte, filter_staged_at_timestamp_lte: filterStagedAtTimestampLte, filter_staged_at_timestamp_gte: filterStagedAtTimestampGte, filter_in_progress_at_timestamp_lte: filterInProgressAtTimestampLte, filter_in_progress_at_timestamp_gte: filterInProgressAtTimestampGte, filter_completed_at_timestamp_lte: filterCompletedAtTimestampLte, filter_completed_at_timestamp_gte: filterCompletedAtTimestampGte, filter_cancelled_at_timestamp_lte: filterCancelledAtTimestampLte, filter_cancelled_at_timestamp_gte: filterCancelledAtTimestampGte, filter_exception_at_timestamp_lte: filterExceptionAtTimestampLte, filter_exception_at_timestamp_gte: filterExceptionAtTimestampGte, filter_executor_org_id: filterExecutorOrgId, filter_shipper_org_id: filterShipperOrgId, filter_off_chrt_shipper_org_id: filterOffChrtShipperOrgId, body: _body, } = request;
315
+ const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_status: filterStatus, filter_draft_started_at_timestamp_lte: filterDraftStartedAtTimestampLte, filter_draft_started_at_timestamp_gte: filterDraftStartedAtTimestampGte, filter_staged_at_timestamp_lte: filterStagedAtTimestampLte, filter_staged_at_timestamp_gte: filterStagedAtTimestampGte, filter_in_progress_at_timestamp_lte: filterInProgressAtTimestampLte, filter_in_progress_at_timestamp_gte: filterInProgressAtTimestampGte, filter_completed_at_timestamp_lte: filterCompletedAtTimestampLte, filter_completed_at_timestamp_gte: filterCompletedAtTimestampGte, filter_cancelled_at_timestamp_lte: filterCancelledAtTimestampLte, filter_cancelled_at_timestamp_gte: filterCancelledAtTimestampGte, filter_exception_at_timestamp_lte: filterExceptionAtTimestampLte, filter_exception_at_timestamp_gte: filterExceptionAtTimestampGte, filter_executor_org_id: filterExecutorOrgId, filter_shipper_org_id: filterShipperOrgId, filter_off_chrt_shipper_org_id: filterOffChrtShipperOrgId, filter_coordinator_department_id: filterCoordinatorDepartmentId, filter_coordinator_assigned_user_ids: filterCoordinatorAssignedUserIds, filter_coordinator_label: filterCoordinatorLabel, body: _body, } = request;
314
316
  const _queryParams = {};
315
317
  if (sortBy !== undefined) {
316
318
  _queryParams["sort_by"] = sortBy;
@@ -380,6 +382,20 @@ export class Expanded {
380
382
  if (filterOffChrtShipperOrgId !== undefined) {
381
383
  _queryParams["filter_off_chrt_shipper_org_id"] = filterOffChrtShipperOrgId;
382
384
  }
385
+ if (filterCoordinatorDepartmentId !== undefined) {
386
+ _queryParams["filter_coordinator_department_id"] = filterCoordinatorDepartmentId;
387
+ }
388
+ if (filterCoordinatorAssignedUserIds !== undefined) {
389
+ if (Array.isArray(filterCoordinatorAssignedUserIds)) {
390
+ _queryParams["filter_coordinator_assigned_user_ids"] = filterCoordinatorAssignedUserIds.map((item) => item);
391
+ }
392
+ else {
393
+ _queryParams["filter_coordinator_assigned_user_ids"] = filterCoordinatorAssignedUserIds;
394
+ }
395
+ }
396
+ if (filterCoordinatorLabel !== undefined) {
397
+ _queryParams["filter_coordinator_label"] = filterCoordinatorLabel;
398
+ }
383
399
  let _headers = mergeHeaders((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
384
400
  const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
385
401
  url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ChrtEnvironment.Local, "shipping/orders/expanded/list/for_coordinator_operators/v1"),
@@ -617,6 +633,8 @@ export class Expanded {
617
633
  * filter_coordinator_org_id: "filter_coordinator_org_id",
618
634
  * filter_shipper_org_id: "filter_shipper_org_id",
619
635
  * filter_off_chrt_shipper_org_id: "filter_off_chrt_shipper_org_id",
636
+ * filter_coordinator_department_id: "filter_coordinator_department_id",
637
+ * filter_coordinator_label: "filter_coordinator_label",
620
638
  * body: {}
621
639
  * })
622
640
  */
@@ -626,7 +644,7 @@ export class Expanded {
626
644
  __listForProviderOperatorsV1(request, requestOptions) {
627
645
  return __awaiter(this, void 0, void 0, function* () {
628
646
  var _a, _b, _c, _d, _e, _f;
629
- const { provider_role: providerRole, sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_status: filterStatus, filter_draft_started_at_timestamp_lte: filterDraftStartedAtTimestampLte, filter_draft_started_at_timestamp_gte: filterDraftStartedAtTimestampGte, filter_staged_at_timestamp_lte: filterStagedAtTimestampLte, filter_staged_at_timestamp_gte: filterStagedAtTimestampGte, filter_in_progress_at_timestamp_lte: filterInProgressAtTimestampLte, filter_in_progress_at_timestamp_gte: filterInProgressAtTimestampGte, filter_completed_at_timestamp_lte: filterCompletedAtTimestampLte, filter_completed_at_timestamp_gte: filterCompletedAtTimestampGte, filter_cancelled_at_timestamp_lte: filterCancelledAtTimestampLte, filter_cancelled_at_timestamp_gte: filterCancelledAtTimestampGte, filter_exception_at_timestamp_lte: filterExceptionAtTimestampLte, filter_exception_at_timestamp_gte: filterExceptionAtTimestampGte, filter_executor_org_id: filterExecutorOrgId, filter_coordinator_org_id: filterCoordinatorOrgId, filter_shipper_org_id: filterShipperOrgId, filter_off_chrt_shipper_org_id: filterOffChrtShipperOrgId, body: _body, } = request;
647
+ const { provider_role: providerRole, sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_status: filterStatus, filter_draft_started_at_timestamp_lte: filterDraftStartedAtTimestampLte, filter_draft_started_at_timestamp_gte: filterDraftStartedAtTimestampGte, filter_staged_at_timestamp_lte: filterStagedAtTimestampLte, filter_staged_at_timestamp_gte: filterStagedAtTimestampGte, filter_in_progress_at_timestamp_lte: filterInProgressAtTimestampLte, filter_in_progress_at_timestamp_gte: filterInProgressAtTimestampGte, filter_completed_at_timestamp_lte: filterCompletedAtTimestampLte, filter_completed_at_timestamp_gte: filterCompletedAtTimestampGte, filter_cancelled_at_timestamp_lte: filterCancelledAtTimestampLte, filter_cancelled_at_timestamp_gte: filterCancelledAtTimestampGte, filter_exception_at_timestamp_lte: filterExceptionAtTimestampLte, filter_exception_at_timestamp_gte: filterExceptionAtTimestampGte, filter_executor_org_id: filterExecutorOrgId, filter_coordinator_org_id: filterCoordinatorOrgId, filter_shipper_org_id: filterShipperOrgId, filter_off_chrt_shipper_org_id: filterOffChrtShipperOrgId, filter_coordinator_department_id: filterCoordinatorDepartmentId, filter_coordinator_assigned_user_ids: filterCoordinatorAssignedUserIds, filter_coordinator_label: filterCoordinatorLabel, body: _body, } = request;
630
648
  const _queryParams = {};
631
649
  if (providerRole !== undefined) {
632
650
  _queryParams["provider_role"] = providerRole;
@@ -702,6 +720,20 @@ export class Expanded {
702
720
  if (filterOffChrtShipperOrgId !== undefined) {
703
721
  _queryParams["filter_off_chrt_shipper_org_id"] = filterOffChrtShipperOrgId;
704
722
  }
723
+ if (filterCoordinatorDepartmentId !== undefined) {
724
+ _queryParams["filter_coordinator_department_id"] = filterCoordinatorDepartmentId;
725
+ }
726
+ if (filterCoordinatorAssignedUserIds !== undefined) {
727
+ if (Array.isArray(filterCoordinatorAssignedUserIds)) {
728
+ _queryParams["filter_coordinator_assigned_user_ids"] = filterCoordinatorAssignedUserIds.map((item) => item);
729
+ }
730
+ else {
731
+ _queryParams["filter_coordinator_assigned_user_ids"] = filterCoordinatorAssignedUserIds;
732
+ }
733
+ }
734
+ if (filterCoordinatorLabel !== undefined) {
735
+ _queryParams["filter_coordinator_label"] = filterCoordinatorLabel;
736
+ }
705
737
  let _headers = mergeHeaders((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
706
738
  const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
707
739
  url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ChrtEnvironment.Local, "shipping/orders/expanded/list/for_provider_operators/v1"),
@@ -25,6 +25,8 @@ import * as Chrt from "../../../../../../../../index.mjs";
25
25
  * filter_executor_org_id: "filter_executor_org_id",
26
26
  * filter_shipper_org_id: "filter_shipper_org_id",
27
27
  * filter_off_chrt_shipper_org_id: "filter_off_chrt_shipper_org_id",
28
+ * filter_coordinator_department_id: "filter_coordinator_department_id",
29
+ * filter_coordinator_label: "filter_coordinator_label",
28
30
  * body: {}
29
31
  * }
30
32
  */
@@ -52,5 +54,8 @@ export interface ExpandedListForCoordinatorOperatorsV1Request {
52
54
  filter_executor_org_id?: string | null;
53
55
  filter_shipper_org_id?: string | null;
54
56
  filter_off_chrt_shipper_org_id?: string | null;
57
+ filter_coordinator_department_id?: string | null;
58
+ filter_coordinator_assigned_user_ids?: (string | null) | (string | null)[];
59
+ filter_coordinator_label?: string | null;
55
60
  body: Chrt.OrderAndTaskGroupExpandedReq;
56
61
  }
@@ -27,6 +27,8 @@ import * as Chrt from "../../../../../../../../index.mjs";
27
27
  * filter_coordinator_org_id: "filter_coordinator_org_id",
28
28
  * filter_shipper_org_id: "filter_shipper_org_id",
29
29
  * filter_off_chrt_shipper_org_id: "filter_off_chrt_shipper_org_id",
30
+ * filter_coordinator_department_id: "filter_coordinator_department_id",
31
+ * filter_coordinator_label: "filter_coordinator_label",
30
32
  * body: {}
31
33
  * }
32
34
  */
@@ -56,5 +58,8 @@ export interface ExpandedListForProviderOperatorsV1Request {
56
58
  filter_coordinator_org_id?: string | null;
57
59
  filter_shipper_org_id?: string | null;
58
60
  filter_off_chrt_shipper_org_id?: string | null;
61
+ filter_coordinator_department_id?: string | null;
62
+ filter_coordinator_assigned_user_ids?: (string | null) | (string | null)[];
63
+ filter_coordinator_label?: string | null;
59
64
  body: Chrt.OrderAndTaskGroupExpandedReq;
60
65
  }
@@ -3,6 +3,9 @@
3
3
  */
4
4
  import * as Chrt from "../index.mjs";
5
5
  export interface OrderBuilderReq {
6
+ /** Build input. Required if order_template_id is omitted. When both are provided, this edited core is used instead of the saved template. */
6
7
  order_template_core?: Chrt.OrderTemplateCore1 | null;
8
+ /** Saved-template provenance. Required if order_template_core is omitted. When provided, it is authorized for the caller and marked used when the draft opens. */
7
9
  order_template_id?: string | null;
10
+ stream_order_parsing_progress_updates?: boolean;
8
11
  }
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.866.0";
1
+ export declare const SDK_VERSION = "1.875.0";
@@ -1 +1 @@
1
- export const SDK_VERSION = "1.866.0";
1
+ export const SDK_VERSION = "1.875.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chrt-inc/typescript-sdk",
3
- "version": "1.866.0",
3
+ "version": "1.875.0",
4
4
  "private": false,
5
5
  "repository": "github:chrt-inc/typescript-sdk",
6
6
  "type": "commonjs",
package/reference.md CHANGED
@@ -24585,7 +24585,7 @@ await client.shipping.orderSchedules.draft.updateV1("order_schedule_id");
24585
24585
  <dl>
24586
24586
  <dd>
24587
24587
 
24588
- Creates a draft order, populating cargo, task groups, and tasks parsed from natural language or a template. | authz: min_org_role=operator | (OrderBuilderReq) -> (OrderBuilderRes)
24588
+ Creates a draft order from an ad-hoc core or saved template. When both a core and template ID are supplied, the core drives the build and the template ID is recorded as provenance. | authz: min_org_role=operator | (OrderBuilderReq) -> (OrderBuilderRes)
24589
24589
 
24590
24590
  </dd>
24591
24591
  </dl>
@@ -24711,7 +24711,7 @@ await client.shipping.orders.drafts.buildPrecheckV1({});
24711
24711
  <dl>
24712
24712
  <dd>
24713
24713
 
24714
- Creates a draft order from natural language or a template and streams progress events via SSE. | authz: min_org_role=operator | (OrderBuilderReq) -> (OrderBuilderStreamEvent)
24714
+ Creates a draft order from an ad-hoc core or saved template and streams progress events via SSE. When both a core and template ID are supplied, the core drives the build and the template ID is recorded as provenance. | authz: min_org_role=operator | (OrderBuilderReq) -> (OrderBuilderStreamEvent)
24715
24715
 
24716
24716
  </dd>
24717
24717
  </dl>
@@ -25716,6 +25716,8 @@ await client.shipping.orders.expanded.listForCoordinatorOperatorsV1({
25716
25716
  filter_executor_org_id: "filter_executor_org_id",
25717
25717
  filter_shipper_org_id: "filter_shipper_org_id",
25718
25718
  filter_off_chrt_shipper_org_id: "filter_off_chrt_shipper_org_id",
25719
+ filter_coordinator_department_id: "filter_coordinator_department_id",
25720
+ filter_coordinator_label: "filter_coordinator_label",
25719
25721
  body: {},
25720
25722
  });
25721
25723
  ```
@@ -25888,6 +25890,8 @@ await client.shipping.orders.expanded.listForProviderOperatorsV1({
25888
25890
  filter_coordinator_org_id: "filter_coordinator_org_id",
25889
25891
  filter_shipper_org_id: "filter_shipper_org_id",
25890
25892
  filter_off_chrt_shipper_org_id: "filter_off_chrt_shipper_org_id",
25893
+ filter_coordinator_department_id: "filter_coordinator_department_id",
25894
+ filter_coordinator_label: "filter_coordinator_label",
25891
25895
  body: {},
25892
25896
  });
25893
25897
  ```