@seatmap-fyi/api-client 0.1.0-alpha.7 → 0.1.0-alpha.8
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/generated.d.ts +101 -0
- package/dist/generated.js +219 -0
- package/dist/transport.js +8 -0
- package/package.json +1 -1
package/dist/generated.d.ts
CHANGED
|
@@ -2272,6 +2272,93 @@ export interface MapContentDto {
|
|
|
2272
2272
|
physical: PhysicalDocumentV1Dto;
|
|
2273
2273
|
referencePresentation?: ReferencePresentationDto;
|
|
2274
2274
|
}
|
|
2275
|
+
export interface ArtworkLimitsDto {
|
|
2276
|
+
fileBytes: number;
|
|
2277
|
+
rasterPixels: number;
|
|
2278
|
+
mapBytes: number;
|
|
2279
|
+
references: number;
|
|
2280
|
+
concurrentUploads: number;
|
|
2281
|
+
uploadsPerHour: number;
|
|
2282
|
+
configured: boolean;
|
|
2283
|
+
}
|
|
2284
|
+
export declare enum PrepareArtworkUploadDtoMimeType {
|
|
2285
|
+
"image/png" = "image/png",
|
|
2286
|
+
"image/jpeg" = "image/jpeg",
|
|
2287
|
+
"image/webp" = "image/webp",
|
|
2288
|
+
"image/svg+xml" = "image/svg+xml"
|
|
2289
|
+
}
|
|
2290
|
+
export interface PrepareArtworkUploadDto {
|
|
2291
|
+
uploadId: string;
|
|
2292
|
+
assetId: string;
|
|
2293
|
+
mapId: string;
|
|
2294
|
+
mimeType: PrepareArtworkUploadDtoMimeType;
|
|
2295
|
+
/**
|
|
2296
|
+
* @minimum 1
|
|
2297
|
+
* @maximum 10485760
|
|
2298
|
+
*/
|
|
2299
|
+
byteLength: number;
|
|
2300
|
+
sha256: string;
|
|
2301
|
+
}
|
|
2302
|
+
export declare enum ArtworkUploadState {
|
|
2303
|
+
prepared = "prepared",
|
|
2304
|
+
receiving = "receiving",
|
|
2305
|
+
uploaded = "uploaded",
|
|
2306
|
+
validating = "validating",
|
|
2307
|
+
ready = "ready",
|
|
2308
|
+
"review-required" = "review-required",
|
|
2309
|
+
failed = "failed",
|
|
2310
|
+
cancelled = "cancelled"
|
|
2311
|
+
}
|
|
2312
|
+
export declare enum ArtworkFailureCode {
|
|
2313
|
+
ARTWORK_DIGEST = "ARTWORK_DIGEST",
|
|
2314
|
+
ARTWORK_SVG_ACTIVE = "ARTWORK_SVG_ACTIVE",
|
|
2315
|
+
ARTWORK_SVG_INVALID = "ARTWORK_SVG_INVALID",
|
|
2316
|
+
ARTWORK_SVG_COMPLEX = "ARTWORK_SVG_COMPLEX",
|
|
2317
|
+
ARTWORK_FILE_LIMIT = "ARTWORK_FILE_LIMIT",
|
|
2318
|
+
ARTWORK_TYPE = "ARTWORK_TYPE",
|
|
2319
|
+
ARTWORK_PIXEL_LIMIT = "ARTWORK_PIXEL_LIMIT",
|
|
2320
|
+
ARTWORK_DECODE = "ARTWORK_DECODE",
|
|
2321
|
+
ARTWORK_TRANSFER = "ARTWORK_TRANSFER",
|
|
2322
|
+
ARTWORK_EXPIRED = "ARTWORK_EXPIRED",
|
|
2323
|
+
ARTWORK_VALIDATION_FAILED = "ARTWORK_VALIDATION_FAILED"
|
|
2324
|
+
}
|
|
2325
|
+
export interface ArtworkUploadDto {
|
|
2326
|
+
uploadId: string;
|
|
2327
|
+
assetId: string;
|
|
2328
|
+
state: ArtworkUploadState;
|
|
2329
|
+
expiresAt: string;
|
|
2330
|
+
errorCode?: ArtworkFailureCode;
|
|
2331
|
+
}
|
|
2332
|
+
export interface RetryArtworkUploadDto {
|
|
2333
|
+
uploadId: string;
|
|
2334
|
+
}
|
|
2335
|
+
export interface ArtworkBatchDto {
|
|
2336
|
+
/**
|
|
2337
|
+
* @minItems 1
|
|
2338
|
+
* @maxItems 50
|
|
2339
|
+
* @items.pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
|
|
2340
|
+
*/
|
|
2341
|
+
assetIds: string[];
|
|
2342
|
+
}
|
|
2343
|
+
export declare enum ArtworkState {
|
|
2344
|
+
pending = "pending",
|
|
2345
|
+
ready = "ready",
|
|
2346
|
+
"review-required" = "review-required",
|
|
2347
|
+
failed = "failed",
|
|
2348
|
+
deleting = "deleting",
|
|
2349
|
+
deleted = "deleted"
|
|
2350
|
+
}
|
|
2351
|
+
export interface ArtworkResourceDto {
|
|
2352
|
+
assetId: string;
|
|
2353
|
+
state: ArtworkState;
|
|
2354
|
+
url?: string;
|
|
2355
|
+
expiresAt?: string;
|
|
2356
|
+
sha256?: string;
|
|
2357
|
+
mimeType?: string;
|
|
2358
|
+
byteLength?: number;
|
|
2359
|
+
width?: number;
|
|
2360
|
+
height?: number;
|
|
2361
|
+
}
|
|
2275
2362
|
export type StartLoginParams = {
|
|
2276
2363
|
/**
|
|
2277
2364
|
* Registered frontend return destination.
|
|
@@ -2340,3 +2427,17 @@ export declare class MapsClient {
|
|
|
2340
2427
|
listMapRevisions(workspaceId: string, mapId: string, options?: AxiosRequestConfig): Promise<AxiosResponse<MapRevisionDto[]>>;
|
|
2341
2428
|
getMapRevision(workspaceId: string, mapId: string, revision: number, options?: AxiosRequestConfig): Promise<AxiosResponse<MapContentDto>>;
|
|
2342
2429
|
}
|
|
2430
|
+
export declare class ArtworkClient {
|
|
2431
|
+
private readonly configuration;
|
|
2432
|
+
private readonly basePath?;
|
|
2433
|
+
private readonly operations;
|
|
2434
|
+
constructor(configuration: Configuration, basePath?: string | undefined, axiosInstance?: AxiosInstance);
|
|
2435
|
+
getArtworkLimits(workspaceId: string, options?: AxiosRequestConfig): Promise<AxiosResponse<ArtworkLimitsDto>>;
|
|
2436
|
+
prepareArtworkUpload(workspaceId: string, prepareArtworkUploadDto: PrepareArtworkUploadDto, options?: AxiosRequestConfig): Promise<AxiosResponse<ArtworkUploadDto>>;
|
|
2437
|
+
getArtworkUpload(workspaceId: string, uploadId: string, options?: AxiosRequestConfig): Promise<AxiosResponse<ArtworkUploadDto>>;
|
|
2438
|
+
uploadArtworkContent(workspaceId: string, uploadId: string, uploadArtworkContentBody: Blob, options?: AxiosRequestConfig): Promise<AxiosResponse<ArtworkUploadDto>>;
|
|
2439
|
+
completeArtworkUpload(workspaceId: string, uploadId: string, options?: AxiosRequestConfig): Promise<AxiosResponse<ArtworkUploadDto>>;
|
|
2440
|
+
cancelArtworkUpload(workspaceId: string, uploadId: string, options?: AxiosRequestConfig): Promise<AxiosResponse<ArtworkUploadDto>>;
|
|
2441
|
+
retryArtworkUpload(workspaceId: string, uploadId: string, retryArtworkUploadDto: RetryArtworkUploadDto, options?: AxiosRequestConfig): Promise<AxiosResponse<ArtworkUploadDto>>;
|
|
2442
|
+
getArtworkResources(workspaceId: string, artworkBatchDto: ArtworkBatchDto, options?: AxiosRequestConfig): Promise<AxiosResponse<ArtworkResourceDto[]>>;
|
|
2443
|
+
}
|
package/dist/generated.js
CHANGED
|
@@ -46,6 +46,47 @@ export var MapOperation;
|
|
|
46
46
|
MapOperation["restoreTrash"] = "restoreTrash";
|
|
47
47
|
MapOperation["restoreRevision"] = "restoreRevision";
|
|
48
48
|
})(MapOperation || (MapOperation = {}));
|
|
49
|
+
export var PrepareArtworkUploadDtoMimeType;
|
|
50
|
+
(function (PrepareArtworkUploadDtoMimeType) {
|
|
51
|
+
PrepareArtworkUploadDtoMimeType["image/png"] = "image/png";
|
|
52
|
+
PrepareArtworkUploadDtoMimeType["image/jpeg"] = "image/jpeg";
|
|
53
|
+
PrepareArtworkUploadDtoMimeType["image/webp"] = "image/webp";
|
|
54
|
+
PrepareArtworkUploadDtoMimeType["image/svg+xml"] = "image/svg+xml";
|
|
55
|
+
})(PrepareArtworkUploadDtoMimeType || (PrepareArtworkUploadDtoMimeType = {}));
|
|
56
|
+
export var ArtworkUploadState;
|
|
57
|
+
(function (ArtworkUploadState) {
|
|
58
|
+
ArtworkUploadState["prepared"] = "prepared";
|
|
59
|
+
ArtworkUploadState["receiving"] = "receiving";
|
|
60
|
+
ArtworkUploadState["uploaded"] = "uploaded";
|
|
61
|
+
ArtworkUploadState["validating"] = "validating";
|
|
62
|
+
ArtworkUploadState["ready"] = "ready";
|
|
63
|
+
ArtworkUploadState["review-required"] = "review-required";
|
|
64
|
+
ArtworkUploadState["failed"] = "failed";
|
|
65
|
+
ArtworkUploadState["cancelled"] = "cancelled";
|
|
66
|
+
})(ArtworkUploadState || (ArtworkUploadState = {}));
|
|
67
|
+
export var ArtworkFailureCode;
|
|
68
|
+
(function (ArtworkFailureCode) {
|
|
69
|
+
ArtworkFailureCode["ARTWORK_DIGEST"] = "ARTWORK_DIGEST";
|
|
70
|
+
ArtworkFailureCode["ARTWORK_SVG_ACTIVE"] = "ARTWORK_SVG_ACTIVE";
|
|
71
|
+
ArtworkFailureCode["ARTWORK_SVG_INVALID"] = "ARTWORK_SVG_INVALID";
|
|
72
|
+
ArtworkFailureCode["ARTWORK_SVG_COMPLEX"] = "ARTWORK_SVG_COMPLEX";
|
|
73
|
+
ArtworkFailureCode["ARTWORK_FILE_LIMIT"] = "ARTWORK_FILE_LIMIT";
|
|
74
|
+
ArtworkFailureCode["ARTWORK_TYPE"] = "ARTWORK_TYPE";
|
|
75
|
+
ArtworkFailureCode["ARTWORK_PIXEL_LIMIT"] = "ARTWORK_PIXEL_LIMIT";
|
|
76
|
+
ArtworkFailureCode["ARTWORK_DECODE"] = "ARTWORK_DECODE";
|
|
77
|
+
ArtworkFailureCode["ARTWORK_TRANSFER"] = "ARTWORK_TRANSFER";
|
|
78
|
+
ArtworkFailureCode["ARTWORK_EXPIRED"] = "ARTWORK_EXPIRED";
|
|
79
|
+
ArtworkFailureCode["ARTWORK_VALIDATION_FAILED"] = "ARTWORK_VALIDATION_FAILED";
|
|
80
|
+
})(ArtworkFailureCode || (ArtworkFailureCode = {}));
|
|
81
|
+
export var ArtworkState;
|
|
82
|
+
(function (ArtworkState) {
|
|
83
|
+
ArtworkState["pending"] = "pending";
|
|
84
|
+
ArtworkState["ready"] = "ready";
|
|
85
|
+
ArtworkState["review-required"] = "review-required";
|
|
86
|
+
ArtworkState["failed"] = "failed";
|
|
87
|
+
ArtworkState["deleting"] = "deleting";
|
|
88
|
+
ArtworkState["deleted"] = "deleted";
|
|
89
|
+
})(ArtworkState || (ArtworkState = {}));
|
|
49
90
|
export var ListMapsLifecycle;
|
|
50
91
|
(function (ListMapsLifecycle) {
|
|
51
92
|
ListMapsLifecycle["active"] = "active";
|
|
@@ -168,6 +209,56 @@ export class MapsClient {
|
|
|
168
209
|
return this.operations.getMapRevision(workspaceId, mapId, revision, requestOptions);
|
|
169
210
|
}
|
|
170
211
|
}
|
|
212
|
+
export class ArtworkClient {
|
|
213
|
+
configuration;
|
|
214
|
+
basePath;
|
|
215
|
+
operations;
|
|
216
|
+
constructor(configuration, basePath, axiosInstance = axios) {
|
|
217
|
+
this.configuration = configuration;
|
|
218
|
+
this.basePath = basePath;
|
|
219
|
+
this.operations = getSeatmapApi(axiosInstance);
|
|
220
|
+
}
|
|
221
|
+
async getArtworkLimits(workspaceId, options) {
|
|
222
|
+
const requestOptions = await prepareRequestOptions(this.configuration, this.basePath, options, "GET");
|
|
223
|
+
return this.operations.getArtworkLimits(workspaceId, requestOptions);
|
|
224
|
+
}
|
|
225
|
+
async prepareArtworkUpload(workspaceId, prepareArtworkUploadDto, options) {
|
|
226
|
+
const requestOptions = await prepareRequestOptions(this.configuration, this.basePath, options, "POST", prepareArtworkUploadDto);
|
|
227
|
+
return this.operations.prepareArtworkUpload(workspaceId, requestOptions.data instanceof ArrayBuffer
|
|
228
|
+
? requestOptions.data
|
|
229
|
+
: prepareArtworkUploadDto, requestOptions);
|
|
230
|
+
}
|
|
231
|
+
async getArtworkUpload(workspaceId, uploadId, options) {
|
|
232
|
+
const requestOptions = await prepareRequestOptions(this.configuration, this.basePath, options, "GET");
|
|
233
|
+
return this.operations.getArtworkUpload(workspaceId, uploadId, requestOptions);
|
|
234
|
+
}
|
|
235
|
+
async uploadArtworkContent(workspaceId, uploadId, uploadArtworkContentBody, options) {
|
|
236
|
+
const requestOptions = await prepareRequestOptions(this.configuration, this.basePath, options, "PUT", uploadArtworkContentBody);
|
|
237
|
+
return this.operations.uploadArtworkContent(workspaceId, uploadId, requestOptions.data instanceof ArrayBuffer
|
|
238
|
+
? requestOptions.data
|
|
239
|
+
: uploadArtworkContentBody, requestOptions);
|
|
240
|
+
}
|
|
241
|
+
async completeArtworkUpload(workspaceId, uploadId, options) {
|
|
242
|
+
const requestOptions = await prepareRequestOptions(this.configuration, this.basePath, options, "POST");
|
|
243
|
+
return this.operations.completeArtworkUpload(workspaceId, uploadId, requestOptions);
|
|
244
|
+
}
|
|
245
|
+
async cancelArtworkUpload(workspaceId, uploadId, options) {
|
|
246
|
+
const requestOptions = await prepareRequestOptions(this.configuration, this.basePath, options, "POST");
|
|
247
|
+
return this.operations.cancelArtworkUpload(workspaceId, uploadId, requestOptions);
|
|
248
|
+
}
|
|
249
|
+
async retryArtworkUpload(workspaceId, uploadId, retryArtworkUploadDto, options) {
|
|
250
|
+
const requestOptions = await prepareRequestOptions(this.configuration, this.basePath, options, "POST", retryArtworkUploadDto);
|
|
251
|
+
return this.operations.retryArtworkUpload(workspaceId, uploadId, requestOptions.data instanceof ArrayBuffer
|
|
252
|
+
? requestOptions.data
|
|
253
|
+
: retryArtworkUploadDto, requestOptions);
|
|
254
|
+
}
|
|
255
|
+
async getArtworkResources(workspaceId, artworkBatchDto, options) {
|
|
256
|
+
const requestOptions = await prepareRequestOptions(this.configuration, this.basePath, options, "POST", artworkBatchDto);
|
|
257
|
+
return this.operations.getArtworkResources(workspaceId, requestOptions.data instanceof ArrayBuffer
|
|
258
|
+
? requestOptions.data
|
|
259
|
+
: artworkBatchDto, requestOptions);
|
|
260
|
+
}
|
|
261
|
+
}
|
|
171
262
|
const getSeatmapApi = (axiosInstance = axios) => {
|
|
172
263
|
const getLiveness = (options) => {
|
|
173
264
|
return axiosInstance.get(`/health`, options);
|
|
@@ -435,6 +526,118 @@ const getSeatmapApi = (axiosInstance = axios) => {
|
|
|
435
526
|
baseURL: "",
|
|
436
527
|
});
|
|
437
528
|
};
|
|
529
|
+
const getArtworkLimits = (workspaceId, options) => {
|
|
530
|
+
return axiosInstance.get(`/workspaces/${encodeURIComponent(workspaceId)}/artwork/limits`, options);
|
|
531
|
+
};
|
|
532
|
+
const getGetArtworkLimitsUrl = (workspaceId) => {
|
|
533
|
+
return axiosInstance
|
|
534
|
+
.create({
|
|
535
|
+
baseURL: "",
|
|
536
|
+
params: null,
|
|
537
|
+
})
|
|
538
|
+
.getUri({
|
|
539
|
+
url: `/workspaces/${encodeURIComponent(workspaceId)}/artwork/limits`,
|
|
540
|
+
baseURL: "",
|
|
541
|
+
});
|
|
542
|
+
};
|
|
543
|
+
const prepareArtworkUpload = (workspaceId, prepareArtworkUploadDto, options) => {
|
|
544
|
+
return axiosInstance.post(`/workspaces/${encodeURIComponent(workspaceId)}/artwork/uploads`, prepareArtworkUploadDto, options);
|
|
545
|
+
};
|
|
546
|
+
const getPrepareArtworkUploadUrl = (workspaceId) => {
|
|
547
|
+
return axiosInstance
|
|
548
|
+
.create({
|
|
549
|
+
baseURL: "",
|
|
550
|
+
params: null,
|
|
551
|
+
})
|
|
552
|
+
.getUri({
|
|
553
|
+
url: `/workspaces/${encodeURIComponent(workspaceId)}/artwork/uploads`,
|
|
554
|
+
baseURL: "",
|
|
555
|
+
});
|
|
556
|
+
};
|
|
557
|
+
const getArtworkUpload = (workspaceId, uploadId, options) => {
|
|
558
|
+
return axiosInstance.get(`/workspaces/${encodeURIComponent(workspaceId)}/artwork/uploads/${encodeURIComponent(uploadId)}`, options);
|
|
559
|
+
};
|
|
560
|
+
const getGetArtworkUploadUrl = (workspaceId, uploadId) => {
|
|
561
|
+
return axiosInstance
|
|
562
|
+
.create({
|
|
563
|
+
baseURL: "",
|
|
564
|
+
params: null,
|
|
565
|
+
})
|
|
566
|
+
.getUri({
|
|
567
|
+
url: `/workspaces/${encodeURIComponent(workspaceId)}/artwork/uploads/${encodeURIComponent(uploadId)}`,
|
|
568
|
+
baseURL: "",
|
|
569
|
+
});
|
|
570
|
+
};
|
|
571
|
+
const uploadArtworkContent = (workspaceId, uploadId, uploadArtworkContentBody, options) => {
|
|
572
|
+
return axiosInstance.put(`/workspaces/${encodeURIComponent(workspaceId)}/artwork/uploads/${encodeURIComponent(uploadId)}/content`, uploadArtworkContentBody, options);
|
|
573
|
+
};
|
|
574
|
+
const getUploadArtworkContentUrl = (workspaceId, uploadId) => {
|
|
575
|
+
return axiosInstance
|
|
576
|
+
.create({
|
|
577
|
+
baseURL: "",
|
|
578
|
+
params: null,
|
|
579
|
+
})
|
|
580
|
+
.getUri({
|
|
581
|
+
url: `/workspaces/${encodeURIComponent(workspaceId)}/artwork/uploads/${encodeURIComponent(uploadId)}/content`,
|
|
582
|
+
baseURL: "",
|
|
583
|
+
});
|
|
584
|
+
};
|
|
585
|
+
const completeArtworkUpload = (workspaceId, uploadId, options) => {
|
|
586
|
+
return axiosInstance.post(`/workspaces/${encodeURIComponent(workspaceId)}/artwork/uploads/${encodeURIComponent(uploadId)}/complete`, undefined, options);
|
|
587
|
+
};
|
|
588
|
+
const getCompleteArtworkUploadUrl = (workspaceId, uploadId) => {
|
|
589
|
+
return axiosInstance
|
|
590
|
+
.create({
|
|
591
|
+
baseURL: "",
|
|
592
|
+
params: null,
|
|
593
|
+
})
|
|
594
|
+
.getUri({
|
|
595
|
+
url: `/workspaces/${encodeURIComponent(workspaceId)}/artwork/uploads/${encodeURIComponent(uploadId)}/complete`,
|
|
596
|
+
baseURL: "",
|
|
597
|
+
});
|
|
598
|
+
};
|
|
599
|
+
const cancelArtworkUpload = (workspaceId, uploadId, options) => {
|
|
600
|
+
return axiosInstance.post(`/workspaces/${encodeURIComponent(workspaceId)}/artwork/uploads/${encodeURIComponent(uploadId)}/cancel`, undefined, options);
|
|
601
|
+
};
|
|
602
|
+
const getCancelArtworkUploadUrl = (workspaceId, uploadId) => {
|
|
603
|
+
return axiosInstance
|
|
604
|
+
.create({
|
|
605
|
+
baseURL: "",
|
|
606
|
+
params: null,
|
|
607
|
+
})
|
|
608
|
+
.getUri({
|
|
609
|
+
url: `/workspaces/${encodeURIComponent(workspaceId)}/artwork/uploads/${encodeURIComponent(uploadId)}/cancel`,
|
|
610
|
+
baseURL: "",
|
|
611
|
+
});
|
|
612
|
+
};
|
|
613
|
+
const retryArtworkUpload = (workspaceId, uploadId, retryArtworkUploadDto, options) => {
|
|
614
|
+
return axiosInstance.post(`/workspaces/${encodeURIComponent(workspaceId)}/artwork/uploads/${encodeURIComponent(uploadId)}/retry`, retryArtworkUploadDto, options);
|
|
615
|
+
};
|
|
616
|
+
const getRetryArtworkUploadUrl = (workspaceId, uploadId) => {
|
|
617
|
+
return axiosInstance
|
|
618
|
+
.create({
|
|
619
|
+
baseURL: "",
|
|
620
|
+
params: null,
|
|
621
|
+
})
|
|
622
|
+
.getUri({
|
|
623
|
+
url: `/workspaces/${encodeURIComponent(workspaceId)}/artwork/uploads/${encodeURIComponent(uploadId)}/retry`,
|
|
624
|
+
baseURL: "",
|
|
625
|
+
});
|
|
626
|
+
};
|
|
627
|
+
const getArtworkResources = (workspaceId, artworkBatchDto, options) => {
|
|
628
|
+
return axiosInstance.post(`/workspaces/${encodeURIComponent(workspaceId)}/artwork/resources`, artworkBatchDto, options);
|
|
629
|
+
};
|
|
630
|
+
const getGetArtworkResourcesUrl = (workspaceId) => {
|
|
631
|
+
return axiosInstance
|
|
632
|
+
.create({
|
|
633
|
+
baseURL: "",
|
|
634
|
+
params: null,
|
|
635
|
+
})
|
|
636
|
+
.getUri({
|
|
637
|
+
url: `/workspaces/${encodeURIComponent(workspaceId)}/artwork/resources`,
|
|
638
|
+
baseURL: "",
|
|
639
|
+
});
|
|
640
|
+
};
|
|
438
641
|
return {
|
|
439
642
|
getLiveness,
|
|
440
643
|
getIntegrationContext,
|
|
@@ -454,6 +657,14 @@ const getSeatmapApi = (axiosInstance = axios) => {
|
|
|
454
657
|
changeMap,
|
|
455
658
|
listMapRevisions,
|
|
456
659
|
getMapRevision,
|
|
660
|
+
getArtworkLimits,
|
|
661
|
+
prepareArtworkUpload,
|
|
662
|
+
getArtworkUpload,
|
|
663
|
+
uploadArtworkContent,
|
|
664
|
+
completeArtworkUpload,
|
|
665
|
+
cancelArtworkUpload,
|
|
666
|
+
retryArtworkUpload,
|
|
667
|
+
getArtworkResources,
|
|
457
668
|
getGetLivenessUrl,
|
|
458
669
|
getGetIntegrationContextUrl,
|
|
459
670
|
getStartLoginUrl,
|
|
@@ -472,5 +683,13 @@ const getSeatmapApi = (axiosInstance = axios) => {
|
|
|
472
683
|
getChangeMapUrl,
|
|
473
684
|
getListMapRevisionsUrl,
|
|
474
685
|
getGetMapRevisionUrl,
|
|
686
|
+
getGetArtworkLimitsUrl,
|
|
687
|
+
getPrepareArtworkUploadUrl,
|
|
688
|
+
getGetArtworkUploadUrl,
|
|
689
|
+
getUploadArtworkContentUrl,
|
|
690
|
+
getCompleteArtworkUploadUrl,
|
|
691
|
+
getCancelArtworkUploadUrl,
|
|
692
|
+
getRetryArtworkUploadUrl,
|
|
693
|
+
getGetArtworkResourcesUrl,
|
|
475
694
|
};
|
|
476
695
|
};
|
package/dist/transport.js
CHANGED
|
@@ -22,12 +22,20 @@ export async function prepareRequestOptions(configuration, basePath, options, me
|
|
|
22
22
|
if (configuredBasePath !== undefined) {
|
|
23
23
|
prepared.baseURL = configuredBasePath;
|
|
24
24
|
}
|
|
25
|
+
if (body === undefined &&
|
|
26
|
+
!["GET", "HEAD", "OPTIONS"].includes(method) &&
|
|
27
|
+
!Object.keys(headers).some((name) => name.toLowerCase() === "content-type")) {
|
|
28
|
+
headers["Content-Type"] = "application/json";
|
|
29
|
+
}
|
|
25
30
|
prepared.headers = headers;
|
|
26
31
|
if (prepared.validateStatus === undefined) {
|
|
27
32
|
prepared.validateStatus = (status) => (status >= 200 && status < 300) || status === 304;
|
|
28
33
|
}
|
|
29
34
|
if (!configuration.compressRequests ||
|
|
30
35
|
body === undefined ||
|
|
36
|
+
(typeof Blob !== "undefined" && body instanceof Blob) ||
|
|
37
|
+
body instanceof ArrayBuffer ||
|
|
38
|
+
ArrayBuffer.isView(body) ||
|
|
31
39
|
Object.keys(headers).some((name) => name.toLowerCase() === "content-encoding")) {
|
|
32
40
|
return prepared;
|
|
33
41
|
}
|