@chrt-inc/typescript-sdk 1.869.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.
@@ -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.869.0",
61
- "User-Agent": "@chrt-inc/typescript-sdk/1.869.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;
@@ -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.869.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.869.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.869.0",
25
- "User-Agent": "@chrt-inc/typescript-sdk/1.869.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;
@@ -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.869.0";
1
+ export declare const SDK_VERSION = "1.875.0";
@@ -1 +1 @@
1
- export const SDK_VERSION = "1.869.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.869.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>