@contentchef/contentchef-types 2.5.7 → 2.6.0-alpha.0

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.
@@ -321,14 +321,18 @@ export declare type ListMediaRequest = {
321
321
  * The number of media to take
322
322
  */
323
323
  take: number;
324
+ /**
325
+ * The number of media to skip
326
+ * This is used to paginate the media
327
+ * e.g. -> skip = 0 -> take = 10 -> media[0-9]
328
+ * skip = 10 -> take = 10 -> media[10-19]
329
+ * skip = 20 -> take = 10 -> media[20-29]
330
+ */
331
+ skip: number;
324
332
  /**
325
333
  * The folder path where to list the media
326
334
  */
327
335
  folderPath?: string;
328
- /**
329
- * The cursor needed to get the next segment of media
330
- */
331
- nextCursor?: string;
332
336
  /**
333
337
  * The type of media to retrieve
334
338
  */
@@ -350,10 +354,6 @@ export declare type GetMediaRequest = {
350
354
  * The media gallery unique id
351
355
  */
352
356
  mediaGalleryId: MediaGalleryId;
353
- /**
354
- * The media type
355
- */
356
- mediaType: MediaType;
357
357
  /**
358
358
  * The path needed to locate the media in the media gallery
359
359
  */
@@ -339,14 +339,18 @@ export type ListMediaRequest = {
339
339
  * The number of media to take
340
340
  */
341
341
  take: number;
342
+ /**
343
+ * The number of media to skip
344
+ * This is used to paginate the media
345
+ * e.g. -> skip = 0 -> take = 10 -> media[0-9]
346
+ * skip = 10 -> take = 10 -> media[10-19]
347
+ * skip = 20 -> take = 10 -> media[20-29]
348
+ */
349
+ skip: number;
342
350
  /**
343
351
  * The folder path where to list the media
344
352
  */
345
353
  folderPath?: string;
346
- /**
347
- * The cursor needed to get the next segment of media
348
- */
349
- nextCursor?: string;
350
354
  /**
351
355
  * The type of media to retrieve
352
356
  */
@@ -370,10 +374,6 @@ export type GetMediaRequest = {
370
374
  * The media gallery unique id
371
375
  */
372
376
  mediaGalleryId: MediaGalleryId;
373
- /**
374
- * The media type
375
- */
376
- mediaType: MediaType;
377
377
  /**
378
378
  * The path needed to locate the media in the media gallery
379
379
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentchef/contentchef-types",
3
- "version": "2.5.7",
3
+ "version": "2.6.0-alpha.0",
4
4
  "description": "ContentChef types",
5
5
  "author": "PierpaoloIannone <piannone@byte-code.com>",
6
6
  "homepage": "https://github.com/ContentChef/contentchef-management-js-client#readme",
@@ -34,5 +34,5 @@
34
34
  "devDependencies": {
35
35
  "typescript": "^4.0.5"
36
36
  },
37
- "gitHead": "a4a284420702c69ce4a564a52737645583d080b8"
37
+ "gitHead": "dd738eb3c9ee0725393bfa725d4843b533744229"
38
38
  }