@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.
- package/dist/api/constants.cjs +1 -1
- package/dist/api/constants.js +1 -1
- package/dist/endpoints/Contacts/types.d.ts +2 -0
- package/dist/types/Contact.d.ts +1 -0
- package/dist/types/NewsroomContact.d.ts +2 -0
- package/dist/types/Story.cjs +0 -9
- package/dist/types/Story.d.ts +1 -6
- package/dist/types/Story.js +0 -9
- 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.
|
|
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})`;
|
package/dist/api/constants.js
CHANGED
|
@@ -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;
|
package/dist/types/Contact.d.ts
CHANGED
|
@@ -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
|
}
|
package/dist/types/Story.cjs
CHANGED
|
@@ -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";
|
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.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
|
package/dist/types/Story.js
CHANGED
|
@@ -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";
|