@wix/auto_sdk_email-subscriptions_email-subscriptions 1.0.0 → 1.0.2
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/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.context.d.ts +1 -1
- package/build/cjs/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.http.d.ts +3 -3
- package/build/cjs/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.http.js +3 -3
- package/build/cjs/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.public.d.ts +3 -3
- package/build/cjs/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.types.d.ts +110 -48
- package/build/cjs/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.types.js +8 -10
- package/build/cjs/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.types.js.map +1 -1
- package/build/cjs/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.universal.d.ts +129 -54
- package/build/cjs/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.universal.js +11 -13
- package/build/cjs/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.universal.js.map +1 -1
- package/build/es/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.context.d.ts +1 -1
- package/build/es/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.http.d.ts +3 -3
- package/build/es/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.http.js +3 -3
- package/build/es/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.public.d.ts +3 -3
- package/build/es/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.types.d.ts +110 -48
- package/build/es/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.types.js +8 -10
- package/build/es/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.types.js.map +1 -1
- package/build/es/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.universal.d.ts +129 -54
- package/build/es/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.universal.js +11 -13
- package/build/es/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.universal.js.map +1 -1
- package/build/internal/cjs/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.context.d.ts +1 -1
- package/build/internal/cjs/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.http.d.ts +3 -3
- package/build/internal/cjs/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.http.js +3 -3
- package/build/internal/cjs/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.public.d.ts +3 -3
- package/build/internal/cjs/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.types.d.ts +110 -48
- package/build/internal/cjs/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.types.js +8 -10
- package/build/internal/cjs/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.types.js.map +1 -1
- package/build/internal/cjs/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.universal.d.ts +129 -54
- package/build/internal/cjs/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.universal.js +11 -13
- package/build/internal/cjs/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.universal.js.map +1 -1
- package/build/internal/es/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.context.d.ts +1 -1
- package/build/internal/es/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.http.d.ts +3 -3
- package/build/internal/es/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.http.js +3 -3
- package/build/internal/es/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.public.d.ts +3 -3
- package/build/internal/es/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.types.d.ts +110 -48
- package/build/internal/es/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.types.js +8 -10
- package/build/internal/es/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.types.js.map +1 -1
- package/build/internal/es/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.universal.d.ts +129 -54
- package/build/internal/es/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.universal.js +11 -13
- package/build/internal/es/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.universal.js.map +1 -1
- package/package.json +2 -2
package/build/cjs/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.universal.d.ts
CHANGED
@@ -1,22 +1,40 @@
|
|
1
1
|
export interface EmailSubscription {
|
2
2
|
/**
|
3
3
|
* Email subscription ID.
|
4
|
+
* @format GUID
|
4
5
|
* @readonly
|
5
6
|
*/
|
6
7
|
_id?: string | null;
|
7
|
-
/**
|
8
|
+
/**
|
9
|
+
* Email address.
|
10
|
+
* @format EMAIL
|
11
|
+
*/
|
8
12
|
email?: string;
|
9
13
|
/**
|
10
14
|
* Indicates the recipient's opt-in or opt-out status
|
11
15
|
* for marketing emails.
|
12
16
|
*
|
13
|
-
*
|
17
|
+
* - `NOT_SET`: No status specified. This is the default, initial value before any info about the email address is known.
|
18
|
+
* - `PENDING`: Subscription confirmation was requested,
|
19
|
+
* but recipient hasn't confirmed yet.
|
20
|
+
* - `SUBSCRIBED`: Recipient has opted in to marketing emails.
|
21
|
+
* - `UNSUBSCRIBED`: Recipient has opted out of marketing emails.
|
22
|
+
*
|
23
|
+
* Defaults to `NOT_SET`.
|
14
24
|
*/
|
15
25
|
subscriptionStatus?: SubscriptionEnumStatus;
|
16
26
|
/**
|
17
27
|
* Indicates last reported status of sent emails.
|
18
28
|
*
|
19
|
-
*
|
29
|
+
* - `NOT_SET`: No status specified. This is the default, initial value before any info about the email address is known.
|
30
|
+
* - `VALID`: Emails to this email address are being delivered successfully.
|
31
|
+
* - `BOUNCED`: The last email to the recipient bounced or was rejected.
|
32
|
+
* - `SPAM_COMPLAINT`: The recipient registered a spam complaint
|
33
|
+
* with their email provider.
|
34
|
+
* - `INACTIVE`: Multiple campaigns have been delivered to this address without any engagement from the recipient. (No emails were opened and no content was clicked.)
|
35
|
+
* This status might impact subsequent emails sent to this address.
|
36
|
+
*
|
37
|
+
* Defaults to `NOT_SET`.
|
20
38
|
*/
|
21
39
|
deliverabilityStatus?: Status;
|
22
40
|
/**
|
@@ -31,55 +49,34 @@ export interface EmailSubscription {
|
|
31
49
|
_updatedDate?: Date | null;
|
32
50
|
}
|
33
51
|
export declare enum SubscriptionEnumStatus {
|
34
|
-
/** Undefined status. */
|
35
52
|
UNKNOWN = "UNKNOWN",
|
36
|
-
/** No
|
53
|
+
/** No Subscription exists */
|
37
54
|
NOT_SET = "NOT_SET",
|
38
|
-
/** Subscription
|
55
|
+
/** Pending Subscription */
|
39
56
|
PENDING = "PENDING",
|
40
|
-
/**
|
57
|
+
/** Subscribed */
|
41
58
|
SUBSCRIBED = "SUBSCRIBED",
|
42
|
-
/**
|
59
|
+
/** UnSubscribed */
|
43
60
|
UNSUBSCRIBED = "UNSUBSCRIBED"
|
44
61
|
}
|
45
62
|
export declare enum Status {
|
46
|
-
/** No status specified. This is the initial default value before any info about the email address is known. */
|
47
63
|
NOT_SET = "NOT_SET",
|
48
|
-
/**
|
64
|
+
/** valid/deferral */
|
49
65
|
VALID = "VALID",
|
50
|
-
/**
|
66
|
+
/** bounced/rejected/invalid */
|
51
67
|
BOUNCED = "BOUNCED",
|
52
|
-
/**
|
68
|
+
/** spam/complaint */
|
53
69
|
SPAM_COMPLAINT = "SPAM_COMPLAINT",
|
54
|
-
/**
|
70
|
+
/** valid, but no activity reported */
|
55
71
|
INACTIVE = "INACTIVE"
|
56
72
|
}
|
57
|
-
|
58
|
-
/** Payload */
|
59
|
-
payload?: string;
|
60
|
-
/** Language */
|
61
|
-
language?: string | null;
|
62
|
-
}
|
63
|
-
export interface RawHttpResponse {
|
64
|
-
body?: Uint8Array;
|
65
|
-
statusCode?: number | null;
|
66
|
-
headers?: HeadersEntry[];
|
67
|
-
}
|
68
|
-
export interface HeadersEntry {
|
69
|
-
key?: string;
|
70
|
-
value?: string;
|
71
|
-
}
|
72
|
-
export interface V1ConfirmUnsubscribeActionRequest {
|
73
|
-
/** Payload */
|
74
|
-
payload?: string;
|
75
|
-
}
|
76
|
-
export interface Empty {
|
77
|
-
}
|
73
|
+
/** Triggered when an email subscription's status is changed. */
|
78
74
|
export interface EmailSubscriptionChanged {
|
79
|
-
/** subscription */
|
75
|
+
/** Email subscription that changed. */
|
80
76
|
subscription?: EmailSubscription;
|
81
77
|
}
|
82
78
|
export interface GetEmailSubscriptionRequest {
|
79
|
+
/** @format GUID */
|
83
80
|
_id: string;
|
84
81
|
}
|
85
82
|
export interface GetEmailSubscriptionResponse {
|
@@ -138,7 +135,11 @@ export interface UpsertEmailSubscriptionResponse {
|
|
138
135
|
subscription?: EmailSubscription;
|
139
136
|
}
|
140
137
|
export interface BulkUpsertEmailSubscriptionRequest {
|
141
|
-
/**
|
138
|
+
/**
|
139
|
+
* List of email subscriptions to update or create.
|
140
|
+
* @minSize 1
|
141
|
+
* @maxSize 100
|
142
|
+
*/
|
142
143
|
subscriptions: EmailSubscription[];
|
143
144
|
}
|
144
145
|
export interface BulkUpsertEmailSubscriptionResponse {
|
@@ -171,11 +172,21 @@ export interface Metadata {
|
|
171
172
|
totalFailure?: number;
|
172
173
|
}
|
173
174
|
export interface GenerateUnsubscribeLinkRequest {
|
174
|
-
/**
|
175
|
+
/**
|
176
|
+
* Email address the unsubscribe link is for.
|
177
|
+
* @format EMAIL
|
178
|
+
*/
|
175
179
|
emailAddress: string;
|
176
180
|
/** Arbitrary parameters for closing-the-loop. */
|
177
181
|
metadata?: Record<string, string>;
|
178
|
-
/**
|
182
|
+
/**
|
183
|
+
* Language for displaying unsubscribe confirmation page.
|
184
|
+
*
|
185
|
+
* 2-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.
|
186
|
+
*
|
187
|
+
* Default: `EN`
|
188
|
+
* @format LANGUAGE
|
189
|
+
*/
|
179
190
|
language?: string | null;
|
180
191
|
}
|
181
192
|
export interface GenerateUnsubscribeLinkResponse {
|
@@ -188,10 +199,21 @@ export interface RenderUnsubscribePageRequest {
|
|
188
199
|
/** Language */
|
189
200
|
language?: string | null;
|
190
201
|
}
|
202
|
+
export interface RawHttpResponse {
|
203
|
+
body?: Uint8Array;
|
204
|
+
statusCode?: number | null;
|
205
|
+
headers?: HeadersEntry[];
|
206
|
+
}
|
207
|
+
export interface HeadersEntry {
|
208
|
+
key?: string;
|
209
|
+
value?: string;
|
210
|
+
}
|
191
211
|
export interface ConfirmUnsubscribeActionRequest {
|
192
212
|
/** Payload */
|
193
213
|
payload?: string;
|
194
214
|
}
|
215
|
+
export interface Empty {
|
216
|
+
}
|
195
217
|
export interface DomainEvent extends DomainEventBodyOneOf {
|
196
218
|
createdEvent?: EntityCreatedEvent;
|
197
219
|
updatedEvent?: EntityUpdatedEvent;
|
@@ -263,9 +285,15 @@ export interface ActionEvent {
|
|
263
285
|
body?: string;
|
264
286
|
}
|
265
287
|
export interface MessageEnvelope {
|
266
|
-
/**
|
288
|
+
/**
|
289
|
+
* App instance ID.
|
290
|
+
* @format GUID
|
291
|
+
*/
|
267
292
|
instanceId?: string | null;
|
268
|
-
/**
|
293
|
+
/**
|
294
|
+
* Event type.
|
295
|
+
* @maxLength 150
|
296
|
+
*/
|
269
297
|
eventType?: string;
|
270
298
|
/** The identification type and identity data. */
|
271
299
|
identity?: IdentificationData;
|
@@ -273,26 +301,50 @@ export interface MessageEnvelope {
|
|
273
301
|
data?: string;
|
274
302
|
}
|
275
303
|
export interface IdentificationData extends IdentificationDataIdOneOf {
|
276
|
-
/**
|
304
|
+
/**
|
305
|
+
* ID of a site visitor that has not logged in to the site.
|
306
|
+
* @format GUID
|
307
|
+
*/
|
277
308
|
anonymousVisitorId?: string;
|
278
|
-
/**
|
309
|
+
/**
|
310
|
+
* ID of a site visitor that has logged in to the site.
|
311
|
+
* @format GUID
|
312
|
+
*/
|
279
313
|
memberId?: string;
|
280
|
-
/**
|
314
|
+
/**
|
315
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
316
|
+
* @format GUID
|
317
|
+
*/
|
281
318
|
wixUserId?: string;
|
282
|
-
/**
|
319
|
+
/**
|
320
|
+
* ID of an app.
|
321
|
+
* @format GUID
|
322
|
+
*/
|
283
323
|
appId?: string;
|
284
324
|
/** @readonly */
|
285
325
|
identityType?: WebhookIdentityType;
|
286
326
|
}
|
287
327
|
/** @oneof */
|
288
328
|
export interface IdentificationDataIdOneOf {
|
289
|
-
/**
|
329
|
+
/**
|
330
|
+
* ID of a site visitor that has not logged in to the site.
|
331
|
+
* @format GUID
|
332
|
+
*/
|
290
333
|
anonymousVisitorId?: string;
|
291
|
-
/**
|
334
|
+
/**
|
335
|
+
* ID of a site visitor that has logged in to the site.
|
336
|
+
* @format GUID
|
337
|
+
*/
|
292
338
|
memberId?: string;
|
293
|
-
/**
|
339
|
+
/**
|
340
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
341
|
+
* @format GUID
|
342
|
+
*/
|
294
343
|
wixUserId?: string;
|
295
|
-
/**
|
344
|
+
/**
|
345
|
+
* ID of an app.
|
346
|
+
* @format GUID
|
347
|
+
*/
|
296
348
|
appId?: string;
|
297
349
|
}
|
298
350
|
export declare enum WebhookIdentityType {
|
@@ -302,6 +354,16 @@ export declare enum WebhookIdentityType {
|
|
302
354
|
WIX_USER = "WIX_USER",
|
303
355
|
APP = "APP"
|
304
356
|
}
|
357
|
+
export interface V1RenderUnsubscribePageRequest {
|
358
|
+
/** Payload */
|
359
|
+
payload?: string;
|
360
|
+
/** Language */
|
361
|
+
language?: string | null;
|
362
|
+
}
|
363
|
+
export interface V1ConfirmUnsubscribeActionRequest {
|
364
|
+
/** Payload */
|
365
|
+
payload?: string;
|
366
|
+
}
|
305
367
|
export interface EmailSubscriptionNonNullableFields {
|
306
368
|
email: string;
|
307
369
|
subscriptionStatus: SubscriptionEnumStatus;
|
@@ -337,9 +399,15 @@ export interface GenerateUnsubscribeLinkResponseNonNullableFields {
|
|
337
399
|
link: string;
|
338
400
|
}
|
339
401
|
export interface BaseEventMetadata {
|
340
|
-
/**
|
402
|
+
/**
|
403
|
+
* App instance ID.
|
404
|
+
* @format GUID
|
405
|
+
*/
|
341
406
|
instanceId?: string | null;
|
342
|
-
/**
|
407
|
+
/**
|
408
|
+
* Event type.
|
409
|
+
* @maxLength 150
|
410
|
+
*/
|
343
411
|
eventType?: string;
|
344
412
|
/** The identification type and identity data. */
|
345
413
|
identity?: IdentificationData;
|
@@ -364,7 +432,7 @@ export declare function onEmailsubscriptionEmailSubscriptionChanged(handler: (ev
|
|
364
432
|
*
|
365
433
|
* Currently, querying is supported on the `email` field
|
366
434
|
* with the `$in` array filter.
|
367
|
-
* For example, to query for emails "me@my.com" and "you@your.org"
|
435
|
+
* For example, to query for emails `"me@my.com"`` and `"you@your.org"``,
|
368
436
|
* the filter should be formed like this:
|
369
437
|
*
|
370
438
|
* ```json
|
@@ -401,8 +469,8 @@ export interface QueryEmailSubscriptionsOptions {
|
|
401
469
|
/**
|
402
470
|
* Updates or creates an email subscription for the requested email.
|
403
471
|
*
|
404
|
-
* An email subscription is
|
405
|
-
*
|
472
|
+
* An email subscription is returned in the response
|
473
|
+
* whether it was updated or created.
|
406
474
|
* @public
|
407
475
|
* @documentationMaturity preview
|
408
476
|
* @requiredField options.subscription.email
|
@@ -449,7 +517,14 @@ export declare function generateUnsubscribeLink(emailAddress: string, options?:
|
|
449
517
|
export interface GenerateUnsubscribeLinkOptions {
|
450
518
|
/** Arbitrary parameters for closing-the-loop. */
|
451
519
|
metadata?: Record<string, string>;
|
452
|
-
/**
|
520
|
+
/**
|
521
|
+
* Language for displaying unsubscribe confirmation page.
|
522
|
+
*
|
523
|
+
* 2-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.
|
524
|
+
*
|
525
|
+
* Default: `EN`
|
526
|
+
* @format LANGUAGE
|
527
|
+
*/
|
453
528
|
language?: string | null;
|
454
529
|
}
|
455
530
|
export {};
|
package/build/cjs/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.universal.js
CHANGED
@@ -29,28 +29,26 @@ const rename_all_nested_keys_1 = require("@wix/sdk-runtime/rename-all-nested-key
|
|
29
29
|
const ambassadorWixEmailsubscriptionsV1Emailsubscription = __importStar(require("./emailsubscriptions-v1-emailsubscription-email-subscriptions.http.js"));
|
30
30
|
var SubscriptionEnumStatus;
|
31
31
|
(function (SubscriptionEnumStatus) {
|
32
|
-
/** Undefined status. */
|
33
32
|
SubscriptionEnumStatus["UNKNOWN"] = "UNKNOWN";
|
34
|
-
/** No
|
33
|
+
/** No Subscription exists */
|
35
34
|
SubscriptionEnumStatus["NOT_SET"] = "NOT_SET";
|
36
|
-
/** Subscription
|
35
|
+
/** Pending Subscription */
|
37
36
|
SubscriptionEnumStatus["PENDING"] = "PENDING";
|
38
|
-
/**
|
37
|
+
/** Subscribed */
|
39
38
|
SubscriptionEnumStatus["SUBSCRIBED"] = "SUBSCRIBED";
|
40
|
-
/**
|
39
|
+
/** UnSubscribed */
|
41
40
|
SubscriptionEnumStatus["UNSUBSCRIBED"] = "UNSUBSCRIBED";
|
42
41
|
})(SubscriptionEnumStatus || (exports.SubscriptionEnumStatus = SubscriptionEnumStatus = {}));
|
43
42
|
var Status;
|
44
43
|
(function (Status) {
|
45
|
-
/** No status specified. This is the initial default value before any info about the email address is known. */
|
46
44
|
Status["NOT_SET"] = "NOT_SET";
|
47
|
-
/**
|
45
|
+
/** valid/deferral */
|
48
46
|
Status["VALID"] = "VALID";
|
49
|
-
/**
|
47
|
+
/** bounced/rejected/invalid */
|
50
48
|
Status["BOUNCED"] = "BOUNCED";
|
51
|
-
/**
|
49
|
+
/** spam/complaint */
|
52
50
|
Status["SPAM_COMPLAINT"] = "SPAM_COMPLAINT";
|
53
|
-
/**
|
51
|
+
/** valid, but no activity reported */
|
54
52
|
Status["INACTIVE"] = "INACTIVE";
|
55
53
|
})(Status || (exports.Status = Status = {}));
|
56
54
|
var WebhookIdentityType;
|
@@ -102,7 +100,7 @@ exports.getEmailSubscription = getEmailSubscription;
|
|
102
100
|
*
|
103
101
|
* Currently, querying is supported on the `email` field
|
104
102
|
* with the `$in` array filter.
|
105
|
-
* For example, to query for emails "me@my.com" and "you@your.org"
|
103
|
+
* For example, to query for emails `"me@my.com"`` and `"you@your.org"``,
|
106
104
|
* the filter should be formed like this:
|
107
105
|
*
|
108
106
|
* ```json
|
@@ -156,8 +154,8 @@ exports.queryEmailSubscriptions = queryEmailSubscriptions;
|
|
156
154
|
/**
|
157
155
|
* Updates or creates an email subscription for the requested email.
|
158
156
|
*
|
159
|
-
* An email subscription is
|
160
|
-
*
|
157
|
+
* An email subscription is returned in the response
|
158
|
+
* whether it was updated or created.
|
161
159
|
* @public
|
162
160
|
* @documentationMaturity preview
|
163
161
|
* @requiredField options.subscription.email
|
package/build/cjs/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.universal.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"emailsubscriptions-v1-emailsubscription-email-subscriptions.universal.js","sourceRoot":"","sources":["../../../src/emailsubscriptions-v1-emailsubscription-email-subscriptions.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,oFAGiD;AAEjD,0JAA4I;
|
1
|
+
{"version":3,"file":"emailsubscriptions-v1-emailsubscription-email-subscriptions.universal.js","sourceRoot":"","sources":["../../../src/emailsubscriptions-v1-emailsubscription-email-subscriptions.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,oFAGiD;AAEjD,0JAA4I;AAqD5I,IAAY,sBAUX;AAVD,WAAY,sBAAsB;IAChC,6CAAmB,CAAA;IACnB,6BAA6B;IAC7B,6CAAmB,CAAA;IACnB,2BAA2B;IAC3B,6CAAmB,CAAA;IACnB,iBAAiB;IACjB,mDAAyB,CAAA;IACzB,mBAAmB;IACnB,uDAA6B,CAAA;AAC/B,CAAC,EAVW,sBAAsB,sCAAtB,sBAAsB,QAUjC;AAED,IAAY,MAUX;AAVD,WAAY,MAAM;IAChB,6BAAmB,CAAA;IACnB,qBAAqB;IACrB,y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BAAgB,GAAG,IAAA,gCAAiB,EACxC,GAAG,EACH;YACE,sBAAsB,EAAE,EAAE;YAC1B,wBAAwB,EAAE;gBACxB,YAAY,EAAE,MAAM;gBACpB,QAAQ,EAAE,eAAe;gBACzB,QAAQ,EAAE,eAAe;aAC1B;YACD,uBAAuB,EAAE,KAAK;SAC/B,EACD,CAAC,cAAc,EAAE,SAAS,CAAC,CAC5B,CAAC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC;AAhDD,0DAgDC"}
|
package/build/es/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.context.d.ts
CHANGED
@@ -9,4 +9,4 @@ export declare const generateUnsubscribeLink: MaybeContext<BuildRESTFunction<typ
|
|
9
9
|
/** */
|
10
10
|
export declare const onEmailsubscriptionEmailSubscriptionChanged: ReturnType<typeof createEventModule<typeof publicOnEmailsubscriptionEmailSubscriptionChanged>>;
|
11
11
|
export { SubscriptionEnumStatus, Status, WebhookIdentityType, } from './emailsubscriptions-v1-emailsubscription-email-subscriptions.universal.js';
|
12
|
-
export { EmailSubscription,
|
12
|
+
export { EmailSubscription, EmailSubscriptionChanged, GetEmailSubscriptionRequest, GetEmailSubscriptionResponse, UpdateEmailSubscriptionRequest, UpdateEmailSubscriptionResponse, QueryEmailSubscriptionsRequest, Paging, QueryEmailSubscriptionsResponse, PagingMetadata, UpsertEmailSubscriptionRequest, UpsertEmailSubscriptionResponse, BulkUpsertEmailSubscriptionRequest, BulkUpsertEmailSubscriptionResponse, BulkUpsertEmailSubscriptionResult, Error, Metadata, GenerateUnsubscribeLinkRequest, GenerateUnsubscribeLinkResponse, RenderUnsubscribePageRequest, RawHttpResponse, HeadersEntry, ConfirmUnsubscribeActionRequest, Empty, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, RestoreInfo, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, MessageEnvelope, IdentificationData, IdentificationDataIdOneOf, V1RenderUnsubscribePageRequest, V1ConfirmUnsubscribeActionRequest, EmailSubscriptionNonNullableFields, GetEmailSubscriptionResponseNonNullableFields, QueryEmailSubscriptionsResponseNonNullableFields, UpsertEmailSubscriptionResponseNonNullableFields, BulkUpsertEmailSubscriptionResponseNonNullableFields, GenerateUnsubscribeLinkResponseNonNullableFields, BaseEventMetadata, EmailsubscriptionEmailSubscriptionChangedEnvelope, QueryEmailSubscriptionsOptions, UpsertEmailSubscriptionOptions, GenerateUnsubscribeLinkOptions, } from './emailsubscriptions-v1-emailsubscription-email-subscriptions.universal.js';
|
@@ -7,7 +7,7 @@ export declare function getEmailSubscription(payload: object): RequestOptionsFac
|
|
7
7
|
*
|
8
8
|
* Currently, querying is supported on the `email` field
|
9
9
|
* with the `$in` array filter.
|
10
|
-
* For example, to query for emails "me@my.com" and "you@your.org"
|
10
|
+
* For example, to query for emails `"me@my.com"`` and `"you@your.org"``,
|
11
11
|
* the filter should be formed like this:
|
12
12
|
*
|
13
13
|
* ```json
|
@@ -26,8 +26,8 @@ export declare function queryEmailSubscriptions(payload: object): RequestOptions
|
|
26
26
|
/**
|
27
27
|
* Updates or creates an email subscription for the requested email.
|
28
28
|
*
|
29
|
-
* An email subscription is
|
30
|
-
*
|
29
|
+
* An email subscription is returned in the response
|
30
|
+
* whether it was updated or created.
|
31
31
|
*/
|
32
32
|
export declare function upsertEmailSubscription(payload: object): RequestOptionsFactory<any>;
|
33
33
|
/** Updates or creates multiple email subscriptions. */
|
@@ -83,7 +83,7 @@ export function getEmailSubscription(payload) {
|
|
83
83
|
*
|
84
84
|
* Currently, querying is supported on the `email` field
|
85
85
|
* with the `$in` array filter.
|
86
|
-
* For example, to query for emails "me@my.com" and "you@your.org"
|
86
|
+
* For example, to query for emails `"me@my.com"`` and `"you@your.org"``,
|
87
87
|
* the filter should be formed like this:
|
88
88
|
*
|
89
89
|
* ```json
|
@@ -128,8 +128,8 @@ export function queryEmailSubscriptions(payload) {
|
|
128
128
|
/**
|
129
129
|
* Updates or creates an email subscription for the requested email.
|
130
130
|
*
|
131
|
-
* An email subscription is
|
132
|
-
*
|
131
|
+
* An email subscription is returned in the response
|
132
|
+
* whether it was updated or created.
|
133
133
|
*/
|
134
134
|
export function upsertEmailSubscription(payload) {
|
135
135
|
function __upsertEmailSubscription({ host }) {
|
package/build/es/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.public.d.ts
CHANGED
@@ -11,7 +11,7 @@ interface QueryEmailSubscriptionsSignature {
|
|
11
11
|
*
|
12
12
|
* Currently, querying is supported on the `email` field
|
13
13
|
* with the `$in` array filter.
|
14
|
-
* For example, to query for emails "me@my.com" and "you@your.org"
|
14
|
+
* For example, to query for emails `"me@my.com"`` and `"you@your.org"``,
|
15
15
|
* the filter should be formed like this:
|
16
16
|
*
|
17
17
|
* ```json
|
@@ -36,8 +36,8 @@ interface UpsertEmailSubscriptionSignature {
|
|
36
36
|
/**
|
37
37
|
* Updates or creates an email subscription for the requested email.
|
38
38
|
*
|
39
|
-
* An email subscription is
|
40
|
-
*
|
39
|
+
* An email subscription is returned in the response
|
40
|
+
* whether it was updated or created.
|
41
41
|
*/
|
42
42
|
(options?: UpsertEmailSubscriptionOptions | undefined): Promise<UpsertEmailSubscriptionResponse & UpsertEmailSubscriptionResponseNonNullableFields>;
|
43
43
|
}
|