@getpara/user-management-client 2.17.0 → 2.18.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/cjs/client.js +3 -1
- package/dist/esm/client.js +3 -1
- package/dist/types/client.d.ts +3 -2
- package/package.json +3 -3
package/dist/cjs/client.js
CHANGED
|
@@ -842,7 +842,9 @@ class Client {
|
|
|
842
842
|
}
|
|
843
843
|
getPendingTransaction(userId, pendingTransactionId) {
|
|
844
844
|
return __async(this, null, function* () {
|
|
845
|
-
const res = yield this.baseRequest.get(
|
|
845
|
+
const res = yield this.baseRequest.get(
|
|
846
|
+
`/users/${userId}/pending-transactions/${pendingTransactionId}`
|
|
847
|
+
);
|
|
846
848
|
return res;
|
|
847
849
|
});
|
|
848
850
|
}
|
package/dist/esm/client.js
CHANGED
|
@@ -771,7 +771,9 @@ class Client {
|
|
|
771
771
|
}
|
|
772
772
|
getPendingTransaction(userId, pendingTransactionId) {
|
|
773
773
|
return __async(this, null, function* () {
|
|
774
|
-
const res = yield this.baseRequest.get(
|
|
774
|
+
const res = yield this.baseRequest.get(
|
|
775
|
+
`/users/${userId}/pending-transactions/${pendingTransactionId}`
|
|
776
|
+
);
|
|
775
777
|
return res;
|
|
776
778
|
});
|
|
777
779
|
}
|
package/dist/types/client.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AxiosResponse } from 'axios';
|
|
2
|
-
import { AccountMetadata, Auth, AuthIdentifier, AuthMethod, BackupKitEmailProps, BiometricLocationHint, Chain, CurrentWalletIds, EncryptedKeyShare, EncryptorType, ExternalWalletInfo, LoginExternalWalletResponse, KeyShareType, Network, OnRampAsset, OnRampConfig, OnRampProvider, OnRampPurchase, OnRampPurchaseCreateParams, OnRampPurchaseUpdateParams, AuthMethodStatus, PregenIds, PrimaryAuth, PublicKeyType, ServerAuthStateSignup, SessionInfo, Setup2faResponse, SignUpOrLogInResponse, TelegramAuthResponse, TPregenIdentifierType, VerificationEmailProps, VerifiedAuth, VerifyFarcasterResponse, VerifyTelegramResponse, VerifyThirdPartyAuth, WalletEntity, WalletParams, TWalletScheme, TWalletType, VerifyExternalWalletParams, IssueJwtParams, IssueJwtResponse, LinkAccountParams, LinkedAccounts, ResendVerificationCodeParams, AssetMetadataIndexed, GetProfileBalanceParams, ProfileBalance, LegacyAuthMethod, PrimaryAuthInfo, ServerAuthStateLogin, ServerAuthStateDone, UserPreferences, EstimateTransactionOpts, EstimateTransactionResult, BroadcastTransactionOpts, BroadcastTransactionResult, TExternalWalletType } from '@getpara/shared';
|
|
2
|
+
import { AccountMetadata, Auth, AuthIdentifier, AuthMethod, BackupKitEmailProps, BiometricLocationHint, Chain, CurrentWalletIds, EncryptedKeyShare, EncryptorType, ExternalWalletInfo, LoginExternalWalletResponse, KeyShareType, Network, OnRampAsset, OnRampConfig, OnRampProvider, OnRampPurchase, OnRampPurchaseCreateParams, OnRampPurchaseUpdateParams, AuthMethodStatus, PregenIds, PrimaryAuth, PublicKeyType, ServerAuthStateSignup, SessionInfo, Setup2faResponse, SignUpOrLogInResponse, TelegramAuthResponse, TPregenIdentifierType, VerificationEmailProps, VerifiedAuth, VerifyFarcasterResponse, VerifyTelegramResponse, VerifyThirdPartyAuth, WalletEntity, WalletParams, TWalletScheme, TWalletType, VerifyExternalWalletParams, IssueJwtParams, IssueJwtResponse, LinkAccountParams, LinkedAccounts, ResendVerificationCodeParams, AssetMetadataIndexed, GetProfileBalanceParams, ProfileBalance, LegacyAuthMethod, PrimaryAuthInfo, ServerAuthStateLogin, ServerAuthStateDone, UserPreferences, EstimateTransactionOpts, EstimateTransactionResult, BroadcastTransactionOpts, BroadcastTransactionResult, TExternalWalletType, GetPendingTransactionResponse } from '@getpara/shared';
|
|
3
3
|
interface ConfigOpts {
|
|
4
4
|
useFetchAdapter?: boolean;
|
|
5
5
|
}
|
|
@@ -325,7 +325,7 @@ declare class Client {
|
|
|
325
325
|
allAccepted: boolean;
|
|
326
326
|
}>;
|
|
327
327
|
acceptScopes(userId: string, walletId: string, body: AcceptScopesBody): Promise<AxiosResponse<any, any>>;
|
|
328
|
-
getPendingTransaction(userId: string, pendingTransactionId: string): Promise<AxiosResponse<
|
|
328
|
+
getPendingTransaction(userId: string, pendingTransactionId: string): Promise<AxiosResponse<GetPendingTransactionResponse>>;
|
|
329
329
|
acceptPendingTransaction(userId: string, pendingTransactionId: string): Promise<AxiosResponse<any, any>>;
|
|
330
330
|
getOnRampConfig(): Promise<OnRampConfig>;
|
|
331
331
|
createOnRampPurchase({ userId, params, ...walletParams }: {
|
|
@@ -447,6 +447,7 @@ declare class Client {
|
|
|
447
447
|
};
|
|
448
448
|
sdkType: SDKType;
|
|
449
449
|
userId: string;
|
|
450
|
+
sdkVersion?: string;
|
|
450
451
|
}) => Promise<void>;
|
|
451
452
|
trackReactSdkAnalytics: (opts: {
|
|
452
453
|
props: object;
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getpara/user-management-client",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.18.0",
|
|
4
4
|
"dependencies": {
|
|
5
|
-
"@getpara/shared": "^1.
|
|
5
|
+
"@getpara/shared": "^1.12.0",
|
|
6
6
|
"axios": "^1.8.4",
|
|
7
7
|
"libphonenumber-js": "^1.11.7"
|
|
8
8
|
},
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"dist",
|
|
21
21
|
"package.json"
|
|
22
22
|
],
|
|
23
|
-
"gitHead": "
|
|
23
|
+
"gitHead": "4481f6f4e108e682d14c74d4433696141c47fc58",
|
|
24
24
|
"main": "dist/cjs/index.js",
|
|
25
25
|
"module": "dist/esm/index.js",
|
|
26
26
|
"scripts": {
|