@prezly/sdk 21.10.1-0 → 21.10.1

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.
@@ -41,12 +41,10 @@ interface BaseContactPayload {
41
41
  }
42
42
  export interface OrganisationUpdateRequest extends BaseContactPayload {
43
43
  company_name?: string;
44
- domain?: string;
45
44
  }
46
45
  export interface OrganisationCreateRequest extends BaseContactPayload {
47
46
  contact_type: `${Contact.Type.ORGANISATION}`;
48
47
  company_name: string;
49
- domain?: string;
50
48
  }
51
49
  export interface PersonUpdateRequest extends BaseContactPayload {
52
50
  first_name?: string;
@@ -14,7 +14,7 @@ type Exactly<Concrete, Abstract> = Concrete & Record<Exclude<keyof Concrete, key
14
14
  type InferExtraFields<T> = T extends Required<IncludeOptions<infer I>> ? Pick<Story.ExtraFields, I> : unknown;
15
15
  export type Client = ReturnType<typeof createClient>;
16
16
  export declare function createClient(api: DeferredJobsApiClient): {
17
- list: <Options extends ListOptions<keyof Story.ExtraFields>>(options?: Exactly<Options, ListOptions<keyof Story.ExtraFields>> | undefined) => Promise<ListResponse<Story & InferExtraFields<Options>>>;
17
+ list: <Options extends ListOptions<keyof Story.ExtraFields>>(options?: Exactly<Options, ListOptions>) => Promise<ListResponse<Story & InferExtraFields<Options>>>;
18
18
  search: <Options_1 extends SearchOptions<keyof Story.ExtraFields>>(options?: Exactly<Options_1, SearchOptions<keyof Story.ExtraFields>> | undefined) => Promise<ListResponse<Story & InferExtraFields<Options_1>>>;
19
19
  get: {
20
20
  <Options_2 extends IncludeOptions<keyof Story.ExtraFields> & {
@@ -20,7 +20,6 @@ export interface Contact {
20
20
  is_person: boolean;
21
21
  is_demo: boolean;
22
22
  company_name: string;
23
- domain: string;
24
23
  first_name: string;
25
24
  last_name: string;
26
25
  display_name: string;
@@ -1,4 +1,4 @@
1
- import type { UploadedFile } from '@prezly/uploads';
1
+ import type { UploadedFile, UploadedImage } from '@prezly/uploads';
2
2
  import type { OEmbedInfo } from './common';
3
3
  import type { Contact } from './Contact';
4
4
  import type { CountryRef } from './Country';
@@ -25,7 +25,7 @@ export interface CoverageEntry {
25
25
  note_content_html: string;
26
26
  note_content_json: string;
27
27
  note_content_text: string;
28
- attachment: UploadedFile | null;
28
+ attachment: UploadedFile | UploadedImage | null;
29
29
  attachment_oembed: OEmbedInfo | null;
30
30
  published_at: string | null;
31
31
  created_at: string;
@@ -25,6 +25,15 @@ 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
+ */
28
37
  let PublicationStatus = /*#__PURE__*/function (PublicationStatus) {
29
38
  PublicationStatus["NEW"] = "new";
30
39
  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.Status;
24
+ lifecycle_status: Story.LifecycleStatus;
25
25
  /**
26
26
  * @deprecated Please use `status` instead.
27
27
  * @see status
@@ -163,6 +163,11 @@ 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;
166
171
  /**
167
172
  * @deprecated Please use `Status` instead.
168
173
  * @see Status
@@ -19,6 +19,15 @@ 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
+ */
22
31
  let PublicationStatus = /*#__PURE__*/function (PublicationStatus) {
23
32
  PublicationStatus["NEW"] = "new";
24
33
  PublicationStatus["DRAFT"] = "draft";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prezly/sdk",
3
- "version": "21.10.1-0",
3
+ "version": "21.10.1",
4
4
  "description": "Prezly API SDK",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",