@seatmap-fyi/api-client 0.1.0-alpha.4 → 0.1.0-alpha.6
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 -10
- package/dist/configuration.js +3 -8
- package/dist/generated.d.ts +62 -34
- package/dist/generated.js +391 -314
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/transport.d.ts +2 -1
- package/dist/transport.js +24 -63
- 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,16 +1,12 @@
|
|
|
1
|
+
import type { AxiosRequestConfig } from "axios";
|
|
1
2
|
export interface ConfigurationParameters {
|
|
2
|
-
readonly basePath
|
|
3
|
-
readonly
|
|
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
|
|
11
|
-
readonly credentials: RequestCredentials | undefined;
|
|
8
|
+
readonly basePath: string | undefined;
|
|
9
|
+
readonly baseOptions: AxiosRequestConfig | undefined;
|
|
12
10
|
readonly compressRequests: boolean;
|
|
13
|
-
|
|
14
|
-
csrfToken: string | undefined;
|
|
15
|
-
constructor(parameters: ConfigurationParameters);
|
|
11
|
+
constructor(parameters?: ConfigurationParameters);
|
|
16
12
|
}
|
package/dist/configuration.js
CHANGED
|
@@ -1,15 +1,10 @@
|
|
|
1
1
|
export class Configuration {
|
|
2
2
|
basePath;
|
|
3
|
-
|
|
4
|
-
credentials;
|
|
3
|
+
baseOptions;
|
|
5
4
|
compressRequests;
|
|
6
|
-
|
|
7
|
-
csrfToken;
|
|
8
|
-
constructor(parameters) {
|
|
5
|
+
constructor(parameters = {}) {
|
|
9
6
|
this.basePath = parameters.basePath;
|
|
10
|
-
this.
|
|
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
|
}
|
package/dist/generated.d.ts
CHANGED
|
@@ -1,8 +1,23 @@
|
|
|
1
|
+
import type { AxiosInstance, AxiosRequestConfig, AxiosResponse } from "axios";
|
|
1
2
|
export interface DocumentErrorIssueDto {
|
|
2
3
|
code: string;
|
|
3
4
|
message: string;
|
|
4
5
|
}
|
|
5
|
-
export interface
|
|
6
|
+
export interface HttpErrorDataDto {
|
|
7
|
+
/**
|
|
8
|
+
* Request-validation messages.
|
|
9
|
+
* @maxItems 50
|
|
10
|
+
*/
|
|
11
|
+
errors?: string[];
|
|
12
|
+
/** HTTP error category, independent of domain code. */
|
|
13
|
+
errorName: string;
|
|
14
|
+
/** Exception type; development only. */
|
|
15
|
+
error?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Bounded exception stack trace; development only.
|
|
18
|
+
* @maxLength 16384
|
|
19
|
+
*/
|
|
20
|
+
stackTrace?: string;
|
|
6
21
|
/**
|
|
7
22
|
* Rate-limit retry delay in seconds; also returned in Retry-After.
|
|
8
23
|
* @minimum 1
|
|
@@ -13,16 +28,15 @@ export interface HttpErrorDto {
|
|
|
13
28
|
* @maxItems 50
|
|
14
29
|
*/
|
|
15
30
|
issues?: DocumentErrorIssueDto[];
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
error?: string;
|
|
31
|
+
}
|
|
32
|
+
export interface HttpErrorDto {
|
|
33
|
+
/** Stable domain code, or HTTP category such as InternalServerError. */
|
|
34
|
+
code: string;
|
|
35
|
+
/** @maxLength 4096 */
|
|
36
|
+
message: string;
|
|
37
|
+
data: HttpErrorDataDto;
|
|
38
|
+
/** Server-generated request ID for log correlation. */
|
|
39
|
+
traceId: string;
|
|
26
40
|
}
|
|
27
41
|
export interface HealthResponseDto {
|
|
28
42
|
status: string;
|
|
@@ -79,6 +93,8 @@ export declare enum MapLifecycle {
|
|
|
79
93
|
deleted = "deleted"
|
|
80
94
|
}
|
|
81
95
|
export interface MapSummaryDto {
|
|
96
|
+
/** @pattern ^[a-z]{3}-[a-z]{4}-[a-z]{3}$ */
|
|
97
|
+
editorCode: string;
|
|
82
98
|
id: string;
|
|
83
99
|
name: string;
|
|
84
100
|
lifecycle: MapLifecycle;
|
|
@@ -2160,6 +2176,11 @@ export interface MutationStatusDto {
|
|
|
2160
2176
|
status: MutationStatus;
|
|
2161
2177
|
result?: MapAcknowledgementDto;
|
|
2162
2178
|
}
|
|
2179
|
+
export interface MapLinkDto {
|
|
2180
|
+
mapId: string;
|
|
2181
|
+
/** @pattern ^[a-z]{3}-[a-z]{4}-[a-z]{3}$ */
|
|
2182
|
+
editorCode: string;
|
|
2183
|
+
}
|
|
2163
2184
|
export interface MapResponseDto {
|
|
2164
2185
|
physical: PhysicalDocumentV1Dto;
|
|
2165
2186
|
referencePresentation?: ReferencePresentationDto;
|
|
@@ -2346,33 +2367,40 @@ export declare enum ListMapsLifecycle {
|
|
|
2346
2367
|
}
|
|
2347
2368
|
import type { Configuration } from "./configuration.js";
|
|
2348
2369
|
export declare class HealthClient {
|
|
2349
|
-
private readonly
|
|
2350
|
-
|
|
2351
|
-
|
|
2370
|
+
private readonly configuration;
|
|
2371
|
+
private readonly basePath?;
|
|
2372
|
+
private readonly operations;
|
|
2373
|
+
constructor(configuration: Configuration, basePath?: string | undefined, axiosInstance?: AxiosInstance);
|
|
2374
|
+
getLiveness(options?: AxiosRequestConfig): Promise<AxiosResponse<HealthResponseDto>>;
|
|
2352
2375
|
}
|
|
2353
2376
|
export declare class AuthenticationClient {
|
|
2354
|
-
private readonly
|
|
2355
|
-
private readonly basePath
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2377
|
+
private readonly configuration;
|
|
2378
|
+
private readonly basePath?;
|
|
2379
|
+
private readonly operations;
|
|
2380
|
+
constructor(configuration: Configuration, basePath?: string | undefined, axiosInstance?: AxiosInstance);
|
|
2381
|
+
getIntegrationContext(options?: AxiosRequestConfig): Promise<AxiosResponse<AccountContextDto>>;
|
|
2382
|
+
startLogin(params: StartLoginParams, options?: AxiosRequestConfig): Promise<AxiosResponse<unknown>>;
|
|
2383
|
+
completeLogin(options?: AxiosRequestConfig): Promise<AxiosResponse<unknown>>;
|
|
2384
|
+
logoutProvider(options?: AxiosRequestConfig): Promise<AxiosResponse<unknown>>;
|
|
2385
|
+
getAuthoringSession(options?: AxiosRequestConfig): Promise<AxiosResponse<AuthoringSessionContextDto>>;
|
|
2386
|
+
revokeAuthoringSession(options?: AxiosRequestConfig): Promise<AxiosResponse<void>>;
|
|
2387
|
+
getEmbedContext(mapId: string, options?: AxiosRequestConfig): Promise<AxiosResponse<EmbedContextDto>>;
|
|
2364
2388
|
startLoginHref(params: StartLoginParams): string;
|
|
2365
2389
|
logoutProviderHref(): string;
|
|
2366
2390
|
}
|
|
2367
2391
|
export declare class MapsClient {
|
|
2368
|
-
private readonly
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2392
|
+
private readonly configuration;
|
|
2393
|
+
private readonly basePath?;
|
|
2394
|
+
private readonly operations;
|
|
2395
|
+
constructor(configuration: Configuration, basePath?: string | undefined, axiosInstance?: AxiosInstance);
|
|
2396
|
+
listMaps(workspaceId: string, params?: ListMapsParams, options?: AxiosRequestConfig): Promise<AxiosResponse<MapListDto>>;
|
|
2397
|
+
createMap(workspaceId: string, createMapDto: CreateMapDto, options?: AxiosRequestConfig): Promise<AxiosResponse<MapAcknowledgementDto>>;
|
|
2398
|
+
getMutationStatus(workspaceId: string, operationId: string, options?: AxiosRequestConfig): Promise<AxiosResponse<MutationStatusDto>>;
|
|
2399
|
+
resolveMapLink(workspaceId: string, editorCode: string, options?: AxiosRequestConfig): Promise<AxiosResponse<MapLinkDto>>;
|
|
2400
|
+
getMapLink(workspaceId: string, mapId: string, options?: AxiosRequestConfig): Promise<AxiosResponse<MapLinkDto>>;
|
|
2401
|
+
getMap(workspaceId: string, mapId: string, options?: AxiosRequestConfig): Promise<AxiosResponse<MapResponseDto>>;
|
|
2402
|
+
saveMap(workspaceId: string, mapId: string, saveMapDto: SaveMapDto, options?: AxiosRequestConfig): Promise<AxiosResponse<MapAcknowledgementDto>>;
|
|
2403
|
+
changeMap(workspaceId: string, mapId: string, mapActionDto: MapActionDto, options?: AxiosRequestConfig): Promise<AxiosResponse<MapAcknowledgementDto>>;
|
|
2404
|
+
listMapRevisions(workspaceId: string, mapId: string, options?: AxiosRequestConfig): Promise<AxiosResponse<MapRevisionDto[]>>;
|
|
2405
|
+
getMapRevision(workspaceId: string, mapId: string, revision: number, options?: AxiosRequestConfig): Promise<AxiosResponse<MapContentDto>>;
|
|
2378
2406
|
}
|
package/dist/generated.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import axios from "axios";
|
|
1
2
|
export var Capability;
|
|
2
3
|
(function (Capability) {
|
|
3
4
|
Capability["MAPS_READ"] = "maps:read";
|
|
@@ -52,348 +53,424 @@ export var ListMapsLifecycle;
|
|
|
52
53
|
ListMapsLifecycle["trashed"] = "trashed";
|
|
53
54
|
ListMapsLifecycle["deleted"] = "deleted";
|
|
54
55
|
})(ListMapsLifecycle || (ListMapsLifecycle = {}));
|
|
55
|
-
import {
|
|
56
|
+
import { prepareRequestOptions } from "./transport.js";
|
|
56
57
|
export class HealthClient {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
configuration;
|
|
59
|
+
basePath;
|
|
60
|
+
operations;
|
|
61
|
+
constructor(configuration, basePath, axiosInstance = axios) {
|
|
62
|
+
this.configuration = configuration;
|
|
63
|
+
this.basePath = basePath;
|
|
64
|
+
this.operations = getSeatmapApi(axiosInstance);
|
|
60
65
|
}
|
|
61
|
-
getLiveness(options) {
|
|
62
|
-
|
|
66
|
+
async getLiveness(options) {
|
|
67
|
+
const requestOptions = await prepareRequestOptions(this.configuration, this.basePath, options, "GET");
|
|
68
|
+
return this.operations.getLiveness(requestOptions);
|
|
63
69
|
}
|
|
64
70
|
}
|
|
65
71
|
export class AuthenticationClient {
|
|
66
|
-
|
|
72
|
+
configuration;
|
|
67
73
|
basePath;
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
this.
|
|
74
|
+
operations;
|
|
75
|
+
constructor(configuration, basePath, axiosInstance = axios) {
|
|
76
|
+
this.configuration = configuration;
|
|
77
|
+
this.basePath = basePath;
|
|
78
|
+
this.operations = getSeatmapApi(axiosInstance);
|
|
71
79
|
}
|
|
72
|
-
getIntegrationContext(options) {
|
|
73
|
-
|
|
80
|
+
async getIntegrationContext(options) {
|
|
81
|
+
const requestOptions = await prepareRequestOptions(this.configuration, this.basePath, options, "GET");
|
|
82
|
+
return this.operations.getIntegrationContext(requestOptions);
|
|
74
83
|
}
|
|
75
|
-
startLogin(params, options) {
|
|
76
|
-
|
|
84
|
+
async startLogin(params, options) {
|
|
85
|
+
const requestOptions = await prepareRequestOptions(this.configuration, this.basePath, options, "GET");
|
|
86
|
+
return this.operations.startLogin(params, requestOptions);
|
|
77
87
|
}
|
|
78
|
-
completeLogin(options) {
|
|
79
|
-
|
|
88
|
+
async completeLogin(options) {
|
|
89
|
+
const requestOptions = await prepareRequestOptions(this.configuration, this.basePath, options, "GET");
|
|
90
|
+
return this.operations.completeLogin(requestOptions);
|
|
80
91
|
}
|
|
81
|
-
logoutProvider(options) {
|
|
82
|
-
|
|
92
|
+
async logoutProvider(options) {
|
|
93
|
+
const requestOptions = await prepareRequestOptions(this.configuration, this.basePath, options, "GET");
|
|
94
|
+
return this.operations.logoutProvider(requestOptions);
|
|
83
95
|
}
|
|
84
|
-
getAuthoringSession(options) {
|
|
85
|
-
|
|
96
|
+
async getAuthoringSession(options) {
|
|
97
|
+
const requestOptions = await prepareRequestOptions(this.configuration, this.basePath, options, "GET");
|
|
98
|
+
return this.operations.getAuthoringSession(requestOptions);
|
|
86
99
|
}
|
|
87
|
-
revokeAuthoringSession(options) {
|
|
88
|
-
|
|
100
|
+
async revokeAuthoringSession(options) {
|
|
101
|
+
const requestOptions = await prepareRequestOptions(this.configuration, this.basePath, options, "DELETE");
|
|
102
|
+
return this.operations.revokeAuthoringSession(requestOptions);
|
|
89
103
|
}
|
|
90
|
-
getEmbedContext(mapId, options) {
|
|
91
|
-
|
|
104
|
+
async getEmbedContext(mapId, options) {
|
|
105
|
+
const requestOptions = await prepareRequestOptions(this.configuration, this.basePath, options, "GET");
|
|
106
|
+
return this.operations.getEmbedContext(mapId, requestOptions);
|
|
92
107
|
}
|
|
93
108
|
startLoginHref(params) {
|
|
94
|
-
return new URL(getStartLoginUrl(params), this.basePath).href;
|
|
109
|
+
return new URL(this.operations.getStartLoginUrl(params), this.basePath ?? this.configuration.basePath).href;
|
|
95
110
|
}
|
|
96
111
|
logoutProviderHref() {
|
|
97
|
-
return new URL(getLogoutProviderUrl(), this.basePath).href;
|
|
112
|
+
return new URL(this.operations.getLogoutProviderUrl(), this.basePath ?? this.configuration.basePath).href;
|
|
98
113
|
}
|
|
99
114
|
}
|
|
100
115
|
export class MapsClient {
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
116
|
+
configuration;
|
|
117
|
+
basePath;
|
|
118
|
+
operations;
|
|
119
|
+
constructor(configuration, basePath, axiosInstance = axios) {
|
|
120
|
+
this.configuration = configuration;
|
|
121
|
+
this.basePath = basePath;
|
|
122
|
+
this.operations = getSeatmapApi(axiosInstance);
|
|
123
|
+
}
|
|
124
|
+
async listMaps(workspaceId, params, options) {
|
|
125
|
+
const requestOptions = await prepareRequestOptions(this.configuration, this.basePath, options, "GET");
|
|
126
|
+
return this.operations.listMaps(workspaceId, params, requestOptions);
|
|
104
127
|
}
|
|
105
|
-
|
|
106
|
-
|
|
128
|
+
async createMap(workspaceId, createMapDto, options) {
|
|
129
|
+
const requestOptions = await prepareRequestOptions(this.configuration, this.basePath, options, "POST", createMapDto);
|
|
130
|
+
return this.operations.createMap(workspaceId, requestOptions.data instanceof ArrayBuffer
|
|
131
|
+
? requestOptions.data
|
|
132
|
+
: createMapDto, requestOptions);
|
|
107
133
|
}
|
|
108
|
-
|
|
109
|
-
|
|
134
|
+
async getMutationStatus(workspaceId, operationId, options) {
|
|
135
|
+
const requestOptions = await prepareRequestOptions(this.configuration, this.basePath, options, "GET");
|
|
136
|
+
return this.operations.getMutationStatus(workspaceId, operationId, requestOptions);
|
|
110
137
|
}
|
|
111
|
-
|
|
112
|
-
|
|
138
|
+
async resolveMapLink(workspaceId, editorCode, options) {
|
|
139
|
+
const requestOptions = await prepareRequestOptions(this.configuration, this.basePath, options, "GET");
|
|
140
|
+
return this.operations.resolveMapLink(workspaceId, editorCode, requestOptions);
|
|
113
141
|
}
|
|
114
|
-
|
|
115
|
-
|
|
142
|
+
async getMapLink(workspaceId, mapId, options) {
|
|
143
|
+
const requestOptions = await prepareRequestOptions(this.configuration, this.basePath, options, "GET");
|
|
144
|
+
return this.operations.getMapLink(workspaceId, mapId, requestOptions);
|
|
116
145
|
}
|
|
117
|
-
|
|
118
|
-
|
|
146
|
+
async getMap(workspaceId, mapId, options) {
|
|
147
|
+
const requestOptions = await prepareRequestOptions(this.configuration, this.basePath, options, "GET");
|
|
148
|
+
return this.operations.getMap(workspaceId, mapId, requestOptions);
|
|
119
149
|
}
|
|
120
|
-
|
|
121
|
-
|
|
150
|
+
async saveMap(workspaceId, mapId, saveMapDto, options) {
|
|
151
|
+
const requestOptions = await prepareRequestOptions(this.configuration, this.basePath, options, "PUT", saveMapDto);
|
|
152
|
+
return this.operations.saveMap(workspaceId, mapId, requestOptions.data instanceof ArrayBuffer
|
|
153
|
+
? requestOptions.data
|
|
154
|
+
: saveMapDto, requestOptions);
|
|
122
155
|
}
|
|
123
|
-
|
|
124
|
-
|
|
156
|
+
async changeMap(workspaceId, mapId, mapActionDto, options) {
|
|
157
|
+
const requestOptions = await prepareRequestOptions(this.configuration, this.basePath, options, "POST", mapActionDto);
|
|
158
|
+
return this.operations.changeMap(workspaceId, mapId, requestOptions.data instanceof ArrayBuffer
|
|
159
|
+
? requestOptions.data
|
|
160
|
+
: mapActionDto, requestOptions);
|
|
125
161
|
}
|
|
126
|
-
|
|
127
|
-
|
|
162
|
+
async listMapRevisions(workspaceId, mapId, options) {
|
|
163
|
+
const requestOptions = await prepareRequestOptions(this.configuration, this.basePath, options, "GET");
|
|
164
|
+
return this.operations.listMapRevisions(workspaceId, mapId, requestOptions);
|
|
165
|
+
}
|
|
166
|
+
async getMapRevision(workspaceId, mapId, revision, options) {
|
|
167
|
+
const requestOptions = await prepareRequestOptions(this.configuration, this.basePath, options, "GET");
|
|
168
|
+
return this.operations.getMapRevision(workspaceId, mapId, revision, requestOptions);
|
|
128
169
|
}
|
|
129
170
|
}
|
|
130
|
-
const
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
const
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
};
|
|
145
|
-
const getIntegrationContext =
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
};
|
|
190
|
-
|
|
191
|
-
const
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
const
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
}
|
|
219
|
-
const
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
};
|
|
235
|
-
|
|
236
|
-
const
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
};
|
|
247
|
-
const listMaps =
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
const
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
const
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
};
|
|
315
|
-
|
|
316
|
-
const
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
const
|
|
342
|
-
|
|
343
|
-
};
|
|
344
|
-
const
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
}
|
|
372
|
-
const
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
171
|
+
const getSeatmapApi = (axiosInstance = axios) => {
|
|
172
|
+
const getLiveness = (options) => {
|
|
173
|
+
return axiosInstance.get(`/health`, options);
|
|
174
|
+
};
|
|
175
|
+
const getGetLivenessUrl = () => {
|
|
176
|
+
return axiosInstance
|
|
177
|
+
.create({
|
|
178
|
+
baseURL: "",
|
|
179
|
+
params: null,
|
|
180
|
+
})
|
|
181
|
+
.getUri({
|
|
182
|
+
url: `/health`,
|
|
183
|
+
baseURL: "",
|
|
184
|
+
});
|
|
185
|
+
};
|
|
186
|
+
const getIntegrationContext = (options) => {
|
|
187
|
+
return axiosInstance.get(`/auth/integration`, options);
|
|
188
|
+
};
|
|
189
|
+
const getGetIntegrationContextUrl = () => {
|
|
190
|
+
return axiosInstance
|
|
191
|
+
.create({
|
|
192
|
+
baseURL: "",
|
|
193
|
+
params: null,
|
|
194
|
+
})
|
|
195
|
+
.getUri({
|
|
196
|
+
url: `/auth/integration`,
|
|
197
|
+
baseURL: "",
|
|
198
|
+
});
|
|
199
|
+
};
|
|
200
|
+
const startLogin = (params, options) => {
|
|
201
|
+
return axiosInstance.get(`/auth/login`, {
|
|
202
|
+
...options,
|
|
203
|
+
params: { ...params, ...options?.params },
|
|
204
|
+
});
|
|
205
|
+
};
|
|
206
|
+
const getStartLoginUrl = (params) => {
|
|
207
|
+
return axiosInstance
|
|
208
|
+
.create({
|
|
209
|
+
baseURL: "",
|
|
210
|
+
params: null,
|
|
211
|
+
})
|
|
212
|
+
.getUri({
|
|
213
|
+
url: `/auth/login`,
|
|
214
|
+
baseURL: "",
|
|
215
|
+
params,
|
|
216
|
+
});
|
|
217
|
+
};
|
|
218
|
+
const completeLogin = (options) => {
|
|
219
|
+
return axiosInstance.get(`/auth/callback`, options);
|
|
220
|
+
};
|
|
221
|
+
const getCompleteLoginUrl = () => {
|
|
222
|
+
return axiosInstance
|
|
223
|
+
.create({
|
|
224
|
+
baseURL: "",
|
|
225
|
+
params: null,
|
|
226
|
+
})
|
|
227
|
+
.getUri({
|
|
228
|
+
url: `/auth/callback`,
|
|
229
|
+
baseURL: "",
|
|
230
|
+
});
|
|
231
|
+
};
|
|
232
|
+
const logoutProvider = (options) => {
|
|
233
|
+
return axiosInstance.get(`/auth/logout/provider`, options);
|
|
234
|
+
};
|
|
235
|
+
const getLogoutProviderUrl = () => {
|
|
236
|
+
return axiosInstance
|
|
237
|
+
.create({
|
|
238
|
+
baseURL: "",
|
|
239
|
+
params: null,
|
|
240
|
+
})
|
|
241
|
+
.getUri({
|
|
242
|
+
url: `/auth/logout/provider`,
|
|
243
|
+
baseURL: "",
|
|
244
|
+
});
|
|
245
|
+
};
|
|
246
|
+
const getAuthoringSession = (options) => {
|
|
247
|
+
return axiosInstance.get(`/auth/authoring/session`, options);
|
|
248
|
+
};
|
|
249
|
+
const getGetAuthoringSessionUrl = () => {
|
|
250
|
+
return axiosInstance
|
|
251
|
+
.create({
|
|
252
|
+
baseURL: "",
|
|
253
|
+
params: null,
|
|
254
|
+
})
|
|
255
|
+
.getUri({
|
|
256
|
+
url: `/auth/authoring/session`,
|
|
257
|
+
baseURL: "",
|
|
258
|
+
});
|
|
259
|
+
};
|
|
260
|
+
const revokeAuthoringSession = (options) => {
|
|
261
|
+
return axiosInstance.delete(`/auth/authoring/session`, options);
|
|
262
|
+
};
|
|
263
|
+
const getRevokeAuthoringSessionUrl = () => {
|
|
264
|
+
return axiosInstance
|
|
265
|
+
.create({
|
|
266
|
+
baseURL: "",
|
|
267
|
+
params: null,
|
|
268
|
+
})
|
|
269
|
+
.getUri({
|
|
270
|
+
url: `/auth/authoring/session`,
|
|
271
|
+
baseURL: "",
|
|
272
|
+
});
|
|
273
|
+
};
|
|
274
|
+
const getEmbedContext = (mapId, options) => {
|
|
275
|
+
return axiosInstance.get(`/auth/embed/${encodeURIComponent(mapId)}`, options);
|
|
276
|
+
};
|
|
277
|
+
const getGetEmbedContextUrl = (mapId) => {
|
|
278
|
+
return axiosInstance
|
|
279
|
+
.create({
|
|
280
|
+
baseURL: "",
|
|
281
|
+
params: null,
|
|
282
|
+
})
|
|
283
|
+
.getUri({
|
|
284
|
+
url: `/auth/embed/${encodeURIComponent(mapId)}`,
|
|
285
|
+
baseURL: "",
|
|
286
|
+
});
|
|
287
|
+
};
|
|
288
|
+
const listMaps = (workspaceId, params, options) => {
|
|
289
|
+
return axiosInstance.get(`/workspaces/${encodeURIComponent(workspaceId)}/maps`, {
|
|
290
|
+
...options,
|
|
291
|
+
params: { ...params, ...options?.params },
|
|
292
|
+
});
|
|
293
|
+
};
|
|
294
|
+
const getListMapsUrl = (workspaceId, params) => {
|
|
295
|
+
return axiosInstance
|
|
296
|
+
.create({
|
|
297
|
+
baseURL: "",
|
|
298
|
+
params: null,
|
|
299
|
+
})
|
|
300
|
+
.getUri({
|
|
301
|
+
url: `/workspaces/${encodeURIComponent(workspaceId)}/maps`,
|
|
302
|
+
baseURL: "",
|
|
303
|
+
params,
|
|
304
|
+
});
|
|
305
|
+
};
|
|
306
|
+
const createMap = (workspaceId, createMapDto, options) => {
|
|
307
|
+
return axiosInstance.post(`/workspaces/${encodeURIComponent(workspaceId)}/maps`, createMapDto, options);
|
|
308
|
+
};
|
|
309
|
+
const getCreateMapUrl = (workspaceId) => {
|
|
310
|
+
return axiosInstance
|
|
311
|
+
.create({
|
|
312
|
+
baseURL: "",
|
|
313
|
+
params: null,
|
|
314
|
+
})
|
|
315
|
+
.getUri({
|
|
316
|
+
url: `/workspaces/${encodeURIComponent(workspaceId)}/maps`,
|
|
317
|
+
baseURL: "",
|
|
318
|
+
});
|
|
319
|
+
};
|
|
320
|
+
const getMutationStatus = (workspaceId, operationId, options) => {
|
|
321
|
+
return axiosInstance.get(`/workspaces/${encodeURIComponent(workspaceId)}/maps/operations/${encodeURIComponent(operationId)}`, options);
|
|
322
|
+
};
|
|
323
|
+
const getGetMutationStatusUrl = (workspaceId, operationId) => {
|
|
324
|
+
return axiosInstance
|
|
325
|
+
.create({
|
|
326
|
+
baseURL: "",
|
|
327
|
+
params: null,
|
|
328
|
+
})
|
|
329
|
+
.getUri({
|
|
330
|
+
url: `/workspaces/${encodeURIComponent(workspaceId)}/maps/operations/${encodeURIComponent(operationId)}`,
|
|
331
|
+
baseURL: "",
|
|
332
|
+
});
|
|
333
|
+
};
|
|
334
|
+
/**
|
|
335
|
+
* @summary Resolve a permanent map code within an authorized workspace
|
|
336
|
+
*/
|
|
337
|
+
const resolveMapLink = (workspaceId, editorCode, options) => {
|
|
338
|
+
return axiosInstance.get(`/workspaces/${encodeURIComponent(workspaceId)}/maps/links/${encodeURIComponent(editorCode)}`, options);
|
|
339
|
+
};
|
|
340
|
+
const getResolveMapLinkUrl = (workspaceId, editorCode) => {
|
|
341
|
+
return axiosInstance
|
|
342
|
+
.create({
|
|
343
|
+
baseURL: "",
|
|
344
|
+
params: null,
|
|
345
|
+
})
|
|
346
|
+
.getUri({
|
|
347
|
+
url: `/workspaces/${encodeURIComponent(workspaceId)}/maps/links/${encodeURIComponent(editorCode)}`,
|
|
348
|
+
baseURL: "",
|
|
349
|
+
});
|
|
350
|
+
};
|
|
351
|
+
/**
|
|
352
|
+
* @summary Get a map's permanent editor link
|
|
353
|
+
*/
|
|
354
|
+
const getMapLink = (workspaceId, mapId, options) => {
|
|
355
|
+
return axiosInstance.get(`/workspaces/${encodeURIComponent(workspaceId)}/maps/${encodeURIComponent(mapId)}/link`, options);
|
|
356
|
+
};
|
|
357
|
+
const getGetMapLinkUrl = (workspaceId, mapId) => {
|
|
358
|
+
return axiosInstance
|
|
359
|
+
.create({
|
|
360
|
+
baseURL: "",
|
|
361
|
+
params: null,
|
|
362
|
+
})
|
|
363
|
+
.getUri({
|
|
364
|
+
url: `/workspaces/${encodeURIComponent(workspaceId)}/maps/${encodeURIComponent(mapId)}/link`,
|
|
365
|
+
baseURL: "",
|
|
366
|
+
});
|
|
367
|
+
};
|
|
368
|
+
const getMap = (workspaceId, mapId, options) => {
|
|
369
|
+
return axiosInstance.get(`/workspaces/${encodeURIComponent(workspaceId)}/maps/${encodeURIComponent(mapId)}`, options);
|
|
370
|
+
};
|
|
371
|
+
const getGetMapUrl = (workspaceId, mapId) => {
|
|
372
|
+
return axiosInstance
|
|
373
|
+
.create({
|
|
374
|
+
baseURL: "",
|
|
375
|
+
params: null,
|
|
376
|
+
})
|
|
377
|
+
.getUri({
|
|
378
|
+
url: `/workspaces/${encodeURIComponent(workspaceId)}/maps/${encodeURIComponent(mapId)}`,
|
|
379
|
+
baseURL: "",
|
|
380
|
+
});
|
|
381
|
+
};
|
|
382
|
+
const saveMap = (workspaceId, mapId, saveMapDto, options) => {
|
|
383
|
+
return axiosInstance.put(`/workspaces/${encodeURIComponent(workspaceId)}/maps/${encodeURIComponent(mapId)}/draft`, saveMapDto, options);
|
|
384
|
+
};
|
|
385
|
+
const getSaveMapUrl = (workspaceId, mapId) => {
|
|
386
|
+
return axiosInstance
|
|
387
|
+
.create({
|
|
388
|
+
baseURL: "",
|
|
389
|
+
params: null,
|
|
390
|
+
})
|
|
391
|
+
.getUri({
|
|
392
|
+
url: `/workspaces/${encodeURIComponent(workspaceId)}/maps/${encodeURIComponent(mapId)}/draft`,
|
|
393
|
+
baseURL: "",
|
|
394
|
+
});
|
|
395
|
+
};
|
|
396
|
+
const changeMap = (workspaceId, mapId, mapActionDto, options) => {
|
|
397
|
+
return axiosInstance.post(`/workspaces/${encodeURIComponent(workspaceId)}/maps/${encodeURIComponent(mapId)}/actions`, mapActionDto, options);
|
|
398
|
+
};
|
|
399
|
+
const getChangeMapUrl = (workspaceId, mapId) => {
|
|
400
|
+
return axiosInstance
|
|
401
|
+
.create({
|
|
402
|
+
baseURL: "",
|
|
403
|
+
params: null,
|
|
404
|
+
})
|
|
405
|
+
.getUri({
|
|
406
|
+
url: `/workspaces/${encodeURIComponent(workspaceId)}/maps/${encodeURIComponent(mapId)}/actions`,
|
|
407
|
+
baseURL: "",
|
|
408
|
+
});
|
|
409
|
+
};
|
|
410
|
+
const listMapRevisions = (workspaceId, mapId, options) => {
|
|
411
|
+
return axiosInstance.get(`/workspaces/${encodeURIComponent(workspaceId)}/maps/${encodeURIComponent(mapId)}/revisions`, options);
|
|
412
|
+
};
|
|
413
|
+
const getListMapRevisionsUrl = (workspaceId, mapId) => {
|
|
414
|
+
return axiosInstance
|
|
415
|
+
.create({
|
|
416
|
+
baseURL: "",
|
|
417
|
+
params: null,
|
|
418
|
+
})
|
|
419
|
+
.getUri({
|
|
420
|
+
url: `/workspaces/${encodeURIComponent(workspaceId)}/maps/${encodeURIComponent(mapId)}/revisions`,
|
|
421
|
+
baseURL: "",
|
|
422
|
+
});
|
|
423
|
+
};
|
|
424
|
+
const getMapRevision = (workspaceId, mapId, revision, options) => {
|
|
425
|
+
return axiosInstance.get(`/workspaces/${encodeURIComponent(workspaceId)}/maps/${encodeURIComponent(mapId)}/revisions/${encodeURIComponent(revision)}`, options);
|
|
426
|
+
};
|
|
427
|
+
const getGetMapRevisionUrl = (workspaceId, mapId, revision) => {
|
|
428
|
+
return axiosInstance
|
|
429
|
+
.create({
|
|
430
|
+
baseURL: "",
|
|
431
|
+
params: null,
|
|
432
|
+
})
|
|
433
|
+
.getUri({
|
|
434
|
+
url: `/workspaces/${encodeURIComponent(workspaceId)}/maps/${encodeURIComponent(mapId)}/revisions/${encodeURIComponent(revision)}`,
|
|
435
|
+
baseURL: "",
|
|
436
|
+
});
|
|
437
|
+
};
|
|
438
|
+
return {
|
|
439
|
+
getLiveness,
|
|
440
|
+
getIntegrationContext,
|
|
441
|
+
startLogin,
|
|
442
|
+
completeLogin,
|
|
443
|
+
logoutProvider,
|
|
444
|
+
getAuthoringSession,
|
|
445
|
+
revokeAuthoringSession,
|
|
446
|
+
getEmbedContext,
|
|
447
|
+
listMaps,
|
|
448
|
+
createMap,
|
|
449
|
+
getMutationStatus,
|
|
450
|
+
resolveMapLink,
|
|
451
|
+
getMapLink,
|
|
452
|
+
getMap,
|
|
453
|
+
saveMap,
|
|
454
|
+
changeMap,
|
|
455
|
+
listMapRevisions,
|
|
456
|
+
getMapRevision,
|
|
457
|
+
getGetLivenessUrl,
|
|
458
|
+
getGetIntegrationContextUrl,
|
|
459
|
+
getStartLoginUrl,
|
|
460
|
+
getCompleteLoginUrl,
|
|
461
|
+
getLogoutProviderUrl,
|
|
462
|
+
getGetAuthoringSessionUrl,
|
|
463
|
+
getRevokeAuthoringSessionUrl,
|
|
464
|
+
getGetEmbedContextUrl,
|
|
465
|
+
getListMapsUrl,
|
|
466
|
+
getCreateMapUrl,
|
|
467
|
+
getGetMutationStatusUrl,
|
|
468
|
+
getResolveMapLinkUrl,
|
|
469
|
+
getGetMapLinkUrl,
|
|
470
|
+
getGetMapUrl,
|
|
471
|
+
getSaveMapUrl,
|
|
472
|
+
getChangeMapUrl,
|
|
473
|
+
getListMapRevisionsUrl,
|
|
474
|
+
getGetMapRevisionUrl,
|
|
475
|
+
};
|
|
399
476
|
};
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/dist/transport.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import type { AxiosRequestConfig } from "axios";
|
|
1
2
|
import type { Configuration } from "./configuration.js";
|
|
2
|
-
export declare function
|
|
3
|
+
export declare function prepareRequestOptions(configuration: Configuration, basePath: string | undefined, options: AxiosRequestConfig | undefined, method: string, body?: unknown): Promise<AxiosRequestConfig<unknown>>;
|
package/dist/transport.js
CHANGED
|
@@ -1,70 +1,31 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { mergeConfig } from "axios";
|
|
2
2
|
const clientContract = "1";
|
|
3
3
|
const requestCompressionThreshold = 64 * 1024;
|
|
4
|
-
export function
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
headers.set("X-CSRF-Token", configuration.csrfToken);
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
let body = options?.body;
|
|
17
|
-
if (configuration.compressRequests &&
|
|
18
|
-
typeof body === "string" &&
|
|
19
|
-
body.length >= requestCompressionThreshold &&
|
|
20
|
-
!headers.has("Content-Encoding") &&
|
|
21
|
-
typeof CompressionStream !== "undefined") {
|
|
22
|
-
body = await new Response(new Blob([body]).stream().pipeThrough(new CompressionStream("gzip"))).arrayBuffer();
|
|
23
|
-
headers.set("Content-Encoding", "gzip");
|
|
24
|
-
}
|
|
25
|
-
try {
|
|
26
|
-
const response = await configuration.fetchApi(typeof input === "string" ? new URL(input, baseUrl) : input, {
|
|
27
|
-
...options,
|
|
28
|
-
...(body !== undefined ? { body } : {}),
|
|
29
|
-
headers,
|
|
30
|
-
...(configuration.credentials
|
|
31
|
-
? { credentials: configuration.credentials }
|
|
32
|
-
: {}),
|
|
33
|
-
});
|
|
34
|
-
if (response.status === 401) {
|
|
35
|
-
configuration.csrfToken = undefined;
|
|
36
|
-
}
|
|
37
|
-
if (!response.ok && response.status !== 304) {
|
|
38
|
-
throw new ApiError(response);
|
|
39
|
-
}
|
|
40
|
-
return response;
|
|
41
|
-
}
|
|
42
|
-
catch (cause) {
|
|
43
|
-
if (cause instanceof Error && cause.name === "AbortError") {
|
|
44
|
-
throw cause;
|
|
45
|
-
}
|
|
46
|
-
if (configuration.mapError) {
|
|
47
|
-
throw await configuration.mapError(cause);
|
|
48
|
-
}
|
|
49
|
-
throw cause;
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
function normalizeHeaders(source) {
|
|
54
|
-
let entries;
|
|
55
|
-
if (source instanceof Headers) {
|
|
56
|
-
entries = source.entries();
|
|
4
|
+
export async function prepareRequestOptions(configuration, basePath, options, method, body) {
|
|
5
|
+
const prepared = mergeConfig(configuration.baseOptions ?? {}, options ?? {});
|
|
6
|
+
const headers = { ...prepared.headers };
|
|
7
|
+
if (!["GET", "HEAD", "OPTIONS"].includes(method)) {
|
|
8
|
+
headers["X-Seatmap-Contract"] = clientContract;
|
|
9
|
+
}
|
|
10
|
+
const configuredBasePath = basePath ?? configuration.basePath;
|
|
11
|
+
if (configuredBasePath !== undefined) {
|
|
12
|
+
prepared.baseURL = configuredBasePath;
|
|
57
13
|
}
|
|
58
|
-
|
|
59
|
-
|
|
14
|
+
prepared.headers = headers;
|
|
15
|
+
if (prepared.validateStatus === undefined) {
|
|
16
|
+
prepared.validateStatus = (status) => (status >= 200 && status < 300) || status === 304;
|
|
60
17
|
}
|
|
61
|
-
|
|
62
|
-
|
|
18
|
+
if (!configuration.compressRequests ||
|
|
19
|
+
body === undefined ||
|
|
20
|
+
Object.keys(headers).some((name) => name.toLowerCase() === "content-encoding")) {
|
|
21
|
+
return prepared;
|
|
63
22
|
}
|
|
64
|
-
const
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
23
|
+
const serialized = JSON.stringify(options?.data ?? body);
|
|
24
|
+
if (serialized.length < requestCompressionThreshold ||
|
|
25
|
+
typeof CompressionStream === "undefined") {
|
|
26
|
+
return prepared;
|
|
68
27
|
}
|
|
69
|
-
|
|
28
|
+
prepared.data = await new Response(new Blob([serialized]).stream().pipeThrough(new CompressionStream("gzip"))).arrayBuffer();
|
|
29
|
+
headers["Content-Encoding"] = "gzip";
|
|
30
|
+
return prepared;
|
|
70
31
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seatmap-fyi/api-client",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.6",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -18,5 +18,8 @@
|
|
|
18
18
|
},
|
|
19
19
|
"publishConfig": {
|
|
20
20
|
"access": "public"
|
|
21
|
+
},
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"axios": "1.20.0"
|
|
21
24
|
}
|
|
22
25
|
}
|
package/dist/errors/api-error.js
DELETED