@wix/auto_sdk_portfolio_project-items 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/portfolio-project-items-v1-project-item-project-items.context.d.ts +2 -2
- package/build/cjs/src/portfolio-project-items-v1-project-item-project-items.context.js +2 -2
- package/build/cjs/src/portfolio-project-items-v1-project-item-project-items.context.js.map +1 -1
- package/build/cjs/src/portfolio-project-items-v1-project-item-project-items.types.d.ts +316 -161
- package/build/cjs/src/portfolio-project-items-v1-project-item-project-items.types.js +6 -6
- package/build/cjs/src/portfolio-project-items-v1-project-item-project-items.types.js.map +1 -1
- package/build/cjs/src/portfolio-project-items-v1-project-item-project-items.universal.d.ts +345 -165
- package/build/cjs/src/portfolio-project-items-v1-project-item-project-items.universal.js +6 -6
- package/build/cjs/src/portfolio-project-items-v1-project-item-project-items.universal.js.map +1 -1
- package/build/es/src/portfolio-project-items-v1-project-item-project-items.context.d.ts +2 -2
- package/build/es/src/portfolio-project-items-v1-project-item-project-items.context.js +1 -1
- package/build/es/src/portfolio-project-items-v1-project-item-project-items.context.js.map +1 -1
- package/build/es/src/portfolio-project-items-v1-project-item-project-items.types.d.ts +316 -161
- package/build/es/src/portfolio-project-items-v1-project-item-project-items.types.js +5 -5
- package/build/es/src/portfolio-project-items-v1-project-item-project-items.types.js.map +1 -1
- package/build/es/src/portfolio-project-items-v1-project-item-project-items.universal.d.ts +345 -165
- package/build/es/src/portfolio-project-items-v1-project-item-project-items.universal.js +5 -5
- package/build/es/src/portfolio-project-items-v1-project-item-project-items.universal.js.map +1 -1
- package/build/internal/cjs/src/portfolio-project-items-v1-project-item-project-items.context.d.ts +2 -2
- package/build/internal/cjs/src/portfolio-project-items-v1-project-item-project-items.context.js +2 -2
- package/build/internal/cjs/src/portfolio-project-items-v1-project-item-project-items.context.js.map +1 -1
- package/build/internal/cjs/src/portfolio-project-items-v1-project-item-project-items.types.d.ts +316 -161
- package/build/internal/cjs/src/portfolio-project-items-v1-project-item-project-items.types.js +6 -6
- package/build/internal/cjs/src/portfolio-project-items-v1-project-item-project-items.types.js.map +1 -1
- package/build/internal/cjs/src/portfolio-project-items-v1-project-item-project-items.universal.d.ts +345 -165
- package/build/internal/cjs/src/portfolio-project-items-v1-project-item-project-items.universal.js +6 -6
- package/build/internal/cjs/src/portfolio-project-items-v1-project-item-project-items.universal.js.map +1 -1
- package/build/internal/es/src/portfolio-project-items-v1-project-item-project-items.context.d.ts +2 -2
- package/build/internal/es/src/portfolio-project-items-v1-project-item-project-items.context.js +1 -1
- package/build/internal/es/src/portfolio-project-items-v1-project-item-project-items.context.js.map +1 -1
- package/build/internal/es/src/portfolio-project-items-v1-project-item-project-items.types.d.ts +316 -161
- package/build/internal/es/src/portfolio-project-items-v1-project-item-project-items.types.js +5 -5
- package/build/internal/es/src/portfolio-project-items-v1-project-item-project-items.types.js.map +1 -1
- package/build/internal/es/src/portfolio-project-items-v1-project-item-project-items.universal.d.ts +345 -165
- package/build/internal/es/src/portfolio-project-items-v1-project-item-project-items.universal.js +5 -5
- package/build/internal/es/src/portfolio-project-items-v1-project-item-project-items.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -3,11 +3,15 @@ export interface Item extends ItemMetadataOneOf {
|
|
|
3
3
|
image?: Image;
|
|
4
4
|
/** Information about the Wix Media video. */
|
|
5
5
|
video?: Video;
|
|
6
|
-
/**
|
|
6
|
+
/**
|
|
7
|
+
* Project ID.
|
|
8
|
+
* @format GUID
|
|
9
|
+
*/
|
|
7
10
|
projectId?: string | null;
|
|
8
11
|
/**
|
|
9
12
|
* Project item ID.
|
|
10
13
|
* @readonly
|
|
14
|
+
* @format GUID
|
|
11
15
|
*/
|
|
12
16
|
id?: string | null;
|
|
13
17
|
/**
|
|
@@ -93,6 +97,7 @@ export interface UnsharpMasking {
|
|
|
93
97
|
*
|
|
94
98
|
* Min: `0` <br />
|
|
95
99
|
* Max: `5`
|
|
100
|
+
* @max 5
|
|
96
101
|
*/
|
|
97
102
|
amount?: number | null;
|
|
98
103
|
/** Unsharp masking radius in pixels. Controls the sharpening width. */
|
|
@@ -102,6 +107,7 @@ export interface UnsharpMasking {
|
|
|
102
107
|
*
|
|
103
108
|
* Min: `0` <br />
|
|
104
109
|
* Max: `1`
|
|
110
|
+
* @max 1
|
|
105
111
|
*/
|
|
106
112
|
threshold?: number | null;
|
|
107
113
|
}
|
|
@@ -116,7 +122,10 @@ export interface VideoV2 {
|
|
|
116
122
|
id?: string;
|
|
117
123
|
/** Video URL. */
|
|
118
124
|
url?: string;
|
|
119
|
-
/**
|
|
125
|
+
/**
|
|
126
|
+
* Available resolutions for the video, starting with the optimal resolution.
|
|
127
|
+
* @maxSize 100
|
|
128
|
+
*/
|
|
120
129
|
resolutions?: VideoResolution[];
|
|
121
130
|
/** Video filename. */
|
|
122
131
|
filename?: string | null;
|
|
@@ -138,151 +147,39 @@ export interface VideoResolution {
|
|
|
138
147
|
filename?: string | null;
|
|
139
148
|
}
|
|
140
149
|
export interface Tags {
|
|
141
|
-
/**
|
|
150
|
+
/**
|
|
151
|
+
* List of tags assigned to the media item.
|
|
152
|
+
* @maxSize 50
|
|
153
|
+
* @maxLength 100
|
|
154
|
+
*/
|
|
142
155
|
values?: string[];
|
|
143
156
|
}
|
|
144
157
|
export interface Link {
|
|
145
158
|
/** Display text of the link. */
|
|
146
159
|
text?: string | null;
|
|
147
|
-
/**
|
|
160
|
+
/**
|
|
161
|
+
* Target URL of the link.
|
|
162
|
+
* @format WEB_URL
|
|
163
|
+
*/
|
|
148
164
|
url?: string | null;
|
|
149
165
|
/**
|
|
150
166
|
* Whether the link opens in a new tab or window. One of:
|
|
151
167
|
* * `'_blank'`: The link opens in a new tab or window.
|
|
152
168
|
* * `'_self'`: The link opens in the same tab or window.
|
|
169
|
+
* @maxLength 50
|
|
153
170
|
*/
|
|
154
171
|
target?: string | null;
|
|
155
172
|
}
|
|
156
|
-
export interface
|
|
157
|
-
/** Media ids of requested project items */
|
|
158
|
-
mediaIds?: string[];
|
|
159
|
-
}
|
|
160
|
-
export interface GenerateTokenForProjectItemsResponse {
|
|
161
|
-
/** Generated media tokens for project items */
|
|
162
|
-
mediaTokens?: ProjectItemMediaToken[];
|
|
163
|
-
}
|
|
164
|
-
export interface ProjectItemMediaToken {
|
|
165
|
-
/** Media id of project item */
|
|
166
|
-
mediaId?: string;
|
|
167
|
-
/** Generated media token for project item */
|
|
168
|
-
mediaToken?: string;
|
|
169
|
-
}
|
|
170
|
-
export interface DomainEvent extends DomainEventBodyOneOf {
|
|
171
|
-
createdEvent?: EntityCreatedEvent;
|
|
172
|
-
updatedEvent?: EntityUpdatedEvent;
|
|
173
|
-
deletedEvent?: EntityDeletedEvent;
|
|
174
|
-
actionEvent?: ActionEvent;
|
|
175
|
-
/**
|
|
176
|
-
* Unique event ID.
|
|
177
|
-
* Allows clients to ignore duplicate webhooks.
|
|
178
|
-
*/
|
|
179
|
-
id?: string;
|
|
180
|
-
/**
|
|
181
|
-
* Assumes actions are also always typed to an entity_type
|
|
182
|
-
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
183
|
-
*/
|
|
184
|
-
entityFqdn?: string;
|
|
185
|
-
/**
|
|
186
|
-
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
187
|
-
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
188
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
189
|
-
*/
|
|
190
|
-
slug?: string;
|
|
191
|
-
/** ID of the entity associated with the event. */
|
|
192
|
-
entityId?: string;
|
|
193
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
194
|
-
eventTime?: Date | null;
|
|
195
|
-
/**
|
|
196
|
-
* Whether the event was triggered as a result of a privacy regulation application
|
|
197
|
-
* (for example, GDPR).
|
|
198
|
-
*/
|
|
199
|
-
triggeredByAnonymizeRequest?: boolean | null;
|
|
200
|
-
/** If present, indicates the action that triggered the event. */
|
|
201
|
-
originatedFrom?: string | null;
|
|
173
|
+
export interface InvalidateCache extends InvalidateCacheGetByOneOf {
|
|
202
174
|
/**
|
|
203
|
-
*
|
|
204
|
-
*
|
|
205
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
206
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
207
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
208
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
175
|
+
* Invalidate by msId. NOT recommended, as this will invalidate the entire site cache!
|
|
176
|
+
* @format GUID
|
|
209
177
|
*/
|
|
210
|
-
|
|
211
|
-
}
|
|
212
|
-
/** @oneof */
|
|
213
|
-
export interface DomainEventBodyOneOf {
|
|
214
|
-
createdEvent?: EntityCreatedEvent;
|
|
215
|
-
updatedEvent?: EntityUpdatedEvent;
|
|
216
|
-
deletedEvent?: EntityDeletedEvent;
|
|
217
|
-
actionEvent?: ActionEvent;
|
|
218
|
-
}
|
|
219
|
-
export interface EntityCreatedEvent {
|
|
220
|
-
entityAsJson?: string;
|
|
221
|
-
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
222
|
-
restoreInfo?: RestoreInfo;
|
|
223
|
-
}
|
|
224
|
-
export interface RestoreInfo {
|
|
225
|
-
deletedDate?: Date | null;
|
|
226
|
-
}
|
|
227
|
-
export interface EntityUpdatedEvent {
|
|
178
|
+
metaSiteId?: string;
|
|
228
179
|
/**
|
|
229
|
-
*
|
|
230
|
-
*
|
|
231
|
-
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
180
|
+
* Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache!
|
|
181
|
+
* @format GUID
|
|
232
182
|
*/
|
|
233
|
-
currentEntityAsJson?: string;
|
|
234
|
-
}
|
|
235
|
-
export interface EntityDeletedEvent {
|
|
236
|
-
/** Entity that was deleted */
|
|
237
|
-
deletedEntityAsJson?: string | null;
|
|
238
|
-
}
|
|
239
|
-
export interface ActionEvent {
|
|
240
|
-
bodyAsJson?: string;
|
|
241
|
-
}
|
|
242
|
-
export interface MessageEnvelope {
|
|
243
|
-
/** App instance ID. */
|
|
244
|
-
instanceId?: string | null;
|
|
245
|
-
/** Event type. */
|
|
246
|
-
eventType?: string;
|
|
247
|
-
/** The identification type and identity data. */
|
|
248
|
-
identity?: IdentificationData;
|
|
249
|
-
/** Stringify payload. */
|
|
250
|
-
data?: string;
|
|
251
|
-
}
|
|
252
|
-
export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
253
|
-
/** ID of a site visitor that has not logged in to the site. */
|
|
254
|
-
anonymousVisitorId?: string;
|
|
255
|
-
/** ID of a site visitor that has logged in to the site. */
|
|
256
|
-
memberId?: string;
|
|
257
|
-
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
258
|
-
wixUserId?: string;
|
|
259
|
-
/** ID of an app. */
|
|
260
|
-
appId?: string;
|
|
261
|
-
/** @readonly */
|
|
262
|
-
identityType?: WebhookIdentityType;
|
|
263
|
-
}
|
|
264
|
-
/** @oneof */
|
|
265
|
-
export interface IdentificationDataIdOneOf {
|
|
266
|
-
/** ID of a site visitor that has not logged in to the site. */
|
|
267
|
-
anonymousVisitorId?: string;
|
|
268
|
-
/** ID of a site visitor that has logged in to the site. */
|
|
269
|
-
memberId?: string;
|
|
270
|
-
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
271
|
-
wixUserId?: string;
|
|
272
|
-
/** ID of an app. */
|
|
273
|
-
appId?: string;
|
|
274
|
-
}
|
|
275
|
-
export declare enum WebhookIdentityType {
|
|
276
|
-
UNKNOWN = "UNKNOWN",
|
|
277
|
-
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
278
|
-
MEMBER = "MEMBER",
|
|
279
|
-
WIX_USER = "WIX_USER",
|
|
280
|
-
APP = "APP"
|
|
281
|
-
}
|
|
282
|
-
export interface InvalidateCache extends InvalidateCacheGetByOneOf {
|
|
283
|
-
/** Invalidate by msId. NOT recommended, as this will invalidate the entire site cache! */
|
|
284
|
-
metaSiteId?: string;
|
|
285
|
-
/** Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache! */
|
|
286
183
|
siteId?: string;
|
|
287
184
|
/** Invalidate by App */
|
|
288
185
|
app?: App;
|
|
@@ -292,7 +189,10 @@ export interface InvalidateCache extends InvalidateCacheGetByOneOf {
|
|
|
292
189
|
uri?: URI;
|
|
293
190
|
/** Invalidate by file (for media files such as PDFs) */
|
|
294
191
|
file?: File;
|
|
295
|
-
/**
|
|
192
|
+
/**
|
|
193
|
+
* tell us why you're invalidating the cache. You don't need to add your app name
|
|
194
|
+
* @maxLength 256
|
|
195
|
+
*/
|
|
296
196
|
reason?: string | null;
|
|
297
197
|
/** Is local DS */
|
|
298
198
|
localDc?: boolean;
|
|
@@ -300,9 +200,15 @@ export interface InvalidateCache extends InvalidateCacheGetByOneOf {
|
|
|
300
200
|
}
|
|
301
201
|
/** @oneof */
|
|
302
202
|
export interface InvalidateCacheGetByOneOf {
|
|
303
|
-
/**
|
|
203
|
+
/**
|
|
204
|
+
* Invalidate by msId. NOT recommended, as this will invalidate the entire site cache!
|
|
205
|
+
* @format GUID
|
|
206
|
+
*/
|
|
304
207
|
metaSiteId?: string;
|
|
305
|
-
/**
|
|
208
|
+
/**
|
|
209
|
+
* Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache!
|
|
210
|
+
* @format GUID
|
|
211
|
+
*/
|
|
306
212
|
siteId?: string;
|
|
307
213
|
/** Invalidate by App */
|
|
308
214
|
app?: App;
|
|
@@ -314,27 +220,52 @@ export interface InvalidateCacheGetByOneOf {
|
|
|
314
220
|
file?: File;
|
|
315
221
|
}
|
|
316
222
|
export interface App {
|
|
317
|
-
/**
|
|
223
|
+
/**
|
|
224
|
+
* The AppDefId
|
|
225
|
+
* @minLength 1
|
|
226
|
+
*/
|
|
318
227
|
appDefId?: string;
|
|
319
|
-
/**
|
|
228
|
+
/**
|
|
229
|
+
* The instance Id
|
|
230
|
+
* @format GUID
|
|
231
|
+
*/
|
|
320
232
|
instanceId?: string;
|
|
321
233
|
}
|
|
322
234
|
export interface Page {
|
|
323
|
-
/**
|
|
235
|
+
/**
|
|
236
|
+
* the msid the page is on
|
|
237
|
+
* @format GUID
|
|
238
|
+
*/
|
|
324
239
|
metaSiteId?: string;
|
|
325
|
-
/**
|
|
240
|
+
/**
|
|
241
|
+
* Invalidate by Page ID
|
|
242
|
+
* @minLength 1
|
|
243
|
+
*/
|
|
326
244
|
pageId?: string;
|
|
327
245
|
}
|
|
328
246
|
export interface URI {
|
|
329
|
-
/**
|
|
247
|
+
/**
|
|
248
|
+
* the msid the URI is on
|
|
249
|
+
* @format GUID
|
|
250
|
+
*/
|
|
330
251
|
metaSiteId?: string;
|
|
331
|
-
/**
|
|
252
|
+
/**
|
|
253
|
+
* URI path to invalidate (e.g. page/my/path) - without leading/trailing slashes
|
|
254
|
+
* @minLength 1
|
|
255
|
+
*/
|
|
332
256
|
uriPath?: string;
|
|
333
257
|
}
|
|
334
258
|
export interface File {
|
|
335
|
-
/**
|
|
259
|
+
/**
|
|
260
|
+
* the msid the file is related to
|
|
261
|
+
* @format GUID
|
|
262
|
+
*/
|
|
336
263
|
metaSiteId?: string;
|
|
337
|
-
/**
|
|
264
|
+
/**
|
|
265
|
+
* Invalidate by filename (for media files such as PDFs)
|
|
266
|
+
* @minLength 1
|
|
267
|
+
* @maxLength 256
|
|
268
|
+
*/
|
|
338
269
|
fileName?: string;
|
|
339
270
|
}
|
|
340
271
|
export interface CreateProjectItemRequest {
|
|
@@ -346,7 +277,11 @@ export interface CreateProjectItemResponse {
|
|
|
346
277
|
item?: Item;
|
|
347
278
|
}
|
|
348
279
|
export interface BulkCreateProjectItemsRequest {
|
|
349
|
-
/**
|
|
280
|
+
/**
|
|
281
|
+
* Project items to create.
|
|
282
|
+
* @minSize 1
|
|
283
|
+
* @maxSize 1000
|
|
284
|
+
*/
|
|
350
285
|
items: Item[];
|
|
351
286
|
/** Whether to include the created project items in the response. Set to `true` to receive the project items in the response. Default: `false` */
|
|
352
287
|
returnFullEntity?: boolean | null;
|
|
@@ -390,7 +325,10 @@ export interface BulkActionMetadata {
|
|
|
390
325
|
undetailedFailures?: number;
|
|
391
326
|
}
|
|
392
327
|
export interface GetProjectItemRequest {
|
|
393
|
-
/**
|
|
328
|
+
/**
|
|
329
|
+
* Project item ID.
|
|
330
|
+
* @format GUID
|
|
331
|
+
*/
|
|
394
332
|
itemId: string;
|
|
395
333
|
}
|
|
396
334
|
export interface GetProjectItemResponse {
|
|
@@ -398,7 +336,10 @@ export interface GetProjectItemResponse {
|
|
|
398
336
|
item?: Item;
|
|
399
337
|
}
|
|
400
338
|
export interface ListProjectItemsRequest {
|
|
401
|
-
/**
|
|
339
|
+
/**
|
|
340
|
+
* Project ID.
|
|
341
|
+
* @format GUID
|
|
342
|
+
*/
|
|
402
343
|
projectId: string;
|
|
403
344
|
/** Maximum number of items to return in the results. */
|
|
404
345
|
paging?: Paging;
|
|
@@ -433,9 +374,15 @@ export interface PagingMetadataV2 {
|
|
|
433
374
|
cursors?: Cursors;
|
|
434
375
|
}
|
|
435
376
|
export interface Cursors {
|
|
436
|
-
/**
|
|
377
|
+
/**
|
|
378
|
+
* Cursor string pointing to the next page in the list of results.
|
|
379
|
+
* @maxLength 16000
|
|
380
|
+
*/
|
|
437
381
|
next?: string | null;
|
|
438
|
-
/**
|
|
382
|
+
/**
|
|
383
|
+
* Cursor pointing to the previous page in the list of results.
|
|
384
|
+
* @maxLength 16000
|
|
385
|
+
*/
|
|
439
386
|
prev?: string | null;
|
|
440
387
|
}
|
|
441
388
|
export interface QueryProjectItemsRequest {
|
|
@@ -472,7 +419,10 @@ export interface QueryV2PagingMethodOneOf {
|
|
|
472
419
|
cursorPaging?: CursorPaging;
|
|
473
420
|
}
|
|
474
421
|
export interface Sorting {
|
|
475
|
-
/**
|
|
422
|
+
/**
|
|
423
|
+
* Name of the field to sort by.
|
|
424
|
+
* @maxLength 512
|
|
425
|
+
*/
|
|
476
426
|
fieldName?: string;
|
|
477
427
|
/** Sort order. */
|
|
478
428
|
order?: SortOrder;
|
|
@@ -482,13 +432,17 @@ export declare enum SortOrder {
|
|
|
482
432
|
DESC = "DESC"
|
|
483
433
|
}
|
|
484
434
|
export interface CursorPaging {
|
|
485
|
-
/**
|
|
435
|
+
/**
|
|
436
|
+
* Maximum number of items to return in the results.
|
|
437
|
+
* @max 100
|
|
438
|
+
*/
|
|
486
439
|
limit?: number | null;
|
|
487
440
|
/**
|
|
488
441
|
* Pointer to the next or previous page in the list of results.
|
|
489
442
|
*
|
|
490
443
|
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
491
444
|
* Not relevant for the first request.
|
|
445
|
+
* @maxLength 16000
|
|
492
446
|
*/
|
|
493
447
|
cursor?: string | null;
|
|
494
448
|
}
|
|
@@ -507,7 +461,10 @@ export interface UpdateProjectItemResponse {
|
|
|
507
461
|
item?: Item;
|
|
508
462
|
}
|
|
509
463
|
export interface BulkUpdateProjectItemsRequest {
|
|
510
|
-
/**
|
|
464
|
+
/**
|
|
465
|
+
* items to be updated.
|
|
466
|
+
* @maxSize 100
|
|
467
|
+
*/
|
|
511
468
|
items?: MaskedItem[];
|
|
512
469
|
/** Whether to include the updated project items in the response. Set to `true` to receive the project items in the response. Default: `false` */
|
|
513
470
|
returnFullEntity?: boolean | null;
|
|
@@ -529,17 +486,31 @@ export interface BulkUpdateProjectItemResult {
|
|
|
529
486
|
item?: Item;
|
|
530
487
|
}
|
|
531
488
|
export interface DeleteProjectItemRequest {
|
|
532
|
-
/**
|
|
489
|
+
/**
|
|
490
|
+
* ID of the project item to delete.
|
|
491
|
+
* @format GUID
|
|
492
|
+
*/
|
|
533
493
|
itemId: string;
|
|
534
494
|
}
|
|
535
495
|
export interface DeleteProjectItemResponse {
|
|
536
|
-
/**
|
|
496
|
+
/**
|
|
497
|
+
* Project ID.
|
|
498
|
+
* @format GUID
|
|
499
|
+
*/
|
|
537
500
|
projectId?: string;
|
|
538
|
-
/**
|
|
501
|
+
/**
|
|
502
|
+
* ID of the deleted project item.
|
|
503
|
+
* @format GUID
|
|
504
|
+
*/
|
|
539
505
|
itemId?: string;
|
|
540
506
|
}
|
|
541
507
|
export interface BulkDeleteProjectItemsRequest {
|
|
542
|
-
/**
|
|
508
|
+
/**
|
|
509
|
+
* Project item IDs.
|
|
510
|
+
* @format GUID
|
|
511
|
+
* @minSize 1
|
|
512
|
+
* @maxLength 100
|
|
513
|
+
*/
|
|
543
514
|
itemIds: string[];
|
|
544
515
|
}
|
|
545
516
|
export interface BulkDeleteProjectItemsResponse {
|
|
@@ -551,39 +522,223 @@ export interface BulkDeleteProjectItemsResponse {
|
|
|
551
522
|
export interface BulkDeleteProjectItemResult {
|
|
552
523
|
/** Information about successful action or error for failure. */
|
|
553
524
|
itemMetadata?: ItemMetadata;
|
|
554
|
-
/**
|
|
525
|
+
/**
|
|
526
|
+
* Project item ID.
|
|
527
|
+
* @format GUID
|
|
528
|
+
*/
|
|
555
529
|
itemId?: string;
|
|
556
530
|
}
|
|
557
531
|
export interface CreateProjectGalleryRequest {
|
|
558
|
-
/**
|
|
532
|
+
/**
|
|
533
|
+
* Id of Project to create
|
|
534
|
+
* @format GUID
|
|
535
|
+
*/
|
|
559
536
|
projectId?: string;
|
|
560
537
|
}
|
|
561
538
|
export interface CreateProjectGalleryResponse {
|
|
562
|
-
/**
|
|
539
|
+
/**
|
|
540
|
+
* Id of created Project
|
|
541
|
+
* @format GUID
|
|
542
|
+
*/
|
|
563
543
|
projectId?: string;
|
|
564
|
-
/**
|
|
544
|
+
/**
|
|
545
|
+
* Id of created gallery
|
|
546
|
+
* @format GUID
|
|
547
|
+
*/
|
|
565
548
|
galleryId?: string;
|
|
566
549
|
}
|
|
550
|
+
export interface DomainEvent extends DomainEventBodyOneOf {
|
|
551
|
+
createdEvent?: EntityCreatedEvent;
|
|
552
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
553
|
+
deletedEvent?: EntityDeletedEvent;
|
|
554
|
+
actionEvent?: ActionEvent;
|
|
555
|
+
/**
|
|
556
|
+
* Unique event ID.
|
|
557
|
+
* Allows clients to ignore duplicate webhooks.
|
|
558
|
+
*/
|
|
559
|
+
id?: string;
|
|
560
|
+
/**
|
|
561
|
+
* Assumes actions are also always typed to an entity_type
|
|
562
|
+
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
563
|
+
*/
|
|
564
|
+
entityFqdn?: string;
|
|
565
|
+
/**
|
|
566
|
+
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
567
|
+
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
568
|
+
* Example: created/updated/deleted/started/completed/email_opened
|
|
569
|
+
*/
|
|
570
|
+
slug?: string;
|
|
571
|
+
/** ID of the entity associated with the event. */
|
|
572
|
+
entityId?: string;
|
|
573
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
574
|
+
eventTime?: Date | null;
|
|
575
|
+
/**
|
|
576
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
577
|
+
* (for example, GDPR).
|
|
578
|
+
*/
|
|
579
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
580
|
+
/** If present, indicates the action that triggered the event. */
|
|
581
|
+
originatedFrom?: string | null;
|
|
582
|
+
/**
|
|
583
|
+
* A sequence number defining the order of updates to the underlying entity.
|
|
584
|
+
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
585
|
+
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
586
|
+
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
587
|
+
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
588
|
+
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
589
|
+
*/
|
|
590
|
+
entityEventSequence?: string | null;
|
|
591
|
+
}
|
|
592
|
+
/** @oneof */
|
|
593
|
+
export interface DomainEventBodyOneOf {
|
|
594
|
+
createdEvent?: EntityCreatedEvent;
|
|
595
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
596
|
+
deletedEvent?: EntityDeletedEvent;
|
|
597
|
+
actionEvent?: ActionEvent;
|
|
598
|
+
}
|
|
599
|
+
export interface EntityCreatedEvent {
|
|
600
|
+
entityAsJson?: string;
|
|
601
|
+
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
602
|
+
restoreInfo?: RestoreInfo;
|
|
603
|
+
}
|
|
604
|
+
export interface RestoreInfo {
|
|
605
|
+
deletedDate?: Date | null;
|
|
606
|
+
}
|
|
607
|
+
export interface EntityUpdatedEvent {
|
|
608
|
+
/**
|
|
609
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
610
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
611
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
612
|
+
*/
|
|
613
|
+
currentEntityAsJson?: string;
|
|
614
|
+
}
|
|
615
|
+
export interface EntityDeletedEvent {
|
|
616
|
+
/** Entity that was deleted */
|
|
617
|
+
deletedEntityAsJson?: string | null;
|
|
618
|
+
}
|
|
619
|
+
export interface ActionEvent {
|
|
620
|
+
bodyAsJson?: string;
|
|
621
|
+
}
|
|
567
622
|
export interface Empty {
|
|
568
623
|
}
|
|
569
624
|
export interface DeletedProjectRestored {
|
|
570
|
-
/**
|
|
625
|
+
/**
|
|
626
|
+
* the id of the project that was restored
|
|
627
|
+
* @format GUID
|
|
628
|
+
*/
|
|
571
629
|
projectId?: string;
|
|
572
630
|
/** timestamp for when the project was originally deleted. */
|
|
573
631
|
deletionTimestamp?: Date | null;
|
|
574
632
|
}
|
|
575
633
|
export interface DuplicateProjectItemsRequest {
|
|
576
|
-
/**
|
|
634
|
+
/**
|
|
635
|
+
* ID of the project containing the items to duplicate.
|
|
636
|
+
* @format GUID
|
|
637
|
+
*/
|
|
577
638
|
originProjectId: string;
|
|
578
|
-
/**
|
|
639
|
+
/**
|
|
640
|
+
* ID of the project where the duplicated items will be added.
|
|
641
|
+
* @format GUID
|
|
642
|
+
*/
|
|
579
643
|
targetProjectId: string;
|
|
580
644
|
}
|
|
581
645
|
export interface DuplicateProjectItemsResponse {
|
|
582
|
-
/**
|
|
646
|
+
/**
|
|
647
|
+
* Project ID where the duplicated items have been added.
|
|
648
|
+
* @format GUID
|
|
649
|
+
*/
|
|
583
650
|
projectId?: string;
|
|
584
651
|
/** Bulk action metadata. */
|
|
585
652
|
bulkActionMetadata?: BulkActionMetadata;
|
|
586
653
|
}
|
|
654
|
+
export interface MessageEnvelope {
|
|
655
|
+
/**
|
|
656
|
+
* App instance ID.
|
|
657
|
+
* @format GUID
|
|
658
|
+
*/
|
|
659
|
+
instanceId?: string | null;
|
|
660
|
+
/**
|
|
661
|
+
* Event type.
|
|
662
|
+
* @maxLength 150
|
|
663
|
+
*/
|
|
664
|
+
eventType?: string;
|
|
665
|
+
/** The identification type and identity data. */
|
|
666
|
+
identity?: IdentificationData;
|
|
667
|
+
/** Stringify payload. */
|
|
668
|
+
data?: string;
|
|
669
|
+
}
|
|
670
|
+
export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
671
|
+
/**
|
|
672
|
+
* ID of a site visitor that has not logged in to the site.
|
|
673
|
+
* @format GUID
|
|
674
|
+
*/
|
|
675
|
+
anonymousVisitorId?: string;
|
|
676
|
+
/**
|
|
677
|
+
* ID of a site visitor that has logged in to the site.
|
|
678
|
+
* @format GUID
|
|
679
|
+
*/
|
|
680
|
+
memberId?: string;
|
|
681
|
+
/**
|
|
682
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
683
|
+
* @format GUID
|
|
684
|
+
*/
|
|
685
|
+
wixUserId?: string;
|
|
686
|
+
/**
|
|
687
|
+
* ID of an app.
|
|
688
|
+
* @format GUID
|
|
689
|
+
*/
|
|
690
|
+
appId?: string;
|
|
691
|
+
/** @readonly */
|
|
692
|
+
identityType?: WebhookIdentityType;
|
|
693
|
+
}
|
|
694
|
+
/** @oneof */
|
|
695
|
+
export interface IdentificationDataIdOneOf {
|
|
696
|
+
/**
|
|
697
|
+
* ID of a site visitor that has not logged in to the site.
|
|
698
|
+
* @format GUID
|
|
699
|
+
*/
|
|
700
|
+
anonymousVisitorId?: string;
|
|
701
|
+
/**
|
|
702
|
+
* ID of a site visitor that has logged in to the site.
|
|
703
|
+
* @format GUID
|
|
704
|
+
*/
|
|
705
|
+
memberId?: string;
|
|
706
|
+
/**
|
|
707
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
708
|
+
* @format GUID
|
|
709
|
+
*/
|
|
710
|
+
wixUserId?: string;
|
|
711
|
+
/**
|
|
712
|
+
* ID of an app.
|
|
713
|
+
* @format GUID
|
|
714
|
+
*/
|
|
715
|
+
appId?: string;
|
|
716
|
+
}
|
|
717
|
+
export declare enum WebhookIdentityType {
|
|
718
|
+
UNKNOWN = "UNKNOWN",
|
|
719
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
720
|
+
MEMBER = "MEMBER",
|
|
721
|
+
WIX_USER = "WIX_USER",
|
|
722
|
+
APP = "APP"
|
|
723
|
+
}
|
|
724
|
+
export interface GenerateTokenForProjectItemsRequest {
|
|
725
|
+
/**
|
|
726
|
+
* Media ids of requested project items
|
|
727
|
+
* @minSize 1
|
|
728
|
+
* @maxLength 100
|
|
729
|
+
*/
|
|
730
|
+
mediaIds?: string[];
|
|
731
|
+
}
|
|
732
|
+
export interface GenerateTokenForProjectItemsResponse {
|
|
733
|
+
/** Generated media tokens for project items */
|
|
734
|
+
mediaTokens?: ProjectItemMediaToken[];
|
|
735
|
+
}
|
|
736
|
+
export interface ProjectItemMediaToken {
|
|
737
|
+
/** Media id of project item */
|
|
738
|
+
mediaId?: string;
|
|
739
|
+
/** Generated media token for project item */
|
|
740
|
+
mediaToken?: string;
|
|
741
|
+
}
|
|
587
742
|
interface CommonImageNonNullableFields {
|
|
588
743
|
id: string;
|
|
589
744
|
url: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.WebhookIdentityType = exports.SortOrder = exports.ImageType = exports.Type = void 0;
|
|
4
4
|
var Type;
|
|
5
5
|
(function (Type) {
|
|
6
6
|
/** Undefined item type. */
|
|
@@ -16,6 +16,11 @@ var ImageType;
|
|
|
16
16
|
ImageType["WIX_MEDIA"] = "WIX_MEDIA";
|
|
17
17
|
ImageType["EXTERNAL"] = "EXTERNAL";
|
|
18
18
|
})(ImageType || (exports.ImageType = ImageType = {}));
|
|
19
|
+
var SortOrder;
|
|
20
|
+
(function (SortOrder) {
|
|
21
|
+
SortOrder["ASC"] = "ASC";
|
|
22
|
+
SortOrder["DESC"] = "DESC";
|
|
23
|
+
})(SortOrder || (exports.SortOrder = SortOrder = {}));
|
|
19
24
|
var WebhookIdentityType;
|
|
20
25
|
(function (WebhookIdentityType) {
|
|
21
26
|
WebhookIdentityType["UNKNOWN"] = "UNKNOWN";
|
|
@@ -24,9 +29,4 @@ var WebhookIdentityType;
|
|
|
24
29
|
WebhookIdentityType["WIX_USER"] = "WIX_USER";
|
|
25
30
|
WebhookIdentityType["APP"] = "APP";
|
|
26
31
|
})(WebhookIdentityType || (exports.WebhookIdentityType = WebhookIdentityType = {}));
|
|
27
|
-
var SortOrder;
|
|
28
|
-
(function (SortOrder) {
|
|
29
|
-
SortOrder["ASC"] = "ASC";
|
|
30
|
-
SortOrder["DESC"] = "DESC";
|
|
31
|
-
})(SortOrder || (exports.SortOrder = SortOrder = {}));
|
|
32
32
|
//# sourceMappingURL=portfolio-project-items-v1-project-item-project-items.types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"portfolio-project-items-v1-project-item-project-items.types.js","sourceRoot":"","sources":["../../../src/portfolio-project-items-v1-project-item-project-items.types.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"portfolio-project-items-v1-project-item-project-items.types.js","sourceRoot":"","sources":["../../../src/portfolio-project-items-v1-project-item-project-items.types.ts"],"names":[],"mappings":";;;AAqDA,IAAY,IAOX;AAPD,WAAY,IAAI;IACd,2BAA2B;IAC3B,+BAAuB,CAAA;IACvB,uBAAuB;IACvB,uBAAe,CAAA;IACf,uBAAuB;IACvB,uBAAe,CAAA;AACjB,CAAC,EAPW,IAAI,oBAAJ,IAAI,QAOf;AASD,IAAY,SAIX;AAJD,WAAY,SAAS;IACnB,oCAAuB,CAAA;IACvB,oCAAuB,CAAA;IACvB,kCAAqB,CAAA;AACvB,CAAC,EAJW,SAAS,yBAAT,SAAS,QAIpB;AA0YD,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,yBAAT,SAAS,QAGpB;AAyTD,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,mCAAnB,mBAAmB,QAM9B"}
|