@spritz-finance/service-client 0.3.45 → 0.3.47
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/credentials.js
CHANGED
|
@@ -32,7 +32,6 @@ async function getServiceClientKey() {
|
|
|
32
32
|
const client = new client_secrets_manager_1.SecretsManagerClient({ region: config_1.config.region });
|
|
33
33
|
const command = new client_secrets_manager_1.GetSecretValueCommand({ SecretId: arn });
|
|
34
34
|
const response = await client.send(command);
|
|
35
|
-
logger_1.default.info('ServiceClientKey fetched');
|
|
36
35
|
return response.SecretString;
|
|
37
36
|
}
|
|
38
37
|
const getServiceCredentials = async () => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * as OnrampClient from './onrampServiceClient';
|
|
2
2
|
import { OnRampPayment } from '../lib/graphClient/generated';
|
|
3
|
-
import { BridgeUser, SyncOnrampTransferInput } from './types';
|
|
3
|
+
import { BridgeUser, CreateBridgeUserParams, SyncOnrampTransferInput } from './types';
|
|
4
4
|
export declare function syncTransfer(input: SyncOnrampTransferInput): Promise<OnRampPayment>;
|
|
5
5
|
export declare function getUserCompletedPayments(userId: string): Promise<OnRampPayment[]>;
|
|
6
|
-
export declare function upsertBridgeUser(input:
|
|
6
|
+
export declare function upsertBridgeUser(input: CreateBridgeUserParams): Promise<import("../types").ApiFailure | import("../types").ApiSuccess<BridgeUser>>;
|
|
@@ -4,7 +4,7 @@ import { CreateUnblockAccountInput, CreateUnblockUserInput, ExternalBlockchainTr
|
|
|
4
4
|
export declare function requestOTP(userId: string): Promise<{
|
|
5
5
|
success: boolean;
|
|
6
6
|
}>;
|
|
7
|
-
export declare function createUnblockAccount(input: CreateUnblockAccountInput): Promise<UnblockAccount
|
|
7
|
+
export declare function createUnblockAccount(input: CreateUnblockAccountInput): Promise<import("../types").ApiFailure | import("../types").ApiSuccess<UnblockAccount>>;
|
|
8
8
|
export declare function createUnblockUser(input: CreateUnblockUserInput): Promise<UnblockAccount>;
|
|
9
9
|
export declare function getUnblockPayment(externalPaymentId: string): Promise<UnblockPayment>;
|
|
10
10
|
export declare function getExternalPayments(accountIds: string[]): Promise<ExternalPayment[]>;
|