@seatmap-fyi/api-client 0.1.0-alpha.3 → 0.1.0-alpha.33

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,16 +1,12 @@
1
+ import type { AxiosRequestConfig } from "axios";
1
2
  export interface ConfigurationParameters {
2
- readonly basePath: string;
3
- readonly fetchApi?: typeof globalThis.fetch;
4
- readonly credentials?: RequestCredentials;
3
+ readonly basePath?: string | undefined;
4
+ readonly baseOptions?: AxiosRequestConfig;
5
5
  readonly compressRequests?: boolean;
6
- readonly mapError?: (cause: unknown) => Promise<Error>;
7
6
  }
8
7
  export declare class Configuration {
9
- readonly basePath: string;
10
- readonly fetchApi: typeof globalThis.fetch;
11
- readonly credentials: RequestCredentials | undefined;
8
+ readonly basePath: string | undefined;
9
+ readonly baseOptions: AxiosRequestConfig | undefined;
12
10
  readonly compressRequests: boolean;
13
- readonly mapError: ConfigurationParameters["mapError"];
14
- csrfToken: string | undefined;
15
- constructor(parameters: ConfigurationParameters);
11
+ constructor(parameters?: ConfigurationParameters);
16
12
  }
@@ -1,15 +1,10 @@
1
1
  export class Configuration {
2
2
  basePath;
3
- fetchApi;
4
- credentials;
3
+ baseOptions;
5
4
  compressRequests;
6
- mapError;
7
- csrfToken;
8
- constructor(parameters) {
5
+ constructor(parameters = {}) {
9
6
  this.basePath = parameters.basePath;
10
- this.fetchApi = parameters.fetchApi ?? globalThis.fetch;
11
- this.credentials = parameters.credentials;
7
+ this.baseOptions = parameters.baseOptions;
12
8
  this.compressRequests = parameters.compressRequests ?? false;
13
- this.mapError = parameters.mapError;
14
9
  }
15
10
  }