@chipi-stack/types 11.14.0 → 11.16.0
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/dist/index.d.mts +25 -2
- package/dist/index.d.ts +25 -2
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -45,6 +45,7 @@ interface WalletData {
|
|
|
45
45
|
interface CreateWalletParams {
|
|
46
46
|
encryptKey: string;
|
|
47
47
|
externalUserId: string;
|
|
48
|
+
userId?: string;
|
|
48
49
|
}
|
|
49
50
|
interface CreateWalletResponse {
|
|
50
51
|
txHash: string;
|
|
@@ -193,6 +194,15 @@ interface GetTransactionsParams {
|
|
|
193
194
|
limit?: number;
|
|
194
195
|
orgId: string;
|
|
195
196
|
}
|
|
197
|
+
interface GetTransactionListQuery {
|
|
198
|
+
page?: number;
|
|
199
|
+
limit?: number;
|
|
200
|
+
calledFunction?: string;
|
|
201
|
+
senderAddress?: string;
|
|
202
|
+
day?: number;
|
|
203
|
+
month?: number;
|
|
204
|
+
year?: number;
|
|
205
|
+
}
|
|
196
206
|
|
|
197
207
|
type SkuCategory = 'TELEPEAJE' | 'TELEFONIA' | 'GENERAL' | 'TESORERIA' | 'LUZ' | 'INTERNET' | 'TV' | 'MOVILIDAD' | 'RECARGAS' | 'GIFT_CARDS' | 'GAMING' | 'VENTAS_CATALOGO' | 'DEPORTES' | 'STREAMING';
|
|
198
208
|
interface Sku {
|
|
@@ -339,15 +349,28 @@ interface User {
|
|
|
339
349
|
createdAt: Date;
|
|
340
350
|
updatedAt: Date;
|
|
341
351
|
}
|
|
352
|
+
type Country = "MX" | "US" | "OTHER";
|
|
342
353
|
interface CreateUserParams {
|
|
343
354
|
externalId: string;
|
|
344
355
|
name: string;
|
|
345
356
|
lastName: string;
|
|
346
|
-
|
|
357
|
+
country: Country;
|
|
347
358
|
phoneCountryCode: number;
|
|
348
359
|
phoneNumber: number;
|
|
360
|
+
email?: string;
|
|
349
361
|
profession?: string;
|
|
350
362
|
taxId?: string;
|
|
351
363
|
}
|
|
364
|
+
interface GetUserParams {
|
|
365
|
+
id?: string;
|
|
366
|
+
externalId?: string;
|
|
367
|
+
username?: string;
|
|
368
|
+
phone?: {
|
|
369
|
+
phoneCountryCode: number;
|
|
370
|
+
phoneNumber: number;
|
|
371
|
+
};
|
|
372
|
+
taxId?: string;
|
|
373
|
+
includeStarknetWallet?: boolean;
|
|
374
|
+
}
|
|
352
375
|
|
|
353
|
-
export { type ApiError, type ApiKey, type ApiResponse, type ApproveHookInput, type ApproveParams, type AsyncReturnType, type AuthContext, type CallAnyContractParams, type Chain, type ChainToken, type ChipiBrowserSDKConfig, type ChipiSDKConfig, type ChipiServerSDKConfig, type CreateCustodialWalletParams, type CreateSkuTransactionParams, type CreateUserParams, type CreateWalletParams, type CreateWalletResponse, type DeepPartial, type ErrorWithCode, type ExecuteSponsoredTransactionParams, type ExecuteSponsoredTransactionResponse, type ExecuteTransactionParams, type GetMerchantWalletParams, type GetSkuListQuery, type GetTokenBalanceParams, type GetTokenBalanceResponse, type GetTransactionsParams, type GetWalletParams, type GetWalletResponse, type JwtPayload, type MaybePromise, type NonEmptyArray, type Optional, type PaginatedResponse, type PaginationQuery, type PrepareTypedDataParams, type PrepareWalletCreationParams, type PrepareWalletCreationResponse, type Prettify, type RecordSendTransactionParams, type RequireAtLeastOne, STARKNET_CONTRACTS, type Sku, type SkuCategory, type SkuTransaction, type StakeVesuUsdcHookInputParams, type StakeVesuUsdcParams, type Transaction, type TransferHookInput, type TransferParams, type User, type ValueOrFunction, type WalletData, type WithdrawVesuUsdcHookInputParams, type WithdrawVesuUsdcParams, type alphaUrl };
|
|
376
|
+
export { type ApiError, type ApiKey, type ApiResponse, type ApproveHookInput, type ApproveParams, type AsyncReturnType, type AuthContext, type CallAnyContractParams, type Chain, type ChainToken, type ChipiBrowserSDKConfig, type ChipiSDKConfig, type ChipiServerSDKConfig, type Country, type CreateCustodialWalletParams, type CreateSkuTransactionParams, type CreateUserParams, type CreateWalletParams, type CreateWalletResponse, type DeepPartial, type ErrorWithCode, type ExecuteSponsoredTransactionParams, type ExecuteSponsoredTransactionResponse, type ExecuteTransactionParams, type GetMerchantWalletParams, type GetSkuListQuery, type GetTokenBalanceParams, type GetTokenBalanceResponse, type GetTransactionListQuery, type GetTransactionsParams, type GetUserParams, type GetWalletParams, type GetWalletResponse, type JwtPayload, type MaybePromise, type NonEmptyArray, type Optional, type PaginatedResponse, type PaginationQuery, type PrepareTypedDataParams, type PrepareWalletCreationParams, type PrepareWalletCreationResponse, type Prettify, type RecordSendTransactionParams, type RequireAtLeastOne, STARKNET_CONTRACTS, type Sku, type SkuCategory, type SkuTransaction, type StakeVesuUsdcHookInputParams, type StakeVesuUsdcParams, type Transaction, type TransferHookInput, type TransferParams, type User, type ValueOrFunction, type WalletData, type WithdrawVesuUsdcHookInputParams, type WithdrawVesuUsdcParams, type alphaUrl };
|
package/dist/index.d.ts
CHANGED
|
@@ -45,6 +45,7 @@ interface WalletData {
|
|
|
45
45
|
interface CreateWalletParams {
|
|
46
46
|
encryptKey: string;
|
|
47
47
|
externalUserId: string;
|
|
48
|
+
userId?: string;
|
|
48
49
|
}
|
|
49
50
|
interface CreateWalletResponse {
|
|
50
51
|
txHash: string;
|
|
@@ -193,6 +194,15 @@ interface GetTransactionsParams {
|
|
|
193
194
|
limit?: number;
|
|
194
195
|
orgId: string;
|
|
195
196
|
}
|
|
197
|
+
interface GetTransactionListQuery {
|
|
198
|
+
page?: number;
|
|
199
|
+
limit?: number;
|
|
200
|
+
calledFunction?: string;
|
|
201
|
+
senderAddress?: string;
|
|
202
|
+
day?: number;
|
|
203
|
+
month?: number;
|
|
204
|
+
year?: number;
|
|
205
|
+
}
|
|
196
206
|
|
|
197
207
|
type SkuCategory = 'TELEPEAJE' | 'TELEFONIA' | 'GENERAL' | 'TESORERIA' | 'LUZ' | 'INTERNET' | 'TV' | 'MOVILIDAD' | 'RECARGAS' | 'GIFT_CARDS' | 'GAMING' | 'VENTAS_CATALOGO' | 'DEPORTES' | 'STREAMING';
|
|
198
208
|
interface Sku {
|
|
@@ -339,15 +349,28 @@ interface User {
|
|
|
339
349
|
createdAt: Date;
|
|
340
350
|
updatedAt: Date;
|
|
341
351
|
}
|
|
352
|
+
type Country = "MX" | "US" | "OTHER";
|
|
342
353
|
interface CreateUserParams {
|
|
343
354
|
externalId: string;
|
|
344
355
|
name: string;
|
|
345
356
|
lastName: string;
|
|
346
|
-
|
|
357
|
+
country: Country;
|
|
347
358
|
phoneCountryCode: number;
|
|
348
359
|
phoneNumber: number;
|
|
360
|
+
email?: string;
|
|
349
361
|
profession?: string;
|
|
350
362
|
taxId?: string;
|
|
351
363
|
}
|
|
364
|
+
interface GetUserParams {
|
|
365
|
+
id?: string;
|
|
366
|
+
externalId?: string;
|
|
367
|
+
username?: string;
|
|
368
|
+
phone?: {
|
|
369
|
+
phoneCountryCode: number;
|
|
370
|
+
phoneNumber: number;
|
|
371
|
+
};
|
|
372
|
+
taxId?: string;
|
|
373
|
+
includeStarknetWallet?: boolean;
|
|
374
|
+
}
|
|
352
375
|
|
|
353
|
-
export { type ApiError, type ApiKey, type ApiResponse, type ApproveHookInput, type ApproveParams, type AsyncReturnType, type AuthContext, type CallAnyContractParams, type Chain, type ChainToken, type ChipiBrowserSDKConfig, type ChipiSDKConfig, type ChipiServerSDKConfig, type CreateCustodialWalletParams, type CreateSkuTransactionParams, type CreateUserParams, type CreateWalletParams, type CreateWalletResponse, type DeepPartial, type ErrorWithCode, type ExecuteSponsoredTransactionParams, type ExecuteSponsoredTransactionResponse, type ExecuteTransactionParams, type GetMerchantWalletParams, type GetSkuListQuery, type GetTokenBalanceParams, type GetTokenBalanceResponse, type GetTransactionsParams, type GetWalletParams, type GetWalletResponse, type JwtPayload, type MaybePromise, type NonEmptyArray, type Optional, type PaginatedResponse, type PaginationQuery, type PrepareTypedDataParams, type PrepareWalletCreationParams, type PrepareWalletCreationResponse, type Prettify, type RecordSendTransactionParams, type RequireAtLeastOne, STARKNET_CONTRACTS, type Sku, type SkuCategory, type SkuTransaction, type StakeVesuUsdcHookInputParams, type StakeVesuUsdcParams, type Transaction, type TransferHookInput, type TransferParams, type User, type ValueOrFunction, type WalletData, type WithdrawVesuUsdcHookInputParams, type WithdrawVesuUsdcParams, type alphaUrl };
|
|
376
|
+
export { type ApiError, type ApiKey, type ApiResponse, type ApproveHookInput, type ApproveParams, type AsyncReturnType, type AuthContext, type CallAnyContractParams, type Chain, type ChainToken, type ChipiBrowserSDKConfig, type ChipiSDKConfig, type ChipiServerSDKConfig, type Country, type CreateCustodialWalletParams, type CreateSkuTransactionParams, type CreateUserParams, type CreateWalletParams, type CreateWalletResponse, type DeepPartial, type ErrorWithCode, type ExecuteSponsoredTransactionParams, type ExecuteSponsoredTransactionResponse, type ExecuteTransactionParams, type GetMerchantWalletParams, type GetSkuListQuery, type GetTokenBalanceParams, type GetTokenBalanceResponse, type GetTransactionListQuery, type GetTransactionsParams, type GetUserParams, type GetWalletParams, type GetWalletResponse, type JwtPayload, type MaybePromise, type NonEmptyArray, type Optional, type PaginatedResponse, type PaginationQuery, type PrepareTypedDataParams, type PrepareWalletCreationParams, type PrepareWalletCreationResponse, type Prettify, type RecordSendTransactionParams, type RequireAtLeastOne, STARKNET_CONTRACTS, type Sku, type SkuCategory, type SkuTransaction, type StakeVesuUsdcHookInputParams, type StakeVesuUsdcParams, type Transaction, type TransferHookInput, type TransferParams, type User, type ValueOrFunction, type WalletData, type WithdrawVesuUsdcHookInputParams, type WithdrawVesuUsdcParams, type alphaUrl };
|