@wix/auto_sdk_portfolio_project-items 1.0.23 → 1.0.25
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 +6 -0
- package/build/cjs/index.js +30 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +59 -20
- package/build/cjs/index.typings.js +30 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +423 -17
- package/build/cjs/meta.js +65 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +6 -0
- package/build/es/index.mjs +30 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +59 -20
- package/build/es/index.typings.mjs +30 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +423 -17
- package/build/es/meta.mjs +61 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +6 -0
- package/build/internal/cjs/index.js +30 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +59 -20
- package/build/internal/cjs/index.typings.js +30 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +423 -17
- package/build/internal/cjs/meta.js +65 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +6 -0
- package/build/internal/es/index.mjs +30 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +59 -20
- package/build/internal/es/index.typings.mjs +30 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +423 -17
- package/build/internal/es/meta.mjs +61 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +3 -3
package/build/es/meta.d.mts
CHANGED
|
@@ -68,6 +68,13 @@ interface Image {
|
|
|
68
68
|
/** Focal point of the image. */
|
|
69
69
|
focalPoint?: Point;
|
|
70
70
|
}
|
|
71
|
+
declare enum ImageType {
|
|
72
|
+
UNDEFINED = "UNDEFINED",
|
|
73
|
+
WIX_MEDIA = "WIX_MEDIA",
|
|
74
|
+
EXTERNAL = "EXTERNAL"
|
|
75
|
+
}
|
|
76
|
+
/** @enumType */
|
|
77
|
+
type ImageTypeWithLiterals = ImageType | 'UNDEFINED' | 'WIX_MEDIA' | 'EXTERNAL';
|
|
71
78
|
interface CommonImage {
|
|
72
79
|
/**
|
|
73
80
|
* WixMedia image ID. Required.
|
|
@@ -101,6 +108,26 @@ interface Point {
|
|
|
101
108
|
/** Y-coordinate of the focal point. */
|
|
102
109
|
y?: number;
|
|
103
110
|
}
|
|
111
|
+
interface UnsharpMasking {
|
|
112
|
+
/**
|
|
113
|
+
* Unsharp masking amount. Controls the sharpening strength. <br />
|
|
114
|
+
*
|
|
115
|
+
* Min: `0` <br />
|
|
116
|
+
* Max: `5`
|
|
117
|
+
* @max 5
|
|
118
|
+
*/
|
|
119
|
+
amount?: number | null;
|
|
120
|
+
/** Unsharp masking radius in pixels. Controls the sharpening width. */
|
|
121
|
+
radius?: number | null;
|
|
122
|
+
/**
|
|
123
|
+
* Unsharp masking threshold. Controls how different neighboring pixels must be for shapening to apply. <br />
|
|
124
|
+
*
|
|
125
|
+
* Min: `0` <br />
|
|
126
|
+
* Max: `1`
|
|
127
|
+
* @max 1
|
|
128
|
+
*/
|
|
129
|
+
threshold?: number | null;
|
|
130
|
+
}
|
|
104
131
|
interface Video {
|
|
105
132
|
/** Information about the Wix Media video. */
|
|
106
133
|
videoInfo?: VideoV2;
|
|
@@ -160,6 +187,14 @@ interface VideoResolution {
|
|
|
160
187
|
*/
|
|
161
188
|
filename?: string | null;
|
|
162
189
|
}
|
|
190
|
+
interface Tags {
|
|
191
|
+
/**
|
|
192
|
+
* List of tags assigned to the media item.
|
|
193
|
+
* @maxSize 50
|
|
194
|
+
* @maxLength 100
|
|
195
|
+
*/
|
|
196
|
+
values?: string[];
|
|
197
|
+
}
|
|
163
198
|
interface Link {
|
|
164
199
|
/** Display text of the link. */
|
|
165
200
|
text?: string | null;
|
|
@@ -176,6 +211,121 @@ interface Link {
|
|
|
176
211
|
*/
|
|
177
212
|
target?: string | null;
|
|
178
213
|
}
|
|
214
|
+
interface InvalidateCache extends InvalidateCacheGetByOneOf {
|
|
215
|
+
/**
|
|
216
|
+
* Invalidate by msId. NOT recommended, as this will invalidate the entire site cache!
|
|
217
|
+
* @format GUID
|
|
218
|
+
*/
|
|
219
|
+
metaSiteId?: string;
|
|
220
|
+
/**
|
|
221
|
+
* Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache!
|
|
222
|
+
* @format GUID
|
|
223
|
+
*/
|
|
224
|
+
siteId?: string;
|
|
225
|
+
/** Invalidate by App */
|
|
226
|
+
app?: App;
|
|
227
|
+
/** Invalidate by page id */
|
|
228
|
+
page?: Page;
|
|
229
|
+
/** Invalidate by URI path */
|
|
230
|
+
uri?: URI;
|
|
231
|
+
/** Invalidate by file (for media files such as PDFs) */
|
|
232
|
+
file?: File;
|
|
233
|
+
/** Invalidate by custom tag. Tags used in BO invalidation are disabled for this endpoint (more info: https://wix-bo.com/dev/clear-ssr-cache) */
|
|
234
|
+
customTag?: CustomTag;
|
|
235
|
+
/**
|
|
236
|
+
* tell us why you're invalidating the cache. You don't need to add your app name
|
|
237
|
+
* @maxLength 256
|
|
238
|
+
*/
|
|
239
|
+
reason?: string | null;
|
|
240
|
+
/** Is local DS */
|
|
241
|
+
localDc?: boolean;
|
|
242
|
+
hardPurge?: boolean;
|
|
243
|
+
}
|
|
244
|
+
/** @oneof */
|
|
245
|
+
interface InvalidateCacheGetByOneOf {
|
|
246
|
+
/**
|
|
247
|
+
* Invalidate by msId. NOT recommended, as this will invalidate the entire site cache!
|
|
248
|
+
* @format GUID
|
|
249
|
+
*/
|
|
250
|
+
metaSiteId?: string;
|
|
251
|
+
/**
|
|
252
|
+
* Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache!
|
|
253
|
+
* @format GUID
|
|
254
|
+
*/
|
|
255
|
+
siteId?: string;
|
|
256
|
+
/** Invalidate by App */
|
|
257
|
+
app?: App;
|
|
258
|
+
/** Invalidate by page id */
|
|
259
|
+
page?: Page;
|
|
260
|
+
/** Invalidate by URI path */
|
|
261
|
+
uri?: URI;
|
|
262
|
+
/** Invalidate by file (for media files such as PDFs) */
|
|
263
|
+
file?: File;
|
|
264
|
+
/** Invalidate by custom tag. Tags used in BO invalidation are disabled for this endpoint (more info: https://wix-bo.com/dev/clear-ssr-cache) */
|
|
265
|
+
customTag?: CustomTag;
|
|
266
|
+
}
|
|
267
|
+
interface App {
|
|
268
|
+
/**
|
|
269
|
+
* The AppDefId
|
|
270
|
+
* @minLength 1
|
|
271
|
+
*/
|
|
272
|
+
appDefId?: string;
|
|
273
|
+
/**
|
|
274
|
+
* The instance Id
|
|
275
|
+
* @format GUID
|
|
276
|
+
*/
|
|
277
|
+
instanceId?: string;
|
|
278
|
+
}
|
|
279
|
+
interface Page {
|
|
280
|
+
/**
|
|
281
|
+
* the msid the page is on
|
|
282
|
+
* @format GUID
|
|
283
|
+
*/
|
|
284
|
+
metaSiteId?: string;
|
|
285
|
+
/**
|
|
286
|
+
* Invalidate by Page ID
|
|
287
|
+
* @minLength 1
|
|
288
|
+
*/
|
|
289
|
+
pageId?: string;
|
|
290
|
+
}
|
|
291
|
+
interface URI {
|
|
292
|
+
/**
|
|
293
|
+
* the msid the URI is on
|
|
294
|
+
* @format GUID
|
|
295
|
+
*/
|
|
296
|
+
metaSiteId?: string;
|
|
297
|
+
/**
|
|
298
|
+
* URI path to invalidate (e.g. page/my/path) - without leading/trailing slashes
|
|
299
|
+
* @minLength 1
|
|
300
|
+
*/
|
|
301
|
+
uriPath?: string;
|
|
302
|
+
}
|
|
303
|
+
interface File {
|
|
304
|
+
/**
|
|
305
|
+
* the msid the file is related to
|
|
306
|
+
* @format GUID
|
|
307
|
+
*/
|
|
308
|
+
metaSiteId?: string;
|
|
309
|
+
/**
|
|
310
|
+
* Invalidate by filename (for media files such as PDFs)
|
|
311
|
+
* @minLength 1
|
|
312
|
+
* @maxLength 256
|
|
313
|
+
*/
|
|
314
|
+
fileName?: string;
|
|
315
|
+
}
|
|
316
|
+
interface CustomTag {
|
|
317
|
+
/**
|
|
318
|
+
* the msid the tag is related to
|
|
319
|
+
* @format GUID
|
|
320
|
+
*/
|
|
321
|
+
metaSiteId?: string;
|
|
322
|
+
/**
|
|
323
|
+
* Tag to invalidate by
|
|
324
|
+
* @minLength 1
|
|
325
|
+
* @maxLength 256
|
|
326
|
+
*/
|
|
327
|
+
tag?: string;
|
|
328
|
+
}
|
|
179
329
|
interface CreateProjectItemRequest {
|
|
180
330
|
/** Project item to create. */
|
|
181
331
|
item: Item;
|
|
@@ -191,19 +341,28 @@ interface BulkCreateProjectItemsRequest {
|
|
|
191
341
|
* @maxSize 1000
|
|
192
342
|
*/
|
|
193
343
|
items: Item[];
|
|
194
|
-
/**
|
|
344
|
+
/**
|
|
345
|
+
* Whether to return the created project items.
|
|
346
|
+
*
|
|
347
|
+
* Set to `true` to return the project items in the response.
|
|
348
|
+
*
|
|
349
|
+
* Default: `false`
|
|
350
|
+
*/
|
|
195
351
|
returnFullEntity?: boolean | null;
|
|
196
352
|
}
|
|
197
353
|
interface BulkCreateProjectItemsResponse {
|
|
198
|
-
/**
|
|
354
|
+
/** List of individual Bulk Create Project Items results. */
|
|
199
355
|
results?: BulkCreateProjectItemResult[];
|
|
200
|
-
/** Bulk
|
|
356
|
+
/** Total number of successes and failures for Bulk Create Project Items. */
|
|
201
357
|
bulkActionMetadata?: BulkActionMetadata;
|
|
202
358
|
}
|
|
203
359
|
interface BulkCreateProjectItemResult {
|
|
204
|
-
/**
|
|
360
|
+
/**
|
|
361
|
+
* Information about the created project item.
|
|
362
|
+
* Including its ID, index in the bulk request and whether it was successfully created.
|
|
363
|
+
*/
|
|
205
364
|
itemMetadata?: ItemMetadata;
|
|
206
|
-
/**
|
|
365
|
+
/** Created project item. Only returned if `returnEntity` is set to `true` in the request. */
|
|
207
366
|
item?: Item;
|
|
208
367
|
}
|
|
209
368
|
interface ItemMetadata {
|
|
@@ -293,6 +452,75 @@ interface Cursors {
|
|
|
293
452
|
*/
|
|
294
453
|
prev?: string | null;
|
|
295
454
|
}
|
|
455
|
+
interface QueryProjectItemsRequest {
|
|
456
|
+
/** WQL expression */
|
|
457
|
+
query?: QueryV2;
|
|
458
|
+
}
|
|
459
|
+
interface QueryV2 extends QueryV2PagingMethodOneOf {
|
|
460
|
+
/** Paging options to limit and offset the number of items. */
|
|
461
|
+
paging?: Paging;
|
|
462
|
+
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
463
|
+
cursorPaging?: CursorPaging;
|
|
464
|
+
/**
|
|
465
|
+
* Filter object.
|
|
466
|
+
*
|
|
467
|
+
* Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).
|
|
468
|
+
*/
|
|
469
|
+
filter?: Record<string, any> | null;
|
|
470
|
+
/**
|
|
471
|
+
* Sort object.
|
|
472
|
+
*
|
|
473
|
+
* Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting).
|
|
474
|
+
*/
|
|
475
|
+
sort?: Sorting[];
|
|
476
|
+
/** Array of projected fields. A list of specific field names to return. If `fieldsets` are also specified, the union of `fieldsets` and `fields` is returned. */
|
|
477
|
+
fields?: string[];
|
|
478
|
+
/** Array of named, predefined sets of projected fields. A array of predefined named sets of fields to be returned. Specifying multiple `fieldsets` will return the union of fields from all sets. If `fields` are also specified, the union of `fieldsets` and `fields` is returned. */
|
|
479
|
+
fieldsets?: string[];
|
|
480
|
+
}
|
|
481
|
+
/** @oneof */
|
|
482
|
+
interface QueryV2PagingMethodOneOf {
|
|
483
|
+
/** Paging options to limit and offset the number of items. */
|
|
484
|
+
paging?: Paging;
|
|
485
|
+
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
486
|
+
cursorPaging?: CursorPaging;
|
|
487
|
+
}
|
|
488
|
+
interface Sorting {
|
|
489
|
+
/**
|
|
490
|
+
* Name of the field to sort by.
|
|
491
|
+
* @maxLength 512
|
|
492
|
+
*/
|
|
493
|
+
fieldName?: string;
|
|
494
|
+
/** Sort order. */
|
|
495
|
+
order?: SortOrderWithLiterals;
|
|
496
|
+
}
|
|
497
|
+
declare enum SortOrder {
|
|
498
|
+
ASC = "ASC",
|
|
499
|
+
DESC = "DESC"
|
|
500
|
+
}
|
|
501
|
+
/** @enumType */
|
|
502
|
+
type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
503
|
+
interface CursorPaging {
|
|
504
|
+
/**
|
|
505
|
+
* Maximum number of items to return in the results.
|
|
506
|
+
* @max 100
|
|
507
|
+
*/
|
|
508
|
+
limit?: number | null;
|
|
509
|
+
/**
|
|
510
|
+
* Pointer to the next or previous page in the list of results.
|
|
511
|
+
*
|
|
512
|
+
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
513
|
+
* Not relevant for the first request.
|
|
514
|
+
* @maxLength 16000
|
|
515
|
+
*/
|
|
516
|
+
cursor?: string | null;
|
|
517
|
+
}
|
|
518
|
+
interface QueryProjectItemsResponse {
|
|
519
|
+
/** Project items. */
|
|
520
|
+
items?: Item[];
|
|
521
|
+
/** Paging metadata. */
|
|
522
|
+
metadata?: PagingMetadataV2;
|
|
523
|
+
}
|
|
296
524
|
interface UpdateProjectItemRequest {
|
|
297
525
|
/** The project item to update. */
|
|
298
526
|
item: Item;
|
|
@@ -303,11 +531,17 @@ interface UpdateProjectItemResponse {
|
|
|
303
531
|
}
|
|
304
532
|
interface BulkUpdateProjectItemsRequest {
|
|
305
533
|
/**
|
|
306
|
-
* items to
|
|
534
|
+
* Project items to update.
|
|
307
535
|
* @maxSize 100
|
|
308
536
|
*/
|
|
309
537
|
items?: MaskedItem[];
|
|
310
|
-
/**
|
|
538
|
+
/**
|
|
539
|
+
* Whether to return the updated project items.
|
|
540
|
+
*
|
|
541
|
+
* Set to `true` to return the project items in the response.
|
|
542
|
+
*
|
|
543
|
+
* Default: `false`
|
|
544
|
+
*/
|
|
311
545
|
returnFullEntity?: boolean | null;
|
|
312
546
|
}
|
|
313
547
|
interface MaskedItem {
|
|
@@ -315,15 +549,18 @@ interface MaskedItem {
|
|
|
315
549
|
item?: Item;
|
|
316
550
|
}
|
|
317
551
|
interface BulkUpdateProjectItemsResponse {
|
|
318
|
-
/**
|
|
552
|
+
/** List of individual Bulk Update Project Items results. */
|
|
319
553
|
results?: BulkUpdateProjectItemResult[];
|
|
320
|
-
/** Bulk
|
|
554
|
+
/** Total number of successes and failures for Bulk Update Project Items. */
|
|
321
555
|
bulkActionMetadata?: BulkActionMetadata;
|
|
322
556
|
}
|
|
323
557
|
interface BulkUpdateProjectItemResult {
|
|
324
|
-
/**
|
|
558
|
+
/**
|
|
559
|
+
* Information about the updated project item.
|
|
560
|
+
* Including its ID, index in the bulk request and whether it was successfully updated.
|
|
561
|
+
*/
|
|
325
562
|
itemMetadata?: ItemMetadata;
|
|
326
|
-
/** Updated project item. */
|
|
563
|
+
/** Updated project item. Only returned if `returnEntity` is set to `true` in the request. */
|
|
327
564
|
item?: Item;
|
|
328
565
|
}
|
|
329
566
|
interface DeleteProjectItemRequest {
|
|
@@ -347,7 +584,7 @@ interface DeleteProjectItemResponse {
|
|
|
347
584
|
}
|
|
348
585
|
interface BulkDeleteProjectItemsRequest {
|
|
349
586
|
/**
|
|
350
|
-
*
|
|
587
|
+
* IDs of project items to delete.
|
|
351
588
|
* @format GUID
|
|
352
589
|
* @minSize 1
|
|
353
590
|
* @maxLength 100
|
|
@@ -355,20 +592,117 @@ interface BulkDeleteProjectItemsRequest {
|
|
|
355
592
|
itemIds: string[];
|
|
356
593
|
}
|
|
357
594
|
interface BulkDeleteProjectItemsResponse {
|
|
358
|
-
/**
|
|
595
|
+
/** List of individual Bulk Delete Project Items results. */
|
|
359
596
|
results?: BulkDeleteProjectItemResult[];
|
|
360
|
-
/** Bulk
|
|
597
|
+
/** Total number of successes and failures for Bulk Delete Project Items. */
|
|
361
598
|
bulkActionMetadata?: BulkActionMetadata;
|
|
362
599
|
}
|
|
363
600
|
interface BulkDeleteProjectItemResult {
|
|
364
|
-
/**
|
|
601
|
+
/**
|
|
602
|
+
* Information about the deleted project item.
|
|
603
|
+
* Including its ID, index in the bulk request and whether it was successfully deleted.
|
|
604
|
+
*/
|
|
365
605
|
itemMetadata?: ItemMetadata;
|
|
366
606
|
/**
|
|
367
|
-
*
|
|
607
|
+
* ID of the deleted project item.
|
|
368
608
|
* @format GUID
|
|
369
609
|
*/
|
|
370
610
|
itemId?: string;
|
|
371
611
|
}
|
|
612
|
+
interface CreateProjectGalleryRequest {
|
|
613
|
+
/**
|
|
614
|
+
* Id of Project to create
|
|
615
|
+
* @format GUID
|
|
616
|
+
*/
|
|
617
|
+
projectId?: string;
|
|
618
|
+
}
|
|
619
|
+
interface CreateProjectGalleryResponse {
|
|
620
|
+
/**
|
|
621
|
+
* Id of created Project
|
|
622
|
+
* @format GUID
|
|
623
|
+
*/
|
|
624
|
+
projectId?: string;
|
|
625
|
+
/**
|
|
626
|
+
* Id of created gallery
|
|
627
|
+
* @format GUID
|
|
628
|
+
*/
|
|
629
|
+
galleryId?: string;
|
|
630
|
+
}
|
|
631
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
|
632
|
+
createdEvent?: EntityCreatedEvent;
|
|
633
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
634
|
+
deletedEvent?: EntityDeletedEvent;
|
|
635
|
+
actionEvent?: ActionEvent;
|
|
636
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
637
|
+
id?: string;
|
|
638
|
+
/**
|
|
639
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
640
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
641
|
+
*/
|
|
642
|
+
entityFqdn?: string;
|
|
643
|
+
/**
|
|
644
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
645
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
646
|
+
*/
|
|
647
|
+
slug?: string;
|
|
648
|
+
/** ID of the entity associated with the event. */
|
|
649
|
+
entityId?: string;
|
|
650
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
651
|
+
eventTime?: Date | null;
|
|
652
|
+
/**
|
|
653
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
654
|
+
* (for example, GDPR).
|
|
655
|
+
*/
|
|
656
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
657
|
+
/** If present, indicates the action that triggered the event. */
|
|
658
|
+
originatedFrom?: string | null;
|
|
659
|
+
/**
|
|
660
|
+
* 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.
|
|
661
|
+
* 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.
|
|
662
|
+
*/
|
|
663
|
+
entityEventSequence?: string | null;
|
|
664
|
+
}
|
|
665
|
+
/** @oneof */
|
|
666
|
+
interface DomainEventBodyOneOf {
|
|
667
|
+
createdEvent?: EntityCreatedEvent;
|
|
668
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
669
|
+
deletedEvent?: EntityDeletedEvent;
|
|
670
|
+
actionEvent?: ActionEvent;
|
|
671
|
+
}
|
|
672
|
+
interface EntityCreatedEvent {
|
|
673
|
+
entityAsJson?: string;
|
|
674
|
+
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
675
|
+
restoreInfo?: RestoreInfo;
|
|
676
|
+
}
|
|
677
|
+
interface RestoreInfo {
|
|
678
|
+
deletedDate?: Date | null;
|
|
679
|
+
}
|
|
680
|
+
interface EntityUpdatedEvent {
|
|
681
|
+
/**
|
|
682
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
683
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
684
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
685
|
+
*/
|
|
686
|
+
currentEntityAsJson?: string;
|
|
687
|
+
}
|
|
688
|
+
interface EntityDeletedEvent {
|
|
689
|
+
/** Entity that was deleted. */
|
|
690
|
+
deletedEntityAsJson?: string | null;
|
|
691
|
+
}
|
|
692
|
+
interface ActionEvent {
|
|
693
|
+
bodyAsJson?: string;
|
|
694
|
+
}
|
|
695
|
+
interface Empty {
|
|
696
|
+
}
|
|
697
|
+
interface DeletedProjectRestored {
|
|
698
|
+
/**
|
|
699
|
+
* the id of the project that was restored
|
|
700
|
+
* @format GUID
|
|
701
|
+
*/
|
|
702
|
+
projectId?: string;
|
|
703
|
+
/** timestamp for when the project was originally deleted. */
|
|
704
|
+
deletionTimestamp?: Date | null;
|
|
705
|
+
}
|
|
372
706
|
interface DuplicateProjectItemsRequest {
|
|
373
707
|
/**
|
|
374
708
|
* ID of the project containing the items to duplicate.
|
|
@@ -390,6 +724,78 @@ interface DuplicateProjectItemsResponse {
|
|
|
390
724
|
/** Bulk action metadata. */
|
|
391
725
|
bulkActionMetadata?: BulkActionMetadata;
|
|
392
726
|
}
|
|
727
|
+
interface MessageEnvelope {
|
|
728
|
+
/**
|
|
729
|
+
* App instance ID.
|
|
730
|
+
* @format GUID
|
|
731
|
+
*/
|
|
732
|
+
instanceId?: string | null;
|
|
733
|
+
/**
|
|
734
|
+
* Event type.
|
|
735
|
+
* @maxLength 150
|
|
736
|
+
*/
|
|
737
|
+
eventType?: string;
|
|
738
|
+
/** The identification type and identity data. */
|
|
739
|
+
identity?: IdentificationData;
|
|
740
|
+
/** Stringify payload. */
|
|
741
|
+
data?: string;
|
|
742
|
+
}
|
|
743
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
744
|
+
/**
|
|
745
|
+
* ID of a site visitor that has not logged in to the site.
|
|
746
|
+
* @format GUID
|
|
747
|
+
*/
|
|
748
|
+
anonymousVisitorId?: string;
|
|
749
|
+
/**
|
|
750
|
+
* ID of a site visitor that has logged in to the site.
|
|
751
|
+
* @format GUID
|
|
752
|
+
*/
|
|
753
|
+
memberId?: string;
|
|
754
|
+
/**
|
|
755
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
756
|
+
* @format GUID
|
|
757
|
+
*/
|
|
758
|
+
wixUserId?: string;
|
|
759
|
+
/**
|
|
760
|
+
* ID of an app.
|
|
761
|
+
* @format GUID
|
|
762
|
+
*/
|
|
763
|
+
appId?: string;
|
|
764
|
+
/** @readonly */
|
|
765
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
766
|
+
}
|
|
767
|
+
/** @oneof */
|
|
768
|
+
interface IdentificationDataIdOneOf {
|
|
769
|
+
/**
|
|
770
|
+
* ID of a site visitor that has not logged in to the site.
|
|
771
|
+
* @format GUID
|
|
772
|
+
*/
|
|
773
|
+
anonymousVisitorId?: string;
|
|
774
|
+
/**
|
|
775
|
+
* ID of a site visitor that has logged in to the site.
|
|
776
|
+
* @format GUID
|
|
777
|
+
*/
|
|
778
|
+
memberId?: string;
|
|
779
|
+
/**
|
|
780
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
781
|
+
* @format GUID
|
|
782
|
+
*/
|
|
783
|
+
wixUserId?: string;
|
|
784
|
+
/**
|
|
785
|
+
* ID of an app.
|
|
786
|
+
* @format GUID
|
|
787
|
+
*/
|
|
788
|
+
appId?: string;
|
|
789
|
+
}
|
|
790
|
+
declare enum WebhookIdentityType {
|
|
791
|
+
UNKNOWN = "UNKNOWN",
|
|
792
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
793
|
+
MEMBER = "MEMBER",
|
|
794
|
+
WIX_USER = "WIX_USER",
|
|
795
|
+
APP = "APP"
|
|
796
|
+
}
|
|
797
|
+
/** @enumType */
|
|
798
|
+
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
393
799
|
interface GenerateTokenForProjectItemsRequest {
|
|
394
800
|
/**
|
|
395
801
|
* Media ids of requested project items
|
|
@@ -438,4 +844,4 @@ declare function bulkDeleteProjectItems(): __PublicMethodMetaInfo<'DELETE', {},
|
|
|
438
844
|
declare function duplicateProjectItems(): __PublicMethodMetaInfo<'POST', {}, DuplicateProjectItemsRequest$1, DuplicateProjectItemsRequest, DuplicateProjectItemsResponse$1, DuplicateProjectItemsResponse>;
|
|
439
845
|
declare function generateTokenForProjectItems(): __PublicMethodMetaInfo<'POST', {}, GenerateTokenForProjectItemsRequest$1, GenerateTokenForProjectItemsRequest, GenerateTokenForProjectItemsResponse$1, GenerateTokenForProjectItemsResponse>;
|
|
440
846
|
|
|
441
|
-
export { type __PublicMethodMetaInfo, bulkCreateProjectItems, bulkDeleteProjectItems, bulkUpdateProjectItems, createProjectItem, deleteProjectItem, duplicateProjectItems, generateTokenForProjectItems, getProjectItem, listProjectItems, updateProjectItem };
|
|
847
|
+
export { type ActionEvent as ActionEventOriginal, type App as AppOriginal, type ApplicationError as ApplicationErrorOriginal, type BulkActionMetadata as BulkActionMetadataOriginal, type BulkCreateProjectItemResult as BulkCreateProjectItemResultOriginal, type BulkCreateProjectItemsRequest as BulkCreateProjectItemsRequestOriginal, type BulkCreateProjectItemsResponse as BulkCreateProjectItemsResponseOriginal, type BulkDeleteProjectItemResult as BulkDeleteProjectItemResultOriginal, type BulkDeleteProjectItemsRequest as BulkDeleteProjectItemsRequestOriginal, type BulkDeleteProjectItemsResponse as BulkDeleteProjectItemsResponseOriginal, type BulkUpdateProjectItemResult as BulkUpdateProjectItemResultOriginal, type BulkUpdateProjectItemsRequest as BulkUpdateProjectItemsRequestOriginal, type BulkUpdateProjectItemsResponse as BulkUpdateProjectItemsResponseOriginal, type CommonImage as CommonImageOriginal, type CreateProjectGalleryRequest as CreateProjectGalleryRequestOriginal, type CreateProjectGalleryResponse as CreateProjectGalleryResponseOriginal, type CreateProjectItemRequest as CreateProjectItemRequestOriginal, type CreateProjectItemResponse as CreateProjectItemResponseOriginal, type CursorPaging as CursorPagingOriginal, type Cursors as CursorsOriginal, type CustomTag as CustomTagOriginal, type DeleteProjectItemRequest as DeleteProjectItemRequestOriginal, type DeleteProjectItemResponse as DeleteProjectItemResponseOriginal, type DeletedProjectRestored as DeletedProjectRestoredOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type DuplicateProjectItemsRequest as DuplicateProjectItemsRequestOriginal, type DuplicateProjectItemsResponse as DuplicateProjectItemsResponseOriginal, type Empty as EmptyOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type File as FileOriginal, type GenerateTokenForProjectItemsRequest as GenerateTokenForProjectItemsRequestOriginal, type GenerateTokenForProjectItemsResponse as GenerateTokenForProjectItemsResponseOriginal, type GetProjectItemRequest as GetProjectItemRequestOriginal, type GetProjectItemResponse as GetProjectItemResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type Image as ImageOriginal, ImageType as ImageTypeOriginal, type ImageTypeWithLiterals as ImageTypeWithLiteralsOriginal, type InvalidateCacheGetByOneOf as InvalidateCacheGetByOneOfOriginal, type InvalidateCache as InvalidateCacheOriginal, type ItemMetadataOneOf as ItemMetadataOneOfOriginal, type ItemMetadata as ItemMetadataOriginal, type Item as ItemOriginal, type Link as LinkOriginal, type ListProjectItemsRequest as ListProjectItemsRequestOriginal, type ListProjectItemsResponse as ListProjectItemsResponseOriginal, type MaskedItem as MaskedItemOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type Page as PageOriginal, type PagingMetadataV2 as PagingMetadataV2Original, type Paging as PagingOriginal, type Point as PointOriginal, type ProjectItemMediaToken as ProjectItemMediaTokenOriginal, type QueryProjectItemsRequest as QueryProjectItemsRequestOriginal, type QueryProjectItemsResponse as QueryProjectItemsResponseOriginal, type QueryV2 as QueryV2Original, type QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOfOriginal, type RestoreInfo as RestoreInfoOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, type Tags as TagsOriginal, Type as TypeOriginal, type TypeWithLiterals as TypeWithLiteralsOriginal, type URI as URIOriginal, type UnsharpMasking as UnsharpMaskingOriginal, type UpdateProjectItemRequest as UpdateProjectItemRequestOriginal, type UpdateProjectItemResponse as UpdateProjectItemResponseOriginal, type Video as VideoOriginal, type VideoResolution as VideoResolutionOriginal, type VideoV2 as VideoV2Original, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, bulkCreateProjectItems, bulkDeleteProjectItems, bulkUpdateProjectItems, createProjectItem, deleteProjectItem, duplicateProjectItems, generateTokenForProjectItems, getProjectItem, listProjectItems, updateProjectItem };
|
package/build/es/meta.mjs
CHANGED
|
@@ -223,6 +223,9 @@ function createProjectItem(payload) {
|
|
|
223
223
|
method: "POST",
|
|
224
224
|
methodFqn: "com.wixpress.portfolio.projectitems.ProjectItemsService.CreateProjectItem",
|
|
225
225
|
packageName: PACKAGE_NAME,
|
|
226
|
+
migrationOptions: {
|
|
227
|
+
optInTransformResponse: true
|
|
228
|
+
},
|
|
226
229
|
url: resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl({
|
|
227
230
|
protoPath: "/api/v1/portfolio/items",
|
|
228
231
|
data: serializedData,
|
|
@@ -293,6 +296,9 @@ function bulkCreateProjectItems(payload) {
|
|
|
293
296
|
method: "POST",
|
|
294
297
|
methodFqn: "com.wixpress.portfolio.projectitems.ProjectItemsService.BulkCreateProjectItems",
|
|
295
298
|
packageName: PACKAGE_NAME,
|
|
299
|
+
migrationOptions: {
|
|
300
|
+
optInTransformResponse: true
|
|
301
|
+
},
|
|
296
302
|
url: resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl({
|
|
297
303
|
protoPath: "/api/v1/bulk/portfolio/items/create",
|
|
298
304
|
data: serializedData,
|
|
@@ -339,6 +345,9 @@ function getProjectItem(payload) {
|
|
|
339
345
|
method: "GET",
|
|
340
346
|
methodFqn: "com.wixpress.portfolio.projectitems.ProjectItemsService.GetProjectItem",
|
|
341
347
|
packageName: PACKAGE_NAME,
|
|
348
|
+
migrationOptions: {
|
|
349
|
+
optInTransformResponse: true
|
|
350
|
+
},
|
|
342
351
|
url: resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl({
|
|
343
352
|
protoPath: "/api/v1/portfolio/items/{itemId}",
|
|
344
353
|
data: payload,
|
|
@@ -394,6 +403,9 @@ function listProjectItems(payload) {
|
|
|
394
403
|
method: "GET",
|
|
395
404
|
methodFqn: "com.wixpress.portfolio.projectitems.ProjectItemsService.ListProjectItems",
|
|
396
405
|
packageName: PACKAGE_NAME,
|
|
406
|
+
migrationOptions: {
|
|
407
|
+
optInTransformResponse: true
|
|
408
|
+
},
|
|
397
409
|
url: resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl({
|
|
398
410
|
protoPath: "/api/v1/portfolio/projects/{projectId}/items",
|
|
399
411
|
data: payload,
|
|
@@ -466,6 +478,9 @@ function updateProjectItem(payload) {
|
|
|
466
478
|
method: "PATCH",
|
|
467
479
|
methodFqn: "com.wixpress.portfolio.projectitems.ProjectItemsService.UpdateProjectItem",
|
|
468
480
|
packageName: PACKAGE_NAME,
|
|
481
|
+
migrationOptions: {
|
|
482
|
+
optInTransformResponse: true
|
|
483
|
+
},
|
|
469
484
|
url: resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl({
|
|
470
485
|
protoPath: "/api/v1/portfolio/items/{item.id}",
|
|
471
486
|
data: serializedData,
|
|
@@ -540,6 +555,9 @@ function bulkUpdateProjectItems(payload) {
|
|
|
540
555
|
method: "PATCH",
|
|
541
556
|
methodFqn: "com.wixpress.portfolio.projectitems.ProjectItemsService.BulkUpdateProjectItems",
|
|
542
557
|
packageName: PACKAGE_NAME,
|
|
558
|
+
migrationOptions: {
|
|
559
|
+
optInTransformResponse: true
|
|
560
|
+
},
|
|
543
561
|
url: resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl({
|
|
544
562
|
protoPath: "/api/v1/bulk/portfolio/items/update",
|
|
545
563
|
data: serializedData,
|
|
@@ -586,6 +604,9 @@ function deleteProjectItem(payload) {
|
|
|
586
604
|
method: "DELETE",
|
|
587
605
|
methodFqn: "com.wixpress.portfolio.projectitems.ProjectItemsService.DeleteProjectItem",
|
|
588
606
|
packageName: PACKAGE_NAME,
|
|
607
|
+
migrationOptions: {
|
|
608
|
+
optInTransformResponse: true
|
|
609
|
+
},
|
|
589
610
|
url: resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl({
|
|
590
611
|
protoPath: "/api/v1/portfolio/items/{itemId}",
|
|
591
612
|
data: payload,
|
|
@@ -604,6 +625,9 @@ function bulkDeleteProjectItems(payload) {
|
|
|
604
625
|
method: "DELETE",
|
|
605
626
|
methodFqn: "com.wixpress.portfolio.projectitems.ProjectItemsService.BulkDeleteProjectItems",
|
|
606
627
|
packageName: PACKAGE_NAME,
|
|
628
|
+
migrationOptions: {
|
|
629
|
+
optInTransformResponse: true
|
|
630
|
+
},
|
|
607
631
|
url: resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl({
|
|
608
632
|
protoPath: "/api/v1/bulk/portfolio/items/delete",
|
|
609
633
|
data: payload,
|
|
@@ -622,6 +646,9 @@ function duplicateProjectItems(payload) {
|
|
|
622
646
|
method: "POST",
|
|
623
647
|
methodFqn: "com.wixpress.portfolio.projectitems.ProjectItemsService.DuplicateProjectItems",
|
|
624
648
|
packageName: PACKAGE_NAME,
|
|
649
|
+
migrationOptions: {
|
|
650
|
+
optInTransformResponse: true
|
|
651
|
+
},
|
|
625
652
|
url: resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl({
|
|
626
653
|
protoPath: "/api/v1/items/duplicate",
|
|
627
654
|
data: payload,
|
|
@@ -640,6 +667,9 @@ function generateTokenForProjectItems(payload) {
|
|
|
640
667
|
method: "POST",
|
|
641
668
|
methodFqn: "com.wixpress.portfolio.portfolioapp.MediaService.GenerateTokenForProjectItems",
|
|
642
669
|
packageName: PACKAGE_NAME,
|
|
670
|
+
migrationOptions: {
|
|
671
|
+
optInTransformResponse: true
|
|
672
|
+
},
|
|
643
673
|
url: resolveComWixpressPortfolioPortfolioappMediaServiceUrl({
|
|
644
674
|
protoPath: "/api/v1/portfolio/project/items/media",
|
|
645
675
|
data: payload,
|
|
@@ -652,6 +682,33 @@ function generateTokenForProjectItems(payload) {
|
|
|
652
682
|
return __generateTokenForProjectItems;
|
|
653
683
|
}
|
|
654
684
|
|
|
685
|
+
// src/portfolio-project-items-v1-project-item-project-items.types.ts
|
|
686
|
+
var Type = /* @__PURE__ */ ((Type2) => {
|
|
687
|
+
Type2["UNDEFINED"] = "UNDEFINED";
|
|
688
|
+
Type2["IMAGE"] = "IMAGE";
|
|
689
|
+
Type2["VIDEO"] = "VIDEO";
|
|
690
|
+
return Type2;
|
|
691
|
+
})(Type || {});
|
|
692
|
+
var ImageType = /* @__PURE__ */ ((ImageType2) => {
|
|
693
|
+
ImageType2["UNDEFINED"] = "UNDEFINED";
|
|
694
|
+
ImageType2["WIX_MEDIA"] = "WIX_MEDIA";
|
|
695
|
+
ImageType2["EXTERNAL"] = "EXTERNAL";
|
|
696
|
+
return ImageType2;
|
|
697
|
+
})(ImageType || {});
|
|
698
|
+
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
699
|
+
SortOrder2["ASC"] = "ASC";
|
|
700
|
+
SortOrder2["DESC"] = "DESC";
|
|
701
|
+
return SortOrder2;
|
|
702
|
+
})(SortOrder || {});
|
|
703
|
+
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
704
|
+
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
705
|
+
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
706
|
+
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
707
|
+
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
708
|
+
WebhookIdentityType2["APP"] = "APP";
|
|
709
|
+
return WebhookIdentityType2;
|
|
710
|
+
})(WebhookIdentityType || {});
|
|
711
|
+
|
|
655
712
|
// src/portfolio-project-items-v1-project-item-project-items.meta.ts
|
|
656
713
|
function createProjectItem2() {
|
|
657
714
|
const payload = {};
|
|
@@ -844,6 +901,10 @@ function generateTokenForProjectItems2() {
|
|
|
844
901
|
};
|
|
845
902
|
}
|
|
846
903
|
export {
|
|
904
|
+
ImageType as ImageTypeOriginal,
|
|
905
|
+
SortOrder as SortOrderOriginal,
|
|
906
|
+
Type as TypeOriginal,
|
|
907
|
+
WebhookIdentityType as WebhookIdentityTypeOriginal,
|
|
847
908
|
bulkCreateProjectItems2 as bulkCreateProjectItems,
|
|
848
909
|
bulkDeleteProjectItems2 as bulkDeleteProjectItems,
|
|
849
910
|
bulkUpdateProjectItems2 as bulkUpdateProjectItems,
|