@prezly/sdk 21.18.0 → 21.19.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/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 +18 -1
- package/dist/endpoints/CoverageIntegrations/Client.d.ts +3 -2
- package/dist/endpoints/CoverageIntegrations/Client.js +18 -1
- package/dist/endpoints/CoverageIntegrations/types.d.ts +11 -1
- 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/http/types.cjs +6 -6
- package/dist/http/types.js +6 -6
- 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 +0 -1
- package/dist/types/Category.js +0 -1
- package/dist/types/Contact.cjs +18 -18
- package/dist/types/Contact.js +18 -18
- package/dist/types/ContactDuplicateSuggestion.cjs +3 -3
- package/dist/types/ContactDuplicateSuggestion.js +3 -4
- package/dist/types/ContactTag.cjs +1 -2
- package/dist/types/ContactTag.js +1 -2
- 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.d.ts +3 -0
- package/dist/types/CoverageIntegrationRun.cjs +3 -3
- package/dist/types/CoverageIntegrationRun.js +3 -3
- 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 +7 -8
- package/dist/types/NewsroomTheme.js +7 -8
- 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 +0 -1
- package/package.json +1 -1
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.18.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 =
|
|
8
|
-
(function (SignupPlan) {
|
|
7
|
+
let SignupPlan = exports.SignupPlan = /*#__PURE__*/function (SignupPlan) {
|
|
9
8
|
SignupPlan["STARTER"] = "starter";
|
|
10
9
|
SignupPlan["CORE"] = "core";
|
|
11
10
|
SignupPlan["PREMIUM"] = "premium";
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
return SignupPlan;
|
|
12
|
+
}({});
|
|
13
|
+
let SignupCurrency = exports.SignupCurrency = /*#__PURE__*/function (SignupCurrency) {
|
|
15
14
|
SignupCurrency["EUR"] = "eur";
|
|
16
15
|
SignupCurrency["USD"] = "usd";
|
|
17
|
-
|
|
16
|
+
return SignupCurrency;
|
|
17
|
+
}({});
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export let SignupPlan
|
|
2
|
-
(function (SignupPlan) {
|
|
1
|
+
export let SignupPlan = /*#__PURE__*/function (SignupPlan) {
|
|
3
2
|
SignupPlan["STARTER"] = "starter";
|
|
4
3
|
SignupPlan["CORE"] = "core";
|
|
5
4
|
SignupPlan["PREMIUM"] = "premium";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
return SignupPlan;
|
|
6
|
+
}({});
|
|
7
|
+
export let SignupCurrency = /*#__PURE__*/function (SignupCurrency) {
|
|
9
8
|
SignupCurrency["EUR"] = "eur";
|
|
10
9
|
SignupCurrency["USD"] = "usd";
|
|
11
|
-
|
|
10
|
+
return SignupCurrency;
|
|
11
|
+
}({});
|
|
@@ -4,8 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.Color = void 0;
|
|
7
|
-
let Color = exports.Color =
|
|
8
|
-
(function (Color) {
|
|
7
|
+
let Color = exports.Color = /*#__PURE__*/function (Color) {
|
|
9
8
|
Color["RED"] = "red";
|
|
10
9
|
Color["PINK"] = "pink";
|
|
11
10
|
Color["ORANGE"] = "orange";
|
|
@@ -16,4 +15,5 @@ let Color = exports.Color = void 0;
|
|
|
16
15
|
Color["BLUE"] = "blue";
|
|
17
16
|
Color["INDIGO"] = "indigo";
|
|
18
17
|
Color["PURPLE"] = "purple";
|
|
19
|
-
|
|
18
|
+
return Color;
|
|
19
|
+
}({});
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
export let Color
|
|
2
|
-
(function (Color) {
|
|
1
|
+
export let Color = /*#__PURE__*/function (Color) {
|
|
3
2
|
Color["RED"] = "red";
|
|
4
3
|
Color["PINK"] = "pink";
|
|
5
4
|
Color["ORANGE"] = "orange";
|
|
@@ -10,4 +9,5 @@ export let Color;
|
|
|
10
9
|
Color["BLUE"] = "blue";
|
|
11
10
|
Color["INDIGO"] = "indigo";
|
|
12
11
|
Color["PURPLE"] = "purple";
|
|
13
|
-
|
|
12
|
+
return Color;
|
|
13
|
+
}({});
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.createClient = createClient;
|
|
7
7
|
var _routing = require("../../routing.cjs");
|
|
8
|
+
var _index = require("../../types/index.cjs");
|
|
8
9
|
function createClient(api) {
|
|
9
10
|
async function list() {
|
|
10
11
|
const url = _routing.routing.coverageIntegrationsUrl;
|
|
@@ -42,11 +43,27 @@ function createClient(api) {
|
|
|
42
43
|
const url = _routing.routing.coverageIntegrationsUrl;
|
|
43
44
|
return api.delete(`${url}/${integrationId}`);
|
|
44
45
|
}
|
|
46
|
+
async function listRuns(integrationId, options = {}) {
|
|
47
|
+
const {
|
|
48
|
+
sortOrder,
|
|
49
|
+
limit,
|
|
50
|
+
offset
|
|
51
|
+
} = options;
|
|
52
|
+
const url = _routing.routing.coverageIntegrationsUrl;
|
|
53
|
+
return api.get(`${url}/${integrationId}/runs`, {
|
|
54
|
+
query: {
|
|
55
|
+
sort: _index.SortOrder.stringify(sortOrder),
|
|
56
|
+
limit,
|
|
57
|
+
offset
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
}
|
|
45
61
|
return {
|
|
46
62
|
list,
|
|
47
63
|
get,
|
|
48
64
|
create,
|
|
49
65
|
update,
|
|
50
|
-
delete: doDelete
|
|
66
|
+
delete: doDelete,
|
|
67
|
+
listRuns
|
|
51
68
|
};
|
|
52
69
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { DeferredJobsApiClient } from '../../api';
|
|
2
|
-
import type
|
|
3
|
-
import type { CreateRequest, UpdateRequest } from './types';
|
|
2
|
+
import { type CoverageIntegration } from '../../types';
|
|
3
|
+
import type { CreateRequest, ListRunsOptions, ListRunsResponse, UpdateRequest } from './types';
|
|
4
4
|
type IntegrationId = CoverageIntegration['id'];
|
|
5
5
|
export type Client = ReturnType<typeof createClient>;
|
|
6
6
|
export declare function createClient(api: DeferredJobsApiClient): {
|
|
@@ -9,5 +9,6 @@ export declare function createClient(api: DeferredJobsApiClient): {
|
|
|
9
9
|
create: (payload: CreateRequest) => Promise<CoverageIntegration>;
|
|
10
10
|
update: (integrationId: IntegrationId, payload: UpdateRequest) => Promise<CoverageIntegration>;
|
|
11
11
|
delete: (integrationId: IntegrationId) => Promise<void>;
|
|
12
|
+
listRuns: (integrationId: IntegrationId, options?: ListRunsOptions) => Promise<ListRunsResponse>;
|
|
12
13
|
};
|
|
13
14
|
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { routing } from "../../routing.js";
|
|
2
|
+
import { SortOrder } from "../../types/index.js";
|
|
2
3
|
export function createClient(api) {
|
|
3
4
|
async function list() {
|
|
4
5
|
const url = routing.coverageIntegrationsUrl;
|
|
@@ -36,11 +37,27 @@ export function createClient(api) {
|
|
|
36
37
|
const url = routing.coverageIntegrationsUrl;
|
|
37
38
|
return api.delete(`${url}/${integrationId}`);
|
|
38
39
|
}
|
|
40
|
+
async function listRuns(integrationId, options = {}) {
|
|
41
|
+
const {
|
|
42
|
+
sortOrder,
|
|
43
|
+
limit,
|
|
44
|
+
offset
|
|
45
|
+
} = options;
|
|
46
|
+
const url = routing.coverageIntegrationsUrl;
|
|
47
|
+
return api.get(`${url}/${integrationId}/runs`, {
|
|
48
|
+
query: {
|
|
49
|
+
sort: SortOrder.stringify(sortOrder),
|
|
50
|
+
limit,
|
|
51
|
+
offset
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
}
|
|
39
55
|
return {
|
|
40
56
|
list,
|
|
41
57
|
get,
|
|
42
58
|
create,
|
|
43
59
|
update,
|
|
44
|
-
delete: doDelete
|
|
60
|
+
delete: doDelete,
|
|
61
|
+
listRuns
|
|
45
62
|
};
|
|
46
63
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CoverageEntry, type Newsroom } from '../../types';
|
|
1
|
+
import { CoverageEntry, type CoverageIntegrationRun, type Newsroom, type Pagination, type SortOrder } from '../../types';
|
|
2
2
|
import Provider = CoverageEntry.Provider;
|
|
3
3
|
export interface CreateRequest {
|
|
4
4
|
newsroom: Newsroom['id'] | Newsroom['uuid'];
|
|
@@ -16,3 +16,13 @@ export interface UpdateRequest {
|
|
|
16
16
|
skip_author?: boolean;
|
|
17
17
|
skip_organisation?: boolean;
|
|
18
18
|
}
|
|
19
|
+
export interface ListRunsOptions {
|
|
20
|
+
limit?: number;
|
|
21
|
+
offset?: number;
|
|
22
|
+
sortOrder?: SortOrder | string;
|
|
23
|
+
}
|
|
24
|
+
export interface ListRunsResponse {
|
|
25
|
+
runs: CoverageIntegrationRun[];
|
|
26
|
+
pagination: Pagination;
|
|
27
|
+
sort: string;
|
|
28
|
+
}
|
|
@@ -4,13 +4,12 @@ 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 =
|
|
8
|
-
(function (TableId) {
|
|
7
|
+
let TableId = exports.TableId = /*#__PURE__*/function (TableId) {
|
|
9
8
|
TableId["STANDARD"] = "standard";
|
|
10
9
|
TableId["AGENCY"] = "agency";
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
return TableId;
|
|
11
|
+
}({});
|
|
12
|
+
let OptionId = exports.OptionId = /*#__PURE__*/function (OptionId) {
|
|
14
13
|
OptionId["STARTER"] = "starter";
|
|
15
14
|
OptionId["CORE"] = "core";
|
|
16
15
|
OptionId["PREMIUM"] = "premium";
|
|
@@ -19,17 +18,18 @@ let OptionId = exports.OptionId = void 0;
|
|
|
19
18
|
OptionId["AGENCY_MEDIUM"] = "agency_medium";
|
|
20
19
|
OptionId["AGENCY_LARGE"] = "agency_large";
|
|
21
20
|
OptionId["AGENCY_HUGE"] = "agency_huge";
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
return OptionId;
|
|
22
|
+
}({});
|
|
23
|
+
let LimitId = exports.LimitId = /*#__PURE__*/function (LimitId) {
|
|
25
24
|
LimitId["STORIES"] = "stories";
|
|
26
25
|
LimitId["USERS"] = "users";
|
|
27
26
|
LimitId["SITES"] = "sites";
|
|
28
27
|
LimitId["CONTACTS"] = "contacts";
|
|
29
28
|
LimitId["EMAIL_SENDS"] = "email_sends";
|
|
30
29
|
LimitId["CUSTOM_SENDER_ADDRESSES"] = "custom_sender_addresses";
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
30
|
+
return LimitId;
|
|
31
|
+
}({});
|
|
32
|
+
let AddOnId = exports.AddOnId = /*#__PURE__*/function (AddOnId) {
|
|
34
33
|
AddOnId["SITE"] = "site";
|
|
35
|
-
|
|
34
|
+
return AddOnId;
|
|
35
|
+
}({});
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
export let TableId
|
|
2
|
-
(function (TableId) {
|
|
1
|
+
export let TableId = /*#__PURE__*/function (TableId) {
|
|
3
2
|
TableId["STANDARD"] = "standard";
|
|
4
3
|
TableId["AGENCY"] = "agency";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
return TableId;
|
|
5
|
+
}({});
|
|
6
|
+
export let OptionId = /*#__PURE__*/function (OptionId) {
|
|
8
7
|
OptionId["STARTER"] = "starter";
|
|
9
8
|
OptionId["CORE"] = "core";
|
|
10
9
|
OptionId["PREMIUM"] = "premium";
|
|
@@ -13,17 +12,18 @@ export let OptionId;
|
|
|
13
12
|
OptionId["AGENCY_MEDIUM"] = "agency_medium";
|
|
14
13
|
OptionId["AGENCY_LARGE"] = "agency_large";
|
|
15
14
|
OptionId["AGENCY_HUGE"] = "agency_huge";
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
return OptionId;
|
|
16
|
+
}({});
|
|
17
|
+
export let LimitId = /*#__PURE__*/function (LimitId) {
|
|
19
18
|
LimitId["STORIES"] = "stories";
|
|
20
19
|
LimitId["USERS"] = "users";
|
|
21
20
|
LimitId["SITES"] = "sites";
|
|
22
21
|
LimitId["CONTACTS"] = "contacts";
|
|
23
22
|
LimitId["EMAIL_SENDS"] = "email_sends";
|
|
24
23
|
LimitId["CUSTOM_SENDER_ADDRESSES"] = "custom_sender_addresses";
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
return LimitId;
|
|
25
|
+
}({});
|
|
26
|
+
export let AddOnId = /*#__PURE__*/function (AddOnId) {
|
|
28
27
|
AddOnId["SITE"] = "site";
|
|
29
|
-
|
|
28
|
+
return AddOnId;
|
|
29
|
+
}({});
|
|
@@ -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 =
|
|
8
|
-
(function (UnsubscribeReason) {
|
|
7
|
+
let UnsubscribeReason = exports.UnsubscribeReason = /*#__PURE__*/function (UnsubscribeReason) {
|
|
9
8
|
UnsubscribeReason["UNKNOWN"] = "unknown";
|
|
10
9
|
UnsubscribeReason["UNWANTED"] = "unwanted";
|
|
11
10
|
UnsubscribeReason["SPAM"] = "spam";
|
|
12
11
|
UnsubscribeReason["NEVER_SIGNED_UP"] = "never_signed_up";
|
|
13
12
|
UnsubscribeReason["OTHER"] = "other";
|
|
14
|
-
|
|
13
|
+
return UnsubscribeReason;
|
|
14
|
+
}({});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export let UnsubscribeReason
|
|
2
|
-
(function (UnsubscribeReason) {
|
|
1
|
+
export let UnsubscribeReason = /*#__PURE__*/function (UnsubscribeReason) {
|
|
3
2
|
UnsubscribeReason["UNKNOWN"] = "unknown";
|
|
4
3
|
UnsubscribeReason["UNWANTED"] = "unwanted";
|
|
5
4
|
UnsubscribeReason["SPAM"] = "spam";
|
|
6
5
|
UnsubscribeReason["NEVER_SIGNED_UP"] = "never_signed_up";
|
|
7
6
|
UnsubscribeReason["OTHER"] = "other";
|
|
8
|
-
|
|
7
|
+
return UnsubscribeReason;
|
|
8
|
+
}({});
|
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 =
|
|
8
|
-
(function (HttpCodes) {
|
|
7
|
+
let HttpCodes = exports.HttpCodes = /*#__PURE__*/function (HttpCodes) {
|
|
9
8
|
HttpCodes[HttpCodes["ACCEPTED"] = 202] = "ACCEPTED";
|
|
10
9
|
HttpCodes[HttpCodes["NO_CONTENT"] = 204] = "NO_CONTENT";
|
|
11
10
|
HttpCodes[HttpCodes["NOT_FOUND"] = 404] = "NOT_FOUND";
|
|
12
11
|
HttpCodes[HttpCodes["CONFLICT"] = 409] = "CONFLICT";
|
|
13
12
|
HttpCodes[HttpCodes["GONE"] = 410] = "GONE";
|
|
14
13
|
HttpCodes[HttpCodes["PRECONDITION_FAILED"] = 412] = "PRECONDITION_FAILED";
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
return HttpCodes;
|
|
15
|
+
}({});
|
|
16
|
+
let Method = exports.Method = /*#__PURE__*/function (Method) {
|
|
18
17
|
Method["DELETE"] = "DELETE";
|
|
19
18
|
Method["GET"] = "GET";
|
|
20
19
|
Method["PATCH"] = "PATCH";
|
|
21
20
|
Method["POST"] = "POST";
|
|
22
21
|
Method["PUT"] = "PUT";
|
|
23
|
-
|
|
22
|
+
return Method;
|
|
23
|
+
}({});
|
package/dist/http/types.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
export let HttpCodes
|
|
2
|
-
(function (HttpCodes) {
|
|
1
|
+
export let HttpCodes = /*#__PURE__*/function (HttpCodes) {
|
|
3
2
|
HttpCodes[HttpCodes["ACCEPTED"] = 202] = "ACCEPTED";
|
|
4
3
|
HttpCodes[HttpCodes["NO_CONTENT"] = 204] = "NO_CONTENT";
|
|
5
4
|
HttpCodes[HttpCodes["NOT_FOUND"] = 404] = "NOT_FOUND";
|
|
6
5
|
HttpCodes[HttpCodes["CONFLICT"] = 409] = "CONFLICT";
|
|
7
6
|
HttpCodes[HttpCodes["GONE"] = 410] = "GONE";
|
|
8
7
|
HttpCodes[HttpCodes["PRECONDITION_FAILED"] = 412] = "PRECONDITION_FAILED";
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
return HttpCodes;
|
|
9
|
+
}({});
|
|
10
|
+
export let Method = /*#__PURE__*/function (Method) {
|
|
12
11
|
Method["DELETE"] = "DELETE";
|
|
13
12
|
Method["GET"] = "GET";
|
|
14
13
|
Method["PATCH"] = "PATCH";
|
|
15
14
|
Method["POST"] = "POST";
|
|
16
15
|
Method["PUT"] = "PUT";
|
|
17
|
-
|
|
16
|
+
return Method;
|
|
17
|
+
}({});
|
|
@@ -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 =
|
|
8
|
-
(function (BillingCycle) {
|
|
7
|
+
let BillingCycle = exports.BillingCycle = /*#__PURE__*/function (BillingCycle) {
|
|
9
8
|
BillingCycle["YEAR"] = "year";
|
|
10
9
|
BillingCycle["MONTH"] = "month";
|
|
11
|
-
|
|
10
|
+
return BillingCycle;
|
|
11
|
+
}({});
|
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
|
|
12
|
-
(function (LifecycleStatus) {
|
|
11
|
+
let LifecycleStatus = /*#__PURE__*/function (LifecycleStatus) {
|
|
13
12
|
LifecycleStatus["DRAFT"] = "draft";
|
|
14
13
|
LifecycleStatus["SCHEDULED"] = "scheduled";
|
|
15
14
|
LifecycleStatus["PENDING"] = "pending";
|
|
16
15
|
LifecycleStatus["SENT"] = "sent";
|
|
17
|
-
|
|
16
|
+
return LifecycleStatus;
|
|
17
|
+
}({});
|
|
18
18
|
_Campaign.LifecycleStatus = LifecycleStatus;
|
|
19
|
-
let StoryAlignment
|
|
20
|
-
(function (StoryAlignment) {
|
|
19
|
+
let StoryAlignment = /*#__PURE__*/function (StoryAlignment) {
|
|
21
20
|
StoryAlignment["CENTER"] = "center";
|
|
22
21
|
StoryAlignment["LEFT"] = "left";
|
|
23
22
|
StoryAlignment["RIGHT"] = "right";
|
|
24
|
-
|
|
23
|
+
return StoryAlignment;
|
|
24
|
+
}({});
|
|
25
25
|
_Campaign.StoryAlignment = StoryAlignment;
|
|
26
|
-
let StoryAppearance
|
|
27
|
-
(function (StoryAppearance) {
|
|
26
|
+
let StoryAppearance = /*#__PURE__*/function (StoryAppearance) {
|
|
28
27
|
StoryAppearance["INTRO"] = "intro";
|
|
29
28
|
StoryAppearance["FULL"] = "full";
|
|
30
|
-
|
|
29
|
+
return StoryAppearance;
|
|
30
|
+
}({});
|
|
31
31
|
_Campaign.StoryAppearance = StoryAppearance;
|
|
32
|
-
let StoryHeaderFooter
|
|
33
|
-
(function (StoryHeaderFooter) {
|
|
32
|
+
let StoryHeaderFooter = /*#__PURE__*/function (StoryHeaderFooter) {
|
|
34
33
|
StoryHeaderFooter["NONE"] = "none";
|
|
35
34
|
StoryHeaderFooter["STANDARD"] = "standard";
|
|
36
35
|
StoryHeaderFooter["FULL"] = "full";
|
|
37
|
-
|
|
36
|
+
return StoryHeaderFooter;
|
|
37
|
+
}({});
|
|
38
38
|
_Campaign.StoryHeaderFooter = StoryHeaderFooter;
|
|
39
|
-
let SenderDomainVerificationStatus
|
|
40
|
-
(function (SenderDomainVerificationStatus) {
|
|
39
|
+
let SenderDomainVerificationStatus = /*#__PURE__*/function (SenderDomainVerificationStatus) {
|
|
41
40
|
SenderDomainVerificationStatus["UNKNOWN"] = "unknown";
|
|
42
41
|
SenderDomainVerificationStatus["VALID"] = "valid";
|
|
43
42
|
SenderDomainVerificationStatus["INVALID"] = "invalid";
|
|
44
43
|
SenderDomainVerificationStatus["NOT_APPLICABLE"] = "not-applicable";
|
|
45
|
-
|
|
44
|
+
return SenderDomainVerificationStatus;
|
|
45
|
+
}({});
|
|
46
46
|
_Campaign.SenderDomainVerificationStatus = SenderDomainVerificationStatus;
|
|
47
|
-
let ClickTrackingVersion
|
|
48
|
-
(function (ClickTrackingVersion) {
|
|
47
|
+
let ClickTrackingVersion = /*#__PURE__*/function (ClickTrackingVersion) {
|
|
49
48
|
ClickTrackingVersion[ClickTrackingVersion["DEPRECATED"] = 1] = "DEPRECATED";
|
|
50
49
|
ClickTrackingVersion[ClickTrackingVersion["ENHANCED"] = 2] = "ENHANCED";
|
|
51
|
-
|
|
50
|
+
return ClickTrackingVersion;
|
|
51
|
+
}({});
|
|
52
52
|
_Campaign.ClickTrackingVersion = ClickTrackingVersion;
|
|
53
53
|
function isDraft(arg) {
|
|
54
54
|
if (typeof arg === 'object') {
|
package/dist/types/Campaign.js
CHANGED
|
@@ -2,47 +2,47 @@ import { SenderDomain } from "./SenderDomain.js";
|
|
|
2
2
|
export let Campaign;
|
|
3
3
|
(function (_Campaign) {
|
|
4
4
|
const SenderDomainVerificationFlow = _Campaign.SenderDomainVerificationFlow = SenderDomain.VerificationFlowVersion;
|
|
5
|
-
let LifecycleStatus
|
|
6
|
-
(function (LifecycleStatus) {
|
|
5
|
+
let LifecycleStatus = /*#__PURE__*/function (LifecycleStatus) {
|
|
7
6
|
LifecycleStatus["DRAFT"] = "draft";
|
|
8
7
|
LifecycleStatus["SCHEDULED"] = "scheduled";
|
|
9
8
|
LifecycleStatus["PENDING"] = "pending";
|
|
10
9
|
LifecycleStatus["SENT"] = "sent";
|
|
11
|
-
|
|
10
|
+
return LifecycleStatus;
|
|
11
|
+
}({});
|
|
12
12
|
_Campaign.LifecycleStatus = LifecycleStatus;
|
|
13
|
-
let StoryAlignment
|
|
14
|
-
(function (StoryAlignment) {
|
|
13
|
+
let StoryAlignment = /*#__PURE__*/function (StoryAlignment) {
|
|
15
14
|
StoryAlignment["CENTER"] = "center";
|
|
16
15
|
StoryAlignment["LEFT"] = "left";
|
|
17
16
|
StoryAlignment["RIGHT"] = "right";
|
|
18
|
-
|
|
17
|
+
return StoryAlignment;
|
|
18
|
+
}({});
|
|
19
19
|
_Campaign.StoryAlignment = StoryAlignment;
|
|
20
|
-
let StoryAppearance
|
|
21
|
-
(function (StoryAppearance) {
|
|
20
|
+
let StoryAppearance = /*#__PURE__*/function (StoryAppearance) {
|
|
22
21
|
StoryAppearance["INTRO"] = "intro";
|
|
23
22
|
StoryAppearance["FULL"] = "full";
|
|
24
|
-
|
|
23
|
+
return StoryAppearance;
|
|
24
|
+
}({});
|
|
25
25
|
_Campaign.StoryAppearance = StoryAppearance;
|
|
26
|
-
let StoryHeaderFooter
|
|
27
|
-
(function (StoryHeaderFooter) {
|
|
26
|
+
let StoryHeaderFooter = /*#__PURE__*/function (StoryHeaderFooter) {
|
|
28
27
|
StoryHeaderFooter["NONE"] = "none";
|
|
29
28
|
StoryHeaderFooter["STANDARD"] = "standard";
|
|
30
29
|
StoryHeaderFooter["FULL"] = "full";
|
|
31
|
-
|
|
30
|
+
return StoryHeaderFooter;
|
|
31
|
+
}({});
|
|
32
32
|
_Campaign.StoryHeaderFooter = StoryHeaderFooter;
|
|
33
|
-
let SenderDomainVerificationStatus
|
|
34
|
-
(function (SenderDomainVerificationStatus) {
|
|
33
|
+
let SenderDomainVerificationStatus = /*#__PURE__*/function (SenderDomainVerificationStatus) {
|
|
35
34
|
SenderDomainVerificationStatus["UNKNOWN"] = "unknown";
|
|
36
35
|
SenderDomainVerificationStatus["VALID"] = "valid";
|
|
37
36
|
SenderDomainVerificationStatus["INVALID"] = "invalid";
|
|
38
37
|
SenderDomainVerificationStatus["NOT_APPLICABLE"] = "not-applicable";
|
|
39
|
-
|
|
38
|
+
return SenderDomainVerificationStatus;
|
|
39
|
+
}({});
|
|
40
40
|
_Campaign.SenderDomainVerificationStatus = SenderDomainVerificationStatus;
|
|
41
|
-
let ClickTrackingVersion
|
|
42
|
-
(function (ClickTrackingVersion) {
|
|
41
|
+
let ClickTrackingVersion = /*#__PURE__*/function (ClickTrackingVersion) {
|
|
43
42
|
ClickTrackingVersion[ClickTrackingVersion["DEPRECATED"] = 1] = "DEPRECATED";
|
|
44
43
|
ClickTrackingVersion[ClickTrackingVersion["ENHANCED"] = 2] = "ENHANCED";
|
|
45
|
-
|
|
44
|
+
return ClickTrackingVersion;
|
|
45
|
+
}({});
|
|
46
46
|
_Campaign.ClickTrackingVersion = ClickTrackingVersion;
|
|
47
47
|
function isDraft(arg) {
|
|
48
48
|
if (typeof arg === 'object') {
|
package/dist/types/Category.cjs
CHANGED
|
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.CategoryRef = exports.Category = void 0;
|
|
7
7
|
let CategoryRef = exports.CategoryRef = void 0;
|
|
8
|
-
(function (_CategoryRef) {})(CategoryRef || (exports.CategoryRef = CategoryRef = {}));
|
|
9
8
|
let Category = exports.Category = void 0;
|
|
10
9
|
(function (_Category) {
|
|
11
10
|
function isTranslated(category, locale) {
|
package/dist/types/Category.js
CHANGED
package/dist/types/Contact.cjs
CHANGED
|
@@ -6,21 +6,20 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.Contact = void 0;
|
|
7
7
|
let Contact = exports.Contact = void 0;
|
|
8
8
|
(function (_Contact) {
|
|
9
|
-
let Type
|
|
10
|
-
(function (Type) {
|
|
9
|
+
let Type = /*#__PURE__*/function (Type) {
|
|
11
10
|
Type["PERSON"] = "person";
|
|
12
11
|
Type["ORGANISATION"] = "organisation";
|
|
13
|
-
|
|
12
|
+
return Type;
|
|
13
|
+
}({});
|
|
14
14
|
_Contact.Type = Type;
|
|
15
|
-
let Gender
|
|
16
|
-
(function (Gender) {
|
|
15
|
+
let Gender = /*#__PURE__*/function (Gender) {
|
|
17
16
|
Gender["MALE"] = "male";
|
|
18
17
|
Gender["FEMALE"] = "female";
|
|
19
18
|
Gender["UNSPECIFIED"] = "unspecified";
|
|
20
|
-
|
|
19
|
+
return Gender;
|
|
20
|
+
}({});
|
|
21
21
|
_Contact.Gender = Gender;
|
|
22
|
-
let Periodicity
|
|
23
|
-
(function (Periodicity) {
|
|
22
|
+
let Periodicity = /*#__PURE__*/function (Periodicity) {
|
|
24
23
|
Periodicity["DAILY"] = "daily";
|
|
25
24
|
Periodicity["WEEKDAYS"] = "weekdays";
|
|
26
25
|
Periodicity["WEEKLY"] = "weekly";
|
|
@@ -31,10 +30,10 @@ let Contact = exports.Contact = void 0;
|
|
|
31
30
|
Periodicity["ANNUALLY"] = "annually";
|
|
32
31
|
Periodicity["BI_ANUALLY"] = "bi-annually";
|
|
33
32
|
Periodicity["SEMI_ANNUALLY"] = "semi-annually";
|
|
34
|
-
|
|
33
|
+
return Periodicity;
|
|
34
|
+
}({});
|
|
35
35
|
_Contact.Periodicity = Periodicity;
|
|
36
|
-
let MediumType
|
|
37
|
-
(function (MediumType) {
|
|
36
|
+
let MediumType = /*#__PURE__*/function (MediumType) {
|
|
38
37
|
MediumType["WIRE"] = "wire";
|
|
39
38
|
MediumType["PRINT"] = "print";
|
|
40
39
|
MediumType["RADIO"] = "radio";
|
|
@@ -52,10 +51,10 @@ let Contact = exports.Contact = void 0;
|
|
|
52
51
|
MediumType["PODCAST"] = "podcast";
|
|
53
52
|
MediumType["NEWSLETTER"] = "newsletter";
|
|
54
53
|
MediumType["NEWS_SITE"] = "news website";
|
|
55
|
-
|
|
54
|
+
return MediumType;
|
|
55
|
+
}({});
|
|
56
56
|
_Contact.MediumType = MediumType;
|
|
57
|
-
let SocialNetwork
|
|
58
|
-
(function (SocialNetwork) {
|
|
57
|
+
let SocialNetwork = /*#__PURE__*/function (SocialNetwork) {
|
|
59
58
|
SocialNetwork["DISCORD"] = "discord";
|
|
60
59
|
SocialNetwork["FACEBOOK"] = "facebook";
|
|
61
60
|
SocialNetwork["INSTAGRAM"] = "instagram";
|
|
@@ -67,15 +66,16 @@ let Contact = exports.Contact = void 0;
|
|
|
67
66
|
SocialNetwork["TWITCH"] = "twitch";
|
|
68
67
|
SocialNetwork["TWITTER"] = "twitter";
|
|
69
68
|
SocialNetwork["YOUTUBE"] = "youtube";
|
|
70
|
-
|
|
69
|
+
return SocialNetwork;
|
|
70
|
+
}({});
|
|
71
71
|
_Contact.SocialNetwork = SocialNetwork;
|
|
72
72
|
let PhoneNumber;
|
|
73
73
|
(function (_PhoneNumber) {
|
|
74
|
-
let Type
|
|
75
|
-
(function (Type) {
|
|
74
|
+
let Type = /*#__PURE__*/function (Type) {
|
|
76
75
|
Type["TELEPHONE"] = "tel";
|
|
77
76
|
Type["CELLPHONE"] = "cell";
|
|
78
|
-
|
|
77
|
+
return Type;
|
|
78
|
+
}({});
|
|
79
79
|
_PhoneNumber.Type = Type;
|
|
80
80
|
})(PhoneNumber || (PhoneNumber = _Contact.PhoneNumber || (_Contact.PhoneNumber = {})));
|
|
81
81
|
function isPerson(arg) {
|