@prezly/sdk 23.9.0 → 23.10.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 (112) hide show
  1. package/dist/api/ApiClient.d.ts +4 -4
  2. package/dist/api/DeferredJobsApiClient.d.ts +4 -4
  3. package/dist/api/constants.cjs +1 -1
  4. package/dist/api/constants.js +1 -1
  5. package/dist/endpoints/Accounts/Client.d.ts +1 -1
  6. package/dist/endpoints/Billing/types.cjs +6 -6
  7. package/dist/endpoints/Billing/types.js +6 -6
  8. package/dist/endpoints/CampaignRecipients/Client.d.ts +1 -1
  9. package/dist/endpoints/Campaigns/Client.cjs +4 -0
  10. package/dist/endpoints/Campaigns/Client.d.ts +8 -8
  11. package/dist/endpoints/Campaigns/Client.js +4 -0
  12. package/dist/endpoints/Campaigns/types.d.ts +1 -0
  13. package/dist/endpoints/ContactTagGroups/types.cjs +3 -3
  14. package/dist/endpoints/ContactTagGroups/types.js +3 -3
  15. package/dist/endpoints/ContactTags/Client.d.ts +4 -4
  16. package/dist/endpoints/Contacts/Client.cjs +4 -0
  17. package/dist/endpoints/Contacts/Client.d.ts +6 -6
  18. package/dist/endpoints/Contacts/Client.js +4 -0
  19. package/dist/endpoints/Contacts/types.d.ts +1 -0
  20. package/dist/endpoints/ContactsExports/Client.d.ts +2 -2
  21. package/dist/endpoints/Coverage/Client.cjs +4 -0
  22. package/dist/endpoints/Coverage/Client.js +4 -0
  23. package/dist/endpoints/Coverage/types.d.ts +1 -0
  24. package/dist/endpoints/CoverageIntegrations/Client.d.ts +2 -2
  25. package/dist/endpoints/NewsroomCategories/Client.d.ts +3 -3
  26. package/dist/endpoints/NewsroomGalleries/Client.d.ts +1 -1
  27. package/dist/endpoints/NewsroomLanguages/Client.d.ts +10 -10
  28. package/dist/endpoints/NewsroomPrivacyRequests/Client.d.ts +2 -2
  29. package/dist/endpoints/NewsroomThemes/Client.d.ts +1 -1
  30. package/dist/endpoints/NewsroomWebhooks/Client.d.ts +3 -3
  31. package/dist/endpoints/PricingTables/types.cjs +12 -12
  32. package/dist/endpoints/PricingTables/types.js +12 -12
  33. package/dist/endpoints/SenderAddresses/Client.d.ts +3 -3
  34. package/dist/endpoints/Stories/Client.d.ts +102 -102
  35. package/dist/endpoints/Stories/types.d.ts +2 -4
  36. package/dist/endpoints/Subscriptions/Client.d.ts +2 -2
  37. package/dist/endpoints/Subscriptions/types.cjs +3 -3
  38. package/dist/endpoints/Subscriptions/types.js +3 -3
  39. package/dist/endpoints/index.cjs +1 -1
  40. package/dist/http/lib.cjs +1 -1
  41. package/dist/http/types.cjs +6 -6
  42. package/dist/http/types.js +6 -6
  43. package/dist/types/BillingCycle.cjs +3 -3
  44. package/dist/types/BillingCycle.js +3 -3
  45. package/dist/types/Campaign.cjs +18 -18
  46. package/dist/types/Campaign.js +18 -18
  47. package/dist/types/Category.cjs +1 -0
  48. package/dist/types/Category.js +1 -0
  49. package/dist/types/Contact.cjs +18 -18
  50. package/dist/types/Contact.js +18 -18
  51. package/dist/types/ContactDuplicateSuggestion.cjs +3 -3
  52. package/dist/types/ContactDuplicateSuggestion.js +4 -3
  53. package/dist/types/ContactTag.cjs +2 -1
  54. package/dist/types/ContactTag.js +2 -1
  55. package/dist/types/ContactsExport.cjs +3 -3
  56. package/dist/types/ContactsExport.js +3 -3
  57. package/dist/types/ContactsScope.cjs +3 -3
  58. package/dist/types/ContactsScope.js +3 -3
  59. package/dist/types/CoverageEntry.cjs +9 -9
  60. package/dist/types/CoverageEntry.js +9 -9
  61. package/dist/types/CoverageIntegration.cjs +3 -3
  62. package/dist/types/CoverageIntegration.js +3 -3
  63. package/dist/types/CoverageIntegrationRun.cjs +3 -3
  64. package/dist/types/CoverageIntegrationRun.js +3 -3
  65. package/dist/types/Culture.cjs +3 -3
  66. package/dist/types/Culture.js +3 -3
  67. package/dist/types/Currency.cjs +3 -3
  68. package/dist/types/Currency.js +3 -3
  69. package/dist/types/EmailRecipient.cjs +3 -3
  70. package/dist/types/EmailRecipient.js +3 -3
  71. package/dist/types/JobState.cjs +3 -3
  72. package/dist/types/JobState.js +3 -3
  73. package/dist/types/License.cjs +12 -12
  74. package/dist/types/License.js +12 -12
  75. package/dist/types/Newsroom.cjs +12 -12
  76. package/dist/types/Newsroom.js +12 -12
  77. package/dist/types/NewsroomDomain.cjs +6 -6
  78. package/dist/types/NewsroomDomain.js +6 -6
  79. package/dist/types/NewsroomGallery.cjs +6 -6
  80. package/dist/types/NewsroomGallery.js +6 -6
  81. package/dist/types/NewsroomTheme.cjs +8 -7
  82. package/dist/types/NewsroomTheme.js +8 -7
  83. package/dist/types/NewsroomWebhook.cjs +3 -3
  84. package/dist/types/NewsroomWebhook.js +3 -3
  85. package/dist/types/NotificationSubscription.cjs +3 -3
  86. package/dist/types/NotificationSubscription.js +3 -3
  87. package/dist/types/Permissions.cjs +3 -3
  88. package/dist/types/Permissions.js +3 -3
  89. package/dist/types/Plan.cjs +10 -10
  90. package/dist/types/Plan.js +11 -11
  91. package/dist/types/Price.cjs +6 -6
  92. package/dist/types/Price.js +6 -6
  93. package/dist/types/PrivacyRequest.cjs +6 -6
  94. package/dist/types/PrivacyRequest.js +6 -6
  95. package/dist/types/SenderAddress.cjs +3 -3
  96. package/dist/types/SenderAddress.js +3 -3
  97. package/dist/types/SenderDomain.cjs +3 -3
  98. package/dist/types/SenderDomain.js +3 -3
  99. package/dist/types/SortOrder.cjs +3 -3
  100. package/dist/types/SortOrder.js +3 -3
  101. package/dist/types/Story.cjs +12 -12
  102. package/dist/types/Story.js +12 -12
  103. package/dist/types/User.cjs +6 -6
  104. package/dist/types/User.js +6 -6
  105. package/dist/types/common/Notification.cjs +3 -3
  106. package/dist/types/common/Notification.js +3 -3
  107. package/dist/types/common/OEmbedInfo.cjs +3 -3
  108. package/dist/types/common/OEmbedInfo.js +3 -3
  109. package/dist/types/common/Pagination.cjs +3 -3
  110. package/dist/types/common/Pagination.js +3 -3
  111. package/dist/types/common/Query.js +1 -0
  112. package/package.json +1 -1
@@ -1,43 +1,43 @@
1
1
  import { Newsroom } from "./Newsroom.js";
2
2
  export let Story;
3
3
  (function (_Story) {
4
- let FormatVersion = /*#__PURE__*/function (FormatVersion) {
4
+ let FormatVersion;
5
+ (function (FormatVersion) {
5
6
  FormatVersion[FormatVersion["HTML"] = 1] = "HTML";
6
7
  FormatVersion[FormatVersion["SLATEJS_V3"] = 3] = "SLATEJS_V3";
7
8
  FormatVersion[FormatVersion["SLATEJS_V4"] = 4] = "SLATEJS_V4";
8
9
  FormatVersion[FormatVersion["SLATEJS_V5"] = 5] = "SLATEJS_V5";
9
10
  FormatVersion[FormatVersion["SLATEJS_V6"] = 6] = "SLATEJS_V6";
10
- return FormatVersion;
11
- }({});
11
+ })(FormatVersion || (FormatVersion = {}));
12
12
  _Story.FormatVersion = FormatVersion;
13
- let Status = /*#__PURE__*/function (Status) {
13
+ let Status;
14
+ (function (Status) {
14
15
  Status["UNINITIALIZED"] = "uninitialized";
15
16
  Status["DRAFT"] = "draft";
16
17
  Status["SCHEDULED"] = "scheduled";
17
18
  Status["EMBARGO"] = "embargo";
18
19
  Status["PUBLISHED"] = "published";
19
- return Status;
20
- }({});
20
+ })(Status || (Status = {}));
21
21
  _Story.Status = Status;
22
22
  const LifecycleStatus = _Story.LifecycleStatus = Status;
23
23
  /**
24
24
  * @deprecated Please use `Status` instead.
25
25
  * @see Status
26
26
  */
27
- let PublicationStatus = /*#__PURE__*/function (PublicationStatus) {
27
+ let PublicationStatus;
28
+ (function (PublicationStatus) {
28
29
  PublicationStatus["NEW"] = "new";
29
30
  PublicationStatus["DRAFT"] = "draft";
30
31
  PublicationStatus["PUBLISHED"] = "published";
31
- return PublicationStatus;
32
- }({});
32
+ })(PublicationStatus || (PublicationStatus = {}));
33
33
  _Story.PublicationStatus = PublicationStatus;
34
- let Visibility = /*#__PURE__*/function (Visibility) {
34
+ let Visibility;
35
+ (function (Visibility) {
35
36
  Visibility["PUBLIC"] = "public";
36
37
  Visibility["EMBARGO"] = "embargo";
37
38
  Visibility["PRIVATE"] = "private";
38
39
  Visibility["CONFIDENTIAL"] = "confidential";
39
- return Visibility;
40
- }({});
40
+ })(Visibility || (Visibility = {}));
41
41
  _Story.Visibility = Visibility;
42
42
  /*
43
43
  * Newsroom status checks
@@ -6,14 +6,15 @@ 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 = /*#__PURE__*/function (SignInFlow) {
9
+ let SignInFlow;
10
+ (function (SignInFlow) {
10
11
  SignInFlow["GOOGLE"] = "google";
11
12
  SignInFlow["PASSWORD"] = "password";
12
13
  SignInFlow["SSO"] = "sso";
13
- return SignInFlow;
14
- }({});
14
+ })(SignInFlow || (SignInFlow = {}));
15
15
  _User.SignInFlow = SignInFlow;
16
- let UseCaseAnswer = /*#__PURE__*/function (UseCaseAnswer) {
16
+ let UseCaseAnswer;
17
+ (function (UseCaseAnswer) {
17
18
  UseCaseAnswer["UNKNOWN"] = "unknown";
18
19
  UseCaseAnswer["CAMPAIGNS"] = "campaigns";
19
20
  UseCaseAnswer["CONTACTS"] = "contacts";
@@ -21,7 +22,6 @@ let User = exports.User = void 0;
21
22
  UseCaseAnswer["NEWSROOM"] = "newsroom";
22
23
  UseCaseAnswer["COVERAGE"] = "coverage";
23
24
  UseCaseAnswer["SKIP"] = "skip";
24
- return UseCaseAnswer;
25
- }({});
25
+ })(UseCaseAnswer || (UseCaseAnswer = {}));
26
26
  _User.UseCaseAnswer = UseCaseAnswer;
27
27
  })(User || (exports.User = User = {}));
@@ -1,13 +1,14 @@
1
1
  export let User;
2
2
  (function (_User) {
3
- let SignInFlow = /*#__PURE__*/function (SignInFlow) {
3
+ let SignInFlow;
4
+ (function (SignInFlow) {
4
5
  SignInFlow["GOOGLE"] = "google";
5
6
  SignInFlow["PASSWORD"] = "password";
6
7
  SignInFlow["SSO"] = "sso";
7
- return SignInFlow;
8
- }({});
8
+ })(SignInFlow || (SignInFlow = {}));
9
9
  _User.SignInFlow = SignInFlow;
10
- let UseCaseAnswer = /*#__PURE__*/function (UseCaseAnswer) {
10
+ let UseCaseAnswer;
11
+ (function (UseCaseAnswer) {
11
12
  UseCaseAnswer["UNKNOWN"] = "unknown";
12
13
  UseCaseAnswer["CAMPAIGNS"] = "campaigns";
13
14
  UseCaseAnswer["CONTACTS"] = "contacts";
@@ -15,7 +16,6 @@ export let User;
15
16
  UseCaseAnswer["NEWSROOM"] = "newsroom";
16
17
  UseCaseAnswer["COVERAGE"] = "coverage";
17
18
  UseCaseAnswer["SKIP"] = "skip";
18
- return UseCaseAnswer;
19
- }({});
19
+ })(UseCaseAnswer || (UseCaseAnswer = {}));
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 = /*#__PURE__*/function (Style) {
9
+ let Style;
10
+ (function (Style) {
10
11
  Style["SUCCESS"] = "success";
11
12
  Style["INFO"] = "info";
12
13
  Style["WARNING"] = "warning";
13
14
  Style["DANGER"] = "danger";
14
- return Style;
15
- }({});
15
+ })(Style || (Style = {}));
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 = /*#__PURE__*/function (Style) {
3
+ let Style;
4
+ (function (Style) {
4
5
  Style["SUCCESS"] = "success";
5
6
  Style["INFO"] = "info";
6
7
  Style["WARNING"] = "warning";
7
8
  Style["DANGER"] = "danger";
8
- return Style;
9
- }({});
9
+ })(Style || (Style = {}));
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 = /*#__PURE__*/function (Type) {
9
+ let Type;
10
+ (function (Type) {
10
11
  Type["LINK"] = "link";
11
12
  Type["PHOTO"] = "photo";
12
13
  Type["RICH"] = "rich";
13
14
  Type["VIDEO"] = "video";
14
- return Type;
15
- }({});
15
+ })(Type || (Type = {}));
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 = /*#__PURE__*/function (Type) {
3
+ let Type;
4
+ (function (Type) {
4
5
  Type["LINK"] = "link";
5
6
  Type["PHOTO"] = "photo";
6
7
  Type["RICH"] = "rich";
7
8
  Type["VIDEO"] = "video";
8
- return Type;
9
- }({});
9
+ })(Type || (Type = {}));
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 = /*#__PURE__*/function (SelectionMode) {
10
+ let SelectionMode = exports.SelectionMode = void 0;
11
+ (function (SelectionMode) {
11
12
  SelectionMode["ALL"] = "all";
12
13
  SelectionMode["IN"] = "in";
13
14
  SelectionMode["NOT_IN"] = "not_in";
14
- return SelectionMode;
15
- }({});
15
+ })(SelectionMode || (exports.SelectionMode = SelectionMode = {}));
@@ -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 = /*#__PURE__*/function (SelectionMode) {
5
+ export let SelectionMode;
6
+ (function (SelectionMode) {
6
7
  SelectionMode["ALL"] = "all";
7
8
  SelectionMode["IN"] = "in";
8
9
  SelectionMode["NOT_IN"] = "not_in";
9
- return SelectionMode;
10
- }({});
10
+ })(SelectionMode || (SelectionMode = {}));
@@ -2,6 +2,7 @@
2
2
  /**
3
3
  * @see https://developers.prezly.com/docs/api/docs/06-prezly-query-language.md
4
4
  */
5
+
5
6
  export let Query;
6
7
  (function (_Query) {
7
8
  function stringify(query) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prezly/sdk",
3
- "version": "23.9.0",
3
+ "version": "23.10.0",
4
4
  "description": "Prezly API SDK",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",