@bytexbyte/ike-app-api 1.0.80 → 1.0.81

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.
@@ -173,6 +173,14 @@ declare class IKEAppAuthApi extends BxBApi {
173
173
  } | {
174
174
  error: 'Field(s) cannot be empty.' | 'User not found.';
175
175
  }>;
176
+ /** Incode age estimation (face) flow completed in Link app; session user must match `userId`. Sets `isAgeVerified` on the server. */
177
+ confirmAgeEstimationComplete(body: {
178
+ userId: string;
179
+ }): Promise<{
180
+ success: true;
181
+ } | {
182
+ error: 'Field(s) cannot be empty.' | 'You are not logged in.' | 'You cannot make changes to this user.' | 'User not found.';
183
+ }>;
176
184
  isPhoneExisted(body: {
177
185
  phone: string;
178
186
  }): Promise<{
package/lib/Auth/index.js CHANGED
@@ -426,6 +426,26 @@ var IKEAppAuthApi = /** @class */ (function (_super) {
426
426
  });
427
427
  });
428
428
  };
429
+ /** Incode age estimation (face) flow completed in Link app; session user must match `userId`. Sets `isAgeVerified` on the server. */
430
+ IKEAppAuthApi.prototype.confirmAgeEstimationComplete = function (body) {
431
+ return __awaiter(this, void 0, void 0, function () {
432
+ var response;
433
+ return __generator(this, function (_a) {
434
+ switch (_a.label) {
435
+ case 0: return [4 /*yield*/, this.bxbFetch({
436
+ method: 'POST',
437
+ headers: {
438
+ 'Content-Type': 'application/json',
439
+ },
440
+ body: JSON.stringify(body),
441
+ }, "verify/age-estimation-complete")];
442
+ case 1:
443
+ response = _a.sent();
444
+ return [2 /*return*/, response.json()];
445
+ }
446
+ });
447
+ });
448
+ };
429
449
  IKEAppAuthApi.prototype.isPhoneExisted = function (body) {
430
450
  return __awaiter(this, void 0, void 0, function () {
431
451
  var response;
@@ -8,6 +8,8 @@ export declare type Product = {
8
8
  minVerifyTimer: number;
9
9
  maxVerifyTimer: number;
10
10
  isSmokeFree: boolean;
11
+ ageRestriction: number;
12
+ deviceStandbyTime: number;
11
13
  isScanningAllow: boolean;
12
14
  vendor: string;
13
15
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bytexbyte/ike-app-api",
3
- "version": "1.0.80",
3
+ "version": "1.0.81",
4
4
  "description": "app api",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -76,4 +76,4 @@
76
76
  "tsutils": "^2.29.0",
77
77
  "wrappy": "^1.0.2"
78
78
  }
79
- }
79
+ }