@chrt-inc/typescript-sdk 1.563.0 → 1.576.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/client/Client.d.ts +3 -2
- package/dist/cjs/api/resources/orgs/client/Client.js +7 -3
- package/dist/cjs/api/resources/orgs/client/requests/OrgsListMembersV1Request.d.ts +4 -1
- package/dist/cjs/api/resources/orgs/resources/connections/client/Client.d.ts +6 -3
- package/dist/cjs/api/resources/orgs/resources/connections/client/Client.js +18 -6
- package/dist/cjs/api/resources/orgs/resources/connections/client/requests/ConnectionsListCouriersV1Request.d.ts +3 -0
- package/dist/cjs/api/resources/orgs/resources/connections/client/requests/ConnectionsListForwardersV1Request.d.ts +3 -0
- package/dist/cjs/api/resources/orgs/resources/connections/client/requests/ConnectionsListShippersV1Request.d.ts +3 -0
- package/dist/cjs/api/resources/orgs/resources/offChrtShipperOrg/client/Client.d.ts +2 -1
- package/dist/cjs/api/resources/orgs/resources/offChrtShipperOrg/client/Client.js +6 -2
- package/dist/cjs/api/resources/orgs/resources/offChrtShipperOrg/client/requests/OffChrtShipperOrgListV1Request.d.ts +3 -0
- package/dist/cjs/api/resources/orgs/resources/orgProfiles/client/requests/CourierOrgProfileClientCreate1.d.ts +1 -0
- package/dist/cjs/api/resources/orgs/resources/orgProfiles/client/requests/ForwarderOrgProfileClientCreate1.d.ts +1 -0
- package/dist/cjs/api/resources/orgs/resources/publicData/client/requests/CreateOrgPublicDataReq.d.ts +1 -0
- package/dist/cjs/api/resources/orgs/resources/publicData/client/requests/UpdateOrgPublicDataReq.d.ts +1 -0
- package/dist/cjs/api/resources/shipping/resources/docs/client/requests/GenerateShippingDocReq.d.ts +2 -2
- package/dist/cjs/api/resources/shipping/resources/drivers/client/Client.d.ts +4 -1
- package/dist/cjs/api/resources/shipping/resources/drivers/client/Client.js +14 -2
- package/dist/cjs/api/resources/shipping/resources/drivers/client/requests/DriversListOrgMembersAndDriversV1Request.d.ts +9 -0
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/requests/OrdersDraftUpdateReq.d.ts +1 -0
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/requests/OrdersNewDraftReq.d.ts +1 -0
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/expanded/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/expanded/client/Client.js +7 -7
- package/dist/cjs/api/resources/shipping/resources/orders/client/requests/OrdersUpdateOffChrtReferenceIdReq.d.ts +1 -0
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.ts +6 -6
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.js +14 -14
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/Client.d.ts +6 -6
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/Client.js +14 -14
- package/dist/cjs/api/resources/tracking/resources/devices/client/requests/DeviceClientCreate1.d.ts +1 -0
- package/dist/cjs/api/resources/tracking/resources/devices/client/requests/DeviceClientUpdate1.d.ts +1 -0
- package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionClientCreate1.d.ts +1 -0
- package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionClientUpdate1.d.ts +1 -0
- package/dist/cjs/api/resources/tracking/resources/sharingSettings/client/Client.d.ts +4 -4
- package/dist/cjs/api/resources/tracking/resources/sharingSettings/client/Client.js +8 -8
- package/dist/cjs/api/resources/users/resources/directoryEntries/client/Client.d.ts +2 -1
- package/dist/cjs/api/resources/users/resources/directoryEntries/client/Client.js +6 -2
- package/dist/cjs/api/resources/users/resources/directoryEntries/client/requests/DirectoryEntriesListV1Request.d.ts +3 -0
- package/dist/cjs/api/types/CourierOrgProfile1.d.ts +1 -0
- package/dist/cjs/api/types/CreateConnectionReq.d.ts +1 -0
- package/dist/cjs/api/types/DeviceLimitedForList1.d.ts +1 -0
- package/dist/cjs/api/types/ForwarderOrgProfile1.d.ts +1 -0
- package/dist/cjs/api/types/LineItemGroup1.d.ts +1 -0
- package/dist/cjs/api/types/Order1.d.ts +1 -0
- package/dist/cjs/api/types/OrderDraftExpanded.d.ts +1 -0
- package/dist/cjs/api/types/OrderExpanded.d.ts +1 -0
- package/dist/cjs/api/types/OrdersDraftUpdateRes.d.ts +1 -0
- package/dist/cjs/api/types/OrdersUpdateOffChrtReferenceIdRes.d.ts +1 -0
- package/dist/cjs/api/types/OrgPublicData1.d.ts +1 -0
- package/dist/cjs/api/types/Session1.d.ts +1 -0
- package/dist/cjs/api/types/TaskGroup1.d.ts +1 -0
- package/dist/cjs/api/types/TaskGroupExpanded.d.ts +2 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.mjs +2 -2
- package/dist/esm/api/resources/orgs/client/Client.d.mts +3 -2
- package/dist/esm/api/resources/orgs/client/Client.mjs +7 -3
- package/dist/esm/api/resources/orgs/client/requests/OrgsListMembersV1Request.d.mts +4 -1
- package/dist/esm/api/resources/orgs/resources/connections/client/Client.d.mts +6 -3
- package/dist/esm/api/resources/orgs/resources/connections/client/Client.mjs +18 -6
- package/dist/esm/api/resources/orgs/resources/connections/client/requests/ConnectionsListCouriersV1Request.d.mts +3 -0
- package/dist/esm/api/resources/orgs/resources/connections/client/requests/ConnectionsListForwardersV1Request.d.mts +3 -0
- package/dist/esm/api/resources/orgs/resources/connections/client/requests/ConnectionsListShippersV1Request.d.mts +3 -0
- package/dist/esm/api/resources/orgs/resources/offChrtShipperOrg/client/Client.d.mts +2 -1
- package/dist/esm/api/resources/orgs/resources/offChrtShipperOrg/client/Client.mjs +6 -2
- package/dist/esm/api/resources/orgs/resources/offChrtShipperOrg/client/requests/OffChrtShipperOrgListV1Request.d.mts +3 -0
- package/dist/esm/api/resources/orgs/resources/orgProfiles/client/requests/CourierOrgProfileClientCreate1.d.mts +1 -0
- package/dist/esm/api/resources/orgs/resources/orgProfiles/client/requests/ForwarderOrgProfileClientCreate1.d.mts +1 -0
- package/dist/esm/api/resources/orgs/resources/publicData/client/requests/CreateOrgPublicDataReq.d.mts +1 -0
- package/dist/esm/api/resources/orgs/resources/publicData/client/requests/UpdateOrgPublicDataReq.d.mts +1 -0
- package/dist/esm/api/resources/shipping/resources/docs/client/requests/GenerateShippingDocReq.d.mts +2 -2
- package/dist/esm/api/resources/shipping/resources/drivers/client/Client.d.mts +4 -1
- package/dist/esm/api/resources/shipping/resources/drivers/client/Client.mjs +14 -2
- package/dist/esm/api/resources/shipping/resources/drivers/client/requests/DriversListOrgMembersAndDriversV1Request.d.mts +9 -0
- package/dist/esm/api/resources/shipping/resources/orderDrafts/client/requests/OrdersDraftUpdateReq.d.mts +1 -0
- package/dist/esm/api/resources/shipping/resources/orderDrafts/client/requests/OrdersNewDraftReq.d.mts +1 -0
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/expanded/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/expanded/client/Client.mjs +7 -7
- package/dist/esm/api/resources/shipping/resources/orders/client/requests/OrdersUpdateOffChrtReferenceIdReq.d.mts +1 -0
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.mts +6 -6
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.mjs +14 -14
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/Client.d.mts +6 -6
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/Client.mjs +14 -14
- package/dist/esm/api/resources/tracking/resources/devices/client/requests/DeviceClientCreate1.d.mts +1 -0
- package/dist/esm/api/resources/tracking/resources/devices/client/requests/DeviceClientUpdate1.d.mts +1 -0
- package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionClientCreate1.d.mts +1 -0
- package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionClientUpdate1.d.mts +1 -0
- package/dist/esm/api/resources/tracking/resources/sharingSettings/client/Client.d.mts +4 -4
- package/dist/esm/api/resources/tracking/resources/sharingSettings/client/Client.mjs +8 -8
- package/dist/esm/api/resources/users/resources/directoryEntries/client/Client.d.mts +2 -1
- package/dist/esm/api/resources/users/resources/directoryEntries/client/Client.mjs +6 -2
- package/dist/esm/api/resources/users/resources/directoryEntries/client/requests/DirectoryEntriesListV1Request.d.mts +3 -0
- package/dist/esm/api/types/CourierOrgProfile1.d.mts +1 -0
- package/dist/esm/api/types/CreateConnectionReq.d.mts +1 -0
- package/dist/esm/api/types/DeviceLimitedForList1.d.mts +1 -0
- package/dist/esm/api/types/ForwarderOrgProfile1.d.mts +1 -0
- package/dist/esm/api/types/LineItemGroup1.d.mts +1 -0
- package/dist/esm/api/types/Order1.d.mts +1 -0
- package/dist/esm/api/types/OrderDraftExpanded.d.mts +1 -0
- package/dist/esm/api/types/OrderExpanded.d.mts +1 -0
- package/dist/esm/api/types/OrdersDraftUpdateRes.d.mts +1 -0
- package/dist/esm/api/types/OrdersUpdateOffChrtReferenceIdRes.d.mts +1 -0
- package/dist/esm/api/types/OrgPublicData1.d.mts +1 -0
- package/dist/esm/api/types/Session1.d.mts +1 -0
- package/dist/esm/api/types/TaskGroup1.d.mts +1 -0
- package/dist/esm/api/types/TaskGroupExpanded.d.mts +2 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +36 -27
package/dist/cjs/Client.js
CHANGED
|
@@ -53,8 +53,8 @@ class ChrtClient {
|
|
|
53
53
|
this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
|
|
54
54
|
"X-Fern-Language": "JavaScript",
|
|
55
55
|
"X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
|
|
56
|
-
"X-Fern-SDK-Version": "1.
|
|
57
|
-
"User-Agent": "@chrt-inc/typescript-sdk/1.
|
|
56
|
+
"X-Fern-SDK-Version": "1.576.0",
|
|
57
|
+
"User-Agent": "@chrt-inc/typescript-sdk/1.576.0",
|
|
58
58
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
59
59
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
60
60
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -59,7 +59,7 @@ export declare class Orgs {
|
|
|
59
59
|
getInfoV1(requestOptions?: Orgs.RequestOptions): core.HttpResponsePromise<Chrt.OrgInfoResponse>;
|
|
60
60
|
private __getInfoV1;
|
|
61
61
|
/**
|
|
62
|
-
* Lists all members of the caller's organization with their roles and details. | () -> (OrgMemberListRes)
|
|
62
|
+
* Lists all members of the caller's organization with their roles and details. Supports search by name, filtering by role, sorting, and pagination. | () -> (OrgMemberListRes)
|
|
63
63
|
*
|
|
64
64
|
* @param {Chrt.OrgsListMembersV1Request} request
|
|
65
65
|
* @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -71,7 +71,8 @@ export declare class Orgs {
|
|
|
71
71
|
* sort_by: "first_name",
|
|
72
72
|
* sort_order: "asc",
|
|
73
73
|
* page: 1,
|
|
74
|
-
* page_size: 1
|
|
74
|
+
* page_size: 1,
|
|
75
|
+
* search: "search"
|
|
75
76
|
* })
|
|
76
77
|
*/
|
|
77
78
|
listMembersV1(request?: Chrt.OrgsListMembersV1Request, requestOptions?: Orgs.RequestOptions): core.HttpResponsePromise<Chrt.OrgMemberListRes>;
|
|
@@ -137,7 +137,7 @@ class Orgs {
|
|
|
137
137
|
});
|
|
138
138
|
}
|
|
139
139
|
/**
|
|
140
|
-
* Lists all members of the caller's organization with their roles and details. | () -> (OrgMemberListRes)
|
|
140
|
+
* Lists all members of the caller's organization with their roles and details. Supports search by name, filtering by role, sorting, and pagination. | () -> (OrgMemberListRes)
|
|
141
141
|
*
|
|
142
142
|
* @param {Chrt.OrgsListMembersV1Request} request
|
|
143
143
|
* @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -149,7 +149,8 @@ class Orgs {
|
|
|
149
149
|
* sort_by: "first_name",
|
|
150
150
|
* sort_order: "asc",
|
|
151
151
|
* page: 1,
|
|
152
|
-
* page_size: 1
|
|
152
|
+
* page_size: 1,
|
|
153
|
+
* search: "search"
|
|
153
154
|
* })
|
|
154
155
|
*/
|
|
155
156
|
listMembersV1(request = {}, requestOptions) {
|
|
@@ -158,7 +159,7 @@ class Orgs {
|
|
|
158
159
|
__listMembersV1() {
|
|
159
160
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
160
161
|
var _a, _b, _c, _d, _e, _f;
|
|
161
|
-
const { filter_role: filterRole, sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize } = request;
|
|
162
|
+
const { filter_role: filterRole, sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, } = request;
|
|
162
163
|
const _queryParams = {};
|
|
163
164
|
if (filterRole !== undefined) {
|
|
164
165
|
if (Array.isArray(filterRole)) {
|
|
@@ -180,6 +181,9 @@ class Orgs {
|
|
|
180
181
|
if (pageSize !== undefined) {
|
|
181
182
|
_queryParams["page_size"] = (_b = pageSize === null || pageSize === void 0 ? void 0 : pageSize.toString()) !== null && _b !== void 0 ? _b : null;
|
|
182
183
|
}
|
|
184
|
+
if (search !== undefined) {
|
|
185
|
+
_queryParams["search"] = search;
|
|
186
|
+
}
|
|
183
187
|
let _headers = (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
184
188
|
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
185
189
|
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ChrtEnvironment.Local, "orgs/members/list/v1"),
|
|
@@ -8,7 +8,8 @@ import * as Chrt from "../../../../index.js";
|
|
|
8
8
|
* sort_by: "first_name",
|
|
9
9
|
* sort_order: "asc",
|
|
10
10
|
* page: 1,
|
|
11
|
-
* page_size: 1
|
|
11
|
+
* page_size: 1,
|
|
12
|
+
* search: "search"
|
|
12
13
|
* }
|
|
13
14
|
*/
|
|
14
15
|
export interface OrgsListMembersV1Request {
|
|
@@ -20,4 +21,6 @@ export interface OrgsListMembersV1Request {
|
|
|
20
21
|
sort_order?: Chrt.SortOrderEnum | null;
|
|
21
22
|
page?: number | null;
|
|
22
23
|
page_size?: number | null;
|
|
24
|
+
/** Search by first or last name */
|
|
25
|
+
search?: string | null;
|
|
23
26
|
}
|
|
@@ -31,7 +31,7 @@ export declare class Connections {
|
|
|
31
31
|
protected readonly _options: Connections.Options;
|
|
32
32
|
constructor(_options?: Connections.Options);
|
|
33
33
|
/**
|
|
34
|
-
* Lists shipper organizations based on the caller's organization type
|
|
34
|
+
* Lists shipper organizations based on the caller's organization type with optional search by company name or handle. | () -> (ShipperConnectionListRes)
|
|
35
35
|
*
|
|
36
36
|
* @param {Chrt.orgs.ConnectionsListShippersV1Request} request
|
|
37
37
|
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -40,6 +40,7 @@ export declare class Connections {
|
|
|
40
40
|
*
|
|
41
41
|
* @example
|
|
42
42
|
* await client.orgs.connections.listShippersV1({
|
|
43
|
+
* search: "search",
|
|
43
44
|
* page: 1,
|
|
44
45
|
* page_size: 1
|
|
45
46
|
* })
|
|
@@ -47,7 +48,7 @@ export declare class Connections {
|
|
|
47
48
|
listShippersV1(request?: Chrt.orgs.ConnectionsListShippersV1Request, requestOptions?: Connections.RequestOptions): core.HttpResponsePromise<Chrt.ShipperConnectionListRes>;
|
|
48
49
|
private __listShippersV1;
|
|
49
50
|
/**
|
|
50
|
-
* Lists courier organizations based on the caller's organization type
|
|
51
|
+
* Lists courier organizations based on the caller's organization type with optional search by company name or handle. | () -> (CourierConnectionListRes)
|
|
51
52
|
*
|
|
52
53
|
* @param {Chrt.orgs.ConnectionsListCouriersV1Request} request
|
|
53
54
|
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -56,6 +57,7 @@ export declare class Connections {
|
|
|
56
57
|
*
|
|
57
58
|
* @example
|
|
58
59
|
* await client.orgs.connections.listCouriersV1({
|
|
60
|
+
* search: "search",
|
|
59
61
|
* page: 1,
|
|
60
62
|
* page_size: 1
|
|
61
63
|
* })
|
|
@@ -63,7 +65,7 @@ export declare class Connections {
|
|
|
63
65
|
listCouriersV1(request?: Chrt.orgs.ConnectionsListCouriersV1Request, requestOptions?: Connections.RequestOptions): core.HttpResponsePromise<Chrt.CourierConnectionListRes>;
|
|
64
66
|
private __listCouriersV1;
|
|
65
67
|
/**
|
|
66
|
-
* Lists forwarder organizations based on the caller's organization type
|
|
68
|
+
* Lists forwarder organizations based on the caller's organization type with optional search by company name or handle. | () -> (ForwarderConnectionListRes)
|
|
67
69
|
*
|
|
68
70
|
* @param {Chrt.orgs.ConnectionsListForwardersV1Request} request
|
|
69
71
|
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -72,6 +74,7 @@ export declare class Connections {
|
|
|
72
74
|
*
|
|
73
75
|
* @example
|
|
74
76
|
* await client.orgs.connections.listForwardersV1({
|
|
77
|
+
* search: "search",
|
|
75
78
|
* page: 1,
|
|
76
79
|
* page_size: 1
|
|
77
80
|
* })
|
|
@@ -56,7 +56,7 @@ class Connections {
|
|
|
56
56
|
this._options = _options;
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
|
-
* Lists shipper organizations based on the caller's organization type
|
|
59
|
+
* Lists shipper organizations based on the caller's organization type with optional search by company name or handle. | () -> (ShipperConnectionListRes)
|
|
60
60
|
*
|
|
61
61
|
* @param {Chrt.orgs.ConnectionsListShippersV1Request} request
|
|
62
62
|
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -65,6 +65,7 @@ class Connections {
|
|
|
65
65
|
*
|
|
66
66
|
* @example
|
|
67
67
|
* await client.orgs.connections.listShippersV1({
|
|
68
|
+
* search: "search",
|
|
68
69
|
* page: 1,
|
|
69
70
|
* page_size: 1
|
|
70
71
|
* })
|
|
@@ -75,8 +76,11 @@ class Connections {
|
|
|
75
76
|
__listShippersV1() {
|
|
76
77
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
77
78
|
var _a, _b, _c, _d, _e, _f;
|
|
78
|
-
const { page, page_size: pageSize } = request;
|
|
79
|
+
const { search, page, page_size: pageSize } = request;
|
|
79
80
|
const _queryParams = {};
|
|
81
|
+
if (search !== undefined) {
|
|
82
|
+
_queryParams["search"] = search;
|
|
83
|
+
}
|
|
80
84
|
if (page !== undefined) {
|
|
81
85
|
_queryParams["page"] = (_a = page === null || page === void 0 ? void 0 : page.toString()) !== null && _a !== void 0 ? _a : null;
|
|
82
86
|
}
|
|
@@ -126,7 +130,7 @@ class Connections {
|
|
|
126
130
|
});
|
|
127
131
|
}
|
|
128
132
|
/**
|
|
129
|
-
* Lists courier organizations based on the caller's organization type
|
|
133
|
+
* Lists courier organizations based on the caller's organization type with optional search by company name or handle. | () -> (CourierConnectionListRes)
|
|
130
134
|
*
|
|
131
135
|
* @param {Chrt.orgs.ConnectionsListCouriersV1Request} request
|
|
132
136
|
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -135,6 +139,7 @@ class Connections {
|
|
|
135
139
|
*
|
|
136
140
|
* @example
|
|
137
141
|
* await client.orgs.connections.listCouriersV1({
|
|
142
|
+
* search: "search",
|
|
138
143
|
* page: 1,
|
|
139
144
|
* page_size: 1
|
|
140
145
|
* })
|
|
@@ -145,8 +150,11 @@ class Connections {
|
|
|
145
150
|
__listCouriersV1() {
|
|
146
151
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
147
152
|
var _a, _b, _c, _d, _e, _f;
|
|
148
|
-
const { page, page_size: pageSize } = request;
|
|
153
|
+
const { search, page, page_size: pageSize } = request;
|
|
149
154
|
const _queryParams = {};
|
|
155
|
+
if (search !== undefined) {
|
|
156
|
+
_queryParams["search"] = search;
|
|
157
|
+
}
|
|
150
158
|
if (page !== undefined) {
|
|
151
159
|
_queryParams["page"] = (_a = page === null || page === void 0 ? void 0 : page.toString()) !== null && _a !== void 0 ? _a : null;
|
|
152
160
|
}
|
|
@@ -196,7 +204,7 @@ class Connections {
|
|
|
196
204
|
});
|
|
197
205
|
}
|
|
198
206
|
/**
|
|
199
|
-
* Lists forwarder organizations based on the caller's organization type
|
|
207
|
+
* Lists forwarder organizations based on the caller's organization type with optional search by company name or handle. | () -> (ForwarderConnectionListRes)
|
|
200
208
|
*
|
|
201
209
|
* @param {Chrt.orgs.ConnectionsListForwardersV1Request} request
|
|
202
210
|
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -205,6 +213,7 @@ class Connections {
|
|
|
205
213
|
*
|
|
206
214
|
* @example
|
|
207
215
|
* await client.orgs.connections.listForwardersV1({
|
|
216
|
+
* search: "search",
|
|
208
217
|
* page: 1,
|
|
209
218
|
* page_size: 1
|
|
210
219
|
* })
|
|
@@ -215,8 +224,11 @@ class Connections {
|
|
|
215
224
|
__listForwardersV1() {
|
|
216
225
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
217
226
|
var _a, _b, _c, _d, _e, _f;
|
|
218
|
-
const { page, page_size: pageSize } = request;
|
|
227
|
+
const { search, page, page_size: pageSize } = request;
|
|
219
228
|
const _queryParams = {};
|
|
229
|
+
if (search !== undefined) {
|
|
230
|
+
_queryParams["search"] = search;
|
|
231
|
+
}
|
|
220
232
|
if (page !== undefined) {
|
|
221
233
|
_queryParams["page"] = (_a = page === null || page === void 0 ? void 0 : page.toString()) !== null && _a !== void 0 ? _a : null;
|
|
222
234
|
}
|
|
@@ -4,11 +4,14 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* @example
|
|
6
6
|
* {
|
|
7
|
+
* search: "search",
|
|
7
8
|
* page: 1,
|
|
8
9
|
* page_size: 1
|
|
9
10
|
* }
|
|
10
11
|
*/
|
|
11
12
|
export interface ConnectionsListCouriersV1Request {
|
|
13
|
+
/** Search by company name or handle */
|
|
14
|
+
search?: string | null;
|
|
12
15
|
page?: number | null;
|
|
13
16
|
page_size?: number | null;
|
|
14
17
|
}
|
|
@@ -4,11 +4,14 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* @example
|
|
6
6
|
* {
|
|
7
|
+
* search: "search",
|
|
7
8
|
* page: 1,
|
|
8
9
|
* page_size: 1
|
|
9
10
|
* }
|
|
10
11
|
*/
|
|
11
12
|
export interface ConnectionsListForwardersV1Request {
|
|
13
|
+
/** Search by company name or handle */
|
|
14
|
+
search?: string | null;
|
|
12
15
|
page?: number | null;
|
|
13
16
|
page_size?: number | null;
|
|
14
17
|
}
|
|
@@ -4,11 +4,14 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* @example
|
|
6
6
|
* {
|
|
7
|
+
* search: "search",
|
|
7
8
|
* page: 1,
|
|
8
9
|
* page_size: 1
|
|
9
10
|
* }
|
|
10
11
|
*/
|
|
11
12
|
export interface ConnectionsListShippersV1Request {
|
|
13
|
+
/** Search by company name or handle */
|
|
14
|
+
search?: string | null;
|
|
12
15
|
page?: number | null;
|
|
13
16
|
page_size?: number | null;
|
|
14
17
|
}
|
|
@@ -47,7 +47,7 @@ export declare class OffChrtShipperOrg {
|
|
|
47
47
|
createV1(request: Chrt.orgs.OffChrtShipperOrgClientCreate1, requestOptions?: OffChrtShipperOrg.RequestOptions): core.HttpResponsePromise<string>;
|
|
48
48
|
private __createV1;
|
|
49
49
|
/**
|
|
50
|
-
* Lists all off-platform shipper organizations created by the caller's organization. | () -> (OffChrtShipperOrgListRes)
|
|
50
|
+
* Lists all off-platform shipper organizations created by the caller's organization with optional search by company name. | () -> (OffChrtShipperOrgListRes)
|
|
51
51
|
*
|
|
52
52
|
* @param {Chrt.orgs.OffChrtShipperOrgListV1Request} request
|
|
53
53
|
* @param {OffChrtShipperOrg.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -56,6 +56,7 @@ export declare class OffChrtShipperOrg {
|
|
|
56
56
|
*
|
|
57
57
|
* @example
|
|
58
58
|
* await client.orgs.offChrtShipperOrg.listV1({
|
|
59
|
+
* search: "search",
|
|
59
60
|
* page: 1,
|
|
60
61
|
* page_size: 1
|
|
61
62
|
* })
|
|
@@ -121,7 +121,7 @@ class OffChrtShipperOrg {
|
|
|
121
121
|
});
|
|
122
122
|
}
|
|
123
123
|
/**
|
|
124
|
-
* Lists all off-platform shipper organizations created by the caller's organization. | () -> (OffChrtShipperOrgListRes)
|
|
124
|
+
* Lists all off-platform shipper organizations created by the caller's organization with optional search by company name. | () -> (OffChrtShipperOrgListRes)
|
|
125
125
|
*
|
|
126
126
|
* @param {Chrt.orgs.OffChrtShipperOrgListV1Request} request
|
|
127
127
|
* @param {OffChrtShipperOrg.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -130,6 +130,7 @@ class OffChrtShipperOrg {
|
|
|
130
130
|
*
|
|
131
131
|
* @example
|
|
132
132
|
* await client.orgs.offChrtShipperOrg.listV1({
|
|
133
|
+
* search: "search",
|
|
133
134
|
* page: 1,
|
|
134
135
|
* page_size: 1
|
|
135
136
|
* })
|
|
@@ -140,8 +141,11 @@ class OffChrtShipperOrg {
|
|
|
140
141
|
__listV1() {
|
|
141
142
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
142
143
|
var _a, _b, _c, _d, _e, _f;
|
|
143
|
-
const { page, page_size: pageSize } = request;
|
|
144
|
+
const { search, page, page_size: pageSize } = request;
|
|
144
145
|
const _queryParams = {};
|
|
146
|
+
if (search !== undefined) {
|
|
147
|
+
_queryParams["search"] = search;
|
|
148
|
+
}
|
|
145
149
|
if (page !== undefined) {
|
|
146
150
|
_queryParams["page"] = (_a = page === null || page === void 0 ? void 0 : page.toString()) !== null && _a !== void 0 ? _a : null;
|
|
147
151
|
}
|
|
@@ -4,11 +4,14 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* @example
|
|
6
6
|
* {
|
|
7
|
+
* search: "search",
|
|
7
8
|
* page: 1,
|
|
8
9
|
* page_size: 1
|
|
9
10
|
* }
|
|
10
11
|
*/
|
|
11
12
|
export interface OffChrtShipperOrgListV1Request {
|
|
13
|
+
/** Search by company name */
|
|
14
|
+
search?: string | null;
|
|
12
15
|
page?: number | null;
|
|
13
16
|
page_size?: number | null;
|
|
14
17
|
}
|
|
@@ -14,5 +14,6 @@ export interface CourierOrgProfileClientCreate1 {
|
|
|
14
14
|
schema_version: number;
|
|
15
15
|
description: string;
|
|
16
16
|
email_address_primary: string;
|
|
17
|
+
/** E.164 formatted phone number (e.g. +16505551234). Assumes US country code if none provided. */
|
|
17
18
|
phone_number_primary: string;
|
|
18
19
|
}
|
|
@@ -14,5 +14,6 @@ export interface ForwarderOrgProfileClientCreate1 {
|
|
|
14
14
|
schema_version: number;
|
|
15
15
|
description: string;
|
|
16
16
|
email_address_primary: string;
|
|
17
|
+
/** E.164 formatted phone number (e.g. +16505551234). Assumes US country code if none provided. */
|
|
17
18
|
phone_number_primary: string;
|
|
18
19
|
}
|
package/dist/cjs/api/resources/shipping/resources/docs/client/requests/GenerateShippingDocReq.d.ts
CHANGED
|
@@ -5,11 +5,11 @@ import * as Chrt from "../../../../../../index.js";
|
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
8
|
-
*
|
|
8
|
+
* order_ref: "order_ref",
|
|
9
9
|
* template: "pod"
|
|
10
10
|
* }
|
|
11
11
|
*/
|
|
12
12
|
export interface GenerateShippingDocReq {
|
|
13
|
-
|
|
13
|
+
order_ref: string;
|
|
14
14
|
template: Chrt.ShippingDocTemplateEnum;
|
|
15
15
|
}
|
|
@@ -54,7 +54,7 @@ export declare class Drivers {
|
|
|
54
54
|
getByDriverIdV1(driverId: string, requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<Chrt.Driver1>;
|
|
55
55
|
private __getByDriverIdV1;
|
|
56
56
|
/**
|
|
57
|
-
* Lists all organization members paired with their driver information if they are drivers.
|
|
57
|
+
* Lists all organization members paired with their driver information if they are drivers. Supports search by name, filtering, sorting, and pagination. | () -> (OrgMembersAndDriversListRes)
|
|
58
58
|
*
|
|
59
59
|
* @param {Chrt.shipping.DriversListOrgMembersAndDriversV1Request} request
|
|
60
60
|
* @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -63,8 +63,11 @@ export declare class Drivers {
|
|
|
63
63
|
*
|
|
64
64
|
* @example
|
|
65
65
|
* await client.shipping.drivers.listOrgMembersAndDriversV1({
|
|
66
|
+
* search: "search",
|
|
66
67
|
* filter_available_according_to_driver: true,
|
|
67
68
|
* filter_available_according_to_operators: true,
|
|
69
|
+
* sort_by: "first_name",
|
|
70
|
+
* sort_order: "asc",
|
|
68
71
|
* page: 1,
|
|
69
72
|
* page_size: 1
|
|
70
73
|
* })
|
|
@@ -177,7 +177,7 @@ class Drivers {
|
|
|
177
177
|
});
|
|
178
178
|
}
|
|
179
179
|
/**
|
|
180
|
-
* Lists all organization members paired with their driver information if they are drivers.
|
|
180
|
+
* Lists all organization members paired with their driver information if they are drivers. Supports search by name, filtering, sorting, and pagination. | () -> (OrgMembersAndDriversListRes)
|
|
181
181
|
*
|
|
182
182
|
* @param {Chrt.shipping.DriversListOrgMembersAndDriversV1Request} request
|
|
183
183
|
* @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -186,8 +186,11 @@ class Drivers {
|
|
|
186
186
|
*
|
|
187
187
|
* @example
|
|
188
188
|
* await client.shipping.drivers.listOrgMembersAndDriversV1({
|
|
189
|
+
* search: "search",
|
|
189
190
|
* filter_available_according_to_driver: true,
|
|
190
191
|
* filter_available_according_to_operators: true,
|
|
192
|
+
* sort_by: "first_name",
|
|
193
|
+
* sort_order: "asc",
|
|
191
194
|
* page: 1,
|
|
192
195
|
* page_size: 1
|
|
193
196
|
* })
|
|
@@ -198,8 +201,11 @@ class Drivers {
|
|
|
198
201
|
__listOrgMembersAndDriversV1() {
|
|
199
202
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
200
203
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
201
|
-
const { filter_role: filterRole, filter_available_according_to_driver: filterAvailableAccordingToDriver, filter_available_according_to_operators: filterAvailableAccordingToOperators, page, page_size: pageSize, } = request;
|
|
204
|
+
const { search, filter_role: filterRole, filter_available_according_to_driver: filterAvailableAccordingToDriver, filter_available_according_to_operators: filterAvailableAccordingToOperators, sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, } = request;
|
|
202
205
|
const _queryParams = {};
|
|
206
|
+
if (search !== undefined) {
|
|
207
|
+
_queryParams["search"] = search;
|
|
208
|
+
}
|
|
203
209
|
if (filterRole !== undefined) {
|
|
204
210
|
if (Array.isArray(filterRole)) {
|
|
205
211
|
_queryParams["filter_role"] = filterRole.map((item) => item);
|
|
@@ -215,6 +221,12 @@ class Drivers {
|
|
|
215
221
|
_queryParams["filter_available_according_to_operators"] =
|
|
216
222
|
(_b = filterAvailableAccordingToOperators === null || filterAvailableAccordingToOperators === void 0 ? void 0 : filterAvailableAccordingToOperators.toString()) !== null && _b !== void 0 ? _b : null;
|
|
217
223
|
}
|
|
224
|
+
if (sortBy !== undefined) {
|
|
225
|
+
_queryParams["sort_by"] = sortBy;
|
|
226
|
+
}
|
|
227
|
+
if (sortOrder !== undefined) {
|
|
228
|
+
_queryParams["sort_order"] = sortOrder;
|
|
229
|
+
}
|
|
218
230
|
if (page !== undefined) {
|
|
219
231
|
_queryParams["page"] = (_c = page === null || page === void 0 ? void 0 : page.toString()) !== null && _c !== void 0 ? _c : null;
|
|
220
232
|
}
|
|
@@ -5,19 +5,28 @@ import * as Chrt from "../../../../../../index.js";
|
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
8
|
+
* search: "search",
|
|
8
9
|
* filter_available_according_to_driver: true,
|
|
9
10
|
* filter_available_according_to_operators: true,
|
|
11
|
+
* sort_by: "first_name",
|
|
12
|
+
* sort_order: "asc",
|
|
10
13
|
* page: 1,
|
|
11
14
|
* page_size: 1
|
|
12
15
|
* }
|
|
13
16
|
*/
|
|
14
17
|
export interface DriversListOrgMembersAndDriversV1Request {
|
|
18
|
+
/** Search by first or last name */
|
|
19
|
+
search?: string | null;
|
|
15
20
|
/** Filter by organization role(s) */
|
|
16
21
|
filter_role?: (Chrt.OrgRoleEnum | null) | (Chrt.OrgRoleEnum | null)[];
|
|
17
22
|
/** Filter by driver's self-reported availability. */
|
|
18
23
|
filter_available_according_to_driver?: boolean | null;
|
|
19
24
|
/** Filter by operator-set availability. */
|
|
20
25
|
filter_available_according_to_operators?: boolean | null;
|
|
26
|
+
/** Field to sort by */
|
|
27
|
+
sort_by?: Chrt.OrgMemberSortByEnum | null;
|
|
28
|
+
/** Sort order (asc or desc) */
|
|
29
|
+
sort_order?: Chrt.SortOrderEnum | null;
|
|
21
30
|
page?: number | null;
|
|
22
31
|
page_size?: number | null;
|
|
23
32
|
}
|
|
@@ -14,6 +14,7 @@ export interface OrdersDraftUpdateReq {
|
|
|
14
14
|
shipper_org_id__set_to_None?: boolean;
|
|
15
15
|
off_chrt_shipper_org_id?: string | null;
|
|
16
16
|
off_chrt_shipper_org_id__set_to_None?: boolean;
|
|
17
|
+
/** Must be a URL-safe string of 1-64 characters. Allowed characters: A-Z, a-z, 0-9, '.', '_', '~', '-' (RFC 3986 unreserved). */
|
|
17
18
|
off_chrt_reference_id?: string | null;
|
|
18
19
|
off_chrt_reference_id__set_to_None?: boolean;
|
|
19
20
|
}
|
package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/requests/OrdersNewDraftReq.d.ts
CHANGED
|
@@ -11,5 +11,6 @@ export interface OrdersNewDraftReq {
|
|
|
11
11
|
/** Must be a string starting with `org_` */
|
|
12
12
|
shipper_org_id?: string | null;
|
|
13
13
|
off_chrt_shipper_org_id?: string | null;
|
|
14
|
+
/** Must be a URL-safe string of 1-64 characters. Allowed characters: A-Z, a-z, 0-9, '.', '_', '~', '-' (RFC 3986 unreserved). */
|
|
14
15
|
off_chrt_reference_id?: string | null;
|
|
15
16
|
}
|
package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/expanded/client/Client.d.ts
CHANGED
|
@@ -33,16 +33,16 @@ export declare class Expanded {
|
|
|
33
33
|
/**
|
|
34
34
|
* Fetches a single draft order with optional expanded related data. Any user in the org (with operator+ role) can access it. | (OrderAndTaskGroupExpandedReq) -> (OrderDraftExpanded)
|
|
35
35
|
*
|
|
36
|
-
* @param {string}
|
|
36
|
+
* @param {string} orderRef - Order ID, short ID, or off-chrt reference ID
|
|
37
37
|
* @param {Chrt.OrderAndTaskGroupExpandedReq} request
|
|
38
38
|
* @param {Expanded.RequestOptions} requestOptions - Request-specific configuration.
|
|
39
39
|
*
|
|
40
40
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
41
41
|
*
|
|
42
42
|
* @example
|
|
43
|
-
* await client.shipping.orderDrafts.expanded.retrieveV1("
|
|
43
|
+
* await client.shipping.orderDrafts.expanded.retrieveV1("order_ref", {})
|
|
44
44
|
*/
|
|
45
|
-
retrieveV1(
|
|
45
|
+
retrieveV1(orderRef: string, request: Chrt.OrderAndTaskGroupExpandedReq, requestOptions?: Expanded.RequestOptions): core.HttpResponsePromise<Chrt.OrderDraftExpanded>;
|
|
46
46
|
private __retrieveV1;
|
|
47
47
|
/**
|
|
48
48
|
* Lists expanded draft orders for the organization with filtering, sorting, and pagination. | (OrderAndTaskGroupExpandedReq) -> (OrderDraftExpandedListRes)
|
package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/expanded/client/Client.js
CHANGED
|
@@ -58,24 +58,24 @@ class Expanded {
|
|
|
58
58
|
/**
|
|
59
59
|
* Fetches a single draft order with optional expanded related data. Any user in the org (with operator+ role) can access it. | (OrderAndTaskGroupExpandedReq) -> (OrderDraftExpanded)
|
|
60
60
|
*
|
|
61
|
-
* @param {string}
|
|
61
|
+
* @param {string} orderRef - Order ID, short ID, or off-chrt reference ID
|
|
62
62
|
* @param {Chrt.OrderAndTaskGroupExpandedReq} request
|
|
63
63
|
* @param {Expanded.RequestOptions} requestOptions - Request-specific configuration.
|
|
64
64
|
*
|
|
65
65
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
66
66
|
*
|
|
67
67
|
* @example
|
|
68
|
-
* await client.shipping.orderDrafts.expanded.retrieveV1("
|
|
68
|
+
* await client.shipping.orderDrafts.expanded.retrieveV1("order_ref", {})
|
|
69
69
|
*/
|
|
70
|
-
retrieveV1(
|
|
71
|
-
return core.HttpResponsePromise.fromPromise(this.__retrieveV1(
|
|
70
|
+
retrieveV1(orderRef, request, requestOptions) {
|
|
71
|
+
return core.HttpResponsePromise.fromPromise(this.__retrieveV1(orderRef, request, requestOptions));
|
|
72
72
|
}
|
|
73
|
-
__retrieveV1(
|
|
73
|
+
__retrieveV1(orderRef, request, requestOptions) {
|
|
74
74
|
return __awaiter(this, void 0, void 0, function* () {
|
|
75
75
|
var _a, _b, _c, _d;
|
|
76
76
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
77
77
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
78
|
-
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/order_drafts/expanded/retrieve/v1/${encodeURIComponent(
|
|
78
|
+
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/order_drafts/expanded/retrieve/v1/${encodeURIComponent(orderRef)}`),
|
|
79
79
|
method: "POST",
|
|
80
80
|
headers: _headers,
|
|
81
81
|
contentType: "application/json",
|
|
@@ -109,7 +109,7 @@ class Expanded {
|
|
|
109
109
|
rawResponse: _response.rawResponse,
|
|
110
110
|
});
|
|
111
111
|
case "timeout":
|
|
112
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /shipping/order_drafts/expanded/retrieve/v1/{
|
|
112
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /shipping/order_drafts/expanded/retrieve/v1/{order_ref}.");
|
|
113
113
|
case "unknown":
|
|
114
114
|
throw new errors.ChrtError({
|
|
115
115
|
message: _response.error.errorMessage,
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
* {}
|
|
7
7
|
*/
|
|
8
8
|
export interface OrdersUpdateOffChrtReferenceIdReq {
|
|
9
|
+
/** Must be a URL-safe string of 1-64 characters. Allowed characters: A-Z, a-z, 0-9, '.', '_', '~', '-' (RFC 3986 unreserved). */
|
|
9
10
|
off_chrt_reference_id?: string | null;
|
|
10
11
|
off_chrt_reference_id__set_to_None?: boolean;
|
|
11
12
|
}
|
package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.ts
CHANGED
|
@@ -33,30 +33,30 @@ export declare class Expanded {
|
|
|
33
33
|
/**
|
|
34
34
|
* Retrieves an expanded order with optional related data for shipper operators. | authz_personas=[shipper_org_operators] | (OrderAndTaskGroupExpandedReq) -> (OrderExpanded)
|
|
35
35
|
*
|
|
36
|
-
* @param {string}
|
|
36
|
+
* @param {string} orderRef - Order ID, short ID, or off-chrt reference ID
|
|
37
37
|
* @param {Chrt.OrderAndTaskGroupExpandedReq} request
|
|
38
38
|
* @param {Expanded.RequestOptions} requestOptions - Request-specific configuration.
|
|
39
39
|
*
|
|
40
40
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
41
41
|
*
|
|
42
42
|
* @example
|
|
43
|
-
* await client.shipping.orders.expanded.forShipperOperatorsV1("
|
|
43
|
+
* await client.shipping.orders.expanded.forShipperOperatorsV1("order_ref", {})
|
|
44
44
|
*/
|
|
45
|
-
forShipperOperatorsV1(
|
|
45
|
+
forShipperOperatorsV1(orderRef: string, request: Chrt.OrderAndTaskGroupExpandedReq, requestOptions?: Expanded.RequestOptions): core.HttpResponsePromise<Chrt.OrderExpanded>;
|
|
46
46
|
private __forShipperOperatorsV1;
|
|
47
47
|
/**
|
|
48
48
|
* Retrieves an expanded order with optional related data for forwarder operators. | authz_personas=[forwarder_org_operators] | (OrderAndTaskGroupExpandedReq) -> (OrderExpanded)
|
|
49
49
|
*
|
|
50
|
-
* @param {string}
|
|
50
|
+
* @param {string} orderRef - Order ID, short ID, or off-chrt reference ID
|
|
51
51
|
* @param {Chrt.OrderAndTaskGroupExpandedReq} request
|
|
52
52
|
* @param {Expanded.RequestOptions} requestOptions - Request-specific configuration.
|
|
53
53
|
*
|
|
54
54
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
55
55
|
*
|
|
56
56
|
* @example
|
|
57
|
-
* await client.shipping.orders.expanded.forForwarderOperatorsV1("
|
|
57
|
+
* await client.shipping.orders.expanded.forForwarderOperatorsV1("order_ref", {})
|
|
58
58
|
*/
|
|
59
|
-
forForwarderOperatorsV1(
|
|
59
|
+
forForwarderOperatorsV1(orderRef: string, request: Chrt.OrderAndTaskGroupExpandedReq, requestOptions?: Expanded.RequestOptions): core.HttpResponsePromise<Chrt.OrderExpanded>;
|
|
60
60
|
private __forForwarderOperatorsV1;
|
|
61
61
|
/**
|
|
62
62
|
* Lists expanded orders for forwarder operators with filtering, sorting, pagination, and optional search. | authz: allowed_org_types=[forwarder], min_org_role=operator | (OrderAndTaskGroupExpandedReq) -> (OrdersExpandedListRes)
|