@prezly/sdk 21.8.0 → 21.10.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
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.9.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
package/dist/types/Contact.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { UploadedImage } from '@prezly/uploads';
|
|
2
2
|
import type { ContactDuplicateSuggestionRef } from './ContactDuplicateSuggestion';
|
|
3
|
+
import type { ContactTagRef } from './ContactTag';
|
|
3
4
|
export interface ContactRef {
|
|
4
5
|
id: number;
|
|
5
6
|
contact_type: Contact.Type;
|
|
@@ -60,6 +61,7 @@ export interface Contact {
|
|
|
60
61
|
organisations: ContactRef[];
|
|
61
62
|
employees_number: number;
|
|
62
63
|
tags: string[];
|
|
64
|
+
tag_entities: ContactTagRef[];
|
|
63
65
|
has_enrichments: boolean;
|
|
64
66
|
is_bounced: boolean;
|
|
65
67
|
is_duplicated: boolean;
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import type { ContactTagGroupRef } from './ContactTagGroup';
|
|
2
2
|
import type { UserRef } from './User';
|
|
3
3
|
type Iso8601DateTime = string;
|
|
4
|
+
export interface ContactTagRef {
|
|
5
|
+
id: number;
|
|
6
|
+
name: string;
|
|
7
|
+
group: ContactTagGroupRef | null;
|
|
8
|
+
}
|
|
4
9
|
export interface ContactTag {
|
|
5
10
|
id: number;
|
|
6
11
|
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
|
}
|