@chrt-inc/typescript-sdk 1.961.0 → 1.963.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/billingNew/resources/invoices/client/Client.d.ts +3 -0
- package/dist/cjs/api/resources/billingNew/resources/invoices/client/Client.js +5 -0
- package/dist/cjs/api/resources/billingNew/resources/invoices/index.d.ts +1 -0
- package/dist/cjs/api/resources/billingNew/resources/invoices/index.js +1 -0
- package/dist/cjs/api/resources/billingNew/resources/invoices/resources/export/client/Client.d.ts +51 -0
- package/dist/cjs/api/resources/billingNew/resources/invoices/resources/export/client/Client.js +139 -0
- package/dist/cjs/api/resources/billingNew/resources/invoices/resources/export/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/billingNew/resources/invoices/resources/export/client/index.js +17 -0
- package/dist/cjs/api/resources/billingNew/resources/invoices/resources/export/client/requests/ExportListV1Request.d.ts +14 -0
- package/dist/cjs/api/resources/billingNew/resources/invoices/resources/export/client/requests/ExportListV1Request.js +5 -0
- package/dist/cjs/api/resources/billingNew/resources/invoices/resources/export/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/billingNew/resources/invoices/resources/export/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/billingNew/resources/invoices/resources/export/index.d.ts +1 -0
- package/dist/cjs/api/resources/billingNew/resources/invoices/resources/export/index.js +17 -0
- package/dist/cjs/api/resources/billingNew/resources/invoices/resources/index.d.ts +2 -0
- package/dist/cjs/api/resources/billingNew/resources/invoices/resources/index.js +41 -0
- package/dist/cjs/api/resources/shipping/resources/index.d.ts +1 -0
- package/dist/cjs/api/resources/shipping/resources/index.js +1 -0
- package/dist/cjs/api/resources/shipping/resources/orders/resources/orderEvents/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/shipping/resources/orders/resources/orderEvents/client/Client.js +2 -2
- package/dist/cjs/api/resources/shipping/resources/taskArtifacts/client/Client.d.ts +15 -0
- package/dist/cjs/api/resources/shipping/resources/taskArtifacts/client/Client.js +63 -0
- package/dist/cjs/api/resources/shipping/resources/taskArtifacts/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/shipping/resources/taskArtifacts/client/index.js +15 -0
- package/dist/cjs/api/resources/shipping/resources/taskArtifacts/client/requests/TaskArtifactCustodyPartiesUpdateReq.d.ts +14 -0
- package/dist/cjs/api/resources/shipping/resources/taskArtifacts/client/requests/TaskArtifactCustodyPartiesUpdateReq.js +5 -0
- package/dist/cjs/api/resources/shipping/resources/taskArtifacts/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/shipping/resources/taskArtifacts/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/shipping/resources/tasks/client/Client.d.ts +14 -0
- package/dist/cjs/api/resources/shipping/resources/tasks/client/Client.js +63 -0
- package/dist/cjs/api/resources/shipping/resources/tasks/client/requests/TaskCustodyPartiesUpdateReq.d.ts +14 -0
- package/dist/cjs/api/resources/shipping/resources/tasks/client/requests/TaskCustodyPartiesUpdateReq.js +5 -0
- package/dist/cjs/api/resources/shipping/resources/tasks/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/assets/client/Client.d.ts +26 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/assets/client/Client.js +118 -0
- package/dist/cjs/api/resources/users/resources/privateData/client/Client.d.ts +15 -0
- package/dist/cjs/api/resources/users/resources/privateData/client/Client.js +64 -0
- package/dist/cjs/api/resources/users/resources/privateData/client/requests/UserPrivateDataNameUpdateReq.d.ts +12 -0
- package/dist/cjs/api/resources/users/resources/privateData/client/requests/UserPrivateDataNameUpdateReq.js +5 -0
- package/dist/cjs/api/resources/users/resources/privateData/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/types/CustodyParty1.d.ts +10 -0
- package/dist/cjs/api/types/CustodyParty1.js +5 -0
- package/dist/cjs/api/types/CustodyPartyExpanded.d.ts +13 -0
- package/dist/cjs/api/types/CustodyPartyExpanded.js +5 -0
- package/dist/cjs/api/types/InvoiceExportListItem.d.ts +46 -0
- package/dist/cjs/api/types/InvoiceExportListItem.js +5 -0
- package/dist/cjs/api/types/InvoiceExportListRes.d.ts +8 -0
- package/dist/cjs/api/types/InvoiceExportListRes.js +5 -0
- package/dist/cjs/api/types/OrderEventActionEnum1.d.ts +2 -1
- package/dist/cjs/api/types/OrderEventActionEnum1.js +1 -0
- package/dist/cjs/api/types/OrderEventExpanded1.d.ts +1 -1
- package/dist/cjs/api/types/ReelablesAsset1.d.ts +3 -0
- package/dist/cjs/api/types/ReelablesAssetPausedTimeWindow1.d.ts +7 -0
- package/dist/cjs/api/types/ReelablesAssetPausedTimeWindow1.js +5 -0
- package/dist/cjs/api/types/ReelablesDataPointMetadata1.d.ts +1 -0
- package/dist/cjs/api/types/Task1.d.ts +2 -0
- package/dist/cjs/api/types/TaskArtifact1.d.ts +2 -0
- package/dist/cjs/api/types/TaskExpanded.d.ts +2 -0
- package/dist/cjs/api/types/UserPrivateData1.d.ts +1 -0
- package/dist/cjs/api/types/index.d.ts +5 -0
- package/dist/cjs/api/types/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/billingNew/resources/invoices/client/Client.d.mts +3 -0
- package/dist/esm/api/resources/billingNew/resources/invoices/client/Client.mjs +5 -0
- package/dist/esm/api/resources/billingNew/resources/invoices/index.d.mts +1 -0
- package/dist/esm/api/resources/billingNew/resources/invoices/index.mjs +1 -0
- package/dist/esm/api/resources/billingNew/resources/invoices/resources/export/client/Client.d.mts +51 -0
- package/dist/esm/api/resources/billingNew/resources/invoices/resources/export/client/Client.mjs +102 -0
- package/dist/esm/api/resources/billingNew/resources/invoices/resources/export/client/index.d.mts +2 -0
- package/dist/esm/api/resources/billingNew/resources/invoices/resources/export/client/index.mjs +1 -0
- package/dist/esm/api/resources/billingNew/resources/invoices/resources/export/client/requests/ExportListV1Request.d.mts +14 -0
- package/dist/esm/api/resources/billingNew/resources/invoices/resources/export/client/requests/ExportListV1Request.mjs +4 -0
- package/dist/esm/api/resources/billingNew/resources/invoices/resources/export/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/billingNew/resources/invoices/resources/export/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/billingNew/resources/invoices/resources/export/index.d.mts +1 -0
- package/dist/esm/api/resources/billingNew/resources/invoices/resources/export/index.mjs +1 -0
- package/dist/esm/api/resources/billingNew/resources/invoices/resources/index.d.mts +2 -0
- package/dist/esm/api/resources/billingNew/resources/invoices/resources/index.mjs +2 -0
- package/dist/esm/api/resources/shipping/resources/index.d.mts +1 -0
- package/dist/esm/api/resources/shipping/resources/index.mjs +1 -0
- package/dist/esm/api/resources/shipping/resources/orders/resources/orderEvents/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/shipping/resources/orders/resources/orderEvents/client/Client.mjs +2 -2
- package/dist/esm/api/resources/shipping/resources/taskArtifacts/client/Client.d.mts +15 -0
- package/dist/esm/api/resources/shipping/resources/taskArtifacts/client/Client.mjs +63 -0
- package/dist/esm/api/resources/shipping/resources/taskArtifacts/client/index.d.mts +1 -0
- package/dist/esm/api/resources/shipping/resources/taskArtifacts/client/index.mjs +1 -1
- package/dist/esm/api/resources/shipping/resources/taskArtifacts/client/requests/TaskArtifactCustodyPartiesUpdateReq.d.mts +14 -0
- package/dist/esm/api/resources/shipping/resources/taskArtifacts/client/requests/TaskArtifactCustodyPartiesUpdateReq.mjs +4 -0
- package/dist/esm/api/resources/shipping/resources/taskArtifacts/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/shipping/resources/taskArtifacts/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/shipping/resources/tasks/client/Client.d.mts +14 -0
- package/dist/esm/api/resources/shipping/resources/tasks/client/Client.mjs +63 -0
- package/dist/esm/api/resources/shipping/resources/tasks/client/requests/TaskCustodyPartiesUpdateReq.d.mts +14 -0
- package/dist/esm/api/resources/shipping/resources/tasks/client/requests/TaskCustodyPartiesUpdateReq.mjs +4 -0
- package/dist/esm/api/resources/shipping/resources/tasks/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/assets/client/Client.d.mts +26 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/assets/client/Client.mjs +118 -0
- package/dist/esm/api/resources/users/resources/privateData/client/Client.d.mts +15 -0
- package/dist/esm/api/resources/users/resources/privateData/client/Client.mjs +64 -0
- package/dist/esm/api/resources/users/resources/privateData/client/requests/UserPrivateDataNameUpdateReq.d.mts +12 -0
- package/dist/esm/api/resources/users/resources/privateData/client/requests/UserPrivateDataNameUpdateReq.mjs +4 -0
- package/dist/esm/api/resources/users/resources/privateData/client/requests/index.d.mts +1 -0
- package/dist/esm/api/types/CustodyParty1.d.mts +10 -0
- package/dist/esm/api/types/CustodyParty1.mjs +4 -0
- package/dist/esm/api/types/CustodyPartyExpanded.d.mts +13 -0
- package/dist/esm/api/types/CustodyPartyExpanded.mjs +4 -0
- package/dist/esm/api/types/InvoiceExportListItem.d.mts +46 -0
- package/dist/esm/api/types/InvoiceExportListItem.mjs +4 -0
- package/dist/esm/api/types/InvoiceExportListRes.d.mts +8 -0
- package/dist/esm/api/types/InvoiceExportListRes.mjs +4 -0
- package/dist/esm/api/types/OrderEventActionEnum1.d.mts +2 -1
- package/dist/esm/api/types/OrderEventActionEnum1.mjs +1 -0
- package/dist/esm/api/types/OrderEventExpanded1.d.mts +1 -1
- package/dist/esm/api/types/ReelablesAsset1.d.mts +3 -0
- package/dist/esm/api/types/ReelablesAssetPausedTimeWindow1.d.mts +7 -0
- package/dist/esm/api/types/ReelablesAssetPausedTimeWindow1.mjs +4 -0
- package/dist/esm/api/types/ReelablesDataPointMetadata1.d.mts +1 -0
- package/dist/esm/api/types/Task1.d.mts +2 -0
- package/dist/esm/api/types/TaskArtifact1.d.mts +2 -0
- package/dist/esm/api/types/TaskExpanded.d.mts +2 -0
- package/dist/esm/api/types/UserPrivateData1.d.mts +1 -0
- package/dist/esm/api/types/index.d.mts +5 -0
- package/dist/esm/api/types/index.mjs +5 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +411 -2
|
@@ -251,6 +251,69 @@ class Tasks {
|
|
|
251
251
|
}
|
|
252
252
|
});
|
|
253
253
|
}
|
|
254
|
+
/**
|
|
255
|
+
* Updates or clears the parties that provided or received cargo for a task. Contact references must belong to the caller's organization. | authz_personas=[draft_creator_org_operator, driver_for_executor, executor_org_operators, coordinator_org_operators] (depending on status) | (TaskCustodyPartiesUpdateReq) -> (bool)
|
|
256
|
+
*
|
|
257
|
+
* @param {string} taskId
|
|
258
|
+
* @param {Chrt.shipping.TaskCustodyPartiesUpdateReq} request
|
|
259
|
+
* @param {Tasks.RequestOptions} requestOptions - Request-specific configuration.
|
|
260
|
+
*
|
|
261
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
262
|
+
*
|
|
263
|
+
* @example
|
|
264
|
+
* await client.shipping.tasks.updateCustodyPartiesV1("task_id")
|
|
265
|
+
*/
|
|
266
|
+
updateCustodyPartiesV1(taskId, request = {}, requestOptions) {
|
|
267
|
+
return core.HttpResponsePromise.fromPromise(this.__updateCustodyPartiesV1(taskId, request, requestOptions));
|
|
268
|
+
}
|
|
269
|
+
__updateCustodyPartiesV1(taskId_1) {
|
|
270
|
+
return __awaiter(this, arguments, void 0, function* (taskId, request = {}, requestOptions) {
|
|
271
|
+
var _a, _b, _c, _d;
|
|
272
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
273
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
274
|
+
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, `shipping/tasks/custody_parties/update/v1/${encodeURIComponent(taskId)}`),
|
|
275
|
+
method: "PATCH",
|
|
276
|
+
headers: _headers,
|
|
277
|
+
contentType: "application/json",
|
|
278
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
279
|
+
requestType: "json",
|
|
280
|
+
body: request,
|
|
281
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
282
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
283
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
284
|
+
});
|
|
285
|
+
if (_response.ok) {
|
|
286
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
287
|
+
}
|
|
288
|
+
if (_response.error.reason === "status-code") {
|
|
289
|
+
switch (_response.error.statusCode) {
|
|
290
|
+
case 422:
|
|
291
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
292
|
+
default:
|
|
293
|
+
throw new errors.ChrtError({
|
|
294
|
+
statusCode: _response.error.statusCode,
|
|
295
|
+
body: _response.error.body,
|
|
296
|
+
rawResponse: _response.rawResponse,
|
|
297
|
+
});
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
switch (_response.error.reason) {
|
|
301
|
+
case "non-json":
|
|
302
|
+
throw new errors.ChrtError({
|
|
303
|
+
statusCode: _response.error.statusCode,
|
|
304
|
+
body: _response.error.rawBody,
|
|
305
|
+
rawResponse: _response.rawResponse,
|
|
306
|
+
});
|
|
307
|
+
case "timeout":
|
|
308
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /shipping/tasks/custody_parties/update/v1/{task_id}.");
|
|
309
|
+
case "unknown":
|
|
310
|
+
throw new errors.ChrtError({
|
|
311
|
+
message: _response.error.errorMessage,
|
|
312
|
+
rawResponse: _response.rawResponse,
|
|
313
|
+
});
|
|
314
|
+
}
|
|
315
|
+
});
|
|
316
|
+
}
|
|
254
317
|
/**
|
|
255
318
|
* Overrides a draft or staged task location from a contact or coordinator shipper account and associates the reference. | authz_personas=[draft_creator_org_operator, order_creator_org_operators, task_group_operating_org_operators, coordinator_org_operators] | (TaskLocationFromReferenceReq) -> (PydanticObjectId)
|
|
256
319
|
*
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Chrt from "../../../../../../index.js";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {}
|
|
8
|
+
*/
|
|
9
|
+
export interface TaskCustodyPartiesUpdateReq {
|
|
10
|
+
provided_by?: Chrt.CustodyParty1 | null;
|
|
11
|
+
provided_by__set_to_None?: boolean;
|
|
12
|
+
received_by?: Chrt.CustodyParty1 | null;
|
|
13
|
+
received_by__set_to_None?: boolean;
|
|
14
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { type AttemptTaskReq } from "./AttemptTaskReq.js";
|
|
2
2
|
export { type TaskCompleteReq } from "./TaskCompleteReq.js";
|
|
3
3
|
export { type TaskCompletionTimestampUpdateReq } from "./TaskCompletionTimestampUpdateReq.js";
|
|
4
|
+
export { type TaskCustodyPartiesUpdateReq } from "./TaskCustodyPartiesUpdateReq.js";
|
|
4
5
|
export { type TaskLocationFromReferenceReq } from "./TaskLocationFromReferenceReq.js";
|
|
5
6
|
export { type WaitTimeOverrideReq } from "./WaitTimeOverrideReq.js";
|
|
@@ -107,6 +107,32 @@ export declare class Assets {
|
|
|
107
107
|
*/
|
|
108
108
|
listV1(request?: Chrt.trackingIntegrations.reelables.AssetsListV1Request, requestOptions?: Assets.RequestOptions): core.HttpResponsePromise<Chrt.ReelablesAssetListRes>;
|
|
109
109
|
private __listV1;
|
|
110
|
+
/**
|
|
111
|
+
* Pauses a Reelables asset and opens a new pause time window. | authz: min_org_role=operator | () -> (bool)
|
|
112
|
+
*
|
|
113
|
+
* @param {string} assetId
|
|
114
|
+
* @param {Assets.RequestOptions} requestOptions - Request-specific configuration.
|
|
115
|
+
*
|
|
116
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
117
|
+
*
|
|
118
|
+
* @example
|
|
119
|
+
* await client.trackingIntegrations.reelables.assets.pauseV1("asset_id")
|
|
120
|
+
*/
|
|
121
|
+
pauseV1(assetId: string, requestOptions?: Assets.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
122
|
+
private __pauseV1;
|
|
123
|
+
/**
|
|
124
|
+
* Unpauses a Reelables asset and closes the open pause time window. | authz: min_org_role=operator | () -> (bool)
|
|
125
|
+
*
|
|
126
|
+
* @param {string} assetId
|
|
127
|
+
* @param {Assets.RequestOptions} requestOptions - Request-specific configuration.
|
|
128
|
+
*
|
|
129
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
130
|
+
*
|
|
131
|
+
* @example
|
|
132
|
+
* await client.trackingIntegrations.reelables.assets.unpauseV1("asset_id")
|
|
133
|
+
*/
|
|
134
|
+
unpauseV1(assetId: string, requestOptions?: Assets.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
135
|
+
private __unpauseV1;
|
|
110
136
|
/**
|
|
111
137
|
* Updates a Reelables asset, applying name changes upstream before updating CHRT. | authz: min_org_role=operator | (ReelablesAssetClientUpdate1) -> (ReelablesAsset1)
|
|
112
138
|
*
|
|
@@ -382,6 +382,124 @@ class Assets {
|
|
|
382
382
|
}
|
|
383
383
|
});
|
|
384
384
|
}
|
|
385
|
+
/**
|
|
386
|
+
* Pauses a Reelables asset and opens a new pause time window. | authz: min_org_role=operator | () -> (bool)
|
|
387
|
+
*
|
|
388
|
+
* @param {string} assetId
|
|
389
|
+
* @param {Assets.RequestOptions} requestOptions - Request-specific configuration.
|
|
390
|
+
*
|
|
391
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
392
|
+
*
|
|
393
|
+
* @example
|
|
394
|
+
* await client.trackingIntegrations.reelables.assets.pauseV1("asset_id")
|
|
395
|
+
*/
|
|
396
|
+
pauseV1(assetId, requestOptions) {
|
|
397
|
+
return core.HttpResponsePromise.fromPromise(this.__pauseV1(assetId, requestOptions));
|
|
398
|
+
}
|
|
399
|
+
__pauseV1(assetId, requestOptions) {
|
|
400
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
401
|
+
var _a, _b, _c, _d;
|
|
402
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
403
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
404
|
+
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, `tracking_integrations/reelables/assets/pause/v1/${encodeURIComponent(assetId)}`),
|
|
405
|
+
method: "POST",
|
|
406
|
+
headers: _headers,
|
|
407
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
408
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
409
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
410
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
411
|
+
});
|
|
412
|
+
if (_response.ok) {
|
|
413
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
414
|
+
}
|
|
415
|
+
if (_response.error.reason === "status-code") {
|
|
416
|
+
switch (_response.error.statusCode) {
|
|
417
|
+
case 422:
|
|
418
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
419
|
+
default:
|
|
420
|
+
throw new errors.ChrtError({
|
|
421
|
+
statusCode: _response.error.statusCode,
|
|
422
|
+
body: _response.error.body,
|
|
423
|
+
rawResponse: _response.rawResponse,
|
|
424
|
+
});
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
switch (_response.error.reason) {
|
|
428
|
+
case "non-json":
|
|
429
|
+
throw new errors.ChrtError({
|
|
430
|
+
statusCode: _response.error.statusCode,
|
|
431
|
+
body: _response.error.rawBody,
|
|
432
|
+
rawResponse: _response.rawResponse,
|
|
433
|
+
});
|
|
434
|
+
case "timeout":
|
|
435
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /tracking_integrations/reelables/assets/pause/v1/{asset_id}.");
|
|
436
|
+
case "unknown":
|
|
437
|
+
throw new errors.ChrtError({
|
|
438
|
+
message: _response.error.errorMessage,
|
|
439
|
+
rawResponse: _response.rawResponse,
|
|
440
|
+
});
|
|
441
|
+
}
|
|
442
|
+
});
|
|
443
|
+
}
|
|
444
|
+
/**
|
|
445
|
+
* Unpauses a Reelables asset and closes the open pause time window. | authz: min_org_role=operator | () -> (bool)
|
|
446
|
+
*
|
|
447
|
+
* @param {string} assetId
|
|
448
|
+
* @param {Assets.RequestOptions} requestOptions - Request-specific configuration.
|
|
449
|
+
*
|
|
450
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
451
|
+
*
|
|
452
|
+
* @example
|
|
453
|
+
* await client.trackingIntegrations.reelables.assets.unpauseV1("asset_id")
|
|
454
|
+
*/
|
|
455
|
+
unpauseV1(assetId, requestOptions) {
|
|
456
|
+
return core.HttpResponsePromise.fromPromise(this.__unpauseV1(assetId, requestOptions));
|
|
457
|
+
}
|
|
458
|
+
__unpauseV1(assetId, requestOptions) {
|
|
459
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
460
|
+
var _a, _b, _c, _d;
|
|
461
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
462
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
463
|
+
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, `tracking_integrations/reelables/assets/unpause/v1/${encodeURIComponent(assetId)}`),
|
|
464
|
+
method: "POST",
|
|
465
|
+
headers: _headers,
|
|
466
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
467
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
468
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
469
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
470
|
+
});
|
|
471
|
+
if (_response.ok) {
|
|
472
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
473
|
+
}
|
|
474
|
+
if (_response.error.reason === "status-code") {
|
|
475
|
+
switch (_response.error.statusCode) {
|
|
476
|
+
case 422:
|
|
477
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
478
|
+
default:
|
|
479
|
+
throw new errors.ChrtError({
|
|
480
|
+
statusCode: _response.error.statusCode,
|
|
481
|
+
body: _response.error.body,
|
|
482
|
+
rawResponse: _response.rawResponse,
|
|
483
|
+
});
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
switch (_response.error.reason) {
|
|
487
|
+
case "non-json":
|
|
488
|
+
throw new errors.ChrtError({
|
|
489
|
+
statusCode: _response.error.statusCode,
|
|
490
|
+
body: _response.error.rawBody,
|
|
491
|
+
rawResponse: _response.rawResponse,
|
|
492
|
+
});
|
|
493
|
+
case "timeout":
|
|
494
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /tracking_integrations/reelables/assets/unpause/v1/{asset_id}.");
|
|
495
|
+
case "unknown":
|
|
496
|
+
throw new errors.ChrtError({
|
|
497
|
+
message: _response.error.errorMessage,
|
|
498
|
+
rawResponse: _response.rawResponse,
|
|
499
|
+
});
|
|
500
|
+
}
|
|
501
|
+
});
|
|
502
|
+
}
|
|
385
503
|
/**
|
|
386
504
|
* Updates a Reelables asset, applying name changes upstream before updating CHRT. | authz: min_org_role=operator | (ReelablesAssetClientUpdate1) -> (ReelablesAsset1)
|
|
387
505
|
*
|
|
@@ -45,6 +45,21 @@ export declare class PrivateData {
|
|
|
45
45
|
*/
|
|
46
46
|
upsertFirebaseCloudMessagingTokenV1(request: Chrt.users.FirebaseCloudMessagingTokenClientCreate1, requestOptions?: PrivateData.RequestOptions): core.HttpResponsePromise<Chrt.UserPrivateData1>;
|
|
47
47
|
private __upsertFirebaseCloudMessagingTokenV1;
|
|
48
|
+
/**
|
|
49
|
+
* Updates the caller's name in WorkOS and private user data. | (UserPrivateDataNameUpdateReq) -> (UserPrivateData1)
|
|
50
|
+
*
|
|
51
|
+
* @param {Chrt.users.UserPrivateDataNameUpdateReq} request
|
|
52
|
+
* @param {PrivateData.RequestOptions} requestOptions - Request-specific configuration.
|
|
53
|
+
*
|
|
54
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* await client.users.privateData.updateNameV1({
|
|
58
|
+
* name: "name"
|
|
59
|
+
* })
|
|
60
|
+
*/
|
|
61
|
+
updateNameV1(request: Chrt.users.UserPrivateDataNameUpdateReq, requestOptions?: PrivateData.RequestOptions): core.HttpResponsePromise<Chrt.UserPrivateData1>;
|
|
62
|
+
private __updateNameV1;
|
|
48
63
|
/**
|
|
49
64
|
* Retrieves private user data for the caller. | () -> (UserPrivateData1)
|
|
50
65
|
*
|
|
@@ -119,6 +119,70 @@ class PrivateData {
|
|
|
119
119
|
}
|
|
120
120
|
});
|
|
121
121
|
}
|
|
122
|
+
/**
|
|
123
|
+
* Updates the caller's name in WorkOS and private user data. | (UserPrivateDataNameUpdateReq) -> (UserPrivateData1)
|
|
124
|
+
*
|
|
125
|
+
* @param {Chrt.users.UserPrivateDataNameUpdateReq} request
|
|
126
|
+
* @param {PrivateData.RequestOptions} requestOptions - Request-specific configuration.
|
|
127
|
+
*
|
|
128
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
129
|
+
*
|
|
130
|
+
* @example
|
|
131
|
+
* await client.users.privateData.updateNameV1({
|
|
132
|
+
* name: "name"
|
|
133
|
+
* })
|
|
134
|
+
*/
|
|
135
|
+
updateNameV1(request, requestOptions) {
|
|
136
|
+
return core.HttpResponsePromise.fromPromise(this.__updateNameV1(request, requestOptions));
|
|
137
|
+
}
|
|
138
|
+
__updateNameV1(request, requestOptions) {
|
|
139
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
140
|
+
var _a, _b, _c, _d;
|
|
141
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
142
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
143
|
+
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, "users/user_private_data/update_name/v1"),
|
|
144
|
+
method: "PATCH",
|
|
145
|
+
headers: _headers,
|
|
146
|
+
contentType: "application/json",
|
|
147
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
148
|
+
requestType: "json",
|
|
149
|
+
body: request,
|
|
150
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
151
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
152
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
153
|
+
});
|
|
154
|
+
if (_response.ok) {
|
|
155
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
156
|
+
}
|
|
157
|
+
if (_response.error.reason === "status-code") {
|
|
158
|
+
switch (_response.error.statusCode) {
|
|
159
|
+
case 422:
|
|
160
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
161
|
+
default:
|
|
162
|
+
throw new errors.ChrtError({
|
|
163
|
+
statusCode: _response.error.statusCode,
|
|
164
|
+
body: _response.error.body,
|
|
165
|
+
rawResponse: _response.rawResponse,
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
switch (_response.error.reason) {
|
|
170
|
+
case "non-json":
|
|
171
|
+
throw new errors.ChrtError({
|
|
172
|
+
statusCode: _response.error.statusCode,
|
|
173
|
+
body: _response.error.rawBody,
|
|
174
|
+
rawResponse: _response.rawResponse,
|
|
175
|
+
});
|
|
176
|
+
case "timeout":
|
|
177
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /users/user_private_data/update_name/v1.");
|
|
178
|
+
case "unknown":
|
|
179
|
+
throw new errors.ChrtError({
|
|
180
|
+
message: _response.error.errorMessage,
|
|
181
|
+
rawResponse: _response.rawResponse,
|
|
182
|
+
});
|
|
183
|
+
}
|
|
184
|
+
});
|
|
185
|
+
}
|
|
122
186
|
/**
|
|
123
187
|
* Retrieves private user data for the caller. | () -> (UserPrivateData1)
|
|
124
188
|
*
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { type FirebaseCloudMessagingTokenClientCreate1 } from "./FirebaseCloudMessagingTokenClientCreate1.js";
|
|
2
|
+
export { type UserPrivateDataNameUpdateReq } from "./UserPrivateDataNameUpdateReq.js";
|
|
2
3
|
export { type UserPrivateDataClientCreate1 } from "./UserPrivateDataClientCreate1.js";
|
|
3
4
|
export { type UserPrivateDataClientUpdate1 } from "./UserPrivateDataClientUpdate1.js";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export interface CustodyParty1 {
|
|
5
|
+
contact_id?: string | null;
|
|
6
|
+
name?: string | null;
|
|
7
|
+
note?: string | null;
|
|
8
|
+
/** Must be a string starting with `user_` */
|
|
9
|
+
user_id?: string | null;
|
|
10
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Chrt from "../index.js";
|
|
5
|
+
export interface CustodyPartyExpanded {
|
|
6
|
+
contact?: Chrt.Contact1 | null;
|
|
7
|
+
contact_id?: string | null;
|
|
8
|
+
name?: string | null;
|
|
9
|
+
note?: string | null;
|
|
10
|
+
/** Must be a string starting with `user_` */
|
|
11
|
+
user_id?: string | null;
|
|
12
|
+
user_name?: string | null;
|
|
13
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Chrt from "../index.js";
|
|
5
|
+
export interface InvoiceExportListItem {
|
|
6
|
+
account_name?: string | null;
|
|
7
|
+
airbill_charge: number;
|
|
8
|
+
airlines?: string[];
|
|
9
|
+
awb_numbers?: string[];
|
|
10
|
+
base_rate: number;
|
|
11
|
+
billing_period_end_at_timestamp: string;
|
|
12
|
+
billing_period_start_at_timestamp: string;
|
|
13
|
+
cargo_types?: string[];
|
|
14
|
+
charge_per_quantity?: number | null;
|
|
15
|
+
charges_subtotal: number;
|
|
16
|
+
currency_code: Chrt.BillingCurrencyCodeEnum1;
|
|
17
|
+
delivery_address?: string | null;
|
|
18
|
+
delivery_location_name?: string | null;
|
|
19
|
+
delivery_status?: string | null;
|
|
20
|
+
delivery_stop_number?: number | null;
|
|
21
|
+
delivery_stops_on_order?: number | null;
|
|
22
|
+
destination_iata?: string | null;
|
|
23
|
+
flight_numbers?: string[];
|
|
24
|
+
invoice_approval_timestamp: string;
|
|
25
|
+
invoice_number: string;
|
|
26
|
+
mileage_estimated?: number | null;
|
|
27
|
+
net_billing: number;
|
|
28
|
+
off_chrt_reference_id?: string | null;
|
|
29
|
+
order_placer_comments?: string | null;
|
|
30
|
+
order_short_id?: string | null;
|
|
31
|
+
origin_iata?: string | null;
|
|
32
|
+
other_charges: number;
|
|
33
|
+
other_charges_detail?: string[];
|
|
34
|
+
pod_date?: string | null;
|
|
35
|
+
pod_name?: string | null;
|
|
36
|
+
pod_time?: string | null;
|
|
37
|
+
quantity?: number | null;
|
|
38
|
+
tax_1_amount?: number | null;
|
|
39
|
+
tax_1_description?: string | null;
|
|
40
|
+
tax_2_amount?: number | null;
|
|
41
|
+
tax_2_description?: string | null;
|
|
42
|
+
tax_3_amount?: number | null;
|
|
43
|
+
tax_3_description?: string | null;
|
|
44
|
+
total_tax: number;
|
|
45
|
+
weight_pounds?: number | null;
|
|
46
|
+
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Canonical vocabulary for shipping order-event and notification actions.
|
|
6
6
|
*/
|
|
7
|
-
export type OrderEventActionEnum1 = "shipping.order.draft_started" | "shipping.order.staged" | "shipping.order.in_progress" | "shipping.order.completed" | "shipping.order.cancelled" | "shipping.order.exception" | "shipping.order.updated" | "shipping.order.deleted" | "shipping.task_group.added" | "shipping.task_group.staged" | "shipping.task_group.provider_assigned" | "shipping.task_group.driver_assigned" | "shipping.task_group.driver_unassigned" | "shipping.task_group.in_progress" | "shipping.task_group.completed" | "shipping.task_group.skipped" | "shipping.task_group.cancelled" | "shipping.task_group.exception" | "shipping.task_group.message" | "shipping.task_group.file_added" | "shipping.task_group.file_deleted" | "shipping.task_group.tasks_ordering_updated" | "shipping.task_group.flight_info_updated" | "shipping.task_group.vehicle_type_updated" | "shipping.task_group.ordering_updated" | "shipping.task_group.deleted" | "shipping.task.added" | "shipping.task.staged" | "shipping.task.attempted" | "shipping.task.completed" | "shipping.task.skipped" | "shipping.task.cancelled" | "shipping.task.exception" | "shipping.task.wait_time_started" | "shipping.task.wait_time_ended" | "shipping.task.wait_time_validated" | "shipping.task.task_artifact_completed" | "shipping.task.executor_org_note_added" | "shipping.task.updated" | "shipping.task.deleted" | "shipping.cargo.added" | "shipping.cargo.staged" | "shipping.cargo.in_transit" | "shipping.cargo.delivered" | "shipping.cargo.skipped" | "shipping.cargo.cancelled" | "shipping.cargo.exception" | "shipping.cargo.device_linked" | "shipping.cargo.device_unlinked" | "shipping.cargo.associated" | "shipping.cargo.unassociated" | "shipping.cargo.updated" | "shipping.cargo.deleted" | "shipping.task_artifact.added" | "shipping.task_artifact.completed" | "shipping.task_artifact.file_added" | "shipping.task_artifact.file_deleted" | "shipping.task_artifact.deleted" | "shipping.account.associated" | "shipping.account.removed" | "shipping.contact.associated" | "shipping.contact.removed";
|
|
7
|
+
export type OrderEventActionEnum1 = "shipping.order.draft_started" | "shipping.order.staged" | "shipping.order.in_progress" | "shipping.order.completed" | "shipping.order.cancelled" | "shipping.order.exception" | "shipping.order.updated" | "shipping.order.deleted" | "shipping.task_group.added" | "shipping.task_group.staged" | "shipping.task_group.provider_assigned" | "shipping.task_group.driver_assigned" | "shipping.task_group.driver_unassigned" | "shipping.task_group.in_progress" | "shipping.task_group.completed" | "shipping.task_group.skipped" | "shipping.task_group.cancelled" | "shipping.task_group.exception" | "shipping.task_group.message" | "shipping.task_group.file_added" | "shipping.task_group.file_deleted" | "shipping.task_group.tasks_ordering_updated" | "shipping.task_group.flight_info_updated" | "shipping.task_group.vehicle_type_updated" | "shipping.task_group.ordering_updated" | "shipping.task_group.deleted" | "shipping.task.added" | "shipping.task.staged" | "shipping.task.attempted" | "shipping.task.completed" | "shipping.task.skipped" | "shipping.task.cancelled" | "shipping.task.exception" | "shipping.task.wait_time_started" | "shipping.task.wait_time_ended" | "shipping.task.wait_time_validated" | "shipping.task.task_artifact_completed" | "shipping.task.executor_org_note_added" | "shipping.task.updated" | "shipping.task.deleted" | "shipping.cargo.added" | "shipping.cargo.staged" | "shipping.cargo.in_transit" | "shipping.cargo.delivered" | "shipping.cargo.skipped" | "shipping.cargo.cancelled" | "shipping.cargo.exception" | "shipping.cargo.device_linked" | "shipping.cargo.device_unlinked" | "shipping.cargo.associated" | "shipping.cargo.unassociated" | "shipping.cargo.updated" | "shipping.cargo.deleted" | "shipping.task_artifact.added" | "shipping.task_artifact.completed" | "shipping.task_artifact.updated" | "shipping.task_artifact.file_added" | "shipping.task_artifact.file_deleted" | "shipping.task_artifact.deleted" | "shipping.account.associated" | "shipping.account.removed" | "shipping.contact.associated" | "shipping.contact.removed";
|
|
8
8
|
export declare const OrderEventActionEnum1: {
|
|
9
9
|
readonly ShippingOrderDraftStarted: "shipping.order.draft_started";
|
|
10
10
|
readonly ShippingOrderStaged: "shipping.order.staged";
|
|
@@ -61,6 +61,7 @@ export declare const OrderEventActionEnum1: {
|
|
|
61
61
|
readonly ShippingCargoDeleted: "shipping.cargo.deleted";
|
|
62
62
|
readonly ShippingTaskArtifactAdded: "shipping.task_artifact.added";
|
|
63
63
|
readonly ShippingTaskArtifactCompleted: "shipping.task_artifact.completed";
|
|
64
|
+
readonly ShippingTaskArtifactUpdated: "shipping.task_artifact.updated";
|
|
64
65
|
readonly ShippingTaskArtifactFileAdded: "shipping.task_artifact.file_added";
|
|
65
66
|
readonly ShippingTaskArtifactFileDeleted: "shipping.task_artifact.file_deleted";
|
|
66
67
|
readonly ShippingTaskArtifactDeleted: "shipping.task_artifact.deleted";
|
|
@@ -60,6 +60,7 @@ exports.OrderEventActionEnum1 = {
|
|
|
60
60
|
ShippingCargoDeleted: "shipping.cargo.deleted",
|
|
61
61
|
ShippingTaskArtifactAdded: "shipping.task_artifact.added",
|
|
62
62
|
ShippingTaskArtifactCompleted: "shipping.task_artifact.completed",
|
|
63
|
+
ShippingTaskArtifactUpdated: "shipping.task_artifact.updated",
|
|
63
64
|
ShippingTaskArtifactFileAdded: "shipping.task_artifact.file_added",
|
|
64
65
|
ShippingTaskArtifactFileDeleted: "shipping.task_artifact.file_deleted",
|
|
65
66
|
ShippingTaskArtifactDeleted: "shipping.task_artifact.deleted",
|
|
@@ -9,6 +9,7 @@ export interface ReelablesAsset1 {
|
|
|
9
9
|
destination_geofence_location?: Chrt.LocationFeature | null;
|
|
10
10
|
destination_geofence_radius_miles?: number;
|
|
11
11
|
label?: Chrt.ReelablesLabel1 | null;
|
|
12
|
+
label_activated_at_timestamp?: string | null;
|
|
12
13
|
last_seen_at_location?: Chrt.LocationFeature | null;
|
|
13
14
|
last_seen_at_location_city?: string | null;
|
|
14
15
|
last_seen_at_location_large_city?: string | null;
|
|
@@ -16,6 +17,8 @@ export interface ReelablesAsset1 {
|
|
|
16
17
|
name: string;
|
|
17
18
|
/** Must be a string starting with `org_` */
|
|
18
19
|
org_id: string;
|
|
20
|
+
pause_windows?: Chrt.ReelablesAssetPausedTimeWindow1[];
|
|
21
|
+
paused?: boolean;
|
|
19
22
|
schema_version: number;
|
|
20
23
|
synced_at_timestamp?: string | null;
|
|
21
24
|
workspace_id: string;
|
|
@@ -29,6 +29,8 @@ export interface Task1 {
|
|
|
29
29
|
order_id: string;
|
|
30
30
|
order_placer_comments?: string | null;
|
|
31
31
|
order_short_id: string;
|
|
32
|
+
provided_by?: Chrt.CustodyParty1 | null;
|
|
33
|
+
received_by?: Chrt.CustodyParty1 | null;
|
|
32
34
|
schema_version: number;
|
|
33
35
|
skipped_at_timestamp?: string | null;
|
|
34
36
|
staged_at_timestamp?: string | null;
|
|
@@ -20,6 +20,8 @@ export interface TaskArtifact1 {
|
|
|
20
20
|
observed_scan_payloads?: string[];
|
|
21
21
|
order_id: string;
|
|
22
22
|
order_short_id: string;
|
|
23
|
+
provided_by?: Chrt.CustodyParty1 | null;
|
|
24
|
+
received_by?: Chrt.CustodyParty1 | null;
|
|
23
25
|
/** Must be a string starting with `org_` */
|
|
24
26
|
requested_by_org_id?: string | null;
|
|
25
27
|
/** Must be a string starting with `user_` */
|
|
@@ -5,6 +5,8 @@ import * as Chrt from "../index.js";
|
|
|
5
5
|
export interface TaskExpanded {
|
|
6
6
|
cargos?: Chrt.Cargo1[] | null;
|
|
7
7
|
contacts?: Chrt.Contact1[] | null;
|
|
8
|
+
provided_by?: Chrt.CustodyPartyExpanded | null;
|
|
9
|
+
received_by?: Chrt.CustodyPartyExpanded | null;
|
|
8
10
|
task: Chrt.Task1;
|
|
9
11
|
task_artifacts?: Chrt.TaskArtifact1[] | null;
|
|
10
12
|
}
|
|
@@ -6,6 +6,7 @@ export interface UserPrivateData1 {
|
|
|
6
6
|
_id: string;
|
|
7
7
|
created_at_timestamp: string;
|
|
8
8
|
firebase_cloud_messaging_token_data?: Chrt.FirebaseCloudMessagingTokenData1[];
|
|
9
|
+
name?: string | null;
|
|
9
10
|
phone_number?: string | null;
|
|
10
11
|
primary_email_address?: string | null;
|
|
11
12
|
schema_version: number;
|
|
@@ -159,6 +159,8 @@ export * from "./CreateInvoiceLineItemsFromLineItemsRes.js";
|
|
|
159
159
|
export * from "./CreateOffChrtOrgRes.js";
|
|
160
160
|
export * from "./CreateStripeConnectAccountRes.js";
|
|
161
161
|
export * from "./CredentialInfoRes.js";
|
|
162
|
+
export * from "./CustodyParty1.js";
|
|
163
|
+
export * from "./CustodyPartyExpanded.js";
|
|
162
164
|
export * from "./CxtAuthTypeEnum1.js";
|
|
163
165
|
export * from "./CxtCredsLimited1.js";
|
|
164
166
|
export * from "./CxtCredsListRes.js";
|
|
@@ -254,6 +256,8 @@ export * from "./InternalDelegationJwtRes.js";
|
|
|
254
256
|
export * from "./Invoice1.js";
|
|
255
257
|
export * from "./InvoiceExpandedListItem.js";
|
|
256
258
|
export * from "./InvoiceExpandedRes.js";
|
|
259
|
+
export * from "./InvoiceExportListItem.js";
|
|
260
|
+
export * from "./InvoiceExportListRes.js";
|
|
257
261
|
export * from "./InvoiceLineItem1.js";
|
|
258
262
|
export * from "./InvoiceLineItemAmountTransformation1.js";
|
|
259
263
|
export * from "./InvoiceLineItemAmountTransformationTypeEnum1.js";
|
|
@@ -440,6 +444,7 @@ export * from "./ProFormaLineItem1.js";
|
|
|
440
444
|
export * from "./ProFormaLineItemProvenanceEnum1.js";
|
|
441
445
|
export * from "./ReelablesAsset1.js";
|
|
442
446
|
export * from "./ReelablesAssetListRes.js";
|
|
447
|
+
export * from "./ReelablesAssetPausedTimeWindow1.js";
|
|
443
448
|
export * from "./ReelablesAssetSortByEnum.js";
|
|
444
449
|
export * from "./ReelablesDataPoint1.js";
|
|
445
450
|
export * from "./ReelablesDataPointMetadata1.js";
|