@wix/email-subscriptions 1.0.13 → 1.0.16
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/context.d.ts +1 -0
- package/build/cjs/{index.typings.js → context.js} +2 -2
- package/build/cjs/context.js.map +1 -0
- package/build/cjs/index.d.ts +1 -1
- package/build/cjs/index.js +1 -1
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/meta.d.ts +1 -1
- package/build/cjs/meta.js +1 -1
- package/build/cjs/meta.js.map +1 -1
- package/build/es/context.d.ts +1 -0
- package/build/es/context.js +2 -0
- package/build/es/context.js.map +1 -0
- package/build/es/index.d.ts +1 -1
- package/build/es/index.js +1 -1
- package/build/es/index.js.map +1 -1
- package/build/es/meta.d.ts +1 -1
- package/build/es/meta.js +1 -1
- package/build/es/meta.js.map +1 -1
- package/context/package.json +7 -0
- package/meta/package.json +2 -1
- package/package.json +19 -9
- package/type-bundles/context.bundle.d.ts +283 -0
- package/type-bundles/index.bundle.d.ts +479 -0
- package/type-bundles/meta.bundle.d.ts +409 -0
- package/build/cjs/index.typings.d.ts +0 -1
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/src/emailsubscriptions-v1-emailsubscription.http.d.ts +0 -40
- package/build/cjs/src/emailsubscriptions-v1-emailsubscription.http.js +0 -204
- package/build/cjs/src/emailsubscriptions-v1-emailsubscription.http.js.map +0 -1
- package/build/cjs/src/emailsubscriptions-v1-emailsubscription.meta.d.ts +0 -16
- package/build/cjs/src/emailsubscriptions-v1-emailsubscription.meta.js +0 -104
- package/build/cjs/src/emailsubscriptions-v1-emailsubscription.meta.js.map +0 -1
- package/build/cjs/src/emailsubscriptions-v1-emailsubscription.public.d.ts +0 -11
- package/build/cjs/src/emailsubscriptions-v1-emailsubscription.public.js +0 -33
- package/build/cjs/src/emailsubscriptions-v1-emailsubscription.public.js.map +0 -1
- package/build/cjs/src/emailsubscriptions-v1-emailsubscription.types.d.ts +0 -298
- package/build/cjs/src/emailsubscriptions-v1-emailsubscription.types.js +0 -28
- package/build/cjs/src/emailsubscriptions-v1-emailsubscription.types.js.map +0 -1
- package/build/cjs/src/emailsubscriptions-v1-emailsubscription.universal.d.ts +0 -390
- package/build/cjs/src/emailsubscriptions-v1-emailsubscription.universal.js +0 -343
- package/build/cjs/src/emailsubscriptions-v1-emailsubscription.universal.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/src/emailsubscriptions-v1-emailsubscription.http.d.ts +0 -40
- package/build/es/src/emailsubscriptions-v1-emailsubscription.http.js +0 -197
- package/build/es/src/emailsubscriptions-v1-emailsubscription.http.js.map +0 -1
- package/build/es/src/emailsubscriptions-v1-emailsubscription.meta.d.ts +0 -16
- package/build/es/src/emailsubscriptions-v1-emailsubscription.meta.js +0 -74
- package/build/es/src/emailsubscriptions-v1-emailsubscription.meta.js.map +0 -1
- package/build/es/src/emailsubscriptions-v1-emailsubscription.public.d.ts +0 -11
- package/build/es/src/emailsubscriptions-v1-emailsubscription.public.js +0 -24
- package/build/es/src/emailsubscriptions-v1-emailsubscription.public.js.map +0 -1
- package/build/es/src/emailsubscriptions-v1-emailsubscription.types.d.ts +0 -298
- package/build/es/src/emailsubscriptions-v1-emailsubscription.types.js +0 -25
- package/build/es/src/emailsubscriptions-v1-emailsubscription.types.js.map +0 -1
- package/build/es/src/emailsubscriptions-v1-emailsubscription.universal.d.ts +0 -390
- package/build/es/src/emailsubscriptions-v1-emailsubscription.universal.js +0 -313
- package/build/es/src/emailsubscriptions-v1-emailsubscription.universal.js.map +0 -1
@@ -0,0 +1,479 @@
|
|
1
|
+
interface EmailSubscription {
|
2
|
+
/**
|
3
|
+
* Email subscription ID.
|
4
|
+
* @readonly
|
5
|
+
*/
|
6
|
+
_id?: string | null;
|
7
|
+
/** Email address. */
|
8
|
+
email?: string;
|
9
|
+
/**
|
10
|
+
* Indicates the recipient's opt-in or opt-out status
|
11
|
+
* for marketing emails.
|
12
|
+
*
|
13
|
+
* - `NOT_SET`: No status specified. This is the default, initial value before any info about the email address is known.
|
14
|
+
* - `PENDING`: Subscription confirmation was requested,
|
15
|
+
* but recipient hasn't confirmed yet.
|
16
|
+
* - `SUBSCRIBED`: Recipient has opted in to marketing emails.
|
17
|
+
* - `UNSUBSCRIBED`: Recipient has opted out of marketing emails.
|
18
|
+
*
|
19
|
+
* Defaults to `NOT_SET`.
|
20
|
+
*/
|
21
|
+
subscriptionStatus?: SubscriptionEnumStatus;
|
22
|
+
/**
|
23
|
+
* Indicates last reported status of sent emails.
|
24
|
+
*
|
25
|
+
* - `NOT_SET`: No status specified. This is the default, initial value before any info about the email address is known.
|
26
|
+
* - `VALID`: Emails to this email address are being delivered successfully.
|
27
|
+
* - `BOUNCED`: The last email to the recipient bounced or was rejected.
|
28
|
+
* - `SPAM_COMPLAINT`: The recipient registered a spam complaint
|
29
|
+
* with their email provider.
|
30
|
+
* - `INACTIVE`: Multiple campaigns have been delivered to this address without any engagement from the recipient. (No emails were opened and no content was clicked.)
|
31
|
+
* This status might impact subsequent emails sent to this address.
|
32
|
+
*
|
33
|
+
* Defaults to `NOT_SET`.
|
34
|
+
*/
|
35
|
+
deliverabilityStatus?: Status;
|
36
|
+
/**
|
37
|
+
* Date and time the email subscription was created.
|
38
|
+
* @readonly
|
39
|
+
*/
|
40
|
+
_createdDate?: Date;
|
41
|
+
/**
|
42
|
+
* Date and time the email subscription was last updated.
|
43
|
+
* @readonly
|
44
|
+
*/
|
45
|
+
_updatedDate?: Date;
|
46
|
+
}
|
47
|
+
declare enum SubscriptionEnumStatus {
|
48
|
+
UNKNOWN = "UNKNOWN",
|
49
|
+
/** No Subscription exists */
|
50
|
+
NOT_SET = "NOT_SET",
|
51
|
+
/** Pending Subscription */
|
52
|
+
PENDING = "PENDING",
|
53
|
+
/** Subscribed */
|
54
|
+
SUBSCRIBED = "SUBSCRIBED",
|
55
|
+
/** UnSubscribed */
|
56
|
+
UNSUBSCRIBED = "UNSUBSCRIBED"
|
57
|
+
}
|
58
|
+
declare enum Status {
|
59
|
+
NOT_SET = "NOT_SET",
|
60
|
+
/** valid/deferral */
|
61
|
+
VALID = "VALID",
|
62
|
+
/** bounced/rejected/invalid */
|
63
|
+
BOUNCED = "BOUNCED",
|
64
|
+
/** spam/complaint */
|
65
|
+
SPAM_COMPLAINT = "SPAM_COMPLAINT",
|
66
|
+
/** valid, but no activity reported */
|
67
|
+
INACTIVE = "INACTIVE"
|
68
|
+
}
|
69
|
+
interface V1RenderUnsubscribePageRequest {
|
70
|
+
/** Payload */
|
71
|
+
payload?: string;
|
72
|
+
/** Language */
|
73
|
+
language?: string | null;
|
74
|
+
}
|
75
|
+
interface RawHttpResponse {
|
76
|
+
body?: Uint8Array;
|
77
|
+
statusCode?: number | null;
|
78
|
+
headers?: HeadersEntry[];
|
79
|
+
}
|
80
|
+
interface HeadersEntry {
|
81
|
+
key?: string;
|
82
|
+
value?: string;
|
83
|
+
}
|
84
|
+
interface V1ConfirmUnsubscribeActionRequest {
|
85
|
+
/** Payload */
|
86
|
+
payload?: string;
|
87
|
+
}
|
88
|
+
interface Empty {
|
89
|
+
}
|
90
|
+
interface EmailSubscriptionChanged {
|
91
|
+
/** subscription */
|
92
|
+
subscription?: EmailSubscription;
|
93
|
+
}
|
94
|
+
interface GetEmailSubscriptionRequest {
|
95
|
+
_id?: string;
|
96
|
+
}
|
97
|
+
interface GetEmailSubscriptionResponse {
|
98
|
+
/** Returned email subscription */
|
99
|
+
emailSubscription?: EmailSubscription;
|
100
|
+
}
|
101
|
+
interface UpdateEmailSubscriptionRequest {
|
102
|
+
/** Email subscription to update */
|
103
|
+
subscription?: EmailSubscription;
|
104
|
+
}
|
105
|
+
interface UpdateEmailSubscriptionResponse {
|
106
|
+
/** Updated email subscription */
|
107
|
+
subscription?: EmailSubscription;
|
108
|
+
}
|
109
|
+
interface QueryEmailSubscriptionsRequest {
|
110
|
+
/**
|
111
|
+
* Filter options.
|
112
|
+
* Currently, querying is supported on the `email` field
|
113
|
+
* with the `$in` array filter.
|
114
|
+
*/
|
115
|
+
filter: Record<string, any> | null;
|
116
|
+
/**
|
117
|
+
* Pagination options. For more information, see
|
118
|
+
* [Pagination](https://dev.wix.com/api/rest/getting-started/pagination).
|
119
|
+
*/
|
120
|
+
paging?: Paging;
|
121
|
+
}
|
122
|
+
interface Paging {
|
123
|
+
/** Number of items to load. */
|
124
|
+
limit?: number | null;
|
125
|
+
/** Number of items to skip in the current sort order. */
|
126
|
+
offset?: number | null;
|
127
|
+
}
|
128
|
+
interface QueryEmailSubscriptionsResponse {
|
129
|
+
/** List of subscribed emails that matched the query options. */
|
130
|
+
subscriptions?: EmailSubscription[];
|
131
|
+
/** Metadata for the paginated results. */
|
132
|
+
metadata?: PagingMetadata;
|
133
|
+
}
|
134
|
+
interface PagingMetadata {
|
135
|
+
/** Number of items returned in the response. */
|
136
|
+
count?: number | null;
|
137
|
+
/** Offset that was requested. */
|
138
|
+
offset?: number | null;
|
139
|
+
/** Total number of items that match the query. */
|
140
|
+
total?: number | null;
|
141
|
+
/** Flag that indicates the server failed to calculate the `total` field. */
|
142
|
+
tooManyToCount?: boolean | null;
|
143
|
+
}
|
144
|
+
interface UpsertEmailSubscriptionRequest {
|
145
|
+
/** Email subscription to update or create. */
|
146
|
+
subscription?: EmailSubscription;
|
147
|
+
}
|
148
|
+
interface UpsertEmailSubscriptionResponse {
|
149
|
+
/** Updated or created email subscription. */
|
150
|
+
subscription?: EmailSubscription;
|
151
|
+
}
|
152
|
+
interface BulkUpsertEmailSubscriptionRequest {
|
153
|
+
/** List of email subscriptions to update or create. */
|
154
|
+
subscriptions: EmailSubscription[];
|
155
|
+
}
|
156
|
+
interface BulkUpsertEmailSubscriptionResponse {
|
157
|
+
/** List of updated or created email subscriptions. */
|
158
|
+
results?: BulkUpsertEmailSubscriptionResult[];
|
159
|
+
/** Numbers of successful and failed actions. */
|
160
|
+
metadata?: Metadata;
|
161
|
+
}
|
162
|
+
interface BulkUpsertEmailSubscriptionResult {
|
163
|
+
/** Position of the requested email subscription in the bulk array. */
|
164
|
+
originalIndex?: number;
|
165
|
+
/** New or updated email subscription. */
|
166
|
+
emailSubscription?: EmailSubscription;
|
167
|
+
/**
|
168
|
+
* Error information if the action failed.
|
169
|
+
* Omitted from successful actions.
|
170
|
+
*/
|
171
|
+
error?: Error;
|
172
|
+
}
|
173
|
+
interface Error {
|
174
|
+
/** Error code. */
|
175
|
+
errorCode?: string;
|
176
|
+
/** Message that contains details about the error. */
|
177
|
+
message?: string;
|
178
|
+
}
|
179
|
+
interface Metadata {
|
180
|
+
/** Number of successful actions. */
|
181
|
+
totalSuccess?: number;
|
182
|
+
/** Number of failed actions. */
|
183
|
+
totalFailure?: number;
|
184
|
+
}
|
185
|
+
interface GenerateUnsubscribeLinkRequest {
|
186
|
+
/** Email address the unsubscribe link is for. */
|
187
|
+
emailAddress: string;
|
188
|
+
/** Arbitrary parameters for closing-the-loop. */
|
189
|
+
metadata?: Record<string, string>;
|
190
|
+
/** Language for displaying unsubscribe confirmation page (optional - default EN). */
|
191
|
+
language?: string | null;
|
192
|
+
}
|
193
|
+
interface GenerateUnsubscribeLinkResponse {
|
194
|
+
/** The unsubscribe link. */
|
195
|
+
link?: string;
|
196
|
+
}
|
197
|
+
interface RenderUnsubscribePageRequest {
|
198
|
+
/** Payload */
|
199
|
+
payload?: string;
|
200
|
+
/** Language */
|
201
|
+
language?: string | null;
|
202
|
+
}
|
203
|
+
interface ConfirmUnsubscribeActionRequest {
|
204
|
+
/** Payload */
|
205
|
+
payload?: string;
|
206
|
+
}
|
207
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
208
|
+
createdEvent?: EntityCreatedEvent;
|
209
|
+
updatedEvent?: EntityUpdatedEvent;
|
210
|
+
deletedEvent?: EntityDeletedEvent;
|
211
|
+
actionEvent?: ActionEvent;
|
212
|
+
/**
|
213
|
+
* Unique event ID.
|
214
|
+
* Allows clients to ignore duplicate webhooks.
|
215
|
+
*/
|
216
|
+
_id?: string;
|
217
|
+
/**
|
218
|
+
* Assumes actions are also always typed to an entity_type
|
219
|
+
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
220
|
+
*/
|
221
|
+
entityFqdn?: string;
|
222
|
+
/**
|
223
|
+
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
224
|
+
* This is although the created/updated/deleted notion is duplication of the oneof types
|
225
|
+
* Example: created/updated/deleted/started/completed/email_opened
|
226
|
+
*/
|
227
|
+
slug?: string;
|
228
|
+
/** ID of the entity associated with the event. */
|
229
|
+
entityId?: string;
|
230
|
+
/** Event timestamp. */
|
231
|
+
eventTime?: Date;
|
232
|
+
/**
|
233
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
234
|
+
* (for example, GDPR).
|
235
|
+
*/
|
236
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
237
|
+
/** If present, indicates the action that triggered the event. */
|
238
|
+
originatedFrom?: string | null;
|
239
|
+
/**
|
240
|
+
* A sequence number defining the order of updates to the underlying entity.
|
241
|
+
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
242
|
+
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
243
|
+
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
244
|
+
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
245
|
+
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
246
|
+
*/
|
247
|
+
entityEventSequence?: string | null;
|
248
|
+
}
|
249
|
+
/** @oneof */
|
250
|
+
interface DomainEventBodyOneOf {
|
251
|
+
createdEvent?: EntityCreatedEvent;
|
252
|
+
updatedEvent?: EntityUpdatedEvent;
|
253
|
+
deletedEvent?: EntityDeletedEvent;
|
254
|
+
actionEvent?: ActionEvent;
|
255
|
+
}
|
256
|
+
interface EntityCreatedEvent {
|
257
|
+
entity?: string;
|
258
|
+
}
|
259
|
+
interface EntityUpdatedEvent {
|
260
|
+
/**
|
261
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
262
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
263
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
264
|
+
*/
|
265
|
+
currentEntity?: string;
|
266
|
+
}
|
267
|
+
interface EntityDeletedEvent {
|
268
|
+
/** Entity that was deleted */
|
269
|
+
deletedEntity?: string | null;
|
270
|
+
}
|
271
|
+
interface ActionEvent {
|
272
|
+
body?: string;
|
273
|
+
}
|
274
|
+
interface MessageEnvelope {
|
275
|
+
/** App instance ID. */
|
276
|
+
instanceId?: string | null;
|
277
|
+
/** Event type. */
|
278
|
+
eventType?: string;
|
279
|
+
/** The identification type and identity data. */
|
280
|
+
identity?: IdentificationData;
|
281
|
+
/** Stringify payload. */
|
282
|
+
data?: string;
|
283
|
+
}
|
284
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
285
|
+
/** ID of a site visitor that has not logged in to the site. */
|
286
|
+
anonymousVisitorId?: string;
|
287
|
+
/** ID of a site visitor that has logged in to the site. */
|
288
|
+
memberId?: string;
|
289
|
+
/** ID of a Wix user (site owner, contributor, etc.). */
|
290
|
+
wixUserId?: string;
|
291
|
+
/** ID of an app. */
|
292
|
+
appId?: string;
|
293
|
+
/** @readonly */
|
294
|
+
identityType?: WebhookIdentityType;
|
295
|
+
}
|
296
|
+
/** @oneof */
|
297
|
+
interface IdentificationDataIdOneOf {
|
298
|
+
/** ID of a site visitor that has not logged in to the site. */
|
299
|
+
anonymousVisitorId?: string;
|
300
|
+
/** ID of a site visitor that has logged in to the site. */
|
301
|
+
memberId?: string;
|
302
|
+
/** ID of a Wix user (site owner, contributor, etc.). */
|
303
|
+
wixUserId?: string;
|
304
|
+
/** ID of an app. */
|
305
|
+
appId?: string;
|
306
|
+
}
|
307
|
+
declare enum WebhookIdentityType {
|
308
|
+
UNKNOWN = "UNKNOWN",
|
309
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
310
|
+
MEMBER = "MEMBER",
|
311
|
+
WIX_USER = "WIX_USER",
|
312
|
+
APP = "APP"
|
313
|
+
}
|
314
|
+
interface QueryEmailSubscriptionsResponseNonNullableFields {
|
315
|
+
subscriptions: {
|
316
|
+
email: string;
|
317
|
+
subscriptionStatus: SubscriptionEnumStatus;
|
318
|
+
deliverabilityStatus: Status;
|
319
|
+
}[];
|
320
|
+
}
|
321
|
+
interface UpsertEmailSubscriptionResponseNonNullableFields {
|
322
|
+
subscription?: {
|
323
|
+
email: string;
|
324
|
+
subscriptionStatus: SubscriptionEnumStatus;
|
325
|
+
deliverabilityStatus: Status;
|
326
|
+
};
|
327
|
+
}
|
328
|
+
interface BulkUpsertEmailSubscriptionResponseNonNullableFields {
|
329
|
+
results: {
|
330
|
+
originalIndex: number;
|
331
|
+
emailSubscription?: {
|
332
|
+
email: string;
|
333
|
+
subscriptionStatus: SubscriptionEnumStatus;
|
334
|
+
deliverabilityStatus: Status;
|
335
|
+
};
|
336
|
+
error?: {
|
337
|
+
errorCode: string;
|
338
|
+
message: string;
|
339
|
+
};
|
340
|
+
}[];
|
341
|
+
metadata?: {
|
342
|
+
totalSuccess: number;
|
343
|
+
totalFailure: number;
|
344
|
+
};
|
345
|
+
}
|
346
|
+
interface GenerateUnsubscribeLinkResponseNonNullableFields {
|
347
|
+
link: string;
|
348
|
+
}
|
349
|
+
interface BaseEventMetadata {
|
350
|
+
/** App instance ID. */
|
351
|
+
instanceId?: string | null;
|
352
|
+
/** Event type. */
|
353
|
+
eventType?: string;
|
354
|
+
/** The identification type and identity data. */
|
355
|
+
identity?: IdentificationData;
|
356
|
+
}
|
357
|
+
interface EmailsubscriptionEmailSubscriptionChangedEnvelope {
|
358
|
+
data: EmailSubscriptionChanged;
|
359
|
+
metadata: BaseEventMetadata;
|
360
|
+
}
|
361
|
+
interface QueryEmailSubscriptionsOptions {
|
362
|
+
/**
|
363
|
+
* Pagination options. For more information, see
|
364
|
+
* [Pagination](https://dev.wix.com/api/rest/getting-started/pagination).
|
365
|
+
*/
|
366
|
+
paging?: Paging;
|
367
|
+
}
|
368
|
+
interface UpsertEmailSubscriptionOptions {
|
369
|
+
/** Email subscription to update or create. */
|
370
|
+
subscription?: EmailSubscription;
|
371
|
+
}
|
372
|
+
interface GenerateUnsubscribeLinkOptions {
|
373
|
+
/** Arbitrary parameters for closing-the-loop. */
|
374
|
+
metadata?: Record<string, string>;
|
375
|
+
/** Language for displaying unsubscribe confirmation page (optional - default EN). */
|
376
|
+
language?: string | null;
|
377
|
+
}
|
378
|
+
|
379
|
+
interface HttpClient {
|
380
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
381
|
+
}
|
382
|
+
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
383
|
+
type HttpResponse<T = any> = {
|
384
|
+
data: T;
|
385
|
+
status: number;
|
386
|
+
statusText: string;
|
387
|
+
headers: any;
|
388
|
+
request?: any;
|
389
|
+
};
|
390
|
+
type RequestOptions<_TResponse = any, Data = any> = {
|
391
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
392
|
+
url: string;
|
393
|
+
data?: Data;
|
394
|
+
params?: URLSearchParams;
|
395
|
+
} & APIMetadata;
|
396
|
+
type APIMetadata = {
|
397
|
+
methodFqn?: string;
|
398
|
+
entityFqdn?: string;
|
399
|
+
packageName?: string;
|
400
|
+
};
|
401
|
+
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
402
|
+
__type: 'event-definition';
|
403
|
+
type: Type;
|
404
|
+
isDomainEvent?: boolean;
|
405
|
+
transformations?: unknown;
|
406
|
+
__payload: Payload;
|
407
|
+
};
|
408
|
+
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, _transformations?: unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
409
|
+
|
410
|
+
declare const __metadata: {
|
411
|
+
PACKAGE_NAME: string;
|
412
|
+
};
|
413
|
+
declare function queryEmailSubscriptions(httpClient: HttpClient): (filter: Record<string, any> | null, options?: QueryEmailSubscriptionsOptions) => Promise<QueryEmailSubscriptionsResponse & QueryEmailSubscriptionsResponseNonNullableFields>;
|
414
|
+
declare function upsertEmailSubscription(httpClient: HttpClient): (options?: UpsertEmailSubscriptionOptions) => Promise<UpsertEmailSubscriptionResponse & UpsertEmailSubscriptionResponseNonNullableFields>;
|
415
|
+
declare function bulkUpsertEmailSubscription(httpClient: HttpClient): (subscriptions: EmailSubscription[]) => Promise<BulkUpsertEmailSubscriptionResponse & BulkUpsertEmailSubscriptionResponseNonNullableFields>;
|
416
|
+
declare function generateUnsubscribeLink(httpClient: HttpClient): (emailAddress: string, options?: GenerateUnsubscribeLinkOptions) => Promise<GenerateUnsubscribeLinkResponse & GenerateUnsubscribeLinkResponseNonNullableFields>;
|
417
|
+
declare const onEmailsubscriptionEmailSubscriptionChanged: EventDefinition<EmailsubscriptionEmailSubscriptionChangedEnvelope, "com.wixpress.emailsubscriptions.v1.EmailSubscriptionChanged">;
|
418
|
+
|
419
|
+
type index_d_ActionEvent = ActionEvent;
|
420
|
+
type index_d_BaseEventMetadata = BaseEventMetadata;
|
421
|
+
type index_d_BulkUpsertEmailSubscriptionRequest = BulkUpsertEmailSubscriptionRequest;
|
422
|
+
type index_d_BulkUpsertEmailSubscriptionResponse = BulkUpsertEmailSubscriptionResponse;
|
423
|
+
type index_d_BulkUpsertEmailSubscriptionResponseNonNullableFields = BulkUpsertEmailSubscriptionResponseNonNullableFields;
|
424
|
+
type index_d_BulkUpsertEmailSubscriptionResult = BulkUpsertEmailSubscriptionResult;
|
425
|
+
type index_d_ConfirmUnsubscribeActionRequest = ConfirmUnsubscribeActionRequest;
|
426
|
+
type index_d_DomainEvent = DomainEvent;
|
427
|
+
type index_d_DomainEventBodyOneOf = DomainEventBodyOneOf;
|
428
|
+
type index_d_EmailSubscription = EmailSubscription;
|
429
|
+
type index_d_EmailSubscriptionChanged = EmailSubscriptionChanged;
|
430
|
+
type index_d_EmailsubscriptionEmailSubscriptionChangedEnvelope = EmailsubscriptionEmailSubscriptionChangedEnvelope;
|
431
|
+
type index_d_Empty = Empty;
|
432
|
+
type index_d_EntityCreatedEvent = EntityCreatedEvent;
|
433
|
+
type index_d_EntityDeletedEvent = EntityDeletedEvent;
|
434
|
+
type index_d_EntityUpdatedEvent = EntityUpdatedEvent;
|
435
|
+
type index_d_Error = Error;
|
436
|
+
type index_d_GenerateUnsubscribeLinkOptions = GenerateUnsubscribeLinkOptions;
|
437
|
+
type index_d_GenerateUnsubscribeLinkRequest = GenerateUnsubscribeLinkRequest;
|
438
|
+
type index_d_GenerateUnsubscribeLinkResponse = GenerateUnsubscribeLinkResponse;
|
439
|
+
type index_d_GenerateUnsubscribeLinkResponseNonNullableFields = GenerateUnsubscribeLinkResponseNonNullableFields;
|
440
|
+
type index_d_GetEmailSubscriptionRequest = GetEmailSubscriptionRequest;
|
441
|
+
type index_d_GetEmailSubscriptionResponse = GetEmailSubscriptionResponse;
|
442
|
+
type index_d_HeadersEntry = HeadersEntry;
|
443
|
+
type index_d_IdentificationData = IdentificationData;
|
444
|
+
type index_d_IdentificationDataIdOneOf = IdentificationDataIdOneOf;
|
445
|
+
type index_d_MessageEnvelope = MessageEnvelope;
|
446
|
+
type index_d_Metadata = Metadata;
|
447
|
+
type index_d_Paging = Paging;
|
448
|
+
type index_d_PagingMetadata = PagingMetadata;
|
449
|
+
type index_d_QueryEmailSubscriptionsOptions = QueryEmailSubscriptionsOptions;
|
450
|
+
type index_d_QueryEmailSubscriptionsRequest = QueryEmailSubscriptionsRequest;
|
451
|
+
type index_d_QueryEmailSubscriptionsResponse = QueryEmailSubscriptionsResponse;
|
452
|
+
type index_d_QueryEmailSubscriptionsResponseNonNullableFields = QueryEmailSubscriptionsResponseNonNullableFields;
|
453
|
+
type index_d_RawHttpResponse = RawHttpResponse;
|
454
|
+
type index_d_RenderUnsubscribePageRequest = RenderUnsubscribePageRequest;
|
455
|
+
type index_d_Status = Status;
|
456
|
+
declare const index_d_Status: typeof Status;
|
457
|
+
type index_d_SubscriptionEnumStatus = SubscriptionEnumStatus;
|
458
|
+
declare const index_d_SubscriptionEnumStatus: typeof SubscriptionEnumStatus;
|
459
|
+
type index_d_UpdateEmailSubscriptionRequest = UpdateEmailSubscriptionRequest;
|
460
|
+
type index_d_UpdateEmailSubscriptionResponse = UpdateEmailSubscriptionResponse;
|
461
|
+
type index_d_UpsertEmailSubscriptionOptions = UpsertEmailSubscriptionOptions;
|
462
|
+
type index_d_UpsertEmailSubscriptionRequest = UpsertEmailSubscriptionRequest;
|
463
|
+
type index_d_UpsertEmailSubscriptionResponse = UpsertEmailSubscriptionResponse;
|
464
|
+
type index_d_UpsertEmailSubscriptionResponseNonNullableFields = UpsertEmailSubscriptionResponseNonNullableFields;
|
465
|
+
type index_d_V1ConfirmUnsubscribeActionRequest = V1ConfirmUnsubscribeActionRequest;
|
466
|
+
type index_d_V1RenderUnsubscribePageRequest = V1RenderUnsubscribePageRequest;
|
467
|
+
type index_d_WebhookIdentityType = WebhookIdentityType;
|
468
|
+
declare const index_d_WebhookIdentityType: typeof WebhookIdentityType;
|
469
|
+
declare const index_d___metadata: typeof __metadata;
|
470
|
+
declare const index_d_bulkUpsertEmailSubscription: typeof bulkUpsertEmailSubscription;
|
471
|
+
declare const index_d_generateUnsubscribeLink: typeof generateUnsubscribeLink;
|
472
|
+
declare const index_d_onEmailsubscriptionEmailSubscriptionChanged: typeof onEmailsubscriptionEmailSubscriptionChanged;
|
473
|
+
declare const index_d_queryEmailSubscriptions: typeof queryEmailSubscriptions;
|
474
|
+
declare const index_d_upsertEmailSubscription: typeof upsertEmailSubscription;
|
475
|
+
declare namespace index_d {
|
476
|
+
export { type index_d_ActionEvent as ActionEvent, type index_d_BaseEventMetadata as BaseEventMetadata, type index_d_BulkUpsertEmailSubscriptionRequest as BulkUpsertEmailSubscriptionRequest, type index_d_BulkUpsertEmailSubscriptionResponse as BulkUpsertEmailSubscriptionResponse, type index_d_BulkUpsertEmailSubscriptionResponseNonNullableFields as BulkUpsertEmailSubscriptionResponseNonNullableFields, type index_d_BulkUpsertEmailSubscriptionResult as BulkUpsertEmailSubscriptionResult, type index_d_ConfirmUnsubscribeActionRequest as ConfirmUnsubscribeActionRequest, type index_d_DomainEvent as DomainEvent, type index_d_DomainEventBodyOneOf as DomainEventBodyOneOf, type index_d_EmailSubscription as EmailSubscription, type index_d_EmailSubscriptionChanged as EmailSubscriptionChanged, type index_d_EmailsubscriptionEmailSubscriptionChangedEnvelope as EmailsubscriptionEmailSubscriptionChangedEnvelope, type index_d_Empty as Empty, type index_d_EntityCreatedEvent as EntityCreatedEvent, type index_d_EntityDeletedEvent as EntityDeletedEvent, type index_d_EntityUpdatedEvent as EntityUpdatedEvent, type index_d_Error as Error, type index_d_GenerateUnsubscribeLinkOptions as GenerateUnsubscribeLinkOptions, type index_d_GenerateUnsubscribeLinkRequest as GenerateUnsubscribeLinkRequest, type index_d_GenerateUnsubscribeLinkResponse as GenerateUnsubscribeLinkResponse, type index_d_GenerateUnsubscribeLinkResponseNonNullableFields as GenerateUnsubscribeLinkResponseNonNullableFields, type index_d_GetEmailSubscriptionRequest as GetEmailSubscriptionRequest, type index_d_GetEmailSubscriptionResponse as GetEmailSubscriptionResponse, type index_d_HeadersEntry as HeadersEntry, type index_d_IdentificationData as IdentificationData, type index_d_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type index_d_MessageEnvelope as MessageEnvelope, type index_d_Metadata as Metadata, type index_d_Paging as Paging, type index_d_PagingMetadata as PagingMetadata, type index_d_QueryEmailSubscriptionsOptions as QueryEmailSubscriptionsOptions, type index_d_QueryEmailSubscriptionsRequest as QueryEmailSubscriptionsRequest, type index_d_QueryEmailSubscriptionsResponse as QueryEmailSubscriptionsResponse, type index_d_QueryEmailSubscriptionsResponseNonNullableFields as QueryEmailSubscriptionsResponseNonNullableFields, type index_d_RawHttpResponse as RawHttpResponse, type index_d_RenderUnsubscribePageRequest as RenderUnsubscribePageRequest, index_d_Status as Status, index_d_SubscriptionEnumStatus as SubscriptionEnumStatus, type index_d_UpdateEmailSubscriptionRequest as UpdateEmailSubscriptionRequest, type index_d_UpdateEmailSubscriptionResponse as UpdateEmailSubscriptionResponse, type index_d_UpsertEmailSubscriptionOptions as UpsertEmailSubscriptionOptions, type index_d_UpsertEmailSubscriptionRequest as UpsertEmailSubscriptionRequest, type index_d_UpsertEmailSubscriptionResponse as UpsertEmailSubscriptionResponse, type index_d_UpsertEmailSubscriptionResponseNonNullableFields as UpsertEmailSubscriptionResponseNonNullableFields, type index_d_V1ConfirmUnsubscribeActionRequest as V1ConfirmUnsubscribeActionRequest, type index_d_V1RenderUnsubscribePageRequest as V1RenderUnsubscribePageRequest, index_d_WebhookIdentityType as WebhookIdentityType, index_d___metadata as __metadata, index_d_bulkUpsertEmailSubscription as bulkUpsertEmailSubscription, index_d_generateUnsubscribeLink as generateUnsubscribeLink, index_d_onEmailsubscriptionEmailSubscriptionChanged as onEmailsubscriptionEmailSubscriptionChanged, index_d_queryEmailSubscriptions as queryEmailSubscriptions, index_d_upsertEmailSubscription as upsertEmailSubscription };
|
477
|
+
}
|
478
|
+
|
479
|
+
export { index_d as emailSubscriptions };
|