@prezly/sdk 21.9.0 → 21.10.1-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 = "21.8.0";
7
+ const VERSION = "21.10.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 = "21.8.0";
1
+ const VERSION = "21.10.0";
2
2
  const URL = 'https://github.com/prezly/javascript-sdk';
3
3
  export const DEFAULT_USER_AGENT = `prezly-javascript-sdk/${VERSION} (+${URL})`;
@@ -41,10 +41,12 @@ interface BaseContactPayload {
41
41
  }
42
42
  export interface OrganisationUpdateRequest extends BaseContactPayload {
43
43
  company_name?: string;
44
+ domain?: string;
44
45
  }
45
46
  export interface OrganisationCreateRequest extends BaseContactPayload {
46
47
  contact_type: `${Contact.Type.ORGANISATION}`;
47
48
  company_name: string;
49
+ domain?: string;
48
50
  }
49
51
  export interface PersonUpdateRequest extends BaseContactPayload {
50
52
  first_name?: string;
@@ -20,6 +20,7 @@ export interface Contact {
20
20
  is_person: boolean;
21
21
  is_demo: boolean;
22
22
  company_name: string;
23
+ domain: string;
23
24
  first_name: string;
24
25
  last_name: string;
25
26
  display_name: string;
@@ -1,5 +1,6 @@
1
1
  import type { UploadedImage } from '@prezly/uploads';
2
2
  import type { CultureRef } from './Culture';
3
+ import type { NewsroomRef } from './Newsroom';
3
4
  export interface NewsroomContactRef {
4
5
  uuid: string;
5
6
  /**
@@ -29,4 +30,5 @@ export interface NewsroomContact extends Omit<NewsroomContactRef, 'avatar_url'>
29
30
  * List of locales this contact can be displayed for.
30
31
  */
31
32
  display_locales: CultureRef[];
33
+ site: NewsroomRef;
32
34
  }
@@ -25,15 +25,6 @@ let Story = exports.Story = void 0;
25
25
  return Status;
26
26
  }({});
27
27
  _Story.Status = Status;
28
- /**
29
- * @deprecated Please use `Status` instead.
30
- * @see Status
31
- */
32
- var LifecycleStatus = Status;
33
- /**
34
- * @deprecated Please use `Status` instead.
35
- * @see Status
36
- */
37
28
  let PublicationStatus = /*#__PURE__*/function (PublicationStatus) {
38
29
  PublicationStatus["NEW"] = "new";
39
30
  PublicationStatus["DRAFT"] = "draft";
@@ -21,7 +21,7 @@ export interface StoryRef {
21
21
  * @see status
22
22
  * @see Story.Status
23
23
  */
24
- lifecycle_status: Story.LifecycleStatus;
24
+ lifecycle_status: Story.Status;
25
25
  /**
26
26
  * @deprecated Please use `status` instead.
27
27
  * @see status
@@ -163,11 +163,6 @@ export declare namespace Story {
163
163
  EMBARGO = "embargo",
164
164
  PUBLISHED = "published"
165
165
  }
166
- /**
167
- * @deprecated Please use `Status` instead.
168
- * @see Status
169
- */
170
- export import LifecycleStatus = Status;
171
166
  /**
172
167
  * @deprecated Please use `Status` instead.
173
168
  * @see Status
@@ -19,15 +19,6 @@ export let Story;
19
19
  return Status;
20
20
  }({});
21
21
  _Story.Status = Status;
22
- /**
23
- * @deprecated Please use `Status` instead.
24
- * @see Status
25
- */
26
- var LifecycleStatus = Status;
27
- /**
28
- * @deprecated Please use `Status` instead.
29
- * @see Status
30
- */
31
22
  let PublicationStatus = /*#__PURE__*/function (PublicationStatus) {
32
23
  PublicationStatus["NEW"] = "new";
33
24
  PublicationStatus["DRAFT"] = "draft";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prezly/sdk",
3
- "version": "21.9.0",
3
+ "version": "21.10.1-0",
4
4
  "description": "Prezly API SDK",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",