@chrt-inc/typescript-sdk 1.880.0 → 1.881.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/operations/resources/operationsTasks/client/Client.d.ts +25 -9
- package/dist/cjs/api/resources/operations/resources/operationsTasks/client/Client.js +80 -12
- package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksApplyTimeDeltaToDeadlineTimestampsReq1.d.ts +14 -0
- package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/{OperationsTasksBulkUpdateDeadlinesReq1.d.ts → OperationsTasksSetDeadlineTimestampsReq1.d.ts} +4 -4
- package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/index.d.ts +2 -1
- package/dist/{esm/api/types/OperationsTaskDeadlineUpdate1.d.mts → cjs/api/types/OperationsTaskDeadlineTimestampUpdate1.d.ts} +2 -2
- package/dist/cjs/api/types/OperationsTasksDeadlineTimestampsUpdateRes1.d.ts +7 -0
- package/dist/cjs/api/types/OperationsTasksDeadlineTimestampsUpdateRes1.js +5 -0
- package/dist/cjs/api/types/TaskGroupExpanded.d.ts +2 -0
- package/dist/cjs/api/types/index.d.ts +2 -2
- package/dist/cjs/api/types/index.js +2 -2
- 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/operations/resources/operationsTasks/client/Client.d.mts +25 -9
- package/dist/esm/api/resources/operations/resources/operationsTasks/client/Client.mjs +80 -12
- package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksApplyTimeDeltaToDeadlineTimestampsReq1.d.mts +14 -0
- package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/{OperationsTasksBulkUpdateDeadlinesReq1.d.mts → OperationsTasksSetDeadlineTimestampsReq1.d.mts} +4 -4
- package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/index.d.mts +2 -1
- package/dist/{cjs/api/types/OperationsTaskDeadlineUpdate1.d.ts → esm/api/types/OperationsTaskDeadlineTimestampUpdate1.d.mts} +2 -2
- package/dist/esm/api/types/OperationsTasksDeadlineTimestampsUpdateRes1.d.mts +7 -0
- package/dist/esm/api/types/OperationsTasksDeadlineTimestampsUpdateRes1.mjs +4 -0
- package/dist/esm/api/types/TaskGroupExpanded.d.mts +2 -0
- package/dist/esm/api/types/index.d.mts +2 -2
- package/dist/esm/api/types/index.mjs +2 -2
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +76 -10
- package/dist/cjs/api/types/OperationsTasksBulkUpdateDeadlinesRes1.d.ts +0 -7
- package/dist/esm/api/types/OperationsTasksBulkUpdateDeadlinesRes1.d.mts +0 -7
- /package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/{OperationsTasksBulkUpdateDeadlinesReq1.js → OperationsTasksApplyTimeDeltaToDeadlineTimestampsReq1.js} +0 -0
- /package/dist/cjs/api/{types/OperationsTaskDeadlineUpdate1.js → resources/operations/resources/operationsTasks/client/requests/OperationsTasksSetDeadlineTimestampsReq1.js} +0 -0
- /package/dist/cjs/api/types/{OperationsTasksBulkUpdateDeadlinesRes1.js → OperationsTaskDeadlineTimestampUpdate1.js} +0 -0
- /package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/{OperationsTasksBulkUpdateDeadlinesReq1.mjs → OperationsTasksApplyTimeDeltaToDeadlineTimestampsReq1.mjs} +0 -0
- /package/dist/esm/api/{types/OperationsTaskDeadlineUpdate1.mjs → resources/operations/resources/operationsTasks/client/requests/OperationsTasksSetDeadlineTimestampsReq1.mjs} +0 -0
- /package/dist/esm/api/types/{OperationsTasksBulkUpdateDeadlinesRes1.mjs → OperationsTaskDeadlineTimestampUpdate1.mjs} +0 -0
package/dist/cjs/Client.js
CHANGED
|
@@ -57,8 +57,8 @@ class ChrtClient {
|
|
|
57
57
|
this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
|
|
58
58
|
"X-Fern-Language": "JavaScript",
|
|
59
59
|
"X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
|
|
60
|
-
"X-Fern-SDK-Version": "1.
|
|
61
|
-
"User-Agent": "@chrt-inc/typescript-sdk/1.
|
|
60
|
+
"X-Fern-SDK-Version": "1.881.0",
|
|
61
|
+
"User-Agent": "@chrt-inc/typescript-sdk/1.881.0",
|
|
62
62
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
63
63
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
64
64
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -47,23 +47,21 @@ export declare class OperationsTasks {
|
|
|
47
47
|
addCommentV1(taskId: string, request: Chrt.operations.OperationsTaskAddCommentReq1, requestOptions?: OperationsTasks.RequestOptions): core.HttpResponsePromise<string>;
|
|
48
48
|
private __addCommentV1;
|
|
49
49
|
/**
|
|
50
|
-
*
|
|
50
|
+
* Adds the same ISO 8601 duration to every selected OperationsTask's deadline_timestamp. Missing or cross-org task ids are skipped and reported through updated_count. | authz: min_org_role=operator | (OperationsTasksApplyTimeDeltaToDeadlineTimestampsReq1) -> (OperationsTasksDeadlineTimestampsUpdateRes1)
|
|
51
51
|
*
|
|
52
|
-
* @param {Chrt.operations.
|
|
52
|
+
* @param {Chrt.operations.OperationsTasksApplyTimeDeltaToDeadlineTimestampsReq1} request
|
|
53
53
|
* @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
|
|
54
54
|
*
|
|
55
55
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
56
56
|
*
|
|
57
57
|
* @example
|
|
58
|
-
* await client.operations.operationsTasks.
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
* task_id: "task_id"
|
|
62
|
-
* }]
|
|
58
|
+
* await client.operations.operationsTasks.applyTimeDeltaToDeadlineTimestampsV1({
|
|
59
|
+
* operations_task_ids: ["operations_task_ids"],
|
|
60
|
+
* time_delta: "time_delta"
|
|
63
61
|
* })
|
|
64
62
|
*/
|
|
65
|
-
|
|
66
|
-
private
|
|
63
|
+
applyTimeDeltaToDeadlineTimestampsV1(request: Chrt.operations.OperationsTasksApplyTimeDeltaToDeadlineTimestampsReq1, requestOptions?: OperationsTasks.RequestOptions): core.HttpResponsePromise<Chrt.OperationsTasksDeadlineTimestampsUpdateRes1>;
|
|
64
|
+
private __applyTimeDeltaToDeadlineTimestampsV1;
|
|
67
65
|
/**
|
|
68
66
|
* Deletes a comment from an OperationsTask's comment thread. 404 if the comment isn't found. | authz: min_org_role=operator | () -> (bool)
|
|
69
67
|
*
|
|
@@ -128,6 +126,24 @@ export declare class OperationsTasks {
|
|
|
128
126
|
*/
|
|
129
127
|
listV1(request?: Chrt.operations.OperationsTasksListV1Request, requestOptions?: OperationsTasks.RequestOptions): core.HttpResponsePromise<Chrt.OperationsTaskListRes>;
|
|
130
128
|
private __listV1;
|
|
129
|
+
/**
|
|
130
|
+
* Sets each selected OperationsTask's deadline_timestamp to its requested timestamp. Missing or cross-org task ids are skipped and reported through updated_count. | authz: min_org_role=operator | (OperationsTasksSetDeadlineTimestampsReq1) -> (OperationsTasksDeadlineTimestampsUpdateRes1)
|
|
131
|
+
*
|
|
132
|
+
* @param {Chrt.operations.OperationsTasksSetDeadlineTimestampsReq1} request
|
|
133
|
+
* @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
|
|
134
|
+
*
|
|
135
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
136
|
+
*
|
|
137
|
+
* @example
|
|
138
|
+
* await client.operations.operationsTasks.setDeadlineTimestampsV1({
|
|
139
|
+
* updates: [{
|
|
140
|
+
* deadline_timestamp: "2024-01-15T09:30:00Z",
|
|
141
|
+
* operations_task_id: "operations_task_id"
|
|
142
|
+
* }]
|
|
143
|
+
* })
|
|
144
|
+
*/
|
|
145
|
+
setDeadlineTimestampsV1(request: Chrt.operations.OperationsTasksSetDeadlineTimestampsReq1, requestOptions?: OperationsTasks.RequestOptions): core.HttpResponsePromise<Chrt.OperationsTasksDeadlineTimestampsUpdateRes1>;
|
|
146
|
+
private __setDeadlineTimestampsV1;
|
|
131
147
|
/**
|
|
132
148
|
* Sets an OperationsTask's status (not_started / in_progress / completed / skipped / cancelled). Setting COMPLETED stamps completed_at/by; any other status clears them. | authz: min_org_role=operator | (OperationsTaskStatusReq) -> (bool)
|
|
133
149
|
*
|
|
@@ -121,30 +121,28 @@ class OperationsTasks {
|
|
|
121
121
|
});
|
|
122
122
|
}
|
|
123
123
|
/**
|
|
124
|
-
*
|
|
124
|
+
* Adds the same ISO 8601 duration to every selected OperationsTask's deadline_timestamp. Missing or cross-org task ids are skipped and reported through updated_count. | authz: min_org_role=operator | (OperationsTasksApplyTimeDeltaToDeadlineTimestampsReq1) -> (OperationsTasksDeadlineTimestampsUpdateRes1)
|
|
125
125
|
*
|
|
126
|
-
* @param {Chrt.operations.
|
|
126
|
+
* @param {Chrt.operations.OperationsTasksApplyTimeDeltaToDeadlineTimestampsReq1} request
|
|
127
127
|
* @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
|
|
128
128
|
*
|
|
129
129
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
130
130
|
*
|
|
131
131
|
* @example
|
|
132
|
-
* await client.operations.operationsTasks.
|
|
133
|
-
*
|
|
134
|
-
*
|
|
135
|
-
* task_id: "task_id"
|
|
136
|
-
* }]
|
|
132
|
+
* await client.operations.operationsTasks.applyTimeDeltaToDeadlineTimestampsV1({
|
|
133
|
+
* operations_task_ids: ["operations_task_ids"],
|
|
134
|
+
* time_delta: "time_delta"
|
|
137
135
|
* })
|
|
138
136
|
*/
|
|
139
|
-
|
|
140
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
137
|
+
applyTimeDeltaToDeadlineTimestampsV1(request, requestOptions) {
|
|
138
|
+
return core.HttpResponsePromise.fromPromise(this.__applyTimeDeltaToDeadlineTimestampsV1(request, requestOptions));
|
|
141
139
|
}
|
|
142
|
-
|
|
140
|
+
__applyTimeDeltaToDeadlineTimestampsV1(request, requestOptions) {
|
|
143
141
|
return __awaiter(this, void 0, void 0, function* () {
|
|
144
142
|
var _a, _b, _c, _d;
|
|
145
143
|
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);
|
|
146
144
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
147
|
-
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, "operations/operations_tasks/
|
|
145
|
+
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, "operations/operations_tasks/apply_time_delta_to_deadline_timestamps/v1"),
|
|
148
146
|
method: "PATCH",
|
|
149
147
|
headers: _headers,
|
|
150
148
|
contentType: "application/json",
|
|
@@ -181,7 +179,7 @@ class OperationsTasks {
|
|
|
181
179
|
rawResponse: _response.rawResponse,
|
|
182
180
|
});
|
|
183
181
|
case "timeout":
|
|
184
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /operations/operations_tasks/
|
|
182
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /operations/operations_tasks/apply_time_delta_to_deadline_timestamps/v1.");
|
|
185
183
|
case "unknown":
|
|
186
184
|
throw new errors.ChrtError({
|
|
187
185
|
message: _response.error.errorMessage,
|
|
@@ -510,6 +508,76 @@ class OperationsTasks {
|
|
|
510
508
|
}
|
|
511
509
|
});
|
|
512
510
|
}
|
|
511
|
+
/**
|
|
512
|
+
* Sets each selected OperationsTask's deadline_timestamp to its requested timestamp. Missing or cross-org task ids are skipped and reported through updated_count. | authz: min_org_role=operator | (OperationsTasksSetDeadlineTimestampsReq1) -> (OperationsTasksDeadlineTimestampsUpdateRes1)
|
|
513
|
+
*
|
|
514
|
+
* @param {Chrt.operations.OperationsTasksSetDeadlineTimestampsReq1} request
|
|
515
|
+
* @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
|
|
516
|
+
*
|
|
517
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
518
|
+
*
|
|
519
|
+
* @example
|
|
520
|
+
* await client.operations.operationsTasks.setDeadlineTimestampsV1({
|
|
521
|
+
* updates: [{
|
|
522
|
+
* deadline_timestamp: "2024-01-15T09:30:00Z",
|
|
523
|
+
* operations_task_id: "operations_task_id"
|
|
524
|
+
* }]
|
|
525
|
+
* })
|
|
526
|
+
*/
|
|
527
|
+
setDeadlineTimestampsV1(request, requestOptions) {
|
|
528
|
+
return core.HttpResponsePromise.fromPromise(this.__setDeadlineTimestampsV1(request, requestOptions));
|
|
529
|
+
}
|
|
530
|
+
__setDeadlineTimestampsV1(request, requestOptions) {
|
|
531
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
532
|
+
var _a, _b, _c, _d;
|
|
533
|
+
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);
|
|
534
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
535
|
+
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, "operations/operations_tasks/set_deadline_timestamps/v1"),
|
|
536
|
+
method: "PATCH",
|
|
537
|
+
headers: _headers,
|
|
538
|
+
contentType: "application/json",
|
|
539
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
540
|
+
requestType: "json",
|
|
541
|
+
body: request,
|
|
542
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
543
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
544
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
545
|
+
});
|
|
546
|
+
if (_response.ok) {
|
|
547
|
+
return {
|
|
548
|
+
data: _response.body,
|
|
549
|
+
rawResponse: _response.rawResponse,
|
|
550
|
+
};
|
|
551
|
+
}
|
|
552
|
+
if (_response.error.reason === "status-code") {
|
|
553
|
+
switch (_response.error.statusCode) {
|
|
554
|
+
case 422:
|
|
555
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
556
|
+
default:
|
|
557
|
+
throw new errors.ChrtError({
|
|
558
|
+
statusCode: _response.error.statusCode,
|
|
559
|
+
body: _response.error.body,
|
|
560
|
+
rawResponse: _response.rawResponse,
|
|
561
|
+
});
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
switch (_response.error.reason) {
|
|
565
|
+
case "non-json":
|
|
566
|
+
throw new errors.ChrtError({
|
|
567
|
+
statusCode: _response.error.statusCode,
|
|
568
|
+
body: _response.error.rawBody,
|
|
569
|
+
rawResponse: _response.rawResponse,
|
|
570
|
+
});
|
|
571
|
+
case "timeout":
|
|
572
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /operations/operations_tasks/set_deadline_timestamps/v1.");
|
|
573
|
+
case "unknown":
|
|
574
|
+
throw new errors.ChrtError({
|
|
575
|
+
message: _response.error.errorMessage,
|
|
576
|
+
rawResponse: _response.rawResponse,
|
|
577
|
+
});
|
|
578
|
+
}
|
|
579
|
+
});
|
|
580
|
+
}
|
|
513
581
|
/**
|
|
514
582
|
* Sets an OperationsTask's status (not_started / in_progress / completed / skipped / cancelled). Setting COMPLETED stamps completed_at/by; any other status clears them. | authz: min_org_role=operator | (OperationsTaskStatusReq) -> (bool)
|
|
515
583
|
*
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* operations_task_ids: ["operations_task_ids"],
|
|
8
|
+
* time_delta: "time_delta"
|
|
9
|
+
* }
|
|
10
|
+
*/
|
|
11
|
+
export interface OperationsTasksApplyTimeDeltaToDeadlineTimestampsReq1 {
|
|
12
|
+
operations_task_ids: string[];
|
|
13
|
+
time_delta: string;
|
|
14
|
+
}
|
|
@@ -5,12 +5,12 @@ import * as Chrt from "../../../../../../index.js";
|
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
8
|
-
*
|
|
8
|
+
* updates: [{
|
|
9
9
|
* deadline_timestamp: "2024-01-15T09:30:00Z",
|
|
10
|
-
*
|
|
10
|
+
* operations_task_id: "operations_task_id"
|
|
11
11
|
* }]
|
|
12
12
|
* }
|
|
13
13
|
*/
|
|
14
|
-
export interface
|
|
15
|
-
|
|
14
|
+
export interface OperationsTasksSetDeadlineTimestampsReq1 {
|
|
15
|
+
updates: Chrt.OperationsTaskDeadlineTimestampUpdate1[];
|
|
16
16
|
}
|
package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
export { type OperationsTaskAddCommentReq1 } from "./OperationsTaskAddCommentReq1.js";
|
|
2
|
-
export { type
|
|
2
|
+
export { type OperationsTasksApplyTimeDeltaToDeadlineTimestampsReq1 } from "./OperationsTasksApplyTimeDeltaToDeadlineTimestampsReq1.js";
|
|
3
3
|
export { type OperationsTasksExpandedListV1Request } from "./OperationsTasksExpandedListV1Request.js";
|
|
4
4
|
export { type OperationsTasksListV1Request } from "./OperationsTasksListV1Request.js";
|
|
5
|
+
export { type OperationsTasksSetDeadlineTimestampsReq1 } from "./OperationsTasksSetDeadlineTimestampsReq1.js";
|
|
5
6
|
export { type OperationsTaskStatusReq } from "./OperationsTaskStatusReq.js";
|
|
6
7
|
export { type OperationsTaskClientCreate1 } from "./OperationsTaskClientCreate1.js";
|
|
7
8
|
export { type OperationsTaskClientUpdate1 } from "./OperationsTaskClientUpdate1.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export interface
|
|
4
|
+
export interface OperationsTaskDeadlineTimestampUpdate1 {
|
|
5
5
|
deadline_timestamp: string;
|
|
6
|
-
|
|
6
|
+
operations_task_id: string;
|
|
7
7
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export interface OperationsTasksDeadlineTimestampsUpdateRes1 {
|
|
5
|
+
/** How many requested tasks were found in the caller's org and updated; a lower count means missing or cross-org task ids were skipped. */
|
|
6
|
+
updated_count: number;
|
|
7
|
+
}
|
|
@@ -15,6 +15,8 @@ export interface TaskGroupExpanded {
|
|
|
15
15
|
executor_org_handle?: string | null;
|
|
16
16
|
/** Must be a string starting with `org_` */
|
|
17
17
|
executor_org_id?: string | null;
|
|
18
|
+
off_chrt_executor_org_company_name?: string | null;
|
|
19
|
+
off_chrt_executor_org_data_id?: string | null;
|
|
18
20
|
off_chrt_shipper_org_company_name?: string | null;
|
|
19
21
|
off_chrt_shipper_org_data_id?: string | null;
|
|
20
22
|
shipper_org_company_name?: string | null;
|
|
@@ -247,7 +247,7 @@ export * from "./OperationsOrderInternalMessagesS3ObjectAddedWebhookPayload.js";
|
|
|
247
247
|
export * from "./OperationsOrderOperatorAssignedWebhookPayload.js";
|
|
248
248
|
export * from "./OperationsTask1.js";
|
|
249
249
|
export * from "./OperationsTaskComment1.js";
|
|
250
|
-
export * from "./
|
|
250
|
+
export * from "./OperationsTaskDeadlineTimestampUpdate1.js";
|
|
251
251
|
export * from "./OperationsTaskExpandedListItem.js";
|
|
252
252
|
export * from "./OperationsTaskExpandedListRes.js";
|
|
253
253
|
export * from "./OperationsTaskList1.js";
|
|
@@ -260,7 +260,7 @@ export * from "./OperationsTaskListSortByEnum.js";
|
|
|
260
260
|
export * from "./OperationsTaskSortByEnum.js";
|
|
261
261
|
export * from "./OperationsTaskStatusEnum.js";
|
|
262
262
|
export * from "./OperationsTaskTypeEnum.js";
|
|
263
|
-
export * from "./
|
|
263
|
+
export * from "./OperationsTasksDeadlineTimestampsUpdateRes1.js";
|
|
264
264
|
export * from "./Order1.js";
|
|
265
265
|
export * from "./OrderAndTaskGroupExpandedReq.js";
|
|
266
266
|
export * from "./OrderBuilderReq.js";
|
|
@@ -263,7 +263,7 @@ __exportStar(require("./OperationsOrderInternalMessagesS3ObjectAddedWebhookPaylo
|
|
|
263
263
|
__exportStar(require("./OperationsOrderOperatorAssignedWebhookPayload.js"), exports);
|
|
264
264
|
__exportStar(require("./OperationsTask1.js"), exports);
|
|
265
265
|
__exportStar(require("./OperationsTaskComment1.js"), exports);
|
|
266
|
-
__exportStar(require("./
|
|
266
|
+
__exportStar(require("./OperationsTaskDeadlineTimestampUpdate1.js"), exports);
|
|
267
267
|
__exportStar(require("./OperationsTaskExpandedListItem.js"), exports);
|
|
268
268
|
__exportStar(require("./OperationsTaskExpandedListRes.js"), exports);
|
|
269
269
|
__exportStar(require("./OperationsTaskList1.js"), exports);
|
|
@@ -276,7 +276,7 @@ __exportStar(require("./OperationsTaskListSortByEnum.js"), exports);
|
|
|
276
276
|
__exportStar(require("./OperationsTaskSortByEnum.js"), exports);
|
|
277
277
|
__exportStar(require("./OperationsTaskStatusEnum.js"), exports);
|
|
278
278
|
__exportStar(require("./OperationsTaskTypeEnum.js"), exports);
|
|
279
|
-
__exportStar(require("./
|
|
279
|
+
__exportStar(require("./OperationsTasksDeadlineTimestampsUpdateRes1.js"), exports);
|
|
280
280
|
__exportStar(require("./Order1.js"), exports);
|
|
281
281
|
__exportStar(require("./OrderAndTaskGroupExpandedReq.js"), exports);
|
|
282
282
|
__exportStar(require("./OrderBuilderReq.js"), exports);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.
|
|
1
|
+
export declare const SDK_VERSION = "1.881.0";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/Client.mjs
CHANGED
|
@@ -21,8 +21,8 @@ export class ChrtClient {
|
|
|
21
21
|
this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
|
|
22
22
|
"X-Fern-Language": "JavaScript",
|
|
23
23
|
"X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
|
|
24
|
-
"X-Fern-SDK-Version": "1.
|
|
25
|
-
"User-Agent": "@chrt-inc/typescript-sdk/1.
|
|
24
|
+
"X-Fern-SDK-Version": "1.881.0",
|
|
25
|
+
"User-Agent": "@chrt-inc/typescript-sdk/1.881.0",
|
|
26
26
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
27
27
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
28
28
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -47,23 +47,21 @@ export declare class OperationsTasks {
|
|
|
47
47
|
addCommentV1(taskId: string, request: Chrt.operations.OperationsTaskAddCommentReq1, requestOptions?: OperationsTasks.RequestOptions): core.HttpResponsePromise<string>;
|
|
48
48
|
private __addCommentV1;
|
|
49
49
|
/**
|
|
50
|
-
*
|
|
50
|
+
* Adds the same ISO 8601 duration to every selected OperationsTask's deadline_timestamp. Missing or cross-org task ids are skipped and reported through updated_count. | authz: min_org_role=operator | (OperationsTasksApplyTimeDeltaToDeadlineTimestampsReq1) -> (OperationsTasksDeadlineTimestampsUpdateRes1)
|
|
51
51
|
*
|
|
52
|
-
* @param {Chrt.operations.
|
|
52
|
+
* @param {Chrt.operations.OperationsTasksApplyTimeDeltaToDeadlineTimestampsReq1} request
|
|
53
53
|
* @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
|
|
54
54
|
*
|
|
55
55
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
56
56
|
*
|
|
57
57
|
* @example
|
|
58
|
-
* await client.operations.operationsTasks.
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
* task_id: "task_id"
|
|
62
|
-
* }]
|
|
58
|
+
* await client.operations.operationsTasks.applyTimeDeltaToDeadlineTimestampsV1({
|
|
59
|
+
* operations_task_ids: ["operations_task_ids"],
|
|
60
|
+
* time_delta: "time_delta"
|
|
63
61
|
* })
|
|
64
62
|
*/
|
|
65
|
-
|
|
66
|
-
private
|
|
63
|
+
applyTimeDeltaToDeadlineTimestampsV1(request: Chrt.operations.OperationsTasksApplyTimeDeltaToDeadlineTimestampsReq1, requestOptions?: OperationsTasks.RequestOptions): core.HttpResponsePromise<Chrt.OperationsTasksDeadlineTimestampsUpdateRes1>;
|
|
64
|
+
private __applyTimeDeltaToDeadlineTimestampsV1;
|
|
67
65
|
/**
|
|
68
66
|
* Deletes a comment from an OperationsTask's comment thread. 404 if the comment isn't found. | authz: min_org_role=operator | () -> (bool)
|
|
69
67
|
*
|
|
@@ -128,6 +126,24 @@ export declare class OperationsTasks {
|
|
|
128
126
|
*/
|
|
129
127
|
listV1(request?: Chrt.operations.OperationsTasksListV1Request, requestOptions?: OperationsTasks.RequestOptions): core.HttpResponsePromise<Chrt.OperationsTaskListRes>;
|
|
130
128
|
private __listV1;
|
|
129
|
+
/**
|
|
130
|
+
* Sets each selected OperationsTask's deadline_timestamp to its requested timestamp. Missing or cross-org task ids are skipped and reported through updated_count. | authz: min_org_role=operator | (OperationsTasksSetDeadlineTimestampsReq1) -> (OperationsTasksDeadlineTimestampsUpdateRes1)
|
|
131
|
+
*
|
|
132
|
+
* @param {Chrt.operations.OperationsTasksSetDeadlineTimestampsReq1} request
|
|
133
|
+
* @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
|
|
134
|
+
*
|
|
135
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
136
|
+
*
|
|
137
|
+
* @example
|
|
138
|
+
* await client.operations.operationsTasks.setDeadlineTimestampsV1({
|
|
139
|
+
* updates: [{
|
|
140
|
+
* deadline_timestamp: "2024-01-15T09:30:00Z",
|
|
141
|
+
* operations_task_id: "operations_task_id"
|
|
142
|
+
* }]
|
|
143
|
+
* })
|
|
144
|
+
*/
|
|
145
|
+
setDeadlineTimestampsV1(request: Chrt.operations.OperationsTasksSetDeadlineTimestampsReq1, requestOptions?: OperationsTasks.RequestOptions): core.HttpResponsePromise<Chrt.OperationsTasksDeadlineTimestampsUpdateRes1>;
|
|
146
|
+
private __setDeadlineTimestampsV1;
|
|
131
147
|
/**
|
|
132
148
|
* Sets an OperationsTask's status (not_started / in_progress / completed / skipped / cancelled). Setting COMPLETED stamps completed_at/by; any other status clears them. | authz: min_org_role=operator | (OperationsTaskStatusReq) -> (bool)
|
|
133
149
|
*
|
|
@@ -85,30 +85,28 @@ export class OperationsTasks {
|
|
|
85
85
|
});
|
|
86
86
|
}
|
|
87
87
|
/**
|
|
88
|
-
*
|
|
88
|
+
* Adds the same ISO 8601 duration to every selected OperationsTask's deadline_timestamp. Missing or cross-org task ids are skipped and reported through updated_count. | authz: min_org_role=operator | (OperationsTasksApplyTimeDeltaToDeadlineTimestampsReq1) -> (OperationsTasksDeadlineTimestampsUpdateRes1)
|
|
89
89
|
*
|
|
90
|
-
* @param {Chrt.operations.
|
|
90
|
+
* @param {Chrt.operations.OperationsTasksApplyTimeDeltaToDeadlineTimestampsReq1} request
|
|
91
91
|
* @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
|
|
92
92
|
*
|
|
93
93
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
94
94
|
*
|
|
95
95
|
* @example
|
|
96
|
-
* await client.operations.operationsTasks.
|
|
97
|
-
*
|
|
98
|
-
*
|
|
99
|
-
* task_id: "task_id"
|
|
100
|
-
* }]
|
|
96
|
+
* await client.operations.operationsTasks.applyTimeDeltaToDeadlineTimestampsV1({
|
|
97
|
+
* operations_task_ids: ["operations_task_ids"],
|
|
98
|
+
* time_delta: "time_delta"
|
|
101
99
|
* })
|
|
102
100
|
*/
|
|
103
|
-
|
|
104
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
101
|
+
applyTimeDeltaToDeadlineTimestampsV1(request, requestOptions) {
|
|
102
|
+
return core.HttpResponsePromise.fromPromise(this.__applyTimeDeltaToDeadlineTimestampsV1(request, requestOptions));
|
|
105
103
|
}
|
|
106
|
-
|
|
104
|
+
__applyTimeDeltaToDeadlineTimestampsV1(request, requestOptions) {
|
|
107
105
|
return __awaiter(this, void 0, void 0, function* () {
|
|
108
106
|
var _a, _b, _c, _d;
|
|
109
107
|
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);
|
|
110
108
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
111
|
-
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, "operations/operations_tasks/
|
|
109
|
+
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, "operations/operations_tasks/apply_time_delta_to_deadline_timestamps/v1"),
|
|
112
110
|
method: "PATCH",
|
|
113
111
|
headers: _headers,
|
|
114
112
|
contentType: "application/json",
|
|
@@ -145,7 +143,7 @@ export class OperationsTasks {
|
|
|
145
143
|
rawResponse: _response.rawResponse,
|
|
146
144
|
});
|
|
147
145
|
case "timeout":
|
|
148
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /operations/operations_tasks/
|
|
146
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /operations/operations_tasks/apply_time_delta_to_deadline_timestamps/v1.");
|
|
149
147
|
case "unknown":
|
|
150
148
|
throw new errors.ChrtError({
|
|
151
149
|
message: _response.error.errorMessage,
|
|
@@ -474,6 +472,76 @@ export class OperationsTasks {
|
|
|
474
472
|
}
|
|
475
473
|
});
|
|
476
474
|
}
|
|
475
|
+
/**
|
|
476
|
+
* Sets each selected OperationsTask's deadline_timestamp to its requested timestamp. Missing or cross-org task ids are skipped and reported through updated_count. | authz: min_org_role=operator | (OperationsTasksSetDeadlineTimestampsReq1) -> (OperationsTasksDeadlineTimestampsUpdateRes1)
|
|
477
|
+
*
|
|
478
|
+
* @param {Chrt.operations.OperationsTasksSetDeadlineTimestampsReq1} request
|
|
479
|
+
* @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
|
|
480
|
+
*
|
|
481
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
482
|
+
*
|
|
483
|
+
* @example
|
|
484
|
+
* await client.operations.operationsTasks.setDeadlineTimestampsV1({
|
|
485
|
+
* updates: [{
|
|
486
|
+
* deadline_timestamp: "2024-01-15T09:30:00Z",
|
|
487
|
+
* operations_task_id: "operations_task_id"
|
|
488
|
+
* }]
|
|
489
|
+
* })
|
|
490
|
+
*/
|
|
491
|
+
setDeadlineTimestampsV1(request, requestOptions) {
|
|
492
|
+
return core.HttpResponsePromise.fromPromise(this.__setDeadlineTimestampsV1(request, requestOptions));
|
|
493
|
+
}
|
|
494
|
+
__setDeadlineTimestampsV1(request, requestOptions) {
|
|
495
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
496
|
+
var _a, _b, _c, _d;
|
|
497
|
+
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);
|
|
498
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
499
|
+
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, "operations/operations_tasks/set_deadline_timestamps/v1"),
|
|
500
|
+
method: "PATCH",
|
|
501
|
+
headers: _headers,
|
|
502
|
+
contentType: "application/json",
|
|
503
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
504
|
+
requestType: "json",
|
|
505
|
+
body: request,
|
|
506
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
507
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
508
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
509
|
+
});
|
|
510
|
+
if (_response.ok) {
|
|
511
|
+
return {
|
|
512
|
+
data: _response.body,
|
|
513
|
+
rawResponse: _response.rawResponse,
|
|
514
|
+
};
|
|
515
|
+
}
|
|
516
|
+
if (_response.error.reason === "status-code") {
|
|
517
|
+
switch (_response.error.statusCode) {
|
|
518
|
+
case 422:
|
|
519
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
520
|
+
default:
|
|
521
|
+
throw new errors.ChrtError({
|
|
522
|
+
statusCode: _response.error.statusCode,
|
|
523
|
+
body: _response.error.body,
|
|
524
|
+
rawResponse: _response.rawResponse,
|
|
525
|
+
});
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
switch (_response.error.reason) {
|
|
529
|
+
case "non-json":
|
|
530
|
+
throw new errors.ChrtError({
|
|
531
|
+
statusCode: _response.error.statusCode,
|
|
532
|
+
body: _response.error.rawBody,
|
|
533
|
+
rawResponse: _response.rawResponse,
|
|
534
|
+
});
|
|
535
|
+
case "timeout":
|
|
536
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /operations/operations_tasks/set_deadline_timestamps/v1.");
|
|
537
|
+
case "unknown":
|
|
538
|
+
throw new errors.ChrtError({
|
|
539
|
+
message: _response.error.errorMessage,
|
|
540
|
+
rawResponse: _response.rawResponse,
|
|
541
|
+
});
|
|
542
|
+
}
|
|
543
|
+
});
|
|
544
|
+
}
|
|
477
545
|
/**
|
|
478
546
|
* Sets an OperationsTask's status (not_started / in_progress / completed / skipped / cancelled). Setting COMPLETED stamps completed_at/by; any other status clears them. | authz: min_org_role=operator | (OperationsTaskStatusReq) -> (bool)
|
|
479
547
|
*
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* operations_task_ids: ["operations_task_ids"],
|
|
8
|
+
* time_delta: "time_delta"
|
|
9
|
+
* }
|
|
10
|
+
*/
|
|
11
|
+
export interface OperationsTasksApplyTimeDeltaToDeadlineTimestampsReq1 {
|
|
12
|
+
operations_task_ids: string[];
|
|
13
|
+
time_delta: string;
|
|
14
|
+
}
|
|
@@ -5,12 +5,12 @@ import * as Chrt from "../../../../../../index.mjs";
|
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
8
|
-
*
|
|
8
|
+
* updates: [{
|
|
9
9
|
* deadline_timestamp: "2024-01-15T09:30:00Z",
|
|
10
|
-
*
|
|
10
|
+
* operations_task_id: "operations_task_id"
|
|
11
11
|
* }]
|
|
12
12
|
* }
|
|
13
13
|
*/
|
|
14
|
-
export interface
|
|
15
|
-
|
|
14
|
+
export interface OperationsTasksSetDeadlineTimestampsReq1 {
|
|
15
|
+
updates: Chrt.OperationsTaskDeadlineTimestampUpdate1[];
|
|
16
16
|
}
|
package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/index.d.mts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
export { type OperationsTaskAddCommentReq1 } from "./OperationsTaskAddCommentReq1.mjs";
|
|
2
|
-
export { type
|
|
2
|
+
export { type OperationsTasksApplyTimeDeltaToDeadlineTimestampsReq1 } from "./OperationsTasksApplyTimeDeltaToDeadlineTimestampsReq1.mjs";
|
|
3
3
|
export { type OperationsTasksExpandedListV1Request } from "./OperationsTasksExpandedListV1Request.mjs";
|
|
4
4
|
export { type OperationsTasksListV1Request } from "./OperationsTasksListV1Request.mjs";
|
|
5
|
+
export { type OperationsTasksSetDeadlineTimestampsReq1 } from "./OperationsTasksSetDeadlineTimestampsReq1.mjs";
|
|
5
6
|
export { type OperationsTaskStatusReq } from "./OperationsTaskStatusReq.mjs";
|
|
6
7
|
export { type OperationsTaskClientCreate1 } from "./OperationsTaskClientCreate1.mjs";
|
|
7
8
|
export { type OperationsTaskClientUpdate1 } from "./OperationsTaskClientUpdate1.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export interface
|
|
4
|
+
export interface OperationsTaskDeadlineTimestampUpdate1 {
|
|
5
5
|
deadline_timestamp: string;
|
|
6
|
-
|
|
6
|
+
operations_task_id: string;
|
|
7
7
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export interface OperationsTasksDeadlineTimestampsUpdateRes1 {
|
|
5
|
+
/** How many requested tasks were found in the caller's org and updated; a lower count means missing or cross-org task ids were skipped. */
|
|
6
|
+
updated_count: number;
|
|
7
|
+
}
|
|
@@ -15,6 +15,8 @@ export interface TaskGroupExpanded {
|
|
|
15
15
|
executor_org_handle?: string | null;
|
|
16
16
|
/** Must be a string starting with `org_` */
|
|
17
17
|
executor_org_id?: string | null;
|
|
18
|
+
off_chrt_executor_org_company_name?: string | null;
|
|
19
|
+
off_chrt_executor_org_data_id?: string | null;
|
|
18
20
|
off_chrt_shipper_org_company_name?: string | null;
|
|
19
21
|
off_chrt_shipper_org_data_id?: string | null;
|
|
20
22
|
shipper_org_company_name?: string | null;
|
|
@@ -247,7 +247,7 @@ export * from "./OperationsOrderInternalMessagesS3ObjectAddedWebhookPayload.mjs"
|
|
|
247
247
|
export * from "./OperationsOrderOperatorAssignedWebhookPayload.mjs";
|
|
248
248
|
export * from "./OperationsTask1.mjs";
|
|
249
249
|
export * from "./OperationsTaskComment1.mjs";
|
|
250
|
-
export * from "./
|
|
250
|
+
export * from "./OperationsTaskDeadlineTimestampUpdate1.mjs";
|
|
251
251
|
export * from "./OperationsTaskExpandedListItem.mjs";
|
|
252
252
|
export * from "./OperationsTaskExpandedListRes.mjs";
|
|
253
253
|
export * from "./OperationsTaskList1.mjs";
|
|
@@ -260,7 +260,7 @@ export * from "./OperationsTaskListSortByEnum.mjs";
|
|
|
260
260
|
export * from "./OperationsTaskSortByEnum.mjs";
|
|
261
261
|
export * from "./OperationsTaskStatusEnum.mjs";
|
|
262
262
|
export * from "./OperationsTaskTypeEnum.mjs";
|
|
263
|
-
export * from "./
|
|
263
|
+
export * from "./OperationsTasksDeadlineTimestampsUpdateRes1.mjs";
|
|
264
264
|
export * from "./Order1.mjs";
|
|
265
265
|
export * from "./OrderAndTaskGroupExpandedReq.mjs";
|
|
266
266
|
export * from "./OrderBuilderReq.mjs";
|
|
@@ -247,7 +247,7 @@ export * from "./OperationsOrderInternalMessagesS3ObjectAddedWebhookPayload.mjs"
|
|
|
247
247
|
export * from "./OperationsOrderOperatorAssignedWebhookPayload.mjs";
|
|
248
248
|
export * from "./OperationsTask1.mjs";
|
|
249
249
|
export * from "./OperationsTaskComment1.mjs";
|
|
250
|
-
export * from "./
|
|
250
|
+
export * from "./OperationsTaskDeadlineTimestampUpdate1.mjs";
|
|
251
251
|
export * from "./OperationsTaskExpandedListItem.mjs";
|
|
252
252
|
export * from "./OperationsTaskExpandedListRes.mjs";
|
|
253
253
|
export * from "./OperationsTaskList1.mjs";
|
|
@@ -260,7 +260,7 @@ export * from "./OperationsTaskListSortByEnum.mjs";
|
|
|
260
260
|
export * from "./OperationsTaskSortByEnum.mjs";
|
|
261
261
|
export * from "./OperationsTaskStatusEnum.mjs";
|
|
262
262
|
export * from "./OperationsTaskTypeEnum.mjs";
|
|
263
|
-
export * from "./
|
|
263
|
+
export * from "./OperationsTasksDeadlineTimestampsUpdateRes1.mjs";
|
|
264
264
|
export * from "./Order1.mjs";
|
|
265
265
|
export * from "./OrderAndTaskGroupExpandedReq.mjs";
|
|
266
266
|
export * from "./OrderBuilderReq.mjs";
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.
|
|
1
|
+
export declare const SDK_VERSION = "1.881.0";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "1.
|
|
1
|
+
export const SDK_VERSION = "1.881.0";
|
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -12771,7 +12771,7 @@ await client.operations.operationsTasks.addCommentV1("task_id", {
|
|
|
12771
12771
|
</dl>
|
|
12772
12772
|
</details>
|
|
12773
12773
|
|
|
12774
|
-
<details><summary><code>client.operations.operationsTasks.<a href="/src/api/resources/operations/resources/operationsTasks/client/Client.ts">
|
|
12774
|
+
<details><summary><code>client.operations.operationsTasks.<a href="/src/api/resources/operations/resources/operationsTasks/client/Client.ts">applyTimeDeltaToDeadlineTimestampsV1</a>({ ...params }) -> Chrt.OperationsTasksDeadlineTimestampsUpdateRes1</code></summary>
|
|
12775
12775
|
<dl>
|
|
12776
12776
|
<dd>
|
|
12777
12777
|
|
|
@@ -12783,7 +12783,7 @@ await client.operations.operationsTasks.addCommentV1("task_id", {
|
|
|
12783
12783
|
<dl>
|
|
12784
12784
|
<dd>
|
|
12785
12785
|
|
|
12786
|
-
|
|
12786
|
+
Adds the same ISO 8601 duration to every selected OperationsTask's deadline_timestamp. Missing or cross-org task ids are skipped and reported through updated_count. | authz: min_org_role=operator | (OperationsTasksApplyTimeDeltaToDeadlineTimestampsReq1) -> (OperationsTasksDeadlineTimestampsUpdateRes1)
|
|
12787
12787
|
|
|
12788
12788
|
</dd>
|
|
12789
12789
|
</dl>
|
|
@@ -12799,13 +12799,9 @@ Sets deadline_timestamp on multiple OperationsTasks in one call, each scoped to
|
|
|
12799
12799
|
<dd>
|
|
12800
12800
|
|
|
12801
12801
|
```typescript
|
|
12802
|
-
await client.operations.operationsTasks.
|
|
12803
|
-
|
|
12804
|
-
|
|
12805
|
-
deadline_timestamp: "2024-01-15T09:30:00Z",
|
|
12806
|
-
task_id: "task_id",
|
|
12807
|
-
},
|
|
12808
|
-
],
|
|
12802
|
+
await client.operations.operationsTasks.applyTimeDeltaToDeadlineTimestampsV1({
|
|
12803
|
+
operations_task_ids: ["operations_task_ids"],
|
|
12804
|
+
time_delta: "time_delta",
|
|
12809
12805
|
});
|
|
12810
12806
|
```
|
|
12811
12807
|
|
|
@@ -12822,7 +12818,7 @@ await client.operations.operationsTasks.bulkUpdateDeadlinesV1({
|
|
|
12822
12818
|
<dl>
|
|
12823
12819
|
<dd>
|
|
12824
12820
|
|
|
12825
|
-
**request:** `Chrt.operations.
|
|
12821
|
+
**request:** `Chrt.operations.OperationsTasksApplyTimeDeltaToDeadlineTimestampsReq1`
|
|
12826
12822
|
|
|
12827
12823
|
</dd>
|
|
12828
12824
|
</dl>
|
|
@@ -13062,6 +13058,76 @@ await client.operations.operationsTasks.listV1({
|
|
|
13062
13058
|
</dl>
|
|
13063
13059
|
</details>
|
|
13064
13060
|
|
|
13061
|
+
<details><summary><code>client.operations.operationsTasks.<a href="/src/api/resources/operations/resources/operationsTasks/client/Client.ts">setDeadlineTimestampsV1</a>({ ...params }) -> Chrt.OperationsTasksDeadlineTimestampsUpdateRes1</code></summary>
|
|
13062
|
+
<dl>
|
|
13063
|
+
<dd>
|
|
13064
|
+
|
|
13065
|
+
#### 📝 Description
|
|
13066
|
+
|
|
13067
|
+
<dl>
|
|
13068
|
+
<dd>
|
|
13069
|
+
|
|
13070
|
+
<dl>
|
|
13071
|
+
<dd>
|
|
13072
|
+
|
|
13073
|
+
Sets each selected OperationsTask's deadline_timestamp to its requested timestamp. Missing or cross-org task ids are skipped and reported through updated_count. | authz: min_org_role=operator | (OperationsTasksSetDeadlineTimestampsReq1) -> (OperationsTasksDeadlineTimestampsUpdateRes1)
|
|
13074
|
+
|
|
13075
|
+
</dd>
|
|
13076
|
+
</dl>
|
|
13077
|
+
</dd>
|
|
13078
|
+
</dl>
|
|
13079
|
+
|
|
13080
|
+
#### 🔌 Usage
|
|
13081
|
+
|
|
13082
|
+
<dl>
|
|
13083
|
+
<dd>
|
|
13084
|
+
|
|
13085
|
+
<dl>
|
|
13086
|
+
<dd>
|
|
13087
|
+
|
|
13088
|
+
```typescript
|
|
13089
|
+
await client.operations.operationsTasks.setDeadlineTimestampsV1({
|
|
13090
|
+
updates: [
|
|
13091
|
+
{
|
|
13092
|
+
deadline_timestamp: "2024-01-15T09:30:00Z",
|
|
13093
|
+
operations_task_id: "operations_task_id",
|
|
13094
|
+
},
|
|
13095
|
+
],
|
|
13096
|
+
});
|
|
13097
|
+
```
|
|
13098
|
+
|
|
13099
|
+
</dd>
|
|
13100
|
+
</dl>
|
|
13101
|
+
</dd>
|
|
13102
|
+
</dl>
|
|
13103
|
+
|
|
13104
|
+
#### ⚙️ Parameters
|
|
13105
|
+
|
|
13106
|
+
<dl>
|
|
13107
|
+
<dd>
|
|
13108
|
+
|
|
13109
|
+
<dl>
|
|
13110
|
+
<dd>
|
|
13111
|
+
|
|
13112
|
+
**request:** `Chrt.operations.OperationsTasksSetDeadlineTimestampsReq1`
|
|
13113
|
+
|
|
13114
|
+
</dd>
|
|
13115
|
+
</dl>
|
|
13116
|
+
|
|
13117
|
+
<dl>
|
|
13118
|
+
<dd>
|
|
13119
|
+
|
|
13120
|
+
**requestOptions:** `OperationsTasks.RequestOptions`
|
|
13121
|
+
|
|
13122
|
+
</dd>
|
|
13123
|
+
</dl>
|
|
13124
|
+
</dd>
|
|
13125
|
+
</dl>
|
|
13126
|
+
|
|
13127
|
+
</dd>
|
|
13128
|
+
</dl>
|
|
13129
|
+
</details>
|
|
13130
|
+
|
|
13065
13131
|
<details><summary><code>client.operations.operationsTasks.<a href="/src/api/resources/operations/resources/operationsTasks/client/Client.ts">updateStatusV1</a>(taskId, { ...params }) -> boolean</code></summary>
|
|
13066
13132
|
<dl>
|
|
13067
13133
|
<dd>
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
export interface OperationsTasksBulkUpdateDeadlinesRes1 {
|
|
5
|
-
/** How many of the requested tasks were found in the caller's org and had their deadline set; a value below the number of requested updates means some ids were silently skipped (missing or cross-org). */
|
|
6
|
-
updated_count: number;
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
export interface OperationsTasksBulkUpdateDeadlinesRes1 {
|
|
5
|
-
/** How many of the requested tasks were found in the caller's org and had their deadline set; a value below the number of requested updates means some ids were silently skipped (missing or cross-org). */
|
|
6
|
-
updated_count: number;
|
|
7
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|