@chrt-inc/typescript-sdk 1.391.0 → 1.396.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/users/client/Client.d.ts +15 -0
- package/dist/cjs/api/resources/users/client/Client.js +64 -0
- package/dist/cjs/api/resources/users/client/requests/FirebaseCloudMessagingTokenClientCreate1.d.ts +14 -0
- package/dist/cjs/api/resources/users/client/requests/FirebaseCloudMessagingTokenClientCreate1.js +5 -0
- package/dist/cjs/api/resources/users/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/types/FirebaseCloudMessagingTokenData1.d.ts +9 -0
- package/dist/cjs/api/types/FirebaseCloudMessagingTokenData1.js +5 -0
- package/dist/cjs/api/types/PlatformEnum.d.ts +9 -0
- package/dist/cjs/api/types/PlatformEnum.js +11 -0
- package/dist/cjs/api/types/UserPrivateData1.d.ts +2 -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/users/client/Client.d.mts +15 -0
- package/dist/esm/api/resources/users/client/Client.mjs +64 -0
- package/dist/esm/api/resources/users/client/requests/FirebaseCloudMessagingTokenClientCreate1.d.mts +14 -0
- package/dist/esm/api/resources/users/client/requests/FirebaseCloudMessagingTokenClientCreate1.mjs +4 -0
- package/dist/esm/api/resources/users/client/requests/index.d.mts +1 -0
- package/dist/esm/api/types/FirebaseCloudMessagingTokenData1.d.mts +9 -0
- package/dist/esm/api/types/FirebaseCloudMessagingTokenData1.mjs +4 -0
- package/dist/esm/api/types/PlatformEnum.d.mts +9 -0
- package/dist/esm/api/types/PlatformEnum.mjs +8 -0
- package/dist/esm/api/types/UserPrivateData1.d.mts +2 -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 +65 -0
package/dist/cjs/Client.js
CHANGED
|
@@ -67,8 +67,8 @@ class ChrtClient {
|
|
|
67
67
|
this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
|
|
68
68
|
"X-Fern-Language": "JavaScript",
|
|
69
69
|
"X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
|
|
70
|
-
"X-Fern-SDK-Version": "1.
|
|
71
|
-
"User-Agent": "@chrt-inc/typescript-sdk/1.
|
|
70
|
+
"X-Fern-SDK-Version": "1.396.0",
|
|
71
|
+
"User-Agent": "@chrt-inc/typescript-sdk/1.396.0",
|
|
72
72
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
73
73
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
74
74
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -78,5 +78,20 @@ export declare class Users {
|
|
|
78
78
|
*/
|
|
79
79
|
updateUserPrivateDataV1(request?: Chrt.UserPrivateDataClientUpdate1, requestOptions?: Users.RequestOptions): core.HttpResponsePromise<Chrt.UserPrivateData1>;
|
|
80
80
|
private __updateUserPrivateDataV1;
|
|
81
|
+
/**
|
|
82
|
+
* Upserts a Firebase Cloud Messaging token for the caller. Dedupes on token; if token exists, updates last_used_timestamp. | (FirebaseCloudMessagingTokenClientCreate1) -> (UserPrivateData1)
|
|
83
|
+
*
|
|
84
|
+
* @param {Chrt.FirebaseCloudMessagingTokenClientCreate1} request
|
|
85
|
+
* @param {Users.RequestOptions} requestOptions - Request-specific configuration.
|
|
86
|
+
*
|
|
87
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
88
|
+
*
|
|
89
|
+
* @example
|
|
90
|
+
* await client.users.upsertFirebaseCloudMessagingTokenV1({
|
|
91
|
+
* firebase_cloud_messaging_token: "firebase_cloud_messaging_token"
|
|
92
|
+
* })
|
|
93
|
+
*/
|
|
94
|
+
upsertFirebaseCloudMessagingTokenV1(request: Chrt.FirebaseCloudMessagingTokenClientCreate1, requestOptions?: Users.RequestOptions): core.HttpResponsePromise<Chrt.UserPrivateData1>;
|
|
95
|
+
private __upsertFirebaseCloudMessagingTokenV1;
|
|
81
96
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
82
97
|
}
|
|
@@ -283,6 +283,70 @@ class Users {
|
|
|
283
283
|
}
|
|
284
284
|
});
|
|
285
285
|
}
|
|
286
|
+
/**
|
|
287
|
+
* Upserts a Firebase Cloud Messaging token for the caller. Dedupes on token; if token exists, updates last_used_timestamp. | (FirebaseCloudMessagingTokenClientCreate1) -> (UserPrivateData1)
|
|
288
|
+
*
|
|
289
|
+
* @param {Chrt.FirebaseCloudMessagingTokenClientCreate1} request
|
|
290
|
+
* @param {Users.RequestOptions} requestOptions - Request-specific configuration.
|
|
291
|
+
*
|
|
292
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
293
|
+
*
|
|
294
|
+
* @example
|
|
295
|
+
* await client.users.upsertFirebaseCloudMessagingTokenV1({
|
|
296
|
+
* firebase_cloud_messaging_token: "firebase_cloud_messaging_token"
|
|
297
|
+
* })
|
|
298
|
+
*/
|
|
299
|
+
upsertFirebaseCloudMessagingTokenV1(request, requestOptions) {
|
|
300
|
+
return core.HttpResponsePromise.fromPromise(this.__upsertFirebaseCloudMessagingTokenV1(request, requestOptions));
|
|
301
|
+
}
|
|
302
|
+
__upsertFirebaseCloudMessagingTokenV1(request, requestOptions) {
|
|
303
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
304
|
+
var _a, _b, _c, _d;
|
|
305
|
+
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);
|
|
306
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
307
|
+
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, "users/user_private_data/firebase_cloud_messaging_token/v1"),
|
|
308
|
+
method: "PUT",
|
|
309
|
+
headers: _headers,
|
|
310
|
+
contentType: "application/json",
|
|
311
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
312
|
+
requestType: "json",
|
|
313
|
+
body: request,
|
|
314
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
315
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
316
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
317
|
+
});
|
|
318
|
+
if (_response.ok) {
|
|
319
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
320
|
+
}
|
|
321
|
+
if (_response.error.reason === "status-code") {
|
|
322
|
+
switch (_response.error.statusCode) {
|
|
323
|
+
case 422:
|
|
324
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
325
|
+
default:
|
|
326
|
+
throw new errors.ChrtError({
|
|
327
|
+
statusCode: _response.error.statusCode,
|
|
328
|
+
body: _response.error.body,
|
|
329
|
+
rawResponse: _response.rawResponse,
|
|
330
|
+
});
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
switch (_response.error.reason) {
|
|
334
|
+
case "non-json":
|
|
335
|
+
throw new errors.ChrtError({
|
|
336
|
+
statusCode: _response.error.statusCode,
|
|
337
|
+
body: _response.error.rawBody,
|
|
338
|
+
rawResponse: _response.rawResponse,
|
|
339
|
+
});
|
|
340
|
+
case "timeout":
|
|
341
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PUT /users/user_private_data/firebase_cloud_messaging_token/v1.");
|
|
342
|
+
case "unknown":
|
|
343
|
+
throw new errors.ChrtError({
|
|
344
|
+
message: _response.error.errorMessage,
|
|
345
|
+
rawResponse: _response.rawResponse,
|
|
346
|
+
});
|
|
347
|
+
}
|
|
348
|
+
});
|
|
349
|
+
}
|
|
286
350
|
_getAuthorizationHeader() {
|
|
287
351
|
return __awaiter(this, void 0, void 0, function* () {
|
|
288
352
|
const bearer = yield core.Supplier.get(this._options.token);
|
package/dist/cjs/api/resources/users/client/requests/FirebaseCloudMessagingTokenClientCreate1.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Chrt from "../../../../index.js";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* firebase_cloud_messaging_token: "firebase_cloud_messaging_token"
|
|
9
|
+
* }
|
|
10
|
+
*/
|
|
11
|
+
export interface FirebaseCloudMessagingTokenClientCreate1 {
|
|
12
|
+
firebase_cloud_messaging_token: string;
|
|
13
|
+
platform?: Chrt.PlatformEnum | null;
|
|
14
|
+
}
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
export { type UserPrivateDataClientCreate1 } from "./UserPrivateDataClientCreate1.js";
|
|
2
2
|
export { type UserPrivateDataClientUpdate1 } from "./UserPrivateDataClientUpdate1.js";
|
|
3
|
+
export { type FirebaseCloudMessagingTokenClientCreate1 } from "./FirebaseCloudMessagingTokenClientCreate1.js";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Chrt from "../index.js";
|
|
5
|
+
export interface FirebaseCloudMessagingTokenData1 {
|
|
6
|
+
firebase_cloud_messaging_token: string;
|
|
7
|
+
platform?: Chrt.PlatformEnum | null;
|
|
8
|
+
last_used_timestamp: string;
|
|
9
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.PlatformEnum = void 0;
|
|
7
|
+
exports.PlatformEnum = {
|
|
8
|
+
Android: "android",
|
|
9
|
+
Ios: "ios",
|
|
10
|
+
Web: "web",
|
|
11
|
+
};
|
|
@@ -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
|
export interface UserPrivateData1 {
|
|
5
6
|
schema_version: number;
|
|
6
7
|
created_at_timestamp: string;
|
|
@@ -8,5 +9,6 @@ export interface UserPrivateData1 {
|
|
|
8
9
|
stripe_customer_id?: string | null;
|
|
9
10
|
primary_email_address?: string | null;
|
|
10
11
|
phone_number?: string | null;
|
|
12
|
+
firebase_cloud_messaging_token_data?: Chrt.FirebaseCloudMessagingTokenData1[];
|
|
11
13
|
_id: string;
|
|
12
14
|
}
|
|
@@ -32,6 +32,7 @@ export * from "./Driver1.js";
|
|
|
32
32
|
export * from "./DriverStatusEnum.js";
|
|
33
33
|
export * from "./DriverUpdateAvailabilityReq.js";
|
|
34
34
|
export * from "./DriverUpdateRes.js";
|
|
35
|
+
export * from "./FirebaseCloudMessagingTokenData1.js";
|
|
35
36
|
export * from "./FlightInfoForTaskRes.js";
|
|
36
37
|
export * from "./FlightTaskActionEnum1.js";
|
|
37
38
|
export * from "./ForwarderConnectionRes.js";
|
|
@@ -87,6 +88,7 @@ export * from "./OrgTypeEnum.js";
|
|
|
87
88
|
export * from "./OutlierLabellerEnum.js";
|
|
88
89
|
export * from "./PaymentRoleFilterEnum.js";
|
|
89
90
|
export * from "./PaymentVectorTypeEnum1.js";
|
|
91
|
+
export * from "./PlatformEnum.js";
|
|
90
92
|
export * from "./Point.js";
|
|
91
93
|
export * from "./Polygon.js";
|
|
92
94
|
export * from "./Position2D.js";
|
|
@@ -48,6 +48,7 @@ __exportStar(require("./Driver1.js"), exports);
|
|
|
48
48
|
__exportStar(require("./DriverStatusEnum.js"), exports);
|
|
49
49
|
__exportStar(require("./DriverUpdateAvailabilityReq.js"), exports);
|
|
50
50
|
__exportStar(require("./DriverUpdateRes.js"), exports);
|
|
51
|
+
__exportStar(require("./FirebaseCloudMessagingTokenData1.js"), exports);
|
|
51
52
|
__exportStar(require("./FlightInfoForTaskRes.js"), exports);
|
|
52
53
|
__exportStar(require("./FlightTaskActionEnum1.js"), exports);
|
|
53
54
|
__exportStar(require("./ForwarderConnectionRes.js"), exports);
|
|
@@ -103,6 +104,7 @@ __exportStar(require("./OrgTypeEnum.js"), exports);
|
|
|
103
104
|
__exportStar(require("./OutlierLabellerEnum.js"), exports);
|
|
104
105
|
__exportStar(require("./PaymentRoleFilterEnum.js"), exports);
|
|
105
106
|
__exportStar(require("./PaymentVectorTypeEnum1.js"), exports);
|
|
107
|
+
__exportStar(require("./PlatformEnum.js"), exports);
|
|
106
108
|
__exportStar(require("./Point.js"), exports);
|
|
107
109
|
__exportStar(require("./Polygon.js"), exports);
|
|
108
110
|
__exportStar(require("./Position2D.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.396.0";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/Client.mjs
CHANGED
|
@@ -31,8 +31,8 @@ export class ChrtClient {
|
|
|
31
31
|
this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
|
|
32
32
|
"X-Fern-Language": "JavaScript",
|
|
33
33
|
"X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
|
|
34
|
-
"X-Fern-SDK-Version": "1.
|
|
35
|
-
"User-Agent": "@chrt-inc/typescript-sdk/1.
|
|
34
|
+
"X-Fern-SDK-Version": "1.396.0",
|
|
35
|
+
"User-Agent": "@chrt-inc/typescript-sdk/1.396.0",
|
|
36
36
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
37
37
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
38
38
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -78,5 +78,20 @@ export declare class Users {
|
|
|
78
78
|
*/
|
|
79
79
|
updateUserPrivateDataV1(request?: Chrt.UserPrivateDataClientUpdate1, requestOptions?: Users.RequestOptions): core.HttpResponsePromise<Chrt.UserPrivateData1>;
|
|
80
80
|
private __updateUserPrivateDataV1;
|
|
81
|
+
/**
|
|
82
|
+
* Upserts a Firebase Cloud Messaging token for the caller. Dedupes on token; if token exists, updates last_used_timestamp. | (FirebaseCloudMessagingTokenClientCreate1) -> (UserPrivateData1)
|
|
83
|
+
*
|
|
84
|
+
* @param {Chrt.FirebaseCloudMessagingTokenClientCreate1} request
|
|
85
|
+
* @param {Users.RequestOptions} requestOptions - Request-specific configuration.
|
|
86
|
+
*
|
|
87
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
88
|
+
*
|
|
89
|
+
* @example
|
|
90
|
+
* await client.users.upsertFirebaseCloudMessagingTokenV1({
|
|
91
|
+
* firebase_cloud_messaging_token: "firebase_cloud_messaging_token"
|
|
92
|
+
* })
|
|
93
|
+
*/
|
|
94
|
+
upsertFirebaseCloudMessagingTokenV1(request: Chrt.FirebaseCloudMessagingTokenClientCreate1, requestOptions?: Users.RequestOptions): core.HttpResponsePromise<Chrt.UserPrivateData1>;
|
|
95
|
+
private __upsertFirebaseCloudMessagingTokenV1;
|
|
81
96
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
82
97
|
}
|
|
@@ -247,6 +247,70 @@ export class Users {
|
|
|
247
247
|
}
|
|
248
248
|
});
|
|
249
249
|
}
|
|
250
|
+
/**
|
|
251
|
+
* Upserts a Firebase Cloud Messaging token for the caller. Dedupes on token; if token exists, updates last_used_timestamp. | (FirebaseCloudMessagingTokenClientCreate1) -> (UserPrivateData1)
|
|
252
|
+
*
|
|
253
|
+
* @param {Chrt.FirebaseCloudMessagingTokenClientCreate1} request
|
|
254
|
+
* @param {Users.RequestOptions} requestOptions - Request-specific configuration.
|
|
255
|
+
*
|
|
256
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
257
|
+
*
|
|
258
|
+
* @example
|
|
259
|
+
* await client.users.upsertFirebaseCloudMessagingTokenV1({
|
|
260
|
+
* firebase_cloud_messaging_token: "firebase_cloud_messaging_token"
|
|
261
|
+
* })
|
|
262
|
+
*/
|
|
263
|
+
upsertFirebaseCloudMessagingTokenV1(request, requestOptions) {
|
|
264
|
+
return core.HttpResponsePromise.fromPromise(this.__upsertFirebaseCloudMessagingTokenV1(request, requestOptions));
|
|
265
|
+
}
|
|
266
|
+
__upsertFirebaseCloudMessagingTokenV1(request, requestOptions) {
|
|
267
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
268
|
+
var _a, _b, _c, _d;
|
|
269
|
+
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);
|
|
270
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
271
|
+
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, "users/user_private_data/firebase_cloud_messaging_token/v1"),
|
|
272
|
+
method: "PUT",
|
|
273
|
+
headers: _headers,
|
|
274
|
+
contentType: "application/json",
|
|
275
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
276
|
+
requestType: "json",
|
|
277
|
+
body: request,
|
|
278
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
279
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
280
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
281
|
+
});
|
|
282
|
+
if (_response.ok) {
|
|
283
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
284
|
+
}
|
|
285
|
+
if (_response.error.reason === "status-code") {
|
|
286
|
+
switch (_response.error.statusCode) {
|
|
287
|
+
case 422:
|
|
288
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
289
|
+
default:
|
|
290
|
+
throw new errors.ChrtError({
|
|
291
|
+
statusCode: _response.error.statusCode,
|
|
292
|
+
body: _response.error.body,
|
|
293
|
+
rawResponse: _response.rawResponse,
|
|
294
|
+
});
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
switch (_response.error.reason) {
|
|
298
|
+
case "non-json":
|
|
299
|
+
throw new errors.ChrtError({
|
|
300
|
+
statusCode: _response.error.statusCode,
|
|
301
|
+
body: _response.error.rawBody,
|
|
302
|
+
rawResponse: _response.rawResponse,
|
|
303
|
+
});
|
|
304
|
+
case "timeout":
|
|
305
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PUT /users/user_private_data/firebase_cloud_messaging_token/v1.");
|
|
306
|
+
case "unknown":
|
|
307
|
+
throw new errors.ChrtError({
|
|
308
|
+
message: _response.error.errorMessage,
|
|
309
|
+
rawResponse: _response.rawResponse,
|
|
310
|
+
});
|
|
311
|
+
}
|
|
312
|
+
});
|
|
313
|
+
}
|
|
250
314
|
_getAuthorizationHeader() {
|
|
251
315
|
return __awaiter(this, void 0, void 0, function* () {
|
|
252
316
|
const bearer = yield core.Supplier.get(this._options.token);
|
package/dist/esm/api/resources/users/client/requests/FirebaseCloudMessagingTokenClientCreate1.d.mts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Chrt from "../../../../index.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* firebase_cloud_messaging_token: "firebase_cloud_messaging_token"
|
|
9
|
+
* }
|
|
10
|
+
*/
|
|
11
|
+
export interface FirebaseCloudMessagingTokenClientCreate1 {
|
|
12
|
+
firebase_cloud_messaging_token: string;
|
|
13
|
+
platform?: Chrt.PlatformEnum | null;
|
|
14
|
+
}
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
export { type UserPrivateDataClientCreate1 } from "./UserPrivateDataClientCreate1.mjs";
|
|
2
2
|
export { type UserPrivateDataClientUpdate1 } from "./UserPrivateDataClientUpdate1.mjs";
|
|
3
|
+
export { type FirebaseCloudMessagingTokenClientCreate1 } from "./FirebaseCloudMessagingTokenClientCreate1.mjs";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Chrt from "../index.mjs";
|
|
5
|
+
export interface FirebaseCloudMessagingTokenData1 {
|
|
6
|
+
firebase_cloud_messaging_token: string;
|
|
7
|
+
platform?: Chrt.PlatformEnum | null;
|
|
8
|
+
last_used_timestamp: string;
|
|
9
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as Chrt from "../index.mjs";
|
|
4
5
|
export interface UserPrivateData1 {
|
|
5
6
|
schema_version: number;
|
|
6
7
|
created_at_timestamp: string;
|
|
@@ -8,5 +9,6 @@ export interface UserPrivateData1 {
|
|
|
8
9
|
stripe_customer_id?: string | null;
|
|
9
10
|
primary_email_address?: string | null;
|
|
10
11
|
phone_number?: string | null;
|
|
12
|
+
firebase_cloud_messaging_token_data?: Chrt.FirebaseCloudMessagingTokenData1[];
|
|
11
13
|
_id: string;
|
|
12
14
|
}
|
|
@@ -32,6 +32,7 @@ export * from "./Driver1.mjs";
|
|
|
32
32
|
export * from "./DriverStatusEnum.mjs";
|
|
33
33
|
export * from "./DriverUpdateAvailabilityReq.mjs";
|
|
34
34
|
export * from "./DriverUpdateRes.mjs";
|
|
35
|
+
export * from "./FirebaseCloudMessagingTokenData1.mjs";
|
|
35
36
|
export * from "./FlightInfoForTaskRes.mjs";
|
|
36
37
|
export * from "./FlightTaskActionEnum1.mjs";
|
|
37
38
|
export * from "./ForwarderConnectionRes.mjs";
|
|
@@ -87,6 +88,7 @@ export * from "./OrgTypeEnum.mjs";
|
|
|
87
88
|
export * from "./OutlierLabellerEnum.mjs";
|
|
88
89
|
export * from "./PaymentRoleFilterEnum.mjs";
|
|
89
90
|
export * from "./PaymentVectorTypeEnum1.mjs";
|
|
91
|
+
export * from "./PlatformEnum.mjs";
|
|
90
92
|
export * from "./Point.mjs";
|
|
91
93
|
export * from "./Polygon.mjs";
|
|
92
94
|
export * from "./Position2D.mjs";
|
|
@@ -32,6 +32,7 @@ export * from "./Driver1.mjs";
|
|
|
32
32
|
export * from "./DriverStatusEnum.mjs";
|
|
33
33
|
export * from "./DriverUpdateAvailabilityReq.mjs";
|
|
34
34
|
export * from "./DriverUpdateRes.mjs";
|
|
35
|
+
export * from "./FirebaseCloudMessagingTokenData1.mjs";
|
|
35
36
|
export * from "./FlightInfoForTaskRes.mjs";
|
|
36
37
|
export * from "./FlightTaskActionEnum1.mjs";
|
|
37
38
|
export * from "./ForwarderConnectionRes.mjs";
|
|
@@ -87,6 +88,7 @@ export * from "./OrgTypeEnum.mjs";
|
|
|
87
88
|
export * from "./OutlierLabellerEnum.mjs";
|
|
88
89
|
export * from "./PaymentRoleFilterEnum.mjs";
|
|
89
90
|
export * from "./PaymentVectorTypeEnum1.mjs";
|
|
91
|
+
export * from "./PlatformEnum.mjs";
|
|
90
92
|
export * from "./Point.mjs";
|
|
91
93
|
export * from "./Polygon.mjs";
|
|
92
94
|
export * from "./Position2D.mjs";
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.
|
|
1
|
+
export declare const SDK_VERSION = "1.396.0";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "1.
|
|
1
|
+
export const SDK_VERSION = "1.396.0";
|
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -5282,6 +5282,71 @@ await client.users.updateUserPrivateDataV1();
|
|
|
5282
5282
|
</dl>
|
|
5283
5283
|
</details>
|
|
5284
5284
|
|
|
5285
|
+
<details><summary><code>client.users.<a href="/src/api/resources/users/client/Client.ts">upsertFirebaseCloudMessagingTokenV1</a>({ ...params }) -> Chrt.UserPrivateData1</code></summary>
|
|
5286
|
+
<dl>
|
|
5287
|
+
<dd>
|
|
5288
|
+
|
|
5289
|
+
#### 📝 Description
|
|
5290
|
+
|
|
5291
|
+
<dl>
|
|
5292
|
+
<dd>
|
|
5293
|
+
|
|
5294
|
+
<dl>
|
|
5295
|
+
<dd>
|
|
5296
|
+
|
|
5297
|
+
Upserts a Firebase Cloud Messaging token for the caller. Dedupes on token; if token exists, updates last_used_timestamp. | (FirebaseCloudMessagingTokenClientCreate1) -> (UserPrivateData1)
|
|
5298
|
+
|
|
5299
|
+
</dd>
|
|
5300
|
+
</dl>
|
|
5301
|
+
</dd>
|
|
5302
|
+
</dl>
|
|
5303
|
+
|
|
5304
|
+
#### 🔌 Usage
|
|
5305
|
+
|
|
5306
|
+
<dl>
|
|
5307
|
+
<dd>
|
|
5308
|
+
|
|
5309
|
+
<dl>
|
|
5310
|
+
<dd>
|
|
5311
|
+
|
|
5312
|
+
```typescript
|
|
5313
|
+
await client.users.upsertFirebaseCloudMessagingTokenV1({
|
|
5314
|
+
firebase_cloud_messaging_token: "firebase_cloud_messaging_token",
|
|
5315
|
+
});
|
|
5316
|
+
```
|
|
5317
|
+
|
|
5318
|
+
</dd>
|
|
5319
|
+
</dl>
|
|
5320
|
+
</dd>
|
|
5321
|
+
</dl>
|
|
5322
|
+
|
|
5323
|
+
#### ⚙️ Parameters
|
|
5324
|
+
|
|
5325
|
+
<dl>
|
|
5326
|
+
<dd>
|
|
5327
|
+
|
|
5328
|
+
<dl>
|
|
5329
|
+
<dd>
|
|
5330
|
+
|
|
5331
|
+
**request:** `Chrt.FirebaseCloudMessagingTokenClientCreate1`
|
|
5332
|
+
|
|
5333
|
+
</dd>
|
|
5334
|
+
</dl>
|
|
5335
|
+
|
|
5336
|
+
<dl>
|
|
5337
|
+
<dd>
|
|
5338
|
+
|
|
5339
|
+
**requestOptions:** `Users.RequestOptions`
|
|
5340
|
+
|
|
5341
|
+
</dd>
|
|
5342
|
+
</dl>
|
|
5343
|
+
</dd>
|
|
5344
|
+
</dl>
|
|
5345
|
+
|
|
5346
|
+
</dd>
|
|
5347
|
+
</dl>
|
|
5348
|
+
</details>
|
|
5349
|
+
|
|
5285
5350
|
## Utils
|
|
5286
5351
|
|
|
5287
5352
|
<details><summary><code>client.utils.<a href="/src/api/resources/utils/client/Client.ts">getTimezoneV1</a>({ ...params }) -> Chrt.TimezoneResponse</code></summary>
|