@prezly/sdk 26.0.0 → 26.1.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/types.cjs +1 -2
- package/dist/endpoints/CoverageIntegrations/types.js +1 -2
- package/dist/endpoints/PricingTables/types.cjs +12 -12
- package/dist/endpoints/PricingTables/types.js +12 -12
- package/dist/endpoints/Stories/types.cjs +4 -5
- package/dist/endpoints/Stories/types.d.ts +1 -1
- package/dist/endpoints/Stories/types.js +4 -5
- package/dist/endpoints/Subscriptions/types.cjs +3 -3
- package/dist/endpoints/Subscriptions/types.js +3 -3
- package/dist/endpoints/index.cjs +1 -2
- package/dist/http/lib.cjs +1 -1
- 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 +9 -9
- package/dist/types/CoverageEntry.js +9 -9
- package/dist/types/CoverageIntegration.cjs +3 -3
- package/dist/types/CoverageIntegration.js +3 -3
- 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 +6 -6
- package/dist/types/EmailRecipient.js +6 -6
- package/dist/types/JobState.cjs +3 -3
- package/dist/types/JobState.js +3 -3
- package/dist/types/License.cjs +12 -12
- package/dist/types/License.js +12 -12
- package/dist/types/Newsroom.cjs +20 -12
- package/dist/types/Newsroom.js +20 -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 +10 -9
- package/dist/types/NewsroomTheme.js +10 -9
- 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 +10 -10
- package/dist/types/Plan.js +11 -11
- package/dist/types/Price.cjs +6 -6
- package/dist/types/Price.js +6 -6
- 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.d.ts +4 -0
- 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 +5 -5
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 = "
|
|
7
|
+
const VERSION = "26.0.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,15 +4,15 @@ 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["ESSENTIAL"] = "essential";
|
|
10
9
|
SignupPlan["STANDARD"] = "standard";
|
|
11
10
|
SignupPlan["AGENCY_ESSENTIAL"] = "agency_essential";
|
|
12
11
|
SignupPlan["AGENCY_STANDARD"] = "agency_standard";
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
return SignupPlan;
|
|
13
|
+
}({});
|
|
14
|
+
let SignupCurrency = exports.SignupCurrency = /*#__PURE__*/function (SignupCurrency) {
|
|
16
15
|
SignupCurrency["EUR"] = "eur";
|
|
17
16
|
SignupCurrency["USD"] = "usd";
|
|
18
|
-
|
|
17
|
+
return SignupCurrency;
|
|
18
|
+
}({});
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export let SignupPlan
|
|
2
|
-
(function (SignupPlan) {
|
|
1
|
+
export let SignupPlan = /*#__PURE__*/function (SignupPlan) {
|
|
3
2
|
SignupPlan["ESSENTIAL"] = "essential";
|
|
4
3
|
SignupPlan["STANDARD"] = "standard";
|
|
5
4
|
SignupPlan["AGENCY_ESSENTIAL"] = "agency_essential";
|
|
6
5
|
SignupPlan["AGENCY_STANDARD"] = "agency_standard";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
return SignupPlan;
|
|
7
|
+
}({});
|
|
8
|
+
export let SignupCurrency = /*#__PURE__*/function (SignupCurrency) {
|
|
10
9
|
SignupCurrency["EUR"] = "eur";
|
|
11
10
|
SignupCurrency["USD"] = "usd";
|
|
12
|
-
|
|
11
|
+
return SignupCurrency;
|
|
12
|
+
}({});
|
|
@@ -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
|
+
}({});
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import { CoverageEntry } from "../../types/index.js";
|
|
2
|
-
var Provider = CoverageEntry.Provider;
|
|
1
|
+
import { CoverageEntry } from "../../types/index.js";
|
|
@@ -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
|
+
}({});
|
|
@@ -34,8 +34,7 @@ const EXTENDED_STORY_INCLUDED_EXTRA_FIELDS_SHAPE = {
|
|
|
34
34
|
content: true,
|
|
35
35
|
attached_gallery_content: true,
|
|
36
36
|
referenced_entities: true
|
|
37
|
-
};
|
|
38
|
-
|
|
37
|
+
};
|
|
39
38
|
const ALL_EXTRA_FIELDS_SHAPE = {
|
|
40
39
|
thumbnail_image: true,
|
|
41
40
|
header_image: true,
|
|
@@ -54,8 +53,8 @@ const ALL_EXTRA_FIELDS_SHAPE = {
|
|
|
54
53
|
attached_contacts_content: true,
|
|
55
54
|
referenced_entities: true,
|
|
56
55
|
'campaigns.count': true,
|
|
57
|
-
'pitches.count': true
|
|
58
|
-
|
|
59
|
-
|
|
56
|
+
'pitches.count': true,
|
|
57
|
+
'coverage.count': true
|
|
58
|
+
};
|
|
60
59
|
const ALL_EXTRA_FIELDS = exports.ALL_EXTRA_FIELDS = Object.keys(ALL_EXTRA_FIELDS_SHAPE);
|
|
61
60
|
const EXTENDED_STORY_INCLUDED_EXTRA_FIELDS = exports.EXTENDED_STORY_INCLUDED_EXTRA_FIELDS = Object.keys(EXTENDED_STORY_INCLUDED_EXTRA_FIELDS_SHAPE);
|
|
@@ -254,6 +254,6 @@ export interface ChangeNewsroomUnsafeResponse {
|
|
|
254
254
|
message: string;
|
|
255
255
|
warnings: ChangeNewsroomWarning[];
|
|
256
256
|
}
|
|
257
|
-
export declare const ALL_EXTRA_FIELDS: (
|
|
257
|
+
export declare const ALL_EXTRA_FIELDS: ("content" | "preview_image" | "thumbnail_image" | "header_image" | "social_image" | "social_text" | "tag_names" | "attached_gallery_content" | "referenced_entities" | "autosaved_content" | "content_version" | "last_modifying_user" | "attached_videos_content" | "attached_bookmarks_content" | "attached_attachments_content" | "attached_contacts_content" | "campaigns.count" | "pitches.count" | "coverage.count")[];
|
|
258
258
|
export declare const EXTENDED_STORY_INCLUDED_EXTRA_FIELDS: ("content" | "preview_image" | "thumbnail_image" | "header_image" | "social_image" | "social_text" | "tag_names" | "attached_gallery_content" | "referenced_entities")[];
|
|
259
259
|
export {};
|
|
@@ -24,8 +24,7 @@ const EXTENDED_STORY_INCLUDED_EXTRA_FIELDS_SHAPE = {
|
|
|
24
24
|
content: true,
|
|
25
25
|
attached_gallery_content: true,
|
|
26
26
|
referenced_entities: true
|
|
27
|
-
};
|
|
28
|
-
|
|
27
|
+
};
|
|
29
28
|
const ALL_EXTRA_FIELDS_SHAPE = {
|
|
30
29
|
thumbnail_image: true,
|
|
31
30
|
header_image: true,
|
|
@@ -44,8 +43,8 @@ const ALL_EXTRA_FIELDS_SHAPE = {
|
|
|
44
43
|
attached_contacts_content: true,
|
|
45
44
|
referenced_entities: true,
|
|
46
45
|
'campaigns.count': true,
|
|
47
|
-
'pitches.count': true
|
|
48
|
-
|
|
49
|
-
|
|
46
|
+
'pitches.count': true,
|
|
47
|
+
'coverage.count': true
|
|
48
|
+
};
|
|
50
49
|
export const ALL_EXTRA_FIELDS = Object.keys(ALL_EXTRA_FIELDS_SHAPE);
|
|
51
50
|
export const EXTENDED_STORY_INCLUDED_EXTRA_FIELDS = Object.keys(EXTENDED_STORY_INCLUDED_EXTRA_FIELDS_SHAPE);
|
|
@@ -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/endpoints/index.cjs
CHANGED
|
@@ -64,5 +64,4 @@ var _Templates = _interopRequireWildcard(require("./Templates/index.cjs"));
|
|
|
64
64
|
exports.Templates = _Templates;
|
|
65
65
|
var _NotificationSubscriptions = _interopRequireWildcard(require("./NotificationSubscriptions/index.cjs"));
|
|
66
66
|
exports.NotificationSubscriptions = _NotificationSubscriptions;
|
|
67
|
-
function
|
|
68
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
67
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
package/dist/http/lib.cjs
CHANGED
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.createUrlWithQuery = createUrlWithQuery;
|
|
7
7
|
exports.isDeferredJobResponse = isDeferredJobResponse;
|
|
8
8
|
var _queryString = _interopRequireDefault(require("query-string"));
|
|
9
|
-
function _interopRequireDefault(
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
10
|
function parseUrlParams(query) {
|
|
11
11
|
return _queryString.default.parse(query, {
|
|
12
12
|
arrayFormat: 'bracket'
|
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,48 +8,48 @@ 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
|
ClickTrackingVersion[ClickTrackingVersion["INHOUSE"] = 3] = "INHOUSE";
|
|
52
|
-
|
|
51
|
+
return ClickTrackingVersion;
|
|
52
|
+
}({});
|
|
53
53
|
_Campaign.ClickTrackingVersion = ClickTrackingVersion;
|
|
54
54
|
function isDraft(arg) {
|
|
55
55
|
if (typeof arg === 'object') {
|
package/dist/types/Campaign.js
CHANGED
|
@@ -2,48 +2,48 @@ 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
|
ClickTrackingVersion[ClickTrackingVersion["INHOUSE"] = 3] = "INHOUSE";
|
|
46
|
-
|
|
45
|
+
return ClickTrackingVersion;
|
|
46
|
+
}({});
|
|
47
47
|
_Campaign.ClickTrackingVersion = ClickTrackingVersion;
|
|
48
48
|
function isDraft(arg) {
|
|
49
49
|
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) {
|