@prezly/sdk 11.2.0 → 11.2.2
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.js
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import type { NotificationSubscription } from '../../types';
|
|
2
|
+
interface SubscriptionUpdate {
|
|
3
|
+
notification_type: NotificationSubscription.Type['id'];
|
|
4
|
+
is_email_subscribed: NotificationSubscription['is_email_subscribed'];
|
|
5
|
+
}
|
|
2
6
|
export interface UpdateRequest {
|
|
3
|
-
subscriptions:
|
|
7
|
+
subscriptions: SubscriptionUpdate[];
|
|
4
8
|
}
|
|
9
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Category, CategoryRef, CultureRef, ExtendedStory, Newsroom, NewsroomContactRef, Pagination, Query, Story
|
|
1
|
+
import type { Category, CategoryRef, CultureRef, ExtendedStory, Newsroom, NewsroomContactRef, Pagination, Query, Story } from '../../types';
|
|
2
2
|
/**
|
|
3
3
|
* Uploadcare image JSON string.
|
|
4
4
|
*/
|
|
@@ -12,6 +12,12 @@ declare type Html = string;
|
|
|
12
12
|
* String containing Prezly Content Format JSON structure.
|
|
13
13
|
*/
|
|
14
14
|
declare type PrezlyContentFormat = string;
|
|
15
|
+
interface BaseWarning {
|
|
16
|
+
text: string;
|
|
17
|
+
scope: string;
|
|
18
|
+
field: string;
|
|
19
|
+
value: unknown;
|
|
20
|
+
}
|
|
15
21
|
interface ChangingNewsroomUnsafeOperationWarning extends BaseWarning {
|
|
16
22
|
scope: 'room_id';
|
|
17
23
|
field: 'room_id';
|