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

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.
Files changed (2) hide show
  1. package/dist/generated.js +17 -17
  2. package/package.json +1 -1
package/dist/generated.js CHANGED
@@ -140,7 +140,7 @@ const getLiveness = async (options, fetchFn) => {
140
140
  return data;
141
141
  };
142
142
  const getGetIntegrationContextUrl = () => {
143
- return `/v1/auth/integration`;
143
+ return `/auth/integration`;
144
144
  };
145
145
  const getIntegrationContext = async (options, fetchFn) => {
146
146
  const res = await (fetchFn ?? fetch)(getGetIntegrationContextUrl(), {
@@ -160,8 +160,8 @@ const getStartLoginUrl = (params) => {
160
160
  });
161
161
  const stringifiedParams = normalizedParams.toString();
162
162
  return stringifiedParams.length > 0
163
- ? `/v1/auth/login?${stringifiedParams}`
164
- : `/v1/auth/login`;
163
+ ? `/auth/login?${stringifiedParams}`
164
+ : `/auth/login`;
165
165
  };
166
166
  const startLogin = async (params, options, fetchFn) => {
167
167
  const res = await (fetchFn ?? fetch)(getStartLoginUrl(params), {
@@ -173,7 +173,7 @@ const startLogin = async (params, options, fetchFn) => {
173
173
  return data;
174
174
  };
175
175
  const getCompleteLoginUrl = () => {
176
- return `/v1/auth/callback`;
176
+ return `/auth/callback`;
177
177
  };
178
178
  const completeLogin = async (options, fetchFn) => {
179
179
  const res = await (fetchFn ?? fetch)(getCompleteLoginUrl(), {
@@ -185,7 +185,7 @@ const completeLogin = async (options, fetchFn) => {
185
185
  return data;
186
186
  };
187
187
  const getLogoutProviderUrl = () => {
188
- return `/v1/auth/logout/provider`;
188
+ return `/auth/logout/provider`;
189
189
  };
190
190
  const logoutProvider = async (options, fetchFn) => {
191
191
  const res = await (fetchFn ?? fetch)(getLogoutProviderUrl(), {
@@ -197,7 +197,7 @@ const logoutProvider = async (options, fetchFn) => {
197
197
  return data;
198
198
  };
199
199
  const getGetAuthoringSessionUrl = () => {
200
- return `/v1/auth/authoring/session`;
200
+ return `/auth/authoring/session`;
201
201
  };
202
202
  const getAuthoringSession = async (options, fetchFn) => {
203
203
  const res = await (fetchFn ?? fetch)(getGetAuthoringSessionUrl(), {
@@ -209,7 +209,7 @@ const getAuthoringSession = async (options, fetchFn) => {
209
209
  return data;
210
210
  };
211
211
  const getRevokeAuthoringSessionUrl = () => {
212
- return `/v1/auth/authoring/session`;
212
+ return `/auth/authoring/session`;
213
213
  };
214
214
  const revokeAuthoringSession = async (options, fetchFn) => {
215
215
  const res = await (fetchFn ?? fetch)(getRevokeAuthoringSessionUrl(), {
@@ -221,7 +221,7 @@ const revokeAuthoringSession = async (options, fetchFn) => {
221
221
  return data;
222
222
  };
223
223
  const getGetEmbedContextUrl = (mapId) => {
224
- return `/v1/auth/embed/${encodeURIComponent(String(mapId))}`;
224
+ return `/auth/embed/${encodeURIComponent(String(mapId))}`;
225
225
  };
226
226
  const getEmbedContext = async (mapId, options, fetchFn) => {
227
227
  const res = await (fetchFn ?? fetch)(getGetEmbedContextUrl(mapId), {
@@ -241,8 +241,8 @@ const getListMapsUrl = (workspaceId, params) => {
241
241
  });
242
242
  const stringifiedParams = normalizedParams.toString();
243
243
  return stringifiedParams.length > 0
244
- ? `/v1/workspaces/${encodeURIComponent(String(workspaceId))}/maps?${stringifiedParams}`
245
- : `/v1/workspaces/${encodeURIComponent(String(workspaceId))}/maps`;
244
+ ? `/workspaces/${encodeURIComponent(String(workspaceId))}/maps?${stringifiedParams}`
245
+ : `/workspaces/${encodeURIComponent(String(workspaceId))}/maps`;
246
246
  };
247
247
  const listMaps = async (workspaceId, params, options, fetchFn) => {
248
248
  const res = await (fetchFn ?? fetch)(getListMapsUrl(workspaceId, params), {
@@ -254,7 +254,7 @@ const listMaps = async (workspaceId, params, options, fetchFn) => {
254
254
  return data;
255
255
  };
256
256
  const getCreateMapUrl = (workspaceId) => {
257
- return `/v1/workspaces/${encodeURIComponent(String(workspaceId))}/maps`;
257
+ return `/workspaces/${encodeURIComponent(String(workspaceId))}/maps`;
258
258
  };
259
259
  const createMap = async (workspaceId, createMapDto, options, fetchFn) => {
260
260
  const getHeaders = (h) => {
@@ -286,7 +286,7 @@ const createMap = async (workspaceId, createMapDto, options, fetchFn) => {
286
286
  return data;
287
287
  };
288
288
  const getGetMutationStatusUrl = (workspaceId, operationId) => {
289
- return `/v1/workspaces/${encodeURIComponent(String(workspaceId))}/maps/operations/${encodeURIComponent(String(operationId))}`;
289
+ return `/workspaces/${encodeURIComponent(String(workspaceId))}/maps/operations/${encodeURIComponent(String(operationId))}`;
290
290
  };
291
291
  const getMutationStatus = async (workspaceId, operationId, options, fetchFn) => {
292
292
  const res = await (fetchFn ?? fetch)(getGetMutationStatusUrl(workspaceId, operationId), {
@@ -298,7 +298,7 @@ const getMutationStatus = async (workspaceId, operationId, options, fetchFn) =>
298
298
  return data;
299
299
  };
300
300
  const getGetMapUrl = (workspaceId, mapId) => {
301
- return `/v1/workspaces/${encodeURIComponent(String(workspaceId))}/maps/${encodeURIComponent(String(mapId))}`;
301
+ return `/workspaces/${encodeURIComponent(String(workspaceId))}/maps/${encodeURIComponent(String(mapId))}`;
302
302
  };
303
303
  const getMap = async (workspaceId, mapId, options, fetchFn) => {
304
304
  const res = await (fetchFn ?? fetch)(getGetMapUrl(workspaceId, mapId), {
@@ -310,7 +310,7 @@ const getMap = async (workspaceId, mapId, options, fetchFn) => {
310
310
  return data;
311
311
  };
312
312
  const getSaveMapUrl = (workspaceId, mapId) => {
313
- return `/v1/workspaces/${encodeURIComponent(String(workspaceId))}/maps/${encodeURIComponent(String(mapId))}/draft`;
313
+ return `/workspaces/${encodeURIComponent(String(workspaceId))}/maps/${encodeURIComponent(String(mapId))}/draft`;
314
314
  };
315
315
  const saveMap = async (workspaceId, mapId, saveMapDto, options, fetchFn) => {
316
316
  const getHeaders = (h) => {
@@ -342,7 +342,7 @@ const saveMap = async (workspaceId, mapId, saveMapDto, options, fetchFn) => {
342
342
  return data;
343
343
  };
344
344
  const getChangeMapUrl = (workspaceId, mapId) => {
345
- return `/v1/workspaces/${encodeURIComponent(String(workspaceId))}/maps/${encodeURIComponent(String(mapId))}/actions`;
345
+ return `/workspaces/${encodeURIComponent(String(workspaceId))}/maps/${encodeURIComponent(String(mapId))}/actions`;
346
346
  };
347
347
  const changeMap = async (workspaceId, mapId, mapActionDto, options, fetchFn) => {
348
348
  const getHeaders = (h) => {
@@ -374,7 +374,7 @@ const changeMap = async (workspaceId, mapId, mapActionDto, options, fetchFn) =>
374
374
  return data;
375
375
  };
376
376
  const getListMapRevisionsUrl = (workspaceId, mapId) => {
377
- return `/v1/workspaces/${encodeURIComponent(String(workspaceId))}/maps/${encodeURIComponent(String(mapId))}/revisions`;
377
+ return `/workspaces/${encodeURIComponent(String(workspaceId))}/maps/${encodeURIComponent(String(mapId))}/revisions`;
378
378
  };
379
379
  const listMapRevisions = async (workspaceId, mapId, options, fetchFn) => {
380
380
  const res = await (fetchFn ?? fetch)(getListMapRevisionsUrl(workspaceId, mapId), {
@@ -386,7 +386,7 @@ const listMapRevisions = async (workspaceId, mapId, options, fetchFn) => {
386
386
  return data;
387
387
  };
388
388
  const getGetMapRevisionUrl = (workspaceId, mapId, revision) => {
389
- return `/v1/workspaces/${encodeURIComponent(String(workspaceId))}/maps/${encodeURIComponent(String(mapId))}/revisions/${encodeURIComponent(String(revision))}`;
389
+ return `/workspaces/${encodeURIComponent(String(workspaceId))}/maps/${encodeURIComponent(String(mapId))}/revisions/${encodeURIComponent(String(revision))}`;
390
390
  };
391
391
  const getMapRevision = async (workspaceId, mapId, revision, options, fetchFn) => {
392
392
  const res = await (fetchFn ?? fetch)(getGetMapRevisionUrl(workspaceId, mapId, revision), {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seatmap-fyi/api-client",
3
- "version": "0.1.0-alpha.3",
3
+ "version": "0.1.0-alpha.4",
4
4
  "license": "UNLICENSED",
5
5
  "type": "module",
6
6
  "sideEffects": false,