@swype-org/react-sdk 0.1.100 → 0.1.103
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.cjs +388 -44
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +388 -44
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -297,7 +297,10 @@ declare function useSwypeDepositAmount(): {
|
|
|
297
297
|
declare function fetchProviders(apiBaseUrl: string, token: string): Promise<Provider[]>;
|
|
298
298
|
declare function fetchChains(apiBaseUrl: string, token: string): Promise<Chain[]>;
|
|
299
299
|
declare function fetchAccounts(apiBaseUrl: string, token: string, credentialId: string): Promise<Account[]>;
|
|
300
|
+
declare function fetchAccount(apiBaseUrl: string, token: string, accountId: string, credentialId: string): Promise<Account>;
|
|
300
301
|
interface CreateAccountParams {
|
|
302
|
+
/** Caller-supplied UUID v4 for idempotency. If omitted, a random UUID is generated. */
|
|
303
|
+
id?: string;
|
|
301
304
|
name: string;
|
|
302
305
|
credentialId: string;
|
|
303
306
|
providerId: string;
|
|
@@ -362,6 +365,7 @@ type api_CreateAccountParams = CreateAccountParams;
|
|
|
362
365
|
type api_CreateTransferParams = CreateTransferParams;
|
|
363
366
|
declare const api_createAccount: typeof createAccount;
|
|
364
367
|
declare const api_createTransfer: typeof createTransfer;
|
|
368
|
+
declare const api_fetchAccount: typeof fetchAccount;
|
|
365
369
|
declare const api_fetchAccounts: typeof fetchAccounts;
|
|
366
370
|
declare const api_fetchAuthorizationSession: typeof fetchAuthorizationSession;
|
|
367
371
|
declare const api_fetchChains: typeof fetchChains;
|
|
@@ -376,7 +380,7 @@ declare const api_signTransfer: typeof signTransfer;
|
|
|
376
380
|
declare const api_updateUserConfig: typeof updateUserConfig;
|
|
377
381
|
declare const api_updateUserConfigBySession: typeof updateUserConfigBySession;
|
|
378
382
|
declare namespace api {
|
|
379
|
-
export { type api_CreateAccountParams as CreateAccountParams, type api_CreateTransferParams as CreateTransferParams, api_createAccount as createAccount, api_createTransfer as createTransfer, api_fetchAccounts as fetchAccounts, api_fetchAuthorizationSession as fetchAuthorizationSession, api_fetchChains as fetchChains, api_fetchMerchantPublicKey as fetchMerchantPublicKey, api_fetchProviders as fetchProviders, api_fetchTransfer as fetchTransfer, api_fetchUserConfig as fetchUserConfig, api_registerPasskey as registerPasskey, api_reportActionCompletion as reportActionCompletion, api_reportPasskeyActivity as reportPasskeyActivity, api_signTransfer as signTransfer, api_updateUserConfig as updateUserConfig, api_updateUserConfigBySession as updateUserConfigBySession };
|
|
383
|
+
export { type api_CreateAccountParams as CreateAccountParams, type api_CreateTransferParams as CreateTransferParams, api_createAccount as createAccount, api_createTransfer as createTransfer, api_fetchAccount as fetchAccount, api_fetchAccounts as fetchAccounts, api_fetchAuthorizationSession as fetchAuthorizationSession, api_fetchChains as fetchChains, api_fetchMerchantPublicKey as fetchMerchantPublicKey, api_fetchProviders as fetchProviders, api_fetchTransfer as fetchTransfer, api_fetchUserConfig as fetchUserConfig, api_registerPasskey as registerPasskey, api_reportActionCompletion as reportActionCompletion, api_reportPasskeyActivity as reportPasskeyActivity, api_signTransfer as signTransfer, api_updateUserConfig as updateUserConfig, api_updateUserConfigBySession as updateUserConfigBySession };
|
|
380
384
|
}
|
|
381
385
|
|
|
382
386
|
interface SwypePaymentProps {
|
package/dist/index.d.ts
CHANGED
|
@@ -297,7 +297,10 @@ declare function useSwypeDepositAmount(): {
|
|
|
297
297
|
declare function fetchProviders(apiBaseUrl: string, token: string): Promise<Provider[]>;
|
|
298
298
|
declare function fetchChains(apiBaseUrl: string, token: string): Promise<Chain[]>;
|
|
299
299
|
declare function fetchAccounts(apiBaseUrl: string, token: string, credentialId: string): Promise<Account[]>;
|
|
300
|
+
declare function fetchAccount(apiBaseUrl: string, token: string, accountId: string, credentialId: string): Promise<Account>;
|
|
300
301
|
interface CreateAccountParams {
|
|
302
|
+
/** Caller-supplied UUID v4 for idempotency. If omitted, a random UUID is generated. */
|
|
303
|
+
id?: string;
|
|
301
304
|
name: string;
|
|
302
305
|
credentialId: string;
|
|
303
306
|
providerId: string;
|
|
@@ -362,6 +365,7 @@ type api_CreateAccountParams = CreateAccountParams;
|
|
|
362
365
|
type api_CreateTransferParams = CreateTransferParams;
|
|
363
366
|
declare const api_createAccount: typeof createAccount;
|
|
364
367
|
declare const api_createTransfer: typeof createTransfer;
|
|
368
|
+
declare const api_fetchAccount: typeof fetchAccount;
|
|
365
369
|
declare const api_fetchAccounts: typeof fetchAccounts;
|
|
366
370
|
declare const api_fetchAuthorizationSession: typeof fetchAuthorizationSession;
|
|
367
371
|
declare const api_fetchChains: typeof fetchChains;
|
|
@@ -376,7 +380,7 @@ declare const api_signTransfer: typeof signTransfer;
|
|
|
376
380
|
declare const api_updateUserConfig: typeof updateUserConfig;
|
|
377
381
|
declare const api_updateUserConfigBySession: typeof updateUserConfigBySession;
|
|
378
382
|
declare namespace api {
|
|
379
|
-
export { type api_CreateAccountParams as CreateAccountParams, type api_CreateTransferParams as CreateTransferParams, api_createAccount as createAccount, api_createTransfer as createTransfer, api_fetchAccounts as fetchAccounts, api_fetchAuthorizationSession as fetchAuthorizationSession, api_fetchChains as fetchChains, api_fetchMerchantPublicKey as fetchMerchantPublicKey, api_fetchProviders as fetchProviders, api_fetchTransfer as fetchTransfer, api_fetchUserConfig as fetchUserConfig, api_registerPasskey as registerPasskey, api_reportActionCompletion as reportActionCompletion, api_reportPasskeyActivity as reportPasskeyActivity, api_signTransfer as signTransfer, api_updateUserConfig as updateUserConfig, api_updateUserConfigBySession as updateUserConfigBySession };
|
|
383
|
+
export { type api_CreateAccountParams as CreateAccountParams, type api_CreateTransferParams as CreateTransferParams, api_createAccount as createAccount, api_createTransfer as createTransfer, api_fetchAccount as fetchAccount, api_fetchAccounts as fetchAccounts, api_fetchAuthorizationSession as fetchAuthorizationSession, api_fetchChains as fetchChains, api_fetchMerchantPublicKey as fetchMerchantPublicKey, api_fetchProviders as fetchProviders, api_fetchTransfer as fetchTransfer, api_fetchUserConfig as fetchUserConfig, api_registerPasskey as registerPasskey, api_reportActionCompletion as reportActionCompletion, api_reportPasskeyActivity as reportPasskeyActivity, api_signTransfer as signTransfer, api_updateUserConfig as updateUserConfig, api_updateUserConfigBySession as updateUserConfigBySession };
|
|
380
384
|
}
|
|
381
385
|
|
|
382
386
|
interface SwypePaymentProps {
|