swoop-common 2.2.217 → 2.2.218

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.
@@ -56,6 +56,10 @@ export type { Itinerary_ItinerarySaveInputSwoop } from './index';
56
56
  export type { Itinerary_ItinerarySaveInput_jsonldSwoop } from './index';
57
57
  export type { Itinerary_ItinerarySaveOutputSwoop } from './index';
58
58
  export type { Itinerary_ItinerarySaveOutput_jsonldSwoop } from './index';
59
+ export type { MediaAssetSwoop } from './index';
60
+ export type { MediaAsset_jsonldSwoop } from './index';
61
+ export type { MediaTagSwoop } from './index';
62
+ export type { MediaTag_jsonldSwoop } from './index';
59
63
  export type { Note_jsonld_readSwoop } from './index';
60
64
  export type { Note_jsonld_write_createSwoop } from './index';
61
65
  export type { Note_jsonld_write_editSwoop } from './index';
@@ -60,6 +60,10 @@ export type { Itinerary_ItinerarySaveInput as Itinerary_ItinerarySaveInputSwoop
60
60
  export type { Itinerary_ItinerarySaveInput_jsonld as Itinerary_ItinerarySaveInput_jsonldSwoop } from './models/Itinerary_ItinerarySaveInput_jsonld';
61
61
  export type { Itinerary_ItinerarySaveOutput as Itinerary_ItinerarySaveOutputSwoop } from './models/Itinerary_ItinerarySaveOutput';
62
62
  export type { Itinerary_ItinerarySaveOutput_jsonld as Itinerary_ItinerarySaveOutput_jsonldSwoop } from './models/Itinerary_ItinerarySaveOutput_jsonld';
63
+ export type { MediaAsset as MediaAssetSwoop } from './models/MediaAsset';
64
+ export type { MediaAsset_jsonld as MediaAsset_jsonldSwoop } from './models/MediaAsset_jsonld';
65
+ export type { MediaTag as MediaTagSwoop } from './models/MediaTag';
66
+ export type { MediaTag_jsonld as MediaTag_jsonldSwoop } from './models/MediaTag_jsonld';
63
67
  export type { Note_jsonld_read as Note_jsonld_readSwoop } from './models/Note_jsonld_read';
64
68
  export type { Note_jsonld_write_create as Note_jsonld_write_createSwoop } from './models/Note_jsonld_write_create';
65
69
  export type { Note_jsonld_write_edit as Note_jsonld_write_editSwoop } from './models/Note_jsonld_write_edit';
@@ -0,0 +1,13 @@
1
+ export type MediaAsset = {
2
+ id?: string;
3
+ type?: string;
4
+ title?: string;
5
+ caption?: string | null;
6
+ filename?: string;
7
+ width?: number | null;
8
+ height?: number | null;
9
+ credit?: string | null;
10
+ copyright?: string | null;
11
+ qualityRating?: number | null;
12
+ resolutionRating?: number | null;
13
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,13 @@
1
+ export type MediaAsset_jsonld = {
2
+ id?: string;
3
+ type?: string;
4
+ title?: string;
5
+ caption?: string | null;
6
+ filename?: string;
7
+ width?: number | null;
8
+ height?: number | null;
9
+ credit?: string | null;
10
+ copyright?: string | null;
11
+ qualityRating?: number | null;
12
+ resolutionRating?: number | null;
13
+ };
@@ -0,0 +1,6 @@
1
+ export type MediaTag = {
2
+ id?: number;
3
+ title?: string;
4
+ alias?: string;
5
+ type?: string;
6
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ export type MediaTag_jsonld = {
2
+ id?: number;
3
+ title?: string;
4
+ alias?: string;
5
+ type?: string;
6
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -16,6 +16,8 @@ import type { EnquiryStatus } from '../models/EnquiryStatus';
16
16
  import type { ExchangeRate } from '../models/ExchangeRate';
17
17
  import type { Itinerary_ItinerarySaveInput } from '../models/Itinerary_ItinerarySaveInput';
18
18
  import type { Itinerary_ItinerarySaveOutput } from '../models/Itinerary_ItinerarySaveOutput';
19
+ import type { MediaAsset } from '../models/MediaAsset';
20
+ import type { MediaTag } from '../models/MediaTag';
19
21
  import type { Note_read } from '../models/Note_read';
20
22
  import type { Note_write_create } from '../models/Note_write_create';
21
23
  import type { Note_write_edit } from '../models/Note_write_edit';
@@ -245,6 +247,28 @@ export declare class SwoopService {
245
247
  * @throws ApiError
246
248
  */
247
249
  saveItinerary(requestBody: Itinerary_ItinerarySaveInput): CancelablePromise<Itinerary_ItinerarySaveOutput>;
250
+ /**
251
+ * Retrieves the collection of MediaAsset resources.
252
+ * Retrieves the collection of MediaAsset resources.
253
+ * @param page The collection page number
254
+ * @param itemsPerPage The number of items per page
255
+ * @param region antarctica, arctic, patagonia
256
+ * @param q Keyword search on image title and filename
257
+ * @param tagId Filter to images tagged with this tag ID
258
+ * @returns MediaAsset MediaAsset collection
259
+ * @throws ApiError
260
+ */
261
+ mediaAssetsGetCollection(page?: number, itemsPerPage?: number, region?: string, q?: string, tagId?: string): CancelablePromise<Array<MediaAsset>>;
262
+ /**
263
+ * Media Tag Collection
264
+ * Tags that are applied to at least one image, for filtering media assets
265
+ * @param region antarctica, arctic, patagonia
266
+ * @returns any Successful response
267
+ * @throws ApiError
268
+ */
269
+ mediaTagsGetCollection(region?: string): CancelablePromise<{
270
+ mediaTags?: Array<MediaTag>;
271
+ }>;
248
272
  /**
249
273
  * Retrieves the collection of Note resources.
250
274
  * Retrieves the collection of Note resources.
@@ -363,6 +363,46 @@ export class SwoopService {
363
363
  },
364
364
  });
365
365
  }
366
+ /**
367
+ * Retrieves the collection of MediaAsset resources.
368
+ * Retrieves the collection of MediaAsset resources.
369
+ * @param page The collection page number
370
+ * @param itemsPerPage The number of items per page
371
+ * @param region antarctica, arctic, patagonia
372
+ * @param q Keyword search on image title and filename
373
+ * @param tagId Filter to images tagged with this tag ID
374
+ * @returns MediaAsset MediaAsset collection
375
+ * @throws ApiError
376
+ */
377
+ mediaAssetsGetCollection(page = 1, itemsPerPage = 30, region, q, tagId) {
378
+ return __request(OpenAPI, {
379
+ method: 'GET',
380
+ url: '/api/media-assets',
381
+ query: {
382
+ 'page': page,
383
+ 'itemsPerPage': itemsPerPage,
384
+ 'region': region,
385
+ 'q': q,
386
+ 'tagId': tagId,
387
+ },
388
+ });
389
+ }
390
+ /**
391
+ * Media Tag Collection
392
+ * Tags that are applied to at least one image, for filtering media assets
393
+ * @param region antarctica, arctic, patagonia
394
+ * @returns any Successful response
395
+ * @throws ApiError
396
+ */
397
+ mediaTagsGetCollection(region) {
398
+ return __request(OpenAPI, {
399
+ method: 'GET',
400
+ url: '/api/media-tags',
401
+ query: {
402
+ 'region': region,
403
+ },
404
+ });
405
+ }
366
406
  /**
367
407
  * Retrieves the collection of Note resources.
368
408
  * Retrieves the collection of Note resources.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "swoop-common",
3
- "version": "2.2.217",
3
+ "version": "2.2.218",
4
4
  "main": "dist/api/index.js",
5
5
  "types": "dist/api/index.d.ts",
6
6
  "exports": {