@wix/auto_sdk_embeds_custom-embeds 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/embeds-v1-custom-embed-custom-embeds.universal-mfBLr_Yo.d.ts +402 -0
- package/build/cjs/index.d.ts +72 -0
- package/build/cjs/index.js +446 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/meta.d.ts +190 -0
- package/build/cjs/meta.js +280 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/es/embeds-v1-custom-embed-custom-embeds.universal-mfBLr_Yo.d.mts +402 -0
- package/build/es/index.d.mts +72 -0
- package/build/es/index.mjs +412 -0
- package/build/es/index.mjs.map +1 -0
- package/build/es/meta.d.mts +190 -0
- package/build/es/meta.mjs +249 -0
- package/build/es/meta.mjs.map +1 -0
- package/build/es/package.json +3 -0
- package/build/internal/cjs/embeds-v1-custom-embed-custom-embeds.universal-mfBLr_Yo.d.ts +402 -0
- package/build/internal/cjs/index.d.ts +72 -0
- package/build/internal/cjs/index.js +446 -0
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +190 -0
- package/build/internal/cjs/meta.js +280 -0
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/es/embeds-v1-custom-embed-custom-embeds.universal-mfBLr_Yo.d.mts +402 -0
- package/build/internal/es/index.d.mts +72 -0
- package/build/internal/es/index.mjs +412 -0
- package/build/internal/es/index.mjs.map +1 -0
- package/build/internal/es/meta.d.mts +190 -0
- package/build/internal/es/meta.mjs +249 -0
- package/build/internal/es/meta.mjs.map +1 -0
- package/meta/package.json +3 -0
- package/package.json +53 -0
|
@@ -0,0 +1,402 @@
|
|
|
1
|
+
/** A custom embed is an entity that manages custom HTML and JavaScript code embedded in a site, along with its placement and properties. */
|
|
2
|
+
interface CustomEmbed {
|
|
3
|
+
/**
|
|
4
|
+
* Custom embed ID.
|
|
5
|
+
* @format GUID
|
|
6
|
+
* @readonly
|
|
7
|
+
*/
|
|
8
|
+
_id?: string | null;
|
|
9
|
+
/**
|
|
10
|
+
* Revision number, which increments by 1 each time the custom embed is updated.
|
|
11
|
+
* To prevent conflicting changes, the current revision must be passed when updating a custom embed.
|
|
12
|
+
* @readonly
|
|
13
|
+
*/
|
|
14
|
+
revision?: string | null;
|
|
15
|
+
/**
|
|
16
|
+
* Custom embed name, as displayed to Wix users.
|
|
17
|
+
* @minLength 1
|
|
18
|
+
* @maxLength 100
|
|
19
|
+
*/
|
|
20
|
+
name?: string | null;
|
|
21
|
+
/**
|
|
22
|
+
* Whether the custom embed is enabled on the site.
|
|
23
|
+
* Default: `true`.
|
|
24
|
+
*/
|
|
25
|
+
enabled?: boolean | null;
|
|
26
|
+
/**
|
|
27
|
+
* Whether to load the custom embed once during initial site rendering, rather than on each page navigation.
|
|
28
|
+
* This setting affects performance and should be chosen based on the embed's functionality.
|
|
29
|
+
* Default: `true`.
|
|
30
|
+
*/
|
|
31
|
+
loadOnce?: boolean | null;
|
|
32
|
+
/**
|
|
33
|
+
* Site domain that's connected to the site, if relevant.
|
|
34
|
+
* @format HOSTNAME
|
|
35
|
+
*/
|
|
36
|
+
domain?: string | null;
|
|
37
|
+
/** Position where the custom embed code is placed on the page. */
|
|
38
|
+
position?: PositionOnPageWithLiterals;
|
|
39
|
+
/** Custom embed data. */
|
|
40
|
+
embedData?: V1CustomEmbed;
|
|
41
|
+
}
|
|
42
|
+
declare enum PositionOnPage {
|
|
43
|
+
/** Illegal value, exception will be thrown if used */
|
|
44
|
+
UNKNOWN_POSITION = "UNKNOWN_POSITION",
|
|
45
|
+
/** HEAD position */
|
|
46
|
+
HEAD = "HEAD",
|
|
47
|
+
/** BODY_START position */
|
|
48
|
+
BODY_START = "BODY_START",
|
|
49
|
+
/** BODY_END position */
|
|
50
|
+
BODY_END = "BODY_END"
|
|
51
|
+
}
|
|
52
|
+
/** @enumType */
|
|
53
|
+
type PositionOnPageWithLiterals = PositionOnPage | 'UNKNOWN_POSITION' | 'HEAD' | 'BODY_START' | 'BODY_END';
|
|
54
|
+
interface V1CustomEmbed {
|
|
55
|
+
/** CustomEmbed's category */
|
|
56
|
+
category?: CategoryWithLiterals;
|
|
57
|
+
/**
|
|
58
|
+
* CustomEmbed's html
|
|
59
|
+
* @maxLength 15000
|
|
60
|
+
*/
|
|
61
|
+
html?: string;
|
|
62
|
+
}
|
|
63
|
+
declare enum Category {
|
|
64
|
+
/** Illegal type, exception will be thrown if used */
|
|
65
|
+
UNKNOWN_CATEGORY = "UNKNOWN_CATEGORY",
|
|
66
|
+
/** Essential category */
|
|
67
|
+
ESSENTIAL = "ESSENTIAL",
|
|
68
|
+
/** Functional category */
|
|
69
|
+
FUNCTIONAL = "FUNCTIONAL",
|
|
70
|
+
/** Analytics category */
|
|
71
|
+
ANALYTICS = "ANALYTICS",
|
|
72
|
+
/** Advertising category */
|
|
73
|
+
ADVERTISING = "ADVERTISING",
|
|
74
|
+
/** Data to third party category */
|
|
75
|
+
DATA_TO_THIRD_PARTY = "DATA_TO_THIRD_PARTY"
|
|
76
|
+
}
|
|
77
|
+
/** @enumType */
|
|
78
|
+
type CategoryWithLiterals = Category | 'UNKNOWN_CATEGORY' | 'ESSENTIAL' | 'FUNCTIONAL' | 'ANALYTICS' | 'ADVERTISING' | 'DATA_TO_THIRD_PARTY';
|
|
79
|
+
interface CreateCustomEmbedRequest {
|
|
80
|
+
/** Custom embed to create. */
|
|
81
|
+
customEmbed: CustomEmbed;
|
|
82
|
+
}
|
|
83
|
+
interface CreateCustomEmbedResponse {
|
|
84
|
+
/** Created custom embed. */
|
|
85
|
+
customEmbed?: CustomEmbed;
|
|
86
|
+
}
|
|
87
|
+
interface GetCustomEmbedRequest {
|
|
88
|
+
/**
|
|
89
|
+
* Custom embed ID.
|
|
90
|
+
* @format GUID
|
|
91
|
+
*/
|
|
92
|
+
customEmbedId: string;
|
|
93
|
+
}
|
|
94
|
+
interface GetCustomEmbedResponse {
|
|
95
|
+
/** Requested custom embed. */
|
|
96
|
+
customEmbed?: CustomEmbed;
|
|
97
|
+
}
|
|
98
|
+
interface UpdateCustomEmbedRequest {
|
|
99
|
+
/** Custom embed to update. */
|
|
100
|
+
customEmbed: CustomEmbed;
|
|
101
|
+
}
|
|
102
|
+
interface UpdateCustomEmbedResponse {
|
|
103
|
+
/** Updated custom embed. */
|
|
104
|
+
customEmbed?: CustomEmbed;
|
|
105
|
+
}
|
|
106
|
+
interface DeleteCustomEmbedRequest {
|
|
107
|
+
/**
|
|
108
|
+
* Custom embed ID to delete.
|
|
109
|
+
* @format GUID
|
|
110
|
+
*/
|
|
111
|
+
customEmbedId: string;
|
|
112
|
+
}
|
|
113
|
+
interface DeleteCustomEmbedResponse {
|
|
114
|
+
}
|
|
115
|
+
interface ListCustomEmbedsRequest {
|
|
116
|
+
/** Pagination options. */
|
|
117
|
+
paging?: CursorPaging;
|
|
118
|
+
}
|
|
119
|
+
interface CursorPaging {
|
|
120
|
+
/**
|
|
121
|
+
* Maximum number of items to return in the results.
|
|
122
|
+
* @max 100
|
|
123
|
+
*/
|
|
124
|
+
limit?: number | null;
|
|
125
|
+
/**
|
|
126
|
+
* Pointer to the next or previous page in the list of results.
|
|
127
|
+
*
|
|
128
|
+
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
129
|
+
* Not relevant for the first request.
|
|
130
|
+
* @maxLength 16000
|
|
131
|
+
*/
|
|
132
|
+
cursor?: string | null;
|
|
133
|
+
}
|
|
134
|
+
interface ListCustomEmbedsResponse {
|
|
135
|
+
/** List of custom embeds. */
|
|
136
|
+
customEmbeds?: CustomEmbed[];
|
|
137
|
+
/** Pagination metadata. */
|
|
138
|
+
pagingMetadata?: CursorPagingMetadata;
|
|
139
|
+
}
|
|
140
|
+
interface CursorPagingMetadata {
|
|
141
|
+
/** Number of items returned in current page. */
|
|
142
|
+
count?: number | null;
|
|
143
|
+
/** Cursor strings that point to the next page, previous page, or both. */
|
|
144
|
+
cursors?: Cursors;
|
|
145
|
+
/**
|
|
146
|
+
* Whether there are more pages to retrieve following the current page.
|
|
147
|
+
*
|
|
148
|
+
* + `true`: Another page of results can be retrieved.
|
|
149
|
+
* + `false`: This is the last page.
|
|
150
|
+
*/
|
|
151
|
+
hasNext?: boolean | null;
|
|
152
|
+
}
|
|
153
|
+
interface Cursors {
|
|
154
|
+
/**
|
|
155
|
+
* Cursor string pointing to the next page in the list of results.
|
|
156
|
+
* @maxLength 16000
|
|
157
|
+
*/
|
|
158
|
+
next?: string | null;
|
|
159
|
+
/**
|
|
160
|
+
* Cursor pointing to the previous page in the list of results.
|
|
161
|
+
* @maxLength 16000
|
|
162
|
+
*/
|
|
163
|
+
prev?: string | null;
|
|
164
|
+
}
|
|
165
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
|
166
|
+
createdEvent?: EntityCreatedEvent;
|
|
167
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
168
|
+
deletedEvent?: EntityDeletedEvent;
|
|
169
|
+
actionEvent?: ActionEvent;
|
|
170
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
171
|
+
_id?: string;
|
|
172
|
+
/**
|
|
173
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
174
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
175
|
+
*/
|
|
176
|
+
entityFqdn?: string;
|
|
177
|
+
/**
|
|
178
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
179
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
180
|
+
*/
|
|
181
|
+
slug?: string;
|
|
182
|
+
/** ID of the entity associated with the event. */
|
|
183
|
+
entityId?: string;
|
|
184
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
185
|
+
eventTime?: Date | null;
|
|
186
|
+
/**
|
|
187
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
188
|
+
* (for example, GDPR).
|
|
189
|
+
*/
|
|
190
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
191
|
+
/** If present, indicates the action that triggered the event. */
|
|
192
|
+
originatedFrom?: string | null;
|
|
193
|
+
/**
|
|
194
|
+
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
|
|
195
|
+
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
196
|
+
*/
|
|
197
|
+
entityEventSequence?: string | null;
|
|
198
|
+
}
|
|
199
|
+
/** @oneof */
|
|
200
|
+
interface DomainEventBodyOneOf {
|
|
201
|
+
createdEvent?: EntityCreatedEvent;
|
|
202
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
203
|
+
deletedEvent?: EntityDeletedEvent;
|
|
204
|
+
actionEvent?: ActionEvent;
|
|
205
|
+
}
|
|
206
|
+
interface EntityCreatedEvent {
|
|
207
|
+
entity?: string;
|
|
208
|
+
}
|
|
209
|
+
interface RestoreInfo {
|
|
210
|
+
deletedDate?: Date | null;
|
|
211
|
+
}
|
|
212
|
+
interface EntityUpdatedEvent {
|
|
213
|
+
/**
|
|
214
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
215
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
216
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
217
|
+
*/
|
|
218
|
+
currentEntity?: string;
|
|
219
|
+
}
|
|
220
|
+
interface EntityDeletedEvent {
|
|
221
|
+
/** Entity that was deleted. */
|
|
222
|
+
deletedEntity?: string | null;
|
|
223
|
+
}
|
|
224
|
+
interface ActionEvent {
|
|
225
|
+
body?: string;
|
|
226
|
+
}
|
|
227
|
+
interface Empty {
|
|
228
|
+
}
|
|
229
|
+
interface MessageEnvelope {
|
|
230
|
+
/**
|
|
231
|
+
* App instance ID.
|
|
232
|
+
* @format GUID
|
|
233
|
+
*/
|
|
234
|
+
instanceId?: string | null;
|
|
235
|
+
/**
|
|
236
|
+
* Event type.
|
|
237
|
+
* @maxLength 150
|
|
238
|
+
*/
|
|
239
|
+
eventType?: string;
|
|
240
|
+
/** The identification type and identity data. */
|
|
241
|
+
identity?: IdentificationData;
|
|
242
|
+
/** Stringify payload. */
|
|
243
|
+
data?: string;
|
|
244
|
+
}
|
|
245
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
246
|
+
/**
|
|
247
|
+
* ID of a site visitor that has not logged in to the site.
|
|
248
|
+
* @format GUID
|
|
249
|
+
*/
|
|
250
|
+
anonymousVisitorId?: string;
|
|
251
|
+
/**
|
|
252
|
+
* ID of a site visitor that has logged in to the site.
|
|
253
|
+
* @format GUID
|
|
254
|
+
*/
|
|
255
|
+
memberId?: string;
|
|
256
|
+
/**
|
|
257
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
258
|
+
* @format GUID
|
|
259
|
+
*/
|
|
260
|
+
wixUserId?: string;
|
|
261
|
+
/**
|
|
262
|
+
* ID of an app.
|
|
263
|
+
* @format GUID
|
|
264
|
+
*/
|
|
265
|
+
appId?: string;
|
|
266
|
+
/** @readonly */
|
|
267
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
268
|
+
}
|
|
269
|
+
/** @oneof */
|
|
270
|
+
interface IdentificationDataIdOneOf {
|
|
271
|
+
/**
|
|
272
|
+
* ID of a site visitor that has not logged in to the site.
|
|
273
|
+
* @format GUID
|
|
274
|
+
*/
|
|
275
|
+
anonymousVisitorId?: string;
|
|
276
|
+
/**
|
|
277
|
+
* ID of a site visitor that has logged in to the site.
|
|
278
|
+
* @format GUID
|
|
279
|
+
*/
|
|
280
|
+
memberId?: string;
|
|
281
|
+
/**
|
|
282
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
283
|
+
* @format GUID
|
|
284
|
+
*/
|
|
285
|
+
wixUserId?: string;
|
|
286
|
+
/**
|
|
287
|
+
* ID of an app.
|
|
288
|
+
* @format GUID
|
|
289
|
+
*/
|
|
290
|
+
appId?: string;
|
|
291
|
+
}
|
|
292
|
+
declare enum WebhookIdentityType {
|
|
293
|
+
UNKNOWN = "UNKNOWN",
|
|
294
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
295
|
+
MEMBER = "MEMBER",
|
|
296
|
+
WIX_USER = "WIX_USER",
|
|
297
|
+
APP = "APP"
|
|
298
|
+
}
|
|
299
|
+
/** @enumType */
|
|
300
|
+
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
301
|
+
interface BaseEventMetadata {
|
|
302
|
+
/**
|
|
303
|
+
* App instance ID.
|
|
304
|
+
* @format GUID
|
|
305
|
+
*/
|
|
306
|
+
instanceId?: string | null;
|
|
307
|
+
/**
|
|
308
|
+
* Event type.
|
|
309
|
+
* @maxLength 150
|
|
310
|
+
*/
|
|
311
|
+
eventType?: string;
|
|
312
|
+
/** The identification type and identity data. */
|
|
313
|
+
identity?: IdentificationData;
|
|
314
|
+
}
|
|
315
|
+
interface EventMetadata extends BaseEventMetadata {
|
|
316
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
317
|
+
_id?: string;
|
|
318
|
+
/**
|
|
319
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
320
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
321
|
+
*/
|
|
322
|
+
entityFqdn?: string;
|
|
323
|
+
/**
|
|
324
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
325
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
326
|
+
*/
|
|
327
|
+
slug?: string;
|
|
328
|
+
/** ID of the entity associated with the event. */
|
|
329
|
+
entityId?: string;
|
|
330
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
331
|
+
eventTime?: Date | null;
|
|
332
|
+
/**
|
|
333
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
334
|
+
* (for example, GDPR).
|
|
335
|
+
*/
|
|
336
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
337
|
+
/** If present, indicates the action that triggered the event. */
|
|
338
|
+
originatedFrom?: string | null;
|
|
339
|
+
/**
|
|
340
|
+
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
|
|
341
|
+
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
342
|
+
*/
|
|
343
|
+
entityEventSequence?: string | null;
|
|
344
|
+
}
|
|
345
|
+
interface CustomEmbedCreatedEnvelope {
|
|
346
|
+
entity: CustomEmbed;
|
|
347
|
+
metadata: EventMetadata;
|
|
348
|
+
}
|
|
349
|
+
interface CustomEmbedDeletedEnvelope {
|
|
350
|
+
entity: CustomEmbed;
|
|
351
|
+
metadata: EventMetadata;
|
|
352
|
+
}
|
|
353
|
+
interface CustomEmbedUpdatedEnvelope {
|
|
354
|
+
entity: CustomEmbed;
|
|
355
|
+
metadata: EventMetadata;
|
|
356
|
+
}
|
|
357
|
+
interface UpdateCustomEmbed {
|
|
358
|
+
/**
|
|
359
|
+
* Custom embed ID.
|
|
360
|
+
* @format GUID
|
|
361
|
+
* @readonly
|
|
362
|
+
*/
|
|
363
|
+
_id?: string | null;
|
|
364
|
+
/**
|
|
365
|
+
* Revision number, which increments by 1 each time the custom embed is updated.
|
|
366
|
+
* To prevent conflicting changes, the current revision must be passed when updating a custom embed.
|
|
367
|
+
* @readonly
|
|
368
|
+
*/
|
|
369
|
+
revision?: string | null;
|
|
370
|
+
/**
|
|
371
|
+
* Custom embed name, as displayed to Wix users.
|
|
372
|
+
* @minLength 1
|
|
373
|
+
* @maxLength 100
|
|
374
|
+
*/
|
|
375
|
+
name?: string | null;
|
|
376
|
+
/**
|
|
377
|
+
* Whether the custom embed is enabled on the site.
|
|
378
|
+
* Default: `true`.
|
|
379
|
+
*/
|
|
380
|
+
enabled?: boolean | null;
|
|
381
|
+
/**
|
|
382
|
+
* Whether to load the custom embed once during initial site rendering, rather than on each page navigation.
|
|
383
|
+
* This setting affects performance and should be chosen based on the embed's functionality.
|
|
384
|
+
* Default: `true`.
|
|
385
|
+
*/
|
|
386
|
+
loadOnce?: boolean | null;
|
|
387
|
+
/**
|
|
388
|
+
* Site domain that's connected to the site, if relevant.
|
|
389
|
+
* @format HOSTNAME
|
|
390
|
+
*/
|
|
391
|
+
domain?: string | null;
|
|
392
|
+
/** Position where the custom embed code is placed on the page. */
|
|
393
|
+
position?: PositionOnPageWithLiterals;
|
|
394
|
+
/** Custom embed data. */
|
|
395
|
+
embedData?: V1CustomEmbed;
|
|
396
|
+
}
|
|
397
|
+
interface ListCustomEmbedsOptions {
|
|
398
|
+
/** Pagination options. */
|
|
399
|
+
paging?: CursorPaging;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
export { type ActionEvent as A, type BaseEventMetadata as B, type CustomEmbed as C, type DeleteCustomEmbedRequest as D, type EntityCreatedEvent as E, type GetCustomEmbedRequest as G, type IdentificationData as I, type ListCustomEmbedsOptions as L, type MessageEnvelope as M, PositionOnPage as P, type RestoreInfo as R, type UpdateCustomEmbed as U, type V1CustomEmbed as V, WebhookIdentityType as W, type ListCustomEmbedsResponse as a, type CustomEmbedCreatedEnvelope as b, type CustomEmbedDeletedEnvelope as c, type CustomEmbedUpdatedEnvelope as d, Category as e, type CreateCustomEmbedRequest as f, type CreateCustomEmbedResponse as g, type GetCustomEmbedResponse as h, type UpdateCustomEmbedRequest as i, type UpdateCustomEmbedResponse as j, type DeleteCustomEmbedResponse as k, type ListCustomEmbedsRequest as l, type CursorPaging as m, type CursorPagingMetadata as n, type Cursors as o, type DomainEvent as p, type DomainEventBodyOneOf as q, type EntityUpdatedEvent as r, type EntityDeletedEvent as s, type Empty as t, type IdentificationDataIdOneOf as u, type EventMetadata as v };
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
|
+
import { C as CustomEmbed, U as UpdateCustomEmbed, L as ListCustomEmbedsOptions, a as ListCustomEmbedsResponse, b as CustomEmbedCreatedEnvelope, c as CustomEmbedDeletedEnvelope, d as CustomEmbedUpdatedEnvelope } from './embeds-v1-custom-embed-custom-embeds.universal-mfBLr_Yo.js';
|
|
3
|
+
export { A as ActionEvent, B as BaseEventMetadata, e as Category, f as CreateCustomEmbedRequest, g as CreateCustomEmbedResponse, m as CursorPaging, n as CursorPagingMetadata, o as Cursors, D as DeleteCustomEmbedRequest, k as DeleteCustomEmbedResponse, p as DomainEvent, q as DomainEventBodyOneOf, t as Empty, E as EntityCreatedEvent, s as EntityDeletedEvent, r as EntityUpdatedEvent, v as EventMetadata, G as GetCustomEmbedRequest, h as GetCustomEmbedResponse, I as IdentificationData, u as IdentificationDataIdOneOf, l as ListCustomEmbedsRequest, M as MessageEnvelope, P as PositionOnPage, R as RestoreInfo, i as UpdateCustomEmbedRequest, j as UpdateCustomEmbedResponse, V as V1CustomEmbed, W as WebhookIdentityType } from './embeds-v1-custom-embed-custom-embeds.universal-mfBLr_Yo.js';
|
|
4
|
+
|
|
5
|
+
declare function createCustomEmbed$1(httpClient: HttpClient): CreateCustomEmbedSignature;
|
|
6
|
+
interface CreateCustomEmbedSignature {
|
|
7
|
+
/**
|
|
8
|
+
* Creates a custom embed within the specified position (`HEAD`, `BODY_START` or `BODY_END`).
|
|
9
|
+
*
|
|
10
|
+
* Required fields: `name`, `position`, `embedData` (including `category` and `html`).
|
|
11
|
+
* @param - Custom embed to create.
|
|
12
|
+
* @returns Created custom embed.
|
|
13
|
+
*/
|
|
14
|
+
(customEmbed: CustomEmbed): Promise<CustomEmbed>;
|
|
15
|
+
}
|
|
16
|
+
declare function getCustomEmbed$1(httpClient: HttpClient): GetCustomEmbedSignature;
|
|
17
|
+
interface GetCustomEmbedSignature {
|
|
18
|
+
/**
|
|
19
|
+
* Retrieves a custom embed.
|
|
20
|
+
* @param - Custom embed ID.
|
|
21
|
+
* @returns Requested custom embed.
|
|
22
|
+
*/
|
|
23
|
+
(customEmbedId: string): Promise<CustomEmbed>;
|
|
24
|
+
}
|
|
25
|
+
declare function updateCustomEmbed$1(httpClient: HttpClient): UpdateCustomEmbedSignature;
|
|
26
|
+
interface UpdateCustomEmbedSignature {
|
|
27
|
+
/**
|
|
28
|
+
* Updates a custom embed.
|
|
29
|
+
* To prevent conflicting changes, you must pass the current revision number.
|
|
30
|
+
* @param - Custom embed ID.
|
|
31
|
+
* @returns Updated custom embed.
|
|
32
|
+
*/
|
|
33
|
+
(_id: string, customEmbed: UpdateCustomEmbed): Promise<CustomEmbed>;
|
|
34
|
+
}
|
|
35
|
+
declare function deleteCustomEmbed$1(httpClient: HttpClient): DeleteCustomEmbedSignature;
|
|
36
|
+
interface DeleteCustomEmbedSignature {
|
|
37
|
+
/**
|
|
38
|
+
* Permanently deletes a custom embed.
|
|
39
|
+
* @param - Custom embed ID to delete.
|
|
40
|
+
*/
|
|
41
|
+
(customEmbedId: string): Promise<void>;
|
|
42
|
+
}
|
|
43
|
+
declare function listCustomEmbeds$1(httpClient: HttpClient): ListCustomEmbedsSignature;
|
|
44
|
+
interface ListCustomEmbedsSignature {
|
|
45
|
+
/**
|
|
46
|
+
* Retrieves a list of up to 100 custom embeds, sorted by position (`HEAD`, `BODY_START` or `BODY_END`).
|
|
47
|
+
*/
|
|
48
|
+
(options?: ListCustomEmbedsOptions | undefined): Promise<ListCustomEmbedsResponse>;
|
|
49
|
+
}
|
|
50
|
+
declare const onCustomEmbedCreated$1: EventDefinition<CustomEmbedCreatedEnvelope, "wix.embeds.v1.custom_embed_created">;
|
|
51
|
+
declare const onCustomEmbedDeleted$1: EventDefinition<CustomEmbedDeletedEnvelope, "wix.embeds.v1.custom_embed_deleted">;
|
|
52
|
+
declare const onCustomEmbedUpdated$1: EventDefinition<CustomEmbedUpdatedEnvelope, "wix.embeds.v1.custom_embed_updated">;
|
|
53
|
+
|
|
54
|
+
declare const createCustomEmbed: MaybeContext<BuildRESTFunction<typeof createCustomEmbed$1> & typeof createCustomEmbed$1>;
|
|
55
|
+
declare const getCustomEmbed: MaybeContext<BuildRESTFunction<typeof getCustomEmbed$1> & typeof getCustomEmbed$1>;
|
|
56
|
+
declare const updateCustomEmbed: MaybeContext<BuildRESTFunction<typeof updateCustomEmbed$1> & typeof updateCustomEmbed$1>;
|
|
57
|
+
declare const deleteCustomEmbed: MaybeContext<BuildRESTFunction<typeof deleteCustomEmbed$1> & typeof deleteCustomEmbed$1>;
|
|
58
|
+
declare const listCustomEmbeds: MaybeContext<BuildRESTFunction<typeof listCustomEmbeds$1> & typeof listCustomEmbeds$1>;
|
|
59
|
+
/**
|
|
60
|
+
* Triggered when a custom embed is created.
|
|
61
|
+
*/
|
|
62
|
+
declare const onCustomEmbedCreated: BuildEventDefinition<typeof onCustomEmbedCreated$1>;
|
|
63
|
+
/**
|
|
64
|
+
* Triggered when a custom embed is deleted.
|
|
65
|
+
*/
|
|
66
|
+
declare const onCustomEmbedDeleted: BuildEventDefinition<typeof onCustomEmbedDeleted$1>;
|
|
67
|
+
/**
|
|
68
|
+
* Triggered when a custom embed is updated.
|
|
69
|
+
*/
|
|
70
|
+
declare const onCustomEmbedUpdated: BuildEventDefinition<typeof onCustomEmbedUpdated$1>;
|
|
71
|
+
|
|
72
|
+
export { CustomEmbed, CustomEmbedCreatedEnvelope, CustomEmbedDeletedEnvelope, CustomEmbedUpdatedEnvelope, ListCustomEmbedsOptions, ListCustomEmbedsResponse, UpdateCustomEmbed, createCustomEmbed, deleteCustomEmbed, getCustomEmbed, listCustomEmbeds, onCustomEmbedCreated, onCustomEmbedDeleted, onCustomEmbedUpdated, updateCustomEmbed };
|