@clxmedia/credstore-client 1.0.4 → 1.0.5

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/client.d.ts CHANGED
@@ -1,8 +1,12 @@
1
+ export interface CredStoreConfig {
2
+ api_server: string;
3
+ api_key: string;
4
+ }
1
5
  export declare class CredStoreClient {
2
6
  private apiServer;
3
7
  private apiKey;
4
8
  private httpService;
5
- constructor(apiServer: string, apiKey: string);
9
+ constructor(config: CredStoreConfig);
6
10
  fetchUpdatedCredential(guid: string, master_id: number): Promise<any>;
7
11
  createCredential(master_id: number, provider: string, credData: any, name?: string): Promise<any>;
8
12
  updateCredential(guid: string, data: any): Promise<any>;
package/dist/client.js CHANGED
@@ -13,10 +13,10 @@ exports.CredStoreClient = void 0;
13
13
  const axios_1 = require("@nestjs/axios");
14
14
  const rxjs_1 = require("rxjs");
15
15
  class CredStoreClient {
16
- constructor(apiServer, apiKey) {
16
+ constructor(config) {
17
17
  this.httpService = new axios_1.HttpService();
18
- this.apiServer = apiServer;
19
- this.apiKey = apiKey;
18
+ this.apiServer = config.api_server;
19
+ this.apiKey = config.api_key;
20
20
  }
21
21
  fetchUpdatedCredential(guid, master_id) {
22
22
  return __awaiter(this, void 0, void 0, function* () {
package/dist/index.d.ts CHANGED
@@ -1 +1 @@
1
- export { CredStoreClient } from './client';
1
+ export { CredStoreClient, CredStoreConfig } from './client';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clxmedia/credstore-client",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "CLXperience CredStore Client",
5
5
  "author": "Brandon Thompson <brandont@clxmedia.com>",
6
6
  "license": "MIT",