@riocrypto/common-server 1.0.560 → 1.0.561
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.
|
@@ -1 +1,10 @@
|
|
|
1
|
+
declare class GuenoClient {
|
|
2
|
+
private email;
|
|
3
|
+
private password;
|
|
4
|
+
private env;
|
|
5
|
+
constructor(email: string, password: string, env: "sandbox" | "production");
|
|
6
|
+
getAddressRiskScore(address: string, protocol: Crypto): Promise<any>;
|
|
7
|
+
getAccessToken(): Promise<any>;
|
|
8
|
+
}
|
|
9
|
+
export declare const buildGuenoClient: () => Promise<GuenoClient>;
|
|
1
10
|
export {};
|
|
@@ -12,6 +12,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
12
12
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
13
|
};
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.buildGuenoClient = void 0;
|
|
15
16
|
const secret_manager_client_1 = require("./secret-manager-client");
|
|
16
17
|
const axios_1 = __importDefault(require("axios"));
|
|
17
18
|
class GuenoClient {
|
|
@@ -54,3 +55,4 @@ const buildGuenoClient = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
|
54
55
|
// Create GuenoClient instance and return
|
|
55
56
|
return new GuenoClient(GUENO_EMAIL, GUENO_PASSWORD, process.env.GUENO_ENV);
|
|
56
57
|
});
|
|
58
|
+
exports.buildGuenoClient = buildGuenoClient;
|