@seatmap-fyi/api-client 0.1.0-alpha.5 → 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.
@@ -93,6 +93,8 @@ export declare enum MapLifecycle {
93
93
  deleted = "deleted"
94
94
  }
95
95
  export interface MapSummaryDto {
96
+ /** @pattern ^[a-z]{3}-[a-z]{4}-[a-z]{3}$ */
97
+ editorCode: string;
96
98
  id: string;
97
99
  name: string;
98
100
  lifecycle: MapLifecycle;
@@ -2174,6 +2176,11 @@ export interface MutationStatusDto {
2174
2176
  status: MutationStatus;
2175
2177
  result?: MapAcknowledgementDto;
2176
2178
  }
2179
+ export interface MapLinkDto {
2180
+ mapId: string;
2181
+ /** @pattern ^[a-z]{3}-[a-z]{4}-[a-z]{3}$ */
2182
+ editorCode: string;
2183
+ }
2177
2184
  export interface MapResponseDto {
2178
2185
  physical: PhysicalDocumentV1Dto;
2179
2186
  referencePresentation?: ReferencePresentationDto;
@@ -2389,6 +2396,8 @@ export declare class MapsClient {
2389
2396
  listMaps(workspaceId: string, params?: ListMapsParams, options?: AxiosRequestConfig): Promise<AxiosResponse<MapListDto>>;
2390
2397
  createMap(workspaceId: string, createMapDto: CreateMapDto, options?: AxiosRequestConfig): Promise<AxiosResponse<MapAcknowledgementDto>>;
2391
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>>;
2392
2401
  getMap(workspaceId: string, mapId: string, options?: AxiosRequestConfig): Promise<AxiosResponse<MapResponseDto>>;
2393
2402
  saveMap(workspaceId: string, mapId: string, saveMapDto: SaveMapDto, options?: AxiosRequestConfig): Promise<AxiosResponse<MapAcknowledgementDto>>;
2394
2403
  changeMap(workspaceId: string, mapId: string, mapActionDto: MapActionDto, options?: AxiosRequestConfig): Promise<AxiosResponse<MapAcknowledgementDto>>;
package/dist/generated.js CHANGED
@@ -135,6 +135,14 @@ export class MapsClient {
135
135
  const requestOptions = await prepareRequestOptions(this.configuration, this.basePath, options, "GET");
136
136
  return this.operations.getMutationStatus(workspaceId, operationId, requestOptions);
137
137
  }
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);
141
+ }
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);
145
+ }
138
146
  async getMap(workspaceId, mapId, options) {
139
147
  const requestOptions = await prepareRequestOptions(this.configuration, this.basePath, options, "GET");
140
148
  return this.operations.getMap(workspaceId, mapId, requestOptions);
@@ -323,6 +331,40 @@ const getSeatmapApi = (axiosInstance = axios) => {
323
331
  baseURL: "",
324
332
  });
325
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
+ };
326
368
  const getMap = (workspaceId, mapId, options) => {
327
369
  return axiosInstance.get(`/workspaces/${encodeURIComponent(workspaceId)}/maps/${encodeURIComponent(mapId)}`, options);
328
370
  };
@@ -405,6 +447,8 @@ const getSeatmapApi = (axiosInstance = axios) => {
405
447
  listMaps,
406
448
  createMap,
407
449
  getMutationStatus,
450
+ resolveMapLink,
451
+ getMapLink,
408
452
  getMap,
409
453
  saveMap,
410
454
  changeMap,
@@ -421,6 +465,8 @@ const getSeatmapApi = (axiosInstance = axios) => {
421
465
  getListMapsUrl,
422
466
  getCreateMapUrl,
423
467
  getGetMutationStatusUrl,
468
+ getResolveMapLinkUrl,
469
+ getGetMapLinkUrl,
424
470
  getGetMapUrl,
425
471
  getSaveMapUrl,
426
472
  getChangeMapUrl,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seatmap-fyi/api-client",
3
- "version": "0.1.0-alpha.5",
3
+ "version": "0.1.0-alpha.6",
4
4
  "license": "UNLICENSED",
5
5
  "type": "module",
6
6
  "sideEffects": false,