@chrt-inc/typescript-sdk 1.885.0 → 1.887.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 +20 -3
- package/dist/cjs/api/resources/orgs/resources/accounts/client/Client.js +76 -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 +3 -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/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/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 +20 -3
- package/dist/esm/api/resources/orgs/resources/accounts/client/Client.mjs +76 -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 +3 -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/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/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 +70 -3
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.887.0",
|
|
61
|
+
"User-Agent": "@chrt-inc/typescript-sdk/1.887.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) });
|
|
@@ -31,7 +31,7 @@ export declare class Accounts {
|
|
|
31
31
|
protected readonly _options: Accounts.Options;
|
|
32
32
|
constructor(_options?: Accounts.Options);
|
|
33
33
|
/**
|
|
34
|
-
* Creates a coordinator-private account
|
|
34
|
+
* Creates a coordinator-private account with a name unique to its associated shipper. Optional location may be set at creation. | authz: allowed_org_types=[provider], min_org_role=operator | (AccountClientCreate1) -> (PydanticObjectId)
|
|
35
35
|
*
|
|
36
36
|
* @param {Chrt.orgs.AccountClientCreate1} request
|
|
37
37
|
* @param {Accounts.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -47,7 +47,7 @@ export declare class Accounts {
|
|
|
47
47
|
createV1(request: Chrt.orgs.AccountClientCreate1, requestOptions?: Accounts.RequestOptions): core.HttpResponsePromise<string>;
|
|
48
48
|
private __createV1;
|
|
49
49
|
/**
|
|
50
|
-
* Lists coordinator-created shipper accounts with association filters, sorting, and pagination. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (AccountListRes)
|
|
50
|
+
* Lists coordinator-created shipper accounts with association filters, name search, sorting, and pagination. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (AccountListRes)
|
|
51
51
|
*
|
|
52
52
|
* @param {Chrt.orgs.AccountsListV1Request} request
|
|
53
53
|
* @param {Accounts.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -56,6 +56,7 @@ export declare class Accounts {
|
|
|
56
56
|
*
|
|
57
57
|
* @example
|
|
58
58
|
* await client.orgs.accounts.listV1({
|
|
59
|
+
* search: "search",
|
|
59
60
|
* filter_org_id: "filter_org_id",
|
|
60
61
|
* filter_off_chrt_org_data_id: "filter_off_chrt_org_data_id",
|
|
61
62
|
* sort_by: "name",
|
|
@@ -67,7 +68,23 @@ export declare class Accounts {
|
|
|
67
68
|
listV1(request?: Chrt.orgs.AccountsListV1Request, requestOptions?: Accounts.RequestOptions): core.HttpResponsePromise<Chrt.AccountListRes>;
|
|
68
69
|
private __listV1;
|
|
69
70
|
/**
|
|
70
|
-
*
|
|
71
|
+
* Returns distinct coordinator-created shipper account names matching the query, with matching account IDs. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (list[AccountTypeaheadResult])
|
|
72
|
+
*
|
|
73
|
+
* @param {Chrt.orgs.AccountsTypeaheadV1Request} request
|
|
74
|
+
* @param {Accounts.RequestOptions} requestOptions - Request-specific configuration.
|
|
75
|
+
*
|
|
76
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
77
|
+
*
|
|
78
|
+
* @example
|
|
79
|
+
* await client.orgs.accounts.typeaheadV1({
|
|
80
|
+
* query: "query",
|
|
81
|
+
* limit: 1
|
|
82
|
+
* })
|
|
83
|
+
*/
|
|
84
|
+
typeaheadV1(request: Chrt.orgs.AccountsTypeaheadV1Request, requestOptions?: Accounts.RequestOptions): core.HttpResponsePromise<Chrt.AccountTypeaheadResult[]>;
|
|
85
|
+
private __typeaheadV1;
|
|
86
|
+
/**
|
|
87
|
+
* Updates a coordinator-created shipper account name and optional location while preserving per-shipper name uniqueness. | authz: allowed_org_types=[provider], min_org_role=operator | (AccountClientUpdate1) -> (bool)
|
|
71
88
|
*
|
|
72
89
|
* @param {string} accountId
|
|
73
90
|
* @param {Chrt.orgs.AccountClientUpdate1} request
|
|
@@ -56,7 +56,7 @@ class Accounts {
|
|
|
56
56
|
this._options = _options;
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
|
-
* Creates a coordinator-private account
|
|
59
|
+
* Creates a coordinator-private account with a name unique to its associated shipper. Optional location may be set at creation. | authz: allowed_org_types=[provider], min_org_role=operator | (AccountClientCreate1) -> (PydanticObjectId)
|
|
60
60
|
*
|
|
61
61
|
* @param {Chrt.orgs.AccountClientCreate1} request
|
|
62
62
|
* @param {Accounts.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -121,7 +121,7 @@ class Accounts {
|
|
|
121
121
|
});
|
|
122
122
|
}
|
|
123
123
|
/**
|
|
124
|
-
* Lists coordinator-created shipper accounts with association filters, sorting, and pagination. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (AccountListRes)
|
|
124
|
+
* Lists coordinator-created shipper accounts with association filters, name search, sorting, and pagination. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (AccountListRes)
|
|
125
125
|
*
|
|
126
126
|
* @param {Chrt.orgs.AccountsListV1Request} request
|
|
127
127
|
* @param {Accounts.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -130,6 +130,7 @@ class Accounts {
|
|
|
130
130
|
*
|
|
131
131
|
* @example
|
|
132
132
|
* await client.orgs.accounts.listV1({
|
|
133
|
+
* search: "search",
|
|
133
134
|
* filter_org_id: "filter_org_id",
|
|
134
135
|
* filter_off_chrt_org_data_id: "filter_off_chrt_org_data_id",
|
|
135
136
|
* sort_by: "name",
|
|
@@ -144,8 +145,11 @@ class Accounts {
|
|
|
144
145
|
__listV1() {
|
|
145
146
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
146
147
|
var _a, _b, _c, _d, _e, _f;
|
|
147
|
-
const { filter_org_id: filterOrgId, filter_off_chrt_org_data_id: filterOffChrtOrgDataId, sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, } = request;
|
|
148
|
+
const { search, filter_org_id: filterOrgId, filter_off_chrt_org_data_id: filterOffChrtOrgDataId, sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, } = request;
|
|
148
149
|
const _queryParams = {};
|
|
150
|
+
if (search !== undefined) {
|
|
151
|
+
_queryParams["search"] = search;
|
|
152
|
+
}
|
|
149
153
|
if (filterOrgId !== undefined) {
|
|
150
154
|
_queryParams["filter_org_id"] = filterOrgId;
|
|
151
155
|
}
|
|
@@ -207,7 +211,75 @@ class Accounts {
|
|
|
207
211
|
});
|
|
208
212
|
}
|
|
209
213
|
/**
|
|
210
|
-
*
|
|
214
|
+
* Returns distinct coordinator-created shipper account names matching the query, with matching account IDs. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (list[AccountTypeaheadResult])
|
|
215
|
+
*
|
|
216
|
+
* @param {Chrt.orgs.AccountsTypeaheadV1Request} request
|
|
217
|
+
* @param {Accounts.RequestOptions} requestOptions - Request-specific configuration.
|
|
218
|
+
*
|
|
219
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
220
|
+
*
|
|
221
|
+
* @example
|
|
222
|
+
* await client.orgs.accounts.typeaheadV1({
|
|
223
|
+
* query: "query",
|
|
224
|
+
* limit: 1
|
|
225
|
+
* })
|
|
226
|
+
*/
|
|
227
|
+
typeaheadV1(request, requestOptions) {
|
|
228
|
+
return core.HttpResponsePromise.fromPromise(this.__typeaheadV1(request, requestOptions));
|
|
229
|
+
}
|
|
230
|
+
__typeaheadV1(request, requestOptions) {
|
|
231
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
232
|
+
var _a, _b, _c, _d, _e;
|
|
233
|
+
const { query, limit } = request;
|
|
234
|
+
const _queryParams = {};
|
|
235
|
+
_queryParams["query"] = query;
|
|
236
|
+
if (limit !== undefined) {
|
|
237
|
+
_queryParams["limit"] = (_a = limit === null || limit === void 0 ? void 0 : limit.toString()) !== null && _a !== void 0 ? _a : null;
|
|
238
|
+
}
|
|
239
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
240
|
+
const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
|
|
241
|
+
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.ChrtEnvironment.Local, "orgs/accounts/typeahead/v1"),
|
|
242
|
+
method: "GET",
|
|
243
|
+
headers: _headers,
|
|
244
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
245
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
246
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
247
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
248
|
+
});
|
|
249
|
+
if (_response.ok) {
|
|
250
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
251
|
+
}
|
|
252
|
+
if (_response.error.reason === "status-code") {
|
|
253
|
+
switch (_response.error.statusCode) {
|
|
254
|
+
case 422:
|
|
255
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
256
|
+
default:
|
|
257
|
+
throw new errors.ChrtError({
|
|
258
|
+
statusCode: _response.error.statusCode,
|
|
259
|
+
body: _response.error.body,
|
|
260
|
+
rawResponse: _response.rawResponse,
|
|
261
|
+
});
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
switch (_response.error.reason) {
|
|
265
|
+
case "non-json":
|
|
266
|
+
throw new errors.ChrtError({
|
|
267
|
+
statusCode: _response.error.statusCode,
|
|
268
|
+
body: _response.error.rawBody,
|
|
269
|
+
rawResponse: _response.rawResponse,
|
|
270
|
+
});
|
|
271
|
+
case "timeout":
|
|
272
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/accounts/typeahead/v1.");
|
|
273
|
+
case "unknown":
|
|
274
|
+
throw new errors.ChrtError({
|
|
275
|
+
message: _response.error.errorMessage,
|
|
276
|
+
rawResponse: _response.rawResponse,
|
|
277
|
+
});
|
|
278
|
+
}
|
|
279
|
+
});
|
|
280
|
+
}
|
|
281
|
+
/**
|
|
282
|
+
* Updates a coordinator-created shipper account name and optional location while preserving per-shipper name uniqueness. | authz: allowed_org_types=[provider], min_org_role=operator | (AccountClientUpdate1) -> (bool)
|
|
211
283
|
*
|
|
212
284
|
* @param {string} accountId
|
|
213
285
|
* @param {Chrt.orgs.AccountClientUpdate1} request
|
package/dist/cjs/api/resources/orgs/resources/accounts/client/requests/AccountClientCreate1.d.ts
CHANGED
|
@@ -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
|
* {
|
|
@@ -9,6 +10,7 @@
|
|
|
9
10
|
* }
|
|
10
11
|
*/
|
|
11
12
|
export interface AccountClientCreate1 {
|
|
13
|
+
location?: Chrt.LocationFeature | null;
|
|
12
14
|
name: string;
|
|
13
15
|
off_chrt_org_data_id?: string | null;
|
|
14
16
|
/** Must be a string starting with `org_` */
|
package/dist/cjs/api/resources/orgs/resources/accounts/client/requests/AccountClientUpdate1.d.ts
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
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
|
* {}
|
|
7
8
|
*/
|
|
8
9
|
export interface AccountClientUpdate1 {
|
|
10
|
+
location?: Chrt.LocationFeature | null;
|
|
11
|
+
location__set_to_None?: boolean;
|
|
9
12
|
name?: string | null;
|
|
10
13
|
}
|
package/dist/cjs/api/resources/orgs/resources/accounts/client/requests/AccountsListV1Request.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import * as Chrt from "../../../../../../index.js";
|
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
8
|
+
* search: "search",
|
|
8
9
|
* filter_org_id: "filter_org_id",
|
|
9
10
|
* filter_off_chrt_org_data_id: "filter_off_chrt_org_data_id",
|
|
10
11
|
* sort_by: "name",
|
|
@@ -14,6 +15,8 @@ import * as Chrt from "../../../../../../index.js";
|
|
|
14
15
|
* }
|
|
15
16
|
*/
|
|
16
17
|
export interface AccountsListV1Request {
|
|
18
|
+
/** Full-text account name search query */
|
|
19
|
+
search?: string | null;
|
|
17
20
|
/** Filter by associated on-CHRT shipper organization */
|
|
18
21
|
filter_org_id?: string | null;
|
|
19
22
|
/** Filter by associated off-CHRT shipper organization data */
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* query: "query",
|
|
8
|
+
* limit: 1
|
|
9
|
+
* }
|
|
10
|
+
*/
|
|
11
|
+
export interface AccountsTypeaheadV1Request {
|
|
12
|
+
/** Typeahead search query */
|
|
13
|
+
query: string;
|
|
14
|
+
/** Max results per field */
|
|
15
|
+
limit?: number | null;
|
|
16
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { type AccountClientCreate1 } from "./AccountClientCreate1.js";
|
|
2
2
|
export { type AccountsListV1Request } from "./AccountsListV1Request.js";
|
|
3
|
+
export { type AccountsTypeaheadV1Request } from "./AccountsTypeaheadV1Request.js";
|
|
3
4
|
export { type AccountClientUpdate1 } from "./AccountClientUpdate1.js";
|
package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.js
CHANGED
|
@@ -349,7 +349,7 @@ class Expanded {
|
|
|
349
349
|
__listForCoordinatorOperatorsV1(request, requestOptions) {
|
|
350
350
|
return __awaiter(this, void 0, void 0, function* () {
|
|
351
351
|
var _a, _b, _c, _d, _e, _f;
|
|
352
|
-
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;
|
|
352
|
+
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;
|
|
353
353
|
const _queryParams = {};
|
|
354
354
|
if (sortBy !== undefined) {
|
|
355
355
|
_queryParams["sort_by"] = sortBy;
|
|
@@ -432,6 +432,14 @@ class Expanded {
|
|
|
432
432
|
if (filterOffChrtShipperOrgDataId !== undefined) {
|
|
433
433
|
_queryParams["filter_off_chrt_shipper_org_data_id"] = filterOffChrtShipperOrgDataId;
|
|
434
434
|
}
|
|
435
|
+
if (filterCoordinatorShipperAccountIds !== undefined) {
|
|
436
|
+
if (Array.isArray(filterCoordinatorShipperAccountIds)) {
|
|
437
|
+
_queryParams["filter_coordinator_shipper_account_ids"] = filterCoordinatorShipperAccountIds.map((item) => item);
|
|
438
|
+
}
|
|
439
|
+
else {
|
|
440
|
+
_queryParams["filter_coordinator_shipper_account_ids"] = filterCoordinatorShipperAccountIds;
|
|
441
|
+
}
|
|
442
|
+
}
|
|
435
443
|
if (filterCoordinatorDepartmentId !== undefined) {
|
|
436
444
|
_queryParams["filter_coordinator_department_id"] = filterCoordinatorDepartmentId;
|
|
437
445
|
}
|
|
@@ -709,7 +717,7 @@ class Expanded {
|
|
|
709
717
|
__listForProviderOperatorsV1(request, requestOptions) {
|
|
710
718
|
return __awaiter(this, void 0, void 0, function* () {
|
|
711
719
|
var _a, _b, _c, _d, _e, _f;
|
|
712
|
-
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;
|
|
720
|
+
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;
|
|
713
721
|
const _queryParams = {};
|
|
714
722
|
if (providerRole !== undefined) {
|
|
715
723
|
_queryParams["provider_role"] = providerRole;
|
|
@@ -798,6 +806,14 @@ class Expanded {
|
|
|
798
806
|
if (filterOffChrtShipperOrgDataId !== undefined) {
|
|
799
807
|
_queryParams["filter_off_chrt_shipper_org_data_id"] = filterOffChrtShipperOrgDataId;
|
|
800
808
|
}
|
|
809
|
+
if (filterCoordinatorShipperAccountIds !== undefined) {
|
|
810
|
+
if (Array.isArray(filterCoordinatorShipperAccountIds)) {
|
|
811
|
+
_queryParams["filter_coordinator_shipper_account_ids"] = filterCoordinatorShipperAccountIds.map((item) => item);
|
|
812
|
+
}
|
|
813
|
+
else {
|
|
814
|
+
_queryParams["filter_coordinator_shipper_account_ids"] = filterCoordinatorShipperAccountIds;
|
|
815
|
+
}
|
|
816
|
+
}
|
|
801
817
|
if (filterCoordinatorDepartmentId !== undefined) {
|
|
802
818
|
_queryParams["filter_coordinator_department_id"] = filterCoordinatorDepartmentId;
|
|
803
819
|
}
|
|
@@ -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.js";
|
|
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.js";
|
|
|
2
2
|
export * from "./Account1.js";
|
|
3
3
|
export * from "./AccountListRes.js";
|
|
4
4
|
export * from "./AccountSortByEnum.js";
|
|
5
|
+
export * from "./AccountTypeaheadFieldEnum.js";
|
|
6
|
+
export * from "./AccountTypeaheadResult.js";
|
|
7
|
+
export * from "./AccountTypeaheadValue.js";
|
|
5
8
|
export * from "./AlertCallback.js";
|
|
6
9
|
export * from "./AlertEvent.js";
|
|
7
10
|
export * from "./AlertMessage.js";
|
|
@@ -18,6 +18,9 @@ __exportStar(require("./AiImageDescription.js"), exports);
|
|
|
18
18
|
__exportStar(require("./Account1.js"), exports);
|
|
19
19
|
__exportStar(require("./AccountListRes.js"), exports);
|
|
20
20
|
__exportStar(require("./AccountSortByEnum.js"), exports);
|
|
21
|
+
__exportStar(require("./AccountTypeaheadFieldEnum.js"), exports);
|
|
22
|
+
__exportStar(require("./AccountTypeaheadResult.js"), exports);
|
|
23
|
+
__exportStar(require("./AccountTypeaheadValue.js"), exports);
|
|
21
24
|
__exportStar(require("./AlertCallback.js"), exports);
|
|
22
25
|
__exportStar(require("./AlertEvent.js"), exports);
|
|
23
26
|
__exportStar(require("./AlertMessage.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.887.0";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/Client.mjs
CHANGED
|
@@ -21,8 +21,8 @@ export class ChrtClient {
|
|
|
21
21
|
this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
|
|
22
22
|
"X-Fern-Language": "JavaScript",
|
|
23
23
|
"X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
|
|
24
|
-
"X-Fern-SDK-Version": "1.
|
|
25
|
-
"User-Agent": "@chrt-inc/typescript-sdk/1.
|
|
24
|
+
"X-Fern-SDK-Version": "1.887.0",
|
|
25
|
+
"User-Agent": "@chrt-inc/typescript-sdk/1.887.0",
|
|
26
26
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
27
27
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
28
28
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -31,7 +31,7 @@ export declare class Accounts {
|
|
|
31
31
|
protected readonly _options: Accounts.Options;
|
|
32
32
|
constructor(_options?: Accounts.Options);
|
|
33
33
|
/**
|
|
34
|
-
* Creates a coordinator-private account
|
|
34
|
+
* Creates a coordinator-private account with a name unique to its associated shipper. Optional location may be set at creation. | authz: allowed_org_types=[provider], min_org_role=operator | (AccountClientCreate1) -> (PydanticObjectId)
|
|
35
35
|
*
|
|
36
36
|
* @param {Chrt.orgs.AccountClientCreate1} request
|
|
37
37
|
* @param {Accounts.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -47,7 +47,7 @@ export declare class Accounts {
|
|
|
47
47
|
createV1(request: Chrt.orgs.AccountClientCreate1, requestOptions?: Accounts.RequestOptions): core.HttpResponsePromise<string>;
|
|
48
48
|
private __createV1;
|
|
49
49
|
/**
|
|
50
|
-
* Lists coordinator-created shipper accounts with association filters, sorting, and pagination. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (AccountListRes)
|
|
50
|
+
* Lists coordinator-created shipper accounts with association filters, name search, sorting, and pagination. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (AccountListRes)
|
|
51
51
|
*
|
|
52
52
|
* @param {Chrt.orgs.AccountsListV1Request} request
|
|
53
53
|
* @param {Accounts.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -56,6 +56,7 @@ export declare class Accounts {
|
|
|
56
56
|
*
|
|
57
57
|
* @example
|
|
58
58
|
* await client.orgs.accounts.listV1({
|
|
59
|
+
* search: "search",
|
|
59
60
|
* filter_org_id: "filter_org_id",
|
|
60
61
|
* filter_off_chrt_org_data_id: "filter_off_chrt_org_data_id",
|
|
61
62
|
* sort_by: "name",
|
|
@@ -67,7 +68,23 @@ export declare class Accounts {
|
|
|
67
68
|
listV1(request?: Chrt.orgs.AccountsListV1Request, requestOptions?: Accounts.RequestOptions): core.HttpResponsePromise<Chrt.AccountListRes>;
|
|
68
69
|
private __listV1;
|
|
69
70
|
/**
|
|
70
|
-
*
|
|
71
|
+
* Returns distinct coordinator-created shipper account names matching the query, with matching account IDs. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (list[AccountTypeaheadResult])
|
|
72
|
+
*
|
|
73
|
+
* @param {Chrt.orgs.AccountsTypeaheadV1Request} request
|
|
74
|
+
* @param {Accounts.RequestOptions} requestOptions - Request-specific configuration.
|
|
75
|
+
*
|
|
76
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
77
|
+
*
|
|
78
|
+
* @example
|
|
79
|
+
* await client.orgs.accounts.typeaheadV1({
|
|
80
|
+
* query: "query",
|
|
81
|
+
* limit: 1
|
|
82
|
+
* })
|
|
83
|
+
*/
|
|
84
|
+
typeaheadV1(request: Chrt.orgs.AccountsTypeaheadV1Request, requestOptions?: Accounts.RequestOptions): core.HttpResponsePromise<Chrt.AccountTypeaheadResult[]>;
|
|
85
|
+
private __typeaheadV1;
|
|
86
|
+
/**
|
|
87
|
+
* Updates a coordinator-created shipper account name and optional location while preserving per-shipper name uniqueness. | authz: allowed_org_types=[provider], min_org_role=operator | (AccountClientUpdate1) -> (bool)
|
|
71
88
|
*
|
|
72
89
|
* @param {string} accountId
|
|
73
90
|
* @param {Chrt.orgs.AccountClientUpdate1} request
|
|
@@ -20,7 +20,7 @@ export class Accounts {
|
|
|
20
20
|
this._options = _options;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
* Creates a coordinator-private account
|
|
23
|
+
* Creates a coordinator-private account with a name unique to its associated shipper. Optional location may be set at creation. | authz: allowed_org_types=[provider], min_org_role=operator | (AccountClientCreate1) -> (PydanticObjectId)
|
|
24
24
|
*
|
|
25
25
|
* @param {Chrt.orgs.AccountClientCreate1} request
|
|
26
26
|
* @param {Accounts.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -85,7 +85,7 @@ export class Accounts {
|
|
|
85
85
|
});
|
|
86
86
|
}
|
|
87
87
|
/**
|
|
88
|
-
* Lists coordinator-created shipper accounts with association filters, sorting, and pagination. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (AccountListRes)
|
|
88
|
+
* Lists coordinator-created shipper accounts with association filters, name search, sorting, and pagination. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (AccountListRes)
|
|
89
89
|
*
|
|
90
90
|
* @param {Chrt.orgs.AccountsListV1Request} request
|
|
91
91
|
* @param {Accounts.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -94,6 +94,7 @@ export class Accounts {
|
|
|
94
94
|
*
|
|
95
95
|
* @example
|
|
96
96
|
* await client.orgs.accounts.listV1({
|
|
97
|
+
* search: "search",
|
|
97
98
|
* filter_org_id: "filter_org_id",
|
|
98
99
|
* filter_off_chrt_org_data_id: "filter_off_chrt_org_data_id",
|
|
99
100
|
* sort_by: "name",
|
|
@@ -108,8 +109,11 @@ export class Accounts {
|
|
|
108
109
|
__listV1() {
|
|
109
110
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
110
111
|
var _a, _b, _c, _d, _e, _f;
|
|
111
|
-
const { filter_org_id: filterOrgId, filter_off_chrt_org_data_id: filterOffChrtOrgDataId, sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, } = request;
|
|
112
|
+
const { search, filter_org_id: filterOrgId, filter_off_chrt_org_data_id: filterOffChrtOrgDataId, sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, } = request;
|
|
112
113
|
const _queryParams = {};
|
|
114
|
+
if (search !== undefined) {
|
|
115
|
+
_queryParams["search"] = search;
|
|
116
|
+
}
|
|
113
117
|
if (filterOrgId !== undefined) {
|
|
114
118
|
_queryParams["filter_org_id"] = filterOrgId;
|
|
115
119
|
}
|
|
@@ -171,7 +175,75 @@ export class Accounts {
|
|
|
171
175
|
});
|
|
172
176
|
}
|
|
173
177
|
/**
|
|
174
|
-
*
|
|
178
|
+
* Returns distinct coordinator-created shipper account names matching the query, with matching account IDs. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (list[AccountTypeaheadResult])
|
|
179
|
+
*
|
|
180
|
+
* @param {Chrt.orgs.AccountsTypeaheadV1Request} request
|
|
181
|
+
* @param {Accounts.RequestOptions} requestOptions - Request-specific configuration.
|
|
182
|
+
*
|
|
183
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
184
|
+
*
|
|
185
|
+
* @example
|
|
186
|
+
* await client.orgs.accounts.typeaheadV1({
|
|
187
|
+
* query: "query",
|
|
188
|
+
* limit: 1
|
|
189
|
+
* })
|
|
190
|
+
*/
|
|
191
|
+
typeaheadV1(request, requestOptions) {
|
|
192
|
+
return core.HttpResponsePromise.fromPromise(this.__typeaheadV1(request, requestOptions));
|
|
193
|
+
}
|
|
194
|
+
__typeaheadV1(request, requestOptions) {
|
|
195
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
196
|
+
var _a, _b, _c, _d, _e;
|
|
197
|
+
const { query, limit } = request;
|
|
198
|
+
const _queryParams = {};
|
|
199
|
+
_queryParams["query"] = query;
|
|
200
|
+
if (limit !== undefined) {
|
|
201
|
+
_queryParams["limit"] = (_a = limit === null || limit === void 0 ? void 0 : limit.toString()) !== null && _a !== void 0 ? _a : null;
|
|
202
|
+
}
|
|
203
|
+
let _headers = mergeHeaders((_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
204
|
+
const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
|
|
205
|
+
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.ChrtEnvironment.Local, "orgs/accounts/typeahead/v1"),
|
|
206
|
+
method: "GET",
|
|
207
|
+
headers: _headers,
|
|
208
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
209
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
210
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
211
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
212
|
+
});
|
|
213
|
+
if (_response.ok) {
|
|
214
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
215
|
+
}
|
|
216
|
+
if (_response.error.reason === "status-code") {
|
|
217
|
+
switch (_response.error.statusCode) {
|
|
218
|
+
case 422:
|
|
219
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
220
|
+
default:
|
|
221
|
+
throw new errors.ChrtError({
|
|
222
|
+
statusCode: _response.error.statusCode,
|
|
223
|
+
body: _response.error.body,
|
|
224
|
+
rawResponse: _response.rawResponse,
|
|
225
|
+
});
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
switch (_response.error.reason) {
|
|
229
|
+
case "non-json":
|
|
230
|
+
throw new errors.ChrtError({
|
|
231
|
+
statusCode: _response.error.statusCode,
|
|
232
|
+
body: _response.error.rawBody,
|
|
233
|
+
rawResponse: _response.rawResponse,
|
|
234
|
+
});
|
|
235
|
+
case "timeout":
|
|
236
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/accounts/typeahead/v1.");
|
|
237
|
+
case "unknown":
|
|
238
|
+
throw new errors.ChrtError({
|
|
239
|
+
message: _response.error.errorMessage,
|
|
240
|
+
rawResponse: _response.rawResponse,
|
|
241
|
+
});
|
|
242
|
+
}
|
|
243
|
+
});
|
|
244
|
+
}
|
|
245
|
+
/**
|
|
246
|
+
* Updates a coordinator-created shipper account name and optional location while preserving per-shipper name uniqueness. | authz: allowed_org_types=[provider], min_org_role=operator | (AccountClientUpdate1) -> (bool)
|
|
175
247
|
*
|
|
176
248
|
* @param {string} accountId
|
|
177
249
|
* @param {Chrt.orgs.AccountClientUpdate1} request
|
package/dist/esm/api/resources/orgs/resources/accounts/client/requests/AccountClientCreate1.d.mts
CHANGED
|
@@ -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.mjs";
|
|
4
5
|
/**
|
|
5
6
|
* @example
|
|
6
7
|
* {
|
|
@@ -9,6 +10,7 @@
|
|
|
9
10
|
* }
|
|
10
11
|
*/
|
|
11
12
|
export interface AccountClientCreate1 {
|
|
13
|
+
location?: Chrt.LocationFeature | null;
|
|
12
14
|
name: string;
|
|
13
15
|
off_chrt_org_data_id?: string | null;
|
|
14
16
|
/** Must be a string starting with `org_` */
|
package/dist/esm/api/resources/orgs/resources/accounts/client/requests/AccountClientUpdate1.d.mts
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
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
|
/**
|
|
5
6
|
* @example
|
|
6
7
|
* {}
|
|
7
8
|
*/
|
|
8
9
|
export interface AccountClientUpdate1 {
|
|
10
|
+
location?: Chrt.LocationFeature | null;
|
|
11
|
+
location__set_to_None?: boolean;
|
|
9
12
|
name?: string | null;
|
|
10
13
|
}
|
package/dist/esm/api/resources/orgs/resources/accounts/client/requests/AccountsListV1Request.d.mts
CHANGED
|
@@ -5,6 +5,7 @@ import * as Chrt from "../../../../../../index.mjs";
|
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
8
|
+
* search: "search",
|
|
8
9
|
* filter_org_id: "filter_org_id",
|
|
9
10
|
* filter_off_chrt_org_data_id: "filter_off_chrt_org_data_id",
|
|
10
11
|
* sort_by: "name",
|
|
@@ -14,6 +15,8 @@ import * as Chrt from "../../../../../../index.mjs";
|
|
|
14
15
|
* }
|
|
15
16
|
*/
|
|
16
17
|
export interface AccountsListV1Request {
|
|
18
|
+
/** Full-text account name search query */
|
|
19
|
+
search?: string | null;
|
|
17
20
|
/** Filter by associated on-CHRT shipper organization */
|
|
18
21
|
filter_org_id?: string | null;
|
|
19
22
|
/** Filter by associated off-CHRT shipper organization data */
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* query: "query",
|
|
8
|
+
* limit: 1
|
|
9
|
+
* }
|
|
10
|
+
*/
|
|
11
|
+
export interface AccountsTypeaheadV1Request {
|
|
12
|
+
/** Typeahead search query */
|
|
13
|
+
query: string;
|
|
14
|
+
/** Max results per field */
|
|
15
|
+
limit?: number | null;
|
|
16
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { type AccountClientCreate1 } from "./AccountClientCreate1.mjs";
|
|
2
2
|
export { type AccountsListV1Request } from "./AccountsListV1Request.mjs";
|
|
3
|
+
export { type AccountsTypeaheadV1Request } from "./AccountsTypeaheadV1Request.mjs";
|
|
3
4
|
export { type AccountClientUpdate1 } from "./AccountClientUpdate1.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.887.0";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "1.
|
|
1
|
+
export const SDK_VERSION = "1.887.0";
|
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -13956,7 +13956,7 @@ await client.operations.orderInternalMessages.s3Objects.getV1("order_internal_me
|
|
|
13956
13956
|
<dl>
|
|
13957
13957
|
<dd>
|
|
13958
13958
|
|
|
13959
|
-
Creates a coordinator-private account
|
|
13959
|
+
Creates a coordinator-private account with a name unique to its associated shipper. Optional location may be set at creation. | authz: allowed_org_types=[provider], min_org_role=operator | (AccountClientCreate1) -> (PydanticObjectId)
|
|
13960
13960
|
|
|
13961
13961
|
</dd>
|
|
13962
13962
|
</dl>
|
|
@@ -14022,7 +14022,7 @@ await client.orgs.accounts.createV1({
|
|
|
14022
14022
|
<dl>
|
|
14023
14023
|
<dd>
|
|
14024
14024
|
|
|
14025
|
-
Lists coordinator-created shipper accounts with association filters, sorting, and pagination. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (AccountListRes)
|
|
14025
|
+
Lists coordinator-created shipper accounts with association filters, name search, sorting, and pagination. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (AccountListRes)
|
|
14026
14026
|
|
|
14027
14027
|
</dd>
|
|
14028
14028
|
</dl>
|
|
@@ -14039,6 +14039,7 @@ Lists coordinator-created shipper accounts with association filters, sorting, an
|
|
|
14039
14039
|
|
|
14040
14040
|
```typescript
|
|
14041
14041
|
await client.orgs.accounts.listV1({
|
|
14042
|
+
search: "search",
|
|
14042
14043
|
filter_org_id: "filter_org_id",
|
|
14043
14044
|
filter_off_chrt_org_data_id: "filter_off_chrt_org_data_id",
|
|
14044
14045
|
sort_by: "name",
|
|
@@ -14080,6 +14081,72 @@ await client.orgs.accounts.listV1({
|
|
|
14080
14081
|
</dl>
|
|
14081
14082
|
</details>
|
|
14082
14083
|
|
|
14084
|
+
<details><summary><code>client.orgs.accounts.<a href="/src/api/resources/orgs/resources/accounts/client/Client.ts">typeaheadV1</a>({ ...params }) -> Chrt.AccountTypeaheadResult[]</code></summary>
|
|
14085
|
+
<dl>
|
|
14086
|
+
<dd>
|
|
14087
|
+
|
|
14088
|
+
#### 📝 Description
|
|
14089
|
+
|
|
14090
|
+
<dl>
|
|
14091
|
+
<dd>
|
|
14092
|
+
|
|
14093
|
+
<dl>
|
|
14094
|
+
<dd>
|
|
14095
|
+
|
|
14096
|
+
Returns distinct coordinator-created shipper account names matching the query, with matching account IDs. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (list[AccountTypeaheadResult])
|
|
14097
|
+
|
|
14098
|
+
</dd>
|
|
14099
|
+
</dl>
|
|
14100
|
+
</dd>
|
|
14101
|
+
</dl>
|
|
14102
|
+
|
|
14103
|
+
#### 🔌 Usage
|
|
14104
|
+
|
|
14105
|
+
<dl>
|
|
14106
|
+
<dd>
|
|
14107
|
+
|
|
14108
|
+
<dl>
|
|
14109
|
+
<dd>
|
|
14110
|
+
|
|
14111
|
+
```typescript
|
|
14112
|
+
await client.orgs.accounts.typeaheadV1({
|
|
14113
|
+
query: "query",
|
|
14114
|
+
limit: 1,
|
|
14115
|
+
});
|
|
14116
|
+
```
|
|
14117
|
+
|
|
14118
|
+
</dd>
|
|
14119
|
+
</dl>
|
|
14120
|
+
</dd>
|
|
14121
|
+
</dl>
|
|
14122
|
+
|
|
14123
|
+
#### ⚙️ Parameters
|
|
14124
|
+
|
|
14125
|
+
<dl>
|
|
14126
|
+
<dd>
|
|
14127
|
+
|
|
14128
|
+
<dl>
|
|
14129
|
+
<dd>
|
|
14130
|
+
|
|
14131
|
+
**request:** `Chrt.orgs.AccountsTypeaheadV1Request`
|
|
14132
|
+
|
|
14133
|
+
</dd>
|
|
14134
|
+
</dl>
|
|
14135
|
+
|
|
14136
|
+
<dl>
|
|
14137
|
+
<dd>
|
|
14138
|
+
|
|
14139
|
+
**requestOptions:** `Accounts.RequestOptions`
|
|
14140
|
+
|
|
14141
|
+
</dd>
|
|
14142
|
+
</dl>
|
|
14143
|
+
</dd>
|
|
14144
|
+
</dl>
|
|
14145
|
+
|
|
14146
|
+
</dd>
|
|
14147
|
+
</dl>
|
|
14148
|
+
</details>
|
|
14149
|
+
|
|
14083
14150
|
<details><summary><code>client.orgs.accounts.<a href="/src/api/resources/orgs/resources/accounts/client/Client.ts">updateV1</a>(accountId, { ...params }) -> boolean</code></summary>
|
|
14084
14151
|
<dl>
|
|
14085
14152
|
<dd>
|
|
@@ -14092,7 +14159,7 @@ await client.orgs.accounts.listV1({
|
|
|
14092
14159
|
<dl>
|
|
14093
14160
|
<dd>
|
|
14094
14161
|
|
|
14095
|
-
Updates
|
|
14162
|
+
Updates a coordinator-created shipper account name and optional location while preserving per-shipper name uniqueness. | authz: allowed_org_types=[provider], min_org_role=operator | (AccountClientUpdate1) -> (bool)
|
|
14096
14163
|
|
|
14097
14164
|
</dd>
|
|
14098
14165
|
</dl>
|