@chrt-inc/typescript-sdk 1.853.0 → 1.861.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/cases/client/Client.d.ts +30 -1
- package/dist/cjs/api/resources/operations/resources/cases/client/Client.js +125 -1
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/requests/OrdersNewDraftReq.d.ts +8 -4
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/cargo/client/requests/OrderDraftAddCargoReq.d.ts +0 -1
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/task/client/requests/OrderDraftAddTaskReqV1.d.ts +0 -1
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskArtifact/client/requests/OrderDraftAddTaskArtifactReq.d.ts +0 -1
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftAddTaskGroupReq.d.ts +0 -1
- package/dist/cjs/api/resources/shipping/resources/orderSchedules/client/Client.d.ts +0 -3
- package/dist/cjs/api/resources/shipping/resources/orderSchedules/client/Client.js +0 -5
- package/dist/cjs/api/resources/shipping/resources/orderSchedules/resources/draft/client/requests/OrderScheduleClientCreate1.d.ts +2 -1
- package/dist/cjs/api/resources/shipping/resources/orderSchedules/resources/draft/client/requests/OrderScheduleClientUpdate1.d.ts +2 -1
- package/dist/cjs/api/resources/shipping/resources/orderSchedules/resources/index.d.ts +0 -1
- package/dist/cjs/api/resources/shipping/resources/orderSchedules/resources/index.js +1 -2
- package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/Client.d.ts +2 -1
- package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/Client.js +10 -4
- package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientCreate1.d.ts +3 -1
- package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientUpdate1.d.ts +3 -1
- package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplatesListV1Request.d.ts +6 -3
- package/dist/cjs/api/types/Cargo1.d.ts +0 -1
- package/dist/cjs/api/types/Case1.d.ts +1 -0
- package/dist/cjs/api/types/OrderBuilderReq.d.ts +0 -2
- package/dist/cjs/api/types/OrderSchedule1.d.ts +2 -1
- package/dist/cjs/api/types/OrderScheduleBuildSeedRes.d.ts +10 -0
- package/dist/cjs/api/types/OrderTemplate1.d.ts +3 -1
- package/dist/cjs/api/types/OrderTemplateCore1.d.ts +3 -1
- package/dist/cjs/api/types/OrderTemplateReferencesExpanded1.d.ts +12 -0
- package/dist/cjs/api/types/Task1.d.ts +0 -1
- package/dist/cjs/api/types/TaskArtifact1.d.ts +0 -1
- package/dist/cjs/api/types/TaskGroup1.d.ts +0 -1
- package/dist/cjs/api/types/TaskListToApplyToCase1.d.ts +7 -0
- package/dist/cjs/api/types/index.d.ts +3 -8
- package/dist/cjs/api/types/index.js +3 -8
- 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/cases/client/Client.d.mts +30 -1
- package/dist/esm/api/resources/operations/resources/cases/client/Client.mjs +125 -1
- package/dist/esm/api/resources/shipping/resources/orderDrafts/client/requests/OrdersNewDraftReq.d.mts +8 -4
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/cargo/client/requests/OrderDraftAddCargoReq.d.mts +0 -1
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/task/client/requests/OrderDraftAddTaskReqV1.d.mts +0 -1
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskArtifact/client/requests/OrderDraftAddTaskArtifactReq.d.mts +0 -1
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftAddTaskGroupReq.d.mts +0 -1
- package/dist/esm/api/resources/shipping/resources/orderSchedules/client/Client.d.mts +0 -3
- package/dist/esm/api/resources/shipping/resources/orderSchedules/client/Client.mjs +0 -5
- package/dist/esm/api/resources/shipping/resources/orderSchedules/resources/draft/client/requests/OrderScheduleClientCreate1.d.mts +2 -1
- package/dist/esm/api/resources/shipping/resources/orderSchedules/resources/draft/client/requests/OrderScheduleClientUpdate1.d.mts +2 -1
- package/dist/esm/api/resources/shipping/resources/orderSchedules/resources/index.d.mts +0 -1
- package/dist/esm/api/resources/shipping/resources/orderSchedules/resources/index.mjs +0 -1
- package/dist/esm/api/resources/shipping/resources/orderTemplates/client/Client.d.mts +2 -1
- package/dist/esm/api/resources/shipping/resources/orderTemplates/client/Client.mjs +10 -4
- package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientCreate1.d.mts +3 -1
- package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientUpdate1.d.mts +3 -1
- package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplatesListV1Request.d.mts +6 -3
- package/dist/esm/api/types/Cargo1.d.mts +0 -1
- package/dist/esm/api/types/Case1.d.mts +1 -0
- package/dist/esm/api/types/OrderBuilderReq.d.mts +0 -2
- package/dist/esm/api/types/OrderSchedule1.d.mts +2 -1
- package/dist/esm/api/types/OrderScheduleBuildSeedRes.d.mts +10 -0
- package/dist/esm/api/types/OrderTemplate1.d.mts +3 -1
- package/dist/esm/api/types/OrderTemplateCore1.d.mts +3 -1
- package/dist/esm/api/types/OrderTemplateReferencesExpanded1.d.mts +12 -0
- package/dist/esm/api/types/Task1.d.mts +0 -1
- package/dist/esm/api/types/TaskArtifact1.d.mts +0 -1
- package/dist/esm/api/types/TaskGroup1.d.mts +0 -1
- package/dist/esm/api/types/TaskListToApplyToCase1.d.mts +7 -0
- package/dist/esm/api/types/index.d.mts +3 -8
- package/dist/esm/api/types/index.mjs +3 -8
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +155 -67
- package/dist/cjs/api/resources/shipping/resources/orderSchedules/resources/orderManifest/client/Client.d.ts +0 -47
- package/dist/cjs/api/resources/shipping/resources/orderSchedules/resources/orderManifest/client/Client.js +0 -130
- package/dist/cjs/api/resources/shipping/resources/orderSchedules/resources/orderManifest/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/shipping/resources/orderSchedules/resources/orderManifest/client/index.js +0 -2
- package/dist/cjs/api/resources/shipping/resources/orderSchedules/resources/orderManifest/index.d.ts +0 -1
- package/dist/cjs/api/resources/shipping/resources/orderSchedules/resources/orderManifest/index.js +0 -17
- package/dist/cjs/api/types/CargoManifest1.d.ts +0 -25
- package/dist/cjs/api/types/OrderManifest1.d.ts +0 -19
- package/dist/cjs/api/types/OrderManifestValidationRequirements.d.ts +0 -14
- package/dist/cjs/api/types/OrderManifestValidationResult.d.ts +0 -8
- package/dist/cjs/api/types/OrderManifestValidationResult.js +0 -5
- package/dist/cjs/api/types/ScheduledOrdersNewDraftReq.d.ts +0 -9
- package/dist/cjs/api/types/ScheduledOrdersNewDraftReq.js +0 -5
- package/dist/cjs/api/types/TaskGroupManifest1.d.ts +0 -15
- package/dist/cjs/api/types/TaskGroupManifest1.js +0 -5
- package/dist/cjs/api/types/TaskManifest1.d.ts +0 -26
- package/dist/cjs/api/types/TaskManifest1.js +0 -5
- package/dist/cjs/api/types/TimeWindow1.d.ts +0 -7
- package/dist/cjs/api/types/TimeWindow1.js +0 -5
- package/dist/esm/api/resources/shipping/resources/orderSchedules/resources/orderManifest/client/Client.d.mts +0 -47
- package/dist/esm/api/resources/shipping/resources/orderSchedules/resources/orderManifest/client/Client.mjs +0 -93
- package/dist/esm/api/resources/shipping/resources/orderSchedules/resources/orderManifest/client/index.d.mts +0 -1
- package/dist/esm/api/resources/shipping/resources/orderSchedules/resources/orderManifest/client/index.mjs +0 -1
- package/dist/esm/api/resources/shipping/resources/orderSchedules/resources/orderManifest/index.d.mts +0 -1
- package/dist/esm/api/resources/shipping/resources/orderSchedules/resources/orderManifest/index.mjs +0 -1
- package/dist/esm/api/types/CargoManifest1.d.mts +0 -25
- package/dist/esm/api/types/OrderManifest1.d.mts +0 -19
- package/dist/esm/api/types/OrderManifestValidationRequirements.d.mts +0 -14
- package/dist/esm/api/types/OrderManifestValidationResult.d.mts +0 -8
- package/dist/esm/api/types/OrderManifestValidationResult.mjs +0 -4
- package/dist/esm/api/types/ScheduledOrdersNewDraftReq.d.mts +0 -9
- package/dist/esm/api/types/ScheduledOrdersNewDraftReq.mjs +0 -4
- package/dist/esm/api/types/TaskGroupManifest1.d.mts +0 -15
- package/dist/esm/api/types/TaskGroupManifest1.mjs +0 -4
- package/dist/esm/api/types/TaskManifest1.d.mts +0 -26
- package/dist/esm/api/types/TaskManifest1.mjs +0 -4
- package/dist/esm/api/types/TimeWindow1.d.mts +0 -7
- package/dist/esm/api/types/TimeWindow1.mjs +0 -4
- /package/dist/cjs/api/types/{CargoManifest1.js → OrderScheduleBuildSeedRes.js} +0 -0
- /package/dist/cjs/api/types/{OrderManifest1.js → OrderTemplateReferencesExpanded1.js} +0 -0
- /package/dist/cjs/api/types/{OrderManifestValidationRequirements.js → TaskListToApplyToCase1.js} +0 -0
- /package/dist/esm/api/types/{CargoManifest1.mjs → OrderScheduleBuildSeedRes.mjs} +0 -0
- /package/dist/esm/api/types/{OrderManifest1.mjs → OrderTemplateReferencesExpanded1.mjs} +0 -0
- /package/dist/esm/api/types/{OrderManifestValidationRequirements.mjs → TaskListToApplyToCase1.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.861.0",
|
|
61
|
+
"User-Agent": "@chrt-inc/typescript-sdk/1.861.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) });
|
|
@@ -184,6 +184,35 @@ export declare class Cases {
|
|
|
184
184
|
*/
|
|
185
185
|
getSuggestedDepartmentV1(caseId: string, requestOptions?: Cases.RequestOptions): core.HttpResponsePromise<(string | null) | undefined>;
|
|
186
186
|
private __getSuggestedDepartmentV1;
|
|
187
|
+
/**
|
|
188
|
+
* Adds a task list to apply when the order is staged. | authz: min_org_role=operator | (UTCDatetime | None) -> (bool)
|
|
189
|
+
*
|
|
190
|
+
* @param {string} caseId
|
|
191
|
+
* @param {string} taskListId
|
|
192
|
+
* @param {string | null} request
|
|
193
|
+
* @param {Cases.RequestOptions} requestOptions - Request-specific configuration.
|
|
194
|
+
*
|
|
195
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
196
|
+
*
|
|
197
|
+
* @example
|
|
198
|
+
* await client.operations.cases.addTaskListToApplyAtOrderStagingV1("case_id", "task_list_id", "2024-01-15T09:30:00Z")
|
|
199
|
+
*/
|
|
200
|
+
addTaskListToApplyAtOrderStagingV1(caseId: string, taskListId: string, request?: string | null, requestOptions?: Cases.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
201
|
+
private __addTaskListToApplyAtOrderStagingV1;
|
|
202
|
+
/**
|
|
203
|
+
* Removes a pending staging task list to apply from a draft order case. | authz: min_org_role=operator | () -> (bool)
|
|
204
|
+
*
|
|
205
|
+
* @param {string} caseId
|
|
206
|
+
* @param {string} taskListId
|
|
207
|
+
* @param {Cases.RequestOptions} requestOptions - Request-specific configuration.
|
|
208
|
+
*
|
|
209
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
210
|
+
*
|
|
211
|
+
* @example
|
|
212
|
+
* await client.operations.cases.removeTaskListToApplyAtOrderStagingV1("case_id", "task_list_id")
|
|
213
|
+
*/
|
|
214
|
+
removeTaskListToApplyAtOrderStagingV1(caseId: string, taskListId: string, requestOptions?: Cases.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
215
|
+
private __removeTaskListToApplyAtOrderStagingV1;
|
|
187
216
|
/**
|
|
188
217
|
* Returns distinct case_tag values matching the query via case-insensitive regex for the caller's organization. | authz: min_org_role=operator | () -> (list[CaseTypeaheadResult])
|
|
189
218
|
*
|
|
@@ -230,7 +259,7 @@ export declare class Cases {
|
|
|
230
259
|
getV1(caseId: string, requestOptions?: Cases.RequestOptions): core.HttpResponsePromise<Chrt.Case1>;
|
|
231
260
|
private __getV1;
|
|
232
261
|
/**
|
|
233
|
-
* Updates a case's
|
|
262
|
+
* Updates a case's department and tag. | authz: min_org_role=operator | (CaseClientUpdate1) -> (bool)
|
|
234
263
|
*
|
|
235
264
|
* @param {string} caseId
|
|
236
265
|
* @param {Chrt.operations.CaseClientUpdate1} request
|
|
@@ -725,6 +725,130 @@ class Cases {
|
|
|
725
725
|
}
|
|
726
726
|
});
|
|
727
727
|
}
|
|
728
|
+
/**
|
|
729
|
+
* Adds a task list to apply when the order is staged. | authz: min_org_role=operator | (UTCDatetime | None) -> (bool)
|
|
730
|
+
*
|
|
731
|
+
* @param {string} caseId
|
|
732
|
+
* @param {string} taskListId
|
|
733
|
+
* @param {string | null} request
|
|
734
|
+
* @param {Cases.RequestOptions} requestOptions - Request-specific configuration.
|
|
735
|
+
*
|
|
736
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
737
|
+
*
|
|
738
|
+
* @example
|
|
739
|
+
* await client.operations.cases.addTaskListToApplyAtOrderStagingV1("case_id", "task_list_id", "2024-01-15T09:30:00Z")
|
|
740
|
+
*/
|
|
741
|
+
addTaskListToApplyAtOrderStagingV1(caseId, taskListId, request, requestOptions) {
|
|
742
|
+
return core.HttpResponsePromise.fromPromise(this.__addTaskListToApplyAtOrderStagingV1(caseId, taskListId, request, requestOptions));
|
|
743
|
+
}
|
|
744
|
+
__addTaskListToApplyAtOrderStagingV1(caseId, taskListId, request, requestOptions) {
|
|
745
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
746
|
+
var _a, _b, _c, _d;
|
|
747
|
+
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);
|
|
748
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
749
|
+
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/cases/task_lists_to_apply_at_order_staging/add/v1/${encodeURIComponent(caseId)}/${encodeURIComponent(taskListId)}`),
|
|
750
|
+
method: "POST",
|
|
751
|
+
headers: _headers,
|
|
752
|
+
contentType: "application/json",
|
|
753
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
754
|
+
requestType: "json",
|
|
755
|
+
body: request != null ? request : undefined,
|
|
756
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
757
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
758
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
759
|
+
});
|
|
760
|
+
if (_response.ok) {
|
|
761
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
762
|
+
}
|
|
763
|
+
if (_response.error.reason === "status-code") {
|
|
764
|
+
switch (_response.error.statusCode) {
|
|
765
|
+
case 422:
|
|
766
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
767
|
+
default:
|
|
768
|
+
throw new errors.ChrtError({
|
|
769
|
+
statusCode: _response.error.statusCode,
|
|
770
|
+
body: _response.error.body,
|
|
771
|
+
rawResponse: _response.rawResponse,
|
|
772
|
+
});
|
|
773
|
+
}
|
|
774
|
+
}
|
|
775
|
+
switch (_response.error.reason) {
|
|
776
|
+
case "non-json":
|
|
777
|
+
throw new errors.ChrtError({
|
|
778
|
+
statusCode: _response.error.statusCode,
|
|
779
|
+
body: _response.error.rawBody,
|
|
780
|
+
rawResponse: _response.rawResponse,
|
|
781
|
+
});
|
|
782
|
+
case "timeout":
|
|
783
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /operations/cases/task_lists_to_apply_at_order_staging/add/v1/{case_id}/{task_list_id}.");
|
|
784
|
+
case "unknown":
|
|
785
|
+
throw new errors.ChrtError({
|
|
786
|
+
message: _response.error.errorMessage,
|
|
787
|
+
rawResponse: _response.rawResponse,
|
|
788
|
+
});
|
|
789
|
+
}
|
|
790
|
+
});
|
|
791
|
+
}
|
|
792
|
+
/**
|
|
793
|
+
* Removes a pending staging task list to apply from a draft order case. | authz: min_org_role=operator | () -> (bool)
|
|
794
|
+
*
|
|
795
|
+
* @param {string} caseId
|
|
796
|
+
* @param {string} taskListId
|
|
797
|
+
* @param {Cases.RequestOptions} requestOptions - Request-specific configuration.
|
|
798
|
+
*
|
|
799
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
800
|
+
*
|
|
801
|
+
* @example
|
|
802
|
+
* await client.operations.cases.removeTaskListToApplyAtOrderStagingV1("case_id", "task_list_id")
|
|
803
|
+
*/
|
|
804
|
+
removeTaskListToApplyAtOrderStagingV1(caseId, taskListId, requestOptions) {
|
|
805
|
+
return core.HttpResponsePromise.fromPromise(this.__removeTaskListToApplyAtOrderStagingV1(caseId, taskListId, requestOptions));
|
|
806
|
+
}
|
|
807
|
+
__removeTaskListToApplyAtOrderStagingV1(caseId, taskListId, requestOptions) {
|
|
808
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
809
|
+
var _a, _b, _c, _d;
|
|
810
|
+
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);
|
|
811
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
812
|
+
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/cases/task_lists_to_apply_at_order_staging/remove/v1/${encodeURIComponent(caseId)}/${encodeURIComponent(taskListId)}`),
|
|
813
|
+
method: "POST",
|
|
814
|
+
headers: _headers,
|
|
815
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
816
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
817
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
818
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
819
|
+
});
|
|
820
|
+
if (_response.ok) {
|
|
821
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
822
|
+
}
|
|
823
|
+
if (_response.error.reason === "status-code") {
|
|
824
|
+
switch (_response.error.statusCode) {
|
|
825
|
+
case 422:
|
|
826
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
827
|
+
default:
|
|
828
|
+
throw new errors.ChrtError({
|
|
829
|
+
statusCode: _response.error.statusCode,
|
|
830
|
+
body: _response.error.body,
|
|
831
|
+
rawResponse: _response.rawResponse,
|
|
832
|
+
});
|
|
833
|
+
}
|
|
834
|
+
}
|
|
835
|
+
switch (_response.error.reason) {
|
|
836
|
+
case "non-json":
|
|
837
|
+
throw new errors.ChrtError({
|
|
838
|
+
statusCode: _response.error.statusCode,
|
|
839
|
+
body: _response.error.rawBody,
|
|
840
|
+
rawResponse: _response.rawResponse,
|
|
841
|
+
});
|
|
842
|
+
case "timeout":
|
|
843
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /operations/cases/task_lists_to_apply_at_order_staging/remove/v1/{case_id}/{task_list_id}.");
|
|
844
|
+
case "unknown":
|
|
845
|
+
throw new errors.ChrtError({
|
|
846
|
+
message: _response.error.errorMessage,
|
|
847
|
+
rawResponse: _response.rawResponse,
|
|
848
|
+
});
|
|
849
|
+
}
|
|
850
|
+
});
|
|
851
|
+
}
|
|
728
852
|
/**
|
|
729
853
|
* Returns distinct case_tag values matching the query via case-insensitive regex for the caller's organization. | authz: min_org_role=operator | () -> (list[CaseTypeaheadResult])
|
|
730
854
|
*
|
|
@@ -918,7 +1042,7 @@ class Cases {
|
|
|
918
1042
|
});
|
|
919
1043
|
}
|
|
920
1044
|
/**
|
|
921
|
-
* Updates a case's
|
|
1045
|
+
* Updates a case's department and tag. | authz: min_org_role=operator | (CaseClientUpdate1) -> (bool)
|
|
922
1046
|
*
|
|
923
1047
|
* @param {string} caseId
|
|
924
1048
|
* @param {Chrt.operations.CaseClientUpdate1} request
|
package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/requests/OrdersNewDraftReq.d.ts
CHANGED
|
@@ -13,17 +13,21 @@ export interface OrdersNewDraftReq {
|
|
|
13
13
|
/** Optional key, unique per caller org, that makes draft creation idempotent: re-sending the same key returns the already-created draft instead of creating a duplicate. */
|
|
14
14
|
creation_idempotency_key?: string | null;
|
|
15
15
|
department_id?: string | null;
|
|
16
|
-
/** If set, pins the first applied OperationsTask's deadline; later from_previous_task entries cascade from it. None anchors the chain to the apply time (now). */
|
|
17
|
-
initial_deadline_timestamp?: string | null;
|
|
18
16
|
/** Must be a URL-safe string of 1-64 characters. Allowed characters: A-Z, a-z, 0-9, '.', '_', '~', '-' (RFC 3986 unreserved). */
|
|
19
17
|
off_chrt_reference_id?: string | null;
|
|
20
18
|
off_chrt_shipper_org_id?: string | null;
|
|
19
|
+
/** Order schedule provenance for scheduled draft creation. */
|
|
20
|
+
order_schedule_id?: string | null;
|
|
21
|
+
/** Idempotency key for one scheduled order run. */
|
|
22
|
+
order_schedule_run_idempotency_key?: string | null;
|
|
21
23
|
/** Saved order template that seeded this draft. Used as template-build provenance. */
|
|
22
24
|
order_template_id?: string | null;
|
|
23
25
|
/** Seed content for the OrderThread's first user turn (text + long-lived references). Agentic builds supply it; click-ops leaves it None for a blank seed turn. */
|
|
24
26
|
order_thread_shipping_turn?: Chrt.ShippingTurnClientCreate1 | null;
|
|
25
27
|
/** Must be a string starting with `org_` */
|
|
26
28
|
shipper_org_id?: string | null;
|
|
27
|
-
/** OperationsTaskList
|
|
28
|
-
|
|
29
|
+
/** OperationsTaskList applications to apply to the coordinator's Case at order creation, each with its own optional first-deadline pin. */
|
|
30
|
+
task_lists_to_apply_at_order_creation?: Chrt.TaskListToApplyToCase1[];
|
|
31
|
+
/** OperationsTaskList applications to copy onto the coordinator's Case for deferred application when the draft order is staged. */
|
|
32
|
+
task_lists_to_apply_at_order_staging?: Chrt.TaskListToApplyToCase1[];
|
|
29
33
|
}
|
|
@@ -13,7 +13,6 @@ import * as Chrt from "../../../../../../../../index.js";
|
|
|
13
13
|
*/
|
|
14
14
|
export interface OrderDraftAddTaskReqV1 {
|
|
15
15
|
cargo_ids?: string[] | null;
|
|
16
|
-
order_schedule_template_path_idempotency_key?: string | null;
|
|
17
16
|
task: Chrt.TaskClientCreate1;
|
|
18
17
|
task_group_id: string;
|
|
19
18
|
}
|
|
@@ -11,7 +11,6 @@ import * as Chrt from "../../../../../../../../index.js";
|
|
|
11
11
|
*/
|
|
12
12
|
export interface OrderDraftAddTaskArtifactReq {
|
|
13
13
|
expected_scan_payloads?: string[];
|
|
14
|
-
order_schedule_template_path_idempotency_key?: string | null;
|
|
15
14
|
task_artifact_type: Chrt.TaskArtifactTypeEnum1;
|
|
16
15
|
task_id: string;
|
|
17
16
|
}
|
|
@@ -12,7 +12,6 @@ import * as Chrt from "../../../../../../../../index.js";
|
|
|
12
12
|
export interface OrderDraftAddTaskGroupReq {
|
|
13
13
|
flight_setup_notes?: string | null;
|
|
14
14
|
order_id: string;
|
|
15
|
-
order_schedule_template_path_idempotency_key?: string | null;
|
|
16
15
|
task_group_type: Chrt.TaskGroupTypeEnum1;
|
|
17
16
|
vehicle_type?: Chrt.VehicleTypeEnum | null;
|
|
18
17
|
}
|
|
@@ -5,7 +5,6 @@ import * as environments from "../../../../../../environments.js";
|
|
|
5
5
|
import * as core from "../../../../../../core/index.js";
|
|
6
6
|
import * as Chrt from "../../../../../index.js";
|
|
7
7
|
import { Draft } from "../resources/draft/client/Client.js";
|
|
8
|
-
import { OrderManifest } from "../resources/orderManifest/client/Client.js";
|
|
9
8
|
export declare namespace OrderSchedules {
|
|
10
9
|
interface Options {
|
|
11
10
|
environment?: core.Supplier<environments.ChrtEnvironment | string>;
|
|
@@ -32,10 +31,8 @@ export declare namespace OrderSchedules {
|
|
|
32
31
|
export declare class OrderSchedules {
|
|
33
32
|
protected readonly _options: OrderSchedules.Options;
|
|
34
33
|
protected _draft: Draft | undefined;
|
|
35
|
-
protected _orderManifest: OrderManifest | undefined;
|
|
36
34
|
constructor(_options?: OrderSchedules.Options);
|
|
37
35
|
get draft(): Draft;
|
|
38
|
-
get orderManifest(): OrderManifest;
|
|
39
36
|
/**
|
|
40
37
|
* Retrieves the generated order count and live orchestrator status from Temporal. | authz: min_org_role=operator | () -> (OrderScheduleAboutRes)
|
|
41
38
|
*
|
|
@@ -52,7 +52,6 @@ const Chrt = __importStar(require("../../../../../index.js"));
|
|
|
52
52
|
const headers_js_1 = require("../../../../../../core/headers.js");
|
|
53
53
|
const errors = __importStar(require("../../../../../../errors/index.js"));
|
|
54
54
|
const Client_js_1 = require("../resources/draft/client/Client.js");
|
|
55
|
-
const Client_js_2 = require("../resources/orderManifest/client/Client.js");
|
|
56
55
|
class OrderSchedules {
|
|
57
56
|
constructor(_options = {}) {
|
|
58
57
|
this._options = _options;
|
|
@@ -61,10 +60,6 @@ class OrderSchedules {
|
|
|
61
60
|
var _a;
|
|
62
61
|
return ((_a = this._draft) !== null && _a !== void 0 ? _a : (this._draft = new Client_js_1.Draft(this._options)));
|
|
63
62
|
}
|
|
64
|
-
get orderManifest() {
|
|
65
|
-
var _a;
|
|
66
|
-
return ((_a = this._orderManifest) !== null && _a !== void 0 ? _a : (this._orderManifest = new Client_js_2.OrderManifest(this._options)));
|
|
67
|
-
}
|
|
68
63
|
/**
|
|
69
64
|
* Retrieves the generated order count and live orchestrator status from Temporal. | authz: min_org_role=operator | () -> (OrderScheduleAboutRes)
|
|
70
65
|
*
|
|
@@ -10,9 +10,10 @@ import * as Chrt from "../../../../../../../../index.js";
|
|
|
10
10
|
* }
|
|
11
11
|
*/
|
|
12
12
|
export interface OrderScheduleClientCreate1 {
|
|
13
|
+
auto_stage?: boolean;
|
|
13
14
|
description?: string | null;
|
|
14
15
|
name: string;
|
|
15
|
-
|
|
16
|
+
order_template_core?: Chrt.OrderTemplateCore1 | null;
|
|
16
17
|
schedule_spec?: Chrt.OrderScheduleSpec1 | null;
|
|
17
18
|
schema_version: number;
|
|
18
19
|
}
|
|
@@ -7,9 +7,10 @@ import * as Chrt from "../../../../../../../../index.js";
|
|
|
7
7
|
* {}
|
|
8
8
|
*/
|
|
9
9
|
export interface OrderScheduleClientUpdate1 {
|
|
10
|
+
auto_stage?: boolean | null;
|
|
10
11
|
description?: string | null;
|
|
11
12
|
description__set_to_None?: boolean;
|
|
12
13
|
name?: string | null;
|
|
13
|
-
|
|
14
|
+
order_template_core?: Chrt.OrderTemplateCore1 | null;
|
|
14
15
|
schedule_spec?: Chrt.OrderScheduleSpec1 | null;
|
|
15
16
|
}
|
|
@@ -36,7 +36,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
39
|
+
exports.draft = void 0;
|
|
40
40
|
exports.draft = __importStar(require("./draft/index.js"));
|
|
41
|
-
exports.orderManifest = __importStar(require("./orderManifest/index.js"));
|
|
42
41
|
__exportStar(require("./draft/client/requests/index.js"), exports);
|
|
@@ -81,7 +81,8 @@ export declare class OrderTemplates {
|
|
|
81
81
|
* filter_case_tag: "filter_case_tag",
|
|
82
82
|
* filter_driver_id: "filter_driver_id",
|
|
83
83
|
* filter_directory_entry_id: "filter_directory_entry_id",
|
|
84
|
-
*
|
|
84
|
+
* filter_task_lists_to_apply_at_order_creation_task_list_id: "filter_task_lists_to_apply_at_order_creation_task_list_id",
|
|
85
|
+
* filter_task_lists_to_apply_at_order_staging_task_list_id: "filter_task_lists_to_apply_at_order_staging_task_list_id",
|
|
85
86
|
* filter_created_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
86
87
|
* filter_created_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
87
88
|
* filter_last_edited_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
@@ -198,7 +198,8 @@ class OrderTemplates {
|
|
|
198
198
|
* filter_case_tag: "filter_case_tag",
|
|
199
199
|
* filter_driver_id: "filter_driver_id",
|
|
200
200
|
* filter_directory_entry_id: "filter_directory_entry_id",
|
|
201
|
-
*
|
|
201
|
+
* filter_task_lists_to_apply_at_order_creation_task_list_id: "filter_task_lists_to_apply_at_order_creation_task_list_id",
|
|
202
|
+
* filter_task_lists_to_apply_at_order_staging_task_list_id: "filter_task_lists_to_apply_at_order_staging_task_list_id",
|
|
202
203
|
* filter_created_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
203
204
|
* filter_created_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
204
205
|
* filter_last_edited_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
@@ -213,7 +214,7 @@ class OrderTemplates {
|
|
|
213
214
|
__listV1() {
|
|
214
215
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
215
216
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
216
|
-
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_archived: filterArchived, filter_owned_by_user_id: filterOwnedByUserId, filter_off_chrt_reference_id_str: filterOffChrtReferenceIdStr, filter_shipper_org_id: filterShipperOrgId, filter_off_chrt_shipper_org_id: filterOffChrtShipperOrgId, filter_coordinator_org_id: filterCoordinatorOrgId, filter_department_id: filterDepartmentId, filter_case_tag: filterCaseTag, filter_driver_id: filterDriverId, filter_directory_entry_id: filterDirectoryEntryId,
|
|
217
|
+
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_archived: filterArchived, filter_owned_by_user_id: filterOwnedByUserId, filter_off_chrt_reference_id_str: filterOffChrtReferenceIdStr, filter_shipper_org_id: filterShipperOrgId, filter_off_chrt_shipper_org_id: filterOffChrtShipperOrgId, filter_coordinator_org_id: filterCoordinatorOrgId, filter_department_id: filterDepartmentId, filter_case_tag: filterCaseTag, filter_driver_id: filterDriverId, filter_directory_entry_id: filterDirectoryEntryId, filter_task_lists_to_apply_at_order_creation_task_list_id: filterTaskListsToApplyAtOrderCreationTaskListId, filter_task_lists_to_apply_at_order_staging_task_list_id: filterTaskListsToApplyAtOrderStagingTaskListId, filter_created_at_timestamp_gte: filterCreatedAtTimestampGte, filter_created_at_timestamp_lte: filterCreatedAtTimestampLte, filter_last_edited_at_timestamp_gte: filterLastEditedAtTimestampGte, filter_last_edited_at_timestamp_lte: filterLastEditedAtTimestampLte, filter_last_used_at_timestamp_gte: filterLastUsedAtTimestampGte, filter_last_used_at_timestamp_lte: filterLastUsedAtTimestampLte, } = request;
|
|
217
218
|
const _queryParams = {};
|
|
218
219
|
if (sortBy !== undefined) {
|
|
219
220
|
_queryParams["sort_by"] = sortBy;
|
|
@@ -260,8 +261,13 @@ class OrderTemplates {
|
|
|
260
261
|
if (filterDirectoryEntryId !== undefined) {
|
|
261
262
|
_queryParams["filter_directory_entry_id"] = filterDirectoryEntryId;
|
|
262
263
|
}
|
|
263
|
-
if (
|
|
264
|
-
_queryParams["
|
|
264
|
+
if (filterTaskListsToApplyAtOrderCreationTaskListId !== undefined) {
|
|
265
|
+
_queryParams["filter_task_lists_to_apply_at_order_creation_task_list_id"] =
|
|
266
|
+
filterTaskListsToApplyAtOrderCreationTaskListId;
|
|
267
|
+
}
|
|
268
|
+
if (filterTaskListsToApplyAtOrderStagingTaskListId !== undefined) {
|
|
269
|
+
_queryParams["filter_task_lists_to_apply_at_order_staging_task_list_id"] =
|
|
270
|
+
filterTaskListsToApplyAtOrderStagingTaskListId;
|
|
265
271
|
}
|
|
266
272
|
if (filterCreatedAtTimestampGte !== undefined) {
|
|
267
273
|
_queryParams["filter_created_at_timestamp_gte"] = filterCreatedAtTimestampGte;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as Chrt from "../../../../../../index.js";
|
|
4
5
|
/**
|
|
5
6
|
* @example
|
|
6
7
|
* {
|
|
@@ -24,6 +25,7 @@ export interface OrderTemplateClientCreate1 {
|
|
|
24
25
|
schema_version: number;
|
|
25
26
|
/** Must be a string starting with `org_` */
|
|
26
27
|
shipper_org_id?: string | null;
|
|
27
|
-
|
|
28
|
+
task_lists_to_apply_at_order_creation?: Chrt.TaskListToApplyToCase1[];
|
|
29
|
+
task_lists_to_apply_at_order_staging?: Chrt.TaskListToApplyToCase1[];
|
|
28
30
|
text?: string | null;
|
|
29
31
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as Chrt from "../../../../../../index.js";
|
|
4
5
|
/**
|
|
5
6
|
* @example
|
|
6
7
|
* {}
|
|
@@ -27,7 +28,8 @@ export interface OrderTemplateClientUpdate1 {
|
|
|
27
28
|
/** Must be a string starting with `org_` */
|
|
28
29
|
shipper_org_id?: string | null;
|
|
29
30
|
shipper_org_id__set_to_None?: boolean;
|
|
30
|
-
|
|
31
|
+
task_lists_to_apply_at_order_creation?: Chrt.TaskListToApplyToCase1[];
|
|
32
|
+
task_lists_to_apply_at_order_staging?: Chrt.TaskListToApplyToCase1[];
|
|
31
33
|
text?: string | null;
|
|
32
34
|
text__set_to_None?: boolean;
|
|
33
35
|
}
|
|
@@ -20,7 +20,8 @@ import * as Chrt from "../../../../../../index.js";
|
|
|
20
20
|
* filter_case_tag: "filter_case_tag",
|
|
21
21
|
* filter_driver_id: "filter_driver_id",
|
|
22
22
|
* filter_directory_entry_id: "filter_directory_entry_id",
|
|
23
|
-
*
|
|
23
|
+
* filter_task_lists_to_apply_at_order_creation_task_list_id: "filter_task_lists_to_apply_at_order_creation_task_list_id",
|
|
24
|
+
* filter_task_lists_to_apply_at_order_staging_task_list_id: "filter_task_lists_to_apply_at_order_staging_task_list_id",
|
|
24
25
|
* filter_created_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
25
26
|
* filter_created_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
26
27
|
* filter_last_edited_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
@@ -58,8 +59,10 @@ export interface OrderTemplatesListV1Request {
|
|
|
58
59
|
filter_driver_id?: string | null;
|
|
59
60
|
/** Filter by directory entry ID included in the template. */
|
|
60
61
|
filter_directory_entry_id?: string | null;
|
|
61
|
-
/** Filter by task list ID included in
|
|
62
|
-
|
|
62
|
+
/** Filter by task list ID included in order-creation applications. */
|
|
63
|
+
filter_task_lists_to_apply_at_order_creation_task_list_id?: string | null;
|
|
64
|
+
/** Filter by task list ID included in staging applications. */
|
|
65
|
+
filter_task_lists_to_apply_at_order_staging_task_list_id?: string | null;
|
|
63
66
|
/** Filter created_at_timestamp >= value (inclusive). */
|
|
64
67
|
filter_created_at_timestamp_gte?: string | null;
|
|
65
68
|
/** Filter created_at_timestamp <= value (inclusive). */
|
|
@@ -21,7 +21,6 @@ export interface Cargo1 {
|
|
|
21
21
|
in_transit_at_timestamp?: string | null;
|
|
22
22
|
length_inches?: number | null;
|
|
23
23
|
order_id: string;
|
|
24
|
-
order_schedule_template_path_idempotency_key?: string | null;
|
|
25
24
|
order_short_id: string;
|
|
26
25
|
quantity?: number | null;
|
|
27
26
|
schema_version: number;
|
|
@@ -3,8 +3,6 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as Chrt from "../index.js";
|
|
5
5
|
export interface OrderBuilderReq {
|
|
6
|
-
/** Per-build pin for the first applied OperationsTask's deadline (later from_previous_task entries cascade from it). Kept off the template so saved templates don't carry a stale absolute time; None anchors the chain to the build time. */
|
|
7
|
-
initial_deadline_timestamp?: string | null;
|
|
8
6
|
order_template_core?: Chrt.OrderTemplateCore1 | null;
|
|
9
7
|
order_template_id?: string | null;
|
|
10
8
|
}
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
import * as Chrt from "../index.js";
|
|
5
5
|
export interface OrderSchedule1 {
|
|
6
6
|
_id: string;
|
|
7
|
+
auto_stage?: boolean;
|
|
7
8
|
created_at_timestamp: string;
|
|
8
9
|
description?: string | null;
|
|
9
10
|
intended_status?: Chrt.OrderScheduleStatusEnum1;
|
|
@@ -11,7 +12,7 @@ export interface OrderSchedule1 {
|
|
|
11
12
|
name: string;
|
|
12
13
|
orchestrator_schedule_id?: string | null;
|
|
13
14
|
orchestrator_schedule_paused?: boolean;
|
|
14
|
-
|
|
15
|
+
order_template_core?: Chrt.OrderTemplateCore1 | null;
|
|
15
16
|
/** Must be a string starting with `org_` */
|
|
16
17
|
owned_by_org_id: string;
|
|
17
18
|
owned_by_org_type: Chrt.OrgTypeEnum;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Chrt from "../index.js";
|
|
5
|
+
export interface OrderScheduleBuildSeedRes {
|
|
6
|
+
auto_stage?: boolean;
|
|
7
|
+
order_schedule_id: string;
|
|
8
|
+
order_template_core: Chrt.OrderTemplateCore1;
|
|
9
|
+
references_expanded: Chrt.OrderTemplateReferencesExpanded1;
|
|
10
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as Chrt from "../index.js";
|
|
4
5
|
export interface OrderTemplate1 {
|
|
5
6
|
_id: string;
|
|
6
7
|
archived_at_timestamp?: string | null;
|
|
@@ -26,6 +27,7 @@ export interface OrderTemplate1 {
|
|
|
26
27
|
schema_version: number;
|
|
27
28
|
/** Must be a string starting with `org_` */
|
|
28
29
|
shipper_org_id?: string | null;
|
|
29
|
-
|
|
30
|
+
task_lists_to_apply_at_order_creation?: Chrt.TaskListToApplyToCase1[];
|
|
31
|
+
task_lists_to_apply_at_order_staging?: Chrt.TaskListToApplyToCase1[];
|
|
30
32
|
text?: string | null;
|
|
31
33
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as Chrt from "../index.js";
|
|
4
5
|
/**
|
|
5
6
|
* Shared seed of an order build: the order text + long-lived references. Reused by the library template (OrderTemplateBase1) and the ad-hoc kickoff payload so the fields the builder seeds from can't drift. (Mirrors TaskCore1.)
|
|
6
7
|
*
|
|
@@ -19,6 +20,7 @@ export interface OrderTemplateCore1 {
|
|
|
19
20
|
schema_version: number;
|
|
20
21
|
/** Must be a string starting with `org_` */
|
|
21
22
|
shipper_org_id?: string | null;
|
|
22
|
-
|
|
23
|
+
task_lists_to_apply_at_order_creation?: Chrt.TaskListToApplyToCase1[];
|
|
24
|
+
task_lists_to_apply_at_order_staging?: Chrt.TaskListToApplyToCase1[];
|
|
23
25
|
text?: string | null;
|
|
24
26
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Chrt from "../index.js";
|
|
5
|
+
export interface OrderTemplateReferencesExpanded1 {
|
|
6
|
+
directory_entries?: Chrt.DirectoryEntry1[];
|
|
7
|
+
drivers?: Chrt.Driver1[];
|
|
8
|
+
executor_orgs?: Chrt.OrderTemplateOrgInfo1[];
|
|
9
|
+
off_chrt_executor_orgs?: Chrt.OffChrtProviderOrg1[];
|
|
10
|
+
off_chrt_shipper_org?: Chrt.OffChrtShipperOrg1 | null;
|
|
11
|
+
shipper_org?: Chrt.OrderTemplateOrgInfo1 | null;
|
|
12
|
+
}
|
|
@@ -26,7 +26,6 @@ export interface Task1 {
|
|
|
26
26
|
location?: Chrt.LocationFeature | null;
|
|
27
27
|
order_id: string;
|
|
28
28
|
order_placer_comments?: string | null;
|
|
29
|
-
order_schedule_template_path_idempotency_key?: string | null;
|
|
30
29
|
order_short_id: string;
|
|
31
30
|
schema_version: number;
|
|
32
31
|
skipped_at_timestamp?: string | null;
|
|
@@ -19,7 +19,6 @@ export interface TaskArtifact1 {
|
|
|
19
19
|
expected_scan_payloads?: string[];
|
|
20
20
|
observed_scan_payloads?: string[];
|
|
21
21
|
order_id: string;
|
|
22
|
-
order_schedule_template_path_idempotency_key?: string | null;
|
|
23
22
|
order_short_id: string;
|
|
24
23
|
/** Must be a string starting with `org_` */
|
|
25
24
|
requested_by_org_id?: string | null;
|
|
@@ -29,7 +29,6 @@ export interface TaskGroup1 {
|
|
|
29
29
|
order_id: string;
|
|
30
30
|
/** Must be a URL-safe string of 1-64 characters. Allowed characters: A-Z, a-z, 0-9, '.', '_', '~', '-' (RFC 3986 unreserved). */
|
|
31
31
|
order_off_chrt_reference_id?: string | null;
|
|
32
|
-
order_schedule_template_path_idempotency_key?: string | null;
|
|
33
32
|
order_short_id: string;
|
|
34
33
|
provider_pay_driver_billing_ledger_period_id?: string | null;
|
|
35
34
|
provider_pay_driver_line_item_group_id?: string | null;
|