@prezly/sdk 25.7.0 → 25.8.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/Billing/types.cjs +6 -6
- package/dist/endpoints/Billing/types.js +6 -6
- package/dist/endpoints/Campaigns/Client.cjs +4 -2
- package/dist/endpoints/Campaigns/Client.d.ts +2 -2
- package/dist/endpoints/Campaigns/Client.js +4 -2
- package/dist/endpoints/Campaigns/types.d.ts +3 -0
- package/dist/endpoints/ContactTagGroups/types.cjs +3 -3
- package/dist/endpoints/ContactTagGroups/types.js +3 -3
- package/dist/endpoints/PricingTables/types.cjs +12 -12
- package/dist/endpoints/PricingTables/types.js +12 -12
- package/dist/endpoints/Subscriptions/types.cjs +3 -3
- package/dist/endpoints/Subscriptions/types.js +3 -3
- package/dist/http/types.cjs +6 -6
- package/dist/http/types.js +6 -6
- package/dist/types/BillingCycle.cjs +3 -3
- package/dist/types/BillingCycle.js +3 -3
- package/dist/types/Campaign.cjs +18 -18
- package/dist/types/Campaign.js +18 -18
- package/dist/types/Category.cjs +0 -1
- package/dist/types/Category.js +0 -1
- package/dist/types/Contact.cjs +18 -18
- package/dist/types/Contact.js +18 -18
- package/dist/types/ContactDuplicateSuggestion.cjs +3 -3
- package/dist/types/ContactDuplicateSuggestion.js +3 -4
- package/dist/types/ContactTag.cjs +1 -2
- package/dist/types/ContactTag.js +1 -2
- package/dist/types/ContactsExport.cjs +3 -3
- package/dist/types/ContactsExport.js +3 -3
- package/dist/types/ContactsScope.cjs +3 -3
- package/dist/types/ContactsScope.js +3 -3
- package/dist/types/CoverageEntry.cjs +9 -9
- package/dist/types/CoverageEntry.js +9 -9
- package/dist/types/CoverageIntegration.cjs +3 -3
- package/dist/types/CoverageIntegration.js +3 -3
- package/dist/types/CoverageIntegrationRun.cjs +3 -3
- package/dist/types/CoverageIntegrationRun.js +3 -3
- package/dist/types/Culture.cjs +3 -3
- package/dist/types/Culture.js +3 -3
- package/dist/types/Currency.cjs +3 -3
- package/dist/types/Currency.js +3 -3
- package/dist/types/EmailRecipient.cjs +6 -6
- package/dist/types/EmailRecipient.js +6 -6
- package/dist/types/JobState.cjs +3 -3
- package/dist/types/JobState.js +3 -3
- package/dist/types/License.cjs +12 -12
- package/dist/types/License.js +12 -12
- package/dist/types/Newsroom.cjs +12 -12
- package/dist/types/Newsroom.js +12 -12
- package/dist/types/NewsroomDomain.cjs +6 -6
- package/dist/types/NewsroomDomain.js +6 -6
- package/dist/types/NewsroomGallery.cjs +6 -6
- package/dist/types/NewsroomGallery.js +6 -6
- package/dist/types/NewsroomTheme.cjs +7 -8
- package/dist/types/NewsroomTheme.js +7 -8
- package/dist/types/NewsroomWebhook.cjs +3 -3
- package/dist/types/NewsroomWebhook.js +3 -3
- package/dist/types/NotificationSubscription.cjs +3 -3
- package/dist/types/NotificationSubscription.js +3 -3
- package/dist/types/Permissions.cjs +3 -3
- package/dist/types/Permissions.js +3 -3
- package/dist/types/Plan.cjs +10 -10
- package/dist/types/Plan.js +11 -11
- package/dist/types/Price.cjs +6 -6
- package/dist/types/Price.js +6 -6
- package/dist/types/PrivacyRequest.cjs +6 -6
- package/dist/types/PrivacyRequest.js +6 -6
- package/dist/types/SenderAddress.cjs +3 -3
- package/dist/types/SenderAddress.js +3 -3
- package/dist/types/SenderDomain.cjs +3 -3
- package/dist/types/SenderDomain.js +3 -3
- package/dist/types/SortOrder.cjs +3 -3
- package/dist/types/SortOrder.js +3 -3
- package/dist/types/Story.cjs +12 -12
- package/dist/types/Story.js +12 -12
- package/dist/types/User.cjs +6 -6
- package/dist/types/User.js +6 -6
- package/dist/types/common/Notification.cjs +3 -3
- package/dist/types/common/Notification.js +3 -3
- package/dist/types/common/OEmbedInfo.cjs +3 -3
- package/dist/types/common/OEmbedInfo.js +3 -3
- package/dist/types/common/Pagination.cjs +3 -3
- package/dist/types/common/Pagination.js +3 -3
- package/dist/types/common/Query.js +0 -1
- 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 = "25.
|
|
7
|
+
const VERSION = "25.7.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
|
@@ -4,15 +4,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.SignupPlan = exports.SignupCurrency = void 0;
|
|
7
|
-
let SignupPlan = exports.SignupPlan =
|
|
8
|
-
(function (SignupPlan) {
|
|
7
|
+
let SignupPlan = exports.SignupPlan = /*#__PURE__*/function (SignupPlan) {
|
|
9
8
|
SignupPlan["ESSENTIAL"] = "essential";
|
|
10
9
|
SignupPlan["STANDARD"] = "standard";
|
|
11
10
|
SignupPlan["AGENCY_ESSENTIAL"] = "agency_essential";
|
|
12
11
|
SignupPlan["AGENCY_STANDARD"] = "agency_standard";
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
return SignupPlan;
|
|
13
|
+
}({});
|
|
14
|
+
let SignupCurrency = exports.SignupCurrency = /*#__PURE__*/function (SignupCurrency) {
|
|
16
15
|
SignupCurrency["EUR"] = "eur";
|
|
17
16
|
SignupCurrency["USD"] = "usd";
|
|
18
|
-
|
|
17
|
+
return SignupCurrency;
|
|
18
|
+
}({});
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export let SignupPlan
|
|
2
|
-
(function (SignupPlan) {
|
|
1
|
+
export let SignupPlan = /*#__PURE__*/function (SignupPlan) {
|
|
3
2
|
SignupPlan["ESSENTIAL"] = "essential";
|
|
4
3
|
SignupPlan["STANDARD"] = "standard";
|
|
5
4
|
SignupPlan["AGENCY_ESSENTIAL"] = "agency_essential";
|
|
6
5
|
SignupPlan["AGENCY_STANDARD"] = "agency_standard";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
return SignupPlan;
|
|
7
|
+
}({});
|
|
8
|
+
export let SignupCurrency = /*#__PURE__*/function (SignupCurrency) {
|
|
10
9
|
SignupCurrency["EUR"] = "eur";
|
|
11
10
|
SignupCurrency["USD"] = "usd";
|
|
12
|
-
|
|
11
|
+
return SignupCurrency;
|
|
12
|
+
}({});
|
|
@@ -47,8 +47,10 @@ function createClient(api) {
|
|
|
47
47
|
async function get(id) {
|
|
48
48
|
return api.get(`${_routing.routing.campaignsUrl}/${id}`);
|
|
49
49
|
}
|
|
50
|
-
async function duplicate(id) {
|
|
51
|
-
return api.post(`${_routing.routing.campaignsUrl}/${id}/duplicate
|
|
50
|
+
async function duplicate(id, options) {
|
|
51
|
+
return api.post(`${_routing.routing.campaignsUrl}/${id}/duplicate`, {
|
|
52
|
+
payload: options
|
|
53
|
+
});
|
|
52
54
|
}
|
|
53
55
|
async function doDelete(id) {
|
|
54
56
|
return api.delete(`${_routing.routing.campaignsUrl}/${id}`);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import type { ProgressPromise } from '@prezly/progress-promise';
|
|
2
2
|
import type { DeferredJobsApiClient } from '../../api';
|
|
3
3
|
import type { BulkDeletePayload, Campaign } from '../../types';
|
|
4
|
-
import type { CreateRequest, RecipientsOperationResponse, CampaignResponse, UpdateRequest, ListResponse, SearchOptions } from './types';
|
|
4
|
+
import type { CreateRequest, RecipientsOperationResponse, CampaignResponse, UpdateRequest, ListResponse, SearchOptions, DuplicateOptions } from './types';
|
|
5
5
|
export type Client = ReturnType<typeof createClient>;
|
|
6
6
|
export declare function createClient(api: DeferredJobsApiClient): {
|
|
7
7
|
list: (options: SearchOptions) => Promise<ListResponse>;
|
|
8
8
|
search: (options: SearchOptions) => Promise<ListResponse>;
|
|
9
9
|
get: (id: Campaign['id']) => Promise<CampaignResponse>;
|
|
10
|
-
duplicate: (id: Campaign['id']) => Promise<CampaignResponse>;
|
|
10
|
+
duplicate: (id: Campaign['id'], options?: DuplicateOptions) => Promise<CampaignResponse>;
|
|
11
11
|
test: (id: Campaign['id'], emails: string[]) => Promise<void>;
|
|
12
12
|
send: (id: Campaign['id']) => Promise<void>;
|
|
13
13
|
schedule: (id: Campaign['id'], sendAt: Date) => Promise<Campaign>;
|
|
@@ -41,8 +41,10 @@ export function createClient(api) {
|
|
|
41
41
|
async function get(id) {
|
|
42
42
|
return api.get(`${routing.campaignsUrl}/${id}`);
|
|
43
43
|
}
|
|
44
|
-
async function duplicate(id) {
|
|
45
|
-
return api.post(`${routing.campaignsUrl}/${id}/duplicate
|
|
44
|
+
async function duplicate(id, options) {
|
|
45
|
+
return api.post(`${routing.campaignsUrl}/${id}/duplicate`, {
|
|
46
|
+
payload: options
|
|
47
|
+
});
|
|
46
48
|
}
|
|
47
49
|
async function doDelete(id) {
|
|
48
50
|
return api.delete(`${routing.campaignsUrl}/${id}`);
|
|
@@ -24,6 +24,9 @@ export interface UpdateRequest {
|
|
|
24
24
|
is_open_tracking_enabled?: boolean;
|
|
25
25
|
is_click_tracking_enabled?: boolean;
|
|
26
26
|
}
|
|
27
|
+
export interface DuplicateOptions {
|
|
28
|
+
with_recipients?: boolean;
|
|
29
|
+
}
|
|
27
30
|
export interface RecipientsOperationResponse {
|
|
28
31
|
campaign: Campaign;
|
|
29
32
|
warnings: Warning[];
|
|
@@ -4,8 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.Color = void 0;
|
|
7
|
-
let Color = exports.Color =
|
|
8
|
-
(function (Color) {
|
|
7
|
+
let Color = exports.Color = /*#__PURE__*/function (Color) {
|
|
9
8
|
Color["RED"] = "red";
|
|
10
9
|
Color["PINK"] = "pink";
|
|
11
10
|
Color["ORANGE"] = "orange";
|
|
@@ -16,4 +15,5 @@ let Color = exports.Color = void 0;
|
|
|
16
15
|
Color["BLUE"] = "blue";
|
|
17
16
|
Color["INDIGO"] = "indigo";
|
|
18
17
|
Color["PURPLE"] = "purple";
|
|
19
|
-
|
|
18
|
+
return Color;
|
|
19
|
+
}({});
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
export let Color
|
|
2
|
-
(function (Color) {
|
|
1
|
+
export let Color = /*#__PURE__*/function (Color) {
|
|
3
2
|
Color["RED"] = "red";
|
|
4
3
|
Color["PINK"] = "pink";
|
|
5
4
|
Color["ORANGE"] = "orange";
|
|
@@ -10,4 +9,5 @@ export let Color;
|
|
|
10
9
|
Color["BLUE"] = "blue";
|
|
11
10
|
Color["INDIGO"] = "indigo";
|
|
12
11
|
Color["PURPLE"] = "purple";
|
|
13
|
-
|
|
12
|
+
return Color;
|
|
13
|
+
}({});
|
|
@@ -4,13 +4,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.TableId = exports.OptionId = exports.LimitId = exports.AddOnId = void 0;
|
|
7
|
-
let TableId = exports.TableId =
|
|
8
|
-
(function (TableId) {
|
|
7
|
+
let TableId = exports.TableId = /*#__PURE__*/function (TableId) {
|
|
9
8
|
TableId["STANDARD"] = "standard";
|
|
10
9
|
TableId["AGENCY"] = "agency";
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
return TableId;
|
|
11
|
+
}({});
|
|
12
|
+
let OptionId = exports.OptionId = /*#__PURE__*/function (OptionId) {
|
|
14
13
|
OptionId["STARTER"] = "starter";
|
|
15
14
|
OptionId["CORE"] = "core";
|
|
16
15
|
OptionId["PREMIUM"] = "premium";
|
|
@@ -19,17 +18,18 @@ let OptionId = exports.OptionId = void 0;
|
|
|
19
18
|
OptionId["AGENCY_MEDIUM"] = "agency_medium";
|
|
20
19
|
OptionId["AGENCY_LARGE"] = "agency_large";
|
|
21
20
|
OptionId["AGENCY_HUGE"] = "agency_huge";
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
return OptionId;
|
|
22
|
+
}({});
|
|
23
|
+
let LimitId = exports.LimitId = /*#__PURE__*/function (LimitId) {
|
|
25
24
|
LimitId["STORIES"] = "stories";
|
|
26
25
|
LimitId["USERS"] = "users";
|
|
27
26
|
LimitId["SITES"] = "sites";
|
|
28
27
|
LimitId["CONTACTS"] = "contacts";
|
|
29
28
|
LimitId["EMAIL_SENDS"] = "email_sends";
|
|
30
29
|
LimitId["CUSTOM_SENDER_ADDRESSES"] = "custom_sender_addresses";
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
30
|
+
return LimitId;
|
|
31
|
+
}({});
|
|
32
|
+
let AddOnId = exports.AddOnId = /*#__PURE__*/function (AddOnId) {
|
|
34
33
|
AddOnId["SITE"] = "site";
|
|
35
|
-
|
|
34
|
+
return AddOnId;
|
|
35
|
+
}({});
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
export let TableId
|
|
2
|
-
(function (TableId) {
|
|
1
|
+
export let TableId = /*#__PURE__*/function (TableId) {
|
|
3
2
|
TableId["STANDARD"] = "standard";
|
|
4
3
|
TableId["AGENCY"] = "agency";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
return TableId;
|
|
5
|
+
}({});
|
|
6
|
+
export let OptionId = /*#__PURE__*/function (OptionId) {
|
|
8
7
|
OptionId["STARTER"] = "starter";
|
|
9
8
|
OptionId["CORE"] = "core";
|
|
10
9
|
OptionId["PREMIUM"] = "premium";
|
|
@@ -13,17 +12,18 @@ export let OptionId;
|
|
|
13
12
|
OptionId["AGENCY_MEDIUM"] = "agency_medium";
|
|
14
13
|
OptionId["AGENCY_LARGE"] = "agency_large";
|
|
15
14
|
OptionId["AGENCY_HUGE"] = "agency_huge";
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
return OptionId;
|
|
16
|
+
}({});
|
|
17
|
+
export let LimitId = /*#__PURE__*/function (LimitId) {
|
|
19
18
|
LimitId["STORIES"] = "stories";
|
|
20
19
|
LimitId["USERS"] = "users";
|
|
21
20
|
LimitId["SITES"] = "sites";
|
|
22
21
|
LimitId["CONTACTS"] = "contacts";
|
|
23
22
|
LimitId["EMAIL_SENDS"] = "email_sends";
|
|
24
23
|
LimitId["CUSTOM_SENDER_ADDRESSES"] = "custom_sender_addresses";
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
return LimitId;
|
|
25
|
+
}({});
|
|
26
|
+
export let AddOnId = /*#__PURE__*/function (AddOnId) {
|
|
28
27
|
AddOnId["SITE"] = "site";
|
|
29
|
-
|
|
28
|
+
return AddOnId;
|
|
29
|
+
}({});
|
|
@@ -4,11 +4,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.UnsubscribeReason = void 0;
|
|
7
|
-
let UnsubscribeReason = exports.UnsubscribeReason =
|
|
8
|
-
(function (UnsubscribeReason) {
|
|
7
|
+
let UnsubscribeReason = exports.UnsubscribeReason = /*#__PURE__*/function (UnsubscribeReason) {
|
|
9
8
|
UnsubscribeReason["UNKNOWN"] = "unknown";
|
|
10
9
|
UnsubscribeReason["UNWANTED"] = "unwanted";
|
|
11
10
|
UnsubscribeReason["SPAM"] = "spam";
|
|
12
11
|
UnsubscribeReason["NEVER_SIGNED_UP"] = "never_signed_up";
|
|
13
12
|
UnsubscribeReason["OTHER"] = "other";
|
|
14
|
-
|
|
13
|
+
return UnsubscribeReason;
|
|
14
|
+
}({});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export let UnsubscribeReason
|
|
2
|
-
(function (UnsubscribeReason) {
|
|
1
|
+
export let UnsubscribeReason = /*#__PURE__*/function (UnsubscribeReason) {
|
|
3
2
|
UnsubscribeReason["UNKNOWN"] = "unknown";
|
|
4
3
|
UnsubscribeReason["UNWANTED"] = "unwanted";
|
|
5
4
|
UnsubscribeReason["SPAM"] = "spam";
|
|
6
5
|
UnsubscribeReason["NEVER_SIGNED_UP"] = "never_signed_up";
|
|
7
6
|
UnsubscribeReason["OTHER"] = "other";
|
|
8
|
-
|
|
7
|
+
return UnsubscribeReason;
|
|
8
|
+
}({});
|
package/dist/http/types.cjs
CHANGED
|
@@ -4,20 +4,20 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.Method = exports.HttpCodes = void 0;
|
|
7
|
-
let HttpCodes = exports.HttpCodes =
|
|
8
|
-
(function (HttpCodes) {
|
|
7
|
+
let HttpCodes = exports.HttpCodes = /*#__PURE__*/function (HttpCodes) {
|
|
9
8
|
HttpCodes[HttpCodes["ACCEPTED"] = 202] = "ACCEPTED";
|
|
10
9
|
HttpCodes[HttpCodes["NO_CONTENT"] = 204] = "NO_CONTENT";
|
|
11
10
|
HttpCodes[HttpCodes["NOT_FOUND"] = 404] = "NOT_FOUND";
|
|
12
11
|
HttpCodes[HttpCodes["CONFLICT"] = 409] = "CONFLICT";
|
|
13
12
|
HttpCodes[HttpCodes["GONE"] = 410] = "GONE";
|
|
14
13
|
HttpCodes[HttpCodes["PRECONDITION_FAILED"] = 412] = "PRECONDITION_FAILED";
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
return HttpCodes;
|
|
15
|
+
}({});
|
|
16
|
+
let Method = exports.Method = /*#__PURE__*/function (Method) {
|
|
18
17
|
Method["DELETE"] = "DELETE";
|
|
19
18
|
Method["GET"] = "GET";
|
|
20
19
|
Method["PATCH"] = "PATCH";
|
|
21
20
|
Method["POST"] = "POST";
|
|
22
21
|
Method["PUT"] = "PUT";
|
|
23
|
-
|
|
22
|
+
return Method;
|
|
23
|
+
}({});
|
package/dist/http/types.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
export let HttpCodes
|
|
2
|
-
(function (HttpCodes) {
|
|
1
|
+
export let HttpCodes = /*#__PURE__*/function (HttpCodes) {
|
|
3
2
|
HttpCodes[HttpCodes["ACCEPTED"] = 202] = "ACCEPTED";
|
|
4
3
|
HttpCodes[HttpCodes["NO_CONTENT"] = 204] = "NO_CONTENT";
|
|
5
4
|
HttpCodes[HttpCodes["NOT_FOUND"] = 404] = "NOT_FOUND";
|
|
6
5
|
HttpCodes[HttpCodes["CONFLICT"] = 409] = "CONFLICT";
|
|
7
6
|
HttpCodes[HttpCodes["GONE"] = 410] = "GONE";
|
|
8
7
|
HttpCodes[HttpCodes["PRECONDITION_FAILED"] = 412] = "PRECONDITION_FAILED";
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
return HttpCodes;
|
|
9
|
+
}({});
|
|
10
|
+
export let Method = /*#__PURE__*/function (Method) {
|
|
12
11
|
Method["DELETE"] = "DELETE";
|
|
13
12
|
Method["GET"] = "GET";
|
|
14
13
|
Method["PATCH"] = "PATCH";
|
|
15
14
|
Method["POST"] = "POST";
|
|
16
15
|
Method["PUT"] = "PUT";
|
|
17
|
-
|
|
16
|
+
return Method;
|
|
17
|
+
}({});
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.BillingCycle = void 0;
|
|
7
|
-
let BillingCycle = exports.BillingCycle =
|
|
8
|
-
(function (BillingCycle) {
|
|
7
|
+
let BillingCycle = exports.BillingCycle = /*#__PURE__*/function (BillingCycle) {
|
|
9
8
|
BillingCycle["YEAR"] = "year";
|
|
10
9
|
BillingCycle["MONTH"] = "month";
|
|
11
|
-
|
|
10
|
+
return BillingCycle;
|
|
11
|
+
}({});
|
package/dist/types/Campaign.cjs
CHANGED
|
@@ -8,48 +8,48 @@ var _SenderDomain = require("./SenderDomain.cjs");
|
|
|
8
8
|
let Campaign = exports.Campaign = void 0;
|
|
9
9
|
(function (_Campaign) {
|
|
10
10
|
const SenderDomainVerificationFlow = _Campaign.SenderDomainVerificationFlow = _SenderDomain.SenderDomain.VerificationFlowVersion;
|
|
11
|
-
let LifecycleStatus
|
|
12
|
-
(function (LifecycleStatus) {
|
|
11
|
+
let LifecycleStatus = /*#__PURE__*/function (LifecycleStatus) {
|
|
13
12
|
LifecycleStatus["DRAFT"] = "draft";
|
|
14
13
|
LifecycleStatus["SCHEDULED"] = "scheduled";
|
|
15
14
|
LifecycleStatus["PENDING"] = "pending";
|
|
16
15
|
LifecycleStatus["SENT"] = "sent";
|
|
17
|
-
|
|
16
|
+
return LifecycleStatus;
|
|
17
|
+
}({});
|
|
18
18
|
_Campaign.LifecycleStatus = LifecycleStatus;
|
|
19
|
-
let StoryAlignment
|
|
20
|
-
(function (StoryAlignment) {
|
|
19
|
+
let StoryAlignment = /*#__PURE__*/function (StoryAlignment) {
|
|
21
20
|
StoryAlignment["CENTER"] = "center";
|
|
22
21
|
StoryAlignment["LEFT"] = "left";
|
|
23
22
|
StoryAlignment["RIGHT"] = "right";
|
|
24
|
-
|
|
23
|
+
return StoryAlignment;
|
|
24
|
+
}({});
|
|
25
25
|
_Campaign.StoryAlignment = StoryAlignment;
|
|
26
|
-
let StoryAppearance
|
|
27
|
-
(function (StoryAppearance) {
|
|
26
|
+
let StoryAppearance = /*#__PURE__*/function (StoryAppearance) {
|
|
28
27
|
StoryAppearance["INTRO"] = "intro";
|
|
29
28
|
StoryAppearance["FULL"] = "full";
|
|
30
|
-
|
|
29
|
+
return StoryAppearance;
|
|
30
|
+
}({});
|
|
31
31
|
_Campaign.StoryAppearance = StoryAppearance;
|
|
32
|
-
let StoryHeaderFooter
|
|
33
|
-
(function (StoryHeaderFooter) {
|
|
32
|
+
let StoryHeaderFooter = /*#__PURE__*/function (StoryHeaderFooter) {
|
|
34
33
|
StoryHeaderFooter["NONE"] = "none";
|
|
35
34
|
StoryHeaderFooter["STANDARD"] = "standard";
|
|
36
35
|
StoryHeaderFooter["FULL"] = "full";
|
|
37
|
-
|
|
36
|
+
return StoryHeaderFooter;
|
|
37
|
+
}({});
|
|
38
38
|
_Campaign.StoryHeaderFooter = StoryHeaderFooter;
|
|
39
|
-
let SenderDomainVerificationStatus
|
|
40
|
-
(function (SenderDomainVerificationStatus) {
|
|
39
|
+
let SenderDomainVerificationStatus = /*#__PURE__*/function (SenderDomainVerificationStatus) {
|
|
41
40
|
SenderDomainVerificationStatus["UNKNOWN"] = "unknown";
|
|
42
41
|
SenderDomainVerificationStatus["VALID"] = "valid";
|
|
43
42
|
SenderDomainVerificationStatus["INVALID"] = "invalid";
|
|
44
43
|
SenderDomainVerificationStatus["NOT_APPLICABLE"] = "not-applicable";
|
|
45
|
-
|
|
44
|
+
return SenderDomainVerificationStatus;
|
|
45
|
+
}({});
|
|
46
46
|
_Campaign.SenderDomainVerificationStatus = SenderDomainVerificationStatus;
|
|
47
|
-
let ClickTrackingVersion
|
|
48
|
-
(function (ClickTrackingVersion) {
|
|
47
|
+
let ClickTrackingVersion = /*#__PURE__*/function (ClickTrackingVersion) {
|
|
49
48
|
ClickTrackingVersion[ClickTrackingVersion["DEPRECATED"] = 1] = "DEPRECATED";
|
|
50
49
|
ClickTrackingVersion[ClickTrackingVersion["ENHANCED"] = 2] = "ENHANCED";
|
|
51
50
|
ClickTrackingVersion[ClickTrackingVersion["INHOUSE"] = 3] = "INHOUSE";
|
|
52
|
-
|
|
51
|
+
return ClickTrackingVersion;
|
|
52
|
+
}({});
|
|
53
53
|
_Campaign.ClickTrackingVersion = ClickTrackingVersion;
|
|
54
54
|
function isDraft(arg) {
|
|
55
55
|
if (typeof arg === 'object') {
|
package/dist/types/Campaign.js
CHANGED
|
@@ -2,48 +2,48 @@ import { SenderDomain } from "./SenderDomain.js";
|
|
|
2
2
|
export let Campaign;
|
|
3
3
|
(function (_Campaign) {
|
|
4
4
|
const SenderDomainVerificationFlow = _Campaign.SenderDomainVerificationFlow = SenderDomain.VerificationFlowVersion;
|
|
5
|
-
let LifecycleStatus
|
|
6
|
-
(function (LifecycleStatus) {
|
|
5
|
+
let LifecycleStatus = /*#__PURE__*/function (LifecycleStatus) {
|
|
7
6
|
LifecycleStatus["DRAFT"] = "draft";
|
|
8
7
|
LifecycleStatus["SCHEDULED"] = "scheduled";
|
|
9
8
|
LifecycleStatus["PENDING"] = "pending";
|
|
10
9
|
LifecycleStatus["SENT"] = "sent";
|
|
11
|
-
|
|
10
|
+
return LifecycleStatus;
|
|
11
|
+
}({});
|
|
12
12
|
_Campaign.LifecycleStatus = LifecycleStatus;
|
|
13
|
-
let StoryAlignment
|
|
14
|
-
(function (StoryAlignment) {
|
|
13
|
+
let StoryAlignment = /*#__PURE__*/function (StoryAlignment) {
|
|
15
14
|
StoryAlignment["CENTER"] = "center";
|
|
16
15
|
StoryAlignment["LEFT"] = "left";
|
|
17
16
|
StoryAlignment["RIGHT"] = "right";
|
|
18
|
-
|
|
17
|
+
return StoryAlignment;
|
|
18
|
+
}({});
|
|
19
19
|
_Campaign.StoryAlignment = StoryAlignment;
|
|
20
|
-
let StoryAppearance
|
|
21
|
-
(function (StoryAppearance) {
|
|
20
|
+
let StoryAppearance = /*#__PURE__*/function (StoryAppearance) {
|
|
22
21
|
StoryAppearance["INTRO"] = "intro";
|
|
23
22
|
StoryAppearance["FULL"] = "full";
|
|
24
|
-
|
|
23
|
+
return StoryAppearance;
|
|
24
|
+
}({});
|
|
25
25
|
_Campaign.StoryAppearance = StoryAppearance;
|
|
26
|
-
let StoryHeaderFooter
|
|
27
|
-
(function (StoryHeaderFooter) {
|
|
26
|
+
let StoryHeaderFooter = /*#__PURE__*/function (StoryHeaderFooter) {
|
|
28
27
|
StoryHeaderFooter["NONE"] = "none";
|
|
29
28
|
StoryHeaderFooter["STANDARD"] = "standard";
|
|
30
29
|
StoryHeaderFooter["FULL"] = "full";
|
|
31
|
-
|
|
30
|
+
return StoryHeaderFooter;
|
|
31
|
+
}({});
|
|
32
32
|
_Campaign.StoryHeaderFooter = StoryHeaderFooter;
|
|
33
|
-
let SenderDomainVerificationStatus
|
|
34
|
-
(function (SenderDomainVerificationStatus) {
|
|
33
|
+
let SenderDomainVerificationStatus = /*#__PURE__*/function (SenderDomainVerificationStatus) {
|
|
35
34
|
SenderDomainVerificationStatus["UNKNOWN"] = "unknown";
|
|
36
35
|
SenderDomainVerificationStatus["VALID"] = "valid";
|
|
37
36
|
SenderDomainVerificationStatus["INVALID"] = "invalid";
|
|
38
37
|
SenderDomainVerificationStatus["NOT_APPLICABLE"] = "not-applicable";
|
|
39
|
-
|
|
38
|
+
return SenderDomainVerificationStatus;
|
|
39
|
+
}({});
|
|
40
40
|
_Campaign.SenderDomainVerificationStatus = SenderDomainVerificationStatus;
|
|
41
|
-
let ClickTrackingVersion
|
|
42
|
-
(function (ClickTrackingVersion) {
|
|
41
|
+
let ClickTrackingVersion = /*#__PURE__*/function (ClickTrackingVersion) {
|
|
43
42
|
ClickTrackingVersion[ClickTrackingVersion["DEPRECATED"] = 1] = "DEPRECATED";
|
|
44
43
|
ClickTrackingVersion[ClickTrackingVersion["ENHANCED"] = 2] = "ENHANCED";
|
|
45
44
|
ClickTrackingVersion[ClickTrackingVersion["INHOUSE"] = 3] = "INHOUSE";
|
|
46
|
-
|
|
45
|
+
return ClickTrackingVersion;
|
|
46
|
+
}({});
|
|
47
47
|
_Campaign.ClickTrackingVersion = ClickTrackingVersion;
|
|
48
48
|
function isDraft(arg) {
|
|
49
49
|
if (typeof arg === 'object') {
|
package/dist/types/Category.cjs
CHANGED
|
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.CategoryRef = exports.Category = void 0;
|
|
7
7
|
let CategoryRef = exports.CategoryRef = void 0;
|
|
8
|
-
(function (_CategoryRef) {})(CategoryRef || (exports.CategoryRef = CategoryRef = {}));
|
|
9
8
|
let Category = exports.Category = void 0;
|
|
10
9
|
(function (_Category) {
|
|
11
10
|
function isTranslated(category, locale) {
|
package/dist/types/Category.js
CHANGED
package/dist/types/Contact.cjs
CHANGED
|
@@ -6,21 +6,20 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.Contact = void 0;
|
|
7
7
|
let Contact = exports.Contact = void 0;
|
|
8
8
|
(function (_Contact) {
|
|
9
|
-
let Type
|
|
10
|
-
(function (Type) {
|
|
9
|
+
let Type = /*#__PURE__*/function (Type) {
|
|
11
10
|
Type["PERSON"] = "person";
|
|
12
11
|
Type["ORGANISATION"] = "organisation";
|
|
13
|
-
|
|
12
|
+
return Type;
|
|
13
|
+
}({});
|
|
14
14
|
_Contact.Type = Type;
|
|
15
|
-
let Gender
|
|
16
|
-
(function (Gender) {
|
|
15
|
+
let Gender = /*#__PURE__*/function (Gender) {
|
|
17
16
|
Gender["MALE"] = "male";
|
|
18
17
|
Gender["FEMALE"] = "female";
|
|
19
18
|
Gender["UNSPECIFIED"] = "unspecified";
|
|
20
|
-
|
|
19
|
+
return Gender;
|
|
20
|
+
}({});
|
|
21
21
|
_Contact.Gender = Gender;
|
|
22
|
-
let Periodicity
|
|
23
|
-
(function (Periodicity) {
|
|
22
|
+
let Periodicity = /*#__PURE__*/function (Periodicity) {
|
|
24
23
|
Periodicity["DAILY"] = "daily";
|
|
25
24
|
Periodicity["WEEKDAYS"] = "weekdays";
|
|
26
25
|
Periodicity["WEEKLY"] = "weekly";
|
|
@@ -31,10 +30,10 @@ let Contact = exports.Contact = void 0;
|
|
|
31
30
|
Periodicity["ANNUALLY"] = "annually";
|
|
32
31
|
Periodicity["BI_ANUALLY"] = "bi-annually";
|
|
33
32
|
Periodicity["SEMI_ANNUALLY"] = "semi-annually";
|
|
34
|
-
|
|
33
|
+
return Periodicity;
|
|
34
|
+
}({});
|
|
35
35
|
_Contact.Periodicity = Periodicity;
|
|
36
|
-
let MediumType
|
|
37
|
-
(function (MediumType) {
|
|
36
|
+
let MediumType = /*#__PURE__*/function (MediumType) {
|
|
38
37
|
MediumType["WIRE"] = "wire";
|
|
39
38
|
MediumType["PRINT"] = "print";
|
|
40
39
|
MediumType["RADIO"] = "radio";
|
|
@@ -52,10 +51,10 @@ let Contact = exports.Contact = void 0;
|
|
|
52
51
|
MediumType["PODCAST"] = "podcast";
|
|
53
52
|
MediumType["NEWSLETTER"] = "newsletter";
|
|
54
53
|
MediumType["NEWS_SITE"] = "news website";
|
|
55
|
-
|
|
54
|
+
return MediumType;
|
|
55
|
+
}({});
|
|
56
56
|
_Contact.MediumType = MediumType;
|
|
57
|
-
let SocialNetwork
|
|
58
|
-
(function (SocialNetwork) {
|
|
57
|
+
let SocialNetwork = /*#__PURE__*/function (SocialNetwork) {
|
|
59
58
|
SocialNetwork["DISCORD"] = "discord";
|
|
60
59
|
SocialNetwork["FACEBOOK"] = "facebook";
|
|
61
60
|
SocialNetwork["INSTAGRAM"] = "instagram";
|
|
@@ -67,15 +66,16 @@ let Contact = exports.Contact = void 0;
|
|
|
67
66
|
SocialNetwork["TWITCH"] = "twitch";
|
|
68
67
|
SocialNetwork["TWITTER"] = "twitter";
|
|
69
68
|
SocialNetwork["YOUTUBE"] = "youtube";
|
|
70
|
-
|
|
69
|
+
return SocialNetwork;
|
|
70
|
+
}({});
|
|
71
71
|
_Contact.SocialNetwork = SocialNetwork;
|
|
72
72
|
let PhoneNumber;
|
|
73
73
|
(function (_PhoneNumber) {
|
|
74
|
-
let Type
|
|
75
|
-
(function (Type) {
|
|
74
|
+
let Type = /*#__PURE__*/function (Type) {
|
|
76
75
|
Type["TELEPHONE"] = "tel";
|
|
77
76
|
Type["CELLPHONE"] = "cell";
|
|
78
|
-
|
|
77
|
+
return Type;
|
|
78
|
+
}({});
|
|
79
79
|
_PhoneNumber.Type = Type;
|
|
80
80
|
})(PhoneNumber || (PhoneNumber = _Contact.PhoneNumber || (_Contact.PhoneNumber = {})));
|
|
81
81
|
function isPerson(arg) {
|
package/dist/types/Contact.js
CHANGED
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
export let Contact;
|
|
2
2
|
(function (_Contact) {
|
|
3
|
-
let Type
|
|
4
|
-
(function (Type) {
|
|
3
|
+
let Type = /*#__PURE__*/function (Type) {
|
|
5
4
|
Type["PERSON"] = "person";
|
|
6
5
|
Type["ORGANISATION"] = "organisation";
|
|
7
|
-
|
|
6
|
+
return Type;
|
|
7
|
+
}({});
|
|
8
8
|
_Contact.Type = Type;
|
|
9
|
-
let Gender
|
|
10
|
-
(function (Gender) {
|
|
9
|
+
let Gender = /*#__PURE__*/function (Gender) {
|
|
11
10
|
Gender["MALE"] = "male";
|
|
12
11
|
Gender["FEMALE"] = "female";
|
|
13
12
|
Gender["UNSPECIFIED"] = "unspecified";
|
|
14
|
-
|
|
13
|
+
return Gender;
|
|
14
|
+
}({});
|
|
15
15
|
_Contact.Gender = Gender;
|
|
16
|
-
let Periodicity
|
|
17
|
-
(function (Periodicity) {
|
|
16
|
+
let Periodicity = /*#__PURE__*/function (Periodicity) {
|
|
18
17
|
Periodicity["DAILY"] = "daily";
|
|
19
18
|
Periodicity["WEEKDAYS"] = "weekdays";
|
|
20
19
|
Periodicity["WEEKLY"] = "weekly";
|
|
@@ -25,10 +24,10 @@ export let Contact;
|
|
|
25
24
|
Periodicity["ANNUALLY"] = "annually";
|
|
26
25
|
Periodicity["BI_ANUALLY"] = "bi-annually";
|
|
27
26
|
Periodicity["SEMI_ANNUALLY"] = "semi-annually";
|
|
28
|
-
|
|
27
|
+
return Periodicity;
|
|
28
|
+
}({});
|
|
29
29
|
_Contact.Periodicity = Periodicity;
|
|
30
|
-
let MediumType
|
|
31
|
-
(function (MediumType) {
|
|
30
|
+
let MediumType = /*#__PURE__*/function (MediumType) {
|
|
32
31
|
MediumType["WIRE"] = "wire";
|
|
33
32
|
MediumType["PRINT"] = "print";
|
|
34
33
|
MediumType["RADIO"] = "radio";
|
|
@@ -46,10 +45,10 @@ export let Contact;
|
|
|
46
45
|
MediumType["PODCAST"] = "podcast";
|
|
47
46
|
MediumType["NEWSLETTER"] = "newsletter";
|
|
48
47
|
MediumType["NEWS_SITE"] = "news website";
|
|
49
|
-
|
|
48
|
+
return MediumType;
|
|
49
|
+
}({});
|
|
50
50
|
_Contact.MediumType = MediumType;
|
|
51
|
-
let SocialNetwork
|
|
52
|
-
(function (SocialNetwork) {
|
|
51
|
+
let SocialNetwork = /*#__PURE__*/function (SocialNetwork) {
|
|
53
52
|
SocialNetwork["DISCORD"] = "discord";
|
|
54
53
|
SocialNetwork["FACEBOOK"] = "facebook";
|
|
55
54
|
SocialNetwork["INSTAGRAM"] = "instagram";
|
|
@@ -61,15 +60,16 @@ export let Contact;
|
|
|
61
60
|
SocialNetwork["TWITCH"] = "twitch";
|
|
62
61
|
SocialNetwork["TWITTER"] = "twitter";
|
|
63
62
|
SocialNetwork["YOUTUBE"] = "youtube";
|
|
64
|
-
|
|
63
|
+
return SocialNetwork;
|
|
64
|
+
}({});
|
|
65
65
|
_Contact.SocialNetwork = SocialNetwork;
|
|
66
66
|
let PhoneNumber;
|
|
67
67
|
(function (_PhoneNumber) {
|
|
68
|
-
let Type
|
|
69
|
-
(function (Type) {
|
|
68
|
+
let Type = /*#__PURE__*/function (Type) {
|
|
70
69
|
Type["TELEPHONE"] = "tel";
|
|
71
70
|
Type["CELLPHONE"] = "cell";
|
|
72
|
-
|
|
71
|
+
return Type;
|
|
72
|
+
}({});
|
|
73
73
|
_PhoneNumber.Type = Type;
|
|
74
74
|
})(PhoneNumber || (PhoneNumber = _Contact.PhoneNumber || (_Contact.PhoneNumber = {})));
|
|
75
75
|
function isPerson(arg) {
|