@wix/auto_sdk_email-subscriptions_email-subscriptions 1.0.5 → 1.0.6
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/build/cjs/index.d.ts +71 -1
- package/build/cjs/index.js +482 -15
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +491 -1
- package/build/cjs/index.typings.js +408 -15
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +209 -1
- package/build/cjs/meta.js +334 -15
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +71 -0
- package/build/es/index.mjs +453 -0
- package/build/es/index.mjs.map +1 -0
- package/build/{internal/cjs/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.universal.d.ts → es/index.typings.d.mts} +61 -91
- package/build/es/index.typings.mjs +380 -0
- package/build/es/index.typings.mjs.map +1 -0
- package/build/es/meta.d.mts +209 -0
- package/build/es/meta.mjs +306 -0
- package/build/es/meta.mjs.map +1 -0
- package/build/internal/cjs/index.d.ts +82 -1
- package/build/internal/cjs/index.js +482 -15
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +502 -1
- package/build/internal/cjs/index.typings.js +408 -15
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +209 -1
- package/build/internal/cjs/meta.js +334 -15
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +82 -0
- package/build/internal/es/index.mjs +453 -0
- package/build/internal/es/index.mjs.map +1 -0
- package/build/internal/es/{src/emailsubscriptions-v1-emailsubscription-email-subscriptions.universal.d.ts → index.typings.d.mts} +62 -81
- package/build/internal/es/index.typings.mjs +380 -0
- package/build/internal/es/index.typings.mjs.map +1 -0
- package/build/internal/es/meta.d.mts +209 -0
- package/build/internal/es/meta.mjs +306 -0
- package/build/internal/es/meta.mjs.map +1 -0
- package/package.json +12 -10
- package/build/cjs/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.context.d.ts +0 -12
- package/build/cjs/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.context.js +0 -20
- package/build/cjs/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.context.js.map +0 -1
- package/build/cjs/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.http.d.ts +0 -41
- package/build/cjs/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.http.js +0 -239
- package/build/cjs/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.http.js.map +0 -1
- package/build/cjs/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.meta.d.ts +0 -19
- package/build/cjs/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.meta.js +0 -123
- package/build/cjs/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.meta.js.map +0 -1
- package/build/cjs/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.public.d.ts +0 -64
- package/build/cjs/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.public.js +0 -54
- package/build/cjs/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.public.js.map +0 -1
- package/build/cjs/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.types.d.ts +0 -360
- package/build/cjs/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.types.js +0 -36
- package/build/cjs/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.types.js.map +0 -1
- package/build/cjs/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.universal.d.ts +0 -506
- package/build/cjs/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.universal.js +0 -283
- package/build/cjs/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.universal.js.map +0 -1
- package/build/es/index.d.ts +0 -1
- package/build/es/index.js +0 -2
- package/build/es/index.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -1
- package/build/es/index.typings.js +0 -2
- package/build/es/index.typings.js.map +0 -1
- package/build/es/meta.d.ts +0 -1
- package/build/es/meta.js +0 -2
- package/build/es/meta.js.map +0 -1
- package/build/es/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.context.d.ts +0 -12
- package/build/es/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.context.js +0 -14
- package/build/es/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.context.js.map +0 -1
- package/build/es/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.http.d.ts +0 -41
- package/build/es/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.http.js +0 -231
- package/build/es/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.http.js.map +0 -1
- package/build/es/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.meta.d.ts +0 -19
- package/build/es/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.meta.js +0 -92
- package/build/es/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.meta.js.map +0 -1
- package/build/es/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.public.d.ts +0 -64
- package/build/es/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.public.js +0 -43
- package/build/es/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.public.js.map +0 -1
- package/build/es/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.types.d.ts +0 -360
- package/build/es/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.types.js +0 -33
- package/build/es/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.types.js.map +0 -1
- package/build/es/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.universal.d.ts +0 -506
- package/build/es/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.universal.js +0 -252
- package/build/es/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.universal.js.map +0 -1
- package/build/internal/cjs/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.context.d.ts +0 -14
- package/build/internal/cjs/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.context.js +0 -20
- package/build/internal/cjs/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.context.js.map +0 -1
- package/build/internal/cjs/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.http.d.ts +0 -41
- package/build/internal/cjs/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.http.js +0 -239
- package/build/internal/cjs/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.http.js.map +0 -1
- package/build/internal/cjs/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.meta.d.ts +0 -19
- package/build/internal/cjs/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.meta.js +0 -123
- package/build/internal/cjs/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.meta.js.map +0 -1
- package/build/internal/cjs/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.public.d.ts +0 -73
- package/build/internal/cjs/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.public.js +0 -54
- package/build/internal/cjs/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.public.js.map +0 -1
- package/build/internal/cjs/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.types.d.ts +0 -360
- package/build/internal/cjs/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.types.js +0 -36
- package/build/internal/cjs/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.types.js.map +0 -1
- package/build/internal/cjs/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.universal.js +0 -283
- package/build/internal/cjs/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.universal.js.map +0 -1
- package/build/internal/es/index.d.ts +0 -1
- package/build/internal/es/index.js +0 -2
- package/build/internal/es/index.js.map +0 -1
- package/build/internal/es/index.typings.d.ts +0 -1
- package/build/internal/es/index.typings.js +0 -2
- package/build/internal/es/index.typings.js.map +0 -1
- package/build/internal/es/meta.d.ts +0 -1
- package/build/internal/es/meta.js +0 -2
- package/build/internal/es/meta.js.map +0 -1
- package/build/internal/es/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.context.d.ts +0 -14
- package/build/internal/es/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.context.js +0 -14
- package/build/internal/es/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.context.js.map +0 -1
- package/build/internal/es/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.http.d.ts +0 -41
- package/build/internal/es/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.http.js +0 -231
- package/build/internal/es/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.http.js.map +0 -1
- package/build/internal/es/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.meta.d.ts +0 -19
- package/build/internal/es/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.meta.js +0 -92
- package/build/internal/es/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.meta.js.map +0 -1
- package/build/internal/es/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.public.d.ts +0 -73
- package/build/internal/es/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.public.js +0 -43
- package/build/internal/es/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.public.js.map +0 -1
- package/build/internal/es/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.types.d.ts +0 -360
- package/build/internal/es/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.types.js +0 -33
- package/build/internal/es/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.types.js.map +0 -1
- package/build/internal/es/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.universal.js +0 -252
- package/build/internal/es/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.universal.js.map +0 -1
package/build/cjs/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.universal.d.ts
DELETED
@@ -1,506 +0,0 @@
|
|
1
|
-
import { NonNullablePaths } from '@wix/sdk-types';
|
2
|
-
export interface EmailSubscription {
|
3
|
-
/**
|
4
|
-
* Email subscription ID.
|
5
|
-
* @format GUID
|
6
|
-
* @readonly
|
7
|
-
*/
|
8
|
-
_id?: string | null;
|
9
|
-
/**
|
10
|
-
* Email address.
|
11
|
-
* @format EMAIL
|
12
|
-
*/
|
13
|
-
email?: string;
|
14
|
-
/**
|
15
|
-
* Indicates the recipient's opt-in or opt-out status
|
16
|
-
* for marketing emails.
|
17
|
-
*
|
18
|
-
* - `NOT_SET`: No status specified. This is the default, initial value before any info about the email address is known.
|
19
|
-
* - `PENDING`: Subscription confirmation was requested,
|
20
|
-
* but recipient hasn't confirmed yet.
|
21
|
-
* - `SUBSCRIBED`: Recipient has opted in to marketing emails.
|
22
|
-
* - `UNSUBSCRIBED`: Recipient has opted out of marketing emails.
|
23
|
-
*
|
24
|
-
* Defaults to `NOT_SET`.
|
25
|
-
*/
|
26
|
-
subscriptionStatus?: SubscriptionEnumStatus;
|
27
|
-
/**
|
28
|
-
* Indicates last reported status of sent emails.
|
29
|
-
*
|
30
|
-
* - `NOT_SET`: No status specified. This is the default, initial value before any info about the email address is known.
|
31
|
-
* - `VALID`: Emails to this email address are being delivered successfully.
|
32
|
-
* - `BOUNCED`: The last email to the recipient bounced or was rejected.
|
33
|
-
* - `SPAM_COMPLAINT`: The recipient registered a spam complaint
|
34
|
-
* with their email provider.
|
35
|
-
* - `INACTIVE`: Multiple campaigns have been delivered to this address without any engagement from the recipient. (No emails were opened and no content was clicked.)
|
36
|
-
* This status might impact subsequent emails sent to this address.
|
37
|
-
*
|
38
|
-
* Defaults to `NOT_SET`.
|
39
|
-
*/
|
40
|
-
deliverabilityStatus?: Status;
|
41
|
-
/**
|
42
|
-
* Date and time the email subscription was created.
|
43
|
-
* @readonly
|
44
|
-
*/
|
45
|
-
_createdDate?: Date | null;
|
46
|
-
/**
|
47
|
-
* Date and time the email subscription was last updated.
|
48
|
-
* @readonly
|
49
|
-
*/
|
50
|
-
_updatedDate?: Date | null;
|
51
|
-
}
|
52
|
-
export declare enum SubscriptionEnumStatus {
|
53
|
-
UNKNOWN = "UNKNOWN",
|
54
|
-
/** No Subscription exists */
|
55
|
-
NOT_SET = "NOT_SET",
|
56
|
-
/** Pending Subscription */
|
57
|
-
PENDING = "PENDING",
|
58
|
-
/** Subscribed */
|
59
|
-
SUBSCRIBED = "SUBSCRIBED",
|
60
|
-
/** UnSubscribed */
|
61
|
-
UNSUBSCRIBED = "UNSUBSCRIBED"
|
62
|
-
}
|
63
|
-
export declare enum Status {
|
64
|
-
NOT_SET = "NOT_SET",
|
65
|
-
/** valid/deferral */
|
66
|
-
VALID = "VALID",
|
67
|
-
/** bounced/rejected/invalid */
|
68
|
-
BOUNCED = "BOUNCED",
|
69
|
-
/** spam/complaint */
|
70
|
-
SPAM_COMPLAINT = "SPAM_COMPLAINT",
|
71
|
-
/** valid, but no activity reported */
|
72
|
-
INACTIVE = "INACTIVE"
|
73
|
-
}
|
74
|
-
/** Triggered when an email subscription's status is changed. */
|
75
|
-
export interface EmailSubscriptionChanged {
|
76
|
-
/** Email subscription that changed. */
|
77
|
-
subscription?: EmailSubscription;
|
78
|
-
}
|
79
|
-
export interface GetEmailSubscriptionRequest {
|
80
|
-
/** @format GUID */
|
81
|
-
_id: string;
|
82
|
-
}
|
83
|
-
export interface GetEmailSubscriptionResponse {
|
84
|
-
/** Returned email subscription */
|
85
|
-
emailSubscription?: EmailSubscription;
|
86
|
-
}
|
87
|
-
export interface UpdateEmailSubscriptionRequest {
|
88
|
-
/** Email subscription to update */
|
89
|
-
subscription?: EmailSubscription;
|
90
|
-
}
|
91
|
-
export interface UpdateEmailSubscriptionResponse {
|
92
|
-
/** Updated email subscription */
|
93
|
-
subscription?: EmailSubscription;
|
94
|
-
}
|
95
|
-
export interface QueryEmailSubscriptionsRequest {
|
96
|
-
/**
|
97
|
-
* Filter options.
|
98
|
-
* Currently, querying is supported on the `email` field
|
99
|
-
* with the `$in` array filter.
|
100
|
-
*/
|
101
|
-
filter: Record<string, any> | null;
|
102
|
-
/**
|
103
|
-
* Pagination options. For more information, see
|
104
|
-
* [Pagination](https://dev.wix.com/api/rest/getting-started/pagination).
|
105
|
-
*/
|
106
|
-
paging?: Paging;
|
107
|
-
}
|
108
|
-
export interface Paging {
|
109
|
-
/** Number of items to load. */
|
110
|
-
limit?: number | null;
|
111
|
-
/** Number of items to skip in the current sort order. */
|
112
|
-
offset?: number | null;
|
113
|
-
}
|
114
|
-
export interface QueryEmailSubscriptionsResponse {
|
115
|
-
/** List of subscribed emails that matched the query options. */
|
116
|
-
subscriptions?: EmailSubscription[];
|
117
|
-
/** Metadata for the paginated results. */
|
118
|
-
metadata?: PagingMetadata;
|
119
|
-
}
|
120
|
-
export interface PagingMetadata {
|
121
|
-
/** Number of items returned in the response. */
|
122
|
-
count?: number | null;
|
123
|
-
/** Offset that was requested. */
|
124
|
-
offset?: number | null;
|
125
|
-
/** Total number of items that match the query. */
|
126
|
-
total?: number | null;
|
127
|
-
/** Flag that indicates the server failed to calculate the `total` field. */
|
128
|
-
tooManyToCount?: boolean | null;
|
129
|
-
}
|
130
|
-
export interface UpsertEmailSubscriptionRequest {
|
131
|
-
/** Email subscription to update or create. */
|
132
|
-
subscription?: EmailSubscription;
|
133
|
-
}
|
134
|
-
export interface UpsertEmailSubscriptionResponse {
|
135
|
-
/** Updated or created email subscription. */
|
136
|
-
subscription?: EmailSubscription;
|
137
|
-
}
|
138
|
-
export interface BulkUpsertEmailSubscriptionRequest {
|
139
|
-
/**
|
140
|
-
* List of email subscriptions to update or create.
|
141
|
-
* @minSize 1
|
142
|
-
* @maxSize 100
|
143
|
-
*/
|
144
|
-
subscriptions: EmailSubscription[];
|
145
|
-
}
|
146
|
-
export interface BulkUpsertEmailSubscriptionResponse {
|
147
|
-
/** List of updated or created email subscriptions. */
|
148
|
-
results?: BulkUpsertEmailSubscriptionResult[];
|
149
|
-
/** Numbers of successful and failed actions. */
|
150
|
-
metadata?: Metadata;
|
151
|
-
}
|
152
|
-
export interface BulkUpsertEmailSubscriptionResult {
|
153
|
-
/** Position of the requested email subscription in the bulk array. */
|
154
|
-
originalIndex?: number;
|
155
|
-
/** New or updated email subscription. */
|
156
|
-
emailSubscription?: EmailSubscription;
|
157
|
-
/**
|
158
|
-
* Error information if the action failed.
|
159
|
-
* Omitted from successful actions.
|
160
|
-
*/
|
161
|
-
error?: Error;
|
162
|
-
}
|
163
|
-
export interface Error {
|
164
|
-
/** Error code. */
|
165
|
-
errorCode?: string;
|
166
|
-
/** Message that contains details about the error. */
|
167
|
-
message?: string;
|
168
|
-
}
|
169
|
-
export interface Metadata {
|
170
|
-
/** Number of successful actions. */
|
171
|
-
totalSuccess?: number;
|
172
|
-
/** Number of failed actions. */
|
173
|
-
totalFailure?: number;
|
174
|
-
}
|
175
|
-
export interface GenerateUnsubscribeLinkRequest {
|
176
|
-
/**
|
177
|
-
* Email address the unsubscribe link is for.
|
178
|
-
* @format EMAIL
|
179
|
-
*/
|
180
|
-
emailAddress: string;
|
181
|
-
/** Arbitrary parameters for closing-the-loop. */
|
182
|
-
metadata?: Record<string, string>;
|
183
|
-
/**
|
184
|
-
* Language for displaying unsubscribe confirmation page.
|
185
|
-
*
|
186
|
-
* 2-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.
|
187
|
-
*
|
188
|
-
* Default: `EN`
|
189
|
-
* @format LANGUAGE
|
190
|
-
*/
|
191
|
-
language?: string | null;
|
192
|
-
}
|
193
|
-
export interface GenerateUnsubscribeLinkResponse {
|
194
|
-
/** The unsubscribe link. */
|
195
|
-
link?: string;
|
196
|
-
}
|
197
|
-
export interface RenderUnsubscribePageRequest {
|
198
|
-
/** Payload */
|
199
|
-
payload?: string;
|
200
|
-
/** Language */
|
201
|
-
language?: string | null;
|
202
|
-
}
|
203
|
-
export interface RawHttpResponse {
|
204
|
-
body?: Uint8Array;
|
205
|
-
statusCode?: number | null;
|
206
|
-
headers?: HeadersEntry[];
|
207
|
-
}
|
208
|
-
export interface HeadersEntry {
|
209
|
-
key?: string;
|
210
|
-
value?: string;
|
211
|
-
}
|
212
|
-
export interface ConfirmUnsubscribeActionRequest {
|
213
|
-
/** Payload */
|
214
|
-
payload?: string;
|
215
|
-
}
|
216
|
-
export interface Empty {
|
217
|
-
}
|
218
|
-
export interface DomainEvent extends DomainEventBodyOneOf {
|
219
|
-
createdEvent?: EntityCreatedEvent;
|
220
|
-
updatedEvent?: EntityUpdatedEvent;
|
221
|
-
deletedEvent?: EntityDeletedEvent;
|
222
|
-
actionEvent?: ActionEvent;
|
223
|
-
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
224
|
-
_id?: string;
|
225
|
-
/**
|
226
|
-
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
227
|
-
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
228
|
-
*/
|
229
|
-
entityFqdn?: string;
|
230
|
-
/**
|
231
|
-
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
232
|
-
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
233
|
-
*/
|
234
|
-
slug?: string;
|
235
|
-
/** ID of the entity associated with the event. */
|
236
|
-
entityId?: string;
|
237
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
238
|
-
eventTime?: Date | null;
|
239
|
-
/**
|
240
|
-
* Whether the event was triggered as a result of a privacy regulation application
|
241
|
-
* (for example, GDPR).
|
242
|
-
*/
|
243
|
-
triggeredByAnonymizeRequest?: boolean | null;
|
244
|
-
/** If present, indicates the action that triggered the event. */
|
245
|
-
originatedFrom?: string | null;
|
246
|
-
/**
|
247
|
-
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
|
248
|
-
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
249
|
-
*/
|
250
|
-
entityEventSequence?: string | null;
|
251
|
-
}
|
252
|
-
/** @oneof */
|
253
|
-
export interface DomainEventBodyOneOf {
|
254
|
-
createdEvent?: EntityCreatedEvent;
|
255
|
-
updatedEvent?: EntityUpdatedEvent;
|
256
|
-
deletedEvent?: EntityDeletedEvent;
|
257
|
-
actionEvent?: ActionEvent;
|
258
|
-
}
|
259
|
-
export interface EntityCreatedEvent {
|
260
|
-
entity?: string;
|
261
|
-
}
|
262
|
-
export interface RestoreInfo {
|
263
|
-
deletedDate?: Date | null;
|
264
|
-
}
|
265
|
-
export interface EntityUpdatedEvent {
|
266
|
-
/**
|
267
|
-
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
268
|
-
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
269
|
-
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
270
|
-
*/
|
271
|
-
currentEntity?: string;
|
272
|
-
}
|
273
|
-
export interface EntityDeletedEvent {
|
274
|
-
/** Entity that was deleted. */
|
275
|
-
deletedEntity?: string | null;
|
276
|
-
}
|
277
|
-
export interface ActionEvent {
|
278
|
-
body?: string;
|
279
|
-
}
|
280
|
-
export interface MessageEnvelope {
|
281
|
-
/**
|
282
|
-
* App instance ID.
|
283
|
-
* @format GUID
|
284
|
-
*/
|
285
|
-
instanceId?: string | null;
|
286
|
-
/**
|
287
|
-
* Event type.
|
288
|
-
* @maxLength 150
|
289
|
-
*/
|
290
|
-
eventType?: string;
|
291
|
-
/** The identification type and identity data. */
|
292
|
-
identity?: IdentificationData;
|
293
|
-
/** Stringify payload. */
|
294
|
-
data?: string;
|
295
|
-
}
|
296
|
-
export interface IdentificationData extends IdentificationDataIdOneOf {
|
297
|
-
/**
|
298
|
-
* ID of a site visitor that has not logged in to the site.
|
299
|
-
* @format GUID
|
300
|
-
*/
|
301
|
-
anonymousVisitorId?: string;
|
302
|
-
/**
|
303
|
-
* ID of a site visitor that has logged in to the site.
|
304
|
-
* @format GUID
|
305
|
-
*/
|
306
|
-
memberId?: string;
|
307
|
-
/**
|
308
|
-
* ID of a Wix user (site owner, contributor, etc.).
|
309
|
-
* @format GUID
|
310
|
-
*/
|
311
|
-
wixUserId?: string;
|
312
|
-
/**
|
313
|
-
* ID of an app.
|
314
|
-
* @format GUID
|
315
|
-
*/
|
316
|
-
appId?: string;
|
317
|
-
/** @readonly */
|
318
|
-
identityType?: WebhookIdentityType;
|
319
|
-
}
|
320
|
-
/** @oneof */
|
321
|
-
export interface IdentificationDataIdOneOf {
|
322
|
-
/**
|
323
|
-
* ID of a site visitor that has not logged in to the site.
|
324
|
-
* @format GUID
|
325
|
-
*/
|
326
|
-
anonymousVisitorId?: string;
|
327
|
-
/**
|
328
|
-
* ID of a site visitor that has logged in to the site.
|
329
|
-
* @format GUID
|
330
|
-
*/
|
331
|
-
memberId?: string;
|
332
|
-
/**
|
333
|
-
* ID of a Wix user (site owner, contributor, etc.).
|
334
|
-
* @format GUID
|
335
|
-
*/
|
336
|
-
wixUserId?: string;
|
337
|
-
/**
|
338
|
-
* ID of an app.
|
339
|
-
* @format GUID
|
340
|
-
*/
|
341
|
-
appId?: string;
|
342
|
-
}
|
343
|
-
export declare enum WebhookIdentityType {
|
344
|
-
UNKNOWN = "UNKNOWN",
|
345
|
-
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
346
|
-
MEMBER = "MEMBER",
|
347
|
-
WIX_USER = "WIX_USER",
|
348
|
-
APP = "APP"
|
349
|
-
}
|
350
|
-
export interface V1RenderUnsubscribePageRequest {
|
351
|
-
/** Payload */
|
352
|
-
payload?: string;
|
353
|
-
/** Language */
|
354
|
-
language?: string | null;
|
355
|
-
}
|
356
|
-
export interface V1ConfirmUnsubscribeActionRequest {
|
357
|
-
/** Payload */
|
358
|
-
payload?: string;
|
359
|
-
}
|
360
|
-
export interface BaseEventMetadata {
|
361
|
-
/**
|
362
|
-
* App instance ID.
|
363
|
-
* @format GUID
|
364
|
-
*/
|
365
|
-
instanceId?: string | null;
|
366
|
-
/**
|
367
|
-
* Event type.
|
368
|
-
* @maxLength 150
|
369
|
-
*/
|
370
|
-
eventType?: string;
|
371
|
-
/** The identification type and identity data. */
|
372
|
-
identity?: IdentificationData;
|
373
|
-
}
|
374
|
-
export interface EmailsubscriptionEmailSubscriptionChangedEnvelope {
|
375
|
-
data: EmailSubscriptionChanged;
|
376
|
-
metadata: BaseEventMetadata;
|
377
|
-
}
|
378
|
-
/** @permissionScope Manage Stores
|
379
|
-
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
380
|
-
* @permissionScope Manage Email Subscriptions
|
381
|
-
* @permissionScopeId SCOPE.DC-MANAGE.EMAIL-SUBSCRIPTIONS
|
382
|
-
* @permissionId EMAIL_SUBSCRIPTIONS.VIEW
|
383
|
-
* @webhook
|
384
|
-
* @eventType com.wixpress.emailsubscriptions.v1.EmailSubscriptionChanged
|
385
|
-
* @serviceIdentifier com.wixpress.emailsubscriptions.v1.EmailSubscriptionsService
|
386
|
-
* @slug email_subscription_changed
|
387
|
-
* @documentationMaturity preview
|
388
|
-
*/
|
389
|
-
export declare function onEmailsubscriptionEmailSubscriptionChanged(handler: (event: EmailsubscriptionEmailSubscriptionChangedEnvelope) => void | Promise<void>): void;
|
390
|
-
type EmailsubscriptionNonNullablePaths = `email` | `subscriptionStatus` | `deliverabilityStatus`;
|
391
|
-
/**
|
392
|
-
* Retrieves email subscriptions,
|
393
|
-
* given the provided paging, filtering, and sorting.
|
394
|
-
*
|
395
|
-
* Currently, querying is supported on the `email` field
|
396
|
-
* with the `$in` array filter.
|
397
|
-
* For example, to query for emails `"me@my.com"` and `"you@your.org"`,
|
398
|
-
* the filter should be formed like this:
|
399
|
-
*
|
400
|
-
* ```json
|
401
|
-
* { "filter": {
|
402
|
-
* "email": {
|
403
|
-
* "$in": ["me@my.com", "you@your.org"]
|
404
|
-
* }
|
405
|
-
* }
|
406
|
-
* }
|
407
|
-
* ```
|
408
|
-
*
|
409
|
-
* To learn how to query email subscriptions, see
|
410
|
-
* [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language).
|
411
|
-
* @param filter - Filter options.
|
412
|
-
* Currently, querying is supported on the `email` field
|
413
|
-
* with the `$in` array filter.
|
414
|
-
* @public
|
415
|
-
* @documentationMaturity preview
|
416
|
-
* @requiredField filter
|
417
|
-
* @permissionId EMAIL_SUBSCRIPTIONS.VIEW
|
418
|
-
* @permissionScope Manage Stores
|
419
|
-
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
420
|
-
* @permissionScope Manage Email Subscriptions
|
421
|
-
* @permissionScopeId SCOPE.DC-MANAGE.EMAIL-SUBSCRIPTIONS
|
422
|
-
* @applicableIdentity APP
|
423
|
-
* @fqn com.wixpress.emailsubscriptions.v1.EmailSubscriptionsService.QueryEmailSubscriptions
|
424
|
-
*/
|
425
|
-
export declare function queryEmailSubscriptions(filter: Record<string, any>, options?: QueryEmailSubscriptionsOptions): Promise<NonNullablePaths<QueryEmailSubscriptionsResponse, {
|
426
|
-
[P in EmailsubscriptionNonNullablePaths]: `subscriptions.${number}.${P}`;
|
427
|
-
}[EmailsubscriptionNonNullablePaths]>>;
|
428
|
-
export interface QueryEmailSubscriptionsOptions {
|
429
|
-
/**
|
430
|
-
* Pagination options. For more information, see
|
431
|
-
* [Pagination](https://dev.wix.com/api/rest/getting-started/pagination).
|
432
|
-
*/
|
433
|
-
paging?: Paging;
|
434
|
-
}
|
435
|
-
/**
|
436
|
-
* Updates or creates an email subscription for the requested email.
|
437
|
-
*
|
438
|
-
* An email subscription is returned in the response
|
439
|
-
* whether it was updated or created.
|
440
|
-
* @public
|
441
|
-
* @documentationMaturity preview
|
442
|
-
* @requiredField options.subscription.email
|
443
|
-
* @permissionId EMAIL_SUBSCRIPTIONS.MODIFY
|
444
|
-
* @permissionScope Manage Stores
|
445
|
-
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
446
|
-
* @permissionScope Manage Email Subscriptions
|
447
|
-
* @permissionScopeId SCOPE.DC-MANAGE.EMAIL-SUBSCRIPTIONS
|
448
|
-
* @applicableIdentity APP
|
449
|
-
* @fqn com.wixpress.emailsubscriptions.v1.EmailSubscriptionsService.UpsertEmailSubscription
|
450
|
-
*/
|
451
|
-
export declare function upsertEmailSubscription(options?: NonNullablePaths<UpsertEmailSubscriptionOptions, `subscription.email`>): Promise<NonNullablePaths<UpsertEmailSubscriptionResponse, {
|
452
|
-
[P in EmailsubscriptionNonNullablePaths]: `subscription.${P}`;
|
453
|
-
}[EmailsubscriptionNonNullablePaths]>>;
|
454
|
-
export interface UpsertEmailSubscriptionOptions {
|
455
|
-
/** Email subscription to update or create. */
|
456
|
-
subscription?: EmailSubscription;
|
457
|
-
}
|
458
|
-
/**
|
459
|
-
* Updates or creates multiple email subscriptions.
|
460
|
-
* @param subscriptions - List of email subscriptions to update or create.
|
461
|
-
* @public
|
462
|
-
* @documentationMaturity preview
|
463
|
-
* @requiredField subscriptions
|
464
|
-
* @permissionId EMAIL_SUBSCRIPTIONS.MODIFY
|
465
|
-
* @permissionScope Manage Stores
|
466
|
-
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
467
|
-
* @permissionScope Manage Email Subscriptions
|
468
|
-
* @permissionScopeId SCOPE.DC-MANAGE.EMAIL-SUBSCRIPTIONS
|
469
|
-
* @applicableIdentity APP
|
470
|
-
* @fqn com.wixpress.emailsubscriptions.v1.EmailSubscriptionsService.BulkUpsertEmailSubscription
|
471
|
-
*/
|
472
|
-
export declare function bulkUpsertEmailSubscription(subscriptions: EmailSubscription[]): Promise<NonNullablePaths<BulkUpsertEmailSubscriptionResponse, `results` | `results.${number}.originalIndex` | {
|
473
|
-
[P in EmailsubscriptionNonNullablePaths]: `results.${number}.emailSubscription.${P}`;
|
474
|
-
}[EmailsubscriptionNonNullablePaths] | `results.${number}.error.errorCode` | `results.${number}.error.message` | `metadata.totalSuccess` | `metadata.totalFailure`>>;
|
475
|
-
/**
|
476
|
-
* Creates an unsubscribe link to be shared with the relevant recipient.
|
477
|
-
*
|
478
|
-
* If someone clicks the **Unsubscribe** button on the confirmation page,
|
479
|
-
* the recipient's `subscriptionStatus` is changed to `UNSUBSCRIBED`.
|
480
|
-
* @param emailAddress - Email address the unsubscribe link is for.
|
481
|
-
* @public
|
482
|
-
* @documentationMaturity preview
|
483
|
-
* @requiredField emailAddress
|
484
|
-
* @permissionId EMAIL_SUBSCRIPTIONS.VIEW
|
485
|
-
* @permissionScope Manage Stores
|
486
|
-
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
487
|
-
* @permissionScope Manage Email Subscriptions
|
488
|
-
* @permissionScopeId SCOPE.DC-MANAGE.EMAIL-SUBSCRIPTIONS
|
489
|
-
* @applicableIdentity APP
|
490
|
-
* @fqn com.wixpress.emailsubscriptions.v1.EmailSubscriptionsService.GenerateUnsubscribeLink
|
491
|
-
*/
|
492
|
-
export declare function generateUnsubscribeLink(emailAddress: string, options?: GenerateUnsubscribeLinkOptions): Promise<NonNullablePaths<GenerateUnsubscribeLinkResponse, `link`>>;
|
493
|
-
export interface GenerateUnsubscribeLinkOptions {
|
494
|
-
/** Arbitrary parameters for closing-the-loop. */
|
495
|
-
metadata?: Record<string, string>;
|
496
|
-
/**
|
497
|
-
* Language for displaying unsubscribe confirmation page.
|
498
|
-
*
|
499
|
-
* 2-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.
|
500
|
-
*
|
501
|
-
* Default: `EN`
|
502
|
-
* @format LANGUAGE
|
503
|
-
*/
|
504
|
-
language?: string | null;
|
505
|
-
}
|
506
|
-
export {};
|