@prezly/sdk 19.6.0 → 19.6.2
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.
- package/dist/api/DeferredJobsApiClient.cjs +0 -1
- package/dist/api/DeferredJobsApiClient.js +0 -1
- package/dist/api/constants.cjs +2 -3
- package/dist/api/constants.js +1 -1
- package/dist/endpoints/Accounts/index.cjs +2 -0
- package/dist/endpoints/Billing/index.cjs +2 -0
- package/dist/endpoints/Billing/types.cjs +7 -9
- package/dist/endpoints/Billing/types.js +6 -6
- package/dist/endpoints/CampaignRecipients/index.cjs +2 -0
- package/dist/endpoints/Campaigns/index.cjs +2 -0
- package/dist/endpoints/Contacts/index.cjs +2 -0
- package/dist/endpoints/ContactsExports/index.cjs +2 -0
- package/dist/endpoints/Coverage/index.cjs +2 -0
- package/dist/endpoints/Jobs/index.cjs +2 -0
- package/dist/endpoints/Licenses/index.cjs +1 -0
- package/dist/endpoints/NewsroomCategories/index.cjs +2 -0
- package/dist/endpoints/NewsroomContacts/index.cjs +2 -0
- package/dist/endpoints/NewsroomDomains/index.cjs +2 -0
- package/dist/endpoints/NewsroomGalleries/index.cjs +2 -0
- package/dist/endpoints/NewsroomHub/index.cjs +2 -0
- package/dist/endpoints/NewsroomLanguages/index.cjs +2 -0
- package/dist/endpoints/NewsroomPrivacyRequests/index.cjs +2 -0
- package/dist/endpoints/NewsroomSubscriptions/index.cjs +2 -0
- package/dist/endpoints/NewsroomThemes/index.cjs +1 -0
- package/dist/endpoints/NewsroomWebhooks/index.cjs +2 -0
- package/dist/endpoints/Newsrooms/index.cjs +2 -0
- package/dist/endpoints/Newsrooms/types.d.ts +3 -0
- package/dist/endpoints/NotificationSubscriptions/index.cjs +2 -0
- package/dist/endpoints/PricingTables/index.cjs +2 -0
- package/dist/endpoints/PricingTables/types.cjs +13 -17
- package/dist/endpoints/PricingTables/types.js +12 -12
- package/dist/endpoints/SenderAddresses/index.cjs +2 -0
- package/dist/endpoints/Snippets/index.cjs +2 -0
- package/dist/endpoints/Stories/Client.cjs +23 -4
- package/dist/endpoints/Stories/Client.js +22 -7
- package/dist/endpoints/Stories/index.cjs +3 -0
- package/dist/endpoints/Stories/scopes.cjs +2 -3
- package/dist/endpoints/Stories/types.cjs +14 -4
- package/dist/endpoints/Stories/types.js +13 -3
- package/dist/endpoints/Subscriptions/index.cjs +2 -0
- package/dist/endpoints/Subscriptions/types.cjs +3 -4
- package/dist/endpoints/Subscriptions/types.js +3 -3
- package/dist/endpoints/index.cjs +3 -3
- package/dist/http/constants.cjs +3 -6
- package/dist/http/index.cjs +8 -8
- package/dist/http/types.cjs +6 -8
- package/dist/http/types.js +6 -6
- package/dist/index.cjs +7 -4
- package/dist/routing.cjs +2 -3
- package/dist/types/BillingCycle.cjs +3 -4
- package/dist/types/BillingCycle.js +3 -3
- package/dist/types/Campaign.cjs +19 -20
- package/dist/types/Campaign.js +18 -18
- package/dist/types/Category.cjs +1 -2
- package/dist/types/Contact.cjs +19 -20
- package/dist/types/Contact.js +18 -18
- package/dist/types/ContactDuplicateSuggestion.cjs +5 -5
- package/dist/types/ContactDuplicateSuggestion.js +3 -4
- package/dist/types/ContactsExport.cjs +4 -5
- package/dist/types/ContactsExport.js +3 -3
- package/dist/types/ContactsScope.cjs +4 -5
- package/dist/types/ContactsScope.js +3 -3
- package/dist/types/CoverageEntry.cjs +7 -8
- package/dist/types/CoverageEntry.js +6 -6
- package/dist/types/Culture.cjs +10 -5
- package/dist/types/Culture.js +9 -3
- package/dist/types/Currency.cjs +3 -4
- package/dist/types/Currency.js +3 -3
- package/dist/types/EmailRecipient.cjs +4 -5
- package/dist/types/EmailRecipient.js +3 -3
- package/dist/types/JobState.cjs +3 -4
- package/dist/types/JobState.js +3 -3
- package/dist/types/License.cjs +10 -11
- package/dist/types/License.js +9 -9
- package/dist/types/Newsroom.cjs +20 -11
- package/dist/types/Newsroom.d.ts +8 -1
- package/dist/types/Newsroom.js +19 -9
- package/dist/types/NewsroomDomain.cjs +7 -8
- package/dist/types/NewsroomDomain.js +6 -6
- package/dist/types/NewsroomGallery.cjs +7 -8
- package/dist/types/NewsroomGallery.js +6 -6
- package/dist/types/NewsroomTheme.cjs +8 -11
- package/dist/types/NewsroomTheme.js +7 -8
- package/dist/types/NewsroomWebhook.cjs +4 -5
- package/dist/types/NewsroomWebhook.js +3 -3
- package/dist/types/NotificationSubscription.cjs +4 -5
- package/dist/types/NotificationSubscription.js +3 -3
- package/dist/types/Permissions.cjs +3 -4
- package/dist/types/Permissions.js +3 -3
- package/dist/types/Plan.cjs +7 -8
- package/dist/types/Plan.js +8 -8
- package/dist/types/PrivacyRequest.cjs +7 -8
- package/dist/types/PrivacyRequest.js +6 -6
- package/dist/types/SenderAddress.cjs +4 -5
- package/dist/types/SenderAddress.js +3 -3
- package/dist/types/SenderDomain.cjs +4 -5
- package/dist/types/SenderDomain.js +3 -3
- package/dist/types/SortOrder.cjs +4 -5
- package/dist/types/SortOrder.js +3 -3
- package/dist/types/Story.cjs +29 -18
- package/dist/types/Story.js +28 -16
- package/dist/types/User.cjs +7 -8
- package/dist/types/User.js +6 -6
- package/dist/types/common/Notification.cjs +4 -5
- package/dist/types/common/Notification.js +3 -3
- package/dist/types/common/OEmbedInfo.cjs +4 -5
- package/dist/types/common/OEmbedInfo.js +3 -3
- package/dist/types/common/Pagination.cjs +4 -4
- package/dist/types/common/Pagination.js +3 -3
- package/dist/types/common/Query.cjs +1 -2
- package/dist/types/common/Query.js +0 -1
- package/dist/types/common/index.cjs +6 -0
- package/dist/types/index.cjs +37 -0
- package/package.json +7 -7
package/dist/api/constants.cjs
CHANGED
|
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.DEFAULT_USER_AGENT = void 0;
|
|
7
|
-
const VERSION = "19.
|
|
7
|
+
const VERSION = "19.6.1";
|
|
8
8
|
const URL = 'https://github.com/prezly/javascript-sdk';
|
|
9
|
-
const DEFAULT_USER_AGENT = `prezly-javascript-sdk/${VERSION} (+${URL})`;
|
|
10
|
-
exports.DEFAULT_USER_AGENT = DEFAULT_USER_AGENT;
|
|
9
|
+
const DEFAULT_USER_AGENT = exports.DEFAULT_USER_AGENT = `prezly-javascript-sdk/${VERSION} (+${URL})`;
|
package/dist/api/constants.js
CHANGED
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
var _Client = require("./Client.cjs");
|
|
7
7
|
Object.keys(_Client).forEach(function (key) {
|
|
8
8
|
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _Client[key]) return;
|
|
9
10
|
Object.defineProperty(exports, key, {
|
|
10
11
|
enumerable: true,
|
|
11
12
|
get: function () {
|
|
@@ -16,6 +17,7 @@ Object.keys(_Client).forEach(function (key) {
|
|
|
16
17
|
var _types = require("./types.cjs");
|
|
17
18
|
Object.keys(_types).forEach(function (key) {
|
|
18
19
|
if (key === "default" || key === "__esModule") return;
|
|
20
|
+
if (key in exports && exports[key] === _types[key]) return;
|
|
19
21
|
Object.defineProperty(exports, key, {
|
|
20
22
|
enumerable: true,
|
|
21
23
|
get: function () {
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
var _Client = require("./Client.cjs");
|
|
7
7
|
Object.keys(_Client).forEach(function (key) {
|
|
8
8
|
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _Client[key]) return;
|
|
9
10
|
Object.defineProperty(exports, key, {
|
|
10
11
|
enumerable: true,
|
|
11
12
|
get: function () {
|
|
@@ -16,6 +17,7 @@ Object.keys(_Client).forEach(function (key) {
|
|
|
16
17
|
var _types = require("./types.cjs");
|
|
17
18
|
Object.keys(_types).forEach(function (key) {
|
|
18
19
|
if (key === "default" || key === "__esModule") return;
|
|
20
|
+
if (key in exports && exports[key] === _types[key]) return;
|
|
19
21
|
Object.defineProperty(exports, key, {
|
|
20
22
|
enumerable: true,
|
|
21
23
|
get: function () {
|
|
@@ -3,17 +3,15 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
7
|
-
let SignupPlan
|
|
8
|
-
exports.SignupPlan = SignupPlan;
|
|
9
|
-
(function (SignupPlan) {
|
|
6
|
+
exports.SignupPlan = exports.SignupCurrency = void 0;
|
|
7
|
+
let SignupPlan = exports.SignupPlan = /*#__PURE__*/function (SignupPlan) {
|
|
10
8
|
SignupPlan["STARTER"] = "starter";
|
|
11
9
|
SignupPlan["CORE"] = "core";
|
|
12
10
|
SignupPlan["PREMIUM"] = "premium";
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
exports.SignupCurrency = SignupCurrency
|
|
16
|
-
(function (SignupCurrency) {
|
|
11
|
+
return SignupPlan;
|
|
12
|
+
}({});
|
|
13
|
+
let SignupCurrency = exports.SignupCurrency = /*#__PURE__*/function (SignupCurrency) {
|
|
17
14
|
SignupCurrency["EUR"] = "eur";
|
|
18
15
|
SignupCurrency["USD"] = "usd";
|
|
19
|
-
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
return SignupPlan;
|
|
6
|
+
}({});
|
|
7
|
+
export let SignupCurrency = /*#__PURE__*/function (SignupCurrency) {
|
|
9
8
|
SignupCurrency["EUR"] = "eur";
|
|
10
9
|
SignupCurrency["USD"] = "usd";
|
|
11
|
-
|
|
10
|
+
return SignupCurrency;
|
|
11
|
+
}({});
|
|
@@ -16,6 +16,7 @@ var _Client = require("./Client.cjs");
|
|
|
16
16
|
Object.keys(_Client).forEach(function (key) {
|
|
17
17
|
if (key === "default" || key === "__esModule") return;
|
|
18
18
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
19
|
+
if (key in exports && exports[key] === _Client[key]) return;
|
|
19
20
|
Object.defineProperty(exports, key, {
|
|
20
21
|
enumerable: true,
|
|
21
22
|
get: function () {
|
|
@@ -27,6 +28,7 @@ var _types = require("./types.cjs");
|
|
|
27
28
|
Object.keys(_types).forEach(function (key) {
|
|
28
29
|
if (key === "default" || key === "__esModule") return;
|
|
29
30
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
31
|
+
if (key in exports && exports[key] === _types[key]) return;
|
|
30
32
|
Object.defineProperty(exports, key, {
|
|
31
33
|
enumerable: true,
|
|
32
34
|
get: function () {
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
var _Client = require("./Client.cjs");
|
|
7
7
|
Object.keys(_Client).forEach(function (key) {
|
|
8
8
|
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _Client[key]) return;
|
|
9
10
|
Object.defineProperty(exports, key, {
|
|
10
11
|
enumerable: true,
|
|
11
12
|
get: function () {
|
|
@@ -16,6 +17,7 @@ Object.keys(_Client).forEach(function (key) {
|
|
|
16
17
|
var _types = require("./types.cjs");
|
|
17
18
|
Object.keys(_types).forEach(function (key) {
|
|
18
19
|
if (key === "default" || key === "__esModule") return;
|
|
20
|
+
if (key in exports && exports[key] === _types[key]) return;
|
|
19
21
|
Object.defineProperty(exports, key, {
|
|
20
22
|
enumerable: true,
|
|
21
23
|
get: function () {
|
|
@@ -16,6 +16,7 @@ var _Client = require("./Client.cjs");
|
|
|
16
16
|
Object.keys(_Client).forEach(function (key) {
|
|
17
17
|
if (key === "default" || key === "__esModule") return;
|
|
18
18
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
19
|
+
if (key in exports && exports[key] === _Client[key]) return;
|
|
19
20
|
Object.defineProperty(exports, key, {
|
|
20
21
|
enumerable: true,
|
|
21
22
|
get: function () {
|
|
@@ -27,6 +28,7 @@ var _types = require("./types.cjs");
|
|
|
27
28
|
Object.keys(_types).forEach(function (key) {
|
|
28
29
|
if (key === "default" || key === "__esModule") return;
|
|
29
30
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
31
|
+
if (key in exports && exports[key] === _types[key]) return;
|
|
30
32
|
Object.defineProperty(exports, key, {
|
|
31
33
|
enumerable: true,
|
|
32
34
|
get: function () {
|
|
@@ -16,6 +16,7 @@ var _Client = require("./Client.cjs");
|
|
|
16
16
|
Object.keys(_Client).forEach(function (key) {
|
|
17
17
|
if (key === "default" || key === "__esModule") return;
|
|
18
18
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
19
|
+
if (key in exports && exports[key] === _Client[key]) return;
|
|
19
20
|
Object.defineProperty(exports, key, {
|
|
20
21
|
enumerable: true,
|
|
21
22
|
get: function () {
|
|
@@ -27,6 +28,7 @@ var _types = require("./types.cjs");
|
|
|
27
28
|
Object.keys(_types).forEach(function (key) {
|
|
28
29
|
if (key === "default" || key === "__esModule") return;
|
|
29
30
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
31
|
+
if (key in exports && exports[key] === _types[key]) return;
|
|
30
32
|
Object.defineProperty(exports, key, {
|
|
31
33
|
enumerable: true,
|
|
32
34
|
get: function () {
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
var _Client = require("./Client.cjs");
|
|
7
7
|
Object.keys(_Client).forEach(function (key) {
|
|
8
8
|
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _Client[key]) return;
|
|
9
10
|
Object.defineProperty(exports, key, {
|
|
10
11
|
enumerable: true,
|
|
11
12
|
get: function () {
|
|
@@ -16,6 +17,7 @@ Object.keys(_Client).forEach(function (key) {
|
|
|
16
17
|
var _types = require("./types.cjs");
|
|
17
18
|
Object.keys(_types).forEach(function (key) {
|
|
18
19
|
if (key === "default" || key === "__esModule") return;
|
|
20
|
+
if (key in exports && exports[key] === _types[key]) return;
|
|
19
21
|
Object.defineProperty(exports, key, {
|
|
20
22
|
enumerable: true,
|
|
21
23
|
get: function () {
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
var _Client = require("./Client.cjs");
|
|
7
7
|
Object.keys(_Client).forEach(function (key) {
|
|
8
8
|
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _Client[key]) return;
|
|
9
10
|
Object.defineProperty(exports, key, {
|
|
10
11
|
enumerable: true,
|
|
11
12
|
get: function () {
|
|
@@ -16,6 +17,7 @@ Object.keys(_Client).forEach(function (key) {
|
|
|
16
17
|
var _types = require("./types.cjs");
|
|
17
18
|
Object.keys(_types).forEach(function (key) {
|
|
18
19
|
if (key === "default" || key === "__esModule") return;
|
|
20
|
+
if (key in exports && exports[key] === _types[key]) return;
|
|
19
21
|
Object.defineProperty(exports, key, {
|
|
20
22
|
enumerable: true,
|
|
21
23
|
get: function () {
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
var _Client = require("./Client.cjs");
|
|
7
7
|
Object.keys(_Client).forEach(function (key) {
|
|
8
8
|
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _Client[key]) return;
|
|
9
10
|
Object.defineProperty(exports, key, {
|
|
10
11
|
enumerable: true,
|
|
11
12
|
get: function () {
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
var _Client = require("./Client.cjs");
|
|
7
7
|
Object.keys(_Client).forEach(function (key) {
|
|
8
8
|
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _Client[key]) return;
|
|
9
10
|
Object.defineProperty(exports, key, {
|
|
10
11
|
enumerable: true,
|
|
11
12
|
get: function () {
|
|
@@ -16,6 +17,7 @@ Object.keys(_Client).forEach(function (key) {
|
|
|
16
17
|
var _types = require("./types.cjs");
|
|
17
18
|
Object.keys(_types).forEach(function (key) {
|
|
18
19
|
if (key === "default" || key === "__esModule") return;
|
|
20
|
+
if (key in exports && exports[key] === _types[key]) return;
|
|
19
21
|
Object.defineProperty(exports, key, {
|
|
20
22
|
enumerable: true,
|
|
21
23
|
get: function () {
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
var _Client = require("./Client.cjs");
|
|
7
7
|
Object.keys(_Client).forEach(function (key) {
|
|
8
8
|
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _Client[key]) return;
|
|
9
10
|
Object.defineProperty(exports, key, {
|
|
10
11
|
enumerable: true,
|
|
11
12
|
get: function () {
|
|
@@ -16,6 +17,7 @@ Object.keys(_Client).forEach(function (key) {
|
|
|
16
17
|
var _types = require("./types.cjs");
|
|
17
18
|
Object.keys(_types).forEach(function (key) {
|
|
18
19
|
if (key === "default" || key === "__esModule") return;
|
|
20
|
+
if (key in exports && exports[key] === _types[key]) return;
|
|
19
21
|
Object.defineProperty(exports, key, {
|
|
20
22
|
enumerable: true,
|
|
21
23
|
get: function () {
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
var _Client = require("./Client.cjs");
|
|
7
7
|
Object.keys(_Client).forEach(function (key) {
|
|
8
8
|
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _Client[key]) return;
|
|
9
10
|
Object.defineProperty(exports, key, {
|
|
10
11
|
enumerable: true,
|
|
11
12
|
get: function () {
|
|
@@ -16,6 +17,7 @@ Object.keys(_Client).forEach(function (key) {
|
|
|
16
17
|
var _types = require("./types.cjs");
|
|
17
18
|
Object.keys(_types).forEach(function (key) {
|
|
18
19
|
if (key === "default" || key === "__esModule") return;
|
|
20
|
+
if (key in exports && exports[key] === _types[key]) return;
|
|
19
21
|
Object.defineProperty(exports, key, {
|
|
20
22
|
enumerable: true,
|
|
21
23
|
get: function () {
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
var _Client = require("./Client.cjs");
|
|
7
7
|
Object.keys(_Client).forEach(function (key) {
|
|
8
8
|
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _Client[key]) return;
|
|
9
10
|
Object.defineProperty(exports, key, {
|
|
10
11
|
enumerable: true,
|
|
11
12
|
get: function () {
|
|
@@ -16,6 +17,7 @@ Object.keys(_Client).forEach(function (key) {
|
|
|
16
17
|
var _types = require("./types.cjs");
|
|
17
18
|
Object.keys(_types).forEach(function (key) {
|
|
18
19
|
if (key === "default" || key === "__esModule") return;
|
|
20
|
+
if (key in exports && exports[key] === _types[key]) return;
|
|
19
21
|
Object.defineProperty(exports, key, {
|
|
20
22
|
enumerable: true,
|
|
21
23
|
get: function () {
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
var _Client = require("./Client.cjs");
|
|
7
7
|
Object.keys(_Client).forEach(function (key) {
|
|
8
8
|
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _Client[key]) return;
|
|
9
10
|
Object.defineProperty(exports, key, {
|
|
10
11
|
enumerable: true,
|
|
11
12
|
get: function () {
|
|
@@ -16,6 +17,7 @@ Object.keys(_Client).forEach(function (key) {
|
|
|
16
17
|
var _types = require("./types.cjs");
|
|
17
18
|
Object.keys(_types).forEach(function (key) {
|
|
18
19
|
if (key === "default" || key === "__esModule") return;
|
|
20
|
+
if (key in exports && exports[key] === _types[key]) return;
|
|
19
21
|
Object.defineProperty(exports, key, {
|
|
20
22
|
enumerable: true,
|
|
21
23
|
get: function () {
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
var _Client = require("./Client.cjs");
|
|
7
7
|
Object.keys(_Client).forEach(function (key) {
|
|
8
8
|
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _Client[key]) return;
|
|
9
10
|
Object.defineProperty(exports, key, {
|
|
10
11
|
enumerable: true,
|
|
11
12
|
get: function () {
|
|
@@ -16,6 +17,7 @@ Object.keys(_Client).forEach(function (key) {
|
|
|
16
17
|
var _types = require("./types.cjs");
|
|
17
18
|
Object.keys(_types).forEach(function (key) {
|
|
18
19
|
if (key === "default" || key === "__esModule") return;
|
|
20
|
+
if (key in exports && exports[key] === _types[key]) return;
|
|
19
21
|
Object.defineProperty(exports, key, {
|
|
20
22
|
enumerable: true,
|
|
21
23
|
get: function () {
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
var _Client = require("./Client.cjs");
|
|
7
7
|
Object.keys(_Client).forEach(function (key) {
|
|
8
8
|
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _Client[key]) return;
|
|
9
10
|
Object.defineProperty(exports, key, {
|
|
10
11
|
enumerable: true,
|
|
11
12
|
get: function () {
|
|
@@ -16,6 +17,7 @@ Object.keys(_Client).forEach(function (key) {
|
|
|
16
17
|
var _types = require("./types.cjs");
|
|
17
18
|
Object.keys(_types).forEach(function (key) {
|
|
18
19
|
if (key === "default" || key === "__esModule") return;
|
|
20
|
+
if (key in exports && exports[key] === _types[key]) return;
|
|
19
21
|
Object.defineProperty(exports, key, {
|
|
20
22
|
enumerable: true,
|
|
21
23
|
get: function () {
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
var _Client = require("./Client.cjs");
|
|
7
7
|
Object.keys(_Client).forEach(function (key) {
|
|
8
8
|
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _Client[key]) return;
|
|
9
10
|
Object.defineProperty(exports, key, {
|
|
10
11
|
enumerable: true,
|
|
11
12
|
get: function () {
|
|
@@ -16,6 +17,7 @@ Object.keys(_Client).forEach(function (key) {
|
|
|
16
17
|
var _types = require("./types.cjs");
|
|
17
18
|
Object.keys(_types).forEach(function (key) {
|
|
18
19
|
if (key === "default" || key === "__esModule") return;
|
|
20
|
+
if (key in exports && exports[key] === _types[key]) return;
|
|
19
21
|
Object.defineProperty(exports, key, {
|
|
20
22
|
enumerable: true,
|
|
21
23
|
get: function () {
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
var _Client = require("./Client.cjs");
|
|
7
7
|
Object.keys(_Client).forEach(function (key) {
|
|
8
8
|
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _Client[key]) return;
|
|
9
10
|
Object.defineProperty(exports, key, {
|
|
10
11
|
enumerable: true,
|
|
11
12
|
get: function () {
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
var _Client = require("./Client.cjs");
|
|
7
7
|
Object.keys(_Client).forEach(function (key) {
|
|
8
8
|
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _Client[key]) return;
|
|
9
10
|
Object.defineProperty(exports, key, {
|
|
10
11
|
enumerable: true,
|
|
11
12
|
get: function () {
|
|
@@ -16,6 +17,7 @@ Object.keys(_Client).forEach(function (key) {
|
|
|
16
17
|
var _types = require("./types.cjs");
|
|
17
18
|
Object.keys(_types).forEach(function (key) {
|
|
18
19
|
if (key === "default" || key === "__esModule") return;
|
|
20
|
+
if (key in exports && exports[key] === _types[key]) return;
|
|
19
21
|
Object.defineProperty(exports, key, {
|
|
20
22
|
enumerable: true,
|
|
21
23
|
get: function () {
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
var _Client = require("./Client.cjs");
|
|
7
7
|
Object.keys(_Client).forEach(function (key) {
|
|
8
8
|
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _Client[key]) return;
|
|
9
10
|
Object.defineProperty(exports, key, {
|
|
10
11
|
enumerable: true,
|
|
11
12
|
get: function () {
|
|
@@ -16,6 +17,7 @@ Object.keys(_Client).forEach(function (key) {
|
|
|
16
17
|
var _types = require("./types.cjs");
|
|
17
18
|
Object.keys(_types).forEach(function (key) {
|
|
18
19
|
if (key === "default" || key === "__esModule") return;
|
|
20
|
+
if (key in exports && exports[key] === _types[key]) return;
|
|
19
21
|
Object.defineProperty(exports, key, {
|
|
20
22
|
enumerable: true,
|
|
21
23
|
get: function () {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { UploadedImage } from '@prezly/uploads';
|
|
1
2
|
import type { CultureRef, Newsroom, Pagination, Query, SortOrder } from '../../types';
|
|
2
3
|
export interface ListOptions {
|
|
3
4
|
limit?: number;
|
|
@@ -86,6 +87,8 @@ export interface UpdateRequest {
|
|
|
86
87
|
timezone?: string;
|
|
87
88
|
email_branding_mode?: Newsroom.EmailBrandingMode;
|
|
88
89
|
email_branding?: Newsroom.EmailBranding;
|
|
90
|
+
email_logo?: UploadedImage | null;
|
|
91
|
+
email_logo_alignment?: Newsroom.EmailLogoAlignment;
|
|
89
92
|
is_privacy_portal_enabled?: boolean;
|
|
90
93
|
/**
|
|
91
94
|
* Available only when license has
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
var _Client = require("./Client.cjs");
|
|
7
7
|
Object.keys(_Client).forEach(function (key) {
|
|
8
8
|
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _Client[key]) return;
|
|
9
10
|
Object.defineProperty(exports, key, {
|
|
10
11
|
enumerable: true,
|
|
11
12
|
get: function () {
|
|
@@ -16,6 +17,7 @@ Object.keys(_Client).forEach(function (key) {
|
|
|
16
17
|
var _types = require("./types.cjs");
|
|
17
18
|
Object.keys(_types).forEach(function (key) {
|
|
18
19
|
if (key === "default" || key === "__esModule") return;
|
|
20
|
+
if (key in exports && exports[key] === _types[key]) return;
|
|
19
21
|
Object.defineProperty(exports, key, {
|
|
20
22
|
enumerable: true,
|
|
21
23
|
get: function () {
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
var _Client = require("./Client.cjs");
|
|
7
7
|
Object.keys(_Client).forEach(function (key) {
|
|
8
8
|
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _Client[key]) return;
|
|
9
10
|
Object.defineProperty(exports, key, {
|
|
10
11
|
enumerable: true,
|
|
11
12
|
get: function () {
|
|
@@ -16,6 +17,7 @@ Object.keys(_Client).forEach(function (key) {
|
|
|
16
17
|
var _types = require("./types.cjs");
|
|
17
18
|
Object.keys(_types).forEach(function (key) {
|
|
18
19
|
if (key === "default" || key === "__esModule") return;
|
|
20
|
+
if (key in exports && exports[key] === _types[key]) return;
|
|
19
21
|
Object.defineProperty(exports, key, {
|
|
20
22
|
enumerable: true,
|
|
21
23
|
get: function () {
|
|
@@ -3,16 +3,13 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
7
|
-
let TableId
|
|
8
|
-
exports.TableId = TableId;
|
|
9
|
-
(function (TableId) {
|
|
6
|
+
exports.TableId = exports.OptionId = exports.LimitId = exports.AddOnId = void 0;
|
|
7
|
+
let TableId = exports.TableId = /*#__PURE__*/function (TableId) {
|
|
10
8
|
TableId["STANDARD"] = "standard";
|
|
11
9
|
TableId["AGENCY"] = "agency";
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
exports.OptionId = OptionId
|
|
15
|
-
(function (OptionId) {
|
|
10
|
+
return TableId;
|
|
11
|
+
}({});
|
|
12
|
+
let OptionId = exports.OptionId = /*#__PURE__*/function (OptionId) {
|
|
16
13
|
OptionId["STARTER"] = "starter";
|
|
17
14
|
OptionId["CORE"] = "core";
|
|
18
15
|
OptionId["PREMIUM"] = "premium";
|
|
@@ -21,19 +18,18 @@ exports.OptionId = OptionId;
|
|
|
21
18
|
OptionId["AGENCY_MEDIUM"] = "agency_medium";
|
|
22
19
|
OptionId["AGENCY_LARGE"] = "agency_large";
|
|
23
20
|
OptionId["AGENCY_HUGE"] = "agency_huge";
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
exports.LimitId = LimitId
|
|
27
|
-
(function (LimitId) {
|
|
21
|
+
return OptionId;
|
|
22
|
+
}({});
|
|
23
|
+
let LimitId = exports.LimitId = /*#__PURE__*/function (LimitId) {
|
|
28
24
|
LimitId["STORIES"] = "stories";
|
|
29
25
|
LimitId["USERS"] = "users";
|
|
30
26
|
LimitId["SITES"] = "sites";
|
|
31
27
|
LimitId["CONTACTS"] = "contacts";
|
|
32
28
|
LimitId["EMAIL_SENDS"] = "email_sends";
|
|
33
29
|
LimitId["CUSTOM_SENDER_ADDRESSES"] = "custom_sender_addresses";
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
exports.AddOnId = AddOnId
|
|
37
|
-
(function (AddOnId) {
|
|
30
|
+
return LimitId;
|
|
31
|
+
}({});
|
|
32
|
+
let AddOnId = exports.AddOnId = /*#__PURE__*/function (AddOnId) {
|
|
38
33
|
AddOnId["SITE"] = "site";
|
|
39
|
-
|
|
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
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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
|
-
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
return LimitId;
|
|
25
|
+
}({});
|
|
26
|
+
export let AddOnId = /*#__PURE__*/function (AddOnId) {
|
|
28
27
|
AddOnId["SITE"] = "site";
|
|
29
|
-
|
|
28
|
+
return AddOnId;
|
|
29
|
+
}({});
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
var _Client = require("./Client.cjs");
|
|
7
7
|
Object.keys(_Client).forEach(function (key) {
|
|
8
8
|
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _Client[key]) return;
|
|
9
10
|
Object.defineProperty(exports, key, {
|
|
10
11
|
enumerable: true,
|
|
11
12
|
get: function () {
|
|
@@ -16,6 +17,7 @@ Object.keys(_Client).forEach(function (key) {
|
|
|
16
17
|
var _types = require("./types.cjs");
|
|
17
18
|
Object.keys(_types).forEach(function (key) {
|
|
18
19
|
if (key === "default" || key === "__esModule") return;
|
|
20
|
+
if (key in exports && exports[key] === _types[key]) return;
|
|
19
21
|
Object.defineProperty(exports, key, {
|
|
20
22
|
enumerable: true,
|
|
21
23
|
get: function () {
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
var _Client = require("./Client.cjs");
|
|
7
7
|
Object.keys(_Client).forEach(function (key) {
|
|
8
8
|
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _Client[key]) return;
|
|
9
10
|
Object.defineProperty(exports, key, {
|
|
10
11
|
enumerable: true,
|
|
11
12
|
get: function () {
|
|
@@ -16,6 +17,7 @@ Object.keys(_Client).forEach(function (key) {
|
|
|
16
17
|
var _types = require("./types.cjs");
|
|
17
18
|
Object.keys(_types).forEach(function (key) {
|
|
18
19
|
if (key === "default" || key === "__esModule") return;
|
|
20
|
+
if (key in exports && exports[key] === _types[key]) return;
|
|
19
21
|
Object.defineProperty(exports, key, {
|
|
20
22
|
enumerable: true,
|
|
21
23
|
get: function () {
|
|
@@ -8,6 +8,15 @@ var _index = require("../../http/index.cjs");
|
|
|
8
8
|
var _routing = require("../../routing.cjs");
|
|
9
9
|
var _index2 = require("../../types/index.cjs");
|
|
10
10
|
var _types = require("./types.cjs");
|
|
11
|
+
/**
|
|
12
|
+
* `uuid` is the preferred way of targeting a Story. Numeric `id` is considered deprecated.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Utility type to forbid arbitrary ad-hoc extensions of generic parameters.
|
|
17
|
+
* @see https://stackoverflow.com/a/69666350
|
|
18
|
+
*/
|
|
19
|
+
|
|
11
20
|
class Client {
|
|
12
21
|
constructor(apiClient) {
|
|
13
22
|
this.apiClient = apiClient;
|
|
@@ -59,6 +68,20 @@ class Client {
|
|
|
59
68
|
* Get story by UUID.
|
|
60
69
|
*/
|
|
61
70
|
|
|
71
|
+
/**
|
|
72
|
+
* Get multiple stories by UUIDs.
|
|
73
|
+
*/
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Get story by deprecated numeric ID, or UUID.
|
|
77
|
+
* @deprecated Please use UUID instead.
|
|
78
|
+
*/
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Get multiple stories by numeric IDs.
|
|
82
|
+
* @deprecated Please use UUID instead.
|
|
83
|
+
*/
|
|
84
|
+
|
|
62
85
|
/**
|
|
63
86
|
* Implementation
|
|
64
87
|
*/
|
|
@@ -148,7 +171,6 @@ class Client {
|
|
|
148
171
|
include,
|
|
149
172
|
force: force || undefined // only pass it if it's true
|
|
150
173
|
},
|
|
151
|
-
|
|
152
174
|
payload
|
|
153
175
|
});
|
|
154
176
|
return story;
|
|
@@ -207,7 +229,6 @@ class Client {
|
|
|
207
229
|
include,
|
|
208
230
|
force: force || undefined // only pass it if it's true
|
|
209
231
|
},
|
|
210
|
-
|
|
211
232
|
payload
|
|
212
233
|
});
|
|
213
234
|
return {
|
|
@@ -236,7 +257,6 @@ class Client {
|
|
|
236
257
|
include,
|
|
237
258
|
force: force || undefined // only pass it if it's true
|
|
238
259
|
},
|
|
239
|
-
|
|
240
260
|
payload
|
|
241
261
|
});
|
|
242
262
|
return story;
|
|
@@ -367,7 +387,6 @@ class Client {
|
|
|
367
387
|
force: force || undefined // only pass it if it's true
|
|
368
388
|
}
|
|
369
389
|
});
|
|
370
|
-
|
|
371
390
|
return story;
|
|
372
391
|
}
|
|
373
392
|
async unpin(id, options) {
|