@bytexbyte/ike-app-api 1.0.24 → 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.
@@ -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
@@ -509,7 +509,7 @@ var IKEAppUserApi = /** @class */ (function (_super) {
509
509
  case 0:
510
510
  searchParams = new URLSearchParams();
511
511
  if (query.ignoerTagUid)
512
- searchParams.append('ignoerTagUids', query.ignoerTagUid);
512
+ searchParams.append('ignoerTagUid', query.ignoerTagUid);
513
513
  if (query.limit)
514
514
  searchParams.append('limit', query.limit.toString());
515
515
  return [4 /*yield*/, this.bxbFetch({
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bytexbyte/ike-app-api",
3
- "version": "1.0.24",
3
+ "version": "1.0.26",
4
4
  "description": "app api",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",