@chrt-inc/typescript-sdk 1.315.0 → 1.318.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/index.d.ts +1 -1
- package/dist/cjs/api/resources/index.js +2 -2
- package/dist/cjs/api/resources/orders/index.d.ts +1 -1
- package/dist/cjs/api/resources/orders/index.js +1 -1
- package/dist/cjs/api/resources/orders/resources/expanded/client/Client.d.ts +62 -0
- package/dist/cjs/api/resources/orders/resources/expanded/client/Client.js +276 -0
- package/dist/cjs/api/resources/orders/resources/expanded/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/orders/resources/expanded/client/index.js +15 -0
- package/dist/cjs/api/resources/orders/resources/expanded/client/requests/ExpandedListForForwarderOperatorsV1Request.d.ts +46 -0
- package/dist/cjs/api/resources/orders/resources/expanded/client/requests/ExpandedListForForwarderOperatorsV1Request.js +5 -0
- package/dist/cjs/api/resources/orders/resources/expanded/client/requests/ExpandedListForShipperOperatorsV1Request.d.ts +46 -0
- package/dist/cjs/api/resources/orders/resources/expanded/client/requests/ExpandedListForShipperOperatorsV1Request.js +5 -0
- package/dist/cjs/api/resources/orders/resources/expanded/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/orders/resources/expanded/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/orders/resources/expanded/index.d.ts +1 -0
- package/dist/cjs/api/resources/orders/resources/expanded/index.js +1 -0
- package/dist/cjs/api/resources/orders/resources/expanded/types/ExpandedListForForwarderOperatorsV1RequestSortOrder.d.ts +8 -0
- package/dist/cjs/api/resources/orders/resources/expanded/types/ExpandedListForForwarderOperatorsV1RequestSortOrder.js +10 -0
- package/dist/cjs/api/resources/orders/resources/expanded/types/ExpandedListForShipperOperatorsV1RequestSortOrder.d.ts +8 -0
- package/dist/cjs/api/resources/orders/resources/expanded/types/ExpandedListForShipperOperatorsV1RequestSortOrder.js +10 -0
- package/dist/cjs/api/resources/orders/resources/expanded/types/index.d.ts +2 -0
- package/dist/cjs/api/resources/orders/resources/expanded/types/index.js +18 -0
- package/dist/cjs/api/resources/orders/resources/index.d.ts +2 -0
- package/dist/cjs/api/resources/orders/resources/index.js +5 -0
- package/dist/cjs/api/resources/taskGroups/client/Client.d.ts +26 -0
- package/dist/cjs/api/resources/taskGroups/client/Client.js +118 -0
- package/dist/cjs/api/types/OrderSortByEnum.d.ts +12 -0
- package/dist/cjs/api/types/OrderSortByEnum.js +14 -0
- package/dist/cjs/api/types/OrdersExpandedListRes.d.ts +8 -0
- package/dist/cjs/api/types/OrdersExpandedListRes.js +5 -0
- package/dist/cjs/api/types/index.d.ts +2 -0
- package/dist/cjs/api/types/index.js +2 -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/index.d.mts +1 -1
- package/dist/esm/api/resources/index.mjs +1 -1
- package/dist/esm/api/resources/orders/index.d.mts +1 -1
- package/dist/esm/api/resources/orders/index.mjs +1 -1
- package/dist/esm/api/resources/orders/resources/expanded/client/Client.d.mts +62 -0
- package/dist/esm/api/resources/orders/resources/expanded/client/Client.mjs +276 -0
- package/dist/esm/api/resources/orders/resources/expanded/client/index.d.mts +1 -0
- package/dist/esm/api/resources/orders/resources/expanded/client/index.mjs +1 -1
- package/dist/esm/api/resources/orders/resources/expanded/client/requests/ExpandedListForForwarderOperatorsV1Request.d.mts +46 -0
- package/dist/esm/api/resources/orders/resources/expanded/client/requests/ExpandedListForForwarderOperatorsV1Request.mjs +4 -0
- package/dist/esm/api/resources/orders/resources/expanded/client/requests/ExpandedListForShipperOperatorsV1Request.d.mts +46 -0
- package/dist/esm/api/resources/orders/resources/expanded/client/requests/ExpandedListForShipperOperatorsV1Request.mjs +4 -0
- package/dist/esm/api/resources/orders/resources/expanded/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/orders/resources/expanded/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/orders/resources/expanded/index.d.mts +1 -0
- package/dist/esm/api/resources/orders/resources/expanded/index.mjs +1 -0
- package/dist/esm/api/resources/orders/resources/expanded/types/ExpandedListForForwarderOperatorsV1RequestSortOrder.d.mts +8 -0
- package/dist/esm/api/resources/orders/resources/expanded/types/ExpandedListForForwarderOperatorsV1RequestSortOrder.mjs +7 -0
- package/dist/esm/api/resources/orders/resources/expanded/types/ExpandedListForShipperOperatorsV1RequestSortOrder.d.mts +8 -0
- package/dist/esm/api/resources/orders/resources/expanded/types/ExpandedListForShipperOperatorsV1RequestSortOrder.mjs +7 -0
- package/dist/esm/api/resources/orders/resources/expanded/types/index.d.mts +2 -0
- package/dist/esm/api/resources/orders/resources/expanded/types/index.mjs +2 -0
- package/dist/esm/api/resources/orders/resources/index.d.mts +2 -0
- package/dist/esm/api/resources/orders/resources/index.mjs +2 -0
- package/dist/esm/api/resources/taskGroups/client/Client.d.mts +26 -0
- package/dist/esm/api/resources/taskGroups/client/Client.mjs +118 -0
- package/dist/esm/api/types/OrderSortByEnum.d.mts +12 -0
- package/dist/esm/api/types/OrderSortByEnum.mjs +11 -0
- package/dist/esm/api/types/OrdersExpandedListRes.d.mts +8 -0
- package/dist/esm/api/types/OrdersExpandedListRes.mjs +4 -0
- package/dist/esm/api/types/index.d.mts +2 -0
- package/dist/esm/api/types/index.mjs +2 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +288 -0
|
@@ -32,6 +32,11 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
32
32
|
return result;
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
36
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
|
+
};
|
|
35
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
39
|
exports.expanded = void 0;
|
|
37
40
|
exports.expanded = __importStar(require("./expanded/index.js"));
|
|
41
|
+
__exportStar(require("./expanded/types/index.js"), exports);
|
|
42
|
+
__exportStar(require("./expanded/client/requests/index.js"), exports);
|
|
@@ -33,6 +33,32 @@ export declare class TaskGroups {
|
|
|
33
33
|
protected _expanded: Expanded | undefined;
|
|
34
34
|
constructor(_options?: TaskGroups.Options);
|
|
35
35
|
get expanded(): Expanded;
|
|
36
|
+
/**
|
|
37
|
+
* Retrieves the task group ID for the courier organization assigned to an order. | authz_personas=[courier_org_operators] | () -> (PydanticObjectId)
|
|
38
|
+
*
|
|
39
|
+
* @param {string} byOrderIdOrShortId
|
|
40
|
+
* @param {TaskGroups.RequestOptions} requestOptions - Request-specific configuration.
|
|
41
|
+
*
|
|
42
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* await client.taskGroups.getTaskGroupIdForCourierOperatorsV1("by_order_id_or_short_id")
|
|
46
|
+
*/
|
|
47
|
+
getTaskGroupIdForCourierOperatorsV1(byOrderIdOrShortId: string, requestOptions?: TaskGroups.RequestOptions): core.HttpResponsePromise<string>;
|
|
48
|
+
private __getTaskGroupIdForCourierOperatorsV1;
|
|
49
|
+
/**
|
|
50
|
+
* Retrieves the task group ID for the courier driver assigned to an order. | authz_personas=[courier_driver] | () -> (PydanticObjectId)
|
|
51
|
+
*
|
|
52
|
+
* @param {string} byOrderIdOrShortId
|
|
53
|
+
* @param {TaskGroups.RequestOptions} requestOptions - Request-specific configuration.
|
|
54
|
+
*
|
|
55
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
56
|
+
*
|
|
57
|
+
* @example
|
|
58
|
+
* await client.taskGroups.getTaskGroupIdForCourierDriverV1("by_order_id_or_short_id")
|
|
59
|
+
*/
|
|
60
|
+
getTaskGroupIdForCourierDriverV1(byOrderIdOrShortId: string, requestOptions?: TaskGroups.RequestOptions): core.HttpResponsePromise<string>;
|
|
61
|
+
private __getTaskGroupIdForCourierDriverV1;
|
|
36
62
|
/**
|
|
37
63
|
* Updates the ordering of tasks in a task group. Task group must be in STAGED or IN_PROGRESS status. | authz_personas=[lig_org_operators] | (SetTaskOrderingReq) -> (bool)
|
|
38
64
|
*
|
|
@@ -60,6 +60,124 @@ class TaskGroups {
|
|
|
60
60
|
var _a;
|
|
61
61
|
return ((_a = this._expanded) !== null && _a !== void 0 ? _a : (this._expanded = new Client_js_1.Expanded(this._options)));
|
|
62
62
|
}
|
|
63
|
+
/**
|
|
64
|
+
* Retrieves the task group ID for the courier organization assigned to an order. | authz_personas=[courier_org_operators] | () -> (PydanticObjectId)
|
|
65
|
+
*
|
|
66
|
+
* @param {string} byOrderIdOrShortId
|
|
67
|
+
* @param {TaskGroups.RequestOptions} requestOptions - Request-specific configuration.
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
70
|
+
*
|
|
71
|
+
* @example
|
|
72
|
+
* await client.taskGroups.getTaskGroupIdForCourierOperatorsV1("by_order_id_or_short_id")
|
|
73
|
+
*/
|
|
74
|
+
getTaskGroupIdForCourierOperatorsV1(byOrderIdOrShortId, requestOptions) {
|
|
75
|
+
return core.HttpResponsePromise.fromPromise(this.__getTaskGroupIdForCourierOperatorsV1(byOrderIdOrShortId, requestOptions));
|
|
76
|
+
}
|
|
77
|
+
__getTaskGroupIdForCourierOperatorsV1(byOrderIdOrShortId, requestOptions) {
|
|
78
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
79
|
+
var _a, _b, _c, _d;
|
|
80
|
+
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);
|
|
81
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
82
|
+
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, `oort/task_groups/task_group_id/for_courier_operators/v1/${encodeURIComponent(byOrderIdOrShortId)}`),
|
|
83
|
+
method: "GET",
|
|
84
|
+
headers: _headers,
|
|
85
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
86
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
87
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
88
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
89
|
+
});
|
|
90
|
+
if (_response.ok) {
|
|
91
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
92
|
+
}
|
|
93
|
+
if (_response.error.reason === "status-code") {
|
|
94
|
+
switch (_response.error.statusCode) {
|
|
95
|
+
case 422:
|
|
96
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
97
|
+
default:
|
|
98
|
+
throw new errors.ChrtError({
|
|
99
|
+
statusCode: _response.error.statusCode,
|
|
100
|
+
body: _response.error.body,
|
|
101
|
+
rawResponse: _response.rawResponse,
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
switch (_response.error.reason) {
|
|
106
|
+
case "non-json":
|
|
107
|
+
throw new errors.ChrtError({
|
|
108
|
+
statusCode: _response.error.statusCode,
|
|
109
|
+
body: _response.error.rawBody,
|
|
110
|
+
rawResponse: _response.rawResponse,
|
|
111
|
+
});
|
|
112
|
+
case "timeout":
|
|
113
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/task_groups/task_group_id/for_courier_operators/v1/{by_order_id_or_short_id}.");
|
|
114
|
+
case "unknown":
|
|
115
|
+
throw new errors.ChrtError({
|
|
116
|
+
message: _response.error.errorMessage,
|
|
117
|
+
rawResponse: _response.rawResponse,
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Retrieves the task group ID for the courier driver assigned to an order. | authz_personas=[courier_driver] | () -> (PydanticObjectId)
|
|
124
|
+
*
|
|
125
|
+
* @param {string} byOrderIdOrShortId
|
|
126
|
+
* @param {TaskGroups.RequestOptions} requestOptions - Request-specific configuration.
|
|
127
|
+
*
|
|
128
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
129
|
+
*
|
|
130
|
+
* @example
|
|
131
|
+
* await client.taskGroups.getTaskGroupIdForCourierDriverV1("by_order_id_or_short_id")
|
|
132
|
+
*/
|
|
133
|
+
getTaskGroupIdForCourierDriverV1(byOrderIdOrShortId, requestOptions) {
|
|
134
|
+
return core.HttpResponsePromise.fromPromise(this.__getTaskGroupIdForCourierDriverV1(byOrderIdOrShortId, requestOptions));
|
|
135
|
+
}
|
|
136
|
+
__getTaskGroupIdForCourierDriverV1(byOrderIdOrShortId, requestOptions) {
|
|
137
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
138
|
+
var _a, _b, _c, _d;
|
|
139
|
+
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);
|
|
140
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
141
|
+
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, `oort/task_groups/task_group_id/for_courier_driver/v1/${encodeURIComponent(byOrderIdOrShortId)}`),
|
|
142
|
+
method: "GET",
|
|
143
|
+
headers: _headers,
|
|
144
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
145
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
146
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
147
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
148
|
+
});
|
|
149
|
+
if (_response.ok) {
|
|
150
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
151
|
+
}
|
|
152
|
+
if (_response.error.reason === "status-code") {
|
|
153
|
+
switch (_response.error.statusCode) {
|
|
154
|
+
case 422:
|
|
155
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
156
|
+
default:
|
|
157
|
+
throw new errors.ChrtError({
|
|
158
|
+
statusCode: _response.error.statusCode,
|
|
159
|
+
body: _response.error.body,
|
|
160
|
+
rawResponse: _response.rawResponse,
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
switch (_response.error.reason) {
|
|
165
|
+
case "non-json":
|
|
166
|
+
throw new errors.ChrtError({
|
|
167
|
+
statusCode: _response.error.statusCode,
|
|
168
|
+
body: _response.error.rawBody,
|
|
169
|
+
rawResponse: _response.rawResponse,
|
|
170
|
+
});
|
|
171
|
+
case "timeout":
|
|
172
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/task_groups/task_group_id/for_courier_driver/v1/{by_order_id_or_short_id}.");
|
|
173
|
+
case "unknown":
|
|
174
|
+
throw new errors.ChrtError({
|
|
175
|
+
message: _response.error.errorMessage,
|
|
176
|
+
rawResponse: _response.rawResponse,
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
});
|
|
180
|
+
}
|
|
63
181
|
/**
|
|
64
182
|
* Updates the ordering of tasks in a task group. Task group must be in STAGED or IN_PROGRESS status. | authz_personas=[lig_org_operators] | (SetTaskOrderingReq) -> (bool)
|
|
65
183
|
*
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export type OrderSortByEnum = "draft_started_at_timestamp" | "staged_at_timestamp" | "in_progress_at_timestamp" | "completed_at_timestamp" | "exception_at_timestamp" | "order_cancelled_at_timestamp";
|
|
5
|
+
export declare const OrderSortByEnum: {
|
|
6
|
+
readonly DraftStartedAtTimestamp: "draft_started_at_timestamp";
|
|
7
|
+
readonly StagedAtTimestamp: "staged_at_timestamp";
|
|
8
|
+
readonly InProgressAtTimestamp: "in_progress_at_timestamp";
|
|
9
|
+
readonly CompletedAtTimestamp: "completed_at_timestamp";
|
|
10
|
+
readonly ExceptionAtTimestamp: "exception_at_timestamp";
|
|
11
|
+
readonly OrderCancelledAtTimestamp: "order_cancelled_at_timestamp";
|
|
12
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.OrderSortByEnum = void 0;
|
|
7
|
+
exports.OrderSortByEnum = {
|
|
8
|
+
DraftStartedAtTimestamp: "draft_started_at_timestamp",
|
|
9
|
+
StagedAtTimestamp: "staged_at_timestamp",
|
|
10
|
+
InProgressAtTimestamp: "in_progress_at_timestamp",
|
|
11
|
+
CompletedAtTimestamp: "completed_at_timestamp",
|
|
12
|
+
ExceptionAtTimestamp: "exception_at_timestamp",
|
|
13
|
+
OrderCancelledAtTimestamp: "order_cancelled_at_timestamp",
|
|
14
|
+
};
|
|
@@ -59,8 +59,10 @@ export * from "./OrderAndTaskGroupExpandedReq.js";
|
|
|
59
59
|
export * from "./OrderDraftExpandedListRes.js";
|
|
60
60
|
export * from "./OrderDraftExpandedRes.js";
|
|
61
61
|
export * from "./OrderExpanded.js";
|
|
62
|
+
export * from "./OrderSortByEnum.js";
|
|
62
63
|
export * from "./OrderStatusEnum1.js";
|
|
63
64
|
export * from "./OrdersDraftUpdateRes.js";
|
|
65
|
+
export * from "./OrdersExpandedListRes.js";
|
|
64
66
|
export * from "./OrdersNewDraftRes.js";
|
|
65
67
|
export * from "./OrgMemberDetails.js";
|
|
66
68
|
export * from "./OrgMembersAndDrivers.js";
|
|
@@ -75,8 +75,10 @@ __exportStar(require("./OrderAndTaskGroupExpandedReq.js"), exports);
|
|
|
75
75
|
__exportStar(require("./OrderDraftExpandedListRes.js"), exports);
|
|
76
76
|
__exportStar(require("./OrderDraftExpandedRes.js"), exports);
|
|
77
77
|
__exportStar(require("./OrderExpanded.js"), exports);
|
|
78
|
+
__exportStar(require("./OrderSortByEnum.js"), exports);
|
|
78
79
|
__exportStar(require("./OrderStatusEnum1.js"), exports);
|
|
79
80
|
__exportStar(require("./OrdersDraftUpdateRes.js"), exports);
|
|
81
|
+
__exportStar(require("./OrdersExpandedListRes.js"), exports);
|
|
80
82
|
__exportStar(require("./OrdersNewDraftRes.js"), exports);
|
|
81
83
|
__exportStar(require("./OrgMemberDetails.js"), exports);
|
|
82
84
|
__exportStar(require("./OrgMembersAndDrivers.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.318.0";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/Client.mjs
CHANGED
|
@@ -35,8 +35,8 @@ export class ChrtClient {
|
|
|
35
35
|
this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
|
|
36
36
|
"X-Fern-Language": "JavaScript",
|
|
37
37
|
"X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
|
|
38
|
-
"X-Fern-SDK-Version": "1.
|
|
39
|
-
"User-Agent": "@chrt-inc/typescript-sdk/1.
|
|
38
|
+
"X-Fern-SDK-Version": "1.318.0",
|
|
39
|
+
"User-Agent": "@chrt-inc/typescript-sdk/1.318.0",
|
|
40
40
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
41
41
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
42
42
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * as connections from "./connections/index.mjs";
|
|
2
2
|
export * from "./connections/types/index.mjs";
|
|
3
|
+
export * as orders from "./orders/index.mjs";
|
|
3
4
|
export * as taskGroups from "./taskGroups/index.mjs";
|
|
4
5
|
export * as payments from "./payments/index.mjs";
|
|
5
6
|
export * as courierPayDriverLineItemGroups from "./courierPayDriverLineItemGroups/index.mjs";
|
|
@@ -16,7 +17,6 @@ export * as taskArtifactNotifications from "./taskArtifactNotifications/index.mj
|
|
|
16
17
|
export * as drivers from "./drivers/index.mjs";
|
|
17
18
|
export * as taskArtifacts from "./taskArtifacts/index.mjs";
|
|
18
19
|
export * as offChrtShipperOrg from "./offChrtShipperOrg/index.mjs";
|
|
19
|
-
export * as orders from "./orders/index.mjs";
|
|
20
20
|
export * as orderDrafts from "./orderDrafts/index.mjs";
|
|
21
21
|
export * as shipperContactInfo from "./shipperContactInfo/index.mjs";
|
|
22
22
|
export * as orgs from "./orgs/index.mjs";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * as connections from "./connections/index.mjs";
|
|
2
2
|
export * from "./connections/types/index.mjs";
|
|
3
|
+
export * as orders from "./orders/index.mjs";
|
|
3
4
|
export * as taskGroups from "./taskGroups/index.mjs";
|
|
4
5
|
export * as payments from "./payments/index.mjs";
|
|
5
6
|
export * as courierPayDriverLineItemGroups from "./courierPayDriverLineItemGroups/index.mjs";
|
|
@@ -16,7 +17,6 @@ export * as taskArtifactNotifications from "./taskArtifactNotifications/index.mj
|
|
|
16
17
|
export * as drivers from "./drivers/index.mjs";
|
|
17
18
|
export * as taskArtifacts from "./taskArtifacts/index.mjs";
|
|
18
19
|
export * as offChrtShipperOrg from "./offChrtShipperOrg/index.mjs";
|
|
19
|
-
export * as orders from "./orders/index.mjs";
|
|
20
20
|
export * as orderDrafts from "./orderDrafts/index.mjs";
|
|
21
21
|
export * as shipperContactInfo from "./shipperContactInfo/index.mjs";
|
|
22
22
|
export * as orgs from "./orgs/index.mjs";
|
|
@@ -58,5 +58,67 @@ export declare class Expanded {
|
|
|
58
58
|
*/
|
|
59
59
|
forForwarderOperatorsV1(orderIdOrShortId: string, request: Chrt.OrderAndTaskGroupExpandedReq, requestOptions?: Expanded.RequestOptions): core.HttpResponsePromise<Chrt.OrderExpanded>;
|
|
60
60
|
private __forForwarderOperatorsV1;
|
|
61
|
+
/**
|
|
62
|
+
* Lists expanded orders for forwarder operators with filtering, sorting, and pagination. | authz_personas=[forwarder_org_operators] | (OrderAndTaskGroupExpandedReq) -> (OrdersExpandedListRes)
|
|
63
|
+
*
|
|
64
|
+
* @param {Chrt.orders.ExpandedListForForwarderOperatorsV1Request} request
|
|
65
|
+
* @param {Expanded.RequestOptions} requestOptions - Request-specific configuration.
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
68
|
+
*
|
|
69
|
+
* @example
|
|
70
|
+
* await client.orders.expanded.listForForwarderOperatorsV1({
|
|
71
|
+
* sort_by: "draft_started_at_timestamp",
|
|
72
|
+
* sort_order: "ascending",
|
|
73
|
+
* page: 1,
|
|
74
|
+
* page_size: 1,
|
|
75
|
+
* filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
76
|
+
* filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
77
|
+
* filter_staged_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
78
|
+
* filter_staged_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
79
|
+
* filter_in_progress_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
80
|
+
* filter_in_progress_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
81
|
+
* filter_completed_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
82
|
+
* filter_completed_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
83
|
+
* filter_exception_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
84
|
+
* filter_exception_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
85
|
+
* filter_order_cancelled_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
86
|
+
* filter_order_cancelled_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
87
|
+
* body: {}
|
|
88
|
+
* })
|
|
89
|
+
*/
|
|
90
|
+
listForForwarderOperatorsV1(request: Chrt.orders.ExpandedListForForwarderOperatorsV1Request, requestOptions?: Expanded.RequestOptions): core.HttpResponsePromise<Chrt.OrdersExpandedListRes>;
|
|
91
|
+
private __listForForwarderOperatorsV1;
|
|
92
|
+
/**
|
|
93
|
+
* Lists expanded orders for shipper operators with filtering, sorting, and pagination. | authz_personas=[shipper_org_operators] | (OrderAndTaskGroupExpandedReq) -> (OrdersExpandedListRes)
|
|
94
|
+
*
|
|
95
|
+
* @param {Chrt.orders.ExpandedListForShipperOperatorsV1Request} request
|
|
96
|
+
* @param {Expanded.RequestOptions} requestOptions - Request-specific configuration.
|
|
97
|
+
*
|
|
98
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
99
|
+
*
|
|
100
|
+
* @example
|
|
101
|
+
* await client.orders.expanded.listForShipperOperatorsV1({
|
|
102
|
+
* sort_by: "draft_started_at_timestamp",
|
|
103
|
+
* sort_order: "ascending",
|
|
104
|
+
* page: 1,
|
|
105
|
+
* page_size: 1,
|
|
106
|
+
* filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
107
|
+
* filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
108
|
+
* filter_staged_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
109
|
+
* filter_staged_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
110
|
+
* filter_in_progress_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
111
|
+
* filter_in_progress_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
112
|
+
* filter_completed_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
113
|
+
* filter_completed_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
114
|
+
* filter_exception_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
115
|
+
* filter_exception_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
116
|
+
* filter_order_cancelled_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
117
|
+
* filter_order_cancelled_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
118
|
+
* body: {}
|
|
119
|
+
* })
|
|
120
|
+
*/
|
|
121
|
+
listForShipperOperatorsV1(request: Chrt.orders.ExpandedListForShipperOperatorsV1Request, requestOptions?: Expanded.RequestOptions): core.HttpResponsePromise<Chrt.OrdersExpandedListRes>;
|
|
122
|
+
private __listForShipperOperatorsV1;
|
|
61
123
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
62
124
|
}
|