@prezly/sdk 20.1.0 → 20.3.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.
@@ -4,6 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.DEFAULT_USER_AGENT = void 0;
7
- const VERSION = "20.0.0";
7
+ const VERSION = "20.2.0";
8
8
  const URL = 'https://github.com/prezly/javascript-sdk';
9
9
  const DEFAULT_USER_AGENT = exports.DEFAULT_USER_AGENT = `prezly-javascript-sdk/${VERSION} (+${URL})`;
@@ -1,3 +1,3 @@
1
- const VERSION = "20.0.0";
1
+ const VERSION = "20.2.0";
2
2
  const URL = 'https://github.com/prezly/javascript-sdk';
3
3
  export const DEFAULT_USER_AGENT = `prezly-javascript-sdk/${VERSION} (+${URL})`;
@@ -1,3 +1,4 @@
1
+ import type { UploadedImage } from '@prezly/uploads';
1
2
  import type { SortOrder } from '../../types';
2
3
  export interface ListOptions {
3
4
  /**
@@ -16,9 +17,11 @@ export interface CreateRequest {
16
17
  description?: string;
17
18
  };
18
19
  };
20
+ image?: UploadedImage | null;
21
+ is_featured?: boolean;
19
22
  }
20
23
  export interface UpdateRequest {
21
- i18n: {
24
+ i18n?: {
22
25
  /**
23
26
  * Pass `null` to erase category translation.
24
27
  */
@@ -27,4 +30,6 @@ export interface UpdateRequest {
27
30
  description?: string;
28
31
  };
29
32
  };
33
+ image?: UploadedImage | null;
34
+ is_featured?: boolean;
30
35
  }
@@ -1,3 +1,4 @@
1
+ import type { UploadedImage } from '@prezly/uploads';
1
2
  import type { Culture, CultureRef } from './Culture';
2
3
  export interface CategoryRef {
3
4
  id: number;
@@ -21,6 +22,8 @@ export interface Category extends Omit<CategoryRef, 'i18n'> {
21
22
  i18n: {
22
23
  [localeCode: Culture.Code]: Category.Translation;
23
24
  };
25
+ image: UploadedImage | null;
26
+ is_featured: boolean;
24
27
  }
25
28
  export declare namespace Category {
26
29
  interface Translation extends CategoryRef.Translation {
@@ -7,6 +7,7 @@ exports.NotificationSubscription = void 0;
7
7
  let NotificationSubscription = exports.NotificationSubscription = void 0;
8
8
  (function (_NotificationSubscription) {
9
9
  let Area = /*#__PURE__*/function (Area) {
10
+ Area["SITES"] = "Sites";
10
11
  Area["CAMPAIGNS"] = "Campaigns";
11
12
  Area["CONTACTS"] = "Contacts";
12
13
  Area["BILLING_AND_LEGAL"] = "Billing & Legal";
@@ -15,6 +15,7 @@ export declare namespace NotificationSubscription {
15
15
  area: Area;
16
16
  }
17
17
  enum Area {
18
+ SITES = "Sites",
18
19
  CAMPAIGNS = "Campaigns",
19
20
  CONTACTS = "Contacts",
20
21
  BILLING_AND_LEGAL = "Billing & Legal",
@@ -1,6 +1,7 @@
1
1
  export let NotificationSubscription;
2
2
  (function (_NotificationSubscription) {
3
3
  let Area = /*#__PURE__*/function (Area) {
4
+ Area["SITES"] = "Sites";
4
5
  Area["CAMPAIGNS"] = "Campaigns";
5
6
  Area["CONTACTS"] = "Contacts";
6
7
  Area["BILLING_AND_LEGAL"] = "Billing & Legal";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prezly/sdk",
3
- "version": "20.1.0",
3
+ "version": "20.3.0",
4
4
  "description": "Prezly API SDK",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",