@chrt-inc/typescript-sdk 1.885.0 → 1.888.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/orgs/resources/accounts/client/Client.d.ts +21 -3
- package/dist/cjs/api/resources/orgs/resources/accounts/client/Client.js +80 -4
- package/dist/cjs/api/resources/orgs/resources/accounts/client/requests/AccountClientCreate1.d.ts +2 -0
- package/dist/cjs/api/resources/orgs/resources/accounts/client/requests/AccountClientUpdate1.d.ts +3 -0
- package/dist/cjs/api/resources/orgs/resources/accounts/client/requests/AccountsListV1Request.d.ts +6 -0
- package/dist/cjs/api/resources/orgs/resources/accounts/client/requests/AccountsTypeaheadV1Request.d.ts +16 -0
- package/dist/cjs/api/resources/orgs/resources/accounts/client/requests/AccountsTypeaheadV1Request.js +5 -0
- package/dist/cjs/api/resources/orgs/resources/accounts/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/orgs/resources/contacts/client/Client.d.ts +30 -0
- package/dist/cjs/api/resources/orgs/resources/contacts/client/Client.js +125 -0
- package/dist/cjs/api/resources/orgs/resources/contacts/client/requests/ContactAccountAddReq.d.ts +12 -0
- package/dist/cjs/api/resources/orgs/resources/contacts/client/requests/ContactAccountAddReq.js +5 -0
- package/dist/cjs/api/resources/orgs/resources/contacts/client/requests/ContactClientCreate1.d.ts +1 -1
- package/dist/cjs/api/resources/orgs/resources/contacts/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/shipping/resources/cargos/client/Client.d.ts +53 -0
- package/dist/cjs/api/resources/shipping/resources/cargos/client/Client.js +200 -0
- package/dist/cjs/api/resources/shipping/resources/cargos/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/shipping/resources/cargos/client/index.js +15 -0
- package/dist/cjs/api/resources/shipping/resources/cargos/client/requests/CargoAddToOrderReq.d.ts +18 -0
- package/dist/cjs/api/resources/shipping/resources/cargos/client/requests/CargoAddToOrderReq.js +5 -0
- package/dist/cjs/api/resources/shipping/resources/cargos/client/requests/CargoAssociateWithTaskReq.d.ts +16 -0
- package/dist/cjs/api/resources/shipping/resources/cargos/client/requests/CargoAssociateWithTaskReq.js +5 -0
- package/dist/cjs/api/resources/shipping/resources/cargos/client/requests/CargoUnassociateWithTaskReq.d.ts +16 -0
- package/dist/cjs/api/resources/shipping/resources/cargos/client/requests/CargoUnassociateWithTaskReq.js +5 -0
- package/dist/cjs/api/resources/shipping/resources/cargos/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/shipping/resources/cargos/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/shipping/resources/index.d.ts +1 -0
- package/dist/cjs/api/resources/shipping/resources/index.js +1 -0
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.js +18 -2
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForCoordinatorOperatorsV1Request.d.ts +2 -0
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForProviderOperatorsV1Request.d.ts +2 -0
- package/dist/cjs/api/types/Account1.d.ts +2 -0
- package/dist/cjs/api/types/AccountTypeaheadFieldEnum.d.ts +4 -0
- package/dist/cjs/api/types/AccountTypeaheadFieldEnum.js +5 -0
- package/dist/cjs/api/types/AccountTypeaheadResult.d.ts +8 -0
- package/dist/cjs/api/types/AccountTypeaheadResult.js +5 -0
- package/dist/cjs/api/types/AccountTypeaheadValue.d.ts +7 -0
- package/dist/cjs/api/types/AccountTypeaheadValue.js +5 -0
- package/dist/cjs/api/types/Contact1.d.ts +1 -1
- package/dist/cjs/api/types/NotificationEventsForAdHocEnum.d.ts +1 -1
- package/dist/cjs/api/types/index.d.ts +3 -0
- package/dist/cjs/api/types/index.js +3 -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/orgs/resources/accounts/client/Client.d.mts +21 -3
- package/dist/esm/api/resources/orgs/resources/accounts/client/Client.mjs +80 -4
- package/dist/esm/api/resources/orgs/resources/accounts/client/requests/AccountClientCreate1.d.mts +2 -0
- package/dist/esm/api/resources/orgs/resources/accounts/client/requests/AccountClientUpdate1.d.mts +3 -0
- package/dist/esm/api/resources/orgs/resources/accounts/client/requests/AccountsListV1Request.d.mts +6 -0
- package/dist/esm/api/resources/orgs/resources/accounts/client/requests/AccountsTypeaheadV1Request.d.mts +16 -0
- package/dist/esm/api/resources/orgs/resources/accounts/client/requests/AccountsTypeaheadV1Request.mjs +4 -0
- package/dist/esm/api/resources/orgs/resources/accounts/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/orgs/resources/contacts/client/Client.d.mts +30 -0
- package/dist/esm/api/resources/orgs/resources/contacts/client/Client.mjs +125 -0
- package/dist/esm/api/resources/orgs/resources/contacts/client/requests/ContactAccountAddReq.d.mts +12 -0
- package/dist/esm/api/resources/orgs/resources/contacts/client/requests/ContactAccountAddReq.mjs +4 -0
- package/dist/esm/api/resources/orgs/resources/contacts/client/requests/ContactClientCreate1.d.mts +1 -1
- package/dist/esm/api/resources/orgs/resources/contacts/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/shipping/resources/cargos/client/Client.d.mts +53 -0
- package/dist/esm/api/resources/shipping/resources/cargos/client/Client.mjs +200 -0
- package/dist/esm/api/resources/shipping/resources/cargos/client/index.d.mts +1 -0
- package/dist/esm/api/resources/shipping/resources/cargos/client/index.mjs +1 -1
- package/dist/esm/api/resources/shipping/resources/cargos/client/requests/CargoAddToOrderReq.d.mts +18 -0
- package/dist/esm/api/resources/shipping/resources/cargos/client/requests/CargoAddToOrderReq.mjs +4 -0
- package/dist/esm/api/resources/shipping/resources/cargos/client/requests/CargoAssociateWithTaskReq.d.mts +16 -0
- package/dist/esm/api/resources/shipping/resources/cargos/client/requests/CargoAssociateWithTaskReq.mjs +4 -0
- package/dist/esm/api/resources/shipping/resources/cargos/client/requests/CargoUnassociateWithTaskReq.d.mts +16 -0
- package/dist/esm/api/resources/shipping/resources/cargos/client/requests/CargoUnassociateWithTaskReq.mjs +4 -0
- package/dist/esm/api/resources/shipping/resources/cargos/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/shipping/resources/cargos/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/shipping/resources/index.d.mts +1 -0
- package/dist/esm/api/resources/shipping/resources/index.mjs +1 -0
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.mjs +18 -2
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForCoordinatorOperatorsV1Request.d.mts +2 -0
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForProviderOperatorsV1Request.d.mts +2 -0
- package/dist/esm/api/types/Account1.d.mts +2 -0
- package/dist/esm/api/types/AccountTypeaheadFieldEnum.d.mts +4 -0
- package/dist/esm/api/types/AccountTypeaheadFieldEnum.mjs +4 -0
- package/dist/esm/api/types/AccountTypeaheadResult.d.mts +8 -0
- package/dist/esm/api/types/AccountTypeaheadResult.mjs +4 -0
- package/dist/esm/api/types/AccountTypeaheadValue.d.mts +7 -0
- package/dist/esm/api/types/AccountTypeaheadValue.mjs +4 -0
- package/dist/esm/api/types/Contact1.d.mts +1 -1
- package/dist/esm/api/types/NotificationEventsForAdHocEnum.d.mts +1 -1
- package/dist/esm/api/types/index.d.mts +3 -0
- package/dist/esm/api/types/index.mjs +3 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +418 -3
|
@@ -19,6 +19,206 @@ export class Cargos {
|
|
|
19
19
|
constructor(_options = {}) {
|
|
20
20
|
this._options = _options;
|
|
21
21
|
}
|
|
22
|
+
/**
|
|
23
|
+
* Adds cargo to a non-DRAFT order. Cargo added to a terminal order starts terminal; otherwise it starts STAGED. | authz_personas=[coordinator_org_operators] | (CargoAddToOrderReq) -> (PydanticObjectId)
|
|
24
|
+
*
|
|
25
|
+
* @param {Chrt.shipping.CargoAddToOrderReq} request
|
|
26
|
+
* @param {Cargos.RequestOptions} requestOptions - Request-specific configuration.
|
|
27
|
+
*
|
|
28
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* await client.shipping.cargos.addV1({
|
|
32
|
+
* cargo: {
|
|
33
|
+
* cargo_type: "spare_parts",
|
|
34
|
+
* schema_version: 1
|
|
35
|
+
* },
|
|
36
|
+
* order_id: "order_id"
|
|
37
|
+
* })
|
|
38
|
+
*/
|
|
39
|
+
addV1(request, requestOptions) {
|
|
40
|
+
return core.HttpResponsePromise.fromPromise(this.__addV1(request, requestOptions));
|
|
41
|
+
}
|
|
42
|
+
__addV1(request, requestOptions) {
|
|
43
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
44
|
+
var _a, _b, _c, _d;
|
|
45
|
+
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);
|
|
46
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
47
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "shipping/cargos/add/v1"),
|
|
48
|
+
method: "POST",
|
|
49
|
+
headers: _headers,
|
|
50
|
+
contentType: "application/json",
|
|
51
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
52
|
+
requestType: "json",
|
|
53
|
+
body: request,
|
|
54
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
55
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
56
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
57
|
+
});
|
|
58
|
+
if (_response.ok) {
|
|
59
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
60
|
+
}
|
|
61
|
+
if (_response.error.reason === "status-code") {
|
|
62
|
+
switch (_response.error.statusCode) {
|
|
63
|
+
case 422:
|
|
64
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
65
|
+
default:
|
|
66
|
+
throw new errors.ChrtError({
|
|
67
|
+
statusCode: _response.error.statusCode,
|
|
68
|
+
body: _response.error.body,
|
|
69
|
+
rawResponse: _response.rawResponse,
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
switch (_response.error.reason) {
|
|
74
|
+
case "non-json":
|
|
75
|
+
throw new errors.ChrtError({
|
|
76
|
+
statusCode: _response.error.statusCode,
|
|
77
|
+
body: _response.error.rawBody,
|
|
78
|
+
rawResponse: _response.rawResponse,
|
|
79
|
+
});
|
|
80
|
+
case "timeout":
|
|
81
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /shipping/cargos/add/v1.");
|
|
82
|
+
case "unknown":
|
|
83
|
+
throw new errors.ChrtError({
|
|
84
|
+
message: _response.error.errorMessage,
|
|
85
|
+
rawResponse: _response.rawResponse,
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Associates cargo with a task on a non-DRAFT order, then derives cargo status from all associated tasks in the order's task sequence. | authz_personas=[coordinator_org_operators] | (CargoAssociateWithTaskReq) -> (bool)
|
|
92
|
+
*
|
|
93
|
+
* @param {Chrt.shipping.CargoAssociateWithTaskReq} request
|
|
94
|
+
* @param {Cargos.RequestOptions} requestOptions - Request-specific configuration.
|
|
95
|
+
*
|
|
96
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
97
|
+
*
|
|
98
|
+
* @example
|
|
99
|
+
* await client.shipping.cargos.associateWithTaskV1({
|
|
100
|
+
* cargo_id: "cargo_id",
|
|
101
|
+
* order_id: "order_id",
|
|
102
|
+
* task_id: "task_id"
|
|
103
|
+
* })
|
|
104
|
+
*/
|
|
105
|
+
associateWithTaskV1(request, requestOptions) {
|
|
106
|
+
return core.HttpResponsePromise.fromPromise(this.__associateWithTaskV1(request, requestOptions));
|
|
107
|
+
}
|
|
108
|
+
__associateWithTaskV1(request, requestOptions) {
|
|
109
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
110
|
+
var _a, _b, _c, _d;
|
|
111
|
+
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);
|
|
112
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
113
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "shipping/cargos/associate_with_task/v1"),
|
|
114
|
+
method: "POST",
|
|
115
|
+
headers: _headers,
|
|
116
|
+
contentType: "application/json",
|
|
117
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
118
|
+
requestType: "json",
|
|
119
|
+
body: request,
|
|
120
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
121
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
122
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
123
|
+
});
|
|
124
|
+
if (_response.ok) {
|
|
125
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
126
|
+
}
|
|
127
|
+
if (_response.error.reason === "status-code") {
|
|
128
|
+
switch (_response.error.statusCode) {
|
|
129
|
+
case 422:
|
|
130
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
131
|
+
default:
|
|
132
|
+
throw new errors.ChrtError({
|
|
133
|
+
statusCode: _response.error.statusCode,
|
|
134
|
+
body: _response.error.body,
|
|
135
|
+
rawResponse: _response.rawResponse,
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
switch (_response.error.reason) {
|
|
140
|
+
case "non-json":
|
|
141
|
+
throw new errors.ChrtError({
|
|
142
|
+
statusCode: _response.error.statusCode,
|
|
143
|
+
body: _response.error.rawBody,
|
|
144
|
+
rawResponse: _response.rawResponse,
|
|
145
|
+
});
|
|
146
|
+
case "timeout":
|
|
147
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /shipping/cargos/associate_with_task/v1.");
|
|
148
|
+
case "unknown":
|
|
149
|
+
throw new errors.ChrtError({
|
|
150
|
+
message: _response.error.errorMessage,
|
|
151
|
+
rawResponse: _response.rawResponse,
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* Removes a cargo association from a task on a non-DRAFT order, then derives cargo status from the remaining associated tasks in the order's task sequence. | authz_personas=[coordinator_org_operators] | (CargoUnassociateWithTaskReq) -> (bool)
|
|
158
|
+
*
|
|
159
|
+
* @param {Chrt.shipping.CargoUnassociateWithTaskReq} request
|
|
160
|
+
* @param {Cargos.RequestOptions} requestOptions - Request-specific configuration.
|
|
161
|
+
*
|
|
162
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
163
|
+
*
|
|
164
|
+
* @example
|
|
165
|
+
* await client.shipping.cargos.unassociateWithTaskV1({
|
|
166
|
+
* cargo_id: "cargo_id",
|
|
167
|
+
* order_id: "order_id",
|
|
168
|
+
* task_id: "task_id"
|
|
169
|
+
* })
|
|
170
|
+
*/
|
|
171
|
+
unassociateWithTaskV1(request, requestOptions) {
|
|
172
|
+
return core.HttpResponsePromise.fromPromise(this.__unassociateWithTaskV1(request, requestOptions));
|
|
173
|
+
}
|
|
174
|
+
__unassociateWithTaskV1(request, requestOptions) {
|
|
175
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
176
|
+
var _a, _b, _c, _d;
|
|
177
|
+
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);
|
|
178
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
179
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "shipping/cargos/unassociate_with_task/v1"),
|
|
180
|
+
method: "POST",
|
|
181
|
+
headers: _headers,
|
|
182
|
+
contentType: "application/json",
|
|
183
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
184
|
+
requestType: "json",
|
|
185
|
+
body: request,
|
|
186
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
187
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
188
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
189
|
+
});
|
|
190
|
+
if (_response.ok) {
|
|
191
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
192
|
+
}
|
|
193
|
+
if (_response.error.reason === "status-code") {
|
|
194
|
+
switch (_response.error.statusCode) {
|
|
195
|
+
case 422:
|
|
196
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
197
|
+
default:
|
|
198
|
+
throw new errors.ChrtError({
|
|
199
|
+
statusCode: _response.error.statusCode,
|
|
200
|
+
body: _response.error.body,
|
|
201
|
+
rawResponse: _response.rawResponse,
|
|
202
|
+
});
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
switch (_response.error.reason) {
|
|
206
|
+
case "non-json":
|
|
207
|
+
throw new errors.ChrtError({
|
|
208
|
+
statusCode: _response.error.statusCode,
|
|
209
|
+
body: _response.error.rawBody,
|
|
210
|
+
rawResponse: _response.rawResponse,
|
|
211
|
+
});
|
|
212
|
+
case "timeout":
|
|
213
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /shipping/cargos/unassociate_with_task/v1.");
|
|
214
|
+
case "unknown":
|
|
215
|
+
throw new errors.ChrtError({
|
|
216
|
+
message: _response.error.errorMessage,
|
|
217
|
+
rawResponse: _response.rawResponse,
|
|
218
|
+
});
|
|
219
|
+
}
|
|
220
|
+
});
|
|
221
|
+
}
|
|
22
222
|
/**
|
|
23
223
|
* Updates cargo details and synchronizes its parent order's AWB list. Cargo must be in STAGED, IN_TRANSIT, DELIVERED, SKIPPED, or EXCEPTION status. | authz_personas=[lig_owner_operators] | (CargoClientUpdate1) -> (PydanticObjectId)
|
|
24
224
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from "./requests/index.mjs";
|
package/dist/esm/api/resources/shipping/resources/cargos/client/requests/CargoAddToOrderReq.d.mts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Chrt from "../../../../../../index.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* cargo: {
|
|
9
|
+
* cargo_type: "spare_parts",
|
|
10
|
+
* schema_version: 1
|
|
11
|
+
* },
|
|
12
|
+
* order_id: "order_id"
|
|
13
|
+
* }
|
|
14
|
+
*/
|
|
15
|
+
export interface CargoAddToOrderReq {
|
|
16
|
+
cargo: Chrt.CargoClientCreate1;
|
|
17
|
+
order_id: string;
|
|
18
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* cargo_id: "cargo_id",
|
|
8
|
+
* order_id: "order_id",
|
|
9
|
+
* task_id: "task_id"
|
|
10
|
+
* }
|
|
11
|
+
*/
|
|
12
|
+
export interface CargoAssociateWithTaskReq {
|
|
13
|
+
cargo_id: string;
|
|
14
|
+
order_id: string;
|
|
15
|
+
task_id: string;
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* cargo_id: "cargo_id",
|
|
8
|
+
* order_id: "order_id",
|
|
9
|
+
* task_id: "task_id"
|
|
10
|
+
* }
|
|
11
|
+
*/
|
|
12
|
+
export interface CargoUnassociateWithTaskReq {
|
|
13
|
+
cargo_id: string;
|
|
14
|
+
order_id: string;
|
|
15
|
+
task_id: string;
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -10,6 +10,7 @@ export * as ordersAndOrderGroups from "./ordersAndOrderGroups/index.mjs";
|
|
|
10
10
|
export * as taskArtifacts from "./taskArtifacts/index.mjs";
|
|
11
11
|
export * as taskGroups from "./taskGroups/index.mjs";
|
|
12
12
|
export * as tasks from "./tasks/index.mjs";
|
|
13
|
+
export * from "./cargos/client/requests/index.mjs";
|
|
13
14
|
export * from "./drivers/client/requests/index.mjs";
|
|
14
15
|
export * from "./orderGroups/client/requests/index.mjs";
|
|
15
16
|
export * from "./orderSchedules/client/requests/index.mjs";
|
|
@@ -10,6 +10,7 @@ export * as ordersAndOrderGroups from "./ordersAndOrderGroups/index.mjs";
|
|
|
10
10
|
export * as taskArtifacts from "./taskArtifacts/index.mjs";
|
|
11
11
|
export * as taskGroups from "./taskGroups/index.mjs";
|
|
12
12
|
export * as tasks from "./tasks/index.mjs";
|
|
13
|
+
export * from "./cargos/client/requests/index.mjs";
|
|
13
14
|
export * from "./drivers/client/requests/index.mjs";
|
|
14
15
|
export * from "./orderGroups/client/requests/index.mjs";
|
|
15
16
|
export * from "./orderSchedules/client/requests/index.mjs";
|
package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.mjs
CHANGED
|
@@ -313,7 +313,7 @@ export class Expanded {
|
|
|
313
313
|
__listForCoordinatorOperatorsV1(request, requestOptions) {
|
|
314
314
|
return __awaiter(this, void 0, void 0, function* () {
|
|
315
315
|
var _a, _b, _c, _d, _e, _f;
|
|
316
|
-
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_status: filterStatus, filter_order_classification_by_task_group_type: filterOrderClassificationByTaskGroupType, filter_awb_number: filterAwbNumber, filter_draft_started_at_timestamp_lte: filterDraftStartedAtTimestampLte, filter_draft_started_at_timestamp_gte: filterDraftStartedAtTimestampGte, filter_staged_at_timestamp_lte: filterStagedAtTimestampLte, filter_staged_at_timestamp_gte: filterStagedAtTimestampGte, filter_in_progress_at_timestamp_lte: filterInProgressAtTimestampLte, filter_in_progress_at_timestamp_gte: filterInProgressAtTimestampGte, filter_completed_at_timestamp_lte: filterCompletedAtTimestampLte, filter_completed_at_timestamp_gte: filterCompletedAtTimestampGte, filter_cancelled_at_timestamp_lte: filterCancelledAtTimestampLte, filter_cancelled_at_timestamp_gte: filterCancelledAtTimestampGte, filter_exception_at_timestamp_lte: filterExceptionAtTimestampLte, filter_exception_at_timestamp_gte: filterExceptionAtTimestampGte, filter_executor_org_id: filterExecutorOrgId, filter_shipper_org_id: filterShipperOrgId, filter_off_chrt_shipper_org_data_id: filterOffChrtShipperOrgDataId, filter_coordinator_department_id: filterCoordinatorDepartmentId, filter_coordinator_assigned_user_ids: filterCoordinatorAssignedUserIds, filter_coordinator_label: filterCoordinatorLabel, body: _body, } = request;
|
|
316
|
+
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_status: filterStatus, filter_order_classification_by_task_group_type: filterOrderClassificationByTaskGroupType, filter_awb_number: filterAwbNumber, filter_draft_started_at_timestamp_lte: filterDraftStartedAtTimestampLte, filter_draft_started_at_timestamp_gte: filterDraftStartedAtTimestampGte, filter_staged_at_timestamp_lte: filterStagedAtTimestampLte, filter_staged_at_timestamp_gte: filterStagedAtTimestampGte, filter_in_progress_at_timestamp_lte: filterInProgressAtTimestampLte, filter_in_progress_at_timestamp_gte: filterInProgressAtTimestampGte, filter_completed_at_timestamp_lte: filterCompletedAtTimestampLte, filter_completed_at_timestamp_gte: filterCompletedAtTimestampGte, filter_cancelled_at_timestamp_lte: filterCancelledAtTimestampLte, filter_cancelled_at_timestamp_gte: filterCancelledAtTimestampGte, filter_exception_at_timestamp_lte: filterExceptionAtTimestampLte, filter_exception_at_timestamp_gte: filterExceptionAtTimestampGte, filter_executor_org_id: filterExecutorOrgId, filter_shipper_org_id: filterShipperOrgId, filter_off_chrt_shipper_org_data_id: filterOffChrtShipperOrgDataId, filter_coordinator_shipper_account_ids: filterCoordinatorShipperAccountIds, filter_coordinator_department_id: filterCoordinatorDepartmentId, filter_coordinator_assigned_user_ids: filterCoordinatorAssignedUserIds, filter_coordinator_label: filterCoordinatorLabel, body: _body, } = request;
|
|
317
317
|
const _queryParams = {};
|
|
318
318
|
if (sortBy !== undefined) {
|
|
319
319
|
_queryParams["sort_by"] = sortBy;
|
|
@@ -396,6 +396,14 @@ export class Expanded {
|
|
|
396
396
|
if (filterOffChrtShipperOrgDataId !== undefined) {
|
|
397
397
|
_queryParams["filter_off_chrt_shipper_org_data_id"] = filterOffChrtShipperOrgDataId;
|
|
398
398
|
}
|
|
399
|
+
if (filterCoordinatorShipperAccountIds !== undefined) {
|
|
400
|
+
if (Array.isArray(filterCoordinatorShipperAccountIds)) {
|
|
401
|
+
_queryParams["filter_coordinator_shipper_account_ids"] = filterCoordinatorShipperAccountIds.map((item) => item);
|
|
402
|
+
}
|
|
403
|
+
else {
|
|
404
|
+
_queryParams["filter_coordinator_shipper_account_ids"] = filterCoordinatorShipperAccountIds;
|
|
405
|
+
}
|
|
406
|
+
}
|
|
399
407
|
if (filterCoordinatorDepartmentId !== undefined) {
|
|
400
408
|
_queryParams["filter_coordinator_department_id"] = filterCoordinatorDepartmentId;
|
|
401
409
|
}
|
|
@@ -673,7 +681,7 @@ export class Expanded {
|
|
|
673
681
|
__listForProviderOperatorsV1(request, requestOptions) {
|
|
674
682
|
return __awaiter(this, void 0, void 0, function* () {
|
|
675
683
|
var _a, _b, _c, _d, _e, _f;
|
|
676
|
-
const { provider_role: providerRole, sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_status: filterStatus, filter_order_classification_by_task_group_type: filterOrderClassificationByTaskGroupType, filter_awb_number: filterAwbNumber, filter_draft_started_at_timestamp_lte: filterDraftStartedAtTimestampLte, filter_draft_started_at_timestamp_gte: filterDraftStartedAtTimestampGte, filter_staged_at_timestamp_lte: filterStagedAtTimestampLte, filter_staged_at_timestamp_gte: filterStagedAtTimestampGte, filter_in_progress_at_timestamp_lte: filterInProgressAtTimestampLte, filter_in_progress_at_timestamp_gte: filterInProgressAtTimestampGte, filter_completed_at_timestamp_lte: filterCompletedAtTimestampLte, filter_completed_at_timestamp_gte: filterCompletedAtTimestampGte, filter_cancelled_at_timestamp_lte: filterCancelledAtTimestampLte, filter_cancelled_at_timestamp_gte: filterCancelledAtTimestampGte, filter_exception_at_timestamp_lte: filterExceptionAtTimestampLte, filter_exception_at_timestamp_gte: filterExceptionAtTimestampGte, filter_executor_org_id: filterExecutorOrgId, filter_coordinator_org_id: filterCoordinatorOrgId, filter_shipper_org_id: filterShipperOrgId, filter_off_chrt_shipper_org_data_id: filterOffChrtShipperOrgDataId, filter_coordinator_department_id: filterCoordinatorDepartmentId, filter_coordinator_assigned_user_ids: filterCoordinatorAssignedUserIds, filter_coordinator_label: filterCoordinatorLabel, body: _body, } = request;
|
|
684
|
+
const { provider_role: providerRole, sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_status: filterStatus, filter_order_classification_by_task_group_type: filterOrderClassificationByTaskGroupType, filter_awb_number: filterAwbNumber, filter_draft_started_at_timestamp_lte: filterDraftStartedAtTimestampLte, filter_draft_started_at_timestamp_gte: filterDraftStartedAtTimestampGte, filter_staged_at_timestamp_lte: filterStagedAtTimestampLte, filter_staged_at_timestamp_gte: filterStagedAtTimestampGte, filter_in_progress_at_timestamp_lte: filterInProgressAtTimestampLte, filter_in_progress_at_timestamp_gte: filterInProgressAtTimestampGte, filter_completed_at_timestamp_lte: filterCompletedAtTimestampLte, filter_completed_at_timestamp_gte: filterCompletedAtTimestampGte, filter_cancelled_at_timestamp_lte: filterCancelledAtTimestampLte, filter_cancelled_at_timestamp_gte: filterCancelledAtTimestampGte, filter_exception_at_timestamp_lte: filterExceptionAtTimestampLte, filter_exception_at_timestamp_gte: filterExceptionAtTimestampGte, filter_executor_org_id: filterExecutorOrgId, filter_coordinator_org_id: filterCoordinatorOrgId, filter_shipper_org_id: filterShipperOrgId, filter_off_chrt_shipper_org_data_id: filterOffChrtShipperOrgDataId, filter_coordinator_shipper_account_ids: filterCoordinatorShipperAccountIds, filter_coordinator_department_id: filterCoordinatorDepartmentId, filter_coordinator_assigned_user_ids: filterCoordinatorAssignedUserIds, filter_coordinator_label: filterCoordinatorLabel, body: _body, } = request;
|
|
677
685
|
const _queryParams = {};
|
|
678
686
|
if (providerRole !== undefined) {
|
|
679
687
|
_queryParams["provider_role"] = providerRole;
|
|
@@ -762,6 +770,14 @@ export class Expanded {
|
|
|
762
770
|
if (filterOffChrtShipperOrgDataId !== undefined) {
|
|
763
771
|
_queryParams["filter_off_chrt_shipper_org_data_id"] = filterOffChrtShipperOrgDataId;
|
|
764
772
|
}
|
|
773
|
+
if (filterCoordinatorShipperAccountIds !== undefined) {
|
|
774
|
+
if (Array.isArray(filterCoordinatorShipperAccountIds)) {
|
|
775
|
+
_queryParams["filter_coordinator_shipper_account_ids"] = filterCoordinatorShipperAccountIds.map((item) => item);
|
|
776
|
+
}
|
|
777
|
+
else {
|
|
778
|
+
_queryParams["filter_coordinator_shipper_account_ids"] = filterCoordinatorShipperAccountIds;
|
|
779
|
+
}
|
|
780
|
+
}
|
|
765
781
|
if (filterCoordinatorDepartmentId !== undefined) {
|
|
766
782
|
_queryParams["filter_coordinator_department_id"] = filterCoordinatorDepartmentId;
|
|
767
783
|
}
|
|
@@ -59,6 +59,8 @@ export interface ExpandedListForCoordinatorOperatorsV1Request {
|
|
|
59
59
|
filter_executor_org_id?: string | null;
|
|
60
60
|
filter_shipper_org_id?: string | null;
|
|
61
61
|
filter_off_chrt_shipper_org_data_id?: string | null;
|
|
62
|
+
/** Filter by coordinator shipper account IDs */
|
|
63
|
+
filter_coordinator_shipper_account_ids?: (string | null) | (string | null)[];
|
|
62
64
|
filter_coordinator_department_id?: string | null;
|
|
63
65
|
filter_coordinator_assigned_user_ids?: (string | null) | (string | null)[];
|
|
64
66
|
filter_coordinator_label?: string | null;
|
|
@@ -63,6 +63,8 @@ export interface ExpandedListForProviderOperatorsV1Request {
|
|
|
63
63
|
filter_coordinator_org_id?: string | null;
|
|
64
64
|
filter_shipper_org_id?: string | null;
|
|
65
65
|
filter_off_chrt_shipper_org_data_id?: string | null;
|
|
66
|
+
/** Filter by coordinator shipper account IDs */
|
|
67
|
+
filter_coordinator_shipper_account_ids?: (string | null) | (string | null)[];
|
|
66
68
|
filter_coordinator_department_id?: string | null;
|
|
67
69
|
filter_coordinator_assigned_user_ids?: (string | null) | (string | null)[];
|
|
68
70
|
filter_coordinator_label?: string | null;
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as Chrt from "../index.mjs";
|
|
4
5
|
export interface Account1 {
|
|
5
6
|
_id: string;
|
|
6
7
|
/** Must be a string starting with `org_` */
|
|
7
8
|
created_by_org_id: string;
|
|
8
9
|
/** Must be a string starting with `user_` */
|
|
9
10
|
created_by_user_id: string;
|
|
11
|
+
location?: Chrt.LocationFeature | null;
|
|
10
12
|
name: string;
|
|
11
13
|
off_chrt_org_data_id?: string | null;
|
|
12
14
|
/** Must be a string starting with `org_` */
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Limited notification events for ad-hoc per-subject notifications.
|
|
6
6
|
*
|
|
7
|
-
* Set per order or per tracking session for any
|
|
7
|
+
* Set per order or per tracking session for any contact.
|
|
8
8
|
* Limited scope since it can go outside the org, e.g. share order completion but probably not billing events
|
|
9
9
|
*/
|
|
10
10
|
export type NotificationEventsForAdHocEnum = "shipping.order.staged" | "shipping.order.completed" | "tracking.session.destination_geofence_entered";
|
|
@@ -2,6 +2,9 @@ export * from "./AiImageDescription.mjs";
|
|
|
2
2
|
export * from "./Account1.mjs";
|
|
3
3
|
export * from "./AccountListRes.mjs";
|
|
4
4
|
export * from "./AccountSortByEnum.mjs";
|
|
5
|
+
export * from "./AccountTypeaheadFieldEnum.mjs";
|
|
6
|
+
export * from "./AccountTypeaheadResult.mjs";
|
|
7
|
+
export * from "./AccountTypeaheadValue.mjs";
|
|
5
8
|
export * from "./AlertCallback.mjs";
|
|
6
9
|
export * from "./AlertEvent.mjs";
|
|
7
10
|
export * from "./AlertMessage.mjs";
|
|
@@ -2,6 +2,9 @@ export * from "./AiImageDescription.mjs";
|
|
|
2
2
|
export * from "./Account1.mjs";
|
|
3
3
|
export * from "./AccountListRes.mjs";
|
|
4
4
|
export * from "./AccountSortByEnum.mjs";
|
|
5
|
+
export * from "./AccountTypeaheadFieldEnum.mjs";
|
|
6
|
+
export * from "./AccountTypeaheadResult.mjs";
|
|
7
|
+
export * from "./AccountTypeaheadValue.mjs";
|
|
5
8
|
export * from "./AlertCallback.mjs";
|
|
6
9
|
export * from "./AlertEvent.mjs";
|
|
7
10
|
export * from "./AlertMessage.mjs";
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.
|
|
1
|
+
export declare const SDK_VERSION = "1.888.0";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "1.
|
|
1
|
+
export const SDK_VERSION = "1.888.0";
|