@chrt-inc/typescript-sdk 1.285.0 → 1.288.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/milestones/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/orders/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/orders/client/Client.js +6 -6
- package/dist/cjs/api/resources/orgs/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/payments/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/root/client/Client.d.ts +12 -12
- package/dist/cjs/api/resources/root/client/Client.js +24 -24
- package/dist/cjs/api/types/CreateConnectAccountRes.d.ts +6 -0
- package/dist/cjs/api/types/CreateConnectAccountRes.js +5 -0
- package/dist/cjs/api/types/TrackingCargoByDeviceDataPointMetadata1.d.ts +1 -0
- package/dist/cjs/api/types/TrackingCargoByDriverDataPointMetadata1.d.ts +1 -0
- package/dist/cjs/api/types/TrackingSessionByDeviceDataPointMetadata1.d.ts +1 -0
- package/dist/cjs/api/types/TrackingTaskGroupByDriverDataPointMetadata1.d.ts +1 -0
- package/dist/cjs/api/types/TrackingWebhookResponse.d.ts +7 -0
- package/dist/cjs/api/types/TrackingWebhookResponse.js +5 -0
- package/dist/cjs/api/types/index.d.ts +2 -0
- package/dist/cjs/api/types/index.js +2 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.mjs +2 -2
- package/dist/esm/api/resources/milestones/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/orders/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/orders/client/Client.mjs +6 -6
- package/dist/esm/api/resources/orgs/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/payments/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/root/client/Client.d.mts +12 -12
- package/dist/esm/api/resources/root/client/Client.mjs +24 -24
- package/dist/esm/api/types/CreateConnectAccountRes.d.mts +6 -0
- package/dist/esm/api/types/CreateConnectAccountRes.mjs +4 -0
- package/dist/esm/api/types/TrackingCargoByDeviceDataPointMetadata1.d.mts +1 -0
- package/dist/esm/api/types/TrackingCargoByDriverDataPointMetadata1.d.mts +1 -0
- package/dist/esm/api/types/TrackingSessionByDeviceDataPointMetadata1.d.mts +1 -0
- package/dist/esm/api/types/TrackingTaskGroupByDriverDataPointMetadata1.d.mts +1 -0
- package/dist/esm/api/types/TrackingWebhookResponse.d.mts +7 -0
- package/dist/esm/api/types/TrackingWebhookResponse.mjs +4 -0
- package/dist/esm/api/types/index.d.mts +2 -0
- package/dist/esm/api/types/index.mjs +2 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +13 -13
package/dist/cjs/Client.js
CHANGED
|
@@ -68,8 +68,8 @@ class ChrtClient {
|
|
|
68
68
|
this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
|
|
69
69
|
"X-Fern-Language": "JavaScript",
|
|
70
70
|
"X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
|
|
71
|
-
"X-Fern-SDK-Version": "1.
|
|
72
|
-
"User-Agent": "@chrt-inc/typescript-sdk/1.
|
|
71
|
+
"X-Fern-SDK-Version": "1.288.0",
|
|
72
|
+
"User-Agent": "@chrt-inc/typescript-sdk/1.288.0",
|
|
73
73
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
74
74
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
75
75
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -65,7 +65,7 @@ export declare class Milestones {
|
|
|
65
65
|
* type: "image"
|
|
66
66
|
* })
|
|
67
67
|
*/
|
|
68
|
-
addToTaskV1(request: Chrt.MilestoneAddToTaskReq, requestOptions?: Milestones.RequestOptions): core.HttpResponsePromise<
|
|
68
|
+
addToTaskV1(request: Chrt.MilestoneAddToTaskReq, requestOptions?: Milestones.RequestOptions): core.HttpResponsePromise<string>;
|
|
69
69
|
private __addToTaskV1;
|
|
70
70
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
71
71
|
}
|
|
@@ -68,7 +68,7 @@ export declare class Orders {
|
|
|
68
68
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
69
69
|
*
|
|
70
70
|
* @example
|
|
71
|
-
* await client.orders.
|
|
71
|
+
* await client.orders.createV1({
|
|
72
72
|
* order_client_create: {
|
|
73
73
|
* schema_version: 1
|
|
74
74
|
* },
|
|
@@ -88,8 +88,8 @@ export declare class Orders {
|
|
|
88
88
|
* transport_type: "ground_only"
|
|
89
89
|
* })
|
|
90
90
|
*/
|
|
91
|
-
|
|
92
|
-
private
|
|
91
|
+
createV1(request: Chrt.CreateOrderReq, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<Chrt.CreateOrderRes>;
|
|
92
|
+
private __createV1;
|
|
93
93
|
/**
|
|
94
94
|
* Lists all orders for the authenticated shipper organization.
|
|
95
95
|
*
|
|
@@ -187,7 +187,7 @@ class Orders {
|
|
|
187
187
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
188
188
|
*
|
|
189
189
|
* @example
|
|
190
|
-
* await client.orders.
|
|
190
|
+
* await client.orders.createV1({
|
|
191
191
|
* order_client_create: {
|
|
192
192
|
* schema_version: 1
|
|
193
193
|
* },
|
|
@@ -207,15 +207,15 @@ class Orders {
|
|
|
207
207
|
* transport_type: "ground_only"
|
|
208
208
|
* })
|
|
209
209
|
*/
|
|
210
|
-
|
|
211
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
210
|
+
createV1(request, requestOptions) {
|
|
211
|
+
return core.HttpResponsePromise.fromPromise(this.__createV1(request, requestOptions));
|
|
212
212
|
}
|
|
213
|
-
|
|
213
|
+
__createV1(request, requestOptions) {
|
|
214
214
|
return __awaiter(this, void 0, void 0, function* () {
|
|
215
215
|
var _a, _b, _c, _d;
|
|
216
216
|
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);
|
|
217
217
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
218
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "oort/orders/create"),
|
|
218
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "oort/orders/create/v1"),
|
|
219
219
|
method: "POST",
|
|
220
220
|
headers: _headers,
|
|
221
221
|
contentType: "application/json",
|
|
@@ -249,7 +249,7 @@ class Orders {
|
|
|
249
249
|
rawResponse: _response.rawResponse,
|
|
250
250
|
});
|
|
251
251
|
case "timeout":
|
|
252
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/orders/create.");
|
|
252
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/orders/create/v1.");
|
|
253
253
|
case "unknown":
|
|
254
254
|
throw new errors.ChrtError({
|
|
255
255
|
message: _response.error.errorMessage,
|
|
@@ -110,7 +110,7 @@ export declare class Orgs {
|
|
|
110
110
|
* company_name: "company_name"
|
|
111
111
|
* })
|
|
112
112
|
*/
|
|
113
|
-
createPublicDataV1(request: Chrt.CreateOrgPublicDataReq, requestOptions?: Orgs.RequestOptions): core.HttpResponsePromise<
|
|
113
|
+
createPublicDataV1(request: Chrt.CreateOrgPublicDataReq, requestOptions?: Orgs.RequestOptions): core.HttpResponsePromise<string>;
|
|
114
114
|
private __createPublicDataV1;
|
|
115
115
|
/**
|
|
116
116
|
* Updates the organization handle or company name for the authenticated organization.
|
|
@@ -63,7 +63,7 @@ export declare class Payments {
|
|
|
63
63
|
* @example
|
|
64
64
|
* await client.payments.createConnectAccountV1()
|
|
65
65
|
*/
|
|
66
|
-
createConnectAccountV1(requestOptions?: Payments.RequestOptions): core.HttpResponsePromise<
|
|
66
|
+
createConnectAccountV1(requestOptions?: Payments.RequestOptions): core.HttpResponsePromise<Chrt.CreateConnectAccountRes>;
|
|
67
67
|
private __createConnectAccountV1;
|
|
68
68
|
/**
|
|
69
69
|
* Creates an onboarding link for a Stripe Connect account. Used to complete or update account setup.
|
|
@@ -35,30 +35,30 @@ export declare class Root {
|
|
|
35
35
|
* @param {Root.RequestOptions} requestOptions - Request-specific configuration.
|
|
36
36
|
*
|
|
37
37
|
* @example
|
|
38
|
-
* await client.root.
|
|
38
|
+
* await client.root.pingAuthd()
|
|
39
39
|
*/
|
|
40
|
-
|
|
41
|
-
private
|
|
40
|
+
pingAuthd(requestOptions?: Root.RequestOptions): core.HttpResponsePromise<Record<string, string>>;
|
|
41
|
+
private __pingAuthd;
|
|
42
42
|
/**
|
|
43
43
|
* Test endpoint for optionally authenticated requests that works with or without authentication.
|
|
44
44
|
*
|
|
45
45
|
* @param {Root.RequestOptions} requestOptions - Request-specific configuration.
|
|
46
46
|
*
|
|
47
47
|
* @example
|
|
48
|
-
* await client.root.
|
|
48
|
+
* await client.root.pingOptionallyAuthd()
|
|
49
49
|
*/
|
|
50
|
-
|
|
51
|
-
private
|
|
50
|
+
pingOptionallyAuthd(requestOptions?: Root.RequestOptions): core.HttpResponsePromise<unknown>;
|
|
51
|
+
private __pingOptionallyAuthd;
|
|
52
52
|
/**
|
|
53
53
|
* Returns a greeting message to verify the API is accessible.
|
|
54
54
|
*
|
|
55
55
|
* @param {Root.RequestOptions} requestOptions - Request-specific configuration.
|
|
56
56
|
*
|
|
57
57
|
* @example
|
|
58
|
-
* await client.root.
|
|
58
|
+
* await client.root.pingUnauthd()
|
|
59
59
|
*/
|
|
60
|
-
|
|
61
|
-
private
|
|
60
|
+
pingUnauthd(requestOptions?: Root.RequestOptions): core.HttpResponsePromise<unknown>;
|
|
61
|
+
private __pingUnauthd;
|
|
62
62
|
/**
|
|
63
63
|
* Returns a health status message used for monitoring system availability and uptime.
|
|
64
64
|
*
|
|
@@ -75,9 +75,9 @@ export declare class Root {
|
|
|
75
75
|
* @param {Root.RequestOptions} requestOptions - Request-specific configuration.
|
|
76
76
|
*
|
|
77
77
|
* @example
|
|
78
|
-
* await client.root.
|
|
78
|
+
* await client.root.failure()
|
|
79
79
|
*/
|
|
80
|
-
|
|
81
|
-
private
|
|
80
|
+
failure(requestOptions?: Root.RequestOptions): core.HttpResponsePromise<unknown>;
|
|
81
|
+
private __failure;
|
|
82
82
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
83
83
|
}
|
|
@@ -60,17 +60,17 @@ class Root {
|
|
|
60
60
|
* @param {Root.RequestOptions} requestOptions - Request-specific configuration.
|
|
61
61
|
*
|
|
62
62
|
* @example
|
|
63
|
-
* await client.root.
|
|
63
|
+
* await client.root.pingAuthd()
|
|
64
64
|
*/
|
|
65
|
-
|
|
66
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
65
|
+
pingAuthd(requestOptions) {
|
|
66
|
+
return core.HttpResponsePromise.fromPromise(this.__pingAuthd(requestOptions));
|
|
67
67
|
}
|
|
68
|
-
|
|
68
|
+
__pingAuthd(requestOptions) {
|
|
69
69
|
return __awaiter(this, void 0, void 0, function* () {
|
|
70
70
|
var _a, _b, _c, _d;
|
|
71
71
|
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);
|
|
72
72
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
73
|
-
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, "authd
|
|
73
|
+
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, "authd"),
|
|
74
74
|
method: "GET",
|
|
75
75
|
headers: _headers,
|
|
76
76
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -96,7 +96,7 @@ class Root {
|
|
|
96
96
|
rawResponse: _response.rawResponse,
|
|
97
97
|
});
|
|
98
98
|
case "timeout":
|
|
99
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /authd
|
|
99
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /authd.");
|
|
100
100
|
case "unknown":
|
|
101
101
|
throw new errors.ChrtError({
|
|
102
102
|
message: _response.error.errorMessage,
|
|
@@ -111,17 +111,17 @@ class Root {
|
|
|
111
111
|
* @param {Root.RequestOptions} requestOptions - Request-specific configuration.
|
|
112
112
|
*
|
|
113
113
|
* @example
|
|
114
|
-
* await client.root.
|
|
114
|
+
* await client.root.pingOptionallyAuthd()
|
|
115
115
|
*/
|
|
116
|
-
|
|
117
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
116
|
+
pingOptionallyAuthd(requestOptions) {
|
|
117
|
+
return core.HttpResponsePromise.fromPromise(this.__pingOptionallyAuthd(requestOptions));
|
|
118
118
|
}
|
|
119
|
-
|
|
119
|
+
__pingOptionallyAuthd(requestOptions) {
|
|
120
120
|
return __awaiter(this, void 0, void 0, function* () {
|
|
121
121
|
var _a, _b, _c, _d;
|
|
122
122
|
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);
|
|
123
123
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
124
|
-
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, "optionally_authd
|
|
124
|
+
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, "optionally_authd"),
|
|
125
125
|
method: "GET",
|
|
126
126
|
headers: _headers,
|
|
127
127
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -147,7 +147,7 @@ class Root {
|
|
|
147
147
|
rawResponse: _response.rawResponse,
|
|
148
148
|
});
|
|
149
149
|
case "timeout":
|
|
150
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /optionally_authd
|
|
150
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /optionally_authd.");
|
|
151
151
|
case "unknown":
|
|
152
152
|
throw new errors.ChrtError({
|
|
153
153
|
message: _response.error.errorMessage,
|
|
@@ -162,17 +162,17 @@ class Root {
|
|
|
162
162
|
* @param {Root.RequestOptions} requestOptions - Request-specific configuration.
|
|
163
163
|
*
|
|
164
164
|
* @example
|
|
165
|
-
* await client.root.
|
|
165
|
+
* await client.root.pingUnauthd()
|
|
166
166
|
*/
|
|
167
|
-
|
|
168
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
167
|
+
pingUnauthd(requestOptions) {
|
|
168
|
+
return core.HttpResponsePromise.fromPromise(this.__pingUnauthd(requestOptions));
|
|
169
169
|
}
|
|
170
|
-
|
|
170
|
+
__pingUnauthd(requestOptions) {
|
|
171
171
|
return __awaiter(this, void 0, void 0, function* () {
|
|
172
172
|
var _a, _b, _c, _d;
|
|
173
173
|
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);
|
|
174
174
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
175
|
-
url:
|
|
175
|
+
url: (_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,
|
|
176
176
|
method: "GET",
|
|
177
177
|
headers: _headers,
|
|
178
178
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -198,7 +198,7 @@ class Root {
|
|
|
198
198
|
rawResponse: _response.rawResponse,
|
|
199
199
|
});
|
|
200
200
|
case "timeout":
|
|
201
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET
|
|
201
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /.");
|
|
202
202
|
case "unknown":
|
|
203
203
|
throw new errors.ChrtError({
|
|
204
204
|
message: _response.error.errorMessage,
|
|
@@ -264,17 +264,17 @@ class Root {
|
|
|
264
264
|
* @param {Root.RequestOptions} requestOptions - Request-specific configuration.
|
|
265
265
|
*
|
|
266
266
|
* @example
|
|
267
|
-
* await client.root.
|
|
267
|
+
* await client.root.failure()
|
|
268
268
|
*/
|
|
269
|
-
|
|
270
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
269
|
+
failure(requestOptions) {
|
|
270
|
+
return core.HttpResponsePromise.fromPromise(this.__failure(requestOptions));
|
|
271
271
|
}
|
|
272
|
-
|
|
272
|
+
__failure(requestOptions) {
|
|
273
273
|
return __awaiter(this, void 0, void 0, function* () {
|
|
274
274
|
var _a, _b, _c, _d;
|
|
275
275
|
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);
|
|
276
276
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
277
|
-
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, "failure
|
|
277
|
+
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, "failure"),
|
|
278
278
|
method: "GET",
|
|
279
279
|
headers: _headers,
|
|
280
280
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -300,7 +300,7 @@ class Root {
|
|
|
300
300
|
rawResponse: _response.rawResponse,
|
|
301
301
|
});
|
|
302
302
|
case "timeout":
|
|
303
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /failure
|
|
303
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /failure.");
|
|
304
304
|
case "unknown":
|
|
305
305
|
throw new errors.ChrtError({
|
|
306
306
|
message: _response.error.errorMessage,
|
|
@@ -14,6 +14,7 @@ export * from "./CourierPayDriverPayout1.js";
|
|
|
14
14
|
export * from "./CourierPayDriverRateSheet1.js";
|
|
15
15
|
export * from "./CreateCheckoutSessionRes.js";
|
|
16
16
|
export * from "./CreateConnectAccountLinkRes.js";
|
|
17
|
+
export * from "./CreateConnectAccountRes.js";
|
|
17
18
|
export * from "./CreateOrderRes.js";
|
|
18
19
|
export * from "./CreateShipperPayCourierPaymentReq.js";
|
|
19
20
|
export * from "./DecodedJwtWithOrgAndUserId.js";
|
|
@@ -106,6 +107,7 @@ export * from "./TrackingSessionByDeviceDataPoint1.js";
|
|
|
106
107
|
export * from "./TrackingSessionByDeviceDataPointMetadata1.js";
|
|
107
108
|
export * from "./TrackingTaskGroupByDriverDataPoint1.js";
|
|
108
109
|
export * from "./TrackingTaskGroupByDriverDataPointMetadata1.js";
|
|
110
|
+
export * from "./TrackingWebhookResponse.js";
|
|
109
111
|
export * from "./TransportTypeEnum.js";
|
|
110
112
|
export * from "./UpdateTaskGroupRes.js";
|
|
111
113
|
export * from "./UserPublicData1.js";
|
|
@@ -30,6 +30,7 @@ __exportStar(require("./CourierPayDriverPayout1.js"), exports);
|
|
|
30
30
|
__exportStar(require("./CourierPayDriverRateSheet1.js"), exports);
|
|
31
31
|
__exportStar(require("./CreateCheckoutSessionRes.js"), exports);
|
|
32
32
|
__exportStar(require("./CreateConnectAccountLinkRes.js"), exports);
|
|
33
|
+
__exportStar(require("./CreateConnectAccountRes.js"), exports);
|
|
33
34
|
__exportStar(require("./CreateOrderRes.js"), exports);
|
|
34
35
|
__exportStar(require("./CreateShipperPayCourierPaymentReq.js"), exports);
|
|
35
36
|
__exportStar(require("./DecodedJwtWithOrgAndUserId.js"), exports);
|
|
@@ -122,6 +123,7 @@ __exportStar(require("./TrackingSessionByDeviceDataPoint1.js"), exports);
|
|
|
122
123
|
__exportStar(require("./TrackingSessionByDeviceDataPointMetadata1.js"), exports);
|
|
123
124
|
__exportStar(require("./TrackingTaskGroupByDriverDataPoint1.js"), exports);
|
|
124
125
|
__exportStar(require("./TrackingTaskGroupByDriverDataPointMetadata1.js"), exports);
|
|
126
|
+
__exportStar(require("./TrackingWebhookResponse.js"), exports);
|
|
125
127
|
__exportStar(require("./TransportTypeEnum.js"), exports);
|
|
126
128
|
__exportStar(require("./UpdateTaskGroupRes.js"), exports);
|
|
127
129
|
__exportStar(require("./UserPublicData1.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.288.0";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/Client.mjs
CHANGED
|
@@ -32,8 +32,8 @@ export class ChrtClient {
|
|
|
32
32
|
this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
|
|
33
33
|
"X-Fern-Language": "JavaScript",
|
|
34
34
|
"X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
|
|
35
|
-
"X-Fern-SDK-Version": "1.
|
|
36
|
-
"User-Agent": "@chrt-inc/typescript-sdk/1.
|
|
35
|
+
"X-Fern-SDK-Version": "1.288.0",
|
|
36
|
+
"User-Agent": "@chrt-inc/typescript-sdk/1.288.0",
|
|
37
37
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
38
38
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
39
39
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -65,7 +65,7 @@ export declare class Milestones {
|
|
|
65
65
|
* type: "image"
|
|
66
66
|
* })
|
|
67
67
|
*/
|
|
68
|
-
addToTaskV1(request: Chrt.MilestoneAddToTaskReq, requestOptions?: Milestones.RequestOptions): core.HttpResponsePromise<
|
|
68
|
+
addToTaskV1(request: Chrt.MilestoneAddToTaskReq, requestOptions?: Milestones.RequestOptions): core.HttpResponsePromise<string>;
|
|
69
69
|
private __addToTaskV1;
|
|
70
70
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
71
71
|
}
|
|
@@ -68,7 +68,7 @@ export declare class Orders {
|
|
|
68
68
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
69
69
|
*
|
|
70
70
|
* @example
|
|
71
|
-
* await client.orders.
|
|
71
|
+
* await client.orders.createV1({
|
|
72
72
|
* order_client_create: {
|
|
73
73
|
* schema_version: 1
|
|
74
74
|
* },
|
|
@@ -88,8 +88,8 @@ export declare class Orders {
|
|
|
88
88
|
* transport_type: "ground_only"
|
|
89
89
|
* })
|
|
90
90
|
*/
|
|
91
|
-
|
|
92
|
-
private
|
|
91
|
+
createV1(request: Chrt.CreateOrderReq, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<Chrt.CreateOrderRes>;
|
|
92
|
+
private __createV1;
|
|
93
93
|
/**
|
|
94
94
|
* Lists all orders for the authenticated shipper organization.
|
|
95
95
|
*
|
|
@@ -151,7 +151,7 @@ export class Orders {
|
|
|
151
151
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
152
152
|
*
|
|
153
153
|
* @example
|
|
154
|
-
* await client.orders.
|
|
154
|
+
* await client.orders.createV1({
|
|
155
155
|
* order_client_create: {
|
|
156
156
|
* schema_version: 1
|
|
157
157
|
* },
|
|
@@ -171,15 +171,15 @@ export class Orders {
|
|
|
171
171
|
* transport_type: "ground_only"
|
|
172
172
|
* })
|
|
173
173
|
*/
|
|
174
|
-
|
|
175
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
174
|
+
createV1(request, requestOptions) {
|
|
175
|
+
return core.HttpResponsePromise.fromPromise(this.__createV1(request, requestOptions));
|
|
176
176
|
}
|
|
177
|
-
|
|
177
|
+
__createV1(request, requestOptions) {
|
|
178
178
|
return __awaiter(this, void 0, void 0, function* () {
|
|
179
179
|
var _a, _b, _c, _d;
|
|
180
180
|
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
181
181
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
182
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "oort/orders/create"),
|
|
182
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "oort/orders/create/v1"),
|
|
183
183
|
method: "POST",
|
|
184
184
|
headers: _headers,
|
|
185
185
|
contentType: "application/json",
|
|
@@ -213,7 +213,7 @@ export class Orders {
|
|
|
213
213
|
rawResponse: _response.rawResponse,
|
|
214
214
|
});
|
|
215
215
|
case "timeout":
|
|
216
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/orders/create.");
|
|
216
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/orders/create/v1.");
|
|
217
217
|
case "unknown":
|
|
218
218
|
throw new errors.ChrtError({
|
|
219
219
|
message: _response.error.errorMessage,
|
|
@@ -110,7 +110,7 @@ export declare class Orgs {
|
|
|
110
110
|
* company_name: "company_name"
|
|
111
111
|
* })
|
|
112
112
|
*/
|
|
113
|
-
createPublicDataV1(request: Chrt.CreateOrgPublicDataReq, requestOptions?: Orgs.RequestOptions): core.HttpResponsePromise<
|
|
113
|
+
createPublicDataV1(request: Chrt.CreateOrgPublicDataReq, requestOptions?: Orgs.RequestOptions): core.HttpResponsePromise<string>;
|
|
114
114
|
private __createPublicDataV1;
|
|
115
115
|
/**
|
|
116
116
|
* Updates the organization handle or company name for the authenticated organization.
|
|
@@ -63,7 +63,7 @@ export declare class Payments {
|
|
|
63
63
|
* @example
|
|
64
64
|
* await client.payments.createConnectAccountV1()
|
|
65
65
|
*/
|
|
66
|
-
createConnectAccountV1(requestOptions?: Payments.RequestOptions): core.HttpResponsePromise<
|
|
66
|
+
createConnectAccountV1(requestOptions?: Payments.RequestOptions): core.HttpResponsePromise<Chrt.CreateConnectAccountRes>;
|
|
67
67
|
private __createConnectAccountV1;
|
|
68
68
|
/**
|
|
69
69
|
* Creates an onboarding link for a Stripe Connect account. Used to complete or update account setup.
|
|
@@ -35,30 +35,30 @@ export declare class Root {
|
|
|
35
35
|
* @param {Root.RequestOptions} requestOptions - Request-specific configuration.
|
|
36
36
|
*
|
|
37
37
|
* @example
|
|
38
|
-
* await client.root.
|
|
38
|
+
* await client.root.pingAuthd()
|
|
39
39
|
*/
|
|
40
|
-
|
|
41
|
-
private
|
|
40
|
+
pingAuthd(requestOptions?: Root.RequestOptions): core.HttpResponsePromise<Record<string, string>>;
|
|
41
|
+
private __pingAuthd;
|
|
42
42
|
/**
|
|
43
43
|
* Test endpoint for optionally authenticated requests that works with or without authentication.
|
|
44
44
|
*
|
|
45
45
|
* @param {Root.RequestOptions} requestOptions - Request-specific configuration.
|
|
46
46
|
*
|
|
47
47
|
* @example
|
|
48
|
-
* await client.root.
|
|
48
|
+
* await client.root.pingOptionallyAuthd()
|
|
49
49
|
*/
|
|
50
|
-
|
|
51
|
-
private
|
|
50
|
+
pingOptionallyAuthd(requestOptions?: Root.RequestOptions): core.HttpResponsePromise<unknown>;
|
|
51
|
+
private __pingOptionallyAuthd;
|
|
52
52
|
/**
|
|
53
53
|
* Returns a greeting message to verify the API is accessible.
|
|
54
54
|
*
|
|
55
55
|
* @param {Root.RequestOptions} requestOptions - Request-specific configuration.
|
|
56
56
|
*
|
|
57
57
|
* @example
|
|
58
|
-
* await client.root.
|
|
58
|
+
* await client.root.pingUnauthd()
|
|
59
59
|
*/
|
|
60
|
-
|
|
61
|
-
private
|
|
60
|
+
pingUnauthd(requestOptions?: Root.RequestOptions): core.HttpResponsePromise<unknown>;
|
|
61
|
+
private __pingUnauthd;
|
|
62
62
|
/**
|
|
63
63
|
* Returns a health status message used for monitoring system availability and uptime.
|
|
64
64
|
*
|
|
@@ -75,9 +75,9 @@ export declare class Root {
|
|
|
75
75
|
* @param {Root.RequestOptions} requestOptions - Request-specific configuration.
|
|
76
76
|
*
|
|
77
77
|
* @example
|
|
78
|
-
* await client.root.
|
|
78
|
+
* await client.root.failure()
|
|
79
79
|
*/
|
|
80
|
-
|
|
81
|
-
private
|
|
80
|
+
failure(requestOptions?: Root.RequestOptions): core.HttpResponsePromise<unknown>;
|
|
81
|
+
private __failure;
|
|
82
82
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
83
83
|
}
|
|
@@ -24,17 +24,17 @@ export class Root {
|
|
|
24
24
|
* @param {Root.RequestOptions} requestOptions - Request-specific configuration.
|
|
25
25
|
*
|
|
26
26
|
* @example
|
|
27
|
-
* await client.root.
|
|
27
|
+
* await client.root.pingAuthd()
|
|
28
28
|
*/
|
|
29
|
-
|
|
30
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
29
|
+
pingAuthd(requestOptions) {
|
|
30
|
+
return core.HttpResponsePromise.fromPromise(this.__pingAuthd(requestOptions));
|
|
31
31
|
}
|
|
32
|
-
|
|
32
|
+
__pingAuthd(requestOptions) {
|
|
33
33
|
return __awaiter(this, void 0, void 0, function* () {
|
|
34
34
|
var _a, _b, _c, _d;
|
|
35
35
|
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
36
36
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
37
|
-
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, "authd
|
|
37
|
+
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, "authd"),
|
|
38
38
|
method: "GET",
|
|
39
39
|
headers: _headers,
|
|
40
40
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -60,7 +60,7 @@ export class Root {
|
|
|
60
60
|
rawResponse: _response.rawResponse,
|
|
61
61
|
});
|
|
62
62
|
case "timeout":
|
|
63
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /authd
|
|
63
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /authd.");
|
|
64
64
|
case "unknown":
|
|
65
65
|
throw new errors.ChrtError({
|
|
66
66
|
message: _response.error.errorMessage,
|
|
@@ -75,17 +75,17 @@ export class Root {
|
|
|
75
75
|
* @param {Root.RequestOptions} requestOptions - Request-specific configuration.
|
|
76
76
|
*
|
|
77
77
|
* @example
|
|
78
|
-
* await client.root.
|
|
78
|
+
* await client.root.pingOptionallyAuthd()
|
|
79
79
|
*/
|
|
80
|
-
|
|
81
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
80
|
+
pingOptionallyAuthd(requestOptions) {
|
|
81
|
+
return core.HttpResponsePromise.fromPromise(this.__pingOptionallyAuthd(requestOptions));
|
|
82
82
|
}
|
|
83
|
-
|
|
83
|
+
__pingOptionallyAuthd(requestOptions) {
|
|
84
84
|
return __awaiter(this, void 0, void 0, function* () {
|
|
85
85
|
var _a, _b, _c, _d;
|
|
86
86
|
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
87
87
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
88
|
-
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, "optionally_authd
|
|
88
|
+
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, "optionally_authd"),
|
|
89
89
|
method: "GET",
|
|
90
90
|
headers: _headers,
|
|
91
91
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -111,7 +111,7 @@ export class Root {
|
|
|
111
111
|
rawResponse: _response.rawResponse,
|
|
112
112
|
});
|
|
113
113
|
case "timeout":
|
|
114
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /optionally_authd
|
|
114
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /optionally_authd.");
|
|
115
115
|
case "unknown":
|
|
116
116
|
throw new errors.ChrtError({
|
|
117
117
|
message: _response.error.errorMessage,
|
|
@@ -126,17 +126,17 @@ export class Root {
|
|
|
126
126
|
* @param {Root.RequestOptions} requestOptions - Request-specific configuration.
|
|
127
127
|
*
|
|
128
128
|
* @example
|
|
129
|
-
* await client.root.
|
|
129
|
+
* await client.root.pingUnauthd()
|
|
130
130
|
*/
|
|
131
|
-
|
|
132
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
131
|
+
pingUnauthd(requestOptions) {
|
|
132
|
+
return core.HttpResponsePromise.fromPromise(this.__pingUnauthd(requestOptions));
|
|
133
133
|
}
|
|
134
|
-
|
|
134
|
+
__pingUnauthd(requestOptions) {
|
|
135
135
|
return __awaiter(this, void 0, void 0, function* () {
|
|
136
136
|
var _a, _b, _c, _d;
|
|
137
137
|
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
138
138
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
139
|
-
url:
|
|
139
|
+
url: (_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,
|
|
140
140
|
method: "GET",
|
|
141
141
|
headers: _headers,
|
|
142
142
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -162,7 +162,7 @@ export class Root {
|
|
|
162
162
|
rawResponse: _response.rawResponse,
|
|
163
163
|
});
|
|
164
164
|
case "timeout":
|
|
165
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET
|
|
165
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /.");
|
|
166
166
|
case "unknown":
|
|
167
167
|
throw new errors.ChrtError({
|
|
168
168
|
message: _response.error.errorMessage,
|
|
@@ -228,17 +228,17 @@ export class Root {
|
|
|
228
228
|
* @param {Root.RequestOptions} requestOptions - Request-specific configuration.
|
|
229
229
|
*
|
|
230
230
|
* @example
|
|
231
|
-
* await client.root.
|
|
231
|
+
* await client.root.failure()
|
|
232
232
|
*/
|
|
233
|
-
|
|
234
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
233
|
+
failure(requestOptions) {
|
|
234
|
+
return core.HttpResponsePromise.fromPromise(this.__failure(requestOptions));
|
|
235
235
|
}
|
|
236
|
-
|
|
236
|
+
__failure(requestOptions) {
|
|
237
237
|
return __awaiter(this, void 0, void 0, function* () {
|
|
238
238
|
var _a, _b, _c, _d;
|
|
239
239
|
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
240
240
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
241
|
-
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, "failure
|
|
241
|
+
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, "failure"),
|
|
242
242
|
method: "GET",
|
|
243
243
|
headers: _headers,
|
|
244
244
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -264,7 +264,7 @@ export class Root {
|
|
|
264
264
|
rawResponse: _response.rawResponse,
|
|
265
265
|
});
|
|
266
266
|
case "timeout":
|
|
267
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /failure
|
|
267
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /failure.");
|
|
268
268
|
case "unknown":
|
|
269
269
|
throw new errors.ChrtError({
|
|
270
270
|
message: _response.error.errorMessage,
|
|
@@ -14,6 +14,7 @@ export * from "./CourierPayDriverPayout1.mjs";
|
|
|
14
14
|
export * from "./CourierPayDriverRateSheet1.mjs";
|
|
15
15
|
export * from "./CreateCheckoutSessionRes.mjs";
|
|
16
16
|
export * from "./CreateConnectAccountLinkRes.mjs";
|
|
17
|
+
export * from "./CreateConnectAccountRes.mjs";
|
|
17
18
|
export * from "./CreateOrderRes.mjs";
|
|
18
19
|
export * from "./CreateShipperPayCourierPaymentReq.mjs";
|
|
19
20
|
export * from "./DecodedJwtWithOrgAndUserId.mjs";
|
|
@@ -106,6 +107,7 @@ export * from "./TrackingSessionByDeviceDataPoint1.mjs";
|
|
|
106
107
|
export * from "./TrackingSessionByDeviceDataPointMetadata1.mjs";
|
|
107
108
|
export * from "./TrackingTaskGroupByDriverDataPoint1.mjs";
|
|
108
109
|
export * from "./TrackingTaskGroupByDriverDataPointMetadata1.mjs";
|
|
110
|
+
export * from "./TrackingWebhookResponse.mjs";
|
|
109
111
|
export * from "./TransportTypeEnum.mjs";
|
|
110
112
|
export * from "./UpdateTaskGroupRes.mjs";
|
|
111
113
|
export * from "./UserPublicData1.mjs";
|
|
@@ -14,6 +14,7 @@ export * from "./CourierPayDriverPayout1.mjs";
|
|
|
14
14
|
export * from "./CourierPayDriverRateSheet1.mjs";
|
|
15
15
|
export * from "./CreateCheckoutSessionRes.mjs";
|
|
16
16
|
export * from "./CreateConnectAccountLinkRes.mjs";
|
|
17
|
+
export * from "./CreateConnectAccountRes.mjs";
|
|
17
18
|
export * from "./CreateOrderRes.mjs";
|
|
18
19
|
export * from "./CreateShipperPayCourierPaymentReq.mjs";
|
|
19
20
|
export * from "./DecodedJwtWithOrgAndUserId.mjs";
|
|
@@ -106,6 +107,7 @@ export * from "./TrackingSessionByDeviceDataPoint1.mjs";
|
|
|
106
107
|
export * from "./TrackingSessionByDeviceDataPointMetadata1.mjs";
|
|
107
108
|
export * from "./TrackingTaskGroupByDriverDataPoint1.mjs";
|
|
108
109
|
export * from "./TrackingTaskGroupByDriverDataPointMetadata1.mjs";
|
|
110
|
+
export * from "./TrackingWebhookResponse.mjs";
|
|
109
111
|
export * from "./TransportTypeEnum.mjs";
|
|
110
112
|
export * from "./UpdateTaskGroupRes.mjs";
|
|
111
113
|
export * from "./UserPublicData1.mjs";
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.
|
|
1
|
+
export declare const SDK_VERSION = "1.288.0";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "1.
|
|
1
|
+
export const SDK_VERSION = "1.288.0";
|
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -1199,7 +1199,7 @@ await client.milestones.updateV1({
|
|
|
1199
1199
|
</dl>
|
|
1200
1200
|
</details>
|
|
1201
1201
|
|
|
1202
|
-
<details><summary><code>client.milestones.<a href="/src/api/resources/milestones/client/Client.ts">addToTaskV1</a>({ ...params }) ->
|
|
1202
|
+
<details><summary><code>client.milestones.<a href="/src/api/resources/milestones/client/Client.ts">addToTaskV1</a>({ ...params }) -> string</code></summary>
|
|
1203
1203
|
<dl>
|
|
1204
1204
|
<dd>
|
|
1205
1205
|
|
|
@@ -2027,7 +2027,7 @@ await client.orders.cancelByOrderIdOrShortIdV1("order_id_or_short_id");
|
|
|
2027
2027
|
</dl>
|
|
2028
2028
|
</details>
|
|
2029
2029
|
|
|
2030
|
-
<details><summary><code>client.orders.<a href="/src/api/resources/orders/client/Client.ts">
|
|
2030
|
+
<details><summary><code>client.orders.<a href="/src/api/resources/orders/client/Client.ts">createV1</a>({ ...params }) -> Chrt.CreateOrderRes</code></summary>
|
|
2031
2031
|
<dl>
|
|
2032
2032
|
<dd>
|
|
2033
2033
|
|
|
@@ -2055,7 +2055,7 @@ Creates a comprehensive order with task groups, tasks, milestones, and cargo.
|
|
|
2055
2055
|
<dd>
|
|
2056
2056
|
|
|
2057
2057
|
```typescript
|
|
2058
|
-
await client.orders.
|
|
2058
|
+
await client.orders.createV1({
|
|
2059
2059
|
order_client_create: {
|
|
2060
2060
|
schema_version: 1,
|
|
2061
2061
|
},
|
|
@@ -5780,7 +5780,7 @@ await client.orgs.getHandleAvailabilityV1("handle");
|
|
|
5780
5780
|
</dl>
|
|
5781
5781
|
</details>
|
|
5782
5782
|
|
|
5783
|
-
<details><summary><code>client.orgs.<a href="/src/api/resources/orgs/client/Client.ts">createPublicDataV1</a>({ ...params }) ->
|
|
5783
|
+
<details><summary><code>client.orgs.<a href="/src/api/resources/orgs/client/Client.ts">createPublicDataV1</a>({ ...params }) -> string</code></summary>
|
|
5784
5784
|
<dl>
|
|
5785
5785
|
<dd>
|
|
5786
5786
|
|
|
@@ -6031,7 +6031,7 @@ await client.payments.syncStripeToClerkV1();
|
|
|
6031
6031
|
</dl>
|
|
6032
6032
|
</details>
|
|
6033
6033
|
|
|
6034
|
-
<details><summary><code>client.payments.<a href="/src/api/resources/payments/client/Client.ts">createConnectAccountV1</a>() ->
|
|
6034
|
+
<details><summary><code>client.payments.<a href="/src/api/resources/payments/client/Client.ts">createConnectAccountV1</a>() -> Chrt.CreateConnectAccountRes</code></summary>
|
|
6035
6035
|
<dl>
|
|
6036
6036
|
<dd>
|
|
6037
6037
|
|
|
@@ -6208,7 +6208,7 @@ await client.payments.generateInvoiceV1({
|
|
|
6208
6208
|
|
|
6209
6209
|
## Root
|
|
6210
6210
|
|
|
6211
|
-
<details><summary><code>client.root.<a href="/src/api/resources/root/client/Client.ts">
|
|
6211
|
+
<details><summary><code>client.root.<a href="/src/api/resources/root/client/Client.ts">pingAuthd</a>() -> Record<string, string></code></summary>
|
|
6212
6212
|
<dl>
|
|
6213
6213
|
<dd>
|
|
6214
6214
|
|
|
@@ -6236,7 +6236,7 @@ Test endpoint for authenticated requests that requires valid authentication toke
|
|
|
6236
6236
|
<dd>
|
|
6237
6237
|
|
|
6238
6238
|
```typescript
|
|
6239
|
-
await client.root.
|
|
6239
|
+
await client.root.pingAuthd();
|
|
6240
6240
|
```
|
|
6241
6241
|
|
|
6242
6242
|
</dd>
|
|
@@ -6263,7 +6263,7 @@ await client.root.pingAuthdV1();
|
|
|
6263
6263
|
</dl>
|
|
6264
6264
|
</details>
|
|
6265
6265
|
|
|
6266
|
-
<details><summary><code>client.root.<a href="/src/api/resources/root/client/Client.ts">
|
|
6266
|
+
<details><summary><code>client.root.<a href="/src/api/resources/root/client/Client.ts">pingOptionallyAuthd</a>() -> unknown</code></summary>
|
|
6267
6267
|
<dl>
|
|
6268
6268
|
<dd>
|
|
6269
6269
|
|
|
@@ -6291,7 +6291,7 @@ Test endpoint for optionally authenticated requests that works with or without a
|
|
|
6291
6291
|
<dd>
|
|
6292
6292
|
|
|
6293
6293
|
```typescript
|
|
6294
|
-
await client.root.
|
|
6294
|
+
await client.root.pingOptionallyAuthd();
|
|
6295
6295
|
```
|
|
6296
6296
|
|
|
6297
6297
|
</dd>
|
|
@@ -6318,7 +6318,7 @@ await client.root.pingOptionallyAuthdV1();
|
|
|
6318
6318
|
</dl>
|
|
6319
6319
|
</details>
|
|
6320
6320
|
|
|
6321
|
-
<details><summary><code>client.root.<a href="/src/api/resources/root/client/Client.ts">
|
|
6321
|
+
<details><summary><code>client.root.<a href="/src/api/resources/root/client/Client.ts">pingUnauthd</a>() -> unknown</code></summary>
|
|
6322
6322
|
<dl>
|
|
6323
6323
|
<dd>
|
|
6324
6324
|
|
|
@@ -6346,7 +6346,7 @@ Returns a greeting message to verify the API is accessible.
|
|
|
6346
6346
|
<dd>
|
|
6347
6347
|
|
|
6348
6348
|
```typescript
|
|
6349
|
-
await client.root.
|
|
6349
|
+
await client.root.pingUnauthd();
|
|
6350
6350
|
```
|
|
6351
6351
|
|
|
6352
6352
|
</dd>
|
|
@@ -6428,7 +6428,7 @@ await client.root.health();
|
|
|
6428
6428
|
</dl>
|
|
6429
6429
|
</details>
|
|
6430
6430
|
|
|
6431
|
-
<details><summary><code>client.root.<a href="/src/api/resources/root/client/Client.ts">
|
|
6431
|
+
<details><summary><code>client.root.<a href="/src/api/resources/root/client/Client.ts">failure</a>() -> unknown</code></summary>
|
|
6432
6432
|
<dl>
|
|
6433
6433
|
<dd>
|
|
6434
6434
|
|
|
@@ -6456,7 +6456,7 @@ Test endpoint that intentionally fails for error handling validation and monitor
|
|
|
6456
6456
|
<dd>
|
|
6457
6457
|
|
|
6458
6458
|
```typescript
|
|
6459
|
-
await client.root.
|
|
6459
|
+
await client.root.failure();
|
|
6460
6460
|
```
|
|
6461
6461
|
|
|
6462
6462
|
</dd>
|