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

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.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";
@@ -20,6 +21,13 @@ export var EmbedContextDtoCapabilitiesItem;
20
21
  (function (EmbedContextDtoCapabilitiesItem) {
21
22
  EmbedContextDtoCapabilitiesItem["map:view"] = "map:view";
22
23
  })(EmbedContextDtoCapabilitiesItem || (EmbedContextDtoCapabilitiesItem = {}));
24
+ export var MapPreviewState;
25
+ (function (MapPreviewState) {
26
+ MapPreviewState["pending"] = "pending";
27
+ MapPreviewState["ready"] = "ready";
28
+ MapPreviewState["empty"] = "empty";
29
+ MapPreviewState["unavailable"] = "unavailable";
30
+ })(MapPreviewState || (MapPreviewState = {}));
23
31
  export var MapLifecycle;
24
32
  (function (MapLifecycle) {
25
33
  MapLifecycle["active"] = "active";
@@ -27,6 +35,10 @@ export var MapLifecycle;
27
35
  MapLifecycle["trashed"] = "trashed";
28
36
  MapLifecycle["deleted"] = "deleted";
29
37
  })(MapLifecycle || (MapLifecycle = {}));
38
+ export var MapEditorStateDtoVersion;
39
+ (function (MapEditorStateDtoVersion) {
40
+ MapEditorStateDtoVersion[MapEditorStateDtoVersion["NUMBER_1"] = 1] = "NUMBER_1";
41
+ })(MapEditorStateDtoVersion || (MapEditorStateDtoVersion = {}));
30
42
  export var MutationStatus;
31
43
  (function (MutationStatus) {
32
44
  MutationStatus["completed"] = "completed";
@@ -44,7 +56,69 @@ export var MapOperation;
44
56
  MapOperation["trash"] = "trash";
45
57
  MapOperation["restoreTrash"] = "restoreTrash";
46
58
  MapOperation["restoreRevision"] = "restoreRevision";
59
+ MapOperation["replaceDraft"] = "replaceDraft";
47
60
  })(MapOperation || (MapOperation = {}));
61
+ export var ReleaseCaptureKind;
62
+ (function (ReleaseCaptureKind) {
63
+ ReleaseCaptureKind["buyer-preview-desktop"] = "buyer-preview-desktop";
64
+ ReleaseCaptureKind["buyer-preview-mobile"] = "buyer-preview-mobile";
65
+ ReleaseCaptureKind["buyer-preview-interaction-desktop"] = "buyer-preview-interaction-desktop";
66
+ ReleaseCaptureKind["buyer-preview-interaction-mobile"] = "buyer-preview-interaction-mobile";
67
+ ReleaseCaptureKind["buyer-preview-venue3d-desktop"] = "buyer-preview-venue3d-desktop";
68
+ ReleaseCaptureKind["buyer-preview-venue3d-mobile"] = "buyer-preview-venue3d-mobile";
69
+ })(ReleaseCaptureKind || (ReleaseCaptureKind = {}));
70
+ export var ReleaseDecision;
71
+ (function (ReleaseDecision) {
72
+ ReleaseDecision["approve"] = "approve";
73
+ ReleaseDecision["reject"] = "reject";
74
+ })(ReleaseDecision || (ReleaseDecision = {}));
75
+ export var PrepareArtworkUploadDtoMimeType;
76
+ (function (PrepareArtworkUploadDtoMimeType) {
77
+ PrepareArtworkUploadDtoMimeType["image/png"] = "image/png";
78
+ PrepareArtworkUploadDtoMimeType["image/jpeg"] = "image/jpeg";
79
+ PrepareArtworkUploadDtoMimeType["image/webp"] = "image/webp";
80
+ PrepareArtworkUploadDtoMimeType["image/svg+xml"] = "image/svg+xml";
81
+ })(PrepareArtworkUploadDtoMimeType || (PrepareArtworkUploadDtoMimeType = {}));
82
+ export var ArtworkUploadState;
83
+ (function (ArtworkUploadState) {
84
+ ArtworkUploadState["prepared"] = "prepared";
85
+ ArtworkUploadState["receiving"] = "receiving";
86
+ ArtworkUploadState["uploaded"] = "uploaded";
87
+ ArtworkUploadState["validating"] = "validating";
88
+ ArtworkUploadState["ready"] = "ready";
89
+ ArtworkUploadState["review-required"] = "review-required";
90
+ ArtworkUploadState["failed"] = "failed";
91
+ ArtworkUploadState["cancelled"] = "cancelled";
92
+ })(ArtworkUploadState || (ArtworkUploadState = {}));
93
+ export var ArtworkFailureCode;
94
+ (function (ArtworkFailureCode) {
95
+ ArtworkFailureCode["ARTWORK_DIGEST"] = "ARTWORK_DIGEST";
96
+ ArtworkFailureCode["ARTWORK_SVG_ACTIVE"] = "ARTWORK_SVG_ACTIVE";
97
+ ArtworkFailureCode["ARTWORK_SVG_INVALID"] = "ARTWORK_SVG_INVALID";
98
+ ArtworkFailureCode["ARTWORK_SVG_COMPLEX"] = "ARTWORK_SVG_COMPLEX";
99
+ ArtworkFailureCode["ARTWORK_FILE_LIMIT"] = "ARTWORK_FILE_LIMIT";
100
+ ArtworkFailureCode["ARTWORK_TYPE"] = "ARTWORK_TYPE";
101
+ ArtworkFailureCode["ARTWORK_PIXEL_LIMIT"] = "ARTWORK_PIXEL_LIMIT";
102
+ ArtworkFailureCode["ARTWORK_DECODE"] = "ARTWORK_DECODE";
103
+ ArtworkFailureCode["ARTWORK_TRANSFER"] = "ARTWORK_TRANSFER";
104
+ ArtworkFailureCode["ARTWORK_EXPIRED"] = "ARTWORK_EXPIRED";
105
+ ArtworkFailureCode["ARTWORK_VALIDATION_FAILED"] = "ARTWORK_VALIDATION_FAILED";
106
+ })(ArtworkFailureCode || (ArtworkFailureCode = {}));
107
+ export var ArtworkState;
108
+ (function (ArtworkState) {
109
+ ArtworkState["pending"] = "pending";
110
+ ArtworkState["ready"] = "ready";
111
+ ArtworkState["review-required"] = "review-required";
112
+ ArtworkState["failed"] = "failed";
113
+ ArtworkState["deleting"] = "deleting";
114
+ ArtworkState["deleted"] = "deleted";
115
+ })(ArtworkState || (ArtworkState = {}));
116
+ export var ListMapsPublication;
117
+ (function (ListMapsPublication) {
118
+ ListMapsPublication["all"] = "all";
119
+ ListMapsPublication["published"] = "published";
120
+ ListMapsPublication["drafts"] = "drafts";
121
+ })(ListMapsPublication || (ListMapsPublication = {}));
48
122
  export var ListMapsLifecycle;
49
123
  (function (ListMapsLifecycle) {
50
124
  ListMapsLifecycle["active"] = "active";
@@ -52,348 +126,803 @@ export var ListMapsLifecycle;
52
126
  ListMapsLifecycle["trashed"] = "trashed";
53
127
  ListMapsLifecycle["deleted"] = "deleted";
54
128
  })(ListMapsLifecycle || (ListMapsLifecycle = {}));
55
- import { createApiFetcher } from "./transport.js";
129
+ export var ListMapsSort;
130
+ (function (ListMapsSort) {
131
+ ListMapsSort["created-oldest"] = "created-oldest";
132
+ ListMapsSort["recently-edited"] = "recently-edited";
133
+ ListMapsSort["name-asc"] = "name-asc";
134
+ ListMapsSort["most-seats"] = "most-seats";
135
+ })(ListMapsSort || (ListMapsSort = {}));
136
+ import { prepareRequestOptions } from "./transport.js";
56
137
  export class HealthClient {
57
- fetchApi;
58
- constructor(configuration) {
59
- this.fetchApi = createApiFetcher(configuration);
138
+ configuration;
139
+ basePath;
140
+ operations;
141
+ constructor(configuration, basePath, axiosInstance = axios) {
142
+ this.configuration = configuration;
143
+ this.basePath = basePath;
144
+ this.operations = getSeatmapApi(axiosInstance);
60
145
  }
61
- getLiveness(options) {
62
- return getLiveness(options, this.fetchApi);
146
+ async getLiveness(options) {
147
+ const requestOptions = await prepareRequestOptions(this.configuration, this.basePath, options, "GET");
148
+ return this.operations.getLiveness(requestOptions);
63
149
  }
64
150
  }
65
151
  export class AuthenticationClient {
66
- fetchApi;
152
+ configuration;
67
153
  basePath;
68
- constructor(configuration) {
69
- this.basePath = configuration.basePath;
70
- this.fetchApi = createApiFetcher(configuration);
154
+ operations;
155
+ constructor(configuration, basePath, axiosInstance = axios) {
156
+ this.configuration = configuration;
157
+ this.basePath = basePath;
158
+ this.operations = getSeatmapApi(axiosInstance);
71
159
  }
72
- getIntegrationContext(options) {
73
- return getIntegrationContext(options, this.fetchApi);
160
+ async getIntegrationContext(options) {
161
+ const requestOptions = await prepareRequestOptions(this.configuration, this.basePath, options, "GET");
162
+ return this.operations.getIntegrationContext(requestOptions);
74
163
  }
75
- startLogin(params, options) {
76
- return startLogin(params, options, this.fetchApi);
164
+ async startLogin(params, options) {
165
+ const requestOptions = await prepareRequestOptions(this.configuration, this.basePath, options, "GET");
166
+ return this.operations.startLogin(params, requestOptions);
77
167
  }
78
- completeLogin(options) {
79
- return completeLogin(options, this.fetchApi);
168
+ async completeLogin(options) {
169
+ const requestOptions = await prepareRequestOptions(this.configuration, this.basePath, options, "GET");
170
+ return this.operations.completeLogin(requestOptions);
80
171
  }
81
- logoutProvider(options) {
82
- return logoutProvider(options, this.fetchApi);
172
+ async logoutProvider(options) {
173
+ const requestOptions = await prepareRequestOptions(this.configuration, this.basePath, options, "GET");
174
+ return this.operations.logoutProvider(requestOptions);
83
175
  }
84
- getAuthoringSession(options) {
85
- return getAuthoringSession(options, this.fetchApi);
176
+ async getAuthoringSession(options) {
177
+ const requestOptions = await prepareRequestOptions(this.configuration, this.basePath, options, "GET");
178
+ return this.operations.getAuthoringSession(requestOptions);
86
179
  }
87
- revokeAuthoringSession(options) {
88
- return revokeAuthoringSession(options, this.fetchApi);
180
+ async revokeAuthoringSession(options) {
181
+ const requestOptions = await prepareRequestOptions(this.configuration, this.basePath, options, "DELETE");
182
+ return this.operations.revokeAuthoringSession(requestOptions);
89
183
  }
90
- getEmbedContext(mapId, options) {
91
- return getEmbedContext(mapId, options, this.fetchApi);
184
+ async getEmbedContext(mapId, options) {
185
+ const requestOptions = await prepareRequestOptions(this.configuration, this.basePath, options, "GET");
186
+ return this.operations.getEmbedContext(mapId, requestOptions);
92
187
  }
93
188
  startLoginHref(params) {
94
- return new URL(getStartLoginUrl(params), this.basePath).href;
189
+ return new URL(this.operations.getStartLoginUrl(params), this.basePath ?? this.configuration.basePath).href;
95
190
  }
96
191
  logoutProviderHref() {
97
- return new URL(getLogoutProviderUrl(), this.basePath).href;
192
+ return new URL(this.operations.getLogoutProviderUrl(), this.basePath ?? this.configuration.basePath).href;
98
193
  }
99
194
  }
100
195
  export class MapsClient {
101
- fetchApi;
102
- constructor(configuration) {
103
- this.fetchApi = createApiFetcher(configuration);
196
+ configuration;
197
+ basePath;
198
+ operations;
199
+ constructor(configuration, basePath, axiosInstance = axios) {
200
+ this.configuration = configuration;
201
+ this.basePath = basePath;
202
+ this.operations = getSeatmapApi(axiosInstance);
203
+ }
204
+ async listMaps(workspaceId, params, options) {
205
+ const requestOptions = await prepareRequestOptions(this.configuration, this.basePath, options, "GET");
206
+ return this.operations.listMaps(workspaceId, params, requestOptions);
207
+ }
208
+ async createMap(workspaceId, createMapDto, options) {
209
+ const requestOptions = await prepareRequestOptions(this.configuration, this.basePath, options, "POST", createMapDto);
210
+ return this.operations.createMap(workspaceId, requestOptions.data instanceof ArrayBuffer ? requestOptions.data : createMapDto, requestOptions);
211
+ }
212
+ async getMapPreview(workspaceId, mapId, params, options) {
213
+ const requestOptions = await prepareRequestOptions(this.configuration, this.basePath, options, "GET");
214
+ return this.operations.getMapPreview(workspaceId, mapId, params, requestOptions);
215
+ }
216
+ async getMutationStatus(workspaceId, operationId, options) {
217
+ const requestOptions = await prepareRequestOptions(this.configuration, this.basePath, options, "GET");
218
+ return this.operations.getMutationStatus(workspaceId, operationId, requestOptions);
219
+ }
220
+ async resolveMapLink(workspaceId, editorCode, options) {
221
+ const requestOptions = await prepareRequestOptions(this.configuration, this.basePath, options, "GET");
222
+ return this.operations.resolveMapLink(workspaceId, editorCode, requestOptions);
223
+ }
224
+ async getMapLink(workspaceId, mapId, options) {
225
+ const requestOptions = await prepareRequestOptions(this.configuration, this.basePath, options, "GET");
226
+ return this.operations.getMapLink(workspaceId, mapId, requestOptions);
227
+ }
228
+ async getMap(workspaceId, mapId, options) {
229
+ const requestOptions = await prepareRequestOptions(this.configuration, this.basePath, options, "GET");
230
+ return this.operations.getMap(workspaceId, mapId, requestOptions);
104
231
  }
105
- listMaps(workspaceId, params, options) {
106
- return listMaps(workspaceId, params, options, this.fetchApi);
232
+ async saveMap(workspaceId, mapId, saveMapDto, options) {
233
+ const requestOptions = await prepareRequestOptions(this.configuration, this.basePath, options, "PUT", saveMapDto);
234
+ return this.operations.saveMap(workspaceId, mapId, requestOptions.data instanceof ArrayBuffer ? requestOptions.data : saveMapDto, requestOptions);
107
235
  }
108
- createMap(workspaceId, createMapDto, options) {
109
- return createMap(workspaceId, createMapDto, options, this.fetchApi);
236
+ async changeMap(workspaceId, mapId, mapActionDto, options) {
237
+ const requestOptions = await prepareRequestOptions(this.configuration, this.basePath, options, "POST", mapActionDto);
238
+ return this.operations.changeMap(workspaceId, mapId, requestOptions.data instanceof ArrayBuffer ? requestOptions.data : mapActionDto, requestOptions);
110
239
  }
111
- getMutationStatus(workspaceId, operationId, options) {
112
- return getMutationStatus(workspaceId, operationId, options, this.fetchApi);
240
+ async listMapRevisions(workspaceId, mapId, options) {
241
+ const requestOptions = await prepareRequestOptions(this.configuration, this.basePath, options, "GET");
242
+ return this.operations.listMapRevisions(workspaceId, mapId, requestOptions);
113
243
  }
114
- getMap(workspaceId, mapId, options) {
115
- return getMap(workspaceId, mapId, options, this.fetchApi);
244
+ async prepareMapReleaseReview(workspaceId, mapId, prepareMapReleaseReviewDto, options) {
245
+ const requestOptions = await prepareRequestOptions(this.configuration, this.basePath, options, "POST", prepareMapReleaseReviewDto);
246
+ return this.operations.prepareMapReleaseReview(workspaceId, mapId, requestOptions.data instanceof ArrayBuffer ? requestOptions.data : prepareMapReleaseReviewDto, requestOptions);
116
247
  }
117
- saveMap(workspaceId, mapId, saveMapDto, options) {
118
- return saveMap(workspaceId, mapId, saveMapDto, options, this.fetchApi);
248
+ async decideMapRelease(workspaceId, mapId, reviewId, decideMapReleaseDto, options) {
249
+ const requestOptions = await prepareRequestOptions(this.configuration, this.basePath, options, "POST", decideMapReleaseDto);
250
+ return this.operations.decideMapRelease(workspaceId, mapId, reviewId, requestOptions.data instanceof ArrayBuffer ? requestOptions.data : decideMapReleaseDto, requestOptions);
119
251
  }
120
- changeMap(workspaceId, mapId, mapActionDto, options) {
121
- return changeMap(workspaceId, mapId, mapActionDto, options, this.fetchApi);
252
+ async getMapReleaseCapture(workspaceId, mapId, reviewId, floor, kind, options) {
253
+ const requestOptions = await prepareRequestOptions(this.configuration, this.basePath, options, "GET");
254
+ return this.operations.getMapReleaseCapture(workspaceId, mapId, reviewId, floor, kind, requestOptions);
122
255
  }
123
- listMapRevisions(workspaceId, mapId, options) {
124
- return listMapRevisions(workspaceId, mapId, options, this.fetchApi);
256
+ async listMapPublications(workspaceId, mapId, options) {
257
+ const requestOptions = await prepareRequestOptions(this.configuration, this.basePath, options, "GET");
258
+ return this.operations.listMapPublications(workspaceId, mapId, requestOptions);
125
259
  }
126
- getMapRevision(workspaceId, mapId, revision, options) {
127
- return getMapRevision(workspaceId, mapId, revision, options, this.fetchApi);
260
+ async pinMapEventPublication(workspaceId, mapId, revision, pinEventPublicationDto, options) {
261
+ const requestOptions = await prepareRequestOptions(this.configuration, this.basePath, options, "POST", pinEventPublicationDto);
262
+ return this.operations.pinMapEventPublication(workspaceId, mapId, revision, requestOptions.data instanceof ArrayBuffer ? requestOptions.data : pinEventPublicationDto, requestOptions);
263
+ }
264
+ async getMapEventHandoff(workspaceId, mapId, revision, options) {
265
+ const requestOptions = await prepareRequestOptions(this.configuration, this.basePath, options, "GET");
266
+ return this.operations.getMapEventHandoff(workspaceId, mapId, revision, requestOptions);
267
+ }
268
+ async getPinnedEventPublication(workspaceId, eventId, options) {
269
+ const requestOptions = await prepareRequestOptions(this.configuration, this.basePath, options, "GET");
270
+ return this.operations.getPinnedEventPublication(workspaceId, eventId, requestOptions);
271
+ }
272
+ async getMapPublication(workspaceId, mapId, revision, options) {
273
+ const requestOptions = await prepareRequestOptions(this.configuration, this.basePath, options, "GET");
274
+ return this.operations.getMapPublication(workspaceId, mapId, revision, requestOptions);
275
+ }
276
+ async getMapPublicationContent(workspaceId, mapId, revision, options) {
277
+ const requestOptions = await prepareRequestOptions(this.configuration, this.basePath, options, "GET");
278
+ return this.operations.getMapPublicationContent(workspaceId, mapId, revision, requestOptions);
279
+ }
280
+ async getMapRevision(workspaceId, mapId, revision, options) {
281
+ const requestOptions = await prepareRequestOptions(this.configuration, this.basePath, options, "GET");
282
+ return this.operations.getMapRevision(workspaceId, mapId, revision, requestOptions);
128
283
  }
129
284
  }
130
- const getGetLivenessUrl = () => {
131
- return `/health/live`;
132
- };
133
- const getLiveness = async (options, fetchFn) => {
134
- const res = await (fetchFn ?? fetch)(getGetLivenessUrl(), {
135
- ...options,
136
- method: "GET",
137
- });
138
- const body = [204, 205, 304].includes(res.status) ? null : await res.text();
139
- const data = body ? JSON.parse(body) : {};
140
- return data;
141
- };
142
- const getGetIntegrationContextUrl = () => {
143
- return `/v1/auth/integration`;
144
- };
145
- const getIntegrationContext = async (options, fetchFn) => {
146
- const res = await (fetchFn ?? fetch)(getGetIntegrationContextUrl(), {
147
- ...options,
148
- method: "GET",
149
- });
150
- const body = [204, 205, 304].includes(res.status) ? null : await res.text();
151
- const data = body ? JSON.parse(body) : {};
152
- return data;
153
- };
154
- const getStartLoginUrl = (params) => {
155
- const normalizedParams = new URLSearchParams();
156
- Object.entries(params || {}).forEach(([key, value]) => {
157
- if (value !== undefined) {
158
- normalizedParams.append(key, value === null ? "null" : String(value));
159
- }
160
- });
161
- const stringifiedParams = normalizedParams.toString();
162
- return stringifiedParams.length > 0
163
- ? `/v1/auth/login?${stringifiedParams}`
164
- : `/v1/auth/login`;
165
- };
166
- const startLogin = async (params, options, fetchFn) => {
167
- const res = await (fetchFn ?? fetch)(getStartLoginUrl(params), {
168
- ...options,
169
- method: "GET",
170
- });
171
- const body = [204, 205, 304].includes(res.status) ? null : await res.text();
172
- const data = body ? JSON.parse(body) : {};
173
- return data;
174
- };
175
- const getCompleteLoginUrl = () => {
176
- return `/v1/auth/callback`;
177
- };
178
- const completeLogin = async (options, fetchFn) => {
179
- const res = await (fetchFn ?? fetch)(getCompleteLoginUrl(), {
180
- ...options,
181
- method: "GET",
182
- });
183
- const body = [204, 205, 304].includes(res.status) ? null : await res.text();
184
- const data = body ? JSON.parse(body) : {};
185
- return data;
186
- };
187
- const getLogoutProviderUrl = () => {
188
- return `/v1/auth/logout/provider`;
189
- };
190
- const logoutProvider = async (options, fetchFn) => {
191
- const res = await (fetchFn ?? fetch)(getLogoutProviderUrl(), {
192
- ...options,
193
- method: "GET",
194
- });
195
- const body = [204, 205, 304].includes(res.status) ? null : await res.text();
196
- const data = body ? JSON.parse(body) : {};
197
- return data;
198
- };
199
- const getGetAuthoringSessionUrl = () => {
200
- return `/v1/auth/authoring/session`;
201
- };
202
- const getAuthoringSession = async (options, fetchFn) => {
203
- const res = await (fetchFn ?? fetch)(getGetAuthoringSessionUrl(), {
204
- ...options,
205
- method: "GET",
206
- });
207
- const body = [204, 205, 304].includes(res.status) ? null : await res.text();
208
- const data = body ? JSON.parse(body) : {};
209
- return data;
210
- };
211
- const getRevokeAuthoringSessionUrl = () => {
212
- return `/v1/auth/authoring/session`;
213
- };
214
- const revokeAuthoringSession = async (options, fetchFn) => {
215
- const res = await (fetchFn ?? fetch)(getRevokeAuthoringSessionUrl(), {
216
- ...options,
217
- method: "DELETE",
218
- });
219
- const body = [204, 205, 304].includes(res.status) ? null : await res.text();
220
- const data = body ? JSON.parse(body) : undefined;
221
- return data;
222
- };
223
- const getGetEmbedContextUrl = (mapId) => {
224
- return `/v1/auth/embed/${encodeURIComponent(String(mapId))}`;
225
- };
226
- const getEmbedContext = async (mapId, options, fetchFn) => {
227
- const res = await (fetchFn ?? fetch)(getGetEmbedContextUrl(mapId), {
228
- ...options,
229
- method: "GET",
230
- });
231
- const body = [204, 205, 304].includes(res.status) ? null : await res.text();
232
- const data = body ? JSON.parse(body) : {};
233
- return data;
234
- };
235
- const getListMapsUrl = (workspaceId, params) => {
236
- const normalizedParams = new URLSearchParams();
237
- Object.entries(params || {}).forEach(([key, value]) => {
238
- if (value !== undefined) {
239
- normalizedParams.append(key, value === null ? "null" : String(value));
240
- }
241
- });
242
- const stringifiedParams = normalizedParams.toString();
243
- return stringifiedParams.length > 0
244
- ? `/v1/workspaces/${encodeURIComponent(String(workspaceId))}/maps?${stringifiedParams}`
245
- : `/v1/workspaces/${encodeURIComponent(String(workspaceId))}/maps`;
246
- };
247
- const listMaps = async (workspaceId, params, options, fetchFn) => {
248
- const res = await (fetchFn ?? fetch)(getListMapsUrl(workspaceId, params), {
249
- ...options,
250
- method: "GET",
251
- });
252
- const body = [204, 205, 304].includes(res.status) ? null : await res.text();
253
- const data = body ? JSON.parse(body) : {};
254
- return data;
255
- };
256
- const getCreateMapUrl = (workspaceId) => {
257
- return `/v1/workspaces/${encodeURIComponent(String(workspaceId))}/maps`;
258
- };
259
- const createMap = async (workspaceId, createMapDto, options, fetchFn) => {
260
- const getHeaders = (h) => {
261
- if (!h)
262
- return {};
263
- if (h instanceof Headers)
264
- return Object.fromEntries(h.entries());
265
- if (Symbol.iterator in h) {
266
- return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
267
- }
268
- const headers = {};
269
- for (const [name, value] of Object.entries(h)) {
270
- if (value !== undefined)
271
- headers[name] = value;
272
- }
273
- return headers;
274
- };
275
- const res = await (fetchFn ?? fetch)(getCreateMapUrl(workspaceId), {
276
- ...options,
277
- method: "POST",
278
- headers: {
279
- "Content-Type": "application/json",
280
- ...getHeaders(options?.headers),
281
- },
282
- body: JSON.stringify(createMapDto),
283
- });
284
- const body = [204, 205, 304].includes(res.status) ? null : await res.text();
285
- const data = body ? JSON.parse(body) : {};
286
- return data;
287
- };
288
- const getGetMutationStatusUrl = (workspaceId, operationId) => {
289
- return `/v1/workspaces/${encodeURIComponent(String(workspaceId))}/maps/operations/${encodeURIComponent(String(operationId))}`;
290
- };
291
- const getMutationStatus = async (workspaceId, operationId, options, fetchFn) => {
292
- const res = await (fetchFn ?? fetch)(getGetMutationStatusUrl(workspaceId, operationId), {
293
- ...options,
294
- method: "GET",
295
- });
296
- const body = [204, 205, 304].includes(res.status) ? null : await res.text();
297
- const data = body ? JSON.parse(body) : {};
298
- return data;
299
- };
300
- const getGetMapUrl = (workspaceId, mapId) => {
301
- return `/v1/workspaces/${encodeURIComponent(String(workspaceId))}/maps/${encodeURIComponent(String(mapId))}`;
302
- };
303
- const getMap = async (workspaceId, mapId, options, fetchFn) => {
304
- const res = await (fetchFn ?? fetch)(getGetMapUrl(workspaceId, mapId), {
305
- ...options,
306
- method: "GET",
307
- });
308
- const body = [204, 205, 304].includes(res.status) ? null : await res.text();
309
- const data = body ? JSON.parse(body) : {};
310
- return data;
311
- };
312
- const getSaveMapUrl = (workspaceId, mapId) => {
313
- return `/v1/workspaces/${encodeURIComponent(String(workspaceId))}/maps/${encodeURIComponent(String(mapId))}/draft`;
314
- };
315
- const saveMap = async (workspaceId, mapId, saveMapDto, options, fetchFn) => {
316
- const getHeaders = (h) => {
317
- if (!h)
318
- return {};
319
- if (h instanceof Headers)
320
- return Object.fromEntries(h.entries());
321
- if (Symbol.iterator in h) {
322
- return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
323
- }
324
- const headers = {};
325
- for (const [name, value] of Object.entries(h)) {
326
- if (value !== undefined)
327
- headers[name] = value;
328
- }
329
- return headers;
330
- };
331
- const res = await (fetchFn ?? fetch)(getSaveMapUrl(workspaceId, mapId), {
332
- ...options,
333
- method: "PUT",
334
- headers: {
335
- "Content-Type": "application/json",
336
- ...getHeaders(options?.headers),
337
- },
338
- body: JSON.stringify(saveMapDto),
339
- });
340
- const body = [204, 205, 304].includes(res.status) ? null : await res.text();
341
- const data = body ? JSON.parse(body) : {};
342
- return data;
343
- };
344
- const getChangeMapUrl = (workspaceId, mapId) => {
345
- return `/v1/workspaces/${encodeURIComponent(String(workspaceId))}/maps/${encodeURIComponent(String(mapId))}/actions`;
346
- };
347
- const changeMap = async (workspaceId, mapId, mapActionDto, options, fetchFn) => {
348
- const getHeaders = (h) => {
349
- if (!h)
350
- return {};
351
- if (h instanceof Headers)
352
- return Object.fromEntries(h.entries());
353
- if (Symbol.iterator in h) {
354
- return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
355
- }
356
- const headers = {};
357
- for (const [name, value] of Object.entries(h)) {
358
- if (value !== undefined)
359
- headers[name] = value;
360
- }
361
- return headers;
362
- };
363
- const res = await (fetchFn ?? fetch)(getChangeMapUrl(workspaceId, mapId), {
364
- ...options,
365
- method: "POST",
366
- headers: {
367
- "Content-Type": "application/json",
368
- ...getHeaders(options?.headers),
369
- },
370
- body: JSON.stringify(mapActionDto),
371
- });
372
- const body = [204, 205, 304].includes(res.status) ? null : await res.text();
373
- const data = body ? JSON.parse(body) : {};
374
- return data;
375
- };
376
- const getListMapRevisionsUrl = (workspaceId, mapId) => {
377
- return `/v1/workspaces/${encodeURIComponent(String(workspaceId))}/maps/${encodeURIComponent(String(mapId))}/revisions`;
378
- };
379
- const listMapRevisions = async (workspaceId, mapId, options, fetchFn) => {
380
- const res = await (fetchFn ?? fetch)(getListMapRevisionsUrl(workspaceId, mapId), {
381
- ...options,
382
- method: "GET",
383
- });
384
- const body = [204, 205, 304].includes(res.status) ? null : await res.text();
385
- const data = body ? JSON.parse(body) : {};
386
- return data;
387
- };
388
- const getGetMapRevisionUrl = (workspaceId, mapId, revision) => {
389
- return `/v1/workspaces/${encodeURIComponent(String(workspaceId))}/maps/${encodeURIComponent(String(mapId))}/revisions/${encodeURIComponent(String(revision))}`;
390
- };
391
- const getMapRevision = async (workspaceId, mapId, revision, options, fetchFn) => {
392
- const res = await (fetchFn ?? fetch)(getGetMapRevisionUrl(workspaceId, mapId, revision), {
393
- ...options,
394
- method: "GET",
395
- });
396
- const body = [204, 205, 304].includes(res.status) ? null : await res.text();
397
- const data = body ? JSON.parse(body) : {};
398
- return data;
285
+ export class ArtworkClient {
286
+ configuration;
287
+ basePath;
288
+ operations;
289
+ constructor(configuration, basePath, axiosInstance = axios) {
290
+ this.configuration = configuration;
291
+ this.basePath = basePath;
292
+ this.operations = getSeatmapApi(axiosInstance);
293
+ }
294
+ async getArtworkLimits(workspaceId, options) {
295
+ const requestOptions = await prepareRequestOptions(this.configuration, this.basePath, options, "GET");
296
+ return this.operations.getArtworkLimits(workspaceId, requestOptions);
297
+ }
298
+ async prepareArtworkUpload(workspaceId, prepareArtworkUploadDto, options) {
299
+ const requestOptions = await prepareRequestOptions(this.configuration, this.basePath, options, "POST", prepareArtworkUploadDto);
300
+ return this.operations.prepareArtworkUpload(workspaceId, requestOptions.data instanceof ArrayBuffer ? requestOptions.data : prepareArtworkUploadDto, requestOptions);
301
+ }
302
+ async getArtworkUpload(workspaceId, uploadId, options) {
303
+ const requestOptions = await prepareRequestOptions(this.configuration, this.basePath, options, "GET");
304
+ return this.operations.getArtworkUpload(workspaceId, uploadId, requestOptions);
305
+ }
306
+ async uploadArtworkContent(workspaceId, uploadId, uploadArtworkContentBody, options) {
307
+ const requestOptions = await prepareRequestOptions(this.configuration, this.basePath, options, "PUT", uploadArtworkContentBody);
308
+ return this.operations.uploadArtworkContent(workspaceId, uploadId, requestOptions.data instanceof ArrayBuffer ? requestOptions.data : uploadArtworkContentBody, requestOptions);
309
+ }
310
+ async completeArtworkUpload(workspaceId, uploadId, options) {
311
+ const requestOptions = await prepareRequestOptions(this.configuration, this.basePath, options, "POST");
312
+ return this.operations.completeArtworkUpload(workspaceId, uploadId, requestOptions);
313
+ }
314
+ async cancelArtworkUpload(workspaceId, uploadId, options) {
315
+ const requestOptions = await prepareRequestOptions(this.configuration, this.basePath, options, "POST");
316
+ return this.operations.cancelArtworkUpload(workspaceId, uploadId, requestOptions);
317
+ }
318
+ async retryArtworkUpload(workspaceId, uploadId, retryArtworkUploadDto, options) {
319
+ const requestOptions = await prepareRequestOptions(this.configuration, this.basePath, options, "POST", retryArtworkUploadDto);
320
+ return this.operations.retryArtworkUpload(workspaceId, uploadId, requestOptions.data instanceof ArrayBuffer ? requestOptions.data : retryArtworkUploadDto, requestOptions);
321
+ }
322
+ async getArtworkResources(workspaceId, artworkBatchDto, options) {
323
+ const requestOptions = await prepareRequestOptions(this.configuration, this.basePath, options, "POST", artworkBatchDto);
324
+ return this.operations.getArtworkResources(workspaceId, requestOptions.data instanceof ArrayBuffer ? requestOptions.data : artworkBatchDto, requestOptions);
325
+ }
326
+ }
327
+ const getSeatmapApi = (axiosInstance = axios) => {
328
+ const getLiveness = (options) => {
329
+ return axiosInstance.get(`/health`, options);
330
+ };
331
+ const getGetLivenessUrl = () => {
332
+ return axiosInstance
333
+ .create({
334
+ baseURL: "",
335
+ params: null,
336
+ })
337
+ .getUri({
338
+ url: `/health`,
339
+ baseURL: "",
340
+ });
341
+ };
342
+ const getIntegrationContext = (options) => {
343
+ return axiosInstance.get(`/auth/integration`, options);
344
+ };
345
+ const getGetIntegrationContextUrl = () => {
346
+ return axiosInstance
347
+ .create({
348
+ baseURL: "",
349
+ params: null,
350
+ })
351
+ .getUri({
352
+ url: `/auth/integration`,
353
+ baseURL: "",
354
+ });
355
+ };
356
+ const startLogin = (params, options) => {
357
+ return axiosInstance.get(`/auth/login`, {
358
+ ...options,
359
+ params: { ...params, ...options?.params },
360
+ });
361
+ };
362
+ const getStartLoginUrl = (params) => {
363
+ return axiosInstance
364
+ .create({
365
+ baseURL: "",
366
+ params: null,
367
+ })
368
+ .getUri({
369
+ url: `/auth/login`,
370
+ baseURL: "",
371
+ params,
372
+ });
373
+ };
374
+ const completeLogin = (options) => {
375
+ return axiosInstance.get(`/auth/callback`, options);
376
+ };
377
+ const getCompleteLoginUrl = () => {
378
+ return axiosInstance
379
+ .create({
380
+ baseURL: "",
381
+ params: null,
382
+ })
383
+ .getUri({
384
+ url: `/auth/callback`,
385
+ baseURL: "",
386
+ });
387
+ };
388
+ const logoutProvider = (options) => {
389
+ return axiosInstance.get(`/auth/logout/provider`, options);
390
+ };
391
+ const getLogoutProviderUrl = () => {
392
+ return axiosInstance
393
+ .create({
394
+ baseURL: "",
395
+ params: null,
396
+ })
397
+ .getUri({
398
+ url: `/auth/logout/provider`,
399
+ baseURL: "",
400
+ });
401
+ };
402
+ const getAuthoringSession = (options) => {
403
+ return axiosInstance.get(`/auth/authoring/session`, options);
404
+ };
405
+ const getGetAuthoringSessionUrl = () => {
406
+ return axiosInstance
407
+ .create({
408
+ baseURL: "",
409
+ params: null,
410
+ })
411
+ .getUri({
412
+ url: `/auth/authoring/session`,
413
+ baseURL: "",
414
+ });
415
+ };
416
+ const revokeAuthoringSession = (options) => {
417
+ return axiosInstance.delete(`/auth/authoring/session`, options);
418
+ };
419
+ const getRevokeAuthoringSessionUrl = () => {
420
+ return axiosInstance
421
+ .create({
422
+ baseURL: "",
423
+ params: null,
424
+ })
425
+ .getUri({
426
+ url: `/auth/authoring/session`,
427
+ baseURL: "",
428
+ });
429
+ };
430
+ const getEmbedContext = (mapId, options) => {
431
+ return axiosInstance.get(`/auth/embed/${encodeURIComponent(mapId)}`, options);
432
+ };
433
+ const getGetEmbedContextUrl = (mapId) => {
434
+ return axiosInstance
435
+ .create({
436
+ baseURL: "",
437
+ params: null,
438
+ })
439
+ .getUri({
440
+ url: `/auth/embed/${encodeURIComponent(mapId)}`,
441
+ baseURL: "",
442
+ });
443
+ };
444
+ const listMaps = (workspaceId, params, options) => {
445
+ return axiosInstance.get(`/workspaces/${encodeURIComponent(workspaceId)}/maps`, {
446
+ ...options,
447
+ params: { ...params, ...options?.params },
448
+ });
449
+ };
450
+ const getListMapsUrl = (workspaceId, params) => {
451
+ return axiosInstance
452
+ .create({
453
+ baseURL: "",
454
+ params: null,
455
+ })
456
+ .getUri({
457
+ url: `/workspaces/${encodeURIComponent(workspaceId)}/maps`,
458
+ baseURL: "",
459
+ params,
460
+ });
461
+ };
462
+ const createMap = (workspaceId, createMapDto, options) => {
463
+ return axiosInstance.post(`/workspaces/${encodeURIComponent(workspaceId)}/maps`, createMapDto, options);
464
+ };
465
+ const getCreateMapUrl = (workspaceId) => {
466
+ return axiosInstance
467
+ .create({
468
+ baseURL: "",
469
+ params: null,
470
+ })
471
+ .getUri({
472
+ url: `/workspaces/${encodeURIComponent(workspaceId)}/maps`,
473
+ baseURL: "",
474
+ });
475
+ };
476
+ const getMapPreview = (workspaceId, mapId, params, options) => {
477
+ return axiosInstance.get(`/workspaces/${encodeURIComponent(workspaceId)}/maps/${encodeURIComponent(mapId)}/preview`, {
478
+ responseType: "blob",
479
+ ...options,
480
+ params: { ...params, ...options?.params },
481
+ });
482
+ };
483
+ const getGetMapPreviewUrl = (workspaceId, mapId, params) => {
484
+ return axiosInstance
485
+ .create({
486
+ baseURL: "",
487
+ params: null,
488
+ })
489
+ .getUri({
490
+ url: `/workspaces/${encodeURIComponent(workspaceId)}/maps/${encodeURIComponent(mapId)}/preview`,
491
+ baseURL: "",
492
+ params,
493
+ });
494
+ };
495
+ const getMutationStatus = (workspaceId, operationId, options) => {
496
+ return axiosInstance.get(`/workspaces/${encodeURIComponent(workspaceId)}/maps/operations/${encodeURIComponent(operationId)}`, options);
497
+ };
498
+ const getGetMutationStatusUrl = (workspaceId, operationId) => {
499
+ return axiosInstance
500
+ .create({
501
+ baseURL: "",
502
+ params: null,
503
+ })
504
+ .getUri({
505
+ url: `/workspaces/${encodeURIComponent(workspaceId)}/maps/operations/${encodeURIComponent(operationId)}`,
506
+ baseURL: "",
507
+ });
508
+ };
509
+ /**
510
+ * @summary Resolve a permanent map code within an authorized workspace
511
+ */
512
+ const resolveMapLink = (workspaceId, editorCode, options) => {
513
+ return axiosInstance.get(`/workspaces/${encodeURIComponent(workspaceId)}/maps/links/${encodeURIComponent(editorCode)}`, options);
514
+ };
515
+ const getResolveMapLinkUrl = (workspaceId, editorCode) => {
516
+ return axiosInstance
517
+ .create({
518
+ baseURL: "",
519
+ params: null,
520
+ })
521
+ .getUri({
522
+ url: `/workspaces/${encodeURIComponent(workspaceId)}/maps/links/${encodeURIComponent(editorCode)}`,
523
+ baseURL: "",
524
+ });
525
+ };
526
+ /**
527
+ * @summary Get a map's permanent editor link
528
+ */
529
+ const getMapLink = (workspaceId, mapId, options) => {
530
+ return axiosInstance.get(`/workspaces/${encodeURIComponent(workspaceId)}/maps/${encodeURIComponent(mapId)}/link`, options);
531
+ };
532
+ const getGetMapLinkUrl = (workspaceId, mapId) => {
533
+ return axiosInstance
534
+ .create({
535
+ baseURL: "",
536
+ params: null,
537
+ })
538
+ .getUri({
539
+ url: `/workspaces/${encodeURIComponent(workspaceId)}/maps/${encodeURIComponent(mapId)}/link`,
540
+ baseURL: "",
541
+ });
542
+ };
543
+ const getMap = (workspaceId, mapId, options) => {
544
+ return axiosInstance.get(`/workspaces/${encodeURIComponent(workspaceId)}/maps/${encodeURIComponent(mapId)}`, options);
545
+ };
546
+ const getGetMapUrl = (workspaceId, mapId) => {
547
+ return axiosInstance
548
+ .create({
549
+ baseURL: "",
550
+ params: null,
551
+ })
552
+ .getUri({
553
+ url: `/workspaces/${encodeURIComponent(workspaceId)}/maps/${encodeURIComponent(mapId)}`,
554
+ baseURL: "",
555
+ });
556
+ };
557
+ const saveMap = (workspaceId, mapId, saveMapDto, options) => {
558
+ return axiosInstance.put(`/workspaces/${encodeURIComponent(workspaceId)}/maps/${encodeURIComponent(mapId)}/draft`, saveMapDto, options);
559
+ };
560
+ const getSaveMapUrl = (workspaceId, mapId) => {
561
+ return axiosInstance
562
+ .create({
563
+ baseURL: "",
564
+ params: null,
565
+ })
566
+ .getUri({
567
+ url: `/workspaces/${encodeURIComponent(workspaceId)}/maps/${encodeURIComponent(mapId)}/draft`,
568
+ baseURL: "",
569
+ });
570
+ };
571
+ const changeMap = (workspaceId, mapId, mapActionDto, options) => {
572
+ return axiosInstance.post(`/workspaces/${encodeURIComponent(workspaceId)}/maps/${encodeURIComponent(mapId)}/actions`, mapActionDto, options);
573
+ };
574
+ const getChangeMapUrl = (workspaceId, mapId) => {
575
+ return axiosInstance
576
+ .create({
577
+ baseURL: "",
578
+ params: null,
579
+ })
580
+ .getUri({
581
+ url: `/workspaces/${encodeURIComponent(workspaceId)}/maps/${encodeURIComponent(mapId)}/actions`,
582
+ baseURL: "",
583
+ });
584
+ };
585
+ const listMapRevisions = (workspaceId, mapId, options) => {
586
+ return axiosInstance.get(`/workspaces/${encodeURIComponent(workspaceId)}/maps/${encodeURIComponent(mapId)}/revisions`, options);
587
+ };
588
+ const getListMapRevisionsUrl = (workspaceId, mapId) => {
589
+ return axiosInstance
590
+ .create({
591
+ baseURL: "",
592
+ params: null,
593
+ })
594
+ .getUri({
595
+ url: `/workspaces/${encodeURIComponent(workspaceId)}/maps/${encodeURIComponent(mapId)}/revisions`,
596
+ baseURL: "",
597
+ });
598
+ };
599
+ const prepareMapReleaseReview = (workspaceId, mapId, prepareMapReleaseReviewDto, options) => {
600
+ return axiosInstance.post(`/workspaces/${encodeURIComponent(workspaceId)}/maps/${encodeURIComponent(mapId)}/release-review`, prepareMapReleaseReviewDto, options);
601
+ };
602
+ const getPrepareMapReleaseReviewUrl = (workspaceId, mapId) => {
603
+ return axiosInstance
604
+ .create({
605
+ baseURL: "",
606
+ params: null,
607
+ })
608
+ .getUri({
609
+ url: `/workspaces/${encodeURIComponent(workspaceId)}/maps/${encodeURIComponent(mapId)}/release-review`,
610
+ baseURL: "",
611
+ });
612
+ };
613
+ const decideMapRelease = (workspaceId, mapId, reviewId, decideMapReleaseDto, options) => {
614
+ return axiosInstance.post(`/workspaces/${encodeURIComponent(workspaceId)}/maps/${encodeURIComponent(mapId)}/release-review/${encodeURIComponent(reviewId)}/decision`, decideMapReleaseDto, options);
615
+ };
616
+ const getDecideMapReleaseUrl = (workspaceId, mapId, reviewId) => {
617
+ return axiosInstance
618
+ .create({
619
+ baseURL: "",
620
+ params: null,
621
+ })
622
+ .getUri({
623
+ url: `/workspaces/${encodeURIComponent(workspaceId)}/maps/${encodeURIComponent(mapId)}/release-review/${encodeURIComponent(reviewId)}/decision`,
624
+ baseURL: "",
625
+ });
626
+ };
627
+ const getMapReleaseCapture = (workspaceId, mapId, reviewId, floor, kind, options) => {
628
+ return axiosInstance.get(`/workspaces/${encodeURIComponent(workspaceId)}/maps/${encodeURIComponent(mapId)}/release-review/${encodeURIComponent(reviewId)}/captures/${encodeURIComponent(floor)}/${encodeURIComponent(kind)}`, {
629
+ responseType: "blob",
630
+ ...options,
631
+ });
632
+ };
633
+ const getGetMapReleaseCaptureUrl = (workspaceId, mapId, reviewId, floor, kind) => {
634
+ return axiosInstance
635
+ .create({
636
+ baseURL: "",
637
+ params: null,
638
+ })
639
+ .getUri({
640
+ url: `/workspaces/${encodeURIComponent(workspaceId)}/maps/${encodeURIComponent(mapId)}/release-review/${encodeURIComponent(reviewId)}/captures/${encodeURIComponent(floor)}/${encodeURIComponent(kind)}`,
641
+ baseURL: "",
642
+ });
643
+ };
644
+ const listMapPublications = (workspaceId, mapId, options) => {
645
+ return axiosInstance.get(`/workspaces/${encodeURIComponent(workspaceId)}/maps/${encodeURIComponent(mapId)}/publications`, options);
646
+ };
647
+ const getListMapPublicationsUrl = (workspaceId, mapId) => {
648
+ return axiosInstance
649
+ .create({
650
+ baseURL: "",
651
+ params: null,
652
+ })
653
+ .getUri({
654
+ url: `/workspaces/${encodeURIComponent(workspaceId)}/maps/${encodeURIComponent(mapId)}/publications`,
655
+ baseURL: "",
656
+ });
657
+ };
658
+ const pinMapEventPublication = (workspaceId, mapId, revision, pinEventPublicationDto, options) => {
659
+ return axiosInstance.post(`/workspaces/${encodeURIComponent(workspaceId)}/maps/${encodeURIComponent(mapId)}/publications/${encodeURIComponent(revision)}/event-handoff`, pinEventPublicationDto, options);
660
+ };
661
+ const getPinMapEventPublicationUrl = (workspaceId, mapId, revision) => {
662
+ return axiosInstance
663
+ .create({
664
+ baseURL: "",
665
+ params: null,
666
+ })
667
+ .getUri({
668
+ url: `/workspaces/${encodeURIComponent(workspaceId)}/maps/${encodeURIComponent(mapId)}/publications/${encodeURIComponent(revision)}/event-handoff`,
669
+ baseURL: "",
670
+ });
671
+ };
672
+ const getMapEventHandoff = (workspaceId, mapId, revision, options) => {
673
+ return axiosInstance.get(`/workspaces/${encodeURIComponent(workspaceId)}/maps/${encodeURIComponent(mapId)}/publications/${encodeURIComponent(revision)}/event-handoff`, options);
674
+ };
675
+ const getGetMapEventHandoffUrl = (workspaceId, mapId, revision) => {
676
+ return axiosInstance
677
+ .create({
678
+ baseURL: "",
679
+ params: null,
680
+ })
681
+ .getUri({
682
+ url: `/workspaces/${encodeURIComponent(workspaceId)}/maps/${encodeURIComponent(mapId)}/publications/${encodeURIComponent(revision)}/event-handoff`,
683
+ baseURL: "",
684
+ });
685
+ };
686
+ const getPinnedEventPublication = (workspaceId, eventId, options) => {
687
+ return axiosInstance.get(`/workspaces/${encodeURIComponent(workspaceId)}/maps/events/${encodeURIComponent(eventId)}/publication`, options);
688
+ };
689
+ const getGetPinnedEventPublicationUrl = (workspaceId, eventId) => {
690
+ return axiosInstance
691
+ .create({
692
+ baseURL: "",
693
+ params: null,
694
+ })
695
+ .getUri({
696
+ url: `/workspaces/${encodeURIComponent(workspaceId)}/maps/events/${encodeURIComponent(eventId)}/publication`,
697
+ baseURL: "",
698
+ });
699
+ };
700
+ const getMapPublication = (workspaceId, mapId, revision, options) => {
701
+ return axiosInstance.get(`/workspaces/${encodeURIComponent(workspaceId)}/maps/${encodeURIComponent(mapId)}/publications/${encodeURIComponent(revision)}`, options);
702
+ };
703
+ const getGetMapPublicationUrl = (workspaceId, mapId, revision) => {
704
+ return axiosInstance
705
+ .create({
706
+ baseURL: "",
707
+ params: null,
708
+ })
709
+ .getUri({
710
+ url: `/workspaces/${encodeURIComponent(workspaceId)}/maps/${encodeURIComponent(mapId)}/publications/${encodeURIComponent(revision)}`,
711
+ baseURL: "",
712
+ });
713
+ };
714
+ const getMapPublicationContent = (workspaceId, mapId, revision, options) => {
715
+ return axiosInstance.get(`/workspaces/${encodeURIComponent(workspaceId)}/maps/${encodeURIComponent(mapId)}/publications/${encodeURIComponent(revision)}/content`, options);
716
+ };
717
+ const getGetMapPublicationContentUrl = (workspaceId, mapId, revision) => {
718
+ return axiosInstance
719
+ .create({
720
+ baseURL: "",
721
+ params: null,
722
+ })
723
+ .getUri({
724
+ url: `/workspaces/${encodeURIComponent(workspaceId)}/maps/${encodeURIComponent(mapId)}/publications/${encodeURIComponent(revision)}/content`,
725
+ baseURL: "",
726
+ });
727
+ };
728
+ const getMapRevision = (workspaceId, mapId, revision, options) => {
729
+ return axiosInstance.get(`/workspaces/${encodeURIComponent(workspaceId)}/maps/${encodeURIComponent(mapId)}/revisions/${encodeURIComponent(revision)}`, options);
730
+ };
731
+ const getGetMapRevisionUrl = (workspaceId, mapId, revision) => {
732
+ return axiosInstance
733
+ .create({
734
+ baseURL: "",
735
+ params: null,
736
+ })
737
+ .getUri({
738
+ url: `/workspaces/${encodeURIComponent(workspaceId)}/maps/${encodeURIComponent(mapId)}/revisions/${encodeURIComponent(revision)}`,
739
+ baseURL: "",
740
+ });
741
+ };
742
+ const getArtworkLimits = (workspaceId, options) => {
743
+ return axiosInstance.get(`/workspaces/${encodeURIComponent(workspaceId)}/artwork/limits`, options);
744
+ };
745
+ const getGetArtworkLimitsUrl = (workspaceId) => {
746
+ return axiosInstance
747
+ .create({
748
+ baseURL: "",
749
+ params: null,
750
+ })
751
+ .getUri({
752
+ url: `/workspaces/${encodeURIComponent(workspaceId)}/artwork/limits`,
753
+ baseURL: "",
754
+ });
755
+ };
756
+ const prepareArtworkUpload = (workspaceId, prepareArtworkUploadDto, options) => {
757
+ return axiosInstance.post(`/workspaces/${encodeURIComponent(workspaceId)}/artwork/uploads`, prepareArtworkUploadDto, options);
758
+ };
759
+ const getPrepareArtworkUploadUrl = (workspaceId) => {
760
+ return axiosInstance
761
+ .create({
762
+ baseURL: "",
763
+ params: null,
764
+ })
765
+ .getUri({
766
+ url: `/workspaces/${encodeURIComponent(workspaceId)}/artwork/uploads`,
767
+ baseURL: "",
768
+ });
769
+ };
770
+ const getArtworkUpload = (workspaceId, uploadId, options) => {
771
+ return axiosInstance.get(`/workspaces/${encodeURIComponent(workspaceId)}/artwork/uploads/${encodeURIComponent(uploadId)}`, options);
772
+ };
773
+ const getGetArtworkUploadUrl = (workspaceId, uploadId) => {
774
+ return axiosInstance
775
+ .create({
776
+ baseURL: "",
777
+ params: null,
778
+ })
779
+ .getUri({
780
+ url: `/workspaces/${encodeURIComponent(workspaceId)}/artwork/uploads/${encodeURIComponent(uploadId)}`,
781
+ baseURL: "",
782
+ });
783
+ };
784
+ const uploadArtworkContent = (workspaceId, uploadId, uploadArtworkContentBody, options) => {
785
+ return axiosInstance.put(`/workspaces/${encodeURIComponent(workspaceId)}/artwork/uploads/${encodeURIComponent(uploadId)}/content`, uploadArtworkContentBody, options);
786
+ };
787
+ const getUploadArtworkContentUrl = (workspaceId, uploadId) => {
788
+ return axiosInstance
789
+ .create({
790
+ baseURL: "",
791
+ params: null,
792
+ })
793
+ .getUri({
794
+ url: `/workspaces/${encodeURIComponent(workspaceId)}/artwork/uploads/${encodeURIComponent(uploadId)}/content`,
795
+ baseURL: "",
796
+ });
797
+ };
798
+ const completeArtworkUpload = (workspaceId, uploadId, options) => {
799
+ return axiosInstance.post(`/workspaces/${encodeURIComponent(workspaceId)}/artwork/uploads/${encodeURIComponent(uploadId)}/complete`, undefined, options);
800
+ };
801
+ const getCompleteArtworkUploadUrl = (workspaceId, uploadId) => {
802
+ return axiosInstance
803
+ .create({
804
+ baseURL: "",
805
+ params: null,
806
+ })
807
+ .getUri({
808
+ url: `/workspaces/${encodeURIComponent(workspaceId)}/artwork/uploads/${encodeURIComponent(uploadId)}/complete`,
809
+ baseURL: "",
810
+ });
811
+ };
812
+ const cancelArtworkUpload = (workspaceId, uploadId, options) => {
813
+ return axiosInstance.post(`/workspaces/${encodeURIComponent(workspaceId)}/artwork/uploads/${encodeURIComponent(uploadId)}/cancel`, undefined, options);
814
+ };
815
+ const getCancelArtworkUploadUrl = (workspaceId, uploadId) => {
816
+ return axiosInstance
817
+ .create({
818
+ baseURL: "",
819
+ params: null,
820
+ })
821
+ .getUri({
822
+ url: `/workspaces/${encodeURIComponent(workspaceId)}/artwork/uploads/${encodeURIComponent(uploadId)}/cancel`,
823
+ baseURL: "",
824
+ });
825
+ };
826
+ const retryArtworkUpload = (workspaceId, uploadId, retryArtworkUploadDto, options) => {
827
+ return axiosInstance.post(`/workspaces/${encodeURIComponent(workspaceId)}/artwork/uploads/${encodeURIComponent(uploadId)}/retry`, retryArtworkUploadDto, options);
828
+ };
829
+ const getRetryArtworkUploadUrl = (workspaceId, uploadId) => {
830
+ return axiosInstance
831
+ .create({
832
+ baseURL: "",
833
+ params: null,
834
+ })
835
+ .getUri({
836
+ url: `/workspaces/${encodeURIComponent(workspaceId)}/artwork/uploads/${encodeURIComponent(uploadId)}/retry`,
837
+ baseURL: "",
838
+ });
839
+ };
840
+ const getArtworkResources = (workspaceId, artworkBatchDto, options) => {
841
+ return axiosInstance.post(`/workspaces/${encodeURIComponent(workspaceId)}/artwork/resources`, artworkBatchDto, options);
842
+ };
843
+ const getGetArtworkResourcesUrl = (workspaceId) => {
844
+ return axiosInstance
845
+ .create({
846
+ baseURL: "",
847
+ params: null,
848
+ })
849
+ .getUri({
850
+ url: `/workspaces/${encodeURIComponent(workspaceId)}/artwork/resources`,
851
+ baseURL: "",
852
+ });
853
+ };
854
+ return {
855
+ getLiveness,
856
+ getIntegrationContext,
857
+ startLogin,
858
+ completeLogin,
859
+ logoutProvider,
860
+ getAuthoringSession,
861
+ revokeAuthoringSession,
862
+ getEmbedContext,
863
+ listMaps,
864
+ createMap,
865
+ getMapPreview,
866
+ getMutationStatus,
867
+ resolveMapLink,
868
+ getMapLink,
869
+ getMap,
870
+ saveMap,
871
+ changeMap,
872
+ listMapRevisions,
873
+ prepareMapReleaseReview,
874
+ decideMapRelease,
875
+ getMapReleaseCapture,
876
+ listMapPublications,
877
+ pinMapEventPublication,
878
+ getMapEventHandoff,
879
+ getPinnedEventPublication,
880
+ getMapPublication,
881
+ getMapPublicationContent,
882
+ getMapRevision,
883
+ getArtworkLimits,
884
+ prepareArtworkUpload,
885
+ getArtworkUpload,
886
+ uploadArtworkContent,
887
+ completeArtworkUpload,
888
+ cancelArtworkUpload,
889
+ retryArtworkUpload,
890
+ getArtworkResources,
891
+ getGetLivenessUrl,
892
+ getGetIntegrationContextUrl,
893
+ getStartLoginUrl,
894
+ getCompleteLoginUrl,
895
+ getLogoutProviderUrl,
896
+ getGetAuthoringSessionUrl,
897
+ getRevokeAuthoringSessionUrl,
898
+ getGetEmbedContextUrl,
899
+ getListMapsUrl,
900
+ getCreateMapUrl,
901
+ getGetMapPreviewUrl,
902
+ getGetMutationStatusUrl,
903
+ getResolveMapLinkUrl,
904
+ getGetMapLinkUrl,
905
+ getGetMapUrl,
906
+ getSaveMapUrl,
907
+ getChangeMapUrl,
908
+ getListMapRevisionsUrl,
909
+ getPrepareMapReleaseReviewUrl,
910
+ getDecideMapReleaseUrl,
911
+ getGetMapReleaseCaptureUrl,
912
+ getListMapPublicationsUrl,
913
+ getPinMapEventPublicationUrl,
914
+ getGetMapEventHandoffUrl,
915
+ getGetPinnedEventPublicationUrl,
916
+ getGetMapPublicationUrl,
917
+ getGetMapPublicationContentUrl,
918
+ getGetMapRevisionUrl,
919
+ getGetArtworkLimitsUrl,
920
+ getPrepareArtworkUploadUrl,
921
+ getGetArtworkUploadUrl,
922
+ getUploadArtworkContentUrl,
923
+ getCompleteArtworkUploadUrl,
924
+ getCancelArtworkUploadUrl,
925
+ getRetryArtworkUploadUrl,
926
+ getGetArtworkResourcesUrl,
927
+ };
399
928
  };