@prezly/sdk 23.16.0 → 23.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/api/ApiClient.d.ts +4 -4
- package/dist/api/DeferredJobsApiClient.d.ts +4 -4
- package/dist/api/constants.cjs +1 -1
- package/dist/api/constants.js +1 -1
- package/dist/endpoints/Accounts/Client.d.ts +1 -1
- package/dist/endpoints/Billing/types.cjs +6 -6
- package/dist/endpoints/Billing/types.js +6 -6
- package/dist/endpoints/CampaignRecipients/Client.d.ts +1 -1
- package/dist/endpoints/Campaigns/Client.d.ts +8 -8
- package/dist/endpoints/ContactTagGroups/types.cjs +3 -3
- package/dist/endpoints/ContactTagGroups/types.js +3 -3
- package/dist/endpoints/ContactTags/Client.d.ts +4 -4
- package/dist/endpoints/Contacts/Client.d.ts +6 -6
- package/dist/endpoints/ContactsExports/Client.d.ts +2 -2
- package/dist/endpoints/CoverageIntegrations/Client.d.ts +3 -3
- package/dist/endpoints/NewsroomCategories/Client.d.ts +3 -3
- package/dist/endpoints/NewsroomGalleries/Client.d.ts +1 -1
- package/dist/endpoints/NewsroomLanguages/Client.d.ts +10 -10
- package/dist/endpoints/NewsroomPrivacyRequests/Client.d.ts +2 -2
- package/dist/endpoints/NewsroomThemes/Client.d.ts +1 -1
- package/dist/endpoints/NewsroomWebhooks/Client.d.ts +3 -3
- package/dist/endpoints/PricingTables/types.cjs +15 -15
- package/dist/endpoints/PricingTables/types.js +15 -15
- package/dist/endpoints/SenderAddresses/Client.d.ts +3 -3
- package/dist/endpoints/Stories/Client.d.ts +102 -102
- package/dist/endpoints/Stories/types.d.ts +4 -2
- package/dist/endpoints/Subscriptions/Client.d.ts +2 -2
- package/dist/endpoints/Subscriptions/types.cjs +3 -3
- package/dist/endpoints/Subscriptions/types.js +3 -3
- package/dist/endpoints/index.cjs +1 -1
- 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 +12 -12
- package/dist/types/Newsroom.d.ts +2 -1
- 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 +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.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
|
@@ -14,110 +14,110 @@ type Exactly<Concrete, Abstract> = Concrete & Record<Exclude<keyof Concrete, key
|
|
|
14
14
|
type InferExtraFields<T> = T extends Required<IncludeOptions<infer I>> ? Pick<Story.ExtraFields, I> : unknown;
|
|
15
15
|
export type Client = ReturnType<typeof createClient>;
|
|
16
16
|
export declare function createClient(api: DeferredJobsApiClient): {
|
|
17
|
-
list: <Options extends ListOptions
|
|
18
|
-
search: <
|
|
17
|
+
list: <Options extends ListOptions>(options?: Exactly<Options, ListOptions>) => Promise<ListResponse<Story & InferExtraFields<Options>>>;
|
|
18
|
+
search: <Options extends SearchOptions>(options?: Exactly<Options, SearchOptions>) => Promise<ListResponse<Story & InferExtraFields<Options>>>;
|
|
19
19
|
get: {
|
|
20
|
-
<
|
|
21
|
-
formats?: Formats
|
|
22
|
-
}>(id: Story[
|
|
23
|
-
formats?: Formats
|
|
24
|
-
}>
|
|
25
|
-
<
|
|
26
|
-
formats?: Formats
|
|
27
|
-
}>(ids: Story[
|
|
28
|
-
formats?: Formats
|
|
29
|
-
}>
|
|
30
|
-
<
|
|
31
|
-
formats?: Formats
|
|
32
|
-
}>(id: Story[
|
|
33
|
-
formats?: Formats
|
|
34
|
-
}>
|
|
35
|
-
<
|
|
36
|
-
formats?: Formats
|
|
37
|
-
}>(ids: Story[
|
|
38
|
-
formats?: Formats
|
|
39
|
-
}>
|
|
20
|
+
<Options extends IncludeOptions & {
|
|
21
|
+
formats?: Formats;
|
|
22
|
+
}>(id: Story["uuid"], options?: Exactly<Options, IncludeOptions & {
|
|
23
|
+
formats?: Formats;
|
|
24
|
+
}>): Promise<ExtendedStory & InferExtraFields<Options>>;
|
|
25
|
+
<Options extends IncludeOptions & {
|
|
26
|
+
formats?: Formats;
|
|
27
|
+
}>(ids: Story["uuid"][], options?: Exactly<Options, IncludeOptions & {
|
|
28
|
+
formats?: Formats;
|
|
29
|
+
}>): Promise<(ExtendedStory & InferExtraFields<Options>)[]>;
|
|
30
|
+
<Options extends IncludeOptions & {
|
|
31
|
+
formats?: Formats;
|
|
32
|
+
}>(id: Story["id"] | Story["uuid"], options?: Exactly<Options, IncludeOptions & {
|
|
33
|
+
formats?: Formats;
|
|
34
|
+
}>): Promise<ExtendedStory & InferExtraFields<Options>>;
|
|
35
|
+
<Options extends IncludeOptions & {
|
|
36
|
+
formats?: Formats;
|
|
37
|
+
}>(ids: Story["id"][], options?: Exactly<Options, IncludeOptions & {
|
|
38
|
+
formats?: Formats;
|
|
39
|
+
}>): Promise<(ExtendedStory & InferExtraFields<Options>)[]>;
|
|
40
40
|
};
|
|
41
|
-
getBySlug: <
|
|
42
|
-
formats?: Formats
|
|
43
|
-
query?: Query
|
|
44
|
-
}>(slug: Story[
|
|
45
|
-
formats?: Formats
|
|
46
|
-
query?: Query
|
|
47
|
-
}>
|
|
48
|
-
create: <
|
|
49
|
-
formats?: Formats
|
|
50
|
-
force?: boolean
|
|
51
|
-
}>(payload: CreateRequest, options?: Exactly<
|
|
52
|
-
formats?: Formats
|
|
53
|
-
force?: boolean
|
|
54
|
-
}>
|
|
55
|
-
duplicate: <
|
|
56
|
-
formats?: Formats
|
|
57
|
-
}>(id: StoryId, options?: Exactly<
|
|
58
|
-
formats?: Formats
|
|
59
|
-
}>
|
|
60
|
-
translate: <
|
|
61
|
-
formats?: Formats
|
|
62
|
-
}>(id: StoryId, payload?: TranslateRequest, options?: Exactly<
|
|
63
|
-
formats?: Formats
|
|
64
|
-
}>
|
|
65
|
-
move: <
|
|
66
|
-
formats?: Formats
|
|
67
|
-
force?: boolean
|
|
68
|
-
}>(id: StoryId, payload: MoveRequest, options?: Exactly<
|
|
69
|
-
formats?: Formats
|
|
70
|
-
force?: boolean
|
|
71
|
-
}>
|
|
72
|
-
update: <
|
|
73
|
-
formats?: Formats
|
|
74
|
-
force?: boolean
|
|
75
|
-
}>(id: StoryId, payload: UpdateRequest, options?: Exactly<
|
|
76
|
-
formats?: Formats
|
|
77
|
-
force?: boolean
|
|
78
|
-
}>
|
|
79
|
-
autosave: <
|
|
80
|
-
formats?: Formats
|
|
81
|
-
}>(id: StoryId, payload: AutosaveRequest, options?: Exactly<
|
|
82
|
-
formats?: Formats
|
|
83
|
-
}>
|
|
84
|
-
revert: <
|
|
85
|
-
formats?: Formats
|
|
86
|
-
}>(id: StoryId, payload?: RevertRequest, options?: Exactly<
|
|
87
|
-
formats?: Formats
|
|
88
|
-
}>
|
|
89
|
-
publish: <
|
|
90
|
-
formats?: Formats
|
|
91
|
-
}>(id: StoryId, payload?: PublishRequest, options?: Exactly<
|
|
92
|
-
formats?: Formats
|
|
93
|
-
}>
|
|
94
|
-
unpublish: <
|
|
95
|
-
formats?: Formats
|
|
96
|
-
}>(id: StoryId, payload?: UnpublishRequest, options?: Exactly<
|
|
97
|
-
formats?: Formats
|
|
98
|
-
}>
|
|
99
|
-
schedule: <
|
|
100
|
-
formats?: Formats
|
|
101
|
-
}>(id: StoryId, payload?: ScheduleRequest, options?: Exactly<
|
|
102
|
-
formats?: Formats
|
|
103
|
-
}>
|
|
104
|
-
unschedule: <
|
|
105
|
-
formats?: Formats
|
|
106
|
-
}>(id: StoryId, payload?: UnscheduleRequest, options?: Exactly<
|
|
107
|
-
formats?: Formats
|
|
108
|
-
}>
|
|
109
|
-
pin: <
|
|
110
|
-
formats?: Formats
|
|
111
|
-
force?: boolean
|
|
112
|
-
}>(id: StoryId, options?: Exactly<
|
|
113
|
-
formats?: Formats
|
|
114
|
-
force?: boolean
|
|
115
|
-
}>
|
|
116
|
-
unpin: <
|
|
117
|
-
formats?: Formats
|
|
118
|
-
}>(id: StoryId, options?: Exactly<
|
|
119
|
-
formats?: Formats
|
|
120
|
-
}>
|
|
41
|
+
getBySlug: <Options extends IncludeOptions & {
|
|
42
|
+
formats?: Formats;
|
|
43
|
+
query?: Query;
|
|
44
|
+
}>(slug: Story["slug"], options?: Exactly<Options, IncludeOptions & {
|
|
45
|
+
formats?: Formats;
|
|
46
|
+
query?: Query;
|
|
47
|
+
}>) => Promise<ExtendedStory & InferExtraFields<Options>>;
|
|
48
|
+
create: <Options extends IncludeOptions & {
|
|
49
|
+
formats?: Formats;
|
|
50
|
+
force?: boolean;
|
|
51
|
+
}>(payload: CreateRequest, options?: Exactly<Options, IncludeOptions & {
|
|
52
|
+
formats?: Formats;
|
|
53
|
+
force?: boolean;
|
|
54
|
+
}>) => Promise<ExtendedStory & InferExtraFields<Options>>;
|
|
55
|
+
duplicate: <Options extends IncludeOptions & {
|
|
56
|
+
formats?: Formats;
|
|
57
|
+
}>(id: StoryId, options?: Exactly<Options, IncludeOptions & {
|
|
58
|
+
formats?: Formats;
|
|
59
|
+
}>) => Promise<ExtendedStory & InferExtraFields<Options>>;
|
|
60
|
+
translate: <Options extends IncludeOptions & {
|
|
61
|
+
formats?: Formats;
|
|
62
|
+
}>(id: StoryId, payload?: TranslateRequest, options?: Exactly<Options, IncludeOptions & {
|
|
63
|
+
formats?: Formats;
|
|
64
|
+
}>) => Promise<ExtendedStory & InferExtraFields<Options>>;
|
|
65
|
+
move: <Options extends IncludeOptions & {
|
|
66
|
+
formats?: Formats;
|
|
67
|
+
force?: boolean;
|
|
68
|
+
}>(id: StoryId, payload: MoveRequest, options?: Exactly<Options, IncludeOptions & {
|
|
69
|
+
formats?: Formats;
|
|
70
|
+
force?: boolean;
|
|
71
|
+
}>) => Promise<ChangeNewsroomSuccessResponse<ExtendedStory & InferExtraFields<Options>> | ChangeNewsroomUnsafeResponse>;
|
|
72
|
+
update: <Options extends IncludeOptions & {
|
|
73
|
+
formats?: Formats;
|
|
74
|
+
force?: boolean;
|
|
75
|
+
}>(id: StoryId, payload: UpdateRequest, options?: Exactly<Options, IncludeOptions & {
|
|
76
|
+
formats?: Formats;
|
|
77
|
+
force?: boolean;
|
|
78
|
+
}>) => Promise<ExtendedStory & InferExtraFields<Options>>;
|
|
79
|
+
autosave: <Options extends IncludeOptions & {
|
|
80
|
+
formats?: Formats;
|
|
81
|
+
}>(id: StoryId, payload: AutosaveRequest, options?: Exactly<Options, IncludeOptions & {
|
|
82
|
+
formats?: Formats;
|
|
83
|
+
}>) => Promise<ExtendedStory & InferExtraFields<Options>>;
|
|
84
|
+
revert: <Options extends IncludeOptions & {
|
|
85
|
+
formats?: Formats;
|
|
86
|
+
}>(id: StoryId, payload?: RevertRequest, options?: Exactly<Options, IncludeOptions & {
|
|
87
|
+
formats?: Formats;
|
|
88
|
+
}>) => Promise<ExtendedStory & InferExtraFields<Options>>;
|
|
89
|
+
publish: <Options extends IncludeOptions & {
|
|
90
|
+
formats?: Formats;
|
|
91
|
+
}>(id: StoryId, payload?: PublishRequest, options?: Exactly<Options, IncludeOptions & {
|
|
92
|
+
formats?: Formats;
|
|
93
|
+
}>) => Promise<ExtendedStory & InferExtraFields<Options>>;
|
|
94
|
+
unpublish: <Options extends IncludeOptions & {
|
|
95
|
+
formats?: Formats;
|
|
96
|
+
}>(id: StoryId, payload?: UnpublishRequest, options?: Exactly<Options, IncludeOptions & {
|
|
97
|
+
formats?: Formats;
|
|
98
|
+
}>) => Promise<ExtendedStory & InferExtraFields<Options>>;
|
|
99
|
+
schedule: <Options extends IncludeOptions & {
|
|
100
|
+
formats?: Formats;
|
|
101
|
+
}>(id: StoryId, payload?: ScheduleRequest, options?: Exactly<Options, IncludeOptions & {
|
|
102
|
+
formats?: Formats;
|
|
103
|
+
}>) => Promise<ExtendedStory & InferExtraFields<Options>>;
|
|
104
|
+
unschedule: <Options extends IncludeOptions & {
|
|
105
|
+
formats?: Formats;
|
|
106
|
+
}>(id: StoryId, payload?: UnscheduleRequest, options?: Exactly<Options, IncludeOptions & {
|
|
107
|
+
formats?: Formats;
|
|
108
|
+
}>) => Promise<ExtendedStory & InferExtraFields<Options>>;
|
|
109
|
+
pin: <Options extends IncludeOptions & {
|
|
110
|
+
formats?: Formats;
|
|
111
|
+
force?: boolean;
|
|
112
|
+
}>(id: StoryId, options?: Exactly<Options, IncludeOptions & {
|
|
113
|
+
formats?: Formats;
|
|
114
|
+
force?: boolean;
|
|
115
|
+
}>) => Promise<ExtendedStory & InferExtraFields<Options>>;
|
|
116
|
+
unpin: <Options extends IncludeOptions & {
|
|
117
|
+
formats?: Formats;
|
|
118
|
+
}>(id: StoryId, options?: Exactly<Options, IncludeOptions & {
|
|
119
|
+
formats?: Formats;
|
|
120
|
+
}>) => Promise<ExtendedStory & InferExtraFields<Options>>;
|
|
121
121
|
delete: (id: StoryId) => Promise<void>;
|
|
122
122
|
preview: (id: StoryId, options?: PreviewOptions) => Promise<PreviewResponse>;
|
|
123
123
|
};
|
|
@@ -254,6 +254,8 @@ export interface ChangeNewsroomUnsafeResponse {
|
|
|
254
254
|
message: string;
|
|
255
255
|
warnings: ChangeNewsroomWarning[];
|
|
256
256
|
}
|
|
257
|
-
|
|
258
|
-
|
|
257
|
+
declare const EXTENDED_STORY_INCLUDED_EXTRA_FIELDS_SHAPE: Record<keyof Omit<ExtendedStory, keyof Story>, boolean>;
|
|
258
|
+
declare const ALL_EXTRA_FIELDS_SHAPE: Record<keyof Story.ExtraFields, boolean>;
|
|
259
|
+
export declare const ALL_EXTRA_FIELDS: (keyof typeof ALL_EXTRA_FIELDS_SHAPE)[];
|
|
260
|
+
export declare const EXTENDED_STORY_INCLUDED_EXTRA_FIELDS: (keyof typeof EXTENDED_STORY_INCLUDED_EXTRA_FIELDS_SHAPE)[];
|
|
259
261
|
export {};
|
|
@@ -7,7 +7,7 @@ export declare function createClient(api: DeferredJobsApiClient): {
|
|
|
7
7
|
subscribeToNewsroom: <Type extends Contact.Type>(newsroomId: NewsroomId, payload: SubscribeRequest<Type>) => Promise<EmailSubscription>;
|
|
8
8
|
unsubscribeFromNewsroom: (newsroomId: NewsroomId, payload: UnsubscribeRequest) => Promise<EmailSubscription>;
|
|
9
9
|
unsubscribeFromLicense: (payload: UnsubscribeRequest) => Promise<EmailSubscription>;
|
|
10
|
-
updateNewsroomUnsubscribeDetails: (newsroomId: NewsroomId, subscriptionId: EmailSubscription[
|
|
11
|
-
updateLicenseUnsubscribeDetails: (subscriptionId: EmailSubscription[
|
|
10
|
+
updateNewsroomUnsubscribeDetails: (newsroomId: NewsroomId, subscriptionId: EmailSubscription["id"], payload: UpdateUnsubscribeDetailsRequest) => Promise<EmailSubscription>;
|
|
11
|
+
updateLicenseUnsubscribeDetails: (subscriptionId: EmailSubscription["id"], payload: UpdateUnsubscribeDetailsRequest) => Promise<EmailSubscription>;
|
|
12
12
|
};
|
|
13
13
|
export {};
|
|
@@ -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
|
@@ -63,4 +63,4 @@ exports.Subscriptions = _Subscriptions;
|
|
|
63
63
|
var _NotificationSubscriptions = _interopRequireWildcard(require("./NotificationSubscriptions/index.cjs"));
|
|
64
64
|
exports.NotificationSubscriptions = _NotificationSubscriptions;
|
|
65
65
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
66
|
-
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 &&
|
|
66
|
+
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 && {}.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; }
|
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) {
|