@bytexbyte/ike-app-api 1.0.25 → 1.0.26
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/User/index.d.ts +7 -0
- package/lib/User/index.js +19 -0
- package/package.json +1 -1
package/lib/User/index.d.ts
CHANGED
|
@@ -170,5 +170,12 @@ declare class IKEAppUserApi extends BxBApi {
|
|
|
170
170
|
limit?: number;
|
|
171
171
|
}): Promise<GetScanHistoryResult>;
|
|
172
172
|
removeScanHistoryByTagUid(userId: string, tagUid: string): Promise<RemoveScanHistoryResult>;
|
|
173
|
+
isValidationExpired(userId: string, body: {
|
|
174
|
+
tokenId: string;
|
|
175
|
+
}): Promise<{
|
|
176
|
+
isExpired: boolean;
|
|
177
|
+
} | {
|
|
178
|
+
error: 'You are not logged in.' | 'Incorrect userId.' | 'Incorrect tokenId.' | 'You cannot check to this user.' | 'Field(s) cannot be empty.' | 'User not found.';
|
|
179
|
+
}>;
|
|
173
180
|
}
|
|
174
181
|
export default IKEAppUserApi;
|
package/lib/User/index.js
CHANGED
|
@@ -553,6 +553,25 @@ var IKEAppUserApi = /** @class */ (function (_super) {
|
|
|
553
553
|
});
|
|
554
554
|
});
|
|
555
555
|
};
|
|
556
|
+
IKEAppUserApi.prototype.isValidationExpired = function (userId, body) {
|
|
557
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
558
|
+
var response;
|
|
559
|
+
return __generator(this, function (_a) {
|
|
560
|
+
switch (_a.label) {
|
|
561
|
+
case 0: return [4 /*yield*/, this.bxbFetch({
|
|
562
|
+
method: 'POST',
|
|
563
|
+
headers: {
|
|
564
|
+
'Content-Type': 'application/json',
|
|
565
|
+
},
|
|
566
|
+
body: JSON.stringify(body),
|
|
567
|
+
}, "".concat(userId, "/is-validation-expired"))];
|
|
568
|
+
case 1:
|
|
569
|
+
response = _a.sent();
|
|
570
|
+
return [2 /*return*/, response.json()];
|
|
571
|
+
}
|
|
572
|
+
});
|
|
573
|
+
});
|
|
574
|
+
};
|
|
556
575
|
return IKEAppUserApi;
|
|
557
576
|
}(bxb_api_1.default));
|
|
558
577
|
exports.default = IKEAppUserApi;
|