@bytexbyte/ike-app-api 1.0.42 → 1.0.44
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/type.d.ts +10 -1
- package/lib/User/index.d.ts +4 -4
- package/lib/types.d.ts +4 -4
- package/lib/types.js +2 -2
- package/package.json +1 -1
package/lib/Auth/type.d.ts
CHANGED
|
@@ -103,4 +103,13 @@ export declare type SignInPhoneBiometrics = (provider: 'phone-biometrics', form:
|
|
|
103
103
|
} | {
|
|
104
104
|
error: 'Authentication error.' | 'Field(s) cannot be empty.' | 'id not found.' | 'Sign in to turn on biometrics.' | 'New device login requires password credentials.' | 'signature error.' | 'URL not found.';
|
|
105
105
|
}>;
|
|
106
|
-
export declare type
|
|
106
|
+
export declare type SignInBerifyMe = (provider: 'berify-me', form: {
|
|
107
|
+
token: string;
|
|
108
|
+
csrfToken?: string;
|
|
109
|
+
}) => Promise<{
|
|
110
|
+
id: string;
|
|
111
|
+
idVerified: Date | null;
|
|
112
|
+
} | {
|
|
113
|
+
error: 'Authentication error.' | 'Field(s) cannot be empty.' | 'id not found.' | 'Sign in to turn on biometrics.' | 'New device login requires password credentials.' | 'signature error.' | 'URL not found.';
|
|
114
|
+
}>;
|
|
115
|
+
export declare type SignIn = SignInEmailPassword | SignInGoogleIos | SignInGoogleAndroid | SignInFacebookMobile | SignInAppleMobile | SignInEmailBiometrics | SignInKyc | SignInPhoneOTP | SignInPhoneBiometrics | SignInBerifyMe;
|
package/lib/User/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import BxBApi from '@bytexbyte/bxb-api';
|
|
2
|
-
import { User, UserLog,
|
|
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
|
-
|
|
183
|
-
|
|
182
|
+
action: UserLogAction;
|
|
183
|
+
detail: string;
|
|
184
184
|
}): Promise<UserLog | {
|
|
185
|
-
error: 'You are not logged in.' | 'Incorrect userId.' | 'Incorrect tagTokenId.' | 'Incorrect
|
|
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
|
-
|
|
604
|
-
|
|
603
|
+
action: UserLogAction;
|
|
604
|
+
detail: string;
|
|
605
605
|
createdAt: Date;
|
|
606
606
|
};
|
|
607
|
-
export declare const
|
|
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
|
|
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.
|
|
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.
|
|
65
|
+
exports.UserLogAction = {
|
|
66
66
|
signature: 'signature',
|
|
67
67
|
decryptToken: 'decryptToken',
|
|
68
68
|
origin: 'origin',
|