@prezly/sdk 23.0.0 → 23.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.
Files changed (91) hide show
  1. package/dist/api/DeferredJobsApiClient.cjs +24 -20
  2. package/dist/api/DeferredJobsApiClient.js +24 -20
  3. package/dist/api/constants.cjs +1 -1
  4. package/dist/api/constants.js +1 -1
  5. package/dist/endpoints/Billing/types.cjs +6 -6
  6. package/dist/endpoints/Billing/types.js +6 -6
  7. package/dist/endpoints/ContactTagGroups/types.cjs +3 -3
  8. package/dist/endpoints/ContactTagGroups/types.js +3 -3
  9. package/dist/endpoints/PricingTables/types.cjs +12 -12
  10. package/dist/endpoints/PricingTables/types.js +12 -12
  11. package/dist/endpoints/Subscriptions/types.cjs +3 -3
  12. package/dist/endpoints/Subscriptions/types.js +3 -3
  13. package/dist/http/types.cjs +6 -6
  14. package/dist/http/types.js +6 -6
  15. package/dist/types/BillingCycle.cjs +3 -3
  16. package/dist/types/BillingCycle.js +3 -3
  17. package/dist/types/Campaign.cjs +18 -18
  18. package/dist/types/Campaign.js +18 -18
  19. package/dist/types/Category.cjs +0 -1
  20. package/dist/types/Category.js +0 -1
  21. package/dist/types/Contact.cjs +18 -18
  22. package/dist/types/Contact.js +18 -18
  23. package/dist/types/ContactDuplicateSuggestion.cjs +3 -3
  24. package/dist/types/ContactDuplicateSuggestion.js +3 -4
  25. package/dist/types/ContactTag.cjs +1 -2
  26. package/dist/types/ContactTag.js +1 -2
  27. package/dist/types/ContactsExport.cjs +3 -3
  28. package/dist/types/ContactsExport.js +3 -3
  29. package/dist/types/ContactsScope.cjs +3 -3
  30. package/dist/types/ContactsScope.js +3 -3
  31. package/dist/types/CoverageEntry.cjs +9 -9
  32. package/dist/types/CoverageEntry.js +9 -9
  33. package/dist/types/CoverageIntegration.cjs +3 -3
  34. package/dist/types/CoverageIntegration.js +3 -3
  35. package/dist/types/CoverageIntegrationRun.cjs +3 -3
  36. package/dist/types/CoverageIntegrationRun.js +3 -3
  37. package/dist/types/Culture.cjs +3 -3
  38. package/dist/types/Culture.d.ts +5 -0
  39. package/dist/types/Culture.js +3 -3
  40. package/dist/types/Currency.cjs +3 -3
  41. package/dist/types/Currency.js +3 -3
  42. package/dist/types/EmailRecipient.cjs +3 -3
  43. package/dist/types/EmailRecipient.js +3 -3
  44. package/dist/types/JobState.cjs +3 -3
  45. package/dist/types/JobState.js +3 -3
  46. package/dist/types/Language.cjs +1 -0
  47. package/dist/types/Language.d.ts +4 -0
  48. package/dist/types/Language.js +1 -0
  49. package/dist/types/License.cjs +9 -9
  50. package/dist/types/License.js +9 -9
  51. package/dist/types/Newsroom.cjs +12 -12
  52. package/dist/types/Newsroom.js +12 -12
  53. package/dist/types/NewsroomDomain.cjs +6 -6
  54. package/dist/types/NewsroomDomain.js +6 -6
  55. package/dist/types/NewsroomGallery.cjs +6 -6
  56. package/dist/types/NewsroomGallery.js +6 -6
  57. package/dist/types/NewsroomTheme.cjs +7 -8
  58. package/dist/types/NewsroomTheme.js +7 -8
  59. package/dist/types/NewsroomWebhook.cjs +3 -3
  60. package/dist/types/NewsroomWebhook.js +3 -3
  61. package/dist/types/NotificationSubscription.cjs +3 -3
  62. package/dist/types/NotificationSubscription.js +3 -3
  63. package/dist/types/Permissions.cjs +3 -3
  64. package/dist/types/Permissions.js +3 -3
  65. package/dist/types/Plan.cjs +10 -10
  66. package/dist/types/Plan.js +11 -11
  67. package/dist/types/Price.cjs +6 -6
  68. package/dist/types/Price.js +6 -6
  69. package/dist/types/PrivacyRequest.cjs +6 -6
  70. package/dist/types/PrivacyRequest.js +6 -6
  71. package/dist/types/SenderAddress.cjs +3 -3
  72. package/dist/types/SenderAddress.js +3 -3
  73. package/dist/types/SenderDomain.cjs +3 -3
  74. package/dist/types/SenderDomain.js +3 -3
  75. package/dist/types/SortOrder.cjs +3 -3
  76. package/dist/types/SortOrder.js +3 -3
  77. package/dist/types/Story.cjs +12 -12
  78. package/dist/types/Story.js +12 -12
  79. package/dist/types/User.cjs +6 -6
  80. package/dist/types/User.js +6 -6
  81. package/dist/types/common/Notification.cjs +3 -3
  82. package/dist/types/common/Notification.js +3 -3
  83. package/dist/types/common/OEmbedInfo.cjs +3 -3
  84. package/dist/types/common/OEmbedInfo.js +3 -3
  85. package/dist/types/common/Pagination.cjs +3 -3
  86. package/dist/types/common/Pagination.js +3 -3
  87. package/dist/types/common/Query.js +0 -1
  88. package/dist/types/index.cjs +11 -0
  89. package/dist/types/index.d.ts +1 -0
  90. package/dist/types/index.js +1 -0
  91. package/package.json +1 -1
@@ -15,27 +15,31 @@ async function sleep(milliseconds) {
15
15
  }
16
16
  function handleDeferredJob(api, request) {
17
17
  return new _progressPromise.ProgressPromise(async (resolve, reject, update) => {
18
- const response = await request;
19
- if (response.status === _index.HttpCodes.ACCEPTED && (0, _index.isDeferredJobResponse)(response.payload)) {
20
- const id = response.payload.progress.id;
21
- do {
22
- const response = await api.get(`${_routing.routing.jobsUrl}/${id}`, {
23
- fetch
24
- });
25
- const state = response.payload.job.state;
26
- if (state.status === _index2.JobStatus.RESOLVED) {
27
- resolve(state.value);
28
- return;
29
- }
30
- if (state.status === _index2.JobStatus.REJECTED) {
31
- reject(state.value);
32
- return;
33
- }
34
- update(state.progress, state.value);
35
- await sleep(JOB_STATUS_POLLING_INTERVAL);
36
- } while (true); // eslint-disable-line no-constant-condition
18
+ try {
19
+ const response = await request;
20
+ if (response.status === _index.HttpCodes.ACCEPTED && (0, _index.isDeferredJobResponse)(response.payload)) {
21
+ const id = response.payload.progress.id;
22
+ do {
23
+ const response = await api.get(`${_routing.routing.jobsUrl}/${id}`, {
24
+ fetch
25
+ });
26
+ const state = response.payload.job.state;
27
+ if (state.status === _index2.JobStatus.RESOLVED) {
28
+ resolve(state.value);
29
+ return;
30
+ }
31
+ if (state.status === _index2.JobStatus.REJECTED) {
32
+ reject(state.value);
33
+ return;
34
+ }
35
+ update(state.progress, state.value);
36
+ await sleep(JOB_STATUS_POLLING_INTERVAL);
37
+ } while (true); // eslint-disable-line no-constant-condition
38
+ }
39
+ resolve(response.payload);
40
+ } catch (error) {
41
+ reject(error);
37
42
  }
38
- resolve(response.payload);
39
43
  });
40
44
  }
41
45
  function createDeferredJobsApiClient(api) {
@@ -9,27 +9,31 @@ async function sleep(milliseconds) {
9
9
  }
10
10
  function handleDeferredJob(api, request) {
11
11
  return new ProgressPromise(async (resolve, reject, update) => {
12
- const response = await request;
13
- if (response.status === HttpCodes.ACCEPTED && isDeferredJobResponse(response.payload)) {
14
- const id = response.payload.progress.id;
15
- do {
16
- const response = await api.get(`${routing.jobsUrl}/${id}`, {
17
- fetch
18
- });
19
- const state = response.payload.job.state;
20
- if (state.status === JobStatus.RESOLVED) {
21
- resolve(state.value);
22
- return;
23
- }
24
- if (state.status === JobStatus.REJECTED) {
25
- reject(state.value);
26
- return;
27
- }
28
- update(state.progress, state.value);
29
- await sleep(JOB_STATUS_POLLING_INTERVAL);
30
- } while (true); // eslint-disable-line no-constant-condition
12
+ try {
13
+ const response = await request;
14
+ if (response.status === HttpCodes.ACCEPTED && isDeferredJobResponse(response.payload)) {
15
+ const id = response.payload.progress.id;
16
+ do {
17
+ const response = await api.get(`${routing.jobsUrl}/${id}`, {
18
+ fetch
19
+ });
20
+ const state = response.payload.job.state;
21
+ if (state.status === JobStatus.RESOLVED) {
22
+ resolve(state.value);
23
+ return;
24
+ }
25
+ if (state.status === JobStatus.REJECTED) {
26
+ reject(state.value);
27
+ return;
28
+ }
29
+ update(state.progress, state.value);
30
+ await sleep(JOB_STATUS_POLLING_INTERVAL);
31
+ } while (true); // eslint-disable-line no-constant-condition
32
+ }
33
+ resolve(response.payload);
34
+ } catch (error) {
35
+ reject(error);
31
36
  }
32
- resolve(response.payload);
33
37
  });
34
38
  }
35
39
  export function createDeferredJobsApiClient(api) {
@@ -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 = "22.10.1";
7
+ const VERSION = "23.0.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})`;
@@ -1,3 +1,3 @@
1
- const VERSION = "22.10.1";
1
+ const VERSION = "23.0.1";
2
2
  const URL = 'https://github.com/prezly/javascript-sdk';
3
3
  export const DEFAULT_USER_AGENT = `prezly-javascript-sdk/${VERSION} (+${URL})`;
@@ -4,14 +4,14 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.SignupPlan = exports.SignupCurrency = void 0;
7
- let SignupPlan = exports.SignupPlan = void 0;
8
- (function (SignupPlan) {
7
+ let SignupPlan = exports.SignupPlan = /*#__PURE__*/function (SignupPlan) {
9
8
  SignupPlan["STARTER"] = "starter";
10
9
  SignupPlan["CORE"] = "core";
11
10
  SignupPlan["PREMIUM"] = "premium";
12
- })(SignupPlan || (exports.SignupPlan = SignupPlan = {}));
13
- let SignupCurrency = exports.SignupCurrency = void 0;
14
- (function (SignupCurrency) {
11
+ return SignupPlan;
12
+ }({});
13
+ let SignupCurrency = exports.SignupCurrency = /*#__PURE__*/function (SignupCurrency) {
15
14
  SignupCurrency["EUR"] = "eur";
16
15
  SignupCurrency["USD"] = "usd";
17
- })(SignupCurrency || (exports.SignupCurrency = SignupCurrency = {}));
16
+ return SignupCurrency;
17
+ }({});
@@ -1,11 +1,11 @@
1
- export let SignupPlan;
2
- (function (SignupPlan) {
1
+ export let SignupPlan = /*#__PURE__*/function (SignupPlan) {
3
2
  SignupPlan["STARTER"] = "starter";
4
3
  SignupPlan["CORE"] = "core";
5
4
  SignupPlan["PREMIUM"] = "premium";
6
- })(SignupPlan || (SignupPlan = {}));
7
- export let SignupCurrency;
8
- (function (SignupCurrency) {
5
+ return SignupPlan;
6
+ }({});
7
+ export let SignupCurrency = /*#__PURE__*/function (SignupCurrency) {
9
8
  SignupCurrency["EUR"] = "eur";
10
9
  SignupCurrency["USD"] = "usd";
11
- })(SignupCurrency || (SignupCurrency = {}));
10
+ return SignupCurrency;
11
+ }({});
@@ -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 = void 0;
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
- })(Color || (exports.Color = Color = {}));
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
- })(Color || (Color = {}));
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 = void 0;
8
- (function (TableId) {
7
+ let TableId = exports.TableId = /*#__PURE__*/function (TableId) {
9
8
  TableId["STANDARD"] = "standard";
10
9
  TableId["AGENCY"] = "agency";
11
- })(TableId || (exports.TableId = TableId = {}));
12
- let OptionId = exports.OptionId = void 0;
13
- (function (OptionId) {
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
- })(OptionId || (exports.OptionId = OptionId = {}));
23
- let LimitId = exports.LimitId = void 0;
24
- (function (LimitId) {
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
- })(LimitId || (exports.LimitId = LimitId = {}));
32
- let AddOnId = exports.AddOnId = void 0;
33
- (function (AddOnId) {
30
+ return LimitId;
31
+ }({});
32
+ let AddOnId = exports.AddOnId = /*#__PURE__*/function (AddOnId) {
34
33
  AddOnId["SITE"] = "site";
35
- })(AddOnId || (exports.AddOnId = AddOnId = {}));
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
- })(TableId || (TableId = {}));
6
- export let OptionId;
7
- (function (OptionId) {
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
- })(OptionId || (OptionId = {}));
17
- export let LimitId;
18
- (function (LimitId) {
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
- })(LimitId || (LimitId = {}));
26
- export let AddOnId;
27
- (function (AddOnId) {
24
+ return LimitId;
25
+ }({});
26
+ export let AddOnId = /*#__PURE__*/function (AddOnId) {
28
27
  AddOnId["SITE"] = "site";
29
- })(AddOnId || (AddOnId = {}));
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 = void 0;
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
- })(UnsubscribeReason || (exports.UnsubscribeReason = UnsubscribeReason = {}));
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
- })(UnsubscribeReason || (UnsubscribeReason = {}));
7
+ return UnsubscribeReason;
8
+ }({});
@@ -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 = void 0;
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
- })(HttpCodes || (exports.HttpCodes = HttpCodes = {}));
16
- let Method = exports.Method = void 0;
17
- (function (Method) {
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
- })(Method || (exports.Method = Method = {}));
22
+ return Method;
23
+ }({});
@@ -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
- })(HttpCodes || (HttpCodes = {}));
10
- export let Method;
11
- (function (Method) {
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
- })(Method || (Method = {}));
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 = void 0;
8
- (function (BillingCycle) {
7
+ let BillingCycle = exports.BillingCycle = /*#__PURE__*/function (BillingCycle) {
9
8
  BillingCycle["YEAR"] = "year";
10
9
  BillingCycle["MONTH"] = "month";
11
- })(BillingCycle || (exports.BillingCycle = BillingCycle = {}));
10
+ return BillingCycle;
11
+ }({});
@@ -1,5 +1,5 @@
1
- export let BillingCycle;
2
- (function (BillingCycle) {
1
+ export let BillingCycle = /*#__PURE__*/function (BillingCycle) {
3
2
  BillingCycle["YEAR"] = "year";
4
3
  BillingCycle["MONTH"] = "month";
5
- })(BillingCycle || (BillingCycle = {}));
4
+ return BillingCycle;
5
+ }({});
@@ -8,47 +8,47 @@ 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
- })(LifecycleStatus || (LifecycleStatus = {}));
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
- })(StoryAlignment || (StoryAlignment = {}));
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
- })(StoryAppearance || (StoryAppearance = {}));
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
- })(StoryHeaderFooter || (StoryHeaderFooter = {}));
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
- })(SenderDomainVerificationStatus || (SenderDomainVerificationStatus = {}));
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
- })(ClickTrackingVersion || (ClickTrackingVersion = {}));
50
+ return ClickTrackingVersion;
51
+ }({});
52
52
  _Campaign.ClickTrackingVersion = ClickTrackingVersion;
53
53
  function isDraft(arg) {
54
54
  if (typeof arg === 'object') {
@@ -2,47 +2,47 @@ 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
- })(LifecycleStatus || (LifecycleStatus = {}));
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
- })(StoryAlignment || (StoryAlignment = {}));
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
- })(StoryAppearance || (StoryAppearance = {}));
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
- })(StoryHeaderFooter || (StoryHeaderFooter = {}));
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
- })(SenderDomainVerificationStatus || (SenderDomainVerificationStatus = {}));
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
- })(ClickTrackingVersion || (ClickTrackingVersion = {}));
44
+ return ClickTrackingVersion;
45
+ }({});
46
46
  _Campaign.ClickTrackingVersion = ClickTrackingVersion;
47
47
  function isDraft(arg) {
48
48
  if (typeof arg === 'object') {
@@ -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) {
@@ -1,5 +1,4 @@
1
1
  export let CategoryRef;
2
- (function (_CategoryRef) {})(CategoryRef || (CategoryRef = {}));
3
2
  export let Category;
4
3
  (function (_Category) {
5
4
  function isTranslated(category, locale) {
@@ -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
- })(Type || (Type = {}));
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
- })(Gender || (Gender = {}));
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
- })(Periodicity || (Periodicity = {}));
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
- })(MediumType || (MediumType = {}));
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
- })(SocialNetwork || (SocialNetwork = {}));
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
- })(Type || (Type = {}));
77
+ return Type;
78
+ }({});
79
79
  _PhoneNumber.Type = Type;
80
80
  })(PhoneNumber || (PhoneNumber = _Contact.PhoneNumber || (_Contact.PhoneNumber = {})));
81
81
  function isPerson(arg) {