@mappedin/mappedin-js 5.28.0 → 5.29.2

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.
@@ -170,7 +170,18 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue' {
170
170
  * @internal
171
171
  */
172
172
  export function downloadVenueBundleMVF(options: TGetVenueBundleOptions): Promise<Uint8Array>;
173
- export function getMakerAccessToken(userOptions: TGetVenueMakerOptions): Promise<{
173
+ /**
174
+ * Represents the options for getting an access token.
175
+ *
176
+ * @internal
177
+ */
178
+ export type TGetAccessTokenOptions = Pick<TGetVenueMakerOptions, 'authBaseUri' | 'key' | 'secret'>;
179
+ /**
180
+ * Get an access token.
181
+ *
182
+ * @param userOptions
183
+ */
184
+ export function getMakerAccessToken(userOptions: TGetAccessTokenOptions): Promise<{
174
185
  access_token: string;
175
186
  expires_in: number;
176
187
  }>;
@@ -178,7 +189,7 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue' {
178
189
  url: string;
179
190
  updated_at: string;
180
191
  }>;
181
- export function downloadMVF(userOptions: TGetVenueMakerOptions): Promise<Uint8Array>;
192
+ export function downloadMVF(userOptions: TGetVenueMakerOptions, accessToken: string): Promise<Uint8Array>;
182
193
  /**
183
194
  * Returns a {@link Mappedin} object hydrated with JSON data.
184
195
  * @param {string|Object} mappedinSerializableData A JSON string or object representing a venue.