@prezly/sdk 18.2.2 → 19.0.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 +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/api/types.d.ts +1 -1
- package/dist/endpoints/Accounts/index.cjs +2 -0
- package/dist/endpoints/Billing/index.cjs +2 -0
- package/dist/endpoints/Billing/types.cjs +3 -5
- package/dist/endpoints/CampaignRecipients/Client.d.ts +3 -3
- package/dist/endpoints/CampaignRecipients/index.cjs +2 -0
- package/dist/endpoints/Campaigns/index.cjs +2 -0
- package/dist/endpoints/Contacts/Client.d.ts +2 -2
- package/dist/endpoints/Contacts/index.cjs +2 -0
- package/dist/endpoints/Contacts/types.d.ts +3 -3
- package/dist/endpoints/ContactsExports/index.cjs +2 -0
- package/dist/endpoints/Coverage/Client.d.ts +1 -1
- package/dist/endpoints/Coverage/index.cjs +2 -0
- package/dist/endpoints/Coverage/types.d.ts +1 -1
- package/dist/endpoints/Jobs/index.cjs +2 -0
- package/dist/endpoints/Licenses/index.cjs +1 -0
- package/dist/endpoints/NewsroomCategories/Client.d.ts +1 -1
- package/dist/endpoints/NewsroomCategories/index.cjs +2 -0
- package/dist/endpoints/NewsroomContacts/Client.d.ts +2 -2
- package/dist/endpoints/NewsroomContacts/index.cjs +2 -0
- package/dist/endpoints/NewsroomContacts/types.d.ts +1 -1
- package/dist/endpoints/NewsroomDomains/Client.d.ts +1 -1
- package/dist/endpoints/NewsroomDomains/index.cjs +2 -0
- package/dist/endpoints/NewsroomGalleries/Client.d.ts +2 -2
- package/dist/endpoints/NewsroomGalleries/index.cjs +2 -0
- package/dist/endpoints/NewsroomHub/Client.d.ts +1 -1
- package/dist/endpoints/NewsroomHub/index.cjs +2 -0
- package/dist/endpoints/NewsroomHub/types.d.ts +1 -1
- package/dist/endpoints/NewsroomLanguages/Client.d.ts +1 -1
- package/dist/endpoints/NewsroomLanguages/index.cjs +2 -0
- package/dist/endpoints/NewsroomPrivacyRequests/index.cjs +2 -0
- package/dist/endpoints/NewsroomSubscriptions/Client.d.ts +1 -1
- package/dist/endpoints/NewsroomSubscriptions/index.cjs +2 -0
- package/dist/endpoints/NewsroomThemes/Client.d.ts +2 -2
- package/dist/endpoints/NewsroomThemes/index.cjs +1 -0
- package/dist/endpoints/NewsroomWebhooks/Client.d.ts +1 -1
- package/dist/endpoints/NewsroomWebhooks/index.cjs +2 -0
- package/dist/endpoints/Newsrooms/Client.d.ts +1 -1
- package/dist/endpoints/Newsrooms/index.cjs +2 -0
- package/dist/endpoints/NotificationSubscriptions/index.cjs +2 -0
- package/dist/endpoints/PricingTables/index.cjs +2 -0
- package/dist/endpoints/PricingTables/types.cjs +5 -9
- package/dist/endpoints/SenderAddresses/index.cjs +2 -0
- package/dist/endpoints/Snippets/Client.d.ts +1 -1
- package/dist/endpoints/Snippets/index.cjs +2 -0
- package/dist/endpoints/Stories/Client.cjs +69 -20
- package/dist/endpoints/Stories/Client.d.ts +20 -9
- package/dist/endpoints/Stories/Client.js +68 -23
- 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.d.ts +28 -9
- package/dist/endpoints/Stories/types.js +13 -3
- package/dist/endpoints/Subscriptions/Client.d.ts +1 -1
- package/dist/endpoints/Subscriptions/index.cjs +2 -0
- package/dist/endpoints/Subscriptions/types.cjs +1 -2
- package/dist/endpoints/index.cjs +3 -3
- package/dist/http/constants.cjs +3 -6
- package/dist/http/index.cjs +8 -8
- package/dist/http/lib.cjs +0 -16
- package/dist/http/lib.js +0 -14
- package/dist/http/types.cjs +2 -4
- package/dist/index.cjs +7 -4
- package/dist/routing.cjs +2 -3
- package/dist/types/BillingCycle.cjs +1 -2
- package/dist/types/Campaign.cjs +1 -2
- package/dist/types/Category.cjs +1 -2
- package/dist/types/Category.d.ts +3 -3
- package/dist/types/Contact.cjs +1 -2
- package/dist/types/ContactDuplicateSuggestion.cjs +2 -2
- package/dist/types/ContactDuplicateSuggestion.d.ts +1 -1
- package/dist/types/ContactsExport.cjs +1 -2
- package/dist/types/ContactsExport.d.ts +1 -1
- package/dist/types/ContactsScope.cjs +1 -2
- package/dist/types/ContactsScope.d.ts +1 -1
- package/dist/types/CoverageEntry.cjs +1 -2
- package/dist/types/Culture.cjs +7 -2
- package/dist/types/Culture.d.ts +1 -1
- package/dist/types/Culture.js +6 -0
- package/dist/types/Currency.cjs +1 -2
- package/dist/types/DnsConfigurationInstruction.d.ts +1 -1
- package/dist/types/EmailRecipient.cjs +1 -2
- package/dist/types/JobState.cjs +1 -2
- package/dist/types/JobState.d.ts +1 -1
- package/dist/types/License.cjs +1 -2
- package/dist/types/Newsroom.cjs +4 -2
- package/dist/types/Newsroom.d.ts +2 -2
- package/dist/types/Newsroom.js +3 -0
- package/dist/types/NewsroomDomain.cjs +1 -2
- package/dist/types/NewsroomGallery.cjs +1 -2
- package/dist/types/NewsroomTheme.cjs +3 -5
- package/dist/types/NewsroomTheme.d.ts +1 -1
- package/dist/types/NewsroomTheme.js +1 -1
- package/dist/types/NewsroomWebhook.cjs +1 -2
- package/dist/types/NotificationSubscription.cjs +1 -2
- package/dist/types/Permissions.cjs +1 -2
- package/dist/types/Permissions.d.ts +1 -1
- package/dist/types/Plan.cjs +3 -4
- package/dist/types/PrivacyRequest.cjs +1 -2
- package/dist/types/SenderAddress.cjs +1 -2
- package/dist/types/SenderDomain.cjs +1 -2
- package/dist/types/SortOrder.cjs +1 -2
- package/dist/types/Story.cjs +17 -6
- package/dist/types/Story.d.ts +2 -2
- package/dist/types/Story.js +16 -4
- package/dist/types/User.cjs +1 -2
- package/dist/types/UserAccount.d.ts +1 -1
- package/dist/types/common/Notification.cjs +1 -2
- package/dist/types/common/OEmbedInfo.cjs +1 -2
- package/dist/types/common/Pagination.cjs +2 -2
- package/dist/types/common/Query.cjs +1 -2
- package/dist/types/common/Query.d.ts +1 -1
- package/dist/types/common/index.cjs +6 -0
- package/dist/types/index.cjs +36 -0
- package/package.json +10 -13
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 = "18.
|
|
7
|
+
const VERSION = "18.3.0";
|
|
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
package/dist/api/types.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type Fetch = typeof fetch;
|
|
@@ -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,14 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
7
|
-
let SignupPlan;
|
|
8
|
-
exports.SignupPlan = SignupPlan;
|
|
6
|
+
exports.SignupPlan = exports.SignupCurrency = void 0;
|
|
7
|
+
let SignupPlan = exports.SignupPlan = void 0;
|
|
9
8
|
(function (SignupPlan) {
|
|
10
9
|
SignupPlan["STARTER"] = "starter";
|
|
11
10
|
SignupPlan["CORE"] = "core";
|
|
12
11
|
SignupPlan["PREMIUM"] = "premium";
|
|
13
12
|
})(SignupPlan || (exports.SignupPlan = SignupPlan = {}));
|
|
14
|
-
let SignupCurrency;
|
|
15
|
-
exports.SignupCurrency = SignupCurrency;
|
|
13
|
+
let SignupCurrency = exports.SignupCurrency = void 0;
|
|
16
14
|
(function (SignupCurrency) {
|
|
17
15
|
SignupCurrency["EUR"] = "eur";
|
|
18
16
|
SignupCurrency["USD"] = "usd";
|
|
@@ -3,9 +3,9 @@ import type { Campaign, Contact, ContactsScope, EmailRecipient } from '../../typ
|
|
|
3
3
|
import { Query } from '../../types';
|
|
4
4
|
import type { RecipientsOperationResponse } from '../Campaigns';
|
|
5
5
|
import type { ListOptions, ListResponse, SearchOptions } from './types';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
type CampaignId = Campaign['id'];
|
|
7
|
+
type ContactId = Contact['id'];
|
|
8
|
+
type EmailRecipientId = EmailRecipient['id'];
|
|
9
9
|
export declare class Client {
|
|
10
10
|
private readonly apiClient;
|
|
11
11
|
constructor(apiClient: DeferredJobsApiClient);
|
|
@@ -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 () {
|
|
@@ -2,8 +2,8 @@ import type { ProgressPromise } from '@prezly/progress-promise';
|
|
|
2
2
|
import type { DeferredJobsApiClient } from '../../api';
|
|
3
3
|
import type { Contact } from '../../types';
|
|
4
4
|
import type { BulkDeleteResponse, BulkSelector, CreateRequest, ListOptions, ListResponse, SearchOptions, SearchResponse, UpdateRequest } from './types';
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
type TagId = number;
|
|
6
|
+
type TagName = string;
|
|
7
7
|
export declare class Client {
|
|
8
8
|
private readonly apiClient;
|
|
9
9
|
constructor(apiClient: DeferredJobsApiClient);
|
|
@@ -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 () {
|
|
@@ -14,9 +14,9 @@ export interface ListResponse {
|
|
|
14
14
|
pagination: Pagination;
|
|
15
15
|
sortOrder: SortOrder;
|
|
16
16
|
}
|
|
17
|
-
export
|
|
18
|
-
export
|
|
19
|
-
export
|
|
17
|
+
export type SearchResponse = ListResponse;
|
|
18
|
+
export type CreateRequest = OrganisationCreateRequest | PersonCreateRequest;
|
|
19
|
+
export type UpdateRequest = OrganisationUpdateRequest | PersonUpdateRequest;
|
|
20
20
|
interface BaseContactPayload {
|
|
21
21
|
avatar_image?: string | null;
|
|
22
22
|
languages?: string[];
|
|
@@ -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 () {
|
|
@@ -2,7 +2,7 @@ import type { ProgressPromise } from '@prezly/progress-promise';
|
|
|
2
2
|
import type { DeferredJobsApiClient } from '../../api';
|
|
3
3
|
import type { CoverageEntry, SelectionValue } from '../../types';
|
|
4
4
|
import type { CreateRequest, ListOptions, ListResponse, Scope, SearchOptions, UpdateRequest } from './types';
|
|
5
|
-
|
|
5
|
+
type CoverageId = CoverageEntry['uuid'] | CoverageEntry['id'];
|
|
6
6
|
export declare class Client {
|
|
7
7
|
private readonly apiClient;
|
|
8
8
|
constructor(apiClient: DeferredJobsApiClient);
|
|
@@ -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 () {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { DeferredJobsApiClient } from '../../api';
|
|
2
2
|
import type { Category, Newsroom } from '../../types';
|
|
3
3
|
import type { ListOptions, CreateRequest, UpdateRequest } from './types';
|
|
4
|
-
|
|
4
|
+
type NewsroomId = Newsroom['uuid'] | Newsroom['id'];
|
|
5
5
|
export declare class Client {
|
|
6
6
|
private readonly apiClient;
|
|
7
7
|
constructor(apiClient: DeferredJobsApiClient);
|
|
@@ -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,8 +1,8 @@
|
|
|
1
1
|
import type { DeferredJobsApiClient } from '../../api';
|
|
2
2
|
import type { Newsroom, NewsroomContact } from '../../types';
|
|
3
3
|
import type { ListOptions, SearchOptions, CreateRequest, UpdateRequest } from './types';
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
type NewsroomId = Newsroom['uuid'] | Newsroom['id'];
|
|
5
|
+
type NewsroomContactId = NewsroomContact['uuid'] | NewsroomContact['id'];
|
|
6
6
|
export declare class Client {
|
|
7
7
|
private readonly apiClient;
|
|
8
8
|
constructor(apiClient: DeferredJobsApiClient);
|
|
@@ -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,7 +1,7 @@
|
|
|
1
1
|
import type { DeferredJobsApiClient } from '../../api';
|
|
2
2
|
import type { NewsroomDomain, Newsroom } from '../../types';
|
|
3
3
|
import type { LinkRequest } from './types';
|
|
4
|
-
|
|
4
|
+
type NewsroomId = Newsroom['uuid'] | Newsroom['id'];
|
|
5
5
|
export declare class Client {
|
|
6
6
|
private readonly apiClient;
|
|
7
7
|
constructor(apiClient: DeferredJobsApiClient);
|
|
@@ -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,8 +1,8 @@
|
|
|
1
1
|
import type { DeferredJobsApiClient } from '../../api';
|
|
2
2
|
import type { Newsroom, NewsroomGallery } from '../../types';
|
|
3
3
|
import type { ListOptions, ListResponse, ReorderRequest, CreateRequest, UpdateRequest, SearchOptions } from './types';
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
type NewsroomId = Newsroom['uuid'] | Newsroom['id'];
|
|
5
|
+
type GalleryId = NewsroomGallery['uuid'] | NewsroomGallery['id'];
|
|
6
6
|
export declare class Client {
|
|
7
7
|
private readonly apiClient;
|
|
8
8
|
constructor(apiClient: DeferredJobsApiClient);
|
|
@@ -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,7 +1,7 @@
|
|
|
1
1
|
import type { DeferredJobsApiClient } from '../../api';
|
|
2
2
|
import type { NewsroomRef } from '../../types';
|
|
3
3
|
import type { LinkOptions, HubMember, LinkManyRequest } from './types';
|
|
4
|
-
|
|
4
|
+
type NewsroomId = NewsroomRef['uuid'] | NewsroomRef['id'];
|
|
5
5
|
export declare class Client {
|
|
6
6
|
private readonly apiClient;
|
|
7
7
|
constructor(apiClient: DeferredJobsApiClient);
|
|
@@ -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,7 +1,7 @@
|
|
|
1
1
|
import type { DeferredJobsApiClient } from '../../api';
|
|
2
2
|
import type { CultureRef, Newsroom, NewsroomLanguageSettings } from '../../types';
|
|
3
3
|
import type { SettingsUpdateRequest, ListOptions, ListResponse, UnsafeUpdateErrorResponse } from './types';
|
|
4
|
-
|
|
4
|
+
type NewsroomId = Newsroom['uuid'] | Newsroom['id'];
|
|
5
5
|
export declare class Client {
|
|
6
6
|
private readonly apiClient;
|
|
7
7
|
constructor(apiClient: DeferredJobsApiClient);
|
|
@@ -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,7 +1,7 @@
|
|
|
1
1
|
import type { DeferredJobsApiClient } from '../../api';
|
|
2
2
|
import type { Newsroom } from '../../types';
|
|
3
3
|
import type { CreateRequest } from './types';
|
|
4
|
-
|
|
4
|
+
type NewsroomId = Newsroom['uuid'] | Newsroom['id'];
|
|
5
5
|
/**
|
|
6
6
|
* @deprecated Use Subscriptions instead
|
|
7
7
|
*/
|
|
@@ -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,7 +1,7 @@
|
|
|
1
1
|
import type { DeferredJobsApiClient } from '../../api';
|
|
2
2
|
import type { Newsroom, NewsroomTheme, NewsroomThemePreset } from '../../types';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
type NewsroomId = Newsroom['uuid'] | Newsroom['id'];
|
|
4
|
+
type NewsroomThemeId = NewsroomTheme['id'];
|
|
5
5
|
export declare class Client {
|
|
6
6
|
private readonly apiClient;
|
|
7
7
|
constructor(apiClient: DeferredJobsApiClient);
|
|
@@ -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 () {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { DeferredJobsApiClient } from '../../api';
|
|
2
2
|
import type { Newsroom, NewsroomWebhook } from '../../types';
|
|
3
3
|
import type { CreateRequest, UpdateRequest } from './types';
|
|
4
|
-
|
|
4
|
+
type NewsroomId = Newsroom['uuid'] | Newsroom['id'];
|
|
5
5
|
export declare class Client {
|
|
6
6
|
private readonly apiClient;
|
|
7
7
|
constructor(apiClient: DeferredJobsApiClient);
|
|
@@ -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,7 +1,7 @@
|
|
|
1
1
|
import type { DeferredJobsApiClient } from '../../api';
|
|
2
2
|
import type { Newsroom } from '../../types';
|
|
3
3
|
import type { CreateRequest, ListOptions, ListResponse, SearchOptions, UpdateRequest } from './types';
|
|
4
|
-
|
|
4
|
+
type NewsroomId = Newsroom['uuid'] | Newsroom['id'];
|
|
5
5
|
export declare class Client {
|
|
6
6
|
private readonly apiClient;
|
|
7
7
|
constructor(apiClient: DeferredJobsApiClient);
|
|
@@ -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 () {
|
|
@@ -3,15 +3,13 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
7
|
-
let TableId;
|
|
8
|
-
exports.TableId = TableId;
|
|
6
|
+
exports.TableId = exports.OptionId = exports.LimitId = exports.AddOnId = void 0;
|
|
7
|
+
let TableId = exports.TableId = void 0;
|
|
9
8
|
(function (TableId) {
|
|
10
9
|
TableId["STANDARD"] = "standard";
|
|
11
10
|
TableId["AGENCY"] = "agency";
|
|
12
11
|
})(TableId || (exports.TableId = TableId = {}));
|
|
13
|
-
let OptionId;
|
|
14
|
-
exports.OptionId = OptionId;
|
|
12
|
+
let OptionId = exports.OptionId = void 0;
|
|
15
13
|
(function (OptionId) {
|
|
16
14
|
OptionId["STARTER"] = "starter";
|
|
17
15
|
OptionId["CORE"] = "core";
|
|
@@ -22,8 +20,7 @@ exports.OptionId = OptionId;
|
|
|
22
20
|
OptionId["AGENCY_LARGE"] = "agency_large";
|
|
23
21
|
OptionId["AGENCY_HUGE"] = "agency_huge";
|
|
24
22
|
})(OptionId || (exports.OptionId = OptionId = {}));
|
|
25
|
-
let LimitId;
|
|
26
|
-
exports.LimitId = LimitId;
|
|
23
|
+
let LimitId = exports.LimitId = void 0;
|
|
27
24
|
(function (LimitId) {
|
|
28
25
|
LimitId["STORIES"] = "stories";
|
|
29
26
|
LimitId["USERS"] = "users";
|
|
@@ -32,8 +29,7 @@ exports.LimitId = LimitId;
|
|
|
32
29
|
LimitId["EMAIL_SENDS"] = "email_sends";
|
|
33
30
|
LimitId["CUSTOM_SENDER_ADDRESSES"] = "custom_sender_addresses";
|
|
34
31
|
})(LimitId || (exports.LimitId = LimitId = {}));
|
|
35
|
-
let AddOnId;
|
|
36
|
-
exports.AddOnId = AddOnId;
|
|
32
|
+
let AddOnId = exports.AddOnId = void 0;
|
|
37
33
|
(function (AddOnId) {
|
|
38
34
|
AddOnId["SITE"] = "site";
|
|
39
35
|
})(AddOnId || (exports.AddOnId = AddOnId = {}));
|