@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
@@ -1,23 +1,23 @@
1
1
  import { Newsroom } from "./Newsroom.js";
2
2
  export let Story;
3
3
  (function (_Story) {
4
- let FormatVersion;
5
- (function (FormatVersion) {
4
+ let FormatVersion = /*#__PURE__*/function (FormatVersion) {
6
5
  FormatVersion[FormatVersion["HTML"] = 1] = "HTML";
7
6
  FormatVersion[FormatVersion["SLATEJS_V3"] = 3] = "SLATEJS_V3";
8
7
  FormatVersion[FormatVersion["SLATEJS_V4"] = 4] = "SLATEJS_V4";
9
8
  FormatVersion[FormatVersion["SLATEJS_V5"] = 5] = "SLATEJS_V5";
10
9
  FormatVersion[FormatVersion["SLATEJS_V6"] = 6] = "SLATEJS_V6";
11
- })(FormatVersion || (FormatVersion = {}));
10
+ return FormatVersion;
11
+ }({});
12
12
  _Story.FormatVersion = FormatVersion;
13
- let Status;
14
- (function (Status) {
13
+ let Status = /*#__PURE__*/function (Status) {
15
14
  Status["UNINITIALIZED"] = "uninitialized";
16
15
  Status["DRAFT"] = "draft";
17
16
  Status["SCHEDULED"] = "scheduled";
18
17
  Status["EMBARGO"] = "embargo";
19
18
  Status["PUBLISHED"] = "published";
20
- })(Status || (Status = {}));
19
+ return Status;
20
+ }({});
21
21
  _Story.Status = Status;
22
22
  /**
23
23
  * @deprecated Please use `Status` instead.
@@ -28,20 +28,20 @@ export let Story;
28
28
  * @deprecated Please use `Status` instead.
29
29
  * @see Status
30
30
  */
31
- let PublicationStatus;
32
- (function (PublicationStatus) {
31
+ let PublicationStatus = /*#__PURE__*/function (PublicationStatus) {
33
32
  PublicationStatus["NEW"] = "new";
34
33
  PublicationStatus["DRAFT"] = "draft";
35
34
  PublicationStatus["PUBLISHED"] = "published";
36
- })(PublicationStatus || (PublicationStatus = {}));
35
+ return PublicationStatus;
36
+ }({});
37
37
  _Story.PublicationStatus = PublicationStatus;
38
- let Visibility;
39
- (function (Visibility) {
38
+ let Visibility = /*#__PURE__*/function (Visibility) {
40
39
  Visibility["PUBLIC"] = "public";
41
40
  Visibility["EMBARGO"] = "embargo";
42
41
  Visibility["PRIVATE"] = "private";
43
42
  Visibility["CONFIDENTIAL"] = "confidential";
44
- })(Visibility || (Visibility = {}));
43
+ return Visibility;
44
+ }({});
45
45
  _Story.Visibility = Visibility;
46
46
  /*
47
47
  * Newsroom status checks
@@ -6,15 +6,14 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.User = void 0;
7
7
  let User = exports.User = void 0;
8
8
  (function (_User) {
9
- let SignInFlow;
10
- (function (SignInFlow) {
9
+ let SignInFlow = /*#__PURE__*/function (SignInFlow) {
11
10
  SignInFlow["GOOGLE"] = "google";
12
11
  SignInFlow["PASSWORD"] = "password";
13
12
  SignInFlow["SSO"] = "sso";
14
- })(SignInFlow || (SignInFlow = {}));
13
+ return SignInFlow;
14
+ }({});
15
15
  _User.SignInFlow = SignInFlow;
16
- let UseCaseAnswer;
17
- (function (UseCaseAnswer) {
16
+ let UseCaseAnswer = /*#__PURE__*/function (UseCaseAnswer) {
18
17
  UseCaseAnswer["UNKNOWN"] = "unknown";
19
18
  UseCaseAnswer["CAMPAIGNS"] = "campaigns";
20
19
  UseCaseAnswer["CONTACTS"] = "contacts";
@@ -22,6 +21,7 @@ let User = exports.User = void 0;
22
21
  UseCaseAnswer["NEWSROOM"] = "newsroom";
23
22
  UseCaseAnswer["COVERAGE"] = "coverage";
24
23
  UseCaseAnswer["SKIP"] = "skip";
25
- })(UseCaseAnswer || (UseCaseAnswer = {}));
24
+ return UseCaseAnswer;
25
+ }({});
26
26
  _User.UseCaseAnswer = UseCaseAnswer;
27
27
  })(User || (exports.User = User = {}));
@@ -1,14 +1,13 @@
1
1
  export let User;
2
2
  (function (_User) {
3
- let SignInFlow;
4
- (function (SignInFlow) {
3
+ let SignInFlow = /*#__PURE__*/function (SignInFlow) {
5
4
  SignInFlow["GOOGLE"] = "google";
6
5
  SignInFlow["PASSWORD"] = "password";
7
6
  SignInFlow["SSO"] = "sso";
8
- })(SignInFlow || (SignInFlow = {}));
7
+ return SignInFlow;
8
+ }({});
9
9
  _User.SignInFlow = SignInFlow;
10
- let UseCaseAnswer;
11
- (function (UseCaseAnswer) {
10
+ let UseCaseAnswer = /*#__PURE__*/function (UseCaseAnswer) {
12
11
  UseCaseAnswer["UNKNOWN"] = "unknown";
13
12
  UseCaseAnswer["CAMPAIGNS"] = "campaigns";
14
13
  UseCaseAnswer["CONTACTS"] = "contacts";
@@ -16,6 +15,7 @@ export let User;
16
15
  UseCaseAnswer["NEWSROOM"] = "newsroom";
17
16
  UseCaseAnswer["COVERAGE"] = "coverage";
18
17
  UseCaseAnswer["SKIP"] = "skip";
19
- })(UseCaseAnswer || (UseCaseAnswer = {}));
18
+ return UseCaseAnswer;
19
+ }({});
20
20
  _User.UseCaseAnswer = UseCaseAnswer;
21
21
  })(User || (User = {}));
@@ -6,12 +6,12 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.Notification = void 0;
7
7
  let Notification = exports.Notification = void 0;
8
8
  (function (_Notification) {
9
- let Style;
10
- (function (Style) {
9
+ let Style = /*#__PURE__*/function (Style) {
11
10
  Style["SUCCESS"] = "success";
12
11
  Style["INFO"] = "info";
13
12
  Style["WARNING"] = "warning";
14
13
  Style["DANGER"] = "danger";
15
- })(Style || (Style = {}));
14
+ return Style;
15
+ }({});
16
16
  _Notification.Style = Style;
17
17
  })(Notification || (exports.Notification = Notification = {}));
@@ -1,11 +1,11 @@
1
1
  export let Notification;
2
2
  (function (_Notification) {
3
- let Style;
4
- (function (Style) {
3
+ let Style = /*#__PURE__*/function (Style) {
5
4
  Style["SUCCESS"] = "success";
6
5
  Style["INFO"] = "info";
7
6
  Style["WARNING"] = "warning";
8
7
  Style["DANGER"] = "danger";
9
- })(Style || (Style = {}));
8
+ return Style;
9
+ }({});
10
10
  _Notification.Style = Style;
11
11
  })(Notification || (Notification = {}));
@@ -6,12 +6,12 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.OEmbedInfo = void 0;
7
7
  let OEmbedInfo = exports.OEmbedInfo = void 0;
8
8
  (function (_OEmbedInfo) {
9
- let Type;
10
- (function (Type) {
9
+ let Type = /*#__PURE__*/function (Type) {
11
10
  Type["LINK"] = "link";
12
11
  Type["PHOTO"] = "photo";
13
12
  Type["RICH"] = "rich";
14
13
  Type["VIDEO"] = "video";
15
- })(Type || (Type = {}));
14
+ return Type;
15
+ }({});
16
16
  _OEmbedInfo.Type = Type;
17
17
  })(OEmbedInfo || (exports.OEmbedInfo = OEmbedInfo = {}));
@@ -1,11 +1,11 @@
1
1
  export let OEmbedInfo;
2
2
  (function (_OEmbedInfo) {
3
- let Type;
4
- (function (Type) {
3
+ let Type = /*#__PURE__*/function (Type) {
5
4
  Type["LINK"] = "link";
6
5
  Type["PHOTO"] = "photo";
7
6
  Type["RICH"] = "rich";
8
7
  Type["VIDEO"] = "video";
9
- })(Type || (Type = {}));
8
+ return Type;
9
+ }({});
10
10
  _OEmbedInfo.Type = Type;
11
11
  })(OEmbedInfo || (OEmbedInfo = {}));
@@ -7,9 +7,9 @@ exports.SelectionMode = void 0;
7
7
  /**
8
8
  * @see https://api.prezly.com/v2/common/schema.json#/definitions/Pagination
9
9
  */
10
- let SelectionMode = exports.SelectionMode = void 0;
11
- (function (SelectionMode) {
10
+ let SelectionMode = exports.SelectionMode = /*#__PURE__*/function (SelectionMode) {
12
11
  SelectionMode["ALL"] = "all";
13
12
  SelectionMode["IN"] = "in";
14
13
  SelectionMode["NOT_IN"] = "not_in";
15
- })(SelectionMode || (exports.SelectionMode = SelectionMode = {}));
14
+ return SelectionMode;
15
+ }({});
@@ -2,9 +2,9 @@
2
2
  * @see https://api.prezly.com/v2/common/schema.json#/definitions/Pagination
3
3
  */
4
4
 
5
- export let SelectionMode;
6
- (function (SelectionMode) {
5
+ export let SelectionMode = /*#__PURE__*/function (SelectionMode) {
7
6
  SelectionMode["ALL"] = "all";
8
7
  SelectionMode["IN"] = "in";
9
8
  SelectionMode["NOT_IN"] = "not_in";
10
- })(SelectionMode || (SelectionMode = {}));
9
+ return SelectionMode;
10
+ }({});
@@ -2,7 +2,6 @@
2
2
  /**
3
3
  * @see https://developers.prezly.com/docs/api/docs/06-prezly-query-language.md
4
4
  */
5
-
6
5
  export let Query;
7
6
  (function (_Query) {
8
7
  function stringify(query) {
@@ -69,6 +69,17 @@ Object.keys(_ContactDuplicateSuggestion).forEach(function (key) {
69
69
  }
70
70
  });
71
71
  });
72
+ var _ContactTagGroup = require("./ContactTagGroup.cjs");
73
+ Object.keys(_ContactTagGroup).forEach(function (key) {
74
+ if (key === "default" || key === "__esModule") return;
75
+ if (key in exports && exports[key] === _ContactTagGroup[key]) return;
76
+ Object.defineProperty(exports, key, {
77
+ enumerable: true,
78
+ get: function () {
79
+ return _ContactTagGroup[key];
80
+ }
81
+ });
82
+ });
72
83
  var _ContactTag = require("./ContactTag.cjs");
73
84
  Object.keys(_ContactTag).forEach(function (key) {
74
85
  if (key === "default" || key === "__esModule") return;
@@ -4,6 +4,7 @@ export * from './Campaign';
4
4
  export * from './Category';
5
5
  export * from './Contact';
6
6
  export * from './ContactDuplicateSuggestion';
7
+ export * from './ContactTagGroup';
7
8
  export * from './ContactTag';
8
9
  export * from './ContactsBulkSelector';
9
10
  export * from './ContactsExport';
@@ -5,6 +5,7 @@ export * from "./Campaign.js";
5
5
  export * from "./Category.js";
6
6
  export * from "./Contact.js";
7
7
  export * from "./ContactDuplicateSuggestion.js";
8
+ export * from "./ContactTagGroup.js";
8
9
  export * from "./ContactTag.js";
9
10
  export * from "./ContactsBulkSelector.js";
10
11
  export * from "./ContactsExport.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prezly/sdk",
3
- "version": "21.5.0",
3
+ "version": "21.7.0",
4
4
  "description": "Prezly API SDK",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",