@seatmap-fyi/api-client 0.1.0-alpha.2 → 0.1.0-alpha.28
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/configuration.d.ts +6 -12
- package/dist/configuration.js +3 -10
- package/dist/generated.d.ts +1980 -285
- package/dist/generated.js +639 -314
- package/dist/index.d.ts +1 -2
- package/dist/index.js +1 -2
- package/dist/transport.d.ts +13 -1
- package/dist/transport.js +43 -65
- package/package.json +4 -1
- package/dist/errors/api-error.d.ts +0 -5
- package/dist/errors/api-error.js +0 -10
package/dist/configuration.d.ts
CHANGED
|
@@ -1,18 +1,12 @@
|
|
|
1
|
+
import type { AxiosRequestConfig } from "axios";
|
|
1
2
|
export interface ConfigurationParameters {
|
|
2
|
-
readonly basePath
|
|
3
|
-
readonly
|
|
4
|
-
readonly credentials?: RequestCredentials;
|
|
5
|
-
readonly contract?: string;
|
|
3
|
+
readonly basePath?: string | undefined;
|
|
4
|
+
readonly baseOptions?: AxiosRequestConfig;
|
|
6
5
|
readonly compressRequests?: boolean;
|
|
7
|
-
readonly mapError?: (cause: unknown) => Promise<Error>;
|
|
8
6
|
}
|
|
9
7
|
export declare class Configuration {
|
|
10
|
-
readonly basePath: string;
|
|
11
|
-
readonly
|
|
12
|
-
readonly credentials: RequestCredentials | undefined;
|
|
13
|
-
readonly contract: string | undefined;
|
|
8
|
+
readonly basePath: string | undefined;
|
|
9
|
+
readonly baseOptions: AxiosRequestConfig | undefined;
|
|
14
10
|
readonly compressRequests: boolean;
|
|
15
|
-
|
|
16
|
-
csrfToken: string | undefined;
|
|
17
|
-
constructor(parameters: ConfigurationParameters);
|
|
11
|
+
constructor(parameters?: ConfigurationParameters);
|
|
18
12
|
}
|
package/dist/configuration.js
CHANGED
|
@@ -1,17 +1,10 @@
|
|
|
1
1
|
export class Configuration {
|
|
2
2
|
basePath;
|
|
3
|
-
|
|
4
|
-
credentials;
|
|
5
|
-
contract;
|
|
3
|
+
baseOptions;
|
|
6
4
|
compressRequests;
|
|
7
|
-
|
|
8
|
-
csrfToken;
|
|
9
|
-
constructor(parameters) {
|
|
5
|
+
constructor(parameters = {}) {
|
|
10
6
|
this.basePath = parameters.basePath;
|
|
11
|
-
this.
|
|
12
|
-
this.credentials = parameters.credentials;
|
|
13
|
-
this.contract = parameters.contract;
|
|
7
|
+
this.baseOptions = parameters.baseOptions;
|
|
14
8
|
this.compressRequests = parameters.compressRequests ?? false;
|
|
15
|
-
this.mapError = parameters.mapError;
|
|
16
9
|
}
|
|
17
10
|
}
|