@prezly/sdk 19.7.1 → 19.8.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.
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 = "19.7.
|
|
7
|
+
const VERSION = "19.7.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
|
@@ -55,6 +55,11 @@ export interface PersonUpdateRequest extends BaseContactPayload {
|
|
|
55
55
|
}
|
|
56
56
|
export interface PersonCreateRequest extends PersonUpdateRequest {
|
|
57
57
|
contact_type: `${Contact.Type.PERSON}`;
|
|
58
|
+
/**
|
|
59
|
+
* UUID of a subscriber.
|
|
60
|
+
* If this property is provided, subscriber's data will be applied to the created contact.
|
|
61
|
+
*/
|
|
62
|
+
subscriber?: string;
|
|
58
63
|
}
|
|
59
64
|
export interface BulkDeleteResponse {
|
|
60
65
|
deleted_contacts_count: number;
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
+
import type { ContactRef } from './Contact';
|
|
1
2
|
export interface EmailSubscription {
|
|
2
3
|
id: string;
|
|
3
4
|
email_address: string;
|
|
4
5
|
first_name: string | null;
|
|
5
6
|
last_name: string | null;
|
|
6
|
-
|
|
7
|
+
/**
|
|
8
|
+
* This field will be present only if user has permission to view contacts.
|
|
9
|
+
*/
|
|
10
|
+
contacts?: ContactRef[];
|
|
7
11
|
}
|