@bytexbyte/ike-app-api 1.0.29 → 1.0.30

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.
@@ -52,6 +52,7 @@ declare type PutUpdateDisplayName = {
52
52
  declare type PutUpdateDisplayNameResult = {
53
53
  error?: 'update error.';
54
54
  };
55
+ declare type TagCheckListStatus = 'pass' | 'fail' | 'none';
55
56
  declare class IKEAppTagsApi extends BxBApi {
56
57
  constructor({ host, onSuccess, onError }: {
57
58
  host: string;
@@ -71,5 +72,14 @@ declare class IKEAppTagsApi extends BxBApi {
71
72
  undoTransferOwner(tokenId: string, form: UndoTransferBody): Promise<PostResult>;
72
73
  updateInfoVisible(tokenId: string, form: PutInfoVisible): Promise<PutInfoVisibleResult>;
73
74
  updateDisplayName(tokenId: string, form: PutUpdateDisplayName): Promise<PutUpdateDisplayNameResult>;
75
+ updateCheckList(tokenId: string, form: {
76
+ testResult: {
77
+ [key: string]: TagCheckListStatus;
78
+ };
79
+ }): Promise<{
80
+ success: 'ok';
81
+ } | {
82
+ error: 'tokenId type error.';
83
+ }>;
74
84
  }
75
85
  export default IKEAppTagsApi;
package/lib/Tags/index.js CHANGED
@@ -272,6 +272,25 @@ var IKEAppTagsApi = /** @class */ (function (_super) {
272
272
  });
273
273
  });
274
274
  };
275
+ IKEAppTagsApi.prototype.updateCheckList = function (tokenId, form) {
276
+ return __awaiter(this, void 0, void 0, function () {
277
+ var resposne;
278
+ return __generator(this, function (_a) {
279
+ switch (_a.label) {
280
+ case 0: return [4 /*yield*/, this.bxbFetch({
281
+ method: 'PUT',
282
+ headers: {
283
+ 'Content-Type': 'application/json',
284
+ },
285
+ body: JSON.stringify(form),
286
+ }, "".concat(tokenId, "/checkList"))];
287
+ case 1:
288
+ resposne = _a.sent();
289
+ return [2 /*return*/, resposne.json()];
290
+ }
291
+ });
292
+ });
293
+ };
275
294
  return IKEAppTagsApi;
276
295
  }(bxb_api_1.default));
277
296
  exports.default = IKEAppTagsApi;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bytexbyte/ike-app-api",
3
- "version": "1.0.29",
3
+ "version": "1.0.30",
4
4
  "description": "app api",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",