@prezly/sdk 25.0.0 → 25.2.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 (102) 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/types.cjs +3 -3
  6. package/dist/endpoints/ContactTagGroups/types.js +3 -3
  7. package/dist/endpoints/PricingTables/types.cjs +12 -12
  8. package/dist/endpoints/PricingTables/types.js +12 -12
  9. package/dist/endpoints/Stories/Client.cjs +11 -0
  10. package/dist/endpoints/Stories/Client.d.ts +5 -1
  11. package/dist/endpoints/Stories/Client.js +11 -0
  12. package/dist/endpoints/Subscriptions/types.cjs +3 -3
  13. package/dist/endpoints/Subscriptions/types.js +3 -3
  14. package/dist/http/types.cjs +6 -6
  15. package/dist/http/types.js +6 -6
  16. package/dist/types/BillingCycle.cjs +3 -3
  17. package/dist/types/BillingCycle.js +3 -3
  18. package/dist/types/Campaign.cjs +18 -18
  19. package/dist/types/Campaign.js +18 -18
  20. package/dist/types/Category.cjs +1 -0
  21. package/dist/types/Category.js +1 -0
  22. package/dist/types/Contact.cjs +18 -18
  23. package/dist/types/Contact.js +18 -18
  24. package/dist/types/ContactDuplicateSuggestion.cjs +3 -3
  25. package/dist/types/ContactDuplicateSuggestion.js +4 -3
  26. package/dist/types/ContactTag.cjs +2 -1
  27. package/dist/types/ContactTag.d.ts +1 -2
  28. package/dist/types/ContactTag.js +2 -1
  29. package/dist/types/ContactsExport.cjs +3 -3
  30. package/dist/types/ContactsExport.d.ts +1 -2
  31. package/dist/types/ContactsExport.js +3 -3
  32. package/dist/types/ContactsScope.cjs +3 -3
  33. package/dist/types/ContactsScope.js +3 -3
  34. package/dist/types/CoverageEntry.cjs +9 -9
  35. package/dist/types/CoverageEntry.js +9 -9
  36. package/dist/types/CoverageIntegration.cjs +3 -3
  37. package/dist/types/CoverageIntegration.d.ts +1 -2
  38. package/dist/types/CoverageIntegration.js +3 -3
  39. package/dist/types/CoverageIntegrationRun.cjs +3 -3
  40. package/dist/types/CoverageIntegrationRun.d.ts +1 -2
  41. package/dist/types/CoverageIntegrationRun.js +3 -3
  42. package/dist/types/Culture.cjs +3 -3
  43. package/dist/types/Culture.js +3 -3
  44. package/dist/types/Currency.cjs +3 -3
  45. package/dist/types/Currency.js +3 -3
  46. package/dist/types/EmailRecipient.cjs +6 -6
  47. package/dist/types/EmailRecipient.js +6 -6
  48. package/dist/types/JobState.cjs +3 -3
  49. package/dist/types/JobState.js +3 -3
  50. package/dist/types/License.cjs +12 -12
  51. package/dist/types/License.js +12 -12
  52. package/dist/types/Newsroom.cjs +12 -12
  53. package/dist/types/Newsroom.d.ts +3 -1
  54. package/dist/types/Newsroom.js +12 -12
  55. package/dist/types/NewsroomDomain.cjs +6 -6
  56. package/dist/types/NewsroomDomain.js +6 -6
  57. package/dist/types/NewsroomGallery.cjs +6 -6
  58. package/dist/types/NewsroomGallery.js +6 -6
  59. package/dist/types/NewsroomTheme.cjs +8 -7
  60. package/dist/types/NewsroomTheme.js +8 -7
  61. package/dist/types/NewsroomWebhook.cjs +3 -3
  62. package/dist/types/NewsroomWebhook.js +3 -3
  63. package/dist/types/NotificationSubscription.cjs +3 -3
  64. package/dist/types/NotificationSubscription.js +3 -3
  65. package/dist/types/Permissions.cjs +3 -3
  66. package/dist/types/Permissions.js +3 -3
  67. package/dist/types/Plan.cjs +10 -10
  68. package/dist/types/Plan.js +11 -11
  69. package/dist/types/Price.cjs +6 -6
  70. package/dist/types/Price.js +6 -6
  71. package/dist/types/PrivacyRequest.cjs +6 -6
  72. package/dist/types/PrivacyRequest.js +6 -6
  73. package/dist/types/SenderAddress.cjs +3 -3
  74. package/dist/types/SenderAddress.js +3 -3
  75. package/dist/types/SenderDomain.cjs +3 -3
  76. package/dist/types/SenderDomain.js +3 -3
  77. package/dist/types/SortOrder.cjs +3 -3
  78. package/dist/types/SortOrder.js +3 -3
  79. package/dist/types/StoriesBulkSelector.cjs +1 -0
  80. package/dist/types/StoriesBulkSelector.d.ts +4 -0
  81. package/dist/types/StoriesBulkSelector.js +1 -0
  82. package/dist/types/Story.cjs +12 -12
  83. package/dist/types/Story.js +12 -12
  84. package/dist/types/User.cjs +6 -6
  85. package/dist/types/User.js +6 -6
  86. package/dist/types/common/Iso8601DateTime.cjs +1 -0
  87. package/dist/types/common/Iso8601DateTime.d.ts +1 -0
  88. package/dist/types/common/Iso8601DateTime.js +1 -0
  89. package/dist/types/common/Notification.cjs +3 -3
  90. package/dist/types/common/Notification.js +3 -3
  91. package/dist/types/common/OEmbedInfo.cjs +3 -3
  92. package/dist/types/common/OEmbedInfo.js +3 -3
  93. package/dist/types/common/Pagination.cjs +3 -3
  94. package/dist/types/common/Pagination.js +3 -3
  95. package/dist/types/common/Query.js +1 -0
  96. package/dist/types/common/index.cjs +11 -0
  97. package/dist/types/common/index.d.ts +1 -0
  98. package/dist/types/common/index.js +1 -0
  99. package/dist/types/index.cjs +11 -0
  100. package/dist/types/index.d.ts +1 -0
  101. package/dist/types/index.js +1 -0
  102. package/package.json +1 -1
@@ -1,10 +1,10 @@
1
1
  export let SortOrder;
2
2
  (function (_SortOrder) {
3
- let Direction = /*#__PURE__*/function (Direction) {
3
+ let Direction;
4
+ (function (Direction) {
4
5
  Direction["ASC"] = "asc";
5
6
  Direction["DESC"] = "desc";
6
- return Direction;
7
- }({});
7
+ })(Direction || (Direction = {}));
8
8
  _SortOrder.Direction = Direction;
9
9
  function empty() {
10
10
  return {
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1,4 @@
1
+ import type { Query } from './common';
2
+ export interface StoriesBulkSelector {
3
+ query: Query;
4
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -7,43 +7,43 @@ exports.Story = void 0;
7
7
  var _Newsroom = require("./Newsroom.cjs");
8
8
  let Story = exports.Story = void 0;
9
9
  (function (_Story) {
10
- let FormatVersion = /*#__PURE__*/function (FormatVersion) {
10
+ let FormatVersion;
11
+ (function (FormatVersion) {
11
12
  FormatVersion[FormatVersion["HTML"] = 1] = "HTML";
12
13
  FormatVersion[FormatVersion["SLATEJS_V3"] = 3] = "SLATEJS_V3";
13
14
  FormatVersion[FormatVersion["SLATEJS_V4"] = 4] = "SLATEJS_V4";
14
15
  FormatVersion[FormatVersion["SLATEJS_V5"] = 5] = "SLATEJS_V5";
15
16
  FormatVersion[FormatVersion["SLATEJS_V6"] = 6] = "SLATEJS_V6";
16
- return FormatVersion;
17
- }({});
17
+ })(FormatVersion || (FormatVersion = {}));
18
18
  _Story.FormatVersion = FormatVersion;
19
- let Status = /*#__PURE__*/function (Status) {
19
+ let Status;
20
+ (function (Status) {
20
21
  Status["UNINITIALIZED"] = "uninitialized";
21
22
  Status["DRAFT"] = "draft";
22
23
  Status["SCHEDULED"] = "scheduled";
23
24
  Status["EMBARGO"] = "embargo";
24
25
  Status["PUBLISHED"] = "published";
25
- return Status;
26
- }({});
26
+ })(Status || (Status = {}));
27
27
  _Story.Status = Status;
28
28
  const LifecycleStatus = _Story.LifecycleStatus = Status;
29
29
  /**
30
30
  * @deprecated Please use `Status` instead.
31
31
  * @see Status
32
32
  */
33
- let PublicationStatus = /*#__PURE__*/function (PublicationStatus) {
33
+ let PublicationStatus;
34
+ (function (PublicationStatus) {
34
35
  PublicationStatus["NEW"] = "new";
35
36
  PublicationStatus["DRAFT"] = "draft";
36
37
  PublicationStatus["PUBLISHED"] = "published";
37
- return PublicationStatus;
38
- }({});
38
+ })(PublicationStatus || (PublicationStatus = {}));
39
39
  _Story.PublicationStatus = PublicationStatus;
40
- let Visibility = /*#__PURE__*/function (Visibility) {
40
+ let Visibility;
41
+ (function (Visibility) {
41
42
  Visibility["PUBLIC"] = "public";
42
43
  Visibility["EMBARGO"] = "embargo";
43
44
  Visibility["PRIVATE"] = "private";
44
45
  Visibility["CONFIDENTIAL"] = "confidential";
45
- return Visibility;
46
- }({});
46
+ })(Visibility || (Visibility = {}));
47
47
  _Story.Visibility = Visibility;
48
48
  /*
49
49
  * Newsroom status checks
@@ -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 = {}));
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1 @@
1
+ export type Iso8601DateTime = string;
@@ -0,0 +1 @@
1
+ export {};
@@ -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) {
@@ -3,6 +3,17 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
+ var _Iso8601DateTime = require("./Iso8601DateTime.cjs");
7
+ Object.keys(_Iso8601DateTime).forEach(function (key) {
8
+ if (key === "default" || key === "__esModule") return;
9
+ if (key in exports && exports[key] === _Iso8601DateTime[key]) return;
10
+ Object.defineProperty(exports, key, {
11
+ enumerable: true,
12
+ get: function () {
13
+ return _Iso8601DateTime[key];
14
+ }
15
+ });
16
+ });
6
17
  var _Notification = require("./Notification.cjs");
7
18
  Object.keys(_Notification).forEach(function (key) {
8
19
  if (key === "default" || key === "__esModule") return;
@@ -1,3 +1,4 @@
1
+ export * from './Iso8601DateTime';
1
2
  export * from './Notification';
2
3
  export * from './OEmbedInfo';
3
4
  export * from './Pagination';
@@ -1,3 +1,4 @@
1
+ export * from "./Iso8601DateTime.js";
1
2
  export * from "./Notification.js";
2
3
  export * from "./OEmbedInfo.js";
3
4
  export * from "./Pagination.js";
@@ -432,6 +432,17 @@ Object.keys(_SortOrder).forEach(function (key) {
432
432
  }
433
433
  });
434
434
  });
435
+ var _StoriesBulkSelector = require("./StoriesBulkSelector.cjs");
436
+ Object.keys(_StoriesBulkSelector).forEach(function (key) {
437
+ if (key === "default" || key === "__esModule") return;
438
+ if (key in exports && exports[key] === _StoriesBulkSelector[key]) return;
439
+ Object.defineProperty(exports, key, {
440
+ enumerable: true,
441
+ get: function () {
442
+ return _StoriesBulkSelector[key];
443
+ }
444
+ });
445
+ });
435
446
  var _Story = require("./Story.cjs");
436
447
  Object.keys(_Story).forEach(function (key) {
437
448
  if (key === "default" || key === "__esModule") return;
@@ -37,6 +37,7 @@ export * from './SenderAddress';
37
37
  export * from './SenderDomain';
38
38
  export * from './Snippet';
39
39
  export * from './SortOrder';
40
+ export * from './StoriesBulkSelector';
40
41
  export * from './Story';
41
42
  export * from './User';
42
43
  export * from './UserAccount';
@@ -38,6 +38,7 @@ export * from "./SenderAddress.js";
38
38
  export * from "./SenderDomain.js";
39
39
  export * from "./Snippet.js";
40
40
  export * from "./SortOrder.js";
41
+ export * from "./StoriesBulkSelector.js";
41
42
  export * from "./Story.js";
42
43
  export * from "./User.js";
43
44
  export * from "./UserAccount.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prezly/sdk",
3
- "version": "25.0.0",
3
+ "version": "25.2.0",
4
4
  "description": "Prezly API SDK",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",