@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.
- package/lib/Auth/index.d.ts +8 -0
- package/lib/Auth/index.js +20 -0
- package/lib/Product/type.d.ts +2 -0
- package/package.json +2 -2
package/lib/Auth/index.d.ts
CHANGED
|
@@ -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;
|
package/lib/Product/type.d.ts
CHANGED
package/package.json
CHANGED