@wix/auto_sdk_email-subscriptions_email-subscriptions 1.0.4 → 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} +74 -126
- 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} +75 -116
- 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 -403
- 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 -530
- package/build/cjs/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.universal.js +0 -273
- 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 -403
- 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 -530
- package/build/es/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.universal.js +0 -242
- 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 -403
- 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 -273
- 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 -403
- 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 -242
- package/build/internal/es/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.universal.js.map +0 -1
package/build/internal/es/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.types.d.ts
DELETED
@@ -1,403 +0,0 @@
|
|
1
|
-
export interface EmailSubscription {
|
2
|
-
/**
|
3
|
-
* Email subscription ID.
|
4
|
-
* @format GUID
|
5
|
-
* @readonly
|
6
|
-
*/
|
7
|
-
id?: string | null;
|
8
|
-
/**
|
9
|
-
* Email address.
|
10
|
-
* @format EMAIL
|
11
|
-
*/
|
12
|
-
email?: string;
|
13
|
-
/**
|
14
|
-
* Indicates the recipient's opt-in or opt-out status
|
15
|
-
* for marketing emails.
|
16
|
-
*
|
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`.
|
24
|
-
*/
|
25
|
-
subscriptionStatus?: SubscriptionEnumStatus;
|
26
|
-
/**
|
27
|
-
* Indicates last reported status of sent emails.
|
28
|
-
*
|
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`.
|
38
|
-
*/
|
39
|
-
deliverabilityStatus?: Status;
|
40
|
-
/**
|
41
|
-
* Date and time the email subscription was created.
|
42
|
-
* @readonly
|
43
|
-
*/
|
44
|
-
createdDate?: Date | null;
|
45
|
-
/**
|
46
|
-
* Date and time the email subscription was last updated.
|
47
|
-
* @readonly
|
48
|
-
*/
|
49
|
-
updatedDate?: Date | null;
|
50
|
-
}
|
51
|
-
export declare enum SubscriptionEnumStatus {
|
52
|
-
UNKNOWN = "UNKNOWN",
|
53
|
-
/** No Subscription exists */
|
54
|
-
NOT_SET = "NOT_SET",
|
55
|
-
/** Pending Subscription */
|
56
|
-
PENDING = "PENDING",
|
57
|
-
/** Subscribed */
|
58
|
-
SUBSCRIBED = "SUBSCRIBED",
|
59
|
-
/** UnSubscribed */
|
60
|
-
UNSUBSCRIBED = "UNSUBSCRIBED"
|
61
|
-
}
|
62
|
-
export declare enum Status {
|
63
|
-
NOT_SET = "NOT_SET",
|
64
|
-
/** valid/deferral */
|
65
|
-
VALID = "VALID",
|
66
|
-
/** bounced/rejected/invalid */
|
67
|
-
BOUNCED = "BOUNCED",
|
68
|
-
/** spam/complaint */
|
69
|
-
SPAM_COMPLAINT = "SPAM_COMPLAINT",
|
70
|
-
/** valid, but no activity reported */
|
71
|
-
INACTIVE = "INACTIVE"
|
72
|
-
}
|
73
|
-
/** Triggered when an email subscription's status is changed. */
|
74
|
-
export interface EmailSubscriptionChanged {
|
75
|
-
/** Email subscription that changed. */
|
76
|
-
subscription?: EmailSubscription;
|
77
|
-
}
|
78
|
-
export interface GetEmailSubscriptionRequest {
|
79
|
-
/** @format GUID */
|
80
|
-
id: string;
|
81
|
-
}
|
82
|
-
export interface GetEmailSubscriptionResponse {
|
83
|
-
/** Returned email subscription */
|
84
|
-
emailSubscription?: EmailSubscription;
|
85
|
-
}
|
86
|
-
export interface UpdateEmailSubscriptionRequest {
|
87
|
-
/** Email subscription to update */
|
88
|
-
subscription?: EmailSubscription;
|
89
|
-
}
|
90
|
-
export interface UpdateEmailSubscriptionResponse {
|
91
|
-
/** Updated email subscription */
|
92
|
-
subscription?: EmailSubscription;
|
93
|
-
}
|
94
|
-
export interface QueryEmailSubscriptionsRequest {
|
95
|
-
/**
|
96
|
-
* Filter options.
|
97
|
-
* Currently, querying is supported on the `email` field
|
98
|
-
* with the `$in` array filter.
|
99
|
-
*/
|
100
|
-
filter: Record<string, any> | null;
|
101
|
-
/**
|
102
|
-
* Pagination options. For more information, see
|
103
|
-
* [Pagination](https://dev.wix.com/api/rest/getting-started/pagination).
|
104
|
-
*/
|
105
|
-
paging?: Paging;
|
106
|
-
}
|
107
|
-
export interface Paging {
|
108
|
-
/** Number of items to load. */
|
109
|
-
limit?: number | null;
|
110
|
-
/** Number of items to skip in the current sort order. */
|
111
|
-
offset?: number | null;
|
112
|
-
}
|
113
|
-
export interface QueryEmailSubscriptionsResponse {
|
114
|
-
/** List of subscribed emails that matched the query options. */
|
115
|
-
subscriptions?: EmailSubscription[];
|
116
|
-
/** Metadata for the paginated results. */
|
117
|
-
metadata?: PagingMetadata;
|
118
|
-
}
|
119
|
-
export interface PagingMetadata {
|
120
|
-
/** Number of items returned in the response. */
|
121
|
-
count?: number | null;
|
122
|
-
/** Offset that was requested. */
|
123
|
-
offset?: number | null;
|
124
|
-
/** Total number of items that match the query. */
|
125
|
-
total?: number | null;
|
126
|
-
/** Flag that indicates the server failed to calculate the `total` field. */
|
127
|
-
tooManyToCount?: boolean | null;
|
128
|
-
}
|
129
|
-
export interface UpsertEmailSubscriptionRequest {
|
130
|
-
/** Email subscription to update or create. */
|
131
|
-
subscription?: EmailSubscription;
|
132
|
-
}
|
133
|
-
export interface UpsertEmailSubscriptionResponse {
|
134
|
-
/** Updated or created email subscription. */
|
135
|
-
subscription?: EmailSubscription;
|
136
|
-
}
|
137
|
-
export interface BulkUpsertEmailSubscriptionRequest {
|
138
|
-
/**
|
139
|
-
* List of email subscriptions to update or create.
|
140
|
-
* @minSize 1
|
141
|
-
* @maxSize 100
|
142
|
-
*/
|
143
|
-
subscriptions: EmailSubscription[];
|
144
|
-
}
|
145
|
-
export interface BulkUpsertEmailSubscriptionResponse {
|
146
|
-
/** List of updated or created email subscriptions. */
|
147
|
-
results?: BulkUpsertEmailSubscriptionResult[];
|
148
|
-
/** Numbers of successful and failed actions. */
|
149
|
-
metadata?: Metadata;
|
150
|
-
}
|
151
|
-
export interface BulkUpsertEmailSubscriptionResult {
|
152
|
-
/** Position of the requested email subscription in the bulk array. */
|
153
|
-
originalIndex?: number;
|
154
|
-
/** New or updated email subscription. */
|
155
|
-
emailSubscription?: EmailSubscription;
|
156
|
-
/**
|
157
|
-
* Error information if the action failed.
|
158
|
-
* Omitted from successful actions.
|
159
|
-
*/
|
160
|
-
error?: Error;
|
161
|
-
}
|
162
|
-
export interface Error {
|
163
|
-
/** Error code. */
|
164
|
-
errorCode?: string;
|
165
|
-
/** Message that contains details about the error. */
|
166
|
-
message?: string;
|
167
|
-
}
|
168
|
-
export interface Metadata {
|
169
|
-
/** Number of successful actions. */
|
170
|
-
totalSuccess?: number;
|
171
|
-
/** Number of failed actions. */
|
172
|
-
totalFailure?: number;
|
173
|
-
}
|
174
|
-
export interface GenerateUnsubscribeLinkRequest {
|
175
|
-
/**
|
176
|
-
* Email address the unsubscribe link is for.
|
177
|
-
* @format EMAIL
|
178
|
-
*/
|
179
|
-
emailAddress: string;
|
180
|
-
/** Arbitrary parameters for closing-the-loop. */
|
181
|
-
metadata?: Record<string, string>;
|
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
|
-
*/
|
190
|
-
language?: string | null;
|
191
|
-
}
|
192
|
-
export interface GenerateUnsubscribeLinkResponse {
|
193
|
-
/** The unsubscribe link. */
|
194
|
-
link?: string;
|
195
|
-
}
|
196
|
-
export interface RenderUnsubscribePageRequest {
|
197
|
-
/** Payload */
|
198
|
-
payload?: string;
|
199
|
-
/** Language */
|
200
|
-
language?: string | null;
|
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
|
-
}
|
211
|
-
export interface ConfirmUnsubscribeActionRequest {
|
212
|
-
/** Payload */
|
213
|
-
payload?: string;
|
214
|
-
}
|
215
|
-
export interface Empty {
|
216
|
-
}
|
217
|
-
export interface DomainEvent extends DomainEventBodyOneOf {
|
218
|
-
createdEvent?: EntityCreatedEvent;
|
219
|
-
updatedEvent?: EntityUpdatedEvent;
|
220
|
-
deletedEvent?: EntityDeletedEvent;
|
221
|
-
actionEvent?: ActionEvent;
|
222
|
-
/**
|
223
|
-
* Unique event ID.
|
224
|
-
* Allows clients to ignore duplicate webhooks.
|
225
|
-
*/
|
226
|
-
id?: string;
|
227
|
-
/**
|
228
|
-
* Assumes actions are also always typed to an entity_type
|
229
|
-
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
230
|
-
*/
|
231
|
-
entityFqdn?: string;
|
232
|
-
/**
|
233
|
-
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
234
|
-
* This is although the created/updated/deleted notion is duplication of the oneof types
|
235
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
236
|
-
*/
|
237
|
-
slug?: string;
|
238
|
-
/** ID of the entity associated with the event. */
|
239
|
-
entityId?: string;
|
240
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
241
|
-
eventTime?: Date | null;
|
242
|
-
/**
|
243
|
-
* Whether the event was triggered as a result of a privacy regulation application
|
244
|
-
* (for example, GDPR).
|
245
|
-
*/
|
246
|
-
triggeredByAnonymizeRequest?: boolean | null;
|
247
|
-
/** If present, indicates the action that triggered the event. */
|
248
|
-
originatedFrom?: string | null;
|
249
|
-
/**
|
250
|
-
* A sequence number defining the order of updates to the underlying entity.
|
251
|
-
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
252
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
253
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
254
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
255
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
256
|
-
*/
|
257
|
-
entityEventSequence?: string | null;
|
258
|
-
}
|
259
|
-
/** @oneof */
|
260
|
-
export interface DomainEventBodyOneOf {
|
261
|
-
createdEvent?: EntityCreatedEvent;
|
262
|
-
updatedEvent?: EntityUpdatedEvent;
|
263
|
-
deletedEvent?: EntityDeletedEvent;
|
264
|
-
actionEvent?: ActionEvent;
|
265
|
-
}
|
266
|
-
export interface EntityCreatedEvent {
|
267
|
-
entityAsJson?: string;
|
268
|
-
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
269
|
-
restoreInfo?: RestoreInfo;
|
270
|
-
}
|
271
|
-
export interface RestoreInfo {
|
272
|
-
deletedDate?: Date | null;
|
273
|
-
}
|
274
|
-
export interface EntityUpdatedEvent {
|
275
|
-
/**
|
276
|
-
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
277
|
-
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
278
|
-
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
279
|
-
*/
|
280
|
-
currentEntityAsJson?: string;
|
281
|
-
}
|
282
|
-
export interface EntityDeletedEvent {
|
283
|
-
/** Entity that was deleted */
|
284
|
-
deletedEntityAsJson?: string | null;
|
285
|
-
}
|
286
|
-
export interface ActionEvent {
|
287
|
-
bodyAsJson?: string;
|
288
|
-
}
|
289
|
-
export interface MessageEnvelope {
|
290
|
-
/**
|
291
|
-
* App instance ID.
|
292
|
-
* @format GUID
|
293
|
-
*/
|
294
|
-
instanceId?: string | null;
|
295
|
-
/**
|
296
|
-
* Event type.
|
297
|
-
* @maxLength 150
|
298
|
-
*/
|
299
|
-
eventType?: string;
|
300
|
-
/** The identification type and identity data. */
|
301
|
-
identity?: IdentificationData;
|
302
|
-
/** Stringify payload. */
|
303
|
-
data?: string;
|
304
|
-
}
|
305
|
-
export interface IdentificationData extends IdentificationDataIdOneOf {
|
306
|
-
/**
|
307
|
-
* ID of a site visitor that has not logged in to the site.
|
308
|
-
* @format GUID
|
309
|
-
*/
|
310
|
-
anonymousVisitorId?: string;
|
311
|
-
/**
|
312
|
-
* ID of a site visitor that has logged in to the site.
|
313
|
-
* @format GUID
|
314
|
-
*/
|
315
|
-
memberId?: string;
|
316
|
-
/**
|
317
|
-
* ID of a Wix user (site owner, contributor, etc.).
|
318
|
-
* @format GUID
|
319
|
-
*/
|
320
|
-
wixUserId?: string;
|
321
|
-
/**
|
322
|
-
* ID of an app.
|
323
|
-
* @format GUID
|
324
|
-
*/
|
325
|
-
appId?: string;
|
326
|
-
/** @readonly */
|
327
|
-
identityType?: WebhookIdentityType;
|
328
|
-
}
|
329
|
-
/** @oneof */
|
330
|
-
export interface IdentificationDataIdOneOf {
|
331
|
-
/**
|
332
|
-
* ID of a site visitor that has not logged in to the site.
|
333
|
-
* @format GUID
|
334
|
-
*/
|
335
|
-
anonymousVisitorId?: string;
|
336
|
-
/**
|
337
|
-
* ID of a site visitor that has logged in to the site.
|
338
|
-
* @format GUID
|
339
|
-
*/
|
340
|
-
memberId?: string;
|
341
|
-
/**
|
342
|
-
* ID of a Wix user (site owner, contributor, etc.).
|
343
|
-
* @format GUID
|
344
|
-
*/
|
345
|
-
wixUserId?: string;
|
346
|
-
/**
|
347
|
-
* ID of an app.
|
348
|
-
* @format GUID
|
349
|
-
*/
|
350
|
-
appId?: string;
|
351
|
-
}
|
352
|
-
export declare enum WebhookIdentityType {
|
353
|
-
UNKNOWN = "UNKNOWN",
|
354
|
-
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
355
|
-
MEMBER = "MEMBER",
|
356
|
-
WIX_USER = "WIX_USER",
|
357
|
-
APP = "APP"
|
358
|
-
}
|
359
|
-
export interface V1RenderUnsubscribePageRequest {
|
360
|
-
/** Payload */
|
361
|
-
payload?: string;
|
362
|
-
/** Language */
|
363
|
-
language?: string | null;
|
364
|
-
}
|
365
|
-
export interface V1ConfirmUnsubscribeActionRequest {
|
366
|
-
/** Payload */
|
367
|
-
payload?: string;
|
368
|
-
}
|
369
|
-
interface EmailSubscriptionNonNullableFields {
|
370
|
-
email: string;
|
371
|
-
subscriptionStatus: SubscriptionEnumStatus;
|
372
|
-
deliverabilityStatus: Status;
|
373
|
-
}
|
374
|
-
export interface GetEmailSubscriptionResponseNonNullableFields {
|
375
|
-
emailSubscription?: EmailSubscriptionNonNullableFields;
|
376
|
-
}
|
377
|
-
export interface QueryEmailSubscriptionsResponseNonNullableFields {
|
378
|
-
subscriptions: EmailSubscriptionNonNullableFields[];
|
379
|
-
}
|
380
|
-
export interface UpsertEmailSubscriptionResponseNonNullableFields {
|
381
|
-
subscription?: EmailSubscriptionNonNullableFields;
|
382
|
-
}
|
383
|
-
interface ErrorNonNullableFields {
|
384
|
-
errorCode: string;
|
385
|
-
message: string;
|
386
|
-
}
|
387
|
-
interface BulkUpsertEmailSubscriptionResultNonNullableFields {
|
388
|
-
originalIndex: number;
|
389
|
-
emailSubscription?: EmailSubscriptionNonNullableFields;
|
390
|
-
error?: ErrorNonNullableFields;
|
391
|
-
}
|
392
|
-
interface MetadataNonNullableFields {
|
393
|
-
totalSuccess: number;
|
394
|
-
totalFailure: number;
|
395
|
-
}
|
396
|
-
export interface BulkUpsertEmailSubscriptionResponseNonNullableFields {
|
397
|
-
results: BulkUpsertEmailSubscriptionResultNonNullableFields[];
|
398
|
-
metadata?: MetadataNonNullableFields;
|
399
|
-
}
|
400
|
-
export interface GenerateUnsubscribeLinkResponseNonNullableFields {
|
401
|
-
link: string;
|
402
|
-
}
|
403
|
-
export {};
|
package/build/internal/es/src/emailsubscriptions-v1-emailsubscription-email-subscriptions.types.js
DELETED
@@ -1,33 +0,0 @@
|
|
1
|
-
export var SubscriptionEnumStatus;
|
2
|
-
(function (SubscriptionEnumStatus) {
|
3
|
-
SubscriptionEnumStatus["UNKNOWN"] = "UNKNOWN";
|
4
|
-
/** No Subscription exists */
|
5
|
-
SubscriptionEnumStatus["NOT_SET"] = "NOT_SET";
|
6
|
-
/** Pending Subscription */
|
7
|
-
SubscriptionEnumStatus["PENDING"] = "PENDING";
|
8
|
-
/** Subscribed */
|
9
|
-
SubscriptionEnumStatus["SUBSCRIBED"] = "SUBSCRIBED";
|
10
|
-
/** UnSubscribed */
|
11
|
-
SubscriptionEnumStatus["UNSUBSCRIBED"] = "UNSUBSCRIBED";
|
12
|
-
})(SubscriptionEnumStatus || (SubscriptionEnumStatus = {}));
|
13
|
-
export var Status;
|
14
|
-
(function (Status) {
|
15
|
-
Status["NOT_SET"] = "NOT_SET";
|
16
|
-
/** valid/deferral */
|
17
|
-
Status["VALID"] = "VALID";
|
18
|
-
/** bounced/rejected/invalid */
|
19
|
-
Status["BOUNCED"] = "BOUNCED";
|
20
|
-
/** spam/complaint */
|
21
|
-
Status["SPAM_COMPLAINT"] = "SPAM_COMPLAINT";
|
22
|
-
/** valid, but no activity reported */
|
23
|
-
Status["INACTIVE"] = "INACTIVE";
|
24
|
-
})(Status || (Status = {}));
|
25
|
-
export var WebhookIdentityType;
|
26
|
-
(function (WebhookIdentityType) {
|
27
|
-
WebhookIdentityType["UNKNOWN"] = "UNKNOWN";
|
28
|
-
WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
29
|
-
WebhookIdentityType["MEMBER"] = "MEMBER";
|
30
|
-
WebhookIdentityType["WIX_USER"] = "WIX_USER";
|
31
|
-
WebhookIdentityType["APP"] = "APP";
|
32
|
-
})(WebhookIdentityType || (WebhookIdentityType = {}));
|
33
|
-
//# sourceMappingURL=emailsubscriptions-v1-emailsubscription-email-subscriptions.types.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"emailsubscriptions-v1-emailsubscription-email-subscriptions.types.js","sourceRoot":"","sources":["../../../../src/emailsubscriptions-v1-emailsubscription-email-subscriptions.types.ts"],"names":[],"mappings":"AAmDA,MAAM,CAAN,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,KAAtB,sBAAsB,QAUjC;AAED,MAAM,CAAN,IAAY,MAUX;AAVD,WAAY,MAAM;IAChB,6BAAmB,CAAA;IACnB,qBAAqB;IACrB,yBAAe,CAAA;IACf,+BAA+B;IAC/B,6BAAmB,CAAA;IACnB,qBAAqB;IACrB,2CAAiC,CAAA;IACjC,sCAAsC;IACtC,+BAAqB,CAAA;AACvB,CAAC,EAVW,MAAM,KAAN,MAAM,QAUjB;AAyTD,MAAM,CAAN,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,KAAnB,mBAAmB,QAM9B"}
|
@@ -1,242 +0,0 @@
|
|
1
|
-
import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';
|
2
|
-
import { renameKeysFromSDKRequestToRESTRequest, renameKeysFromRESTResponseToSDKResponse, } from '@wix/sdk-runtime/rename-all-nested-keys';
|
3
|
-
import * as ambassadorWixEmailsubscriptionsV1Emailsubscription from './emailsubscriptions-v1-emailsubscription-email-subscriptions.http.js';
|
4
|
-
export var SubscriptionEnumStatus;
|
5
|
-
(function (SubscriptionEnumStatus) {
|
6
|
-
SubscriptionEnumStatus["UNKNOWN"] = "UNKNOWN";
|
7
|
-
/** No Subscription exists */
|
8
|
-
SubscriptionEnumStatus["NOT_SET"] = "NOT_SET";
|
9
|
-
/** Pending Subscription */
|
10
|
-
SubscriptionEnumStatus["PENDING"] = "PENDING";
|
11
|
-
/** Subscribed */
|
12
|
-
SubscriptionEnumStatus["SUBSCRIBED"] = "SUBSCRIBED";
|
13
|
-
/** UnSubscribed */
|
14
|
-
SubscriptionEnumStatus["UNSUBSCRIBED"] = "UNSUBSCRIBED";
|
15
|
-
})(SubscriptionEnumStatus || (SubscriptionEnumStatus = {}));
|
16
|
-
export var Status;
|
17
|
-
(function (Status) {
|
18
|
-
Status["NOT_SET"] = "NOT_SET";
|
19
|
-
/** valid/deferral */
|
20
|
-
Status["VALID"] = "VALID";
|
21
|
-
/** bounced/rejected/invalid */
|
22
|
-
Status["BOUNCED"] = "BOUNCED";
|
23
|
-
/** spam/complaint */
|
24
|
-
Status["SPAM_COMPLAINT"] = "SPAM_COMPLAINT";
|
25
|
-
/** valid, but no activity reported */
|
26
|
-
Status["INACTIVE"] = "INACTIVE";
|
27
|
-
})(Status || (Status = {}));
|
28
|
-
export var WebhookIdentityType;
|
29
|
-
(function (WebhookIdentityType) {
|
30
|
-
WebhookIdentityType["UNKNOWN"] = "UNKNOWN";
|
31
|
-
WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
32
|
-
WebhookIdentityType["MEMBER"] = "MEMBER";
|
33
|
-
WebhookIdentityType["WIX_USER"] = "WIX_USER";
|
34
|
-
WebhookIdentityType["APP"] = "APP";
|
35
|
-
})(WebhookIdentityType || (WebhookIdentityType = {}));
|
36
|
-
/**
|
37
|
-
* Get Email Subscription
|
38
|
-
* @internal
|
39
|
-
* @documentationMaturity preview
|
40
|
-
* @requiredField _id
|
41
|
-
* @permissionId EMAIL_SUBSCRIPTIONS.VIEW
|
42
|
-
* @permissionScope Manage Email Subscriptions
|
43
|
-
* @permissionScopeId SCOPE.DC-MANAGE.EMAIL-SUBSCRIPTIONS
|
44
|
-
* @applicableIdentity APP
|
45
|
-
* @returns Returned email subscription
|
46
|
-
* @fqn com.wixpress.emailsubscriptions.v1.EmailSubscriptionsService.GetEmailSubscription
|
47
|
-
*/
|
48
|
-
export async function getEmailSubscription(_id) {
|
49
|
-
// @ts-ignore
|
50
|
-
const { httpClient, sideEffects } = arguments[1];
|
51
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({ id: _id });
|
52
|
-
const reqOpts = ambassadorWixEmailsubscriptionsV1Emailsubscription.getEmailSubscription(payload);
|
53
|
-
sideEffects?.onSiteCall?.();
|
54
|
-
try {
|
55
|
-
const result = await httpClient.request(reqOpts);
|
56
|
-
sideEffects?.onSuccess?.(result);
|
57
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data)
|
58
|
-
?.emailSubscription;
|
59
|
-
}
|
60
|
-
catch (err) {
|
61
|
-
const transformedError = sdkTransformError(err, {
|
62
|
-
spreadPathsToArguments: {},
|
63
|
-
explicitPathsToArguments: { id: '$[0]' },
|
64
|
-
singleArgumentUnchanged: false,
|
65
|
-
}, ['_id']);
|
66
|
-
sideEffects?.onError?.(err);
|
67
|
-
throw transformedError;
|
68
|
-
}
|
69
|
-
}
|
70
|
-
/**
|
71
|
-
* Retrieves email subscriptions,
|
72
|
-
* given the provided paging, filtering, and sorting.
|
73
|
-
*
|
74
|
-
* Currently, querying is supported on the `email` field
|
75
|
-
* with the `$in` array filter.
|
76
|
-
* For example, to query for emails `"me@my.com"` and `"you@your.org"`,
|
77
|
-
* the filter should be formed like this:
|
78
|
-
*
|
79
|
-
* ```json
|
80
|
-
* { "filter": {
|
81
|
-
* "email": {
|
82
|
-
* "$in": ["me@my.com", "you@your.org"]
|
83
|
-
* }
|
84
|
-
* }
|
85
|
-
* }
|
86
|
-
* ```
|
87
|
-
*
|
88
|
-
* To learn how to query email subscriptions, see
|
89
|
-
* [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language).
|
90
|
-
* @param filter - Filter options.
|
91
|
-
* Currently, querying is supported on the `email` field
|
92
|
-
* with the `$in` array filter.
|
93
|
-
* @public
|
94
|
-
* @documentationMaturity preview
|
95
|
-
* @requiredField filter
|
96
|
-
* @permissionId EMAIL_SUBSCRIPTIONS.VIEW
|
97
|
-
* @permissionScope Manage Email Subscriptions
|
98
|
-
* @permissionScopeId SCOPE.DC-MANAGE.EMAIL-SUBSCRIPTIONS
|
99
|
-
* @applicableIdentity APP
|
100
|
-
* @fqn com.wixpress.emailsubscriptions.v1.EmailSubscriptionsService.QueryEmailSubscriptions
|
101
|
-
*/
|
102
|
-
export async function queryEmailSubscriptions(filter, options) {
|
103
|
-
// @ts-ignore
|
104
|
-
const { httpClient, sideEffects } = arguments[2];
|
105
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
106
|
-
filter: filter,
|
107
|
-
paging: options?.paging,
|
108
|
-
});
|
109
|
-
const reqOpts = ambassadorWixEmailsubscriptionsV1Emailsubscription.queryEmailSubscriptions(payload);
|
110
|
-
sideEffects?.onSiteCall?.();
|
111
|
-
try {
|
112
|
-
const result = await httpClient.request(reqOpts);
|
113
|
-
sideEffects?.onSuccess?.(result);
|
114
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
115
|
-
}
|
116
|
-
catch (err) {
|
117
|
-
const transformedError = sdkTransformError(err, {
|
118
|
-
spreadPathsToArguments: {},
|
119
|
-
explicitPathsToArguments: { filter: '$[0]', paging: '$[1].paging' },
|
120
|
-
singleArgumentUnchanged: false,
|
121
|
-
}, ['filter', 'options']);
|
122
|
-
sideEffects?.onError?.(err);
|
123
|
-
throw transformedError;
|
124
|
-
}
|
125
|
-
}
|
126
|
-
/**
|
127
|
-
* Updates or creates an email subscription for the requested email.
|
128
|
-
*
|
129
|
-
* An email subscription is returned in the response
|
130
|
-
* whether it was updated or created.
|
131
|
-
* @public
|
132
|
-
* @documentationMaturity preview
|
133
|
-
* @requiredField options.subscription.email
|
134
|
-
* @permissionId EMAIL_SUBSCRIPTIONS.MODIFY
|
135
|
-
* @permissionScope Manage Email Subscriptions
|
136
|
-
* @permissionScopeId SCOPE.DC-MANAGE.EMAIL-SUBSCRIPTIONS
|
137
|
-
* @applicableIdentity APP
|
138
|
-
* @fqn com.wixpress.emailsubscriptions.v1.EmailSubscriptionsService.UpsertEmailSubscription
|
139
|
-
*/
|
140
|
-
export async function upsertEmailSubscription(options) {
|
141
|
-
// @ts-ignore
|
142
|
-
const { httpClient, sideEffects } = arguments[1];
|
143
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
144
|
-
subscription: options?.subscription,
|
145
|
-
});
|
146
|
-
const reqOpts = ambassadorWixEmailsubscriptionsV1Emailsubscription.upsertEmailSubscription(payload);
|
147
|
-
sideEffects?.onSiteCall?.();
|
148
|
-
try {
|
149
|
-
const result = await httpClient.request(reqOpts);
|
150
|
-
sideEffects?.onSuccess?.(result);
|
151
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
152
|
-
}
|
153
|
-
catch (err) {
|
154
|
-
const transformedError = sdkTransformError(err, {
|
155
|
-
spreadPathsToArguments: {},
|
156
|
-
explicitPathsToArguments: { subscription: '$[0].subscription' },
|
157
|
-
singleArgumentUnchanged: false,
|
158
|
-
}, ['options']);
|
159
|
-
sideEffects?.onError?.(err);
|
160
|
-
throw transformedError;
|
161
|
-
}
|
162
|
-
}
|
163
|
-
/**
|
164
|
-
* Updates or creates multiple email subscriptions.
|
165
|
-
* @param subscriptions - List of email subscriptions to update or create.
|
166
|
-
* @public
|
167
|
-
* @documentationMaturity preview
|
168
|
-
* @requiredField subscriptions
|
169
|
-
* @permissionId EMAIL_SUBSCRIPTIONS.MODIFY
|
170
|
-
* @permissionScope Manage Email Subscriptions
|
171
|
-
* @permissionScopeId SCOPE.DC-MANAGE.EMAIL-SUBSCRIPTIONS
|
172
|
-
* @applicableIdentity APP
|
173
|
-
* @fqn com.wixpress.emailsubscriptions.v1.EmailSubscriptionsService.BulkUpsertEmailSubscription
|
174
|
-
*/
|
175
|
-
export async function bulkUpsertEmailSubscription(subscriptions) {
|
176
|
-
// @ts-ignore
|
177
|
-
const { httpClient, sideEffects } = arguments[1];
|
178
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
179
|
-
subscriptions: subscriptions,
|
180
|
-
});
|
181
|
-
const reqOpts = ambassadorWixEmailsubscriptionsV1Emailsubscription.bulkUpsertEmailSubscription(payload);
|
182
|
-
sideEffects?.onSiteCall?.();
|
183
|
-
try {
|
184
|
-
const result = await httpClient.request(reqOpts);
|
185
|
-
sideEffects?.onSuccess?.(result);
|
186
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
187
|
-
}
|
188
|
-
catch (err) {
|
189
|
-
const transformedError = sdkTransformError(err, {
|
190
|
-
spreadPathsToArguments: {},
|
191
|
-
explicitPathsToArguments: { subscriptions: '$[0]' },
|
192
|
-
singleArgumentUnchanged: false,
|
193
|
-
}, ['subscriptions']);
|
194
|
-
sideEffects?.onError?.(err);
|
195
|
-
throw transformedError;
|
196
|
-
}
|
197
|
-
}
|
198
|
-
/**
|
199
|
-
* Creates an unsubscribe link to be shared with the relevant recipient.
|
200
|
-
*
|
201
|
-
* If someone clicks the **Unsubscribe** button on the confirmation page,
|
202
|
-
* the recipient's `subscriptionStatus` is changed to `UNSUBSCRIBED`.
|
203
|
-
* @param emailAddress - Email address the unsubscribe link is for.
|
204
|
-
* @public
|
205
|
-
* @documentationMaturity preview
|
206
|
-
* @requiredField emailAddress
|
207
|
-
* @permissionId EMAIL_SUBSCRIPTIONS.VIEW
|
208
|
-
* @permissionScope Manage Email Subscriptions
|
209
|
-
* @permissionScopeId SCOPE.DC-MANAGE.EMAIL-SUBSCRIPTIONS
|
210
|
-
* @applicableIdentity APP
|
211
|
-
* @fqn com.wixpress.emailsubscriptions.v1.EmailSubscriptionsService.GenerateUnsubscribeLink
|
212
|
-
*/
|
213
|
-
export async function generateUnsubscribeLink(emailAddress, options) {
|
214
|
-
// @ts-ignore
|
215
|
-
const { httpClient, sideEffects } = arguments[2];
|
216
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
217
|
-
emailAddress: emailAddress,
|
218
|
-
metadata: options?.metadata,
|
219
|
-
language: options?.language,
|
220
|
-
});
|
221
|
-
const reqOpts = ambassadorWixEmailsubscriptionsV1Emailsubscription.generateUnsubscribeLink(payload);
|
222
|
-
sideEffects?.onSiteCall?.();
|
223
|
-
try {
|
224
|
-
const result = await httpClient.request(reqOpts);
|
225
|
-
sideEffects?.onSuccess?.(result);
|
226
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
227
|
-
}
|
228
|
-
catch (err) {
|
229
|
-
const transformedError = sdkTransformError(err, {
|
230
|
-
spreadPathsToArguments: {},
|
231
|
-
explicitPathsToArguments: {
|
232
|
-
emailAddress: '$[0]',
|
233
|
-
metadata: '$[1].metadata',
|
234
|
-
language: '$[1].language',
|
235
|
-
},
|
236
|
-
singleArgumentUnchanged: false,
|
237
|
-
}, ['emailAddress', 'options']);
|
238
|
-
sideEffects?.onError?.(err);
|
239
|
-
throw transformedError;
|
240
|
-
}
|
241
|
-
}
|
242
|
-
//# sourceMappingURL=emailsubscriptions-v1-emailsubscription-email-subscriptions.universal.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"emailsubscriptions-v1-emailsubscription-email-subscriptions.universal.js","sourceRoot":"","sources":["../../../../src/emailsubscriptions-v1-emailsubscription-email-subscriptions.universal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EACL,qCAAqC,EACrC,uCAAuC,GACxC,MAAM,yCAAyC,CAAC;AAEjD,OAAO,KAAK,kDAAkD,MAAM,uEAAuE,CAAC;AAqD5I,MAAM,CAAN,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,KAAtB,sBAAsB,QAUjC;AAED,MAAM,CAAN,IAAY,MAUX;AAVD,WAAY,MAAM;IAChB,6BAAmB,CAAA;IACnB,qBAAqB;IACrB,yBAAe,CAAA;IACf,+BAA+B;IAC/B,6BAAmB,CAAA;IACnB,qBAAqB;IACrB,2CAAiC,CAAA;IACjC,sCAAsC;IACtC,+BAAqB,CAAA;AACvB,CAAC,EAVW,MAAM,KAAN,MAAM,QAUjB;AAuTD,MAAM,CA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