@chrt-inc/typescript-sdk 1.455.2 → 1.467.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/tracking/resources/timeseries/resources/sessionByDevice/client/Client.d.ts +10 -6
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/Client.js +18 -10
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/requests/SessionByDeviceDataPointsPublicV1Request.d.ts +6 -2
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/requests/SessionByDeviceDataPointsV1Request.d.ts +6 -2
- package/dist/cjs/api/resources/utils/resources/dev/client/Client.d.ts +32 -1
- package/dist/cjs/api/resources/utils/resources/dev/client/Client.js +133 -1
- package/dist/cjs/api/resources/utils/resources/dev/client/requests/OrderBuilderReq.d.ts +14 -0
- package/dist/cjs/api/resources/utils/resources/dev/client/requests/OrderBuilderReq.js +5 -0
- package/dist/cjs/api/resources/utils/resources/dev/client/requests/ReadOrderAgentReq.d.ts +12 -0
- package/dist/cjs/api/resources/utils/resources/dev/client/requests/ReadOrderAgentReq.js +5 -0
- package/dist/cjs/api/resources/utils/resources/dev/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/types/OrderBuilderRes.d.ts +9 -0
- package/dist/cjs/api/types/OrderBuilderRes.js +5 -0
- package/dist/cjs/api/types/ReadOrderAgentRes.d.ts +8 -0
- package/dist/cjs/api/types/ReadOrderAgentRes.js +5 -0
- package/dist/cjs/api/types/SessionByDeviceDataPoint1.d.ts +1 -0
- package/dist/cjs/api/types/SessionByDeviceHistoryRes1.d.ts +8 -0
- package/dist/cjs/api/types/SessionByDeviceHistoryRes1.js +5 -0
- package/dist/cjs/api/types/StationaryCluster.d.ts +11 -0
- package/dist/cjs/api/types/StationaryCluster.js +5 -0
- package/dist/cjs/api/types/index.d.ts +4 -0
- package/dist/cjs/api/types/index.js +4 -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/tracking/resources/timeseries/resources/sessionByDevice/client/Client.d.mts +10 -6
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/Client.mjs +18 -10
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/requests/SessionByDeviceDataPointsPublicV1Request.d.mts +6 -2
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/requests/SessionByDeviceDataPointsV1Request.d.mts +6 -2
- package/dist/esm/api/resources/utils/resources/dev/client/Client.d.mts +32 -1
- package/dist/esm/api/resources/utils/resources/dev/client/Client.mjs +133 -1
- package/dist/esm/api/resources/utils/resources/dev/client/requests/OrderBuilderReq.d.mts +14 -0
- package/dist/esm/api/resources/utils/resources/dev/client/requests/OrderBuilderReq.mjs +4 -0
- package/dist/esm/api/resources/utils/resources/dev/client/requests/ReadOrderAgentReq.d.mts +12 -0
- package/dist/esm/api/resources/utils/resources/dev/client/requests/ReadOrderAgentReq.mjs +4 -0
- package/dist/esm/api/resources/utils/resources/dev/client/requests/index.d.mts +2 -0
- package/dist/esm/api/types/OrderBuilderRes.d.mts +9 -0
- package/dist/esm/api/types/OrderBuilderRes.mjs +4 -0
- package/dist/esm/api/types/ReadOrderAgentRes.d.mts +8 -0
- package/dist/esm/api/types/ReadOrderAgentRes.mjs +4 -0
- package/dist/esm/api/types/SessionByDeviceDataPoint1.d.mts +1 -0
- package/dist/esm/api/types/SessionByDeviceHistoryRes1.d.mts +8 -0
- package/dist/esm/api/types/SessionByDeviceHistoryRes1.mjs +4 -0
- package/dist/esm/api/types/StationaryCluster.d.mts +11 -0
- package/dist/esm/api/types/StationaryCluster.mjs +4 -0
- package/dist/esm/api/types/index.d.mts +4 -0
- package/dist/esm/api/types/index.mjs +4 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +142 -7
|
@@ -87,7 +87,7 @@ export class SessionByDevice {
|
|
|
87
87
|
});
|
|
88
88
|
}
|
|
89
89
|
/**
|
|
90
|
-
* Returns
|
|
90
|
+
* Returns time-bucketed data points and stationary clusters for a session within the given time range. start_timestamp and end_timestamp are required. | authz: min_org_role=operator | () -> SessionByDeviceHistoryRes1
|
|
91
91
|
*
|
|
92
92
|
* @param {Chrt.tracking.timeseries.SessionByDeviceDataPointsV1Request} request
|
|
93
93
|
* @param {SessionByDevice.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -97,7 +97,9 @@ export class SessionByDevice {
|
|
|
97
97
|
* @example
|
|
98
98
|
* await client.tracking.timeseries.sessionByDevice.dataPointsV1({
|
|
99
99
|
* session_id: "session_id",
|
|
100
|
-
*
|
|
100
|
+
* start_timestamp: "2024-01-15T09:30:00Z",
|
|
101
|
+
* end_timestamp: "2024-01-15T09:30:00Z",
|
|
102
|
+
* bucket_seconds: 1
|
|
101
103
|
* })
|
|
102
104
|
*/
|
|
103
105
|
dataPointsV1(request, requestOptions) {
|
|
@@ -106,11 +108,13 @@ export class SessionByDevice {
|
|
|
106
108
|
__dataPointsV1(request, requestOptions) {
|
|
107
109
|
return __awaiter(this, void 0, void 0, function* () {
|
|
108
110
|
var _a, _b, _c, _d, _e;
|
|
109
|
-
const { session_id: sessionId,
|
|
111
|
+
const { session_id: sessionId, start_timestamp: startTimestamp, end_timestamp: endTimestamp, bucket_seconds: bucketSeconds, } = request;
|
|
110
112
|
const _queryParams = {};
|
|
111
113
|
_queryParams["session_id"] = sessionId;
|
|
112
|
-
|
|
113
|
-
|
|
114
|
+
_queryParams["start_timestamp"] = startTimestamp;
|
|
115
|
+
_queryParams["end_timestamp"] = endTimestamp;
|
|
116
|
+
if (bucketSeconds !== undefined) {
|
|
117
|
+
_queryParams["bucket_seconds"] = (_a = bucketSeconds === null || bucketSeconds === void 0 ? void 0 : bucketSeconds.toString()) !== null && _a !== void 0 ? _a : null;
|
|
114
118
|
}
|
|
115
119
|
let _headers = mergeHeaders((_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
116
120
|
const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
|
|
@@ -290,7 +294,7 @@ export class SessionByDevice {
|
|
|
290
294
|
});
|
|
291
295
|
}
|
|
292
296
|
/**
|
|
293
|
-
* Returns
|
|
297
|
+
* Returns time-bucketed data points and stationary clusters for a public session within the given time range. start_timestamp and end_timestamp are required. No authentication required if session has public visibility enabled. | () -> SessionByDeviceHistoryRes1
|
|
294
298
|
*
|
|
295
299
|
* @param {Chrt.tracking.timeseries.SessionByDeviceDataPointsPublicV1Request} request
|
|
296
300
|
* @param {SessionByDevice.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -300,7 +304,9 @@ export class SessionByDevice {
|
|
|
300
304
|
* @example
|
|
301
305
|
* await client.tracking.timeseries.sessionByDevice.dataPointsPublicV1({
|
|
302
306
|
* session_id: "session_id",
|
|
303
|
-
*
|
|
307
|
+
* start_timestamp: "2024-01-15T09:30:00Z",
|
|
308
|
+
* end_timestamp: "2024-01-15T09:30:00Z",
|
|
309
|
+
* bucket_seconds: 1
|
|
304
310
|
* })
|
|
305
311
|
*/
|
|
306
312
|
dataPointsPublicV1(request, requestOptions) {
|
|
@@ -309,11 +315,13 @@ export class SessionByDevice {
|
|
|
309
315
|
__dataPointsPublicV1(request, requestOptions) {
|
|
310
316
|
return __awaiter(this, void 0, void 0, function* () {
|
|
311
317
|
var _a, _b, _c, _d, _e;
|
|
312
|
-
const { session_id: sessionId,
|
|
318
|
+
const { session_id: sessionId, start_timestamp: startTimestamp, end_timestamp: endTimestamp, bucket_seconds: bucketSeconds, } = request;
|
|
313
319
|
const _queryParams = {};
|
|
314
320
|
_queryParams["session_id"] = sessionId;
|
|
315
|
-
|
|
316
|
-
|
|
321
|
+
_queryParams["start_timestamp"] = startTimestamp;
|
|
322
|
+
_queryParams["end_timestamp"] = endTimestamp;
|
|
323
|
+
if (bucketSeconds !== undefined) {
|
|
324
|
+
_queryParams["bucket_seconds"] = (_a = bucketSeconds === null || bucketSeconds === void 0 ? void 0 : bucketSeconds.toString()) !== null && _a !== void 0 ? _a : null;
|
|
317
325
|
}
|
|
318
326
|
let _headers = mergeHeaders((_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
319
327
|
const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
|
|
@@ -5,10 +5,14 @@
|
|
|
5
5
|
* @example
|
|
6
6
|
* {
|
|
7
7
|
* session_id: "session_id",
|
|
8
|
-
*
|
|
8
|
+
* start_timestamp: "2024-01-15T09:30:00Z",
|
|
9
|
+
* end_timestamp: "2024-01-15T09:30:00Z",
|
|
10
|
+
* bucket_seconds: 1
|
|
9
11
|
* }
|
|
10
12
|
*/
|
|
11
13
|
export interface SessionByDeviceDataPointsPublicV1Request {
|
|
12
14
|
session_id: string;
|
|
13
|
-
|
|
15
|
+
start_timestamp: string;
|
|
16
|
+
end_timestamp: string;
|
|
17
|
+
bucket_seconds?: number | null;
|
|
14
18
|
}
|
|
@@ -5,10 +5,14 @@
|
|
|
5
5
|
* @example
|
|
6
6
|
* {
|
|
7
7
|
* session_id: "session_id",
|
|
8
|
-
*
|
|
8
|
+
* start_timestamp: "2024-01-15T09:30:00Z",
|
|
9
|
+
* end_timestamp: "2024-01-15T09:30:00Z",
|
|
10
|
+
* bucket_seconds: 1
|
|
9
11
|
* }
|
|
10
12
|
*/
|
|
11
13
|
export interface SessionByDeviceDataPointsV1Request {
|
|
12
14
|
session_id: string;
|
|
13
|
-
|
|
15
|
+
start_timestamp: string;
|
|
16
|
+
end_timestamp: string;
|
|
17
|
+
bucket_seconds?: number | null;
|
|
14
18
|
}
|
|
@@ -43,6 +43,37 @@ export declare class Dev {
|
|
|
43
43
|
*/
|
|
44
44
|
postAgentV1(request?: Chrt.utils.AgentReq, requestOptions?: Dev.RequestOptions): core.HttpResponsePromise<Chrt.AgentRes>;
|
|
45
45
|
private __postAgentV1;
|
|
46
|
+
/**
|
|
47
|
+
* Fetches expanded order data and returns an AI-generated natural-language summary. | (ReadOrderAgentReq) -> (ReadOrderAgentRes)
|
|
48
|
+
*
|
|
49
|
+
* @param {Chrt.utils.ReadOrderAgentReq} request
|
|
50
|
+
* @param {Dev.RequestOptions} requestOptions - Request-specific configuration.
|
|
51
|
+
*
|
|
52
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* await client.utils.dev.postAgentOrderV1({
|
|
56
|
+
* order_id: "order_id"
|
|
57
|
+
* })
|
|
58
|
+
*/
|
|
59
|
+
postAgentOrderV1(request: Chrt.utils.ReadOrderAgentReq, requestOptions?: Dev.RequestOptions): core.HttpResponsePromise<Chrt.ReadOrderAgentRes>;
|
|
60
|
+
private __postAgentOrderV1;
|
|
61
|
+
/**
|
|
62
|
+
* Populates an existing order draft with cargo, task groups, and tasks parsed from natural language. The frontend must create the draft first via /shipping/order_drafts/new/v1. | (OrderBuilderReq) -> (OrderBuilderRes)
|
|
63
|
+
*
|
|
64
|
+
* @param {Chrt.utils.OrderBuilderReq} request
|
|
65
|
+
* @param {Dev.RequestOptions} requestOptions - Request-specific configuration.
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
68
|
+
*
|
|
69
|
+
* @example
|
|
70
|
+
* await client.utils.dev.postAgentOrderBuilderV1({
|
|
71
|
+
* order_short_id: "order_short_id",
|
|
72
|
+
* text: "text"
|
|
73
|
+
* })
|
|
74
|
+
*/
|
|
75
|
+
postAgentOrderBuilderV1(request: Chrt.utils.OrderBuilderReq, requestOptions?: Dev.RequestOptions): core.HttpResponsePromise<Chrt.OrderBuilderRes>;
|
|
76
|
+
private __postAgentOrderBuilderV1;
|
|
46
77
|
/**
|
|
47
78
|
* (DEPRECATED) Extracts and returns the user ID from the authenticated request's JWT token. | () -> (str)
|
|
48
79
|
*
|
|
@@ -118,7 +149,7 @@ export declare class Dev {
|
|
|
118
149
|
* @example
|
|
119
150
|
* await client.utils.dev.getGitInfoV1()
|
|
120
151
|
*/
|
|
121
|
-
getGitInfoV1(requestOptions?: Dev.RequestOptions): core.HttpResponsePromise<Record<string, string>>;
|
|
152
|
+
getGitInfoV1(requestOptions?: Dev.RequestOptions): core.HttpResponsePromise<Record<string, (string | null) | undefined>>;
|
|
122
153
|
private __getGitInfoV1;
|
|
123
154
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
124
155
|
}
|
|
@@ -81,6 +81,135 @@ export class Dev {
|
|
|
81
81
|
}
|
|
82
82
|
});
|
|
83
83
|
}
|
|
84
|
+
/**
|
|
85
|
+
* Fetches expanded order data and returns an AI-generated natural-language summary. | (ReadOrderAgentReq) -> (ReadOrderAgentRes)
|
|
86
|
+
*
|
|
87
|
+
* @param {Chrt.utils.ReadOrderAgentReq} request
|
|
88
|
+
* @param {Dev.RequestOptions} requestOptions - Request-specific configuration.
|
|
89
|
+
*
|
|
90
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
91
|
+
*
|
|
92
|
+
* @example
|
|
93
|
+
* await client.utils.dev.postAgentOrderV1({
|
|
94
|
+
* order_id: "order_id"
|
|
95
|
+
* })
|
|
96
|
+
*/
|
|
97
|
+
postAgentOrderV1(request, requestOptions) {
|
|
98
|
+
return core.HttpResponsePromise.fromPromise(this.__postAgentOrderV1(request, requestOptions));
|
|
99
|
+
}
|
|
100
|
+
__postAgentOrderV1(request, requestOptions) {
|
|
101
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
102
|
+
var _a, _b, _c, _d;
|
|
103
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
104
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
105
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "dev/agent/order/v1"),
|
|
106
|
+
method: "POST",
|
|
107
|
+
headers: _headers,
|
|
108
|
+
contentType: "application/json",
|
|
109
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
110
|
+
requestType: "json",
|
|
111
|
+
body: request,
|
|
112
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
113
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
114
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
115
|
+
});
|
|
116
|
+
if (_response.ok) {
|
|
117
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
118
|
+
}
|
|
119
|
+
if (_response.error.reason === "status-code") {
|
|
120
|
+
switch (_response.error.statusCode) {
|
|
121
|
+
case 422:
|
|
122
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
123
|
+
default:
|
|
124
|
+
throw new errors.ChrtError({
|
|
125
|
+
statusCode: _response.error.statusCode,
|
|
126
|
+
body: _response.error.body,
|
|
127
|
+
rawResponse: _response.rawResponse,
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
switch (_response.error.reason) {
|
|
132
|
+
case "non-json":
|
|
133
|
+
throw new errors.ChrtError({
|
|
134
|
+
statusCode: _response.error.statusCode,
|
|
135
|
+
body: _response.error.rawBody,
|
|
136
|
+
rawResponse: _response.rawResponse,
|
|
137
|
+
});
|
|
138
|
+
case "timeout":
|
|
139
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /dev/agent/order/v1.");
|
|
140
|
+
case "unknown":
|
|
141
|
+
throw new errors.ChrtError({
|
|
142
|
+
message: _response.error.errorMessage,
|
|
143
|
+
rawResponse: _response.rawResponse,
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* Populates an existing order draft with cargo, task groups, and tasks parsed from natural language. The frontend must create the draft first via /shipping/order_drafts/new/v1. | (OrderBuilderReq) -> (OrderBuilderRes)
|
|
150
|
+
*
|
|
151
|
+
* @param {Chrt.utils.OrderBuilderReq} request
|
|
152
|
+
* @param {Dev.RequestOptions} requestOptions - Request-specific configuration.
|
|
153
|
+
*
|
|
154
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
155
|
+
*
|
|
156
|
+
* @example
|
|
157
|
+
* await client.utils.dev.postAgentOrderBuilderV1({
|
|
158
|
+
* order_short_id: "order_short_id",
|
|
159
|
+
* text: "text"
|
|
160
|
+
* })
|
|
161
|
+
*/
|
|
162
|
+
postAgentOrderBuilderV1(request, requestOptions) {
|
|
163
|
+
return core.HttpResponsePromise.fromPromise(this.__postAgentOrderBuilderV1(request, requestOptions));
|
|
164
|
+
}
|
|
165
|
+
__postAgentOrderBuilderV1(request, requestOptions) {
|
|
166
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
167
|
+
var _a, _b, _c, _d;
|
|
168
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
169
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
170
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "dev/agent/order-builder/v1"),
|
|
171
|
+
method: "POST",
|
|
172
|
+
headers: _headers,
|
|
173
|
+
contentType: "application/json",
|
|
174
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
175
|
+
requestType: "json",
|
|
176
|
+
body: request,
|
|
177
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
178
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
179
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
180
|
+
});
|
|
181
|
+
if (_response.ok) {
|
|
182
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
183
|
+
}
|
|
184
|
+
if (_response.error.reason === "status-code") {
|
|
185
|
+
switch (_response.error.statusCode) {
|
|
186
|
+
case 422:
|
|
187
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
188
|
+
default:
|
|
189
|
+
throw new errors.ChrtError({
|
|
190
|
+
statusCode: _response.error.statusCode,
|
|
191
|
+
body: _response.error.body,
|
|
192
|
+
rawResponse: _response.rawResponse,
|
|
193
|
+
});
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
switch (_response.error.reason) {
|
|
197
|
+
case "non-json":
|
|
198
|
+
throw new errors.ChrtError({
|
|
199
|
+
statusCode: _response.error.statusCode,
|
|
200
|
+
body: _response.error.rawBody,
|
|
201
|
+
rawResponse: _response.rawResponse,
|
|
202
|
+
});
|
|
203
|
+
case "timeout":
|
|
204
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /dev/agent/order-builder/v1.");
|
|
205
|
+
case "unknown":
|
|
206
|
+
throw new errors.ChrtError({
|
|
207
|
+
message: _response.error.errorMessage,
|
|
208
|
+
rawResponse: _response.rawResponse,
|
|
209
|
+
});
|
|
210
|
+
}
|
|
211
|
+
});
|
|
212
|
+
}
|
|
84
213
|
/**
|
|
85
214
|
* (DEPRECATED) Extracts and returns the user ID from the authenticated request's JWT token. | () -> (str)
|
|
86
215
|
*
|
|
@@ -427,7 +556,10 @@ export class Dev {
|
|
|
427
556
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
428
557
|
});
|
|
429
558
|
if (_response.ok) {
|
|
430
|
-
return {
|
|
559
|
+
return {
|
|
560
|
+
data: _response.body,
|
|
561
|
+
rawResponse: _response.rawResponse,
|
|
562
|
+
};
|
|
431
563
|
}
|
|
432
564
|
if (_response.error.reason === "status-code") {
|
|
433
565
|
throw new errors.ChrtError({
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* order_short_id: "order_short_id",
|
|
8
|
+
* text: "text"
|
|
9
|
+
* }
|
|
10
|
+
*/
|
|
11
|
+
export interface OrderBuilderReq {
|
|
12
|
+
order_short_id: string;
|
|
13
|
+
text: string;
|
|
14
|
+
}
|
|
@@ -5,6 +5,7 @@ import * as Chrt from "../index.mjs";
|
|
|
5
5
|
export interface SessionByDeviceDataPoint1 {
|
|
6
6
|
schema_version: number;
|
|
7
7
|
timestamp: string;
|
|
8
|
+
received_at_timestamp?: string | null;
|
|
8
9
|
metadata: Chrt.SessionByDeviceDataPointMetadata1;
|
|
9
10
|
location: Chrt.LocationFeature;
|
|
10
11
|
temperature?: number | null;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Chrt from "../index.mjs";
|
|
5
|
+
export interface StationaryCluster {
|
|
6
|
+
start_timestamp: string;
|
|
7
|
+
end_timestamp: string;
|
|
8
|
+
centroid_location: Chrt.LocationFeature;
|
|
9
|
+
radius_miles: number;
|
|
10
|
+
point_count: number;
|
|
11
|
+
}
|
|
@@ -76,6 +76,7 @@ export * from "./OffChrtShipperOrg1.mjs";
|
|
|
76
76
|
export * from "./OnboardCourierTaskActionEnum1.mjs";
|
|
77
77
|
export * from "./Order1.mjs";
|
|
78
78
|
export * from "./OrderAndTaskGroupExpandedReq.mjs";
|
|
79
|
+
export * from "./OrderBuilderRes.mjs";
|
|
79
80
|
export * from "./OrderDraftExpanded.mjs";
|
|
80
81
|
export * from "./OrderDraftExpandedListRes.mjs";
|
|
81
82
|
export * from "./OrderDraftSortByEnum.mjs";
|
|
@@ -106,10 +107,12 @@ export * from "./Quote.mjs";
|
|
|
106
107
|
export * from "./RateSheet1.mjs";
|
|
107
108
|
export * from "./RateSheetListResponse.mjs";
|
|
108
109
|
export * from "./RateSheetSortByEnum.mjs";
|
|
110
|
+
export * from "./ReadOrderAgentRes.mjs";
|
|
109
111
|
export * from "./ServiceTypeEnum1.mjs";
|
|
110
112
|
export * from "./Session1.mjs";
|
|
111
113
|
export * from "./SessionByDeviceDataPoint1.mjs";
|
|
112
114
|
export * from "./SessionByDeviceDataPointMetadata1.mjs";
|
|
115
|
+
export * from "./SessionByDeviceHistoryRes1.mjs";
|
|
113
116
|
export * from "./SessionByDeviceMarkOutliersResponse1.mjs";
|
|
114
117
|
export * from "./SessionListRes.mjs";
|
|
115
118
|
export * from "./SessionSearchRes.mjs";
|
|
@@ -142,6 +145,7 @@ export * from "./StatementExpandedRes.mjs";
|
|
|
142
145
|
export * from "./StatementSortByEnum.mjs";
|
|
143
146
|
export * from "./StatementStatusEnum1.mjs";
|
|
144
147
|
export * from "./StatementsListRes.mjs";
|
|
148
|
+
export * from "./StationaryCluster.mjs";
|
|
145
149
|
export * from "./StripeConnectAccountOnboardingLinkRes.mjs";
|
|
146
150
|
export * from "./StripeConnectInvoiceStatusEnum.mjs";
|
|
147
151
|
export * from "./Task1.mjs";
|
|
@@ -76,6 +76,7 @@ export * from "./OffChrtShipperOrg1.mjs";
|
|
|
76
76
|
export * from "./OnboardCourierTaskActionEnum1.mjs";
|
|
77
77
|
export * from "./Order1.mjs";
|
|
78
78
|
export * from "./OrderAndTaskGroupExpandedReq.mjs";
|
|
79
|
+
export * from "./OrderBuilderRes.mjs";
|
|
79
80
|
export * from "./OrderDraftExpanded.mjs";
|
|
80
81
|
export * from "./OrderDraftExpandedListRes.mjs";
|
|
81
82
|
export * from "./OrderDraftSortByEnum.mjs";
|
|
@@ -106,10 +107,12 @@ export * from "./Quote.mjs";
|
|
|
106
107
|
export * from "./RateSheet1.mjs";
|
|
107
108
|
export * from "./RateSheetListResponse.mjs";
|
|
108
109
|
export * from "./RateSheetSortByEnum.mjs";
|
|
110
|
+
export * from "./ReadOrderAgentRes.mjs";
|
|
109
111
|
export * from "./ServiceTypeEnum1.mjs";
|
|
110
112
|
export * from "./Session1.mjs";
|
|
111
113
|
export * from "./SessionByDeviceDataPoint1.mjs";
|
|
112
114
|
export * from "./SessionByDeviceDataPointMetadata1.mjs";
|
|
115
|
+
export * from "./SessionByDeviceHistoryRes1.mjs";
|
|
113
116
|
export * from "./SessionByDeviceMarkOutliersResponse1.mjs";
|
|
114
117
|
export * from "./SessionListRes.mjs";
|
|
115
118
|
export * from "./SessionSearchRes.mjs";
|
|
@@ -142,6 +145,7 @@ export * from "./StatementExpandedRes.mjs";
|
|
|
142
145
|
export * from "./StatementSortByEnum.mjs";
|
|
143
146
|
export * from "./StatementStatusEnum1.mjs";
|
|
144
147
|
export * from "./StatementsListRes.mjs";
|
|
148
|
+
export * from "./StationaryCluster.mjs";
|
|
145
149
|
export * from "./StripeConnectAccountOnboardingLinkRes.mjs";
|
|
146
150
|
export * from "./StripeConnectInvoiceStatusEnum.mjs";
|
|
147
151
|
export * from "./Task1.mjs";
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.
|
|
1
|
+
export declare const SDK_VERSION = "1.467.0";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "1.
|
|
1
|
+
export const SDK_VERSION = "1.467.0";
|