config.ts 495 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
export class Config {
  public apiUrl: string;
  public clientId: string;
  public clientKey: string;
  public filter: Record<string, any>;

  public constructor(config: Config) {
    this.apiUrl = config.apiUrl;
    this.clientId = config.clientId;
    this.clientKey = config.clientKey;
    this.filter = config.filter;
  }
}

export const DefaultConfig = new Config( {
  apiUrl: 'https://api.sandbox.genesys-pgr.org',
  clientId: 'clientid@genesys',
  clientKey: 'changeme',
  filter: {},
})