@chrt-inc/typescript-sdk 1.762.0 → 1.772.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/notifications/resources/adHoc/client/Client.d.ts +36 -2
- package/dist/cjs/api/resources/notifications/resources/adHoc/client/Client.js +138 -1
- package/dist/cjs/api/resources/notifications/resources/adHoc/client/requests/AdHocListBySessionIdV1Request.d.ts +14 -0
- package/dist/cjs/api/resources/notifications/resources/adHoc/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftAddTaskGroupReq.d.ts +1 -0
- package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.js +2 -2
- package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionClientCreate1.d.ts +3 -0
- package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionClientUpdate1.d.ts +4 -0
- package/dist/cjs/api/types/NotificationEventsForAdHocEnum.d.ts +4 -3
- package/dist/cjs/api/types/NotificationEventsForAdHocEnum.js +1 -0
- package/dist/cjs/api/types/NotificationEventsForOrgsEnum.d.ts +2 -1
- package/dist/cjs/api/types/NotificationEventsForOrgsEnum.js +1 -0
- package/dist/cjs/api/types/NotificationEventsForUsersEnum.d.ts +2 -1
- package/dist/cjs/api/types/NotificationEventsForUsersEnum.js +1 -0
- package/dist/cjs/api/types/NotificationIntentAdHoc1.d.ts +2 -1
- package/dist/cjs/api/{resources/notifications/resources/adHoc/client/requests → types}/NotificationIntentAdHocClientCreate1.d.ts +1 -8
- package/dist/cjs/api/types/NotificationIntentAdHocClientCreate1.js +5 -0
- package/dist/cjs/api/types/OnboardCourierTaskActionEnum1.d.ts +1 -11
- package/dist/cjs/api/types/OnboardCourierTaskActionEnum1.js +0 -10
- package/dist/cjs/api/types/Session1.d.ts +3 -0
- package/dist/cjs/api/types/TaskGroup1.d.ts +1 -0
- package/dist/cjs/api/types/TrackingSessionDestinationGeofenceEnteredWebhookPayload.d.ts +10 -0
- package/dist/cjs/api/types/TrackingSessionDestinationGeofenceEnteredWebhookPayload.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/notifications/resources/adHoc/client/Client.d.mts +36 -2
- package/dist/esm/api/resources/notifications/resources/adHoc/client/Client.mjs +138 -1
- package/dist/esm/api/resources/notifications/resources/adHoc/client/requests/AdHocListBySessionIdV1Request.d.mts +14 -0
- package/dist/esm/api/resources/notifications/resources/adHoc/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftAddTaskGroupReq.d.mts +1 -0
- package/dist/esm/api/resources/tracking/resources/sessions/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/tracking/resources/sessions/client/Client.mjs +2 -2
- package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionClientCreate1.d.mts +3 -0
- package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionClientUpdate1.d.mts +4 -0
- package/dist/esm/api/types/NotificationEventsForAdHocEnum.d.mts +4 -3
- package/dist/esm/api/types/NotificationEventsForAdHocEnum.mjs +1 -0
- package/dist/esm/api/types/NotificationEventsForOrgsEnum.d.mts +2 -1
- package/dist/esm/api/types/NotificationEventsForOrgsEnum.mjs +1 -0
- package/dist/esm/api/types/NotificationEventsForUsersEnum.d.mts +2 -1
- package/dist/esm/api/types/NotificationEventsForUsersEnum.mjs +1 -0
- package/dist/esm/api/types/NotificationIntentAdHoc1.d.mts +2 -1
- package/dist/esm/api/{resources/notifications/resources/adHoc/client/requests → types}/NotificationIntentAdHocClientCreate1.d.mts +1 -8
- package/dist/esm/api/types/NotificationIntentAdHocClientCreate1.mjs +4 -0
- package/dist/esm/api/types/OnboardCourierTaskActionEnum1.d.mts +1 -11
- package/dist/esm/api/types/OnboardCourierTaskActionEnum1.mjs +0 -10
- package/dist/esm/api/types/Session1.d.mts +3 -0
- package/dist/esm/api/types/TaskGroup1.d.mts +1 -0
- package/dist/esm/api/types/TrackingSessionDestinationGeofenceEnteredWebhookPayload.d.mts +10 -0
- package/dist/esm/api/types/TrackingSessionDestinationGeofenceEnteredWebhookPayload.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 +151 -3
- /package/dist/cjs/api/resources/notifications/resources/adHoc/client/requests/{NotificationIntentAdHocClientCreate1.js → AdHocListBySessionIdV1Request.js} +0 -0
- /package/dist/esm/api/resources/notifications/resources/adHoc/client/requests/{NotificationIntentAdHocClientCreate1.mjs → AdHocListBySessionIdV1Request.mjs} +0 -0
package/dist/cjs/Client.js
CHANGED
|
@@ -56,8 +56,8 @@ class ChrtClient {
|
|
|
56
56
|
this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
|
|
57
57
|
"X-Fern-Language": "JavaScript",
|
|
58
58
|
"X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
|
|
59
|
-
"X-Fern-SDK-Version": "1.
|
|
60
|
-
"User-Agent": "@chrt-inc/typescript-sdk/1.
|
|
59
|
+
"X-Fern-SDK-Version": "1.772.0",
|
|
60
|
+
"User-Agent": "@chrt-inc/typescript-sdk/1.772.0",
|
|
61
61
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
62
62
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
63
63
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -47,11 +47,28 @@ export declare class AdHoc {
|
|
|
47
47
|
*/
|
|
48
48
|
listByOrderIdV1(orderId: string, request?: Chrt.notifications.AdHocListByOrderIdV1Request, requestOptions?: AdHoc.RequestOptions): core.HttpResponsePromise<Chrt.NotificationAdHocListRes>;
|
|
49
49
|
private __listByOrderIdV1;
|
|
50
|
+
/**
|
|
51
|
+
* Lists all ad-hoc notification intents for a tracking session. | authz: min_org_role=operator | () -> (NotificationAdHocListRes)
|
|
52
|
+
*
|
|
53
|
+
* @param {string} sessionId
|
|
54
|
+
* @param {Chrt.notifications.AdHocListBySessionIdV1Request} request
|
|
55
|
+
* @param {AdHoc.RequestOptions} requestOptions - Request-specific configuration.
|
|
56
|
+
*
|
|
57
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
58
|
+
*
|
|
59
|
+
* @example
|
|
60
|
+
* await client.notifications.adHoc.listBySessionIdV1("session_id", {
|
|
61
|
+
* page: 1,
|
|
62
|
+
* page_size: 1
|
|
63
|
+
* })
|
|
64
|
+
*/
|
|
65
|
+
listBySessionIdV1(sessionId: string, request?: Chrt.notifications.AdHocListBySessionIdV1Request, requestOptions?: AdHoc.RequestOptions): core.HttpResponsePromise<Chrt.NotificationAdHocListRes>;
|
|
66
|
+
private __listBySessionIdV1;
|
|
50
67
|
/**
|
|
51
68
|
* Creates a new ad-hoc notification intent for an order. | authz: min_org_role=operator | (NotificationIntentAdHocClientCreate1) -> (PydanticObjectId)
|
|
52
69
|
*
|
|
53
70
|
* @param {string} orderId
|
|
54
|
-
* @param {Chrt.
|
|
71
|
+
* @param {Chrt.NotificationIntentAdHocClientCreate1} request
|
|
55
72
|
* @param {AdHoc.RequestOptions} requestOptions - Request-specific configuration.
|
|
56
73
|
*
|
|
57
74
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
@@ -62,8 +79,25 @@ export declare class AdHoc {
|
|
|
62
79
|
* directory_entry_id: "directory_entry_id"
|
|
63
80
|
* })
|
|
64
81
|
*/
|
|
65
|
-
createV1(orderId: string, request: Chrt.
|
|
82
|
+
createV1(orderId: string, request: Chrt.NotificationIntentAdHocClientCreate1, requestOptions?: AdHoc.RequestOptions): core.HttpResponsePromise<string>;
|
|
66
83
|
private __createV1;
|
|
84
|
+
/**
|
|
85
|
+
* Creates a new ad-hoc notification intent for a tracking session. | authz: min_org_role=operator | (NotificationIntentAdHocClientCreate1) -> (PydanticObjectId)
|
|
86
|
+
*
|
|
87
|
+
* @param {string} sessionId
|
|
88
|
+
* @param {Chrt.NotificationIntentAdHocClientCreate1} request
|
|
89
|
+
* @param {AdHoc.RequestOptions} requestOptions - Request-specific configuration.
|
|
90
|
+
*
|
|
91
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
92
|
+
*
|
|
93
|
+
* @example
|
|
94
|
+
* await client.notifications.adHoc.createForSessionV1("session_id", {
|
|
95
|
+
* schema_version: 1,
|
|
96
|
+
* directory_entry_id: "directory_entry_id"
|
|
97
|
+
* })
|
|
98
|
+
*/
|
|
99
|
+
createForSessionV1(sessionId: string, request: Chrt.NotificationIntentAdHocClientCreate1, requestOptions?: AdHoc.RequestOptions): core.HttpResponsePromise<string>;
|
|
100
|
+
private __createForSessionV1;
|
|
67
101
|
/**
|
|
68
102
|
* Deletes an ad-hoc notification intent. | authz: min_org_role=operator | () -> (bool)
|
|
69
103
|
*
|
|
@@ -126,11 +126,82 @@ class AdHoc {
|
|
|
126
126
|
}
|
|
127
127
|
});
|
|
128
128
|
}
|
|
129
|
+
/**
|
|
130
|
+
* Lists all ad-hoc notification intents for a tracking session. | authz: min_org_role=operator | () -> (NotificationAdHocListRes)
|
|
131
|
+
*
|
|
132
|
+
* @param {string} sessionId
|
|
133
|
+
* @param {Chrt.notifications.AdHocListBySessionIdV1Request} request
|
|
134
|
+
* @param {AdHoc.RequestOptions} requestOptions - Request-specific configuration.
|
|
135
|
+
*
|
|
136
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
137
|
+
*
|
|
138
|
+
* @example
|
|
139
|
+
* await client.notifications.adHoc.listBySessionIdV1("session_id", {
|
|
140
|
+
* page: 1,
|
|
141
|
+
* page_size: 1
|
|
142
|
+
* })
|
|
143
|
+
*/
|
|
144
|
+
listBySessionIdV1(sessionId, request = {}, requestOptions) {
|
|
145
|
+
return core.HttpResponsePromise.fromPromise(this.__listBySessionIdV1(sessionId, request, requestOptions));
|
|
146
|
+
}
|
|
147
|
+
__listBySessionIdV1(sessionId_1) {
|
|
148
|
+
return __awaiter(this, arguments, void 0, function* (sessionId, request = {}, requestOptions) {
|
|
149
|
+
var _a, _b, _c, _d, _e, _f;
|
|
150
|
+
const { page, page_size: pageSize } = request;
|
|
151
|
+
const _queryParams = {};
|
|
152
|
+
if (page !== undefined) {
|
|
153
|
+
_queryParams["page"] = (_a = page === null || page === void 0 ? void 0 : page.toString()) !== null && _a !== void 0 ? _a : null;
|
|
154
|
+
}
|
|
155
|
+
if (pageSize !== undefined) {
|
|
156
|
+
_queryParams["page_size"] = (_b = pageSize === null || pageSize === void 0 ? void 0 : pageSize.toString()) !== null && _b !== void 0 ? _b : null;
|
|
157
|
+
}
|
|
158
|
+
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);
|
|
159
|
+
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
160
|
+
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, `notifications/ad_hoc/list_by_session_id/v1/${encodeURIComponent(sessionId)}`),
|
|
161
|
+
method: "GET",
|
|
162
|
+
headers: _headers,
|
|
163
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
164
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
165
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
166
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
167
|
+
});
|
|
168
|
+
if (_response.ok) {
|
|
169
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
170
|
+
}
|
|
171
|
+
if (_response.error.reason === "status-code") {
|
|
172
|
+
switch (_response.error.statusCode) {
|
|
173
|
+
case 422:
|
|
174
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
175
|
+
default:
|
|
176
|
+
throw new errors.ChrtError({
|
|
177
|
+
statusCode: _response.error.statusCode,
|
|
178
|
+
body: _response.error.body,
|
|
179
|
+
rawResponse: _response.rawResponse,
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
switch (_response.error.reason) {
|
|
184
|
+
case "non-json":
|
|
185
|
+
throw new errors.ChrtError({
|
|
186
|
+
statusCode: _response.error.statusCode,
|
|
187
|
+
body: _response.error.rawBody,
|
|
188
|
+
rawResponse: _response.rawResponse,
|
|
189
|
+
});
|
|
190
|
+
case "timeout":
|
|
191
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /notifications/ad_hoc/list_by_session_id/v1/{session_id}.");
|
|
192
|
+
case "unknown":
|
|
193
|
+
throw new errors.ChrtError({
|
|
194
|
+
message: _response.error.errorMessage,
|
|
195
|
+
rawResponse: _response.rawResponse,
|
|
196
|
+
});
|
|
197
|
+
}
|
|
198
|
+
});
|
|
199
|
+
}
|
|
129
200
|
/**
|
|
130
201
|
* Creates a new ad-hoc notification intent for an order. | authz: min_org_role=operator | (NotificationIntentAdHocClientCreate1) -> (PydanticObjectId)
|
|
131
202
|
*
|
|
132
203
|
* @param {string} orderId
|
|
133
|
-
* @param {Chrt.
|
|
204
|
+
* @param {Chrt.NotificationIntentAdHocClientCreate1} request
|
|
134
205
|
* @param {AdHoc.RequestOptions} requestOptions - Request-specific configuration.
|
|
135
206
|
*
|
|
136
207
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
@@ -192,6 +263,72 @@ class AdHoc {
|
|
|
192
263
|
}
|
|
193
264
|
});
|
|
194
265
|
}
|
|
266
|
+
/**
|
|
267
|
+
* Creates a new ad-hoc notification intent for a tracking session. | authz: min_org_role=operator | (NotificationIntentAdHocClientCreate1) -> (PydanticObjectId)
|
|
268
|
+
*
|
|
269
|
+
* @param {string} sessionId
|
|
270
|
+
* @param {Chrt.NotificationIntentAdHocClientCreate1} request
|
|
271
|
+
* @param {AdHoc.RequestOptions} requestOptions - Request-specific configuration.
|
|
272
|
+
*
|
|
273
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
274
|
+
*
|
|
275
|
+
* @example
|
|
276
|
+
* await client.notifications.adHoc.createForSessionV1("session_id", {
|
|
277
|
+
* schema_version: 1,
|
|
278
|
+
* directory_entry_id: "directory_entry_id"
|
|
279
|
+
* })
|
|
280
|
+
*/
|
|
281
|
+
createForSessionV1(sessionId, request, requestOptions) {
|
|
282
|
+
return core.HttpResponsePromise.fromPromise(this.__createForSessionV1(sessionId, request, requestOptions));
|
|
283
|
+
}
|
|
284
|
+
__createForSessionV1(sessionId, request, requestOptions) {
|
|
285
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
286
|
+
var _a, _b, _c, _d;
|
|
287
|
+
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);
|
|
288
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
289
|
+
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, `notifications/ad_hoc/create_for_session/v1/${encodeURIComponent(sessionId)}`),
|
|
290
|
+
method: "POST",
|
|
291
|
+
headers: _headers,
|
|
292
|
+
contentType: "application/json",
|
|
293
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
294
|
+
requestType: "json",
|
|
295
|
+
body: request,
|
|
296
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
297
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
298
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
299
|
+
});
|
|
300
|
+
if (_response.ok) {
|
|
301
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
302
|
+
}
|
|
303
|
+
if (_response.error.reason === "status-code") {
|
|
304
|
+
switch (_response.error.statusCode) {
|
|
305
|
+
case 422:
|
|
306
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
307
|
+
default:
|
|
308
|
+
throw new errors.ChrtError({
|
|
309
|
+
statusCode: _response.error.statusCode,
|
|
310
|
+
body: _response.error.body,
|
|
311
|
+
rawResponse: _response.rawResponse,
|
|
312
|
+
});
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
switch (_response.error.reason) {
|
|
316
|
+
case "non-json":
|
|
317
|
+
throw new errors.ChrtError({
|
|
318
|
+
statusCode: _response.error.statusCode,
|
|
319
|
+
body: _response.error.rawBody,
|
|
320
|
+
rawResponse: _response.rawResponse,
|
|
321
|
+
});
|
|
322
|
+
case "timeout":
|
|
323
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /notifications/ad_hoc/create_for_session/v1/{session_id}.");
|
|
324
|
+
case "unknown":
|
|
325
|
+
throw new errors.ChrtError({
|
|
326
|
+
message: _response.error.errorMessage,
|
|
327
|
+
rawResponse: _response.rawResponse,
|
|
328
|
+
});
|
|
329
|
+
}
|
|
330
|
+
});
|
|
331
|
+
}
|
|
195
332
|
/**
|
|
196
333
|
* Deletes an ad-hoc notification intent. | authz: min_org_role=operator | () -> (bool)
|
|
197
334
|
*
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* page: 1,
|
|
8
|
+
* page_size: 1
|
|
9
|
+
* }
|
|
10
|
+
*/
|
|
11
|
+
export interface AdHocListBySessionIdV1Request {
|
|
12
|
+
page?: number | null;
|
|
13
|
+
page_size?: number | null;
|
|
14
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { type AdHocListByOrderIdV1Request } from "./AdHocListByOrderIdV1Request.js";
|
|
2
|
-
export { type
|
|
2
|
+
export { type AdHocListBySessionIdV1Request } from "./AdHocListBySessionIdV1Request.js";
|
|
@@ -99,7 +99,7 @@ export declare class Sessions {
|
|
|
99
99
|
typeaheadV1(request: Chrt.tracking.SessionsTypeaheadV1Request, requestOptions?: Sessions.RequestOptions): core.HttpResponsePromise<Chrt.TrackingTypeaheadResult[]>;
|
|
100
100
|
private __typeaheadV1;
|
|
101
101
|
/**
|
|
102
|
-
* Creates a new tracking session for a device and automatically starts recording data points. The caller must be the device owner or belong to an org the device is shared with. The device owner remains the session owner (org_id). The device's shared_with_org_ids are copied to the session. The device must not have an active session. Auto-termination is scheduled for ~1 week out at 8 PM PT. Prevent auto termination with `no_auto_termination=True` | auth: api_key | (SessionClientCreate1) -> (PydanticObjectId)
|
|
102
|
+
* Creates a new tracking session for a device and automatically starts recording data points. The caller must be the device owner or belong to an org the device is shared with. The device owner remains the session owner (org_id). The device's shared_with_org_ids are copied to the session. The device must not have an active session. Optionally seed a destination geofence (location + radius) to fire a destination geofence entered notification. Auto-termination is scheduled for ~1 week out at 8 PM PT. Prevent auto termination with `no_auto_termination=True` | auth: api_key | (SessionClientCreate1) -> (PydanticObjectId)
|
|
103
103
|
*
|
|
104
104
|
* @param {Chrt.tracking.SessionClientCreate1} request
|
|
105
105
|
* @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -116,7 +116,7 @@ export declare class Sessions {
|
|
|
116
116
|
createSessionV1(request: Chrt.tracking.SessionClientCreate1, requestOptions?: Sessions.RequestOptions): core.HttpResponsePromise<string>;
|
|
117
117
|
private __createSessionV1;
|
|
118
118
|
/**
|
|
119
|
-
* Updates a session's metadata. | auth: api_key | (SessionClientUpdate1) -> (bool)
|
|
119
|
+
* Updates a session's mutable metadata (off_chrt_reference_id, comments, public, termination_scheduled_for_timestamp, destination_geofence_location, destination_geofence_radius_miles). Setting or replacing the destination geofence location resets the entered latch so it can fire again; clearing it (destination_geofence_location__set_to_None) also resets the latch. | auth: api_key | (SessionClientUpdate1) -> (bool)
|
|
120
120
|
*
|
|
121
121
|
* @param {Chrt.tracking.SessionClientUpdate1} request
|
|
122
122
|
* @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -353,7 +353,7 @@ class Sessions {
|
|
|
353
353
|
});
|
|
354
354
|
}
|
|
355
355
|
/**
|
|
356
|
-
* Creates a new tracking session for a device and automatically starts recording data points. The caller must be the device owner or belong to an org the device is shared with. The device owner remains the session owner (org_id). The device's shared_with_org_ids are copied to the session. The device must not have an active session. Auto-termination is scheduled for ~1 week out at 8 PM PT. Prevent auto termination with `no_auto_termination=True` | auth: api_key | (SessionClientCreate1) -> (PydanticObjectId)
|
|
356
|
+
* Creates a new tracking session for a device and automatically starts recording data points. The caller must be the device owner or belong to an org the device is shared with. The device owner remains the session owner (org_id). The device's shared_with_org_ids are copied to the session. The device must not have an active session. Optionally seed a destination geofence (location + radius) to fire a destination geofence entered notification. Auto-termination is scheduled for ~1 week out at 8 PM PT. Prevent auto termination with `no_auto_termination=True` | auth: api_key | (SessionClientCreate1) -> (PydanticObjectId)
|
|
357
357
|
*
|
|
358
358
|
* @param {Chrt.tracking.SessionClientCreate1} request
|
|
359
359
|
* @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -425,7 +425,7 @@ class Sessions {
|
|
|
425
425
|
});
|
|
426
426
|
}
|
|
427
427
|
/**
|
|
428
|
-
* Updates a session's metadata. | auth: api_key | (SessionClientUpdate1) -> (bool)
|
|
428
|
+
* Updates a session's mutable metadata (off_chrt_reference_id, comments, public, termination_scheduled_for_timestamp, destination_geofence_location, destination_geofence_radius_miles). Setting or replacing the destination geofence location resets the entered latch so it can fire again; clearing it (destination_geofence_location__set_to_None) also resets the latch. | auth: api_key | (SessionClientUpdate1) -> (bool)
|
|
429
429
|
*
|
|
430
430
|
* @param {Chrt.tracking.SessionClientUpdate1} request
|
|
431
431
|
* @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
|
package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionClientCreate1.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
|
* {
|
|
@@ -21,4 +22,6 @@ export interface SessionClientCreate1 {
|
|
|
21
22
|
termination_scheduled_for_timestamp?: string | null;
|
|
22
23
|
flight_numbers?: string[];
|
|
23
24
|
fa_flight_ids?: string[];
|
|
25
|
+
destination_geofence_location?: Chrt.LocationFeature | null;
|
|
26
|
+
destination_geofence_radius_miles?: number;
|
|
24
27
|
}
|
package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionClientUpdate1.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
|
* {
|
|
@@ -14,7 +15,10 @@ export interface SessionClientUpdate1 {
|
|
|
14
15
|
comments?: string | null;
|
|
15
16
|
public?: boolean | null;
|
|
16
17
|
termination_scheduled_for_timestamp?: string | null;
|
|
18
|
+
destination_geofence_location?: Chrt.LocationFeature | null;
|
|
19
|
+
destination_geofence_radius_miles?: number | null;
|
|
17
20
|
off_chrt_reference_id__set_to_None?: boolean;
|
|
18
21
|
comments__set_to_None?: boolean;
|
|
19
22
|
termination_scheduled_for_timestamp__set_to_None?: boolean;
|
|
23
|
+
destination_geofence_location__set_to_None?: boolean;
|
|
20
24
|
}
|
|
@@ -2,13 +2,14 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
|
-
* Limited notification events for ad-hoc per-
|
|
5
|
+
* Limited notification events for ad-hoc per-subject notifications.
|
|
6
6
|
*
|
|
7
|
-
* Set per order for any directory entry contact.
|
|
7
|
+
* Set per order or per tracking session for any directory entry 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
|
-
export type NotificationEventsForAdHocEnum = "shipping.order.staged" | "shipping.order.completed";
|
|
10
|
+
export type NotificationEventsForAdHocEnum = "shipping.order.staged" | "shipping.order.completed" | "tracking.session.destination_geofence_entered";
|
|
11
11
|
export declare const NotificationEventsForAdHocEnum: {
|
|
12
12
|
readonly ShippingOrderStaged: "shipping.order.staged";
|
|
13
13
|
readonly ShippingOrderCompleted: "shipping.order.completed";
|
|
14
|
+
readonly TrackingSessionDestinationGeofenceEntered: "tracking.session.destination_geofence_entered";
|
|
14
15
|
};
|
|
@@ -7,4 +7,5 @@ exports.NotificationEventsForAdHocEnum = void 0;
|
|
|
7
7
|
exports.NotificationEventsForAdHocEnum = {
|
|
8
8
|
ShippingOrderStaged: "shipping.order.staged",
|
|
9
9
|
ShippingOrderCompleted: "shipping.order.completed",
|
|
10
|
+
TrackingSessionDestinationGeofenceEntered: "tracking.session.destination_geofence_entered",
|
|
10
11
|
};
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* Controlled by Groups that admins configure.
|
|
7
7
|
* Individual users in the group can opt out.
|
|
8
8
|
*/
|
|
9
|
-
export type NotificationEventsForOrgsEnum = "shipping.order.staged" | "shipping.order.completed" | "shipping.order.cancelled" | "shipping.task_group.provider_assigned" | "shipping.task_group.in_progress" | "shipping.task_group.file_added" | "shipping.task_group.driver_assigned" | "shipping.task_group.message" | "shipping.task_group.tasks_ordering_updated" | "shipping.task_group.flight_info_updated" | "shipping.task.added" | "shipping.task.attempted" | "shipping.task.completed" | "shipping.task.skipped" | "shipping.task.deleted" | "shipping.task.task_artifact_completed" | "shipping.task.executor_org_note_added" | "listing.listing.driver_invited_to_bid" | "listing.listing.provider_invited_to_bid" | "listing.bid_thread.action_added" | "operations.case.operator_assigned" | "operations.case.group_assigned" | "operations.case.message" | "operations.case.file_added" | "billing.statement.opened" | "billing.statement.paid" | "billing.line_item_group.message" | "billing.line_item_group.file_added" | "billing.line_item.file_added";
|
|
9
|
+
export type NotificationEventsForOrgsEnum = "shipping.order.staged" | "shipping.order.completed" | "shipping.order.cancelled" | "shipping.task_group.provider_assigned" | "shipping.task_group.in_progress" | "shipping.task_group.file_added" | "shipping.task_group.driver_assigned" | "shipping.task_group.message" | "shipping.task_group.tasks_ordering_updated" | "shipping.task_group.flight_info_updated" | "shipping.task.added" | "shipping.task.attempted" | "shipping.task.completed" | "shipping.task.skipped" | "shipping.task.deleted" | "shipping.task.task_artifact_completed" | "shipping.task.executor_org_note_added" | "listing.listing.driver_invited_to_bid" | "listing.listing.provider_invited_to_bid" | "listing.bid_thread.action_added" | "operations.case.operator_assigned" | "operations.case.group_assigned" | "operations.case.message" | "operations.case.file_added" | "billing.statement.opened" | "billing.statement.paid" | "billing.line_item_group.message" | "billing.line_item_group.file_added" | "billing.line_item.file_added" | "tracking.session.destination_geofence_entered";
|
|
10
10
|
export declare const NotificationEventsForOrgsEnum: {
|
|
11
11
|
readonly ShippingOrderStaged: "shipping.order.staged";
|
|
12
12
|
readonly ShippingOrderCompleted: "shipping.order.completed";
|
|
@@ -37,4 +37,5 @@ export declare const NotificationEventsForOrgsEnum: {
|
|
|
37
37
|
readonly BillingLineItemGroupMessage: "billing.line_item_group.message";
|
|
38
38
|
readonly BillingLineItemGroupFileAdded: "billing.line_item_group.file_added";
|
|
39
39
|
readonly BillingLineItemFileAdded: "billing.line_item.file_added";
|
|
40
|
+
readonly TrackingSessionDestinationGeofenceEntered: "tracking.session.destination_geofence_entered";
|
|
40
41
|
};
|
|
@@ -34,4 +34,5 @@ exports.NotificationEventsForOrgsEnum = {
|
|
|
34
34
|
BillingLineItemGroupMessage: "billing.line_item_group.message",
|
|
35
35
|
BillingLineItemGroupFileAdded: "billing.line_item_group.file_added",
|
|
36
36
|
BillingLineItemFileAdded: "billing.line_item.file_added",
|
|
37
|
+
TrackingSessionDestinationGeofenceEntered: "tracking.session.destination_geofence_entered",
|
|
37
38
|
};
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* - Order events: via `order.created_by_user_id`
|
|
9
9
|
* - TaskGroup events: via `task_group.driver_id`
|
|
10
10
|
*/
|
|
11
|
-
export type NotificationEventsForUsersEnum = "shipping.order.staged" | "shipping.order.completed" | "shipping.order.cancelled" | "shipping.task_group.driver_assigned" | "shipping.task_group.message" | "shipping.task_group.tasks_ordering_updated" | "shipping.task_group.flight_info_updated" | "shipping.task.executor_org_note_added" | "listing.listing.driver_invited_to_bid" | "listing.bid_thread.action_added" | "operations.case.operator_assigned" | "operations.case.group_assigned" | "operations.case.message" | "operations.case.file_added" | "billing.line_item_group.message" | "billing.line_item_group.file_added";
|
|
11
|
+
export type NotificationEventsForUsersEnum = "shipping.order.staged" | "shipping.order.completed" | "shipping.order.cancelled" | "shipping.task_group.driver_assigned" | "shipping.task_group.message" | "shipping.task_group.tasks_ordering_updated" | "shipping.task_group.flight_info_updated" | "shipping.task.executor_org_note_added" | "listing.listing.driver_invited_to_bid" | "listing.bid_thread.action_added" | "operations.case.operator_assigned" | "operations.case.group_assigned" | "operations.case.message" | "operations.case.file_added" | "billing.line_item_group.message" | "billing.line_item_group.file_added" | "tracking.session.destination_geofence_entered";
|
|
12
12
|
export declare const NotificationEventsForUsersEnum: {
|
|
13
13
|
readonly ShippingOrderStaged: "shipping.order.staged";
|
|
14
14
|
readonly ShippingOrderCompleted: "shipping.order.completed";
|
|
@@ -26,4 +26,5 @@ export declare const NotificationEventsForUsersEnum: {
|
|
|
26
26
|
readonly OperationsCaseFileAdded: "operations.case.file_added";
|
|
27
27
|
readonly BillingLineItemGroupMessage: "billing.line_item_group.message";
|
|
28
28
|
readonly BillingLineItemGroupFileAdded: "billing.line_item_group.file_added";
|
|
29
|
+
readonly TrackingSessionDestinationGeofenceEntered: "tracking.session.destination_geofence_entered";
|
|
29
30
|
};
|
|
@@ -21,4 +21,5 @@ exports.NotificationEventsForUsersEnum = {
|
|
|
21
21
|
OperationsCaseFileAdded: "operations.case.file_added",
|
|
22
22
|
BillingLineItemGroupMessage: "billing.line_item_group.message",
|
|
23
23
|
BillingLineItemGroupFileAdded: "billing.line_item_group.file_added",
|
|
24
|
+
TrackingSessionDestinationGeofenceEntered: "tracking.session.destination_geofence_entered",
|
|
24
25
|
};
|
|
@@ -9,7 +9,8 @@ export interface NotificationIntentAdHoc1 {
|
|
|
9
9
|
created_by_org_id: string;
|
|
10
10
|
/** Must be a string starting with `user_` */
|
|
11
11
|
created_by_user_id: string;
|
|
12
|
-
order_id
|
|
12
|
+
order_id?: string | null;
|
|
13
|
+
session_id?: string | null;
|
|
13
14
|
directory_entry_id: string;
|
|
14
15
|
email_events?: Chrt.NotificationEventsForAdHocEnum[];
|
|
15
16
|
push_events?: Chrt.NotificationEventsForAdHocEnum[];
|
|
@@ -1,14 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as Chrt from "
|
|
5
|
-
/**
|
|
6
|
-
* @example
|
|
7
|
-
* {
|
|
8
|
-
* schema_version: 1,
|
|
9
|
-
* directory_entry_id: "directory_entry_id"
|
|
10
|
-
* }
|
|
11
|
-
*/
|
|
4
|
+
import * as Chrt from "../index.js";
|
|
12
5
|
export interface NotificationIntentAdHocClientCreate1 {
|
|
13
6
|
schema_version: number;
|
|
14
7
|
directory_entry_id: string;
|
|
@@ -1,22 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export type OnboardCourierTaskActionEnum1 = "
|
|
4
|
+
export type OnboardCourierTaskActionEnum1 = "obc__cargo_picked_up" | "obc__courier_thru_security" | "obc__courier_boarded_flight" | "obc__courier_deboarded_flight" | "obc__courier_cleared_customs" | "obc__cargo_delivered";
|
|
5
5
|
export declare const OnboardCourierTaskActionEnum1: {
|
|
6
|
-
readonly ObcCourierDepartedForPickupLocation: "obc__courier_departed_for_pickup_location";
|
|
7
|
-
readonly ObcCourierArrivedAtPickupLocation: "obc__courier_arrived_at_pickup_location";
|
|
8
6
|
readonly ObcCargoPickedUp: "obc__cargo_picked_up";
|
|
9
|
-
readonly ObcCourierDepartedForAirport: "obc__courier_departed_for_airport";
|
|
10
|
-
readonly ObcCourierArrivedAtAirport: "obc__courier_arrived_at_airport";
|
|
11
7
|
readonly ObcCourierThruSecurity: "obc__courier_thru_security";
|
|
12
|
-
readonly ObcCargoReceivedByAirline: "obc__cargo_received_by_airline";
|
|
13
8
|
readonly ObcCourierBoardedFlight: "obc__courier_boarded_flight";
|
|
14
|
-
readonly ObcFlightDeparted: "obc__flight_departed";
|
|
15
|
-
readonly ObcFlightArrived: "obc__flight_arrived";
|
|
16
9
|
readonly ObcCourierDeboardedFlight: "obc__courier_deboarded_flight";
|
|
17
10
|
readonly ObcCourierClearedCustoms: "obc__courier_cleared_customs";
|
|
18
|
-
readonly ObcCourierRecoveredCargo: "obc__courier_recovered_cargo";
|
|
19
|
-
readonly ObcCourierDepartedForDeliveryLocation: "obc__courier_departed_for_delivery_location";
|
|
20
|
-
readonly ObcCourierArrivedAtDeliveryLocation: "obc__courier_arrived_at_delivery_location";
|
|
21
11
|
readonly ObcCargoDelivered: "obc__cargo_delivered";
|
|
22
12
|
};
|
|
@@ -5,20 +5,10 @@
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.OnboardCourierTaskActionEnum1 = void 0;
|
|
7
7
|
exports.OnboardCourierTaskActionEnum1 = {
|
|
8
|
-
ObcCourierDepartedForPickupLocation: "obc__courier_departed_for_pickup_location",
|
|
9
|
-
ObcCourierArrivedAtPickupLocation: "obc__courier_arrived_at_pickup_location",
|
|
10
8
|
ObcCargoPickedUp: "obc__cargo_picked_up",
|
|
11
|
-
ObcCourierDepartedForAirport: "obc__courier_departed_for_airport",
|
|
12
|
-
ObcCourierArrivedAtAirport: "obc__courier_arrived_at_airport",
|
|
13
9
|
ObcCourierThruSecurity: "obc__courier_thru_security",
|
|
14
|
-
ObcCargoReceivedByAirline: "obc__cargo_received_by_airline",
|
|
15
10
|
ObcCourierBoardedFlight: "obc__courier_boarded_flight",
|
|
16
|
-
ObcFlightDeparted: "obc__flight_departed",
|
|
17
|
-
ObcFlightArrived: "obc__flight_arrived",
|
|
18
11
|
ObcCourierDeboardedFlight: "obc__courier_deboarded_flight",
|
|
19
12
|
ObcCourierClearedCustoms: "obc__courier_cleared_customs",
|
|
20
|
-
ObcCourierRecoveredCargo: "obc__courier_recovered_cargo",
|
|
21
|
-
ObcCourierDepartedForDeliveryLocation: "obc__courier_departed_for_delivery_location",
|
|
22
|
-
ObcCourierArrivedAtDeliveryLocation: "obc__courier_arrived_at_delivery_location",
|
|
23
13
|
ObcCargoDelivered: "obc__cargo_delivered",
|
|
24
14
|
};
|
|
@@ -24,6 +24,9 @@ export interface Session1 {
|
|
|
24
24
|
last_seen_at_timestamp?: string | null;
|
|
25
25
|
last_seen_at_location_city?: string | null;
|
|
26
26
|
last_seen_at_location_large_city?: string | null;
|
|
27
|
+
destination_geofence_location?: Chrt.LocationFeature | null;
|
|
28
|
+
destination_geofence_radius_miles?: number;
|
|
29
|
+
destination_geofence_entered?: boolean;
|
|
27
30
|
fa_alert_ids?: number[];
|
|
28
31
|
flight_loaded_statuses?: string[];
|
|
29
32
|
fa_alert_id_by_flight_number?: Record<string, number>;
|
|
@@ -35,6 +35,7 @@ export interface TaskGroup1 {
|
|
|
35
35
|
exception_at_timestamp?: string | null;
|
|
36
36
|
task_group_type: Chrt.TaskGroupTypeEnum1;
|
|
37
37
|
vehicle_type?: Chrt.VehicleTypeEnum | null;
|
|
38
|
+
flight_setup_notes?: string | null;
|
|
38
39
|
mileage_estimated?: number | null;
|
|
39
40
|
mileage_observed?: number | null;
|
|
40
41
|
wait_time_total_minutes?: number | null;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export interface TrackingSessionDestinationGeofenceEnteredWebhookPayload {
|
|
5
|
+
event_type?: "tracking.session.destination_geofence_entered";
|
|
6
|
+
/** UTC timestamp when the event occurred */
|
|
7
|
+
event_timestamp: string;
|
|
8
|
+
/** The tracking session whose tracker entered the destination geofence */
|
|
9
|
+
session_id: string;
|
|
10
|
+
}
|
|
@@ -210,6 +210,7 @@ export * from "./NotificationGroupLimitedForDriver1.js";
|
|
|
210
210
|
export * from "./NotificationGroupListRes.js";
|
|
211
211
|
export * from "./NotificationGroupUserListRes.js";
|
|
212
212
|
export * from "./NotificationIntentAdHoc1.js";
|
|
213
|
+
export * from "./NotificationIntentAdHocClientCreate1.js";
|
|
213
214
|
export * from "./NotificationUserPreferences1.js";
|
|
214
215
|
export * from "./OffChrtProviderOrg1.js";
|
|
215
216
|
export * from "./OffChrtProviderOrgListRes.js";
|
|
@@ -405,6 +406,7 @@ export * from "./TiveTimeseriesRes.js";
|
|
|
405
406
|
export * from "./TiveTimeseriesSyncRes.js";
|
|
406
407
|
export * from "./TrackingDeviceTypeEnum1.js";
|
|
407
408
|
export * from "./TrackingOrgScopeEnum.js";
|
|
409
|
+
export * from "./TrackingSessionDestinationGeofenceEnteredWebhookPayload.js";
|
|
408
410
|
export * from "./TrackingSharingSettingsRes.js";
|
|
409
411
|
export * from "./TrackingTypeaheadFieldEnum.js";
|
|
410
412
|
export * from "./TrackingTypeaheadResult.js";
|
|
@@ -226,6 +226,7 @@ __exportStar(require("./NotificationGroupLimitedForDriver1.js"), exports);
|
|
|
226
226
|
__exportStar(require("./NotificationGroupListRes.js"), exports);
|
|
227
227
|
__exportStar(require("./NotificationGroupUserListRes.js"), exports);
|
|
228
228
|
__exportStar(require("./NotificationIntentAdHoc1.js"), exports);
|
|
229
|
+
__exportStar(require("./NotificationIntentAdHocClientCreate1.js"), exports);
|
|
229
230
|
__exportStar(require("./NotificationUserPreferences1.js"), exports);
|
|
230
231
|
__exportStar(require("./OffChrtProviderOrg1.js"), exports);
|
|
231
232
|
__exportStar(require("./OffChrtProviderOrgListRes.js"), exports);
|
|
@@ -421,6 +422,7 @@ __exportStar(require("./TiveTimeseriesRes.js"), exports);
|
|
|
421
422
|
__exportStar(require("./TiveTimeseriesSyncRes.js"), exports);
|
|
422
423
|
__exportStar(require("./TrackingDeviceTypeEnum1.js"), exports);
|
|
423
424
|
__exportStar(require("./TrackingOrgScopeEnum.js"), exports);
|
|
425
|
+
__exportStar(require("./TrackingSessionDestinationGeofenceEnteredWebhookPayload.js"), exports);
|
|
424
426
|
__exportStar(require("./TrackingSharingSettingsRes.js"), exports);
|
|
425
427
|
__exportStar(require("./TrackingTypeaheadFieldEnum.js"), exports);
|
|
426
428
|
__exportStar(require("./TrackingTypeaheadResult.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.772.0";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/Client.mjs
CHANGED
|
@@ -20,8 +20,8 @@ export class ChrtClient {
|
|
|
20
20
|
this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
|
|
21
21
|
"X-Fern-Language": "JavaScript",
|
|
22
22
|
"X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
|
|
23
|
-
"X-Fern-SDK-Version": "1.
|
|
24
|
-
"User-Agent": "@chrt-inc/typescript-sdk/1.
|
|
23
|
+
"X-Fern-SDK-Version": "1.772.0",
|
|
24
|
+
"User-Agent": "@chrt-inc/typescript-sdk/1.772.0",
|
|
25
25
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
26
26
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
27
27
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|