@riocrypto/common-server 1.0.560 → 1.0.562

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;
@@ -148,14 +148,6 @@ class KushkiClient {
148
148
  });
149
149
  }
150
150
  }
151
- const createKushkiClient = () => __awaiter(void 0, void 0, void 0, function* () {
152
- const KUSHKI_PRIVATE_MERCHANT_ID = yield secret_manager_client_1.secretManagerClient.getSecretValue("KUSHKI_PRIVATE_MERCHANT_ID");
153
- if (!KUSHKI_PRIVATE_MERCHANT_ID) {
154
- throw new Error("Unable to get KUSHKI_PRIVATE_MERCHANT_ID");
155
- }
156
- const kushkiClient = new KushkiClient(KUSHKI_PRIVATE_MERCHANT_ID, process.env.KUSHKI_ENV);
157
- return kushkiClient;
158
- });
159
151
  const buildKushkiClient = () => __awaiter(void 0, void 0, void 0, function* () {
160
152
  const KUSHKI_PRIVATE_MERCHANT_ID = yield secret_manager_client_1.secretManagerClient.getSecretValue("KUSHKI_PRIVATE_MERCHANT_ID");
161
153
  if (!KUSHKI_PRIVATE_MERCHANT_ID) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.560",
3
+ "version": "1.0.562",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",