@prezly/sdk 21.5.0 → 21.7.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 (98) hide show
  1. package/dist/api/constants.cjs +1 -1
  2. package/dist/api/constants.js +1 -1
  3. package/dist/endpoints/Billing/types.cjs +6 -6
  4. package/dist/endpoints/Billing/types.js +6 -6
  5. package/dist/endpoints/ContactTagGroups/Client.cjs +62 -0
  6. package/dist/endpoints/ContactTagGroups/Client.d.ts +14 -0
  7. package/dist/endpoints/ContactTagGroups/Client.js +56 -0
  8. package/dist/endpoints/ContactTagGroups/index.cjs +27 -0
  9. package/dist/endpoints/ContactTagGroups/index.d.ts +2 -0
  10. package/dist/endpoints/ContactTagGroups/index.js +2 -0
  11. package/dist/endpoints/ContactTagGroups/types.cjs +19 -0
  12. package/dist/endpoints/ContactTagGroups/types.d.ts +25 -0
  13. package/dist/endpoints/ContactTagGroups/types.js +13 -0
  14. package/dist/endpoints/ContactTags/types.d.ts +3 -1
  15. package/dist/endpoints/PricingTables/types.cjs +12 -12
  16. package/dist/endpoints/PricingTables/types.js +12 -12
  17. package/dist/endpoints/Subscriptions/types.cjs +3 -3
  18. package/dist/endpoints/Subscriptions/types.js +3 -3
  19. package/dist/endpoints/index.cjs +3 -1
  20. package/dist/endpoints/index.d.ts +1 -0
  21. package/dist/endpoints/index.js +1 -0
  22. package/dist/http/types.cjs +6 -6
  23. package/dist/http/types.js +6 -6
  24. package/dist/routing.cjs +1 -0
  25. package/dist/routing.d.ts +1 -0
  26. package/dist/routing.js +1 -0
  27. package/dist/types/BillingCycle.cjs +3 -3
  28. package/dist/types/BillingCycle.js +3 -3
  29. package/dist/types/Campaign.cjs +18 -18
  30. package/dist/types/Campaign.js +18 -18
  31. package/dist/types/Category.cjs +0 -1
  32. package/dist/types/Category.js +0 -1
  33. package/dist/types/Contact.cjs +18 -18
  34. package/dist/types/Contact.js +18 -18
  35. package/dist/types/ContactDuplicateSuggestion.cjs +3 -3
  36. package/dist/types/ContactDuplicateSuggestion.js +3 -4
  37. package/dist/types/ContactTag.cjs +1 -2
  38. package/dist/types/ContactTag.d.ts +2 -0
  39. package/dist/types/ContactTag.js +1 -2
  40. package/dist/types/ContactTagGroup.cjs +1 -0
  41. package/dist/types/ContactTagGroup.d.ts +7 -0
  42. package/dist/types/ContactTagGroup.js +1 -0
  43. package/dist/types/ContactsExport.cjs +3 -3
  44. package/dist/types/ContactsExport.js +3 -3
  45. package/dist/types/ContactsScope.cjs +3 -3
  46. package/dist/types/ContactsScope.js +3 -3
  47. package/dist/types/CoverageEntry.cjs +6 -6
  48. package/dist/types/CoverageEntry.js +6 -6
  49. package/dist/types/Culture.cjs +3 -3
  50. package/dist/types/Culture.js +3 -3
  51. package/dist/types/Currency.cjs +3 -3
  52. package/dist/types/Currency.js +3 -3
  53. package/dist/types/EmailRecipient.cjs +3 -3
  54. package/dist/types/EmailRecipient.js +3 -3
  55. package/dist/types/JobState.cjs +3 -3
  56. package/dist/types/JobState.js +3 -3
  57. package/dist/types/License.cjs +9 -9
  58. package/dist/types/License.d.ts +2 -0
  59. package/dist/types/License.js +9 -9
  60. package/dist/types/Newsroom.cjs +12 -12
  61. package/dist/types/Newsroom.js +12 -12
  62. package/dist/types/NewsroomDomain.cjs +6 -6
  63. package/dist/types/NewsroomDomain.js +6 -6
  64. package/dist/types/NewsroomGallery.cjs +6 -6
  65. package/dist/types/NewsroomGallery.js +6 -6
  66. package/dist/types/NewsroomTheme.cjs +7 -8
  67. package/dist/types/NewsroomTheme.js +7 -8
  68. package/dist/types/NewsroomWebhook.cjs +3 -3
  69. package/dist/types/NewsroomWebhook.js +3 -3
  70. package/dist/types/NotificationSubscription.cjs +3 -3
  71. package/dist/types/NotificationSubscription.js +3 -3
  72. package/dist/types/Permissions.cjs +3 -3
  73. package/dist/types/Permissions.js +3 -3
  74. package/dist/types/Plan.cjs +7 -7
  75. package/dist/types/Plan.js +8 -8
  76. package/dist/types/PrivacyRequest.cjs +6 -6
  77. package/dist/types/PrivacyRequest.js +6 -6
  78. package/dist/types/SenderAddress.cjs +3 -3
  79. package/dist/types/SenderAddress.js +3 -3
  80. package/dist/types/SenderDomain.cjs +3 -3
  81. package/dist/types/SenderDomain.js +3 -3
  82. package/dist/types/SortOrder.cjs +3 -3
  83. package/dist/types/SortOrder.js +3 -3
  84. package/dist/types/Story.cjs +12 -12
  85. package/dist/types/Story.js +12 -12
  86. package/dist/types/User.cjs +6 -6
  87. package/dist/types/User.js +6 -6
  88. package/dist/types/common/Notification.cjs +3 -3
  89. package/dist/types/common/Notification.js +3 -3
  90. package/dist/types/common/OEmbedInfo.cjs +3 -3
  91. package/dist/types/common/OEmbedInfo.js +3 -3
  92. package/dist/types/common/Pagination.cjs +3 -3
  93. package/dist/types/common/Pagination.js +3 -3
  94. package/dist/types/common/Query.js +0 -1
  95. package/dist/types/index.cjs +11 -0
  96. package/dist/types/index.d.ts +1 -0
  97. package/dist/types/index.js +1 -0
  98. package/package.json +1 -1
@@ -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.4.1";
7
+ const VERSION = "21.6.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})`;
@@ -1,3 +1,3 @@
1
- const VERSION = "21.4.1";
1
+ const VERSION = "21.6.0";
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
+ }({});
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.createClient = createClient;
7
+ var _routing = require("../../routing.cjs");
8
+ function createClient(api) {
9
+ async function list() {
10
+ const url = _routing.routing.contactTagGroupsUrl;
11
+ const {
12
+ groups
13
+ } = await api.get(url);
14
+ return groups;
15
+ }
16
+ async function get(groupId) {
17
+ const url = _routing.routing.contactTagGroupsUrl;
18
+ const {
19
+ group
20
+ } = await api.get(`${url}/${groupId}`);
21
+ return group;
22
+ }
23
+ async function create(payload) {
24
+ const url = _routing.routing.contactTagGroupsUrl;
25
+ const {
26
+ group
27
+ } = await api.post(url, {
28
+ payload
29
+ });
30
+ return group;
31
+ }
32
+ async function update(groupId, payload) {
33
+ const url = _routing.routing.contactTagGroupsUrl;
34
+ const {
35
+ group
36
+ } = await api.patch(`${url}/${groupId}`, {
37
+ payload
38
+ });
39
+ return group;
40
+ }
41
+ async function addTags(groupId, payload) {
42
+ const url = _routing.routing.contactTagGroupsUrl;
43
+ const {
44
+ group
45
+ } = await api.patch(`${url}/${groupId}`, {
46
+ payload
47
+ });
48
+ return group;
49
+ }
50
+ async function doDelete(groupId) {
51
+ const url = _routing.routing.contactTagGroupsUrl;
52
+ return api.delete(`${url}/${groupId}`);
53
+ }
54
+ return {
55
+ list,
56
+ get,
57
+ create,
58
+ update,
59
+ addTags,
60
+ delete: doDelete
61
+ };
62
+ }
@@ -0,0 +1,14 @@
1
+ import type { DeferredJobsApiClient } from '../../api';
2
+ import type { ContactTagGroup } from '../../types';
3
+ import type { CreateRequest, UpdateRequest, AddTagsRequest } from './types';
4
+ type GroupId = ContactTagGroup['id'];
5
+ export type Client = ReturnType<typeof createClient>;
6
+ export declare function createClient(api: DeferredJobsApiClient): {
7
+ list: () => Promise<ContactTagGroup[]>;
8
+ get: (groupId: GroupId) => Promise<ContactTagGroup>;
9
+ create: (payload: CreateRequest) => Promise<ContactTagGroup>;
10
+ update: (groupId: GroupId, payload: UpdateRequest) => Promise<ContactTagGroup>;
11
+ addTags: (groupId: GroupId, payload: AddTagsRequest) => Promise<ContactTagGroup>;
12
+ delete: (groupId: GroupId) => Promise<void>;
13
+ };
14
+ export {};
@@ -0,0 +1,56 @@
1
+ import { routing } from "../../routing.js";
2
+ export function createClient(api) {
3
+ async function list() {
4
+ const url = routing.contactTagGroupsUrl;
5
+ const {
6
+ groups
7
+ } = await api.get(url);
8
+ return groups;
9
+ }
10
+ async function get(groupId) {
11
+ const url = routing.contactTagGroupsUrl;
12
+ const {
13
+ group
14
+ } = await api.get(`${url}/${groupId}`);
15
+ return group;
16
+ }
17
+ async function create(payload) {
18
+ const url = routing.contactTagGroupsUrl;
19
+ const {
20
+ group
21
+ } = await api.post(url, {
22
+ payload
23
+ });
24
+ return group;
25
+ }
26
+ async function update(groupId, payload) {
27
+ const url = routing.contactTagGroupsUrl;
28
+ const {
29
+ group
30
+ } = await api.patch(`${url}/${groupId}`, {
31
+ payload
32
+ });
33
+ return group;
34
+ }
35
+ async function addTags(groupId, payload) {
36
+ const url = routing.contactTagGroupsUrl;
37
+ const {
38
+ group
39
+ } = await api.patch(`${url}/${groupId}`, {
40
+ payload
41
+ });
42
+ return group;
43
+ }
44
+ async function doDelete(groupId) {
45
+ const url = routing.contactTagGroupsUrl;
46
+ return api.delete(`${url}/${groupId}`);
47
+ }
48
+ return {
49
+ list,
50
+ get,
51
+ create,
52
+ update,
53
+ addTags,
54
+ delete: doDelete
55
+ };
56
+ }
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _Client = require("./Client.cjs");
7
+ Object.keys(_Client).forEach(function (key) {
8
+ if (key === "default" || key === "__esModule") return;
9
+ if (key in exports && exports[key] === _Client[key]) return;
10
+ Object.defineProperty(exports, key, {
11
+ enumerable: true,
12
+ get: function () {
13
+ return _Client[key];
14
+ }
15
+ });
16
+ });
17
+ var _types = require("./types.cjs");
18
+ Object.keys(_types).forEach(function (key) {
19
+ if (key === "default" || key === "__esModule") return;
20
+ if (key in exports && exports[key] === _types[key]) return;
21
+ Object.defineProperty(exports, key, {
22
+ enumerable: true,
23
+ get: function () {
24
+ return _types[key];
25
+ }
26
+ });
27
+ });
@@ -0,0 +1,2 @@
1
+ export * from './Client';
2
+ export * from './types';
@@ -0,0 +1,2 @@
1
+ export * from "./Client.js";
2
+ export * from "./types.js";
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.Color = void 0;
7
+ let Color = exports.Color = /*#__PURE__*/function (Color) {
8
+ Color["RED"] = "red";
9
+ Color["PINK"] = "pink";
10
+ Color["ORANGE"] = "orange";
11
+ Color["YELLOW"] = "yellow";
12
+ Color["LIME"] = "lime";
13
+ Color["GREEN"] = "green";
14
+ Color["CYAN"] = "cyan";
15
+ Color["BLUE"] = "blue";
16
+ Color["INDIGO"] = "indigo";
17
+ Color["PURPLE"] = "purple";
18
+ return Color;
19
+ }({});
@@ -0,0 +1,25 @@
1
+ import type { ContactTag } from '../../types';
2
+ export declare enum Color {
3
+ RED = "red",
4
+ PINK = "pink",
5
+ ORANGE = "orange",
6
+ YELLOW = "yellow",
7
+ LIME = "lime",
8
+ GREEN = "green",
9
+ CYAN = "cyan",
10
+ BLUE = "blue",
11
+ INDIGO = "indigo",
12
+ PURPLE = "purple"
13
+ }
14
+ export interface CreateRequest {
15
+ name: string;
16
+ color: Color;
17
+ tags: ContactTag['id'][];
18
+ }
19
+ export interface UpdateRequest {
20
+ name?: string;
21
+ color?: Color;
22
+ }
23
+ export interface AddTagsRequest {
24
+ tags: ContactTag['id'][];
25
+ }
@@ -0,0 +1,13 @@
1
+ export let Color = /*#__PURE__*/function (Color) {
2
+ Color["RED"] = "red";
3
+ Color["PINK"] = "pink";
4
+ Color["ORANGE"] = "orange";
5
+ Color["YELLOW"] = "yellow";
6
+ Color["LIME"] = "lime";
7
+ Color["GREEN"] = "green";
8
+ Color["CYAN"] = "cyan";
9
+ Color["BLUE"] = "blue";
10
+ Color["INDIGO"] = "indigo";
11
+ Color["PURPLE"] = "purple";
12
+ return Color;
13
+ }({});
@@ -1,4 +1,4 @@
1
- import type { ContactTag, Query } from '../../types';
1
+ import type { ContactTag, ContactTagGroup, Query } from '../../types';
2
2
  import type { SortOrder } from '../../types';
3
3
  export interface ListOptions {
4
4
  sortOrder?: SortOrder | string;
@@ -12,6 +12,7 @@ export interface SearchOptions extends ListOptions {
12
12
  export type SearchResponse = ListResponse;
13
13
  export interface CreateRequest {
14
14
  name: string;
15
+ group?: ContactTagGroup['id'] | null;
15
16
  }
16
17
  export interface CreateOptions {
17
18
  force?: boolean;
@@ -22,6 +23,7 @@ export interface CreateResponse {
22
23
  }
23
24
  export interface UpdateRequest {
24
25
  name: string;
26
+ group?: ContactTagGroup['id'] | null;
25
27
  }
26
28
  export interface UpdateOptions {
27
29
  force?: boolean;
@@ -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
+ }({});
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.Subscriptions = exports.Stories = exports.Snippets = exports.SenderAddresses = exports.PricingTables = exports.NotificationSubscriptions = exports.Newsrooms = exports.NewsroomWebhooks = exports.NewsroomThemes = exports.NewsroomSubscriptions = exports.NewsroomPrivacyRequests = exports.NewsroomLanguages = exports.NewsroomHub = exports.NewsroomGalleries = exports.NewsroomDomains = exports.NewsroomContacts = exports.NewsroomCategories = exports.Licenses = exports.Jobs = exports.Coverage = exports.ContactsExports = exports.Contacts = exports.ContactTags = exports.Campaigns = exports.CampaignRecipients = exports.Billing = exports.Accounts = void 0;
6
+ exports.Subscriptions = exports.Stories = exports.Snippets = exports.SenderAddresses = exports.PricingTables = exports.NotificationSubscriptions = exports.Newsrooms = exports.NewsroomWebhooks = exports.NewsroomThemes = exports.NewsroomSubscriptions = exports.NewsroomPrivacyRequests = exports.NewsroomLanguages = exports.NewsroomHub = exports.NewsroomGalleries = exports.NewsroomDomains = exports.NewsroomContacts = exports.NewsroomCategories = exports.Licenses = exports.Jobs = exports.Coverage = exports.ContactsExports = exports.Contacts = exports.ContactTags = exports.ContactTagGroups = exports.Campaigns = exports.CampaignRecipients = exports.Billing = exports.Accounts = void 0;
7
7
  var _Accounts = _interopRequireWildcard(require("./Accounts/index.cjs"));
8
8
  exports.Accounts = _Accounts;
9
9
  var _Billing = _interopRequireWildcard(require("./Billing/index.cjs"));
@@ -12,6 +12,8 @@ var _CampaignRecipients = _interopRequireWildcard(require("./CampaignRecipients/
12
12
  exports.CampaignRecipients = _CampaignRecipients;
13
13
  var _Campaigns = _interopRequireWildcard(require("./Campaigns/index.cjs"));
14
14
  exports.Campaigns = _Campaigns;
15
+ var _ContactTagGroups = _interopRequireWildcard(require("./ContactTagGroups/index.cjs"));
16
+ exports.ContactTagGroups = _ContactTagGroups;
15
17
  var _ContactTags = _interopRequireWildcard(require("./ContactTags/index.cjs"));
16
18
  exports.ContactTags = _ContactTags;
17
19
  var _Contacts = _interopRequireWildcard(require("./Contacts/index.cjs"));
@@ -2,6 +2,7 @@ export * as Accounts from './Accounts';
2
2
  export * as Billing from './Billing';
3
3
  export * as CampaignRecipients from './CampaignRecipients';
4
4
  export * as Campaigns from './Campaigns';
5
+ export * as ContactTagGroups from './ContactTagGroups';
5
6
  export * as ContactTags from './ContactTags';
6
7
  export * as Contacts from './Contacts';
7
8
  export * as ContactsExports from './ContactsExports';
@@ -2,6 +2,7 @@ export * as Accounts from "./Accounts/index.js";
2
2
  export * as Billing from "./Billing/index.js";
3
3
  export * as CampaignRecipients from "./CampaignRecipients/index.js";
4
4
  export * as Campaigns from "./Campaigns/index.js";
5
+ export * as ContactTagGroups from "./ContactTagGroups/index.js";
5
6
  export * as ContactTags from "./ContactTags/index.js";
6
7
  export * as Contacts from "./Contacts/index.js";
7
8
  export * as ContactsExports from "./ContactsExports/index.js";
@@ -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
+ }({});
package/dist/routing.cjs CHANGED
@@ -11,6 +11,7 @@ const routing = exports.routing = {
11
11
  campaignRecipientsUrl: '/v2/campaigns/:campaign_id/recipients',
12
12
  contactsExportsUrl: '/v2/contacts/exports',
13
13
  contactsUrl: '/v2/contacts',
14
+ contactTagGroupsUrl: '/v2/contact-tag-groups',
14
15
  contactTagsUrl: '/v2/contact-tags',
15
16
  coverageUrl: '/v2/coverage',
16
17
  jobsUrl: '/v2/jobs',
package/dist/routing.d.ts CHANGED
@@ -5,6 +5,7 @@ export declare const routing: {
5
5
  campaignRecipientsUrl: string;
6
6
  contactsExportsUrl: string;
7
7
  contactsUrl: string;
8
+ contactTagGroupsUrl: string;
8
9
  contactTagsUrl: string;
9
10
  coverageUrl: string;
10
11
  jobsUrl: string;
package/dist/routing.js CHANGED
@@ -5,6 +5,7 @@ export const routing = {
5
5
  campaignRecipientsUrl: '/v2/campaigns/:campaign_id/recipients',
6
6
  contactsExportsUrl: '/v2/contacts/exports',
7
7
  contactsUrl: '/v2/contacts',
8
+ contactTagGroupsUrl: '/v2/contact-tag-groups',
8
9
  contactTagsUrl: '/v2/contact-tags',
9
10
  coverageUrl: '/v2/coverage',
10
11
  jobsUrl: '/v2/jobs',
@@ -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') {