@prezly/sdk 21.15.0 → 21.17.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/Client.cjs +1 -0
- package/dist/Client.d.ts +2 -1
- package/dist/Client.js +2 -1
- package/dist/api/constants.cjs +1 -1
- package/dist/api/constants.js +1 -1
- package/dist/endpoints/Billing/types.cjs +6 -6
- package/dist/endpoints/Billing/types.js +6 -6
- package/dist/endpoints/ContactTagGroups/types.cjs +3 -3
- package/dist/endpoints/ContactTagGroups/types.js +3 -3
- package/dist/endpoints/CoverageIntegrations/Client.cjs +52 -0
- package/dist/endpoints/CoverageIntegrations/Client.d.ts +13 -0
- package/dist/endpoints/CoverageIntegrations/Client.js +46 -0
- package/dist/endpoints/CoverageIntegrations/index.cjs +27 -0
- package/dist/endpoints/CoverageIntegrations/index.d.ts +2 -0
- package/dist/endpoints/CoverageIntegrations/index.js +2 -0
- package/dist/endpoints/CoverageIntegrations/types.cjs +4 -0
- package/dist/endpoints/CoverageIntegrations/types.d.ts +18 -0
- package/dist/endpoints/CoverageIntegrations/types.js +2 -0
- package/dist/endpoints/PricingTables/types.cjs +12 -12
- package/dist/endpoints/PricingTables/types.js +12 -12
- package/dist/endpoints/Subscriptions/types.cjs +3 -3
- package/dist/endpoints/Subscriptions/types.js +3 -3
- package/dist/endpoints/index.cjs +3 -1
- package/dist/endpoints/index.d.ts +1 -0
- package/dist/endpoints/index.js +1 -0
- package/dist/http/types.cjs +6 -6
- package/dist/http/types.js +6 -6
- package/dist/routing.cjs +1 -0
- package/dist/routing.d.ts +1 -0
- package/dist/routing.js +1 -0
- package/dist/types/BillingCycle.cjs +3 -3
- package/dist/types/BillingCycle.js +3 -3
- package/dist/types/Campaign.cjs +18 -18
- package/dist/types/Campaign.js +18 -18
- package/dist/types/Category.cjs +1 -0
- package/dist/types/Category.js +1 -0
- package/dist/types/Contact.cjs +18 -18
- package/dist/types/Contact.d.ts +38 -10
- package/dist/types/Contact.js +18 -18
- package/dist/types/ContactDuplicateSuggestion.cjs +3 -3
- package/dist/types/ContactDuplicateSuggestion.js +4 -3
- package/dist/types/ContactTag.cjs +2 -1
- package/dist/types/ContactTag.js +2 -1
- package/dist/types/ContactsExport.cjs +3 -3
- package/dist/types/ContactsExport.js +3 -3
- package/dist/types/ContactsScope.cjs +3 -3
- package/dist/types/ContactsScope.js +3 -3
- package/dist/types/CoverageEntry.cjs +6 -6
- package/dist/types/CoverageEntry.js +6 -6
- package/dist/types/CoverageIntegration.cjs +1 -0
- package/dist/types/CoverageIntegration.d.ts +18 -0
- package/dist/types/CoverageIntegration.js +1 -0
- package/dist/types/CoverageIntegrationRun.cjs +12 -0
- package/dist/types/CoverageIntegrationRun.d.ts +19 -0
- package/dist/types/CoverageIntegrationRun.js +6 -0
- package/dist/types/Culture.cjs +3 -3
- package/dist/types/Culture.js +3 -3
- package/dist/types/Currency.cjs +3 -3
- package/dist/types/Currency.js +3 -3
- package/dist/types/EmailRecipient.cjs +3 -3
- package/dist/types/EmailRecipient.js +3 -3
- package/dist/types/JobState.cjs +3 -3
- package/dist/types/JobState.js +3 -3
- package/dist/types/License.cjs +9 -9
- package/dist/types/License.js +9 -9
- package/dist/types/Newsroom.cjs +12 -12
- package/dist/types/Newsroom.js +12 -12
- package/dist/types/NewsroomDomain.cjs +6 -6
- package/dist/types/NewsroomDomain.js +6 -6
- package/dist/types/NewsroomGallery.cjs +6 -6
- package/dist/types/NewsroomGallery.js +6 -6
- package/dist/types/NewsroomTheme.cjs +8 -7
- package/dist/types/NewsroomTheme.js +8 -7
- package/dist/types/NewsroomWebhook.cjs +3 -3
- package/dist/types/NewsroomWebhook.js +3 -3
- package/dist/types/NotificationSubscription.cjs +3 -3
- package/dist/types/NotificationSubscription.js +3 -3
- package/dist/types/Permissions.cjs +3 -3
- package/dist/types/Permissions.js +3 -3
- package/dist/types/Plan.cjs +7 -7
- package/dist/types/Plan.js +8 -8
- package/dist/types/PrivacyRequest.cjs +6 -6
- package/dist/types/PrivacyRequest.js +6 -6
- package/dist/types/SenderAddress.cjs +3 -3
- package/dist/types/SenderAddress.js +3 -3
- package/dist/types/SenderDomain.cjs +3 -3
- package/dist/types/SenderDomain.js +3 -3
- package/dist/types/SortOrder.cjs +3 -3
- package/dist/types/SortOrder.js +3 -3
- package/dist/types/Story.cjs +12 -12
- package/dist/types/Story.js +12 -12
- package/dist/types/User.cjs +6 -6
- package/dist/types/User.js +6 -6
- package/dist/types/common/Notification.cjs +3 -3
- package/dist/types/common/Notification.js +3 -3
- package/dist/types/common/OEmbedInfo.cjs +3 -3
- package/dist/types/common/OEmbedInfo.js +3 -3
- package/dist/types/common/Pagination.cjs +3 -3
- package/dist/types/common/Pagination.js +3 -3
- package/dist/types/common/Query.js +1 -0
- package/dist/types/index.cjs +22 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.js +2 -0
- package/package.json +1 -1
package/dist/Client.cjs
CHANGED
|
@@ -33,6 +33,7 @@ function createClient({
|
|
|
33
33
|
contactTagGroups: _index2.ContactTagGroups.createClient(api),
|
|
34
34
|
contactsExports: _index2.ContactsExports.createClient(api),
|
|
35
35
|
coverage: _index2.Coverage.createClient(api),
|
|
36
|
+
coverageIntegrations: _index2.CoverageIntegrations.createClient(api),
|
|
36
37
|
jobs: _index2.Jobs.createClient(api),
|
|
37
38
|
licenses: _index2.Licenses.createClient(api),
|
|
38
39
|
newsrooms: _index2.Newsrooms.createClient(api),
|
package/dist/Client.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { DeferredJobsApiClient } from './api';
|
|
2
2
|
import { type Fetch } from './api';
|
|
3
|
-
import { Accounts, Billing, NewsroomSubscriptions, Campaigns, CampaignRecipients, Contacts, ContactTags, ContactTagGroups, ContactsExports, Coverage, Jobs, Licenses, Newsrooms, NewsroomCategories, NewsroomContacts, NewsroomLanguages, NewsroomThemes, NewsroomWebhooks, NewsroomPrivacyRequests, NewsroomDomains, NewsroomGalleries, NewsroomHub, PricingTables, SenderAddresses, Stories, Snippets, Subscriptions, NotificationSubscriptions } from './endpoints';
|
|
3
|
+
import { Accounts, Billing, NewsroomSubscriptions, Campaigns, CampaignRecipients, Contacts, ContactTags, ContactTagGroups, ContactsExports, Coverage, Jobs, Licenses, Newsrooms, NewsroomCategories, NewsroomContacts, NewsroomLanguages, NewsroomThemes, NewsroomWebhooks, NewsroomPrivacyRequests, NewsroomDomains, NewsroomGalleries, NewsroomHub, PricingTables, SenderAddresses, Stories, Snippets, Subscriptions, NotificationSubscriptions, CoverageIntegrations } from './endpoints';
|
|
4
4
|
import type { HeadersMap } from './http';
|
|
5
5
|
export interface ClientOptions {
|
|
6
6
|
accessToken: string;
|
|
@@ -19,6 +19,7 @@ export interface Client {
|
|
|
19
19
|
contactTagGroups: ContactTagGroups.Client;
|
|
20
20
|
contactsExports: ContactsExports.Client;
|
|
21
21
|
coverage: Coverage.Client;
|
|
22
|
+
coverageIntegrations: CoverageIntegrations.Client;
|
|
22
23
|
jobs: Jobs.Client;
|
|
23
24
|
licenses: Licenses.Client;
|
|
24
25
|
newsrooms: Newsrooms.Client;
|
package/dist/Client.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createApiClient, createDeferredJobsApiClient } from "./api/index.js";
|
|
2
|
-
import { Accounts, Billing, NewsroomSubscriptions, Campaigns, CampaignRecipients, Contacts, ContactTags, ContactTagGroups, ContactsExports, Coverage, Jobs, Licenses, Newsrooms, NewsroomCategories, NewsroomContacts, NewsroomLanguages, NewsroomThemes, NewsroomWebhooks, NewsroomPrivacyRequests, NewsroomDomains, NewsroomGalleries, NewsroomHub, PricingTables, SenderAddresses, Stories, Snippets, Subscriptions, NotificationSubscriptions } from "./endpoints/index.js";
|
|
2
|
+
import { Accounts, Billing, NewsroomSubscriptions, Campaigns, CampaignRecipients, Contacts, ContactTags, ContactTagGroups, ContactsExports, Coverage, Jobs, Licenses, Newsrooms, NewsroomCategories, NewsroomContacts, NewsroomLanguages, NewsroomThemes, NewsroomWebhooks, NewsroomPrivacyRequests, NewsroomDomains, NewsroomGalleries, NewsroomHub, PricingTables, SenderAddresses, Stories, Snippets, Subscriptions, NotificationSubscriptions, CoverageIntegrations } from "./endpoints/index.js";
|
|
3
3
|
import { createHttpClient } from "./http/index.js";
|
|
4
4
|
const DEFAULT_BASE_URL = 'https://api.prezly.com';
|
|
5
5
|
export function createClient({
|
|
@@ -27,6 +27,7 @@ export function createClient({
|
|
|
27
27
|
contactTagGroups: ContactTagGroups.createClient(api),
|
|
28
28
|
contactsExports: ContactsExports.createClient(api),
|
|
29
29
|
coverage: Coverage.createClient(api),
|
|
30
|
+
coverageIntegrations: CoverageIntegrations.createClient(api),
|
|
30
31
|
jobs: Jobs.createClient(api),
|
|
31
32
|
licenses: Licenses.createClient(api),
|
|
32
33
|
newsrooms: Newsrooms.createClient(api),
|
package/dist/api/constants.cjs
CHANGED
|
@@ -4,6 +4,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.DEFAULT_USER_AGENT = void 0;
|
|
7
|
-
const VERSION = "21.
|
|
7
|
+
const VERSION = "21.16.0";
|
|
8
8
|
const URL = 'https://github.com/prezly/javascript-sdk';
|
|
9
9
|
const DEFAULT_USER_AGENT = exports.DEFAULT_USER_AGENT = `prezly-javascript-sdk/${VERSION} (+${URL})`;
|
package/dist/api/constants.js
CHANGED
|
@@ -4,14 +4,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.SignupPlan = exports.SignupCurrency = void 0;
|
|
7
|
-
let SignupPlan = exports.SignupPlan =
|
|
7
|
+
let SignupPlan = exports.SignupPlan = void 0;
|
|
8
|
+
(function (SignupPlan) {
|
|
8
9
|
SignupPlan["STARTER"] = "starter";
|
|
9
10
|
SignupPlan["CORE"] = "core";
|
|
10
11
|
SignupPlan["PREMIUM"] = "premium";
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
})(SignupPlan || (exports.SignupPlan = SignupPlan = {}));
|
|
13
|
+
let SignupCurrency = exports.SignupCurrency = void 0;
|
|
14
|
+
(function (SignupCurrency) {
|
|
14
15
|
SignupCurrency["EUR"] = "eur";
|
|
15
16
|
SignupCurrency["USD"] = "usd";
|
|
16
|
-
|
|
17
|
-
}({});
|
|
17
|
+
})(SignupCurrency || (exports.SignupCurrency = SignupCurrency = {}));
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export let SignupPlan
|
|
1
|
+
export let SignupPlan;
|
|
2
|
+
(function (SignupPlan) {
|
|
2
3
|
SignupPlan["STARTER"] = "starter";
|
|
3
4
|
SignupPlan["CORE"] = "core";
|
|
4
5
|
SignupPlan["PREMIUM"] = "premium";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
})(SignupPlan || (SignupPlan = {}));
|
|
7
|
+
export let SignupCurrency;
|
|
8
|
+
(function (SignupCurrency) {
|
|
8
9
|
SignupCurrency["EUR"] = "eur";
|
|
9
10
|
SignupCurrency["USD"] = "usd";
|
|
10
|
-
|
|
11
|
-
}({});
|
|
11
|
+
})(SignupCurrency || (SignupCurrency = {}));
|
|
@@ -4,7 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.Color = void 0;
|
|
7
|
-
let Color = exports.Color =
|
|
7
|
+
let Color = exports.Color = void 0;
|
|
8
|
+
(function (Color) {
|
|
8
9
|
Color["RED"] = "red";
|
|
9
10
|
Color["PINK"] = "pink";
|
|
10
11
|
Color["ORANGE"] = "orange";
|
|
@@ -15,5 +16,4 @@ let Color = exports.Color = /*#__PURE__*/function (Color) {
|
|
|
15
16
|
Color["BLUE"] = "blue";
|
|
16
17
|
Color["INDIGO"] = "indigo";
|
|
17
18
|
Color["PURPLE"] = "purple";
|
|
18
|
-
|
|
19
|
-
}({});
|
|
19
|
+
})(Color || (exports.Color = Color = {}));
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export let Color
|
|
1
|
+
export let Color;
|
|
2
|
+
(function (Color) {
|
|
2
3
|
Color["RED"] = "red";
|
|
3
4
|
Color["PINK"] = "pink";
|
|
4
5
|
Color["ORANGE"] = "orange";
|
|
@@ -9,5 +10,4 @@ export let Color = /*#__PURE__*/function (Color) {
|
|
|
9
10
|
Color["BLUE"] = "blue";
|
|
10
11
|
Color["INDIGO"] = "indigo";
|
|
11
12
|
Color["PURPLE"] = "purple";
|
|
12
|
-
|
|
13
|
-
}({});
|
|
13
|
+
})(Color || (Color = {}));
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.createClient = createClient;
|
|
7
|
+
var _routing = require("../../routing.cjs");
|
|
8
|
+
function createClient(api) {
|
|
9
|
+
async function list() {
|
|
10
|
+
const url = _routing.routing.coverageIntegrationsUrl;
|
|
11
|
+
const {
|
|
12
|
+
integrations
|
|
13
|
+
} = await api.get(url);
|
|
14
|
+
return integrations;
|
|
15
|
+
}
|
|
16
|
+
async function get(integrationId) {
|
|
17
|
+
const url = _routing.routing.coverageIntegrationsUrl;
|
|
18
|
+
const {
|
|
19
|
+
integration
|
|
20
|
+
} = await api.get(`${url}/${integrationId}`);
|
|
21
|
+
return integration;
|
|
22
|
+
}
|
|
23
|
+
async function create(payload) {
|
|
24
|
+
const url = _routing.routing.coverageIntegrationsUrl;
|
|
25
|
+
const {
|
|
26
|
+
integration
|
|
27
|
+
} = await api.post(url, {
|
|
28
|
+
payload
|
|
29
|
+
});
|
|
30
|
+
return integration;
|
|
31
|
+
}
|
|
32
|
+
async function update(integrationId, payload) {
|
|
33
|
+
const url = _routing.routing.coverageIntegrationsUrl;
|
|
34
|
+
const {
|
|
35
|
+
integration
|
|
36
|
+
} = await api.patch(`${url}/${integrationId}`, {
|
|
37
|
+
payload
|
|
38
|
+
});
|
|
39
|
+
return integration;
|
|
40
|
+
}
|
|
41
|
+
async function doDelete(integrationId) {
|
|
42
|
+
const url = _routing.routing.coverageIntegrationsUrl;
|
|
43
|
+
return api.delete(`${url}/${integrationId}`);
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
list,
|
|
47
|
+
get,
|
|
48
|
+
create,
|
|
49
|
+
update,
|
|
50
|
+
delete: doDelete
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { DeferredJobsApiClient } from '../../api';
|
|
2
|
+
import type { CoverageIntegration } from '../../types';
|
|
3
|
+
import type { CreateRequest, UpdateRequest } from './types';
|
|
4
|
+
type IntegrationId = CoverageIntegration['id'];
|
|
5
|
+
export type Client = ReturnType<typeof createClient>;
|
|
6
|
+
export declare function createClient(api: DeferredJobsApiClient): {
|
|
7
|
+
list: () => Promise<CoverageIntegration[]>;
|
|
8
|
+
get: (integrationId: IntegrationId) => Promise<CoverageIntegration>;
|
|
9
|
+
create: (payload: CreateRequest) => Promise<CoverageIntegration>;
|
|
10
|
+
update: (integrationId: IntegrationId, payload: UpdateRequest) => Promise<CoverageIntegration>;
|
|
11
|
+
delete: (integrationId: IntegrationId) => Promise<void>;
|
|
12
|
+
};
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { routing } from "../../routing.js";
|
|
2
|
+
export function createClient(api) {
|
|
3
|
+
async function list() {
|
|
4
|
+
const url = routing.coverageIntegrationsUrl;
|
|
5
|
+
const {
|
|
6
|
+
integrations
|
|
7
|
+
} = await api.get(url);
|
|
8
|
+
return integrations;
|
|
9
|
+
}
|
|
10
|
+
async function get(integrationId) {
|
|
11
|
+
const url = routing.coverageIntegrationsUrl;
|
|
12
|
+
const {
|
|
13
|
+
integration
|
|
14
|
+
} = await api.get(`${url}/${integrationId}`);
|
|
15
|
+
return integration;
|
|
16
|
+
}
|
|
17
|
+
async function create(payload) {
|
|
18
|
+
const url = routing.coverageIntegrationsUrl;
|
|
19
|
+
const {
|
|
20
|
+
integration
|
|
21
|
+
} = await api.post(url, {
|
|
22
|
+
payload
|
|
23
|
+
});
|
|
24
|
+
return integration;
|
|
25
|
+
}
|
|
26
|
+
async function update(integrationId, payload) {
|
|
27
|
+
const url = routing.coverageIntegrationsUrl;
|
|
28
|
+
const {
|
|
29
|
+
integration
|
|
30
|
+
} = await api.patch(`${url}/${integrationId}`, {
|
|
31
|
+
payload
|
|
32
|
+
});
|
|
33
|
+
return integration;
|
|
34
|
+
}
|
|
35
|
+
async function doDelete(integrationId) {
|
|
36
|
+
const url = routing.coverageIntegrationsUrl;
|
|
37
|
+
return api.delete(`${url}/${integrationId}`);
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
list,
|
|
41
|
+
get,
|
|
42
|
+
create,
|
|
43
|
+
update,
|
|
44
|
+
delete: doDelete
|
|
45
|
+
};
|
|
46
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _Client = require("./Client.cjs");
|
|
7
|
+
Object.keys(_Client).forEach(function (key) {
|
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _Client[key]) return;
|
|
10
|
+
Object.defineProperty(exports, key, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () {
|
|
13
|
+
return _Client[key];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
var _types = require("./types.cjs");
|
|
18
|
+
Object.keys(_types).forEach(function (key) {
|
|
19
|
+
if (key === "default" || key === "__esModule") return;
|
|
20
|
+
if (key in exports && exports[key] === _types[key]) return;
|
|
21
|
+
Object.defineProperty(exports, key, {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function () {
|
|
24
|
+
return _types[key];
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CoverageEntry, type Newsroom } from '../../types';
|
|
2
|
+
import Provider = CoverageEntry.Provider;
|
|
3
|
+
export interface CreateRequest {
|
|
4
|
+
newsroom: Newsroom['id'] | Newsroom['uuid'];
|
|
5
|
+
provider: Provider;
|
|
6
|
+
input: string;
|
|
7
|
+
name: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
skip_author?: boolean;
|
|
10
|
+
skip_organisation?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export interface UpdateRequest {
|
|
13
|
+
input?: string;
|
|
14
|
+
name?: string;
|
|
15
|
+
description?: string;
|
|
16
|
+
skip_author?: boolean;
|
|
17
|
+
skip_organisation?: boolean;
|
|
18
|
+
}
|
|
@@ -4,12 +4,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.TableId = exports.OptionId = exports.LimitId = exports.AddOnId = void 0;
|
|
7
|
-
let TableId = exports.TableId =
|
|
7
|
+
let TableId = exports.TableId = void 0;
|
|
8
|
+
(function (TableId) {
|
|
8
9
|
TableId["STANDARD"] = "standard";
|
|
9
10
|
TableId["AGENCY"] = "agency";
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
})(TableId || (exports.TableId = TableId = {}));
|
|
12
|
+
let OptionId = exports.OptionId = void 0;
|
|
13
|
+
(function (OptionId) {
|
|
13
14
|
OptionId["STARTER"] = "starter";
|
|
14
15
|
OptionId["CORE"] = "core";
|
|
15
16
|
OptionId["PREMIUM"] = "premium";
|
|
@@ -18,18 +19,17 @@ let OptionId = exports.OptionId = /*#__PURE__*/function (OptionId) {
|
|
|
18
19
|
OptionId["AGENCY_MEDIUM"] = "agency_medium";
|
|
19
20
|
OptionId["AGENCY_LARGE"] = "agency_large";
|
|
20
21
|
OptionId["AGENCY_HUGE"] = "agency_huge";
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
})(OptionId || (exports.OptionId = OptionId = {}));
|
|
23
|
+
let LimitId = exports.LimitId = void 0;
|
|
24
|
+
(function (LimitId) {
|
|
24
25
|
LimitId["STORIES"] = "stories";
|
|
25
26
|
LimitId["USERS"] = "users";
|
|
26
27
|
LimitId["SITES"] = "sites";
|
|
27
28
|
LimitId["CONTACTS"] = "contacts";
|
|
28
29
|
LimitId["EMAIL_SENDS"] = "email_sends";
|
|
29
30
|
LimitId["CUSTOM_SENDER_ADDRESSES"] = "custom_sender_addresses";
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
})(LimitId || (exports.LimitId = LimitId = {}));
|
|
32
|
+
let AddOnId = exports.AddOnId = void 0;
|
|
33
|
+
(function (AddOnId) {
|
|
33
34
|
AddOnId["SITE"] = "site";
|
|
34
|
-
|
|
35
|
-
}({});
|
|
35
|
+
})(AddOnId || (exports.AddOnId = AddOnId = {}));
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
export let TableId
|
|
1
|
+
export let TableId;
|
|
2
|
+
(function (TableId) {
|
|
2
3
|
TableId["STANDARD"] = "standard";
|
|
3
4
|
TableId["AGENCY"] = "agency";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
})(TableId || (TableId = {}));
|
|
6
|
+
export let OptionId;
|
|
7
|
+
(function (OptionId) {
|
|
7
8
|
OptionId["STARTER"] = "starter";
|
|
8
9
|
OptionId["CORE"] = "core";
|
|
9
10
|
OptionId["PREMIUM"] = "premium";
|
|
@@ -12,18 +13,17 @@ export let OptionId = /*#__PURE__*/function (OptionId) {
|
|
|
12
13
|
OptionId["AGENCY_MEDIUM"] = "agency_medium";
|
|
13
14
|
OptionId["AGENCY_LARGE"] = "agency_large";
|
|
14
15
|
OptionId["AGENCY_HUGE"] = "agency_huge";
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
})(OptionId || (OptionId = {}));
|
|
17
|
+
export let LimitId;
|
|
18
|
+
(function (LimitId) {
|
|
18
19
|
LimitId["STORIES"] = "stories";
|
|
19
20
|
LimitId["USERS"] = "users";
|
|
20
21
|
LimitId["SITES"] = "sites";
|
|
21
22
|
LimitId["CONTACTS"] = "contacts";
|
|
22
23
|
LimitId["EMAIL_SENDS"] = "email_sends";
|
|
23
24
|
LimitId["CUSTOM_SENDER_ADDRESSES"] = "custom_sender_addresses";
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
})(LimitId || (LimitId = {}));
|
|
26
|
+
export let AddOnId;
|
|
27
|
+
(function (AddOnId) {
|
|
27
28
|
AddOnId["SITE"] = "site";
|
|
28
|
-
|
|
29
|
-
}({});
|
|
29
|
+
})(AddOnId || (AddOnId = {}));
|
|
@@ -4,11 +4,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.UnsubscribeReason = void 0;
|
|
7
|
-
let UnsubscribeReason = exports.UnsubscribeReason =
|
|
7
|
+
let UnsubscribeReason = exports.UnsubscribeReason = void 0;
|
|
8
|
+
(function (UnsubscribeReason) {
|
|
8
9
|
UnsubscribeReason["UNKNOWN"] = "unknown";
|
|
9
10
|
UnsubscribeReason["UNWANTED"] = "unwanted";
|
|
10
11
|
UnsubscribeReason["SPAM"] = "spam";
|
|
11
12
|
UnsubscribeReason["NEVER_SIGNED_UP"] = "never_signed_up";
|
|
12
13
|
UnsubscribeReason["OTHER"] = "other";
|
|
13
|
-
|
|
14
|
-
}({});
|
|
14
|
+
})(UnsubscribeReason || (exports.UnsubscribeReason = UnsubscribeReason = {}));
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export let UnsubscribeReason
|
|
1
|
+
export let UnsubscribeReason;
|
|
2
|
+
(function (UnsubscribeReason) {
|
|
2
3
|
UnsubscribeReason["UNKNOWN"] = "unknown";
|
|
3
4
|
UnsubscribeReason["UNWANTED"] = "unwanted";
|
|
4
5
|
UnsubscribeReason["SPAM"] = "spam";
|
|
5
6
|
UnsubscribeReason["NEVER_SIGNED_UP"] = "never_signed_up";
|
|
6
7
|
UnsubscribeReason["OTHER"] = "other";
|
|
7
|
-
|
|
8
|
-
}({});
|
|
8
|
+
})(UnsubscribeReason || (UnsubscribeReason = {}));
|
package/dist/endpoints/index.cjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.Subscriptions = exports.Stories = exports.Snippets = exports.SenderAddresses = exports.PricingTables = exports.NotificationSubscriptions = exports.Newsrooms = exports.NewsroomWebhooks = exports.NewsroomThemes = exports.NewsroomSubscriptions = exports.NewsroomPrivacyRequests = exports.NewsroomLanguages = exports.NewsroomHub = exports.NewsroomGalleries = exports.NewsroomDomains = exports.NewsroomContacts = exports.NewsroomCategories = exports.Licenses = exports.Jobs = exports.Coverage = exports.ContactsExports = exports.Contacts = exports.ContactTags = exports.ContactTagGroups = exports.Campaigns = exports.CampaignRecipients = exports.Billing = exports.Accounts = void 0;
|
|
6
|
+
exports.Subscriptions = exports.Stories = exports.Snippets = exports.SenderAddresses = exports.PricingTables = exports.NotificationSubscriptions = exports.Newsrooms = exports.NewsroomWebhooks = exports.NewsroomThemes = exports.NewsroomSubscriptions = exports.NewsroomPrivacyRequests = exports.NewsroomLanguages = exports.NewsroomHub = exports.NewsroomGalleries = exports.NewsroomDomains = exports.NewsroomContacts = exports.NewsroomCategories = exports.Licenses = exports.Jobs = exports.CoverageIntegrations = exports.Coverage = exports.ContactsExports = exports.Contacts = exports.ContactTags = exports.ContactTagGroups = exports.Campaigns = exports.CampaignRecipients = exports.Billing = exports.Accounts = void 0;
|
|
7
7
|
var _Accounts = _interopRequireWildcard(require("./Accounts/index.cjs"));
|
|
8
8
|
exports.Accounts = _Accounts;
|
|
9
9
|
var _Billing = _interopRequireWildcard(require("./Billing/index.cjs"));
|
|
@@ -22,6 +22,8 @@ var _ContactsExports = _interopRequireWildcard(require("./ContactsExports/index.
|
|
|
22
22
|
exports.ContactsExports = _ContactsExports;
|
|
23
23
|
var _Coverage = _interopRequireWildcard(require("./Coverage/index.cjs"));
|
|
24
24
|
exports.Coverage = _Coverage;
|
|
25
|
+
var _CoverageIntegrations = _interopRequireWildcard(require("./CoverageIntegrations/index.cjs"));
|
|
26
|
+
exports.CoverageIntegrations = _CoverageIntegrations;
|
|
25
27
|
var _Jobs = _interopRequireWildcard(require("./Jobs/index.cjs"));
|
|
26
28
|
exports.Jobs = _Jobs;
|
|
27
29
|
var _Licenses = _interopRequireWildcard(require("./Licenses/index.cjs"));
|
|
@@ -7,6 +7,7 @@ export * as ContactTags from './ContactTags';
|
|
|
7
7
|
export * as Contacts from './Contacts';
|
|
8
8
|
export * as ContactsExports from './ContactsExports';
|
|
9
9
|
export * as Coverage from './Coverage';
|
|
10
|
+
export * as CoverageIntegrations from './CoverageIntegrations';
|
|
10
11
|
export * as Jobs from './Jobs';
|
|
11
12
|
export * as Licenses from './Licenses';
|
|
12
13
|
export * as NewsroomCategories from './NewsroomCategories';
|
package/dist/endpoints/index.js
CHANGED
|
@@ -7,6 +7,7 @@ export * as ContactTags from "./ContactTags/index.js";
|
|
|
7
7
|
export * as Contacts from "./Contacts/index.js";
|
|
8
8
|
export * as ContactsExports from "./ContactsExports/index.js";
|
|
9
9
|
export * as Coverage from "./Coverage/index.js";
|
|
10
|
+
export * as CoverageIntegrations from "./CoverageIntegrations/index.js";
|
|
10
11
|
export * as Jobs from "./Jobs/index.js";
|
|
11
12
|
export * as Licenses from "./Licenses/index.js";
|
|
12
13
|
export * as NewsroomCategories from "./NewsroomCategories/index.js";
|
package/dist/http/types.cjs
CHANGED
|
@@ -4,20 +4,20 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.Method = exports.HttpCodes = void 0;
|
|
7
|
-
let HttpCodes = exports.HttpCodes =
|
|
7
|
+
let HttpCodes = exports.HttpCodes = void 0;
|
|
8
|
+
(function (HttpCodes) {
|
|
8
9
|
HttpCodes[HttpCodes["ACCEPTED"] = 202] = "ACCEPTED";
|
|
9
10
|
HttpCodes[HttpCodes["NO_CONTENT"] = 204] = "NO_CONTENT";
|
|
10
11
|
HttpCodes[HttpCodes["NOT_FOUND"] = 404] = "NOT_FOUND";
|
|
11
12
|
HttpCodes[HttpCodes["CONFLICT"] = 409] = "CONFLICT";
|
|
12
13
|
HttpCodes[HttpCodes["GONE"] = 410] = "GONE";
|
|
13
14
|
HttpCodes[HttpCodes["PRECONDITION_FAILED"] = 412] = "PRECONDITION_FAILED";
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
})(HttpCodes || (exports.HttpCodes = HttpCodes = {}));
|
|
16
|
+
let Method = exports.Method = void 0;
|
|
17
|
+
(function (Method) {
|
|
17
18
|
Method["DELETE"] = "DELETE";
|
|
18
19
|
Method["GET"] = "GET";
|
|
19
20
|
Method["PATCH"] = "PATCH";
|
|
20
21
|
Method["POST"] = "POST";
|
|
21
22
|
Method["PUT"] = "PUT";
|
|
22
|
-
|
|
23
|
-
}({});
|
|
23
|
+
})(Method || (exports.Method = Method = {}));
|
package/dist/http/types.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
export let HttpCodes
|
|
1
|
+
export let HttpCodes;
|
|
2
|
+
(function (HttpCodes) {
|
|
2
3
|
HttpCodes[HttpCodes["ACCEPTED"] = 202] = "ACCEPTED";
|
|
3
4
|
HttpCodes[HttpCodes["NO_CONTENT"] = 204] = "NO_CONTENT";
|
|
4
5
|
HttpCodes[HttpCodes["NOT_FOUND"] = 404] = "NOT_FOUND";
|
|
5
6
|
HttpCodes[HttpCodes["CONFLICT"] = 409] = "CONFLICT";
|
|
6
7
|
HttpCodes[HttpCodes["GONE"] = 410] = "GONE";
|
|
7
8
|
HttpCodes[HttpCodes["PRECONDITION_FAILED"] = 412] = "PRECONDITION_FAILED";
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
})(HttpCodes || (HttpCodes = {}));
|
|
10
|
+
export let Method;
|
|
11
|
+
(function (Method) {
|
|
11
12
|
Method["DELETE"] = "DELETE";
|
|
12
13
|
Method["GET"] = "GET";
|
|
13
14
|
Method["PATCH"] = "PATCH";
|
|
14
15
|
Method["POST"] = "POST";
|
|
15
16
|
Method["PUT"] = "PUT";
|
|
16
|
-
|
|
17
|
-
}({});
|
|
17
|
+
})(Method || (Method = {}));
|
package/dist/routing.cjs
CHANGED
|
@@ -14,6 +14,7 @@ const routing = exports.routing = {
|
|
|
14
14
|
contactTagGroupsUrl: '/v2/contact-tag-groups',
|
|
15
15
|
contactTagsUrl: '/v2/contact-tags',
|
|
16
16
|
coverageUrl: '/v2/coverage',
|
|
17
|
+
coverageIntegrationsUrl: '/v2/coverage-integrations',
|
|
17
18
|
jobsUrl: '/v2/jobs',
|
|
18
19
|
licenseUrl: '/v2/licenses',
|
|
19
20
|
licenseUnsubscribeUrl: '/v2/unsubscribe',
|
package/dist/routing.d.ts
CHANGED
package/dist/routing.js
CHANGED
|
@@ -8,6 +8,7 @@ export const routing = {
|
|
|
8
8
|
contactTagGroupsUrl: '/v2/contact-tag-groups',
|
|
9
9
|
contactTagsUrl: '/v2/contact-tags',
|
|
10
10
|
coverageUrl: '/v2/coverage',
|
|
11
|
+
coverageIntegrationsUrl: '/v2/coverage-integrations',
|
|
11
12
|
jobsUrl: '/v2/jobs',
|
|
12
13
|
licenseUrl: '/v2/licenses',
|
|
13
14
|
licenseUnsubscribeUrl: '/v2/unsubscribe',
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.BillingCycle = void 0;
|
|
7
|
-
let BillingCycle = exports.BillingCycle =
|
|
7
|
+
let BillingCycle = exports.BillingCycle = void 0;
|
|
8
|
+
(function (BillingCycle) {
|
|
8
9
|
BillingCycle["YEAR"] = "year";
|
|
9
10
|
BillingCycle["MONTH"] = "month";
|
|
10
|
-
|
|
11
|
-
}({});
|
|
11
|
+
})(BillingCycle || (exports.BillingCycle = BillingCycle = {}));
|
package/dist/types/Campaign.cjs
CHANGED
|
@@ -8,47 +8,47 @@ var _SenderDomain = require("./SenderDomain.cjs");
|
|
|
8
8
|
let Campaign = exports.Campaign = void 0;
|
|
9
9
|
(function (_Campaign) {
|
|
10
10
|
const SenderDomainVerificationFlow = _Campaign.SenderDomainVerificationFlow = _SenderDomain.SenderDomain.VerificationFlowVersion;
|
|
11
|
-
let LifecycleStatus
|
|
11
|
+
let LifecycleStatus;
|
|
12
|
+
(function (LifecycleStatus) {
|
|
12
13
|
LifecycleStatus["DRAFT"] = "draft";
|
|
13
14
|
LifecycleStatus["SCHEDULED"] = "scheduled";
|
|
14
15
|
LifecycleStatus["PENDING"] = "pending";
|
|
15
16
|
LifecycleStatus["SENT"] = "sent";
|
|
16
|
-
|
|
17
|
-
}({});
|
|
17
|
+
})(LifecycleStatus || (LifecycleStatus = {}));
|
|
18
18
|
_Campaign.LifecycleStatus = LifecycleStatus;
|
|
19
|
-
let StoryAlignment
|
|
19
|
+
let StoryAlignment;
|
|
20
|
+
(function (StoryAlignment) {
|
|
20
21
|
StoryAlignment["CENTER"] = "center";
|
|
21
22
|
StoryAlignment["LEFT"] = "left";
|
|
22
23
|
StoryAlignment["RIGHT"] = "right";
|
|
23
|
-
|
|
24
|
-
}({});
|
|
24
|
+
})(StoryAlignment || (StoryAlignment = {}));
|
|
25
25
|
_Campaign.StoryAlignment = StoryAlignment;
|
|
26
|
-
let StoryAppearance
|
|
26
|
+
let StoryAppearance;
|
|
27
|
+
(function (StoryAppearance) {
|
|
27
28
|
StoryAppearance["INTRO"] = "intro";
|
|
28
29
|
StoryAppearance["FULL"] = "full";
|
|
29
|
-
|
|
30
|
-
}({});
|
|
30
|
+
})(StoryAppearance || (StoryAppearance = {}));
|
|
31
31
|
_Campaign.StoryAppearance = StoryAppearance;
|
|
32
|
-
let StoryHeaderFooter
|
|
32
|
+
let StoryHeaderFooter;
|
|
33
|
+
(function (StoryHeaderFooter) {
|
|
33
34
|
StoryHeaderFooter["NONE"] = "none";
|
|
34
35
|
StoryHeaderFooter["STANDARD"] = "standard";
|
|
35
36
|
StoryHeaderFooter["FULL"] = "full";
|
|
36
|
-
|
|
37
|
-
}({});
|
|
37
|
+
})(StoryHeaderFooter || (StoryHeaderFooter = {}));
|
|
38
38
|
_Campaign.StoryHeaderFooter = StoryHeaderFooter;
|
|
39
|
-
let SenderDomainVerificationStatus
|
|
39
|
+
let SenderDomainVerificationStatus;
|
|
40
|
+
(function (SenderDomainVerificationStatus) {
|
|
40
41
|
SenderDomainVerificationStatus["UNKNOWN"] = "unknown";
|
|
41
42
|
SenderDomainVerificationStatus["VALID"] = "valid";
|
|
42
43
|
SenderDomainVerificationStatus["INVALID"] = "invalid";
|
|
43
44
|
SenderDomainVerificationStatus["NOT_APPLICABLE"] = "not-applicable";
|
|
44
|
-
|
|
45
|
-
}({});
|
|
45
|
+
})(SenderDomainVerificationStatus || (SenderDomainVerificationStatus = {}));
|
|
46
46
|
_Campaign.SenderDomainVerificationStatus = SenderDomainVerificationStatus;
|
|
47
|
-
let ClickTrackingVersion
|
|
47
|
+
let ClickTrackingVersion;
|
|
48
|
+
(function (ClickTrackingVersion) {
|
|
48
49
|
ClickTrackingVersion[ClickTrackingVersion["DEPRECATED"] = 1] = "DEPRECATED";
|
|
49
50
|
ClickTrackingVersion[ClickTrackingVersion["ENHANCED"] = 2] = "ENHANCED";
|
|
50
|
-
|
|
51
|
-
}({});
|
|
51
|
+
})(ClickTrackingVersion || (ClickTrackingVersion = {}));
|
|
52
52
|
_Campaign.ClickTrackingVersion = ClickTrackingVersion;
|
|
53
53
|
function isDraft(arg) {
|
|
54
54
|
if (typeof arg === 'object') {
|