@chrt-inc/typescript-sdk 1.559.0 → 1.563.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.
- package/dist/cjs/Client.js +2 -2
- package/dist/cjs/api/resources/shipping/resources/docs/client/Client.d.ts +1 -11
- package/dist/cjs/api/resources/shipping/resources/docs/client/Client.js +1 -10
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.ts +2 -0
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.js +18 -10
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForForwarderOperatorsV1Request.d.ts +2 -0
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForShipperOperatorsV1Request.d.ts +2 -0
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.d.ts +2 -0
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.js +18 -10
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForCourierDriverV1Request.d.ts +2 -0
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForCourierOperatorsV1Request.d.ts +2 -0
- package/dist/cjs/api/resources/shipping/resources/tasks/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/shipping/resources/tasks/client/Client.js +1 -1
- package/dist/cjs/api/resources/utils/index.d.ts +1 -1
- package/dist/cjs/api/resources/utils/index.js +1 -1
- package/dist/cjs/api/resources/utils/resources/dev/client/Client.d.ts +2 -13
- package/dist/cjs/api/resources/utils/resources/dev/client/Client.js +14 -13
- package/dist/cjs/api/resources/utils/resources/dev/index.d.ts +1 -0
- package/dist/cjs/api/resources/utils/resources/dev/index.js +1 -0
- package/dist/cjs/api/resources/utils/resources/dev/types/OrderBuilderStreamEvent.d.ts +27 -0
- package/dist/cjs/api/resources/utils/resources/dev/types/OrderBuilderStreamEvent.js +14 -0
- package/dist/cjs/api/resources/utils/resources/dev/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/utils/resources/dev/types/index.js +17 -0
- package/dist/cjs/api/resources/utils/resources/index.d.ts +1 -0
- package/dist/cjs/api/resources/utils/resources/index.js +1 -0
- package/dist/cjs/api/types/TaskClientUpdate1.d.ts +2 -0
- package/dist/cjs/core/index.d.ts +1 -0
- package/dist/cjs/core/index.js +1 -0
- package/dist/cjs/core/stream/Stream.d.ts +46 -0
- package/dist/cjs/core/stream/Stream.js +169 -0
- package/dist/cjs/core/stream/index.d.ts +1 -0
- package/dist/cjs/core/stream/index.js +5 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.mjs +2 -2
- package/dist/esm/api/resources/shipping/resources/docs/client/Client.d.mts +1 -11
- package/dist/esm/api/resources/shipping/resources/docs/client/Client.mjs +1 -10
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.mts +2 -0
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.mjs +18 -10
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForForwarderOperatorsV1Request.d.mts +2 -0
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForShipperOperatorsV1Request.d.mts +2 -0
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.d.mts +2 -0
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.mjs +18 -10
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForCourierDriverV1Request.d.mts +2 -0
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForCourierOperatorsV1Request.d.mts +2 -0
- package/dist/esm/api/resources/shipping/resources/tasks/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/shipping/resources/tasks/client/Client.mjs +1 -1
- package/dist/esm/api/resources/utils/index.d.mts +1 -1
- package/dist/esm/api/resources/utils/index.mjs +1 -1
- package/dist/esm/api/resources/utils/resources/dev/client/Client.d.mts +2 -13
- package/dist/esm/api/resources/utils/resources/dev/client/Client.mjs +14 -13
- package/dist/esm/api/resources/utils/resources/dev/index.d.mts +1 -0
- package/dist/esm/api/resources/utils/resources/dev/index.mjs +1 -0
- package/dist/esm/api/resources/utils/resources/dev/types/OrderBuilderStreamEvent.d.mts +27 -0
- package/dist/esm/api/resources/utils/resources/dev/types/OrderBuilderStreamEvent.mjs +11 -0
- package/dist/esm/api/resources/utils/resources/dev/types/index.d.mts +1 -0
- package/dist/esm/api/resources/utils/resources/dev/types/index.mjs +1 -0
- package/dist/esm/api/resources/utils/resources/index.d.mts +1 -0
- package/dist/esm/api/resources/utils/resources/index.mjs +1 -0
- package/dist/esm/api/types/TaskClientUpdate1.d.mts +2 -0
- package/dist/esm/core/index.d.mts +1 -0
- package/dist/esm/core/index.mjs +1 -0
- package/dist/esm/core/stream/Stream.d.mts +46 -0
- package/dist/esm/core/stream/Stream.mjs +164 -0
- package/dist/esm/core/stream/index.d.mts +1 -0
- package/dist/esm/core/stream/index.mjs +1 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +12 -5
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __asyncValues = (this && this.__asyncValues) || function (o) {
|
|
12
|
+
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
13
|
+
var m = o[Symbol.asyncIterator], i;
|
|
14
|
+
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
15
|
+
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
16
|
+
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
|
|
17
|
+
};
|
|
18
|
+
var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }
|
|
19
|
+
var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
|
|
20
|
+
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
21
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
22
|
+
return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
23
|
+
function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }
|
|
24
|
+
function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }
|
|
25
|
+
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
|
26
|
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
27
|
+
function fulfill(value) { resume("next", value); }
|
|
28
|
+
function reject(value) { resume("throw", value); }
|
|
29
|
+
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
|
|
30
|
+
};
|
|
31
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32
|
+
exports.Stream = void 0;
|
|
33
|
+
exports.readableStreamAsyncIterable = readableStreamAsyncIterable;
|
|
34
|
+
const index_js_1 = require("../runtime/index.js");
|
|
35
|
+
const DATA_PREFIX = "data:";
|
|
36
|
+
class Stream {
|
|
37
|
+
constructor({ stream, parse, eventShape, signal }) {
|
|
38
|
+
this.controller = new AbortController();
|
|
39
|
+
this.stream = stream;
|
|
40
|
+
this.parse = parse;
|
|
41
|
+
if (eventShape.type === "sse") {
|
|
42
|
+
this.prefix = DATA_PREFIX;
|
|
43
|
+
this.messageTerminator = "\n";
|
|
44
|
+
this.streamTerminator = eventShape.streamTerminator;
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
this.messageTerminator = eventShape.messageTerminator;
|
|
48
|
+
}
|
|
49
|
+
signal === null || signal === void 0 ? void 0 : signal.addEventListener("abort", () => this.controller.abort());
|
|
50
|
+
}
|
|
51
|
+
iterMessages() {
|
|
52
|
+
return __asyncGenerator(this, arguments, function* iterMessages_1() {
|
|
53
|
+
var _a, e_1, _b, _c;
|
|
54
|
+
this.controller.signal;
|
|
55
|
+
const stream = readableStreamAsyncIterable(this.stream);
|
|
56
|
+
let buf = "";
|
|
57
|
+
let prefixSeen = false;
|
|
58
|
+
try {
|
|
59
|
+
for (var _d = true, stream_1 = __asyncValues(stream), stream_1_1; stream_1_1 = yield __await(stream_1.next()), _a = stream_1_1.done, !_a; _d = true) {
|
|
60
|
+
_c = stream_1_1.value;
|
|
61
|
+
_d = false;
|
|
62
|
+
const chunk = _c;
|
|
63
|
+
buf += this.decodeChunk(chunk);
|
|
64
|
+
let terminatorIndex;
|
|
65
|
+
while ((terminatorIndex = buf.indexOf(this.messageTerminator)) >= 0) {
|
|
66
|
+
let line = buf.slice(0, terminatorIndex + 1);
|
|
67
|
+
buf = buf.slice(terminatorIndex + this.messageTerminator.length);
|
|
68
|
+
if (!line.trim()) {
|
|
69
|
+
continue;
|
|
70
|
+
}
|
|
71
|
+
if (!prefixSeen && this.prefix != null) {
|
|
72
|
+
const prefixIndex = line.indexOf(this.prefix);
|
|
73
|
+
if (prefixIndex === -1) {
|
|
74
|
+
continue;
|
|
75
|
+
}
|
|
76
|
+
prefixSeen = true;
|
|
77
|
+
line = line.slice(prefixIndex + this.prefix.length);
|
|
78
|
+
}
|
|
79
|
+
if (this.streamTerminator != null && line.includes(this.streamTerminator)) {
|
|
80
|
+
return yield __await(void 0);
|
|
81
|
+
}
|
|
82
|
+
const message = yield __await(this.parse(JSON.parse(line)));
|
|
83
|
+
yield yield __await(message);
|
|
84
|
+
prefixSeen = false;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
89
|
+
finally {
|
|
90
|
+
try {
|
|
91
|
+
if (!_d && !_a && (_b = stream_1.return)) yield __await(_b.call(stream_1));
|
|
92
|
+
}
|
|
93
|
+
finally { if (e_1) throw e_1.error; }
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
[Symbol.asyncIterator]() {
|
|
98
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
99
|
+
var _b, e_2, _c, _d;
|
|
100
|
+
try {
|
|
101
|
+
for (var _e = true, _f = __asyncValues(this.iterMessages()), _g; _g = yield __await(_f.next()), _b = _g.done, !_b; _e = true) {
|
|
102
|
+
_d = _g.value;
|
|
103
|
+
_e = false;
|
|
104
|
+
const message = _d;
|
|
105
|
+
yield yield __await(message);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
109
|
+
finally {
|
|
110
|
+
try {
|
|
111
|
+
if (!_e && !_b && (_c = _f.return)) yield __await(_c.call(_f));
|
|
112
|
+
}
|
|
113
|
+
finally { if (e_2) throw e_2.error; }
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
decodeChunk(chunk) {
|
|
118
|
+
let decoded = "";
|
|
119
|
+
// If TextDecoder is present, use it
|
|
120
|
+
if (typeof TextDecoder !== "undefined") {
|
|
121
|
+
const decoder = new TextDecoder("utf8");
|
|
122
|
+
decoded += decoder.decode(chunk);
|
|
123
|
+
}
|
|
124
|
+
// Buffer is present in Node.js environment
|
|
125
|
+
else if (index_js_1.RUNTIME.type === "node" && typeof chunk !== "undefined") {
|
|
126
|
+
decoded += Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk);
|
|
127
|
+
}
|
|
128
|
+
return decoded;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
exports.Stream = Stream;
|
|
132
|
+
/**
|
|
133
|
+
* Browser polyfill for ReadableStream
|
|
134
|
+
*/
|
|
135
|
+
// biome-ignore lint/suspicious/noExplicitAny: allow explicit any
|
|
136
|
+
function readableStreamAsyncIterable(stream) {
|
|
137
|
+
if (stream[Symbol.asyncIterator]) {
|
|
138
|
+
return stream;
|
|
139
|
+
}
|
|
140
|
+
const reader = stream.getReader();
|
|
141
|
+
return {
|
|
142
|
+
next() {
|
|
143
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
144
|
+
try {
|
|
145
|
+
const result = yield reader.read();
|
|
146
|
+
if (result === null || result === void 0 ? void 0 : result.done) {
|
|
147
|
+
reader.releaseLock();
|
|
148
|
+
} // release lock when stream becomes closed
|
|
149
|
+
return result;
|
|
150
|
+
}
|
|
151
|
+
catch (e) {
|
|
152
|
+
reader.releaseLock(); // release lock when stream becomes errored
|
|
153
|
+
throw e;
|
|
154
|
+
}
|
|
155
|
+
});
|
|
156
|
+
},
|
|
157
|
+
return() {
|
|
158
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
159
|
+
const cancelPromise = reader.cancel();
|
|
160
|
+
reader.releaseLock();
|
|
161
|
+
yield cancelPromise;
|
|
162
|
+
return { done: true, value: undefined };
|
|
163
|
+
});
|
|
164
|
+
},
|
|
165
|
+
[Symbol.asyncIterator]() {
|
|
166
|
+
return this;
|
|
167
|
+
},
|
|
168
|
+
};
|
|
169
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Stream } from "./Stream.js";
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.
|
|
1
|
+
export declare const SDK_VERSION = "1.563.0";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/Client.mjs
CHANGED
|
@@ -17,8 +17,8 @@ export class ChrtClient {
|
|
|
17
17
|
this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
|
|
18
18
|
"X-Fern-Language": "JavaScript",
|
|
19
19
|
"X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
|
|
20
|
-
"X-Fern-SDK-Version": "1.
|
|
21
|
-
"User-Agent": "@chrt-inc/typescript-sdk/1.
|
|
20
|
+
"X-Fern-SDK-Version": "1.563.0",
|
|
21
|
+
"User-Agent": "@chrt-inc/typescript-sdk/1.563.0",
|
|
22
22
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
23
23
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
24
24
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -32,19 +32,9 @@ export declare class Docs {
|
|
|
32
32
|
constructor(_options?: Docs.Options);
|
|
33
33
|
/**
|
|
34
34
|
* Generates a shipping document (BOL or POD) as a PDF for the given order. | authz_personas=[order_creator_org_operators] | (GenerateShippingDocReq) -> (PDF binary)
|
|
35
|
-
*
|
|
36
|
-
* @param {Chrt.shipping.GenerateShippingDocReq} request
|
|
37
|
-
* @param {Docs.RequestOptions} requestOptions - Request-specific configuration.
|
|
38
|
-
*
|
|
39
35
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
40
|
-
*
|
|
41
|
-
* @example
|
|
42
|
-
* await client.shipping.docs.postGenerateV1({
|
|
43
|
-
* order_id_or_short_id: "order_id_or_short_id",
|
|
44
|
-
* template: "pod"
|
|
45
|
-
* })
|
|
46
36
|
*/
|
|
47
|
-
postGenerateV1(request: Chrt.shipping.GenerateShippingDocReq, requestOptions?: Docs.RequestOptions): core.HttpResponsePromise<
|
|
37
|
+
postGenerateV1(request: Chrt.shipping.GenerateShippingDocReq, requestOptions?: Docs.RequestOptions): core.HttpResponsePromise<core.BinaryResponse>;
|
|
48
38
|
private __postGenerateV1;
|
|
49
39
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
50
40
|
}
|
|
@@ -21,17 +21,7 @@ export class Docs {
|
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
23
|
* Generates a shipping document (BOL or POD) as a PDF for the given order. | authz_personas=[order_creator_org_operators] | (GenerateShippingDocReq) -> (PDF binary)
|
|
24
|
-
*
|
|
25
|
-
* @param {Chrt.shipping.GenerateShippingDocReq} request
|
|
26
|
-
* @param {Docs.RequestOptions} requestOptions - Request-specific configuration.
|
|
27
|
-
*
|
|
28
24
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
29
|
-
*
|
|
30
|
-
* @example
|
|
31
|
-
* await client.shipping.docs.postGenerateV1({
|
|
32
|
-
* order_id_or_short_id: "order_id_or_short_id",
|
|
33
|
-
* template: "pod"
|
|
34
|
-
* })
|
|
35
25
|
*/
|
|
36
26
|
postGenerateV1(request, requestOptions) {
|
|
37
27
|
return core.HttpResponsePromise.fromPromise(this.__postGenerateV1(request, requestOptions));
|
|
@@ -48,6 +38,7 @@ export class Docs {
|
|
|
48
38
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
49
39
|
requestType: "json",
|
|
50
40
|
body: request,
|
|
41
|
+
responseType: "binary-response",
|
|
51
42
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
52
43
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
53
44
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.mts
CHANGED
|
@@ -85,6 +85,7 @@ export declare class Expanded {
|
|
|
85
85
|
* filter_exception_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
86
86
|
* filter_order_cancelled_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
87
87
|
* filter_order_cancelled_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
88
|
+
* filter_order_cancelled: true,
|
|
88
89
|
* body: {}
|
|
89
90
|
* })
|
|
90
91
|
*/
|
|
@@ -117,6 +118,7 @@ export declare class Expanded {
|
|
|
117
118
|
* filter_exception_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
118
119
|
* filter_order_cancelled_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
119
120
|
* filter_order_cancelled_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
121
|
+
* filter_order_cancelled: true,
|
|
120
122
|
* body: {}
|
|
121
123
|
* })
|
|
122
124
|
*/
|
package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.mjs
CHANGED
|
@@ -172,6 +172,7 @@ export class Expanded {
|
|
|
172
172
|
* filter_exception_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
173
173
|
* filter_order_cancelled_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
174
174
|
* filter_order_cancelled_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
175
|
+
* filter_order_cancelled: true,
|
|
175
176
|
* body: {}
|
|
176
177
|
* })
|
|
177
178
|
*/
|
|
@@ -180,8 +181,8 @@ export class Expanded {
|
|
|
180
181
|
}
|
|
181
182
|
__listForForwarderOperatorsV1(request, requestOptions) {
|
|
182
183
|
return __awaiter(this, void 0, void 0, function* () {
|
|
183
|
-
var _a, _b, _c, _d, _e, _f;
|
|
184
|
-
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_exception_at_timestamp_lte: filterExceptionAtTimestampLte, filter_exception_at_timestamp_gte: filterExceptionAtTimestampGte, filter_order_cancelled_at_timestamp_lte: filterOrderCancelledAtTimestampLte, filter_order_cancelled_at_timestamp_gte: filterOrderCancelledAtTimestampGte, body: _body, } = request;
|
|
184
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
185
|
+
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_exception_at_timestamp_lte: filterExceptionAtTimestampLte, filter_exception_at_timestamp_gte: filterExceptionAtTimestampGte, filter_order_cancelled_at_timestamp_lte: filterOrderCancelledAtTimestampLte, filter_order_cancelled_at_timestamp_gte: filterOrderCancelledAtTimestampGte, filter_order_cancelled: filterOrderCancelled, body: _body, } = request;
|
|
185
186
|
const _queryParams = {};
|
|
186
187
|
if (sortBy !== undefined) {
|
|
187
188
|
_queryParams["sort_by"] = sortBy;
|
|
@@ -242,9 +243,12 @@ export class Expanded {
|
|
|
242
243
|
if (filterOrderCancelledAtTimestampGte !== undefined) {
|
|
243
244
|
_queryParams["filter_order_cancelled_at_timestamp_gte"] = filterOrderCancelledAtTimestampGte;
|
|
244
245
|
}
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
246
|
+
if (filterOrderCancelled !== undefined) {
|
|
247
|
+
_queryParams["filter_order_cancelled"] = (_c = filterOrderCancelled === null || filterOrderCancelled === void 0 ? void 0 : filterOrderCancelled.toString()) !== null && _c !== void 0 ? _c : null;
|
|
248
|
+
}
|
|
249
|
+
let _headers = mergeHeaders((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
250
|
+
const _response = yield ((_e = this._options.fetcher) !== null && _e !== void 0 ? _e : core.fetcher)({
|
|
251
|
+
url: core.url.join((_g = (_f = (yield core.Supplier.get(this._options.baseUrl))) !== null && _f !== void 0 ? _f : (yield core.Supplier.get(this._options.environment))) !== null && _g !== void 0 ? _g : environments.ChrtEnvironment.Local, "shipping/orders/expanded/list/for_forwarder_operators/v1"),
|
|
248
252
|
method: "POST",
|
|
249
253
|
headers: _headers,
|
|
250
254
|
contentType: "application/json",
|
|
@@ -314,6 +318,7 @@ export class Expanded {
|
|
|
314
318
|
* filter_exception_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
315
319
|
* filter_order_cancelled_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
316
320
|
* filter_order_cancelled_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
321
|
+
* filter_order_cancelled: true,
|
|
317
322
|
* body: {}
|
|
318
323
|
* })
|
|
319
324
|
*/
|
|
@@ -322,8 +327,8 @@ export class Expanded {
|
|
|
322
327
|
}
|
|
323
328
|
__listForShipperOperatorsV1(request, requestOptions) {
|
|
324
329
|
return __awaiter(this, void 0, void 0, function* () {
|
|
325
|
-
var _a, _b, _c, _d, _e, _f;
|
|
326
|
-
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_exception_at_timestamp_lte: filterExceptionAtTimestampLte, filter_exception_at_timestamp_gte: filterExceptionAtTimestampGte, filter_order_cancelled_at_timestamp_lte: filterOrderCancelledAtTimestampLte, filter_order_cancelled_at_timestamp_gte: filterOrderCancelledAtTimestampGte, body: _body, } = request;
|
|
330
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
331
|
+
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_exception_at_timestamp_lte: filterExceptionAtTimestampLte, filter_exception_at_timestamp_gte: filterExceptionAtTimestampGte, filter_order_cancelled_at_timestamp_lte: filterOrderCancelledAtTimestampLte, filter_order_cancelled_at_timestamp_gte: filterOrderCancelledAtTimestampGte, filter_order_cancelled: filterOrderCancelled, body: _body, } = request;
|
|
327
332
|
const _queryParams = {};
|
|
328
333
|
if (sortBy !== undefined) {
|
|
329
334
|
_queryParams["sort_by"] = sortBy;
|
|
@@ -384,9 +389,12 @@ export class Expanded {
|
|
|
384
389
|
if (filterOrderCancelledAtTimestampGte !== undefined) {
|
|
385
390
|
_queryParams["filter_order_cancelled_at_timestamp_gte"] = filterOrderCancelledAtTimestampGte;
|
|
386
391
|
}
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
392
|
+
if (filterOrderCancelled !== undefined) {
|
|
393
|
+
_queryParams["filter_order_cancelled"] = (_c = filterOrderCancelled === null || filterOrderCancelled === void 0 ? void 0 : filterOrderCancelled.toString()) !== null && _c !== void 0 ? _c : null;
|
|
394
|
+
}
|
|
395
|
+
let _headers = mergeHeaders((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
396
|
+
const _response = yield ((_e = this._options.fetcher) !== null && _e !== void 0 ? _e : core.fetcher)({
|
|
397
|
+
url: core.url.join((_g = (_f = (yield core.Supplier.get(this._options.baseUrl))) !== null && _f !== void 0 ? _f : (yield core.Supplier.get(this._options.environment))) !== null && _g !== void 0 ? _g : environments.ChrtEnvironment.Local, "shipping/orders/expanded/list/for_shipper_operators/v1"),
|
|
390
398
|
method: "POST",
|
|
391
399
|
headers: _headers,
|
|
392
400
|
contentType: "application/json",
|
|
@@ -22,6 +22,7 @@ import * as Chrt from "../../../../../../../../index.mjs";
|
|
|
22
22
|
* filter_exception_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
23
23
|
* filter_order_cancelled_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
24
24
|
* filter_order_cancelled_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
25
|
+
* filter_order_cancelled: true,
|
|
25
26
|
* body: {}
|
|
26
27
|
* }
|
|
27
28
|
*/
|
|
@@ -46,5 +47,6 @@ export interface ExpandedListForForwarderOperatorsV1Request {
|
|
|
46
47
|
filter_exception_at_timestamp_gte?: string | null;
|
|
47
48
|
filter_order_cancelled_at_timestamp_lte?: string | null;
|
|
48
49
|
filter_order_cancelled_at_timestamp_gte?: string | null;
|
|
50
|
+
filter_order_cancelled?: boolean | null;
|
|
49
51
|
body: Chrt.OrderAndTaskGroupExpandedReq;
|
|
50
52
|
}
|
|
@@ -22,6 +22,7 @@ import * as Chrt from "../../../../../../../../index.mjs";
|
|
|
22
22
|
* filter_exception_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
23
23
|
* filter_order_cancelled_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
24
24
|
* filter_order_cancelled_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
25
|
+
* filter_order_cancelled: true,
|
|
25
26
|
* body: {}
|
|
26
27
|
* }
|
|
27
28
|
*/
|
|
@@ -46,5 +47,6 @@ export interface ExpandedListForShipperOperatorsV1Request {
|
|
|
46
47
|
filter_exception_at_timestamp_gte?: string | null;
|
|
47
48
|
filter_order_cancelled_at_timestamp_lte?: string | null;
|
|
48
49
|
filter_order_cancelled_at_timestamp_gte?: string | null;
|
|
50
|
+
filter_order_cancelled?: boolean | null;
|
|
49
51
|
body: Chrt.OrderAndTaskGroupExpandedReq;
|
|
50
52
|
}
|
package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.d.mts
CHANGED
|
@@ -113,6 +113,7 @@ export declare class Expanded {
|
|
|
113
113
|
* filter_skipped_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
114
114
|
* filter_exception_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
115
115
|
* filter_exception_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
116
|
+
* filter_order_cancelled: true,
|
|
116
117
|
* body: {}
|
|
117
118
|
* })
|
|
118
119
|
*/
|
|
@@ -145,6 +146,7 @@ export declare class Expanded {
|
|
|
145
146
|
* filter_skipped_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
146
147
|
* filter_exception_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
147
148
|
* filter_exception_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
149
|
+
* filter_order_cancelled: true,
|
|
148
150
|
* body: {}
|
|
149
151
|
* })
|
|
150
152
|
*/
|
package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.mjs
CHANGED
|
@@ -298,6 +298,7 @@ export class Expanded {
|
|
|
298
298
|
* filter_skipped_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
299
299
|
* filter_exception_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
300
300
|
* filter_exception_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
301
|
+
* filter_order_cancelled: true,
|
|
301
302
|
* body: {}
|
|
302
303
|
* })
|
|
303
304
|
*/
|
|
@@ -306,8 +307,8 @@ export class Expanded {
|
|
|
306
307
|
}
|
|
307
308
|
__listForCourierOperatorsV1(request, requestOptions) {
|
|
308
309
|
return __awaiter(this, void 0, void 0, function* () {
|
|
309
|
-
var _a, _b, _c, _d, _e, _f;
|
|
310
|
-
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_skipped_at_timestamp_lte: filterSkippedAtTimestampLte, filter_skipped_at_timestamp_gte: filterSkippedAtTimestampGte, filter_exception_at_timestamp_lte: filterExceptionAtTimestampLte, filter_exception_at_timestamp_gte: filterExceptionAtTimestampGte, body: _body, } = request;
|
|
310
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
311
|
+
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_skipped_at_timestamp_lte: filterSkippedAtTimestampLte, filter_skipped_at_timestamp_gte: filterSkippedAtTimestampGte, filter_exception_at_timestamp_lte: filterExceptionAtTimestampLte, filter_exception_at_timestamp_gte: filterExceptionAtTimestampGte, filter_order_cancelled: filterOrderCancelled, body: _body, } = request;
|
|
311
312
|
const _queryParams = {};
|
|
312
313
|
if (sortBy !== undefined) {
|
|
313
314
|
_queryParams["sort_by"] = sortBy;
|
|
@@ -368,9 +369,12 @@ export class Expanded {
|
|
|
368
369
|
if (filterExceptionAtTimestampGte !== undefined) {
|
|
369
370
|
_queryParams["filter_exception_at_timestamp_gte"] = filterExceptionAtTimestampGte;
|
|
370
371
|
}
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
372
|
+
if (filterOrderCancelled !== undefined) {
|
|
373
|
+
_queryParams["filter_order_cancelled"] = (_c = filterOrderCancelled === null || filterOrderCancelled === void 0 ? void 0 : filterOrderCancelled.toString()) !== null && _c !== void 0 ? _c : null;
|
|
374
|
+
}
|
|
375
|
+
let _headers = mergeHeaders((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
376
|
+
const _response = yield ((_e = this._options.fetcher) !== null && _e !== void 0 ? _e : core.fetcher)({
|
|
377
|
+
url: core.url.join((_g = (_f = (yield core.Supplier.get(this._options.baseUrl))) !== null && _f !== void 0 ? _f : (yield core.Supplier.get(this._options.environment))) !== null && _g !== void 0 ? _g : environments.ChrtEnvironment.Local, "shipping/task_groups/expanded/list/for_courier_operators/v1"),
|
|
374
378
|
method: "POST",
|
|
375
379
|
headers: _headers,
|
|
376
380
|
contentType: "application/json",
|
|
@@ -440,6 +444,7 @@ export class Expanded {
|
|
|
440
444
|
* filter_skipped_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
441
445
|
* filter_exception_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
442
446
|
* filter_exception_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
447
|
+
* filter_order_cancelled: true,
|
|
443
448
|
* body: {}
|
|
444
449
|
* })
|
|
445
450
|
*/
|
|
@@ -448,8 +453,8 @@ export class Expanded {
|
|
|
448
453
|
}
|
|
449
454
|
__listForCourierDriverV1(request, requestOptions) {
|
|
450
455
|
return __awaiter(this, void 0, void 0, function* () {
|
|
451
|
-
var _a, _b, _c, _d, _e, _f;
|
|
452
|
-
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_skipped_at_timestamp_lte: filterSkippedAtTimestampLte, filter_skipped_at_timestamp_gte: filterSkippedAtTimestampGte, filter_exception_at_timestamp_lte: filterExceptionAtTimestampLte, filter_exception_at_timestamp_gte: filterExceptionAtTimestampGte, body: _body, } = request;
|
|
456
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
457
|
+
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_skipped_at_timestamp_lte: filterSkippedAtTimestampLte, filter_skipped_at_timestamp_gte: filterSkippedAtTimestampGte, filter_exception_at_timestamp_lte: filterExceptionAtTimestampLte, filter_exception_at_timestamp_gte: filterExceptionAtTimestampGte, filter_order_cancelled: filterOrderCancelled, body: _body, } = request;
|
|
453
458
|
const _queryParams = {};
|
|
454
459
|
if (sortBy !== undefined) {
|
|
455
460
|
_queryParams["sort_by"] = sortBy;
|
|
@@ -510,9 +515,12 @@ export class Expanded {
|
|
|
510
515
|
if (filterExceptionAtTimestampGte !== undefined) {
|
|
511
516
|
_queryParams["filter_exception_at_timestamp_gte"] = filterExceptionAtTimestampGte;
|
|
512
517
|
}
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
518
|
+
if (filterOrderCancelled !== undefined) {
|
|
519
|
+
_queryParams["filter_order_cancelled"] = (_c = filterOrderCancelled === null || filterOrderCancelled === void 0 ? void 0 : filterOrderCancelled.toString()) !== null && _c !== void 0 ? _c : null;
|
|
520
|
+
}
|
|
521
|
+
let _headers = mergeHeaders((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
522
|
+
const _response = yield ((_e = this._options.fetcher) !== null && _e !== void 0 ? _e : core.fetcher)({
|
|
523
|
+
url: core.url.join((_g = (_f = (yield core.Supplier.get(this._options.baseUrl))) !== null && _f !== void 0 ? _f : (yield core.Supplier.get(this._options.environment))) !== null && _g !== void 0 ? _g : environments.ChrtEnvironment.Local, "shipping/task_groups/expanded/list/for_courier_driver/v1"),
|
|
516
524
|
method: "POST",
|
|
517
525
|
headers: _headers,
|
|
518
526
|
contentType: "application/json",
|
|
@@ -22,6 +22,7 @@ import * as Chrt from "../../../../../../../../index.mjs";
|
|
|
22
22
|
* filter_skipped_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
23
23
|
* filter_exception_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
24
24
|
* filter_exception_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
25
|
+
* filter_order_cancelled: true,
|
|
25
26
|
* body: {}
|
|
26
27
|
* }
|
|
27
28
|
*/
|
|
@@ -46,5 +47,6 @@ export interface ExpandedListForCourierDriverV1Request {
|
|
|
46
47
|
filter_skipped_at_timestamp_gte?: string | null;
|
|
47
48
|
filter_exception_at_timestamp_lte?: string | null;
|
|
48
49
|
filter_exception_at_timestamp_gte?: string | null;
|
|
50
|
+
filter_order_cancelled?: boolean | null;
|
|
49
51
|
body: Chrt.OrderAndTaskGroupExpandedReq;
|
|
50
52
|
}
|
|
@@ -22,6 +22,7 @@ import * as Chrt from "../../../../../../../../index.mjs";
|
|
|
22
22
|
* filter_skipped_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
23
23
|
* filter_exception_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
24
24
|
* filter_exception_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
25
|
+
* filter_order_cancelled: true,
|
|
25
26
|
* body: {}
|
|
26
27
|
* }
|
|
27
28
|
*/
|
|
@@ -46,5 +47,6 @@ export interface ExpandedListForCourierOperatorsV1Request {
|
|
|
46
47
|
filter_skipped_at_timestamp_gte?: string | null;
|
|
47
48
|
filter_exception_at_timestamp_lte?: string | null;
|
|
48
49
|
filter_exception_at_timestamp_gte?: string | null;
|
|
50
|
+
filter_order_cancelled?: boolean | null;
|
|
49
51
|
body: Chrt.OrderAndTaskGroupExpandedReq;
|
|
50
52
|
}
|
|
@@ -51,7 +51,7 @@ export declare class Tasks {
|
|
|
51
51
|
addToTaskGroupV1(taskGroupId: string, request: Chrt.shipping.AddTaskToGroupReq, requestOptions?: Tasks.RequestOptions): core.HttpResponsePromise<string>;
|
|
52
52
|
private __addToTaskGroupV1;
|
|
53
53
|
/**
|
|
54
|
-
* Updates a task.
|
|
54
|
+
* Updates a task. Operational fields require STAGED status (lig_owner_operators). order_placer_comments can be edited on any non-DRAFT task (order_creator_org_operators). | (TaskClientUpdate1) -> (PydanticObjectId)
|
|
55
55
|
*
|
|
56
56
|
* @param {string} taskId
|
|
57
57
|
* @param {Chrt.TaskClientUpdate1} request
|
|
@@ -89,7 +89,7 @@ export class Tasks {
|
|
|
89
89
|
});
|
|
90
90
|
}
|
|
91
91
|
/**
|
|
92
|
-
* Updates a task.
|
|
92
|
+
* Updates a task. Operational fields require STAGED status (lig_owner_operators). order_placer_comments can be edited on any non-DRAFT task (order_creator_org_operators). | (TaskClientUpdate1) -> (PydanticObjectId)
|
|
93
93
|
*
|
|
94
94
|
* @param {string} taskId
|
|
95
95
|
* @param {Chrt.TaskClientUpdate1} request
|
|
@@ -75,20 +75,9 @@ export declare class Dev {
|
|
|
75
75
|
postAgentOrderBuilderV1(request: Chrt.OrderBuilderReq, requestOptions?: Dev.RequestOptions): core.HttpResponsePromise<Chrt.OrderBuilderRes>;
|
|
76
76
|
private __postAgentOrderBuilderV1;
|
|
77
77
|
/**
|
|
78
|
-
* Same as /agent/order-builder/v1 but streams progress events via SSE as each workflow step completes. | (OrderBuilderReq) -> SSE stream of
|
|
79
|
-
*
|
|
80
|
-
* @param {Chrt.OrderBuilderReq} request
|
|
81
|
-
* @param {Dev.RequestOptions} requestOptions - Request-specific configuration.
|
|
82
|
-
*
|
|
83
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
84
|
-
*
|
|
85
|
-
* @example
|
|
86
|
-
* await client.utils.dev.postAgentOrderBuilderStreamV1({
|
|
87
|
-
* order_short_id: "order_short_id",
|
|
88
|
-
* text: "text"
|
|
89
|
-
* })
|
|
78
|
+
* Same as /agent/order-builder/v1 but streams progress events via SSE as each workflow step completes. | (OrderBuilderReq) -> SSE stream of OrderBuilderStreamEvent
|
|
90
79
|
*/
|
|
91
|
-
postAgentOrderBuilderStreamV1(request: Chrt.OrderBuilderReq, requestOptions?: Dev.RequestOptions): core.HttpResponsePromise<
|
|
80
|
+
postAgentOrderBuilderStreamV1(request: Chrt.OrderBuilderReq, requestOptions?: Dev.RequestOptions): core.HttpResponsePromise<core.Stream<Chrt.utils.OrderBuilderStreamEvent>>;
|
|
92
81
|
private __postAgentOrderBuilderStreamV1;
|
|
93
82
|
/**
|
|
94
83
|
* (DEPRECATED) Extracts and returns the user ID from the authenticated request's JWT token. | () -> (str)
|
|
@@ -211,18 +211,7 @@ export class Dev {
|
|
|
211
211
|
});
|
|
212
212
|
}
|
|
213
213
|
/**
|
|
214
|
-
* Same as /agent/order-builder/v1 but streams progress events via SSE as each workflow step completes. | (OrderBuilderReq) -> SSE stream of
|
|
215
|
-
*
|
|
216
|
-
* @param {Chrt.OrderBuilderReq} request
|
|
217
|
-
* @param {Dev.RequestOptions} requestOptions - Request-specific configuration.
|
|
218
|
-
*
|
|
219
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
220
|
-
*
|
|
221
|
-
* @example
|
|
222
|
-
* await client.utils.dev.postAgentOrderBuilderStreamV1({
|
|
223
|
-
* order_short_id: "order_short_id",
|
|
224
|
-
* text: "text"
|
|
225
|
-
* })
|
|
214
|
+
* Same as /agent/order-builder/v1 but streams progress events via SSE as each workflow step completes. | (OrderBuilderReq) -> SSE stream of OrderBuilderStreamEvent
|
|
226
215
|
*/
|
|
227
216
|
postAgentOrderBuilderStreamV1(request, requestOptions) {
|
|
228
217
|
return core.HttpResponsePromise.fromPromise(this.__postAgentOrderBuilderStreamV1(request, requestOptions));
|
|
@@ -239,12 +228,24 @@ export class Dev {
|
|
|
239
228
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
240
229
|
requestType: "json",
|
|
241
230
|
body: request,
|
|
231
|
+
responseType: "sse",
|
|
242
232
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
243
233
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
244
234
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
245
235
|
});
|
|
246
236
|
if (_response.ok) {
|
|
247
|
-
return {
|
|
237
|
+
return {
|
|
238
|
+
data: new core.Stream({
|
|
239
|
+
stream: _response.body,
|
|
240
|
+
parse: (data) => data,
|
|
241
|
+
signal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
242
|
+
eventShape: {
|
|
243
|
+
type: "sse",
|
|
244
|
+
streamTerminator: "[DONE]",
|
|
245
|
+
},
|
|
246
|
+
}),
|
|
247
|
+
rawResponse: _response.rawResponse,
|
|
248
|
+
};
|
|
248
249
|
}
|
|
249
250
|
if (_response.error.reason === "status-code") {
|
|
250
251
|
switch (_response.error.statusCode) {
|