@bytexbyte/ike-app-api 1.0.42 → 1.0.43

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.
@@ -1,5 +1,5 @@
1
1
  import BxBApi from '@bytexbyte/bxb-api';
2
- import { User, UserLog, UserLogType, Wallet } from '../types';
2
+ import { User, UserLog, UserLogAction, Wallet } from '../types';
3
3
  declare type GetResult = {
4
4
  user: {
5
5
  email: string | null;
@@ -179,10 +179,10 @@ declare class IKEAppUserApi extends BxBApi {
179
179
  }>;
180
180
  createLog(userId: string, body: {
181
181
  tagTokenId: string;
182
- type: UserLogType;
183
- message: string;
182
+ action: UserLogAction;
183
+ detail: string;
184
184
  }): Promise<UserLog | {
185
- error: 'You are not logged in.' | 'Incorrect userId.' | 'Incorrect tagTokenId.' | 'Incorrect type.' | 'Incorrect message.' | 'You cannot create log to this user.' | 'Field(s) cannot be empty.' | 'User not found.' | 'User has not been verified.';
185
+ error: 'You are not logged in.' | 'Incorrect userId.' | 'Incorrect tagTokenId.' | 'Incorrect action.' | 'Incorrect detail.' | 'You cannot create log to this user.' | 'Field(s) cannot be empty.' | 'User not found.' | 'User has not been verified.';
186
186
  }>;
187
187
  }
188
188
  export default IKEAppUserApi;
package/lib/types.d.ts CHANGED
@@ -600,15 +600,15 @@ export declare type UserLog = {
600
600
  id: number;
601
601
  userId: string;
602
602
  tagTokenId: string;
603
- type: UserLogType;
604
- message: string;
603
+ action: UserLogAction;
604
+ detail: string;
605
605
  createdAt: Date;
606
606
  };
607
- export declare const UserLogType: {
607
+ export declare const UserLogAction: {
608
608
  signature: string;
609
609
  decryptToken: string;
610
610
  origin: string;
611
611
  connection: string;
612
612
  unknow: string;
613
613
  };
614
- export declare type UserLogType = typeof UserLogType[keyof typeof UserLogType];
614
+ export declare type UserLogAction = typeof UserLogAction[keyof typeof UserLogAction];
package/lib/types.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UserLogType = exports.LogType = exports.ContractStatusType = exports.ContractType = exports.MinimumPurchaseRequirementsType = exports.RewardType = exports.RuleType = exports.osType = exports.FromType = exports.NftStatusType = exports.AgeVerificationType = exports.BlockChainStatusType = void 0;
3
+ exports.UserLogAction = exports.LogType = exports.ContractStatusType = exports.ContractType = exports.MinimumPurchaseRequirementsType = exports.RewardType = exports.RuleType = exports.osType = exports.FromType = exports.NftStatusType = exports.AgeVerificationType = exports.BlockChainStatusType = void 0;
4
4
  /**
5
5
  * Enums
6
6
  */
@@ -62,7 +62,7 @@ exports.LogType = {
62
62
  rewardLog: 'rewardLog',
63
63
  pendingPointLog: 'pendingPointLog',
64
64
  };
65
- exports.UserLogType = {
65
+ exports.UserLogAction = {
66
66
  signature: 'signature',
67
67
  decryptToken: 'decryptToken',
68
68
  origin: 'origin',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bytexbyte/ike-app-api",
3
- "version": "1.0.42",
3
+ "version": "1.0.43",
4
4
  "description": "app api",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",