@prezly/sdk 21.10.1-0 → 21.11.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.
- package/dist/api/constants.cjs +1 -1
- package/dist/api/constants.js +1 -1
- package/dist/endpoints/Contacts/types.d.ts +2 -2
- package/dist/endpoints/Stories/types.cjs +8 -4
- package/dist/endpoints/Stories/types.d.ts +6 -3
- package/dist/endpoints/Stories/types.js +3 -3
- package/dist/types/Contact.d.ts +1 -1
- package/dist/types/CoverageEntry.d.ts +2 -2
- package/dist/types/Story.cjs +5 -0
- package/dist/types/Story.d.ts +7 -1
- package/dist/types/Story.js +5 -0
- package/package.json +1 -1
package/dist/api/constants.cjs
CHANGED
|
@@ -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.10.
|
|
7
|
+
const VERSION = "21.10.1";
|
|
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})`;
|
package/dist/api/constants.js
CHANGED
|
@@ -41,12 +41,12 @@ interface BaseContactPayload {
|
|
|
41
41
|
}
|
|
42
42
|
export interface OrganisationUpdateRequest extends BaseContactPayload {
|
|
43
43
|
company_name?: string;
|
|
44
|
-
domain?: string;
|
|
44
|
+
domain?: string | null;
|
|
45
45
|
}
|
|
46
46
|
export interface OrganisationCreateRequest extends BaseContactPayload {
|
|
47
47
|
contact_type: `${Contact.Type.ORGANISATION}`;
|
|
48
48
|
company_name: string;
|
|
49
|
-
domain?: string;
|
|
49
|
+
domain?: string | null;
|
|
50
50
|
}
|
|
51
51
|
export interface PersonUpdateRequest extends BaseContactPayload {
|
|
52
52
|
first_name?: string;
|
|
@@ -3,23 +3,27 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.EXTENDED_STORY_INCLUDED_EXTRA_FIELDS = exports.ALL_EXTRA_FIELDS = void 0;
|
|
6
|
+
exports.HeaderFooter = exports.EXTENDED_STORY_INCLUDED_EXTRA_FIELDS = exports.Appearance = exports.Alignment = exports.ALL_EXTRA_FIELDS = void 0;
|
|
7
7
|
var _index = require("../../types/index.cjs");
|
|
8
8
|
/**
|
|
9
9
|
* Uploadcare image JSON string.
|
|
10
10
|
*/
|
|
11
|
+
|
|
11
12
|
/**
|
|
12
13
|
* Raw HTML string.
|
|
13
14
|
*/
|
|
15
|
+
|
|
14
16
|
/**
|
|
15
17
|
* String-serialized JSON object.
|
|
16
18
|
*/
|
|
19
|
+
|
|
17
20
|
/**
|
|
18
21
|
* String containing Prezly Content Format JSON structure.
|
|
19
22
|
*/
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
+
|
|
24
|
+
const Alignment = exports.Alignment = _index.Campaign.StoryAlignment;
|
|
25
|
+
const Appearance = exports.Appearance = _index.Campaign.StoryAppearance;
|
|
26
|
+
const HeaderFooter = exports.HeaderFooter = _index.Campaign.StoryHeaderFooter;
|
|
23
27
|
const EXTENDED_STORY_INCLUDED_EXTRA_FIELDS_SHAPE = {
|
|
24
28
|
thumbnail_image: true,
|
|
25
29
|
header_image: true,
|
|
@@ -210,9 +210,12 @@ export interface PreviewOptions {
|
|
|
210
210
|
appearance?: Appearance;
|
|
211
211
|
headerFooter?: HeaderFooter;
|
|
212
212
|
}
|
|
213
|
-
export
|
|
214
|
-
export
|
|
215
|
-
export
|
|
213
|
+
export declare const Alignment: typeof Campaign.StoryAlignment;
|
|
214
|
+
export type Alignment = Campaign.StoryAlignment;
|
|
215
|
+
export declare const Appearance: typeof Campaign.StoryAppearance;
|
|
216
|
+
export type Appearance = Campaign.StoryAppearance;
|
|
217
|
+
export declare const HeaderFooter: typeof Campaign.StoryHeaderFooter;
|
|
218
|
+
export type HeaderFooter = Campaign.StoryHeaderFooter;
|
|
216
219
|
export type CreateRequest = HtmlStoryCreateRequest | SlateV3StoryCreateRequest | SlateV4StoryCreateRequest | SlateV5StoryCreateRequest;
|
|
217
220
|
export type UpdateRequest = HtmlStoryUpdateRequest | SlateV3StoryUpdateRequest | SlateV4StoryUpdateRequest | SlateV5StoryUpdateRequest;
|
|
218
221
|
export interface AutosaveRequest {
|
|
@@ -11,9 +11,9 @@ import { Campaign } from "../../types/index.js";
|
|
|
11
11
|
/**
|
|
12
12
|
* String containing Prezly Content Format JSON structure.
|
|
13
13
|
*/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
export const Alignment = Campaign.StoryAlignment;
|
|
15
|
+
export const Appearance = Campaign.StoryAppearance;
|
|
16
|
+
export const HeaderFooter = Campaign.StoryHeaderFooter;
|
|
17
17
|
const EXTENDED_STORY_INCLUDED_EXTRA_FIELDS_SHAPE = {
|
|
18
18
|
thumbnail_image: true,
|
|
19
19
|
header_image: true,
|
package/dist/types/Contact.d.ts
CHANGED
|
@@ -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;
|
package/dist/types/Story.cjs
CHANGED
|
@@ -25,6 +25,11 @@ let Story = exports.Story = void 0;
|
|
|
25
25
|
return Status;
|
|
26
26
|
}({});
|
|
27
27
|
_Story.Status = Status;
|
|
28
|
+
const LifecycleStatus = _Story.LifecycleStatus = Status;
|
|
29
|
+
/**
|
|
30
|
+
* @deprecated Please use `Status` instead.
|
|
31
|
+
* @see Status
|
|
32
|
+
*/
|
|
28
33
|
let PublicationStatus = /*#__PURE__*/function (PublicationStatus) {
|
|
29
34
|
PublicationStatus["NEW"] = "new";
|
|
30
35
|
PublicationStatus["DRAFT"] = "draft";
|
package/dist/types/Story.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ export interface StoryRef {
|
|
|
21
21
|
* @see status
|
|
22
22
|
* @see Story.Status
|
|
23
23
|
*/
|
|
24
|
-
lifecycle_status: Story.
|
|
24
|
+
lifecycle_status: Story.LifecycleStatus;
|
|
25
25
|
/**
|
|
26
26
|
* @deprecated Please use `status` instead.
|
|
27
27
|
* @see status
|
|
@@ -163,6 +163,12 @@ 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
|
+
const LifecycleStatus: typeof Status;
|
|
171
|
+
type LifecycleStatus = Status;
|
|
166
172
|
/**
|
|
167
173
|
* @deprecated Please use `Status` instead.
|
|
168
174
|
* @see Status
|
package/dist/types/Story.js
CHANGED
|
@@ -19,6 +19,11 @@ export let Story;
|
|
|
19
19
|
return Status;
|
|
20
20
|
}({});
|
|
21
21
|
_Story.Status = Status;
|
|
22
|
+
const LifecycleStatus = _Story.LifecycleStatus = Status;
|
|
23
|
+
/**
|
|
24
|
+
* @deprecated Please use `Status` instead.
|
|
25
|
+
* @see Status
|
|
26
|
+
*/
|
|
22
27
|
let PublicationStatus = /*#__PURE__*/function (PublicationStatus) {
|
|
23
28
|
PublicationStatus["NEW"] = "new";
|
|
24
29
|
PublicationStatus["DRAFT"] = "draft";
|