@prezly/sdk 19.1.0 → 19.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.
- package/dist/api/DeferredJobsApiClient.cjs +1 -0
- package/dist/api/DeferredJobsApiClient.js +1 -0
- package/dist/api/constants.cjs +3 -2
- package/dist/api/constants.js +1 -1
- package/dist/endpoints/Accounts/index.cjs +0 -2
- package/dist/endpoints/Billing/index.cjs +0 -2
- package/dist/endpoints/Billing/types.cjs +5 -3
- package/dist/endpoints/CampaignRecipients/index.cjs +0 -2
- package/dist/endpoints/Campaigns/index.cjs +0 -2
- package/dist/endpoints/Contacts/index.cjs +0 -2
- package/dist/endpoints/ContactsExports/index.cjs +0 -2
- package/dist/endpoints/Coverage/index.cjs +0 -2
- package/dist/endpoints/Jobs/index.cjs +0 -2
- package/dist/endpoints/Licenses/index.cjs +0 -1
- package/dist/endpoints/NewsroomCategories/index.cjs +0 -2
- package/dist/endpoints/NewsroomContacts/index.cjs +0 -2
- package/dist/endpoints/NewsroomDomains/index.cjs +0 -2
- package/dist/endpoints/NewsroomGalleries/index.cjs +0 -2
- package/dist/endpoints/NewsroomHub/index.cjs +0 -2
- package/dist/endpoints/NewsroomLanguages/index.cjs +0 -2
- package/dist/endpoints/NewsroomPrivacyRequests/index.cjs +0 -2
- package/dist/endpoints/NewsroomSubscriptions/index.cjs +0 -2
- package/dist/endpoints/NewsroomThemes/index.cjs +0 -1
- package/dist/endpoints/NewsroomWebhooks/index.cjs +0 -2
- package/dist/endpoints/Newsrooms/index.cjs +0 -2
- package/dist/endpoints/NotificationSubscriptions/index.cjs +0 -2
- package/dist/endpoints/PricingTables/index.cjs +0 -2
- package/dist/endpoints/PricingTables/types.cjs +9 -5
- package/dist/endpoints/SenderAddresses/index.cjs +0 -2
- package/dist/endpoints/Snippets/index.cjs +0 -2
- package/dist/endpoints/Stories/Client.cjs +4 -23
- package/dist/endpoints/Stories/Client.js +7 -22
- package/dist/endpoints/Stories/index.cjs +0 -3
- package/dist/endpoints/Stories/scopes.cjs +3 -2
- package/dist/endpoints/Stories/types.cjs +4 -14
- package/dist/endpoints/Stories/types.js +3 -13
- package/dist/endpoints/Subscriptions/index.cjs +0 -2
- package/dist/endpoints/Subscriptions/types.cjs +2 -1
- package/dist/endpoints/index.cjs +3 -3
- package/dist/http/constants.cjs +6 -3
- package/dist/http/index.cjs +8 -8
- package/dist/http/types.cjs +4 -2
- package/dist/index.cjs +4 -7
- package/dist/routing.cjs +3 -2
- package/dist/types/BillingCycle.cjs +2 -1
- package/dist/types/Campaign.cjs +2 -1
- package/dist/types/Category.cjs +2 -1
- package/dist/types/Contact.cjs +2 -1
- package/dist/types/ContactDuplicateSuggestion.cjs +2 -2
- package/dist/types/ContactsExport.cjs +2 -1
- package/dist/types/ContactsScope.cjs +2 -1
- package/dist/types/CoverageEntry.cjs +2 -1
- package/dist/types/Culture.cjs +2 -7
- package/dist/types/Culture.js +0 -6
- package/dist/types/Currency.cjs +2 -1
- package/dist/types/EmailRecipient.cjs +2 -1
- package/dist/types/JobState.cjs +2 -1
- package/dist/types/License.cjs +2 -1
- package/dist/types/License.d.ts +1 -0
- package/dist/types/Newsroom.cjs +2 -4
- package/dist/types/Newsroom.js +0 -3
- package/dist/types/NewsroomDomain.cjs +2 -1
- package/dist/types/NewsroomGallery.cjs +2 -1
- package/dist/types/NewsroomTheme.cjs +5 -3
- package/dist/types/NewsroomTheme.js +1 -1
- package/dist/types/NewsroomWebhook.cjs +2 -1
- package/dist/types/NotificationSubscription.cjs +2 -1
- package/dist/types/Permissions.cjs +2 -1
- package/dist/types/Plan.cjs +4 -3
- package/dist/types/PrivacyRequest.cjs +2 -1
- package/dist/types/SenderAddress.cjs +2 -1
- package/dist/types/SenderDomain.cjs +2 -1
- package/dist/types/SortOrder.cjs +2 -1
- package/dist/types/Story.cjs +6 -17
- package/dist/types/Story.d.ts +11 -0
- package/dist/types/Story.js +4 -16
- package/dist/types/User.cjs +2 -1
- package/dist/types/common/Notification.cjs +2 -1
- package/dist/types/common/OEmbedInfo.cjs +2 -1
- package/dist/types/common/Pagination.cjs +2 -2
- package/dist/types/common/Query.cjs +2 -1
- package/dist/types/common/index.cjs +0 -6
- package/dist/types/index.cjs +0 -36
- package/package.json +1 -1
package/dist/api/constants.cjs
CHANGED
|
@@ -4,6 +4,7 @@ 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.1.1";
|
|
8
8
|
const URL = 'https://github.com/prezly/javascript-sdk';
|
|
9
|
-
const DEFAULT_USER_AGENT =
|
|
9
|
+
const DEFAULT_USER_AGENT = `prezly-javascript-sdk/${VERSION} (+${URL})`;
|
|
10
|
+
exports.DEFAULT_USER_AGENT = DEFAULT_USER_AGENT;
|
package/dist/api/constants.js
CHANGED
|
@@ -6,7 +6,6 @@ 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;
|
|
10
9
|
Object.defineProperty(exports, key, {
|
|
11
10
|
enumerable: true,
|
|
12
11
|
get: function () {
|
|
@@ -17,7 +16,6 @@ Object.keys(_Client).forEach(function (key) {
|
|
|
17
16
|
var _types = require("./types.cjs");
|
|
18
17
|
Object.keys(_types).forEach(function (key) {
|
|
19
18
|
if (key === "default" || key === "__esModule") return;
|
|
20
|
-
if (key in exports && exports[key] === _types[key]) return;
|
|
21
19
|
Object.defineProperty(exports, key, {
|
|
22
20
|
enumerable: true,
|
|
23
21
|
get: function () {
|
|
@@ -6,7 +6,6 @@ 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;
|
|
10
9
|
Object.defineProperty(exports, key, {
|
|
11
10
|
enumerable: true,
|
|
12
11
|
get: function () {
|
|
@@ -17,7 +16,6 @@ Object.keys(_Client).forEach(function (key) {
|
|
|
17
16
|
var _types = require("./types.cjs");
|
|
18
17
|
Object.keys(_types).forEach(function (key) {
|
|
19
18
|
if (key === "default" || key === "__esModule") return;
|
|
20
|
-
if (key in exports && exports[key] === _types[key]) return;
|
|
21
19
|
Object.defineProperty(exports, key, {
|
|
22
20
|
enumerable: true,
|
|
23
21
|
get: function () {
|
|
@@ -3,14 +3,16 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
7
|
-
let SignupPlan
|
|
6
|
+
exports.SignupCurrency = exports.SignupPlan = void 0;
|
|
7
|
+
let SignupPlan;
|
|
8
|
+
exports.SignupPlan = SignupPlan;
|
|
8
9
|
(function (SignupPlan) {
|
|
9
10
|
SignupPlan["STARTER"] = "starter";
|
|
10
11
|
SignupPlan["CORE"] = "core";
|
|
11
12
|
SignupPlan["PREMIUM"] = "premium";
|
|
12
13
|
})(SignupPlan || (exports.SignupPlan = SignupPlan = {}));
|
|
13
|
-
let SignupCurrency
|
|
14
|
+
let SignupCurrency;
|
|
15
|
+
exports.SignupCurrency = SignupCurrency;
|
|
14
16
|
(function (SignupCurrency) {
|
|
15
17
|
SignupCurrency["EUR"] = "eur";
|
|
16
18
|
SignupCurrency["USD"] = "usd";
|
|
@@ -16,7 +16,6 @@ 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;
|
|
20
19
|
Object.defineProperty(exports, key, {
|
|
21
20
|
enumerable: true,
|
|
22
21
|
get: function () {
|
|
@@ -28,7 +27,6 @@ var _types = require("./types.cjs");
|
|
|
28
27
|
Object.keys(_types).forEach(function (key) {
|
|
29
28
|
if (key === "default" || key === "__esModule") return;
|
|
30
29
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
31
|
-
if (key in exports && exports[key] === _types[key]) return;
|
|
32
30
|
Object.defineProperty(exports, key, {
|
|
33
31
|
enumerable: true,
|
|
34
32
|
get: function () {
|
|
@@ -6,7 +6,6 @@ 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;
|
|
10
9
|
Object.defineProperty(exports, key, {
|
|
11
10
|
enumerable: true,
|
|
12
11
|
get: function () {
|
|
@@ -17,7 +16,6 @@ Object.keys(_Client).forEach(function (key) {
|
|
|
17
16
|
var _types = require("./types.cjs");
|
|
18
17
|
Object.keys(_types).forEach(function (key) {
|
|
19
18
|
if (key === "default" || key === "__esModule") return;
|
|
20
|
-
if (key in exports && exports[key] === _types[key]) return;
|
|
21
19
|
Object.defineProperty(exports, key, {
|
|
22
20
|
enumerable: true,
|
|
23
21
|
get: function () {
|
|
@@ -16,7 +16,6 @@ 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;
|
|
20
19
|
Object.defineProperty(exports, key, {
|
|
21
20
|
enumerable: true,
|
|
22
21
|
get: function () {
|
|
@@ -28,7 +27,6 @@ var _types = require("./types.cjs");
|
|
|
28
27
|
Object.keys(_types).forEach(function (key) {
|
|
29
28
|
if (key === "default" || key === "__esModule") return;
|
|
30
29
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
31
|
-
if (key in exports && exports[key] === _types[key]) return;
|
|
32
30
|
Object.defineProperty(exports, key, {
|
|
33
31
|
enumerable: true,
|
|
34
32
|
get: function () {
|
|
@@ -16,7 +16,6 @@ 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;
|
|
20
19
|
Object.defineProperty(exports, key, {
|
|
21
20
|
enumerable: true,
|
|
22
21
|
get: function () {
|
|
@@ -28,7 +27,6 @@ var _types = require("./types.cjs");
|
|
|
28
27
|
Object.keys(_types).forEach(function (key) {
|
|
29
28
|
if (key === "default" || key === "__esModule") return;
|
|
30
29
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
31
|
-
if (key in exports && exports[key] === _types[key]) return;
|
|
32
30
|
Object.defineProperty(exports, key, {
|
|
33
31
|
enumerable: true,
|
|
34
32
|
get: function () {
|
|
@@ -6,7 +6,6 @@ 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;
|
|
10
9
|
Object.defineProperty(exports, key, {
|
|
11
10
|
enumerable: true,
|
|
12
11
|
get: function () {
|
|
@@ -17,7 +16,6 @@ Object.keys(_Client).forEach(function (key) {
|
|
|
17
16
|
var _types = require("./types.cjs");
|
|
18
17
|
Object.keys(_types).forEach(function (key) {
|
|
19
18
|
if (key === "default" || key === "__esModule") return;
|
|
20
|
-
if (key in exports && exports[key] === _types[key]) return;
|
|
21
19
|
Object.defineProperty(exports, key, {
|
|
22
20
|
enumerable: true,
|
|
23
21
|
get: function () {
|
|
@@ -6,7 +6,6 @@ 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;
|
|
10
9
|
Object.defineProperty(exports, key, {
|
|
11
10
|
enumerable: true,
|
|
12
11
|
get: function () {
|
|
@@ -17,7 +16,6 @@ Object.keys(_Client).forEach(function (key) {
|
|
|
17
16
|
var _types = require("./types.cjs");
|
|
18
17
|
Object.keys(_types).forEach(function (key) {
|
|
19
18
|
if (key === "default" || key === "__esModule") return;
|
|
20
|
-
if (key in exports && exports[key] === _types[key]) return;
|
|
21
19
|
Object.defineProperty(exports, key, {
|
|
22
20
|
enumerable: true,
|
|
23
21
|
get: function () {
|
|
@@ -6,7 +6,6 @@ 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;
|
|
10
9
|
Object.defineProperty(exports, key, {
|
|
11
10
|
enumerable: true,
|
|
12
11
|
get: function () {
|
|
@@ -6,7 +6,6 @@ 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;
|
|
10
9
|
Object.defineProperty(exports, key, {
|
|
11
10
|
enumerable: true,
|
|
12
11
|
get: function () {
|
|
@@ -17,7 +16,6 @@ Object.keys(_Client).forEach(function (key) {
|
|
|
17
16
|
var _types = require("./types.cjs");
|
|
18
17
|
Object.keys(_types).forEach(function (key) {
|
|
19
18
|
if (key === "default" || key === "__esModule") return;
|
|
20
|
-
if (key in exports && exports[key] === _types[key]) return;
|
|
21
19
|
Object.defineProperty(exports, key, {
|
|
22
20
|
enumerable: true,
|
|
23
21
|
get: function () {
|
|
@@ -6,7 +6,6 @@ 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;
|
|
10
9
|
Object.defineProperty(exports, key, {
|
|
11
10
|
enumerable: true,
|
|
12
11
|
get: function () {
|
|
@@ -17,7 +16,6 @@ Object.keys(_Client).forEach(function (key) {
|
|
|
17
16
|
var _types = require("./types.cjs");
|
|
18
17
|
Object.keys(_types).forEach(function (key) {
|
|
19
18
|
if (key === "default" || key === "__esModule") return;
|
|
20
|
-
if (key in exports && exports[key] === _types[key]) return;
|
|
21
19
|
Object.defineProperty(exports, key, {
|
|
22
20
|
enumerable: true,
|
|
23
21
|
get: function () {
|
|
@@ -6,7 +6,6 @@ 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;
|
|
10
9
|
Object.defineProperty(exports, key, {
|
|
11
10
|
enumerable: true,
|
|
12
11
|
get: function () {
|
|
@@ -17,7 +16,6 @@ Object.keys(_Client).forEach(function (key) {
|
|
|
17
16
|
var _types = require("./types.cjs");
|
|
18
17
|
Object.keys(_types).forEach(function (key) {
|
|
19
18
|
if (key === "default" || key === "__esModule") return;
|
|
20
|
-
if (key in exports && exports[key] === _types[key]) return;
|
|
21
19
|
Object.defineProperty(exports, key, {
|
|
22
20
|
enumerable: true,
|
|
23
21
|
get: function () {
|
|
@@ -6,7 +6,6 @@ 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;
|
|
10
9
|
Object.defineProperty(exports, key, {
|
|
11
10
|
enumerable: true,
|
|
12
11
|
get: function () {
|
|
@@ -17,7 +16,6 @@ Object.keys(_Client).forEach(function (key) {
|
|
|
17
16
|
var _types = require("./types.cjs");
|
|
18
17
|
Object.keys(_types).forEach(function (key) {
|
|
19
18
|
if (key === "default" || key === "__esModule") return;
|
|
20
|
-
if (key in exports && exports[key] === _types[key]) return;
|
|
21
19
|
Object.defineProperty(exports, key, {
|
|
22
20
|
enumerable: true,
|
|
23
21
|
get: function () {
|
|
@@ -6,7 +6,6 @@ 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;
|
|
10
9
|
Object.defineProperty(exports, key, {
|
|
11
10
|
enumerable: true,
|
|
12
11
|
get: function () {
|
|
@@ -17,7 +16,6 @@ Object.keys(_Client).forEach(function (key) {
|
|
|
17
16
|
var _types = require("./types.cjs");
|
|
18
17
|
Object.keys(_types).forEach(function (key) {
|
|
19
18
|
if (key === "default" || key === "__esModule") return;
|
|
20
|
-
if (key in exports && exports[key] === _types[key]) return;
|
|
21
19
|
Object.defineProperty(exports, key, {
|
|
22
20
|
enumerable: true,
|
|
23
21
|
get: function () {
|
|
@@ -6,7 +6,6 @@ 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;
|
|
10
9
|
Object.defineProperty(exports, key, {
|
|
11
10
|
enumerable: true,
|
|
12
11
|
get: function () {
|
|
@@ -17,7 +16,6 @@ Object.keys(_Client).forEach(function (key) {
|
|
|
17
16
|
var _types = require("./types.cjs");
|
|
18
17
|
Object.keys(_types).forEach(function (key) {
|
|
19
18
|
if (key === "default" || key === "__esModule") return;
|
|
20
|
-
if (key in exports && exports[key] === _types[key]) return;
|
|
21
19
|
Object.defineProperty(exports, key, {
|
|
22
20
|
enumerable: true,
|
|
23
21
|
get: function () {
|
|
@@ -6,7 +6,6 @@ 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;
|
|
10
9
|
Object.defineProperty(exports, key, {
|
|
11
10
|
enumerable: true,
|
|
12
11
|
get: function () {
|
|
@@ -17,7 +16,6 @@ Object.keys(_Client).forEach(function (key) {
|
|
|
17
16
|
var _types = require("./types.cjs");
|
|
18
17
|
Object.keys(_types).forEach(function (key) {
|
|
19
18
|
if (key === "default" || key === "__esModule") return;
|
|
20
|
-
if (key in exports && exports[key] === _types[key]) return;
|
|
21
19
|
Object.defineProperty(exports, key, {
|
|
22
20
|
enumerable: true,
|
|
23
21
|
get: function () {
|
|
@@ -6,7 +6,6 @@ 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;
|
|
10
9
|
Object.defineProperty(exports, key, {
|
|
11
10
|
enumerable: true,
|
|
12
11
|
get: function () {
|
|
@@ -17,7 +16,6 @@ Object.keys(_Client).forEach(function (key) {
|
|
|
17
16
|
var _types = require("./types.cjs");
|
|
18
17
|
Object.keys(_types).forEach(function (key) {
|
|
19
18
|
if (key === "default" || key === "__esModule") return;
|
|
20
|
-
if (key in exports && exports[key] === _types[key]) return;
|
|
21
19
|
Object.defineProperty(exports, key, {
|
|
22
20
|
enumerable: true,
|
|
23
21
|
get: function () {
|
|
@@ -6,7 +6,6 @@ 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;
|
|
10
9
|
Object.defineProperty(exports, key, {
|
|
11
10
|
enumerable: true,
|
|
12
11
|
get: function () {
|
|
@@ -6,7 +6,6 @@ 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;
|
|
10
9
|
Object.defineProperty(exports, key, {
|
|
11
10
|
enumerable: true,
|
|
12
11
|
get: function () {
|
|
@@ -17,7 +16,6 @@ Object.keys(_Client).forEach(function (key) {
|
|
|
17
16
|
var _types = require("./types.cjs");
|
|
18
17
|
Object.keys(_types).forEach(function (key) {
|
|
19
18
|
if (key === "default" || key === "__esModule") return;
|
|
20
|
-
if (key in exports && exports[key] === _types[key]) return;
|
|
21
19
|
Object.defineProperty(exports, key, {
|
|
22
20
|
enumerable: true,
|
|
23
21
|
get: function () {
|
|
@@ -6,7 +6,6 @@ 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;
|
|
10
9
|
Object.defineProperty(exports, key, {
|
|
11
10
|
enumerable: true,
|
|
12
11
|
get: function () {
|
|
@@ -17,7 +16,6 @@ Object.keys(_Client).forEach(function (key) {
|
|
|
17
16
|
var _types = require("./types.cjs");
|
|
18
17
|
Object.keys(_types).forEach(function (key) {
|
|
19
18
|
if (key === "default" || key === "__esModule") return;
|
|
20
|
-
if (key in exports && exports[key] === _types[key]) return;
|
|
21
19
|
Object.defineProperty(exports, key, {
|
|
22
20
|
enumerable: true,
|
|
23
21
|
get: function () {
|
|
@@ -6,7 +6,6 @@ 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;
|
|
10
9
|
Object.defineProperty(exports, key, {
|
|
11
10
|
enumerable: true,
|
|
12
11
|
get: function () {
|
|
@@ -17,7 +16,6 @@ Object.keys(_Client).forEach(function (key) {
|
|
|
17
16
|
var _types = require("./types.cjs");
|
|
18
17
|
Object.keys(_types).forEach(function (key) {
|
|
19
18
|
if (key === "default" || key === "__esModule") return;
|
|
20
|
-
if (key in exports && exports[key] === _types[key]) return;
|
|
21
19
|
Object.defineProperty(exports, key, {
|
|
22
20
|
enumerable: true,
|
|
23
21
|
get: function () {
|
|
@@ -6,7 +6,6 @@ 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;
|
|
10
9
|
Object.defineProperty(exports, key, {
|
|
11
10
|
enumerable: true,
|
|
12
11
|
get: function () {
|
|
@@ -17,7 +16,6 @@ Object.keys(_Client).forEach(function (key) {
|
|
|
17
16
|
var _types = require("./types.cjs");
|
|
18
17
|
Object.keys(_types).forEach(function (key) {
|
|
19
18
|
if (key === "default" || key === "__esModule") return;
|
|
20
|
-
if (key in exports && exports[key] === _types[key]) return;
|
|
21
19
|
Object.defineProperty(exports, key, {
|
|
22
20
|
enumerable: true,
|
|
23
21
|
get: function () {
|
|
@@ -3,13 +3,15 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
7
|
-
let TableId
|
|
6
|
+
exports.AddOnId = exports.LimitId = exports.OptionId = exports.TableId = void 0;
|
|
7
|
+
let TableId;
|
|
8
|
+
exports.TableId = TableId;
|
|
8
9
|
(function (TableId) {
|
|
9
10
|
TableId["STANDARD"] = "standard";
|
|
10
11
|
TableId["AGENCY"] = "agency";
|
|
11
12
|
})(TableId || (exports.TableId = TableId = {}));
|
|
12
|
-
let OptionId
|
|
13
|
+
let OptionId;
|
|
14
|
+
exports.OptionId = OptionId;
|
|
13
15
|
(function (OptionId) {
|
|
14
16
|
OptionId["STARTER"] = "starter";
|
|
15
17
|
OptionId["CORE"] = "core";
|
|
@@ -20,7 +22,8 @@ let OptionId = exports.OptionId = void 0;
|
|
|
20
22
|
OptionId["AGENCY_LARGE"] = "agency_large";
|
|
21
23
|
OptionId["AGENCY_HUGE"] = "agency_huge";
|
|
22
24
|
})(OptionId || (exports.OptionId = OptionId = {}));
|
|
23
|
-
let LimitId
|
|
25
|
+
let LimitId;
|
|
26
|
+
exports.LimitId = LimitId;
|
|
24
27
|
(function (LimitId) {
|
|
25
28
|
LimitId["STORIES"] = "stories";
|
|
26
29
|
LimitId["USERS"] = "users";
|
|
@@ -29,7 +32,8 @@ let LimitId = exports.LimitId = void 0;
|
|
|
29
32
|
LimitId["EMAIL_SENDS"] = "email_sends";
|
|
30
33
|
LimitId["CUSTOM_SENDER_ADDRESSES"] = "custom_sender_addresses";
|
|
31
34
|
})(LimitId || (exports.LimitId = LimitId = {}));
|
|
32
|
-
let AddOnId
|
|
35
|
+
let AddOnId;
|
|
36
|
+
exports.AddOnId = AddOnId;
|
|
33
37
|
(function (AddOnId) {
|
|
34
38
|
AddOnId["SITE"] = "site";
|
|
35
39
|
})(AddOnId || (exports.AddOnId = AddOnId = {}));
|
|
@@ -6,7 +6,6 @@ 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;
|
|
10
9
|
Object.defineProperty(exports, key, {
|
|
11
10
|
enumerable: true,
|
|
12
11
|
get: function () {
|
|
@@ -17,7 +16,6 @@ Object.keys(_Client).forEach(function (key) {
|
|
|
17
16
|
var _types = require("./types.cjs");
|
|
18
17
|
Object.keys(_types).forEach(function (key) {
|
|
19
18
|
if (key === "default" || key === "__esModule") return;
|
|
20
|
-
if (key in exports && exports[key] === _types[key]) return;
|
|
21
19
|
Object.defineProperty(exports, key, {
|
|
22
20
|
enumerable: true,
|
|
23
21
|
get: function () {
|
|
@@ -6,7 +6,6 @@ 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;
|
|
10
9
|
Object.defineProperty(exports, key, {
|
|
11
10
|
enumerable: true,
|
|
12
11
|
get: function () {
|
|
@@ -17,7 +16,6 @@ Object.keys(_Client).forEach(function (key) {
|
|
|
17
16
|
var _types = require("./types.cjs");
|
|
18
17
|
Object.keys(_types).forEach(function (key) {
|
|
19
18
|
if (key === "default" || key === "__esModule") return;
|
|
20
|
-
if (key in exports && exports[key] === _types[key]) return;
|
|
21
19
|
Object.defineProperty(exports, key, {
|
|
22
20
|
enumerable: true,
|
|
23
21
|
get: function () {
|
|
@@ -8,15 +8,6 @@ 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
|
-
|
|
20
11
|
class Client {
|
|
21
12
|
constructor(apiClient) {
|
|
22
13
|
this.apiClient = apiClient;
|
|
@@ -68,20 +59,6 @@ class Client {
|
|
|
68
59
|
* Get story by UUID.
|
|
69
60
|
*/
|
|
70
61
|
|
|
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
|
-
|
|
85
62
|
/**
|
|
86
63
|
* Implementation
|
|
87
64
|
*/
|
|
@@ -171,6 +148,7 @@ class Client {
|
|
|
171
148
|
include,
|
|
172
149
|
force: force || undefined // only pass it if it's true
|
|
173
150
|
},
|
|
151
|
+
|
|
174
152
|
payload
|
|
175
153
|
});
|
|
176
154
|
return story;
|
|
@@ -229,6 +207,7 @@ class Client {
|
|
|
229
207
|
include,
|
|
230
208
|
force: force || undefined // only pass it if it's true
|
|
231
209
|
},
|
|
210
|
+
|
|
232
211
|
payload
|
|
233
212
|
});
|
|
234
213
|
return {
|
|
@@ -257,6 +236,7 @@ class Client {
|
|
|
257
236
|
include,
|
|
258
237
|
force: force || undefined // only pass it if it's true
|
|
259
238
|
},
|
|
239
|
+
|
|
260
240
|
payload
|
|
261
241
|
});
|
|
262
242
|
return story;
|
|
@@ -387,6 +367,7 @@ class Client {
|
|
|
387
367
|
force: force || undefined // only pass it if it's true
|
|
388
368
|
}
|
|
389
369
|
});
|
|
370
|
+
|
|
390
371
|
return story;
|
|
391
372
|
}
|
|
392
373
|
async unpin(id, options) {
|
|
@@ -1,14 +1,9 @@
|
|
|
1
1
|
import { ApiError, HttpCodes } from "../../http/index.js";
|
|
2
2
|
import { routing } from "../../routing.js";
|
|
3
3
|
import { SortOrder } from "../../types/index.js";
|
|
4
|
-
import { EXTENDED_STORY_INCLUDED_EXTRA_FIELDS } from "./types.js";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
*/
|
|
8
|
-
/**
|
|
9
|
-
* Utility type to forbid arbitrary ad-hoc extensions of generic parameters.
|
|
10
|
-
* @see https://stackoverflow.com/a/69666350
|
|
11
|
-
*/
|
|
4
|
+
import { EXTENDED_STORY_INCLUDED_EXTRA_FIELDS } from "./types.js"; /**
|
|
5
|
+
* `uuid` is the preferred way of targeting a Story. Numeric `id` is considered deprecated.
|
|
6
|
+
*/
|
|
12
7
|
export class Client {
|
|
13
8
|
constructor(apiClient) {
|
|
14
9
|
this.apiClient = apiClient;
|
|
@@ -60,20 +55,6 @@ export class Client {
|
|
|
60
55
|
* Get story by UUID.
|
|
61
56
|
*/
|
|
62
57
|
|
|
63
|
-
/**
|
|
64
|
-
* Get multiple stories by UUIDs.
|
|
65
|
-
*/
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* Get story by deprecated numeric ID, or UUID.
|
|
69
|
-
* @deprecated Please use UUID instead.
|
|
70
|
-
*/
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* Get multiple stories by numeric IDs.
|
|
74
|
-
* @deprecated Please use UUID instead.
|
|
75
|
-
*/
|
|
76
|
-
|
|
77
58
|
/**
|
|
78
59
|
* Implementation
|
|
79
60
|
*/
|
|
@@ -163,6 +144,7 @@ export class Client {
|
|
|
163
144
|
include,
|
|
164
145
|
force: force || undefined // only pass it if it's true
|
|
165
146
|
},
|
|
147
|
+
|
|
166
148
|
payload
|
|
167
149
|
});
|
|
168
150
|
return story;
|
|
@@ -221,6 +203,7 @@ export class Client {
|
|
|
221
203
|
include,
|
|
222
204
|
force: force || undefined // only pass it if it's true
|
|
223
205
|
},
|
|
206
|
+
|
|
224
207
|
payload
|
|
225
208
|
});
|
|
226
209
|
return {
|
|
@@ -249,6 +232,7 @@ export class Client {
|
|
|
249
232
|
include,
|
|
250
233
|
force: force || undefined // only pass it if it's true
|
|
251
234
|
},
|
|
235
|
+
|
|
252
236
|
payload
|
|
253
237
|
});
|
|
254
238
|
return story;
|
|
@@ -379,6 +363,7 @@ export class Client {
|
|
|
379
363
|
force: force || undefined // only pass it if it's true
|
|
380
364
|
}
|
|
381
365
|
});
|
|
366
|
+
|
|
382
367
|
return story;
|
|
383
368
|
}
|
|
384
369
|
async unpin(id, options) {
|
|
@@ -6,7 +6,6 @@ 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;
|
|
10
9
|
Object.defineProperty(exports, key, {
|
|
11
10
|
enumerable: true,
|
|
12
11
|
get: function () {
|
|
@@ -17,7 +16,6 @@ Object.keys(_Client).forEach(function (key) {
|
|
|
17
16
|
var _types = require("./types.cjs");
|
|
18
17
|
Object.keys(_types).forEach(function (key) {
|
|
19
18
|
if (key === "default" || key === "__esModule") return;
|
|
20
|
-
if (key in exports && exports[key] === _types[key]) return;
|
|
21
19
|
Object.defineProperty(exports, key, {
|
|
22
20
|
enumerable: true,
|
|
23
21
|
get: function () {
|
|
@@ -28,7 +26,6 @@ Object.keys(_types).forEach(function (key) {
|
|
|
28
26
|
var _scopes = require("./scopes.cjs");
|
|
29
27
|
Object.keys(_scopes).forEach(function (key) {
|
|
30
28
|
if (key === "default" || key === "__esModule") return;
|
|
31
|
-
if (key in exports && exports[key] === _scopes[key]) return;
|
|
32
29
|
Object.defineProperty(exports, key, {
|
|
33
30
|
enumerable: true,
|
|
34
31
|
get: function () {
|
|
@@ -5,10 +5,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.Scope = void 0;
|
|
7
7
|
var _index = require("../../types/index.cjs");
|
|
8
|
-
const Scope =
|
|
8
|
+
const Scope = {
|
|
9
9
|
EXCLUDE_ARCHIVED_NEWSROOMS: {
|
|
10
10
|
'newsroom.status': {
|
|
11
11
|
$nin: [_index.Newsroom.Status.ARCHIVED]
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
|
-
};
|
|
14
|
+
};
|
|
15
|
+
exports.Scope = Scope;
|