feeef 0.5.38-dev.3 → 0.5.38-dev.4
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/build/index.js +295 -13
- package/build/index.js.map +1 -1
- package/build/src/core/entities/currency.d.ts +21 -0
- package/build/src/core/entities/user.d.ts +155 -0
- package/build/src/feeef/feeef.d.ts +10 -0
- package/build/src/feeef/repositories/currencies.d.ts +20 -0
- package/build/src/feeef/repositories/transfers.d.ts +38 -0
- package/build/src/feeef/repositories/users.d.ts +124 -12
- package/build/src/index.d.ts +5 -0
- package/package.json +1 -1
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Currency Entity
|
|
3
|
+
*
|
|
4
|
+
* Represents a currency with ISO 4217 code.
|
|
5
|
+
*/
|
|
6
|
+
export interface CurrencyEntity {
|
|
7
|
+
/** ISO 4217 currency code (e.g., USD, EUR, SAR) */
|
|
8
|
+
code: string;
|
|
9
|
+
/** Currency name (e.g., US Dollar, Euro, Saudi Riyal) */
|
|
10
|
+
name: string;
|
|
11
|
+
/** Currency symbol (e.g., $, €, ﷼) */
|
|
12
|
+
symbol?: string;
|
|
13
|
+
/** Number of decimal places */
|
|
14
|
+
decimals: number;
|
|
15
|
+
/** Exchange rate relative to base currency */
|
|
16
|
+
rate: number;
|
|
17
|
+
/** Additional metadata as key-value pairs */
|
|
18
|
+
metadata?: Record<string, any>;
|
|
19
|
+
/** Creation timestamp */
|
|
20
|
+
createdAt: any;
|
|
21
|
+
}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represents a user entity in the system.
|
|
3
|
+
*/
|
|
1
4
|
export interface UserEntity {
|
|
2
5
|
id: string;
|
|
3
6
|
name: string | null;
|
|
@@ -14,10 +17,16 @@ export interface UserEntity {
|
|
|
14
17
|
metadata: Record<string, any>;
|
|
15
18
|
wallet: EmbaddedWallet;
|
|
16
19
|
}
|
|
20
|
+
/**
|
|
21
|
+
* Represents an embedded wallet in a user entity.
|
|
22
|
+
*/
|
|
17
23
|
export interface EmbaddedWallet {
|
|
18
24
|
currency: 'DZD' | 'USD' | 'EUR';
|
|
19
25
|
balance: number;
|
|
20
26
|
}
|
|
27
|
+
/**
|
|
28
|
+
* Represents an authentication token.
|
|
29
|
+
*/
|
|
21
30
|
export interface AuthToken {
|
|
22
31
|
type: string;
|
|
23
32
|
name: string | null;
|
|
@@ -26,3 +35,149 @@ export interface AuthToken {
|
|
|
26
35
|
lastUsedAt: any;
|
|
27
36
|
expiresAt: any;
|
|
28
37
|
}
|
|
38
|
+
/**
|
|
39
|
+
* Options for creating a user (admin panel)
|
|
40
|
+
*/
|
|
41
|
+
export interface CreateUserOptions {
|
|
42
|
+
name: string;
|
|
43
|
+
email: string;
|
|
44
|
+
phone?: string;
|
|
45
|
+
password: string;
|
|
46
|
+
photoUrl?: string;
|
|
47
|
+
metadata?: Record<string, any>;
|
|
48
|
+
emailVerifiedAt?: string | Date;
|
|
49
|
+
phoneVerifiedAt?: string | Date;
|
|
50
|
+
verifiedAt?: string | Date;
|
|
51
|
+
blockedAt?: string | Date;
|
|
52
|
+
createdByAdmin?: boolean;
|
|
53
|
+
initialBalance?: number;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Options for updating a user
|
|
57
|
+
*/
|
|
58
|
+
export interface UpdateUserOptions {
|
|
59
|
+
name?: string;
|
|
60
|
+
email?: string;
|
|
61
|
+
phone?: string;
|
|
62
|
+
password?: string;
|
|
63
|
+
password_confirmation?: string;
|
|
64
|
+
photoUrl?: string;
|
|
65
|
+
metadata?: Record<string, any>;
|
|
66
|
+
emailVerifiedAt?: string | Date;
|
|
67
|
+
phoneVerifiedAt?: string | Date;
|
|
68
|
+
verifiedAt?: string | Date;
|
|
69
|
+
blockedAt?: string | Date;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Represents an access token (returned from tokens endpoint).
|
|
73
|
+
*/
|
|
74
|
+
export interface AccessToken {
|
|
75
|
+
id: string;
|
|
76
|
+
type: string;
|
|
77
|
+
name: string | null;
|
|
78
|
+
token: string;
|
|
79
|
+
abilities: string[];
|
|
80
|
+
lastUsedAt: any | null;
|
|
81
|
+
expiresAt: any | null;
|
|
82
|
+
createdAt: any;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Credentials for signing in.
|
|
86
|
+
*/
|
|
87
|
+
export interface SigninCredentials {
|
|
88
|
+
email: string;
|
|
89
|
+
password: string;
|
|
90
|
+
fcmToken?: string | null;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Credentials for signing up.
|
|
94
|
+
*/
|
|
95
|
+
export interface SignupCredentials {
|
|
96
|
+
referral?: string | null;
|
|
97
|
+
name: string;
|
|
98
|
+
email: string;
|
|
99
|
+
phone?: string;
|
|
100
|
+
password: string;
|
|
101
|
+
photoUrl?: string;
|
|
102
|
+
fcmToken?: string | null;
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Options for updating user profile.
|
|
106
|
+
*/
|
|
107
|
+
export interface UserUpdate {
|
|
108
|
+
name?: string;
|
|
109
|
+
email?: string;
|
|
110
|
+
phone?: string;
|
|
111
|
+
photoUrl?: string;
|
|
112
|
+
oldPassword?: string;
|
|
113
|
+
newPassword?: string;
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Options for transferring money between users.
|
|
117
|
+
*/
|
|
118
|
+
export interface TransferMoneyOptions {
|
|
119
|
+
recipientId?: string;
|
|
120
|
+
recipientEmail?: string;
|
|
121
|
+
recipientPhone?: string;
|
|
122
|
+
amount: number;
|
|
123
|
+
note?: string;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Response from a money transfer operation.
|
|
127
|
+
*/
|
|
128
|
+
export interface TransferMoneyResponse {
|
|
129
|
+
success: boolean;
|
|
130
|
+
sender: UserEntity;
|
|
131
|
+
recipient: UserEntity;
|
|
132
|
+
amount: number;
|
|
133
|
+
currency: string;
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Options for linking a social account.
|
|
137
|
+
*/
|
|
138
|
+
export interface LinkSocialAccountOptions {
|
|
139
|
+
provider: 'google' | 'github' | 'apple';
|
|
140
|
+
code: string;
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Options for signing in with a social provider.
|
|
144
|
+
*/
|
|
145
|
+
export interface SigninWithSocialOptions {
|
|
146
|
+
code: string;
|
|
147
|
+
fcmToken?: string | null;
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* Options for passkey registration start.
|
|
151
|
+
*/
|
|
152
|
+
export interface StartPasskeyRegistrationOptions {
|
|
153
|
+
deviceName?: string;
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* Options for finishing passkey registration.
|
|
157
|
+
*/
|
|
158
|
+
export interface FinishPasskeyRegistrationOptions {
|
|
159
|
+
registrationResponse: Record<string, any>;
|
|
160
|
+
deviceName?: string;
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* Options for starting passkey authentication.
|
|
164
|
+
*/
|
|
165
|
+
export interface StartPasskeyAuthenticationOptions {
|
|
166
|
+
email?: string;
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* Options for finishing passkey authentication.
|
|
170
|
+
*/
|
|
171
|
+
export interface FinishPasskeyAuthenticationOptions {
|
|
172
|
+
authenticationResponse: Record<string, any>;
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* Represents a passkey entry.
|
|
176
|
+
*/
|
|
177
|
+
export interface Passkey {
|
|
178
|
+
id: string;
|
|
179
|
+
name: string;
|
|
180
|
+
deviceName?: string;
|
|
181
|
+
createdAt: any;
|
|
182
|
+
lastUsedAt: any | null;
|
|
183
|
+
}
|
|
@@ -4,10 +4,12 @@ import { ProductRepository } from './repositories/products.js';
|
|
|
4
4
|
import { StoreRepository } from './repositories/stores.js';
|
|
5
5
|
import { UserRepository } from './repositories/users.js';
|
|
6
6
|
import { DepositRepository } from './repositories/deposits.js';
|
|
7
|
+
import { TransferRepository } from './repositories/transfers.js';
|
|
7
8
|
import { CategoryRepository } from './repositories/categories.js';
|
|
8
9
|
import { CountryRepository } from './repositories/countries.js';
|
|
9
10
|
import { StateRepository } from './repositories/states.js';
|
|
10
11
|
import { CityRepository } from './repositories/cities.js';
|
|
12
|
+
import { CurrencyRepository } from './repositories/currencies.js';
|
|
11
13
|
import { ShippingPriceRepository } from './repositories/shipping_prices.js';
|
|
12
14
|
import { CartService } from './services/cart.js';
|
|
13
15
|
import { ActionsService } from './services/actions.js';
|
|
@@ -67,6 +69,10 @@ export declare class FeeeF {
|
|
|
67
69
|
* The repository for managing deposits.
|
|
68
70
|
*/
|
|
69
71
|
deposits: DepositRepository;
|
|
72
|
+
/**
|
|
73
|
+
* The repository for managing transfers.
|
|
74
|
+
*/
|
|
75
|
+
transfers: TransferRepository;
|
|
70
76
|
/**
|
|
71
77
|
* The repository for managing categories.
|
|
72
78
|
*/
|
|
@@ -83,6 +89,10 @@ export declare class FeeeF {
|
|
|
83
89
|
* The repository for managing cities.
|
|
84
90
|
*/
|
|
85
91
|
cities: CityRepository;
|
|
92
|
+
/**
|
|
93
|
+
* The repository for managing currencies.
|
|
94
|
+
*/
|
|
95
|
+
currencies: CurrencyRepository;
|
|
86
96
|
/**
|
|
87
97
|
* The repository for managing shipping prices.
|
|
88
98
|
*/
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { AxiosInstance } from 'axios';
|
|
2
|
+
import { ModelRepository } from './repository.js';
|
|
3
|
+
import { CurrencyEntity } from '../../core/entities/currency.js';
|
|
4
|
+
/**
|
|
5
|
+
* Repository for managing Currency entities.
|
|
6
|
+
*/
|
|
7
|
+
export declare class CurrencyRepository extends ModelRepository<CurrencyEntity, any, any> {
|
|
8
|
+
/**
|
|
9
|
+
* Constructs a new CurrencyRepository instance.
|
|
10
|
+
* @param client The AxiosInstance used for making HTTP requests.
|
|
11
|
+
*/
|
|
12
|
+
constructor(client: AxiosInstance);
|
|
13
|
+
/**
|
|
14
|
+
* Finds a currency by its code (ID is the currency code).
|
|
15
|
+
* @param code - The currency code (ISO 4217, e.g., USD, EUR).
|
|
16
|
+
* @param params - Optional query parameters.
|
|
17
|
+
* @returns A Promise that resolves to the found Currency entity.
|
|
18
|
+
*/
|
|
19
|
+
findByCode(code: string, params?: Record<string, any>): Promise<CurrencyEntity>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { AxiosInstance } from 'axios';
|
|
2
|
+
import { ModelRepository } from './repository.js';
|
|
3
|
+
/**
|
|
4
|
+
* Represents a transfer entity for double-entry accounting transactions
|
|
5
|
+
*/
|
|
6
|
+
export interface TransferEntity {
|
|
7
|
+
id: string;
|
|
8
|
+
debitAccountId: string;
|
|
9
|
+
creditAccountId: string;
|
|
10
|
+
amount: number;
|
|
11
|
+
type: 'deposit' | 'subscription' | 'points' | 'store_due' | 'user_transfer' | 'ai_generation' | 'refund' | 'adjustment';
|
|
12
|
+
referenceId?: string | null;
|
|
13
|
+
description?: string | null;
|
|
14
|
+
metadata: Record<string, any>;
|
|
15
|
+
createdAt: any;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Input data for creating a new transfer
|
|
19
|
+
*/
|
|
20
|
+
export interface TransferCreateInput {
|
|
21
|
+
debitAccountId: string;
|
|
22
|
+
creditAccountId: string;
|
|
23
|
+
amount: number;
|
|
24
|
+
type: TransferEntity['type'];
|
|
25
|
+
referenceId?: string | null;
|
|
26
|
+
description?: string | null;
|
|
27
|
+
metadata?: Record<string, any>;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Repository for managing transfer data
|
|
31
|
+
*/
|
|
32
|
+
export declare class TransferRepository extends ModelRepository<TransferEntity, TransferCreateInput, any> {
|
|
33
|
+
/**
|
|
34
|
+
* Constructs a new TransferRepository instance
|
|
35
|
+
* @param client - The AxiosInstance used for making HTTP requests
|
|
36
|
+
*/
|
|
37
|
+
constructor(client: AxiosInstance);
|
|
38
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AxiosInstance } from 'axios';
|
|
2
2
|
import { ModelRepository } from './repository.js';
|
|
3
|
-
import { AuthToken, UserEntity } from '../../core/entities/user.js';
|
|
3
|
+
import { AccessToken, AuthToken, CreateUserOptions, FinishPasskeyAuthenticationOptions, FinishPasskeyRegistrationOptions, LinkSocialAccountOptions, Passkey, SigninCredentials, SigninWithSocialOptions, SignupCredentials, TransferMoneyOptions, TransferMoneyResponse, UpdateUserOptions, UserEntity, UserUpdate, StartPasskeyAuthenticationOptions, StartPasskeyRegistrationOptions } from '../../core/entities/user.js';
|
|
4
4
|
/**
|
|
5
5
|
* Represents the response returned by the authentication process.
|
|
6
6
|
*/
|
|
@@ -9,14 +9,23 @@ export interface AuthResponse {
|
|
|
9
9
|
user: UserEntity;
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
|
-
* Represents a repository for managing user data.
|
|
13
|
-
* Extends the ModelRepository class.
|
|
12
|
+
* Represents a repository for managing user data and authentication.
|
|
13
|
+
* Extends the ModelRepository class with authentication capabilities.
|
|
14
14
|
*/
|
|
15
|
-
export declare class UserRepository extends ModelRepository<UserEntity,
|
|
15
|
+
export declare class UserRepository extends ModelRepository<UserEntity, CreateUserOptions, UpdateUserOptions> {
|
|
16
16
|
/**
|
|
17
|
-
* Represents the authentication response.
|
|
17
|
+
* Represents the current authentication response.
|
|
18
|
+
* Set automatically after signin, signup, or signinWithToken.
|
|
18
19
|
*/
|
|
19
|
-
|
|
20
|
+
private _auth;
|
|
21
|
+
/**
|
|
22
|
+
* Gets the current authentication response.
|
|
23
|
+
*/
|
|
24
|
+
get auth(): AuthResponse | null;
|
|
25
|
+
/**
|
|
26
|
+
* Sets the authentication response and updates the Authorization header.
|
|
27
|
+
*/
|
|
28
|
+
private set auth(value);
|
|
20
29
|
/**
|
|
21
30
|
* Constructs a new UserRepository instance.
|
|
22
31
|
* @param client - The AxiosInstance used for making HTTP requests.
|
|
@@ -24,25 +33,128 @@ export declare class UserRepository extends ModelRepository<UserEntity, any, any
|
|
|
24
33
|
constructor(client: AxiosInstance);
|
|
25
34
|
/**
|
|
26
35
|
* Signs in a user with the provided credentials.
|
|
27
|
-
* @param credentials - The user credentials.
|
|
36
|
+
* @param credentials - The user credentials (email, password, optional fcmToken).
|
|
28
37
|
* @returns A promise that resolves to the authentication response.
|
|
29
38
|
*/
|
|
30
|
-
signin(credentials:
|
|
39
|
+
signin(credentials: SigninCredentials): Promise<AuthResponse>;
|
|
31
40
|
/**
|
|
32
41
|
* Signs up a new user with the provided credentials.
|
|
33
|
-
* @param credentials - The user credentials.
|
|
42
|
+
* @param credentials - The user signup credentials.
|
|
43
|
+
* @returns A promise that resolves to the authentication response.
|
|
44
|
+
*/
|
|
45
|
+
signup(credentials: SignupCredentials): Promise<AuthResponse>;
|
|
46
|
+
/**
|
|
47
|
+
* Signs in a user with an existing token.
|
|
48
|
+
* Useful for restoring authentication state from localStorage.
|
|
49
|
+
* @param token - The authentication token.
|
|
50
|
+
* @param fcmToken - Optional FCM token for push notifications.
|
|
34
51
|
* @returns A promise that resolves to the authentication response.
|
|
35
52
|
*/
|
|
36
|
-
|
|
53
|
+
signinWithToken(token: string, fcmToken?: string | null): Promise<AuthResponse>;
|
|
37
54
|
/**
|
|
38
55
|
* Signs out the currently authenticated user.
|
|
56
|
+
* Deletes the token on the server and clears local auth state.
|
|
39
57
|
* @returns A promise that resolves when the user is signed out.
|
|
40
58
|
*/
|
|
41
59
|
signout(): Promise<void>;
|
|
42
60
|
/**
|
|
43
|
-
*
|
|
61
|
+
* Gets the currently authenticated user.
|
|
62
|
+
* @returns A promise that resolves to the authentication response with current user.
|
|
63
|
+
*/
|
|
64
|
+
me(): Promise<AuthResponse>;
|
|
65
|
+
/**
|
|
66
|
+
* Updates the authenticated user's profile.
|
|
44
67
|
* @param data - The updated user data.
|
|
45
68
|
* @returns A promise that resolves to the updated user entity.
|
|
46
69
|
*/
|
|
47
|
-
updateMe(data:
|
|
70
|
+
updateMe(data: UserUpdate): Promise<UserEntity>;
|
|
71
|
+
/**
|
|
72
|
+
* Sends a password reset email to the user.
|
|
73
|
+
* @param email - The user's email address.
|
|
74
|
+
* @returns A promise that resolves when the email is sent.
|
|
75
|
+
*/
|
|
76
|
+
sendResetPasswordEmail(email: string): Promise<void>;
|
|
77
|
+
/**
|
|
78
|
+
* Resets the password using a token from the reset email.
|
|
79
|
+
* @param uid - The user ID.
|
|
80
|
+
* @param token - The reset token from the email.
|
|
81
|
+
* @returns A promise that resolves when the password is reset.
|
|
82
|
+
*/
|
|
83
|
+
resetPasswordWithToken(uid: string, token: string): Promise<void>;
|
|
84
|
+
/**
|
|
85
|
+
* Gets all access tokens for the authenticated user.
|
|
86
|
+
* @returns A promise that resolves to an array of access tokens.
|
|
87
|
+
*/
|
|
88
|
+
tokens(): Promise<AccessToken[]>;
|
|
89
|
+
/**
|
|
90
|
+
* Signs in with Google OAuth.
|
|
91
|
+
* @param options - The OAuth code and optional FCM token.
|
|
92
|
+
* @returns A promise that resolves to the authentication response.
|
|
93
|
+
*/
|
|
94
|
+
signinWithGoogle(options: SigninWithSocialOptions): Promise<AuthResponse>;
|
|
95
|
+
/**
|
|
96
|
+
* Signs in with GitHub OAuth.
|
|
97
|
+
* @param options - The OAuth code and optional FCM token.
|
|
98
|
+
* @returns A promise that resolves to the authentication response.
|
|
99
|
+
*/
|
|
100
|
+
signinWithGitHub(options: SigninWithSocialOptions): Promise<AuthResponse>;
|
|
101
|
+
/**
|
|
102
|
+
* Signs in with Apple OAuth.
|
|
103
|
+
* @param options - The OAuth code and optional FCM token.
|
|
104
|
+
* @returns A promise that resolves to the authentication response.
|
|
105
|
+
*/
|
|
106
|
+
signinWithApple(options: SigninWithSocialOptions): Promise<AuthResponse>;
|
|
107
|
+
/**
|
|
108
|
+
* Links a social account to the current user.
|
|
109
|
+
* @param options - The provider and OAuth code.
|
|
110
|
+
* @returns A promise that resolves to the updated user entity.
|
|
111
|
+
*/
|
|
112
|
+
linkSocialAccount(options: LinkSocialAccountOptions): Promise<UserEntity>;
|
|
113
|
+
/**
|
|
114
|
+
* Unlinks a social account from the current user.
|
|
115
|
+
* @param provider - The social provider to unlink.
|
|
116
|
+
* @returns A promise that resolves to the updated user entity.
|
|
117
|
+
*/
|
|
118
|
+
unlinkSocialAccount(provider: 'google' | 'github' | 'apple'): Promise<UserEntity>;
|
|
119
|
+
/**
|
|
120
|
+
* Transfers money from the authenticated user to another user.
|
|
121
|
+
* @param options - Transfer options including recipient and amount.
|
|
122
|
+
* @returns A promise that resolves to the transfer response with updated users.
|
|
123
|
+
*/
|
|
124
|
+
transferMoney(options: TransferMoneyOptions): Promise<TransferMoneyResponse>;
|
|
125
|
+
/**
|
|
126
|
+
* Starts passkey registration.
|
|
127
|
+
* @param options - Optional device name for the passkey.
|
|
128
|
+
* @returns A promise that resolves to the registration challenge data.
|
|
129
|
+
*/
|
|
130
|
+
startPasskeyRegistration(options?: StartPasskeyRegistrationOptions): Promise<Record<string, any>>;
|
|
131
|
+
/**
|
|
132
|
+
* Finishes passkey registration.
|
|
133
|
+
* @param options - The registration response from the authenticator.
|
|
134
|
+
* @returns A promise that resolves to the authentication response.
|
|
135
|
+
*/
|
|
136
|
+
finishPasskeyRegistration(options: FinishPasskeyRegistrationOptions): Promise<AuthResponse>;
|
|
137
|
+
/**
|
|
138
|
+
* Starts passkey authentication.
|
|
139
|
+
* @param options - Optional email to identify the user.
|
|
140
|
+
* @returns A promise that resolves to the authentication challenge data.
|
|
141
|
+
*/
|
|
142
|
+
startPasskeyAuthentication(options?: StartPasskeyAuthenticationOptions): Promise<Record<string, any>>;
|
|
143
|
+
/**
|
|
144
|
+
* Finishes passkey authentication.
|
|
145
|
+
* @param options - The authentication response from the authenticator.
|
|
146
|
+
* @returns A promise that resolves to the authentication response.
|
|
147
|
+
*/
|
|
148
|
+
finishPasskeyAuthentication(options: FinishPasskeyAuthenticationOptions): Promise<AuthResponse>;
|
|
149
|
+
/**
|
|
150
|
+
* Lists all passkeys for the authenticated user.
|
|
151
|
+
* @returns A promise that resolves to an array of passkeys.
|
|
152
|
+
*/
|
|
153
|
+
listPasskeys(): Promise<Passkey[]>;
|
|
154
|
+
/**
|
|
155
|
+
* Deletes a passkey.
|
|
156
|
+
* @param passkeyId - The ID of the passkey to delete.
|
|
157
|
+
* @returns A promise that resolves when the passkey is deleted.
|
|
158
|
+
*/
|
|
159
|
+
deletePasskey(passkeyId: string): Promise<void>;
|
|
48
160
|
}
|
package/build/src/index.d.ts
CHANGED
|
@@ -9,8 +9,13 @@ export * from './core/entities/category.js';
|
|
|
9
9
|
export * from './core/entities/country.js';
|
|
10
10
|
export * from './core/entities/state.js';
|
|
11
11
|
export * from './core/entities/city.js';
|
|
12
|
+
export * from './core/entities/currency.js';
|
|
12
13
|
export * from './feeef/repositories/deposits.js';
|
|
14
|
+
export * from './feeef/repositories/transfers.js';
|
|
13
15
|
export * from './feeef/repositories/shipping_prices.js';
|
|
16
|
+
export * from './feeef/repositories/users.js';
|
|
17
|
+
export type { TransferEntity, TransferCreateInput } from './feeef/repositories/transfers.js';
|
|
18
|
+
export type { DepositEntity, DepositCreateInput } from './feeef/repositories/deposits.js';
|
|
14
19
|
export * from './core/embadded/address.js';
|
|
15
20
|
export * from './core/embadded/category.js';
|
|
16
21
|
export * from './core/embadded/contact.js';
|