@wix/auto_sdk_portfolio_project-items 1.0.24 → 1.0.26
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 +1 -1
- package/build/cjs/index.js +30 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +1 -6
- package/build/cjs/index.typings.js +30 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +386 -6
- package/build/cjs/meta.js +65 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs +30 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +1 -6
- package/build/es/index.typings.mjs +30 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +386 -6
- package/build/es/meta.mjs +61 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +1 -1
- 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 +1 -6
- 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 +386 -6
- package/build/internal/cjs/meta.js +65 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +1 -1
- 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 +1 -6
- 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 +386 -6
- package/build/internal/es/meta.mjs +61 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +3 -3
package/build/cjs/meta.d.ts
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;
|
|
@@ -302,6 +452,75 @@ interface Cursors {
|
|
|
302
452
|
*/
|
|
303
453
|
prev?: string | null;
|
|
304
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
|
+
}
|
|
305
524
|
interface UpdateProjectItemRequest {
|
|
306
525
|
/** The project item to update. */
|
|
307
526
|
item: Item;
|
|
@@ -352,11 +571,6 @@ interface DeleteProjectItemRequest {
|
|
|
352
571
|
itemId: string;
|
|
353
572
|
}
|
|
354
573
|
interface DeleteProjectItemResponse {
|
|
355
|
-
/**
|
|
356
|
-
* Project ID.
|
|
357
|
-
* @format GUID
|
|
358
|
-
*/
|
|
359
|
-
projectId?: string;
|
|
360
574
|
/**
|
|
361
575
|
* ID of the deleted project item.
|
|
362
576
|
* @format GUID
|
|
@@ -390,6 +604,100 @@ interface BulkDeleteProjectItemResult {
|
|
|
390
604
|
*/
|
|
391
605
|
itemId?: string;
|
|
392
606
|
}
|
|
607
|
+
interface CreateProjectGalleryRequest {
|
|
608
|
+
/**
|
|
609
|
+
* Id of Project to create
|
|
610
|
+
* @format GUID
|
|
611
|
+
*/
|
|
612
|
+
projectId?: string;
|
|
613
|
+
}
|
|
614
|
+
interface CreateProjectGalleryResponse {
|
|
615
|
+
/**
|
|
616
|
+
* Id of created Project
|
|
617
|
+
* @format GUID
|
|
618
|
+
*/
|
|
619
|
+
projectId?: string;
|
|
620
|
+
/**
|
|
621
|
+
* Id of created gallery
|
|
622
|
+
* @format GUID
|
|
623
|
+
*/
|
|
624
|
+
galleryId?: string;
|
|
625
|
+
}
|
|
626
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
|
627
|
+
createdEvent?: EntityCreatedEvent;
|
|
628
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
629
|
+
deletedEvent?: EntityDeletedEvent;
|
|
630
|
+
actionEvent?: ActionEvent;
|
|
631
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
632
|
+
id?: string;
|
|
633
|
+
/**
|
|
634
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
635
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
636
|
+
*/
|
|
637
|
+
entityFqdn?: string;
|
|
638
|
+
/**
|
|
639
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
640
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
641
|
+
*/
|
|
642
|
+
slug?: string;
|
|
643
|
+
/** ID of the entity associated with the event. */
|
|
644
|
+
entityId?: string;
|
|
645
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
646
|
+
eventTime?: Date | null;
|
|
647
|
+
/**
|
|
648
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
649
|
+
* (for example, GDPR).
|
|
650
|
+
*/
|
|
651
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
652
|
+
/** If present, indicates the action that triggered the event. */
|
|
653
|
+
originatedFrom?: string | null;
|
|
654
|
+
/**
|
|
655
|
+
* 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.
|
|
656
|
+
* 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.
|
|
657
|
+
*/
|
|
658
|
+
entityEventSequence?: string | null;
|
|
659
|
+
}
|
|
660
|
+
/** @oneof */
|
|
661
|
+
interface DomainEventBodyOneOf {
|
|
662
|
+
createdEvent?: EntityCreatedEvent;
|
|
663
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
664
|
+
deletedEvent?: EntityDeletedEvent;
|
|
665
|
+
actionEvent?: ActionEvent;
|
|
666
|
+
}
|
|
667
|
+
interface EntityCreatedEvent {
|
|
668
|
+
entityAsJson?: string;
|
|
669
|
+
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
670
|
+
restoreInfo?: RestoreInfo;
|
|
671
|
+
}
|
|
672
|
+
interface RestoreInfo {
|
|
673
|
+
deletedDate?: Date | null;
|
|
674
|
+
}
|
|
675
|
+
interface EntityUpdatedEvent {
|
|
676
|
+
/**
|
|
677
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
678
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
679
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
680
|
+
*/
|
|
681
|
+
currentEntityAsJson?: string;
|
|
682
|
+
}
|
|
683
|
+
interface EntityDeletedEvent {
|
|
684
|
+
/** Entity that was deleted. */
|
|
685
|
+
deletedEntityAsJson?: string | null;
|
|
686
|
+
}
|
|
687
|
+
interface ActionEvent {
|
|
688
|
+
bodyAsJson?: string;
|
|
689
|
+
}
|
|
690
|
+
interface Empty {
|
|
691
|
+
}
|
|
692
|
+
interface DeletedProjectRestored {
|
|
693
|
+
/**
|
|
694
|
+
* the id of the project that was restored
|
|
695
|
+
* @format GUID
|
|
696
|
+
*/
|
|
697
|
+
projectId?: string;
|
|
698
|
+
/** timestamp for when the project was originally deleted. */
|
|
699
|
+
deletionTimestamp?: Date | null;
|
|
700
|
+
}
|
|
393
701
|
interface DuplicateProjectItemsRequest {
|
|
394
702
|
/**
|
|
395
703
|
* ID of the project containing the items to duplicate.
|
|
@@ -411,6 +719,78 @@ interface DuplicateProjectItemsResponse {
|
|
|
411
719
|
/** Bulk action metadata. */
|
|
412
720
|
bulkActionMetadata?: BulkActionMetadata;
|
|
413
721
|
}
|
|
722
|
+
interface MessageEnvelope {
|
|
723
|
+
/**
|
|
724
|
+
* App instance ID.
|
|
725
|
+
* @format GUID
|
|
726
|
+
*/
|
|
727
|
+
instanceId?: string | null;
|
|
728
|
+
/**
|
|
729
|
+
* Event type.
|
|
730
|
+
* @maxLength 150
|
|
731
|
+
*/
|
|
732
|
+
eventType?: string;
|
|
733
|
+
/** The identification type and identity data. */
|
|
734
|
+
identity?: IdentificationData;
|
|
735
|
+
/** Stringify payload. */
|
|
736
|
+
data?: string;
|
|
737
|
+
}
|
|
738
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
739
|
+
/**
|
|
740
|
+
* ID of a site visitor that has not logged in to the site.
|
|
741
|
+
* @format GUID
|
|
742
|
+
*/
|
|
743
|
+
anonymousVisitorId?: string;
|
|
744
|
+
/**
|
|
745
|
+
* ID of a site visitor that has logged in to the site.
|
|
746
|
+
* @format GUID
|
|
747
|
+
*/
|
|
748
|
+
memberId?: string;
|
|
749
|
+
/**
|
|
750
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
751
|
+
* @format GUID
|
|
752
|
+
*/
|
|
753
|
+
wixUserId?: string;
|
|
754
|
+
/**
|
|
755
|
+
* ID of an app.
|
|
756
|
+
* @format GUID
|
|
757
|
+
*/
|
|
758
|
+
appId?: string;
|
|
759
|
+
/** @readonly */
|
|
760
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
761
|
+
}
|
|
762
|
+
/** @oneof */
|
|
763
|
+
interface IdentificationDataIdOneOf {
|
|
764
|
+
/**
|
|
765
|
+
* ID of a site visitor that has not logged in to the site.
|
|
766
|
+
* @format GUID
|
|
767
|
+
*/
|
|
768
|
+
anonymousVisitorId?: string;
|
|
769
|
+
/**
|
|
770
|
+
* ID of a site visitor that has logged in to the site.
|
|
771
|
+
* @format GUID
|
|
772
|
+
*/
|
|
773
|
+
memberId?: string;
|
|
774
|
+
/**
|
|
775
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
776
|
+
* @format GUID
|
|
777
|
+
*/
|
|
778
|
+
wixUserId?: string;
|
|
779
|
+
/**
|
|
780
|
+
* ID of an app.
|
|
781
|
+
* @format GUID
|
|
782
|
+
*/
|
|
783
|
+
appId?: string;
|
|
784
|
+
}
|
|
785
|
+
declare enum WebhookIdentityType {
|
|
786
|
+
UNKNOWN = "UNKNOWN",
|
|
787
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
788
|
+
MEMBER = "MEMBER",
|
|
789
|
+
WIX_USER = "WIX_USER",
|
|
790
|
+
APP = "APP"
|
|
791
|
+
}
|
|
792
|
+
/** @enumType */
|
|
793
|
+
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
414
794
|
interface GenerateTokenForProjectItemsRequest {
|
|
415
795
|
/**
|
|
416
796
|
* Media ids of requested project items
|
|
@@ -459,4 +839,4 @@ declare function bulkDeleteProjectItems(): __PublicMethodMetaInfo<'DELETE', {},
|
|
|
459
839
|
declare function duplicateProjectItems(): __PublicMethodMetaInfo<'POST', {}, DuplicateProjectItemsRequest$1, DuplicateProjectItemsRequest, DuplicateProjectItemsResponse$1, DuplicateProjectItemsResponse>;
|
|
460
840
|
declare function generateTokenForProjectItems(): __PublicMethodMetaInfo<'POST', {}, GenerateTokenForProjectItemsRequest$1, GenerateTokenForProjectItemsRequest, GenerateTokenForProjectItemsResponse$1, GenerateTokenForProjectItemsResponse>;
|
|
461
841
|
|
|
462
|
-
export { type __PublicMethodMetaInfo, bulkCreateProjectItems, bulkDeleteProjectItems, bulkUpdateProjectItems, createProjectItem, deleteProjectItem, duplicateProjectItems, generateTokenForProjectItems, getProjectItem, listProjectItems, updateProjectItem };
|
|
842
|
+
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/cjs/meta.js
CHANGED
|
@@ -20,6 +20,10 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
20
|
// meta.ts
|
|
21
21
|
var meta_exports = {};
|
|
22
22
|
__export(meta_exports, {
|
|
23
|
+
ImageTypeOriginal: () => ImageType,
|
|
24
|
+
SortOrderOriginal: () => SortOrder,
|
|
25
|
+
TypeOriginal: () => Type,
|
|
26
|
+
WebhookIdentityTypeOriginal: () => WebhookIdentityType,
|
|
23
27
|
bulkCreateProjectItems: () => bulkCreateProjectItems2,
|
|
24
28
|
bulkDeleteProjectItems: () => bulkDeleteProjectItems2,
|
|
25
29
|
bulkUpdateProjectItems: () => bulkUpdateProjectItems2,
|
|
@@ -258,6 +262,9 @@ function createProjectItem(payload) {
|
|
|
258
262
|
method: "POST",
|
|
259
263
|
methodFqn: "com.wixpress.portfolio.projectitems.ProjectItemsService.CreateProjectItem",
|
|
260
264
|
packageName: PACKAGE_NAME,
|
|
265
|
+
migrationOptions: {
|
|
266
|
+
optInTransformResponse: true
|
|
267
|
+
},
|
|
261
268
|
url: resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl({
|
|
262
269
|
protoPath: "/api/v1/portfolio/items",
|
|
263
270
|
data: serializedData,
|
|
@@ -328,6 +335,9 @@ function bulkCreateProjectItems(payload) {
|
|
|
328
335
|
method: "POST",
|
|
329
336
|
methodFqn: "com.wixpress.portfolio.projectitems.ProjectItemsService.BulkCreateProjectItems",
|
|
330
337
|
packageName: PACKAGE_NAME,
|
|
338
|
+
migrationOptions: {
|
|
339
|
+
optInTransformResponse: true
|
|
340
|
+
},
|
|
331
341
|
url: resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl({
|
|
332
342
|
protoPath: "/api/v1/bulk/portfolio/items/create",
|
|
333
343
|
data: serializedData,
|
|
@@ -374,6 +384,9 @@ function getProjectItem(payload) {
|
|
|
374
384
|
method: "GET",
|
|
375
385
|
methodFqn: "com.wixpress.portfolio.projectitems.ProjectItemsService.GetProjectItem",
|
|
376
386
|
packageName: PACKAGE_NAME,
|
|
387
|
+
migrationOptions: {
|
|
388
|
+
optInTransformResponse: true
|
|
389
|
+
},
|
|
377
390
|
url: resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl({
|
|
378
391
|
protoPath: "/api/v1/portfolio/items/{itemId}",
|
|
379
392
|
data: payload,
|
|
@@ -429,6 +442,9 @@ function listProjectItems(payload) {
|
|
|
429
442
|
method: "GET",
|
|
430
443
|
methodFqn: "com.wixpress.portfolio.projectitems.ProjectItemsService.ListProjectItems",
|
|
431
444
|
packageName: PACKAGE_NAME,
|
|
445
|
+
migrationOptions: {
|
|
446
|
+
optInTransformResponse: true
|
|
447
|
+
},
|
|
432
448
|
url: resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl({
|
|
433
449
|
protoPath: "/api/v1/portfolio/projects/{projectId}/items",
|
|
434
450
|
data: payload,
|
|
@@ -501,6 +517,9 @@ function updateProjectItem(payload) {
|
|
|
501
517
|
method: "PATCH",
|
|
502
518
|
methodFqn: "com.wixpress.portfolio.projectitems.ProjectItemsService.UpdateProjectItem",
|
|
503
519
|
packageName: PACKAGE_NAME,
|
|
520
|
+
migrationOptions: {
|
|
521
|
+
optInTransformResponse: true
|
|
522
|
+
},
|
|
504
523
|
url: resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl({
|
|
505
524
|
protoPath: "/api/v1/portfolio/items/{item.id}",
|
|
506
525
|
data: serializedData,
|
|
@@ -575,6 +594,9 @@ function bulkUpdateProjectItems(payload) {
|
|
|
575
594
|
method: "PATCH",
|
|
576
595
|
methodFqn: "com.wixpress.portfolio.projectitems.ProjectItemsService.BulkUpdateProjectItems",
|
|
577
596
|
packageName: PACKAGE_NAME,
|
|
597
|
+
migrationOptions: {
|
|
598
|
+
optInTransformResponse: true
|
|
599
|
+
},
|
|
578
600
|
url: resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl({
|
|
579
601
|
protoPath: "/api/v1/bulk/portfolio/items/update",
|
|
580
602
|
data: serializedData,
|
|
@@ -621,6 +643,9 @@ function deleteProjectItem(payload) {
|
|
|
621
643
|
method: "DELETE",
|
|
622
644
|
methodFqn: "com.wixpress.portfolio.projectitems.ProjectItemsService.DeleteProjectItem",
|
|
623
645
|
packageName: PACKAGE_NAME,
|
|
646
|
+
migrationOptions: {
|
|
647
|
+
optInTransformResponse: true
|
|
648
|
+
},
|
|
624
649
|
url: resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl({
|
|
625
650
|
protoPath: "/api/v1/portfolio/items/{itemId}",
|
|
626
651
|
data: payload,
|
|
@@ -639,6 +664,9 @@ function bulkDeleteProjectItems(payload) {
|
|
|
639
664
|
method: "DELETE",
|
|
640
665
|
methodFqn: "com.wixpress.portfolio.projectitems.ProjectItemsService.BulkDeleteProjectItems",
|
|
641
666
|
packageName: PACKAGE_NAME,
|
|
667
|
+
migrationOptions: {
|
|
668
|
+
optInTransformResponse: true
|
|
669
|
+
},
|
|
642
670
|
url: resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl({
|
|
643
671
|
protoPath: "/api/v1/bulk/portfolio/items/delete",
|
|
644
672
|
data: payload,
|
|
@@ -657,6 +685,9 @@ function duplicateProjectItems(payload) {
|
|
|
657
685
|
method: "POST",
|
|
658
686
|
methodFqn: "com.wixpress.portfolio.projectitems.ProjectItemsService.DuplicateProjectItems",
|
|
659
687
|
packageName: PACKAGE_NAME,
|
|
688
|
+
migrationOptions: {
|
|
689
|
+
optInTransformResponse: true
|
|
690
|
+
},
|
|
660
691
|
url: resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl({
|
|
661
692
|
protoPath: "/api/v1/items/duplicate",
|
|
662
693
|
data: payload,
|
|
@@ -675,6 +706,9 @@ function generateTokenForProjectItems(payload) {
|
|
|
675
706
|
method: "POST",
|
|
676
707
|
methodFqn: "com.wixpress.portfolio.portfolioapp.MediaService.GenerateTokenForProjectItems",
|
|
677
708
|
packageName: PACKAGE_NAME,
|
|
709
|
+
migrationOptions: {
|
|
710
|
+
optInTransformResponse: true
|
|
711
|
+
},
|
|
678
712
|
url: resolveComWixpressPortfolioPortfolioappMediaServiceUrl({
|
|
679
713
|
protoPath: "/api/v1/portfolio/project/items/media",
|
|
680
714
|
data: payload,
|
|
@@ -687,6 +721,33 @@ function generateTokenForProjectItems(payload) {
|
|
|
687
721
|
return __generateTokenForProjectItems;
|
|
688
722
|
}
|
|
689
723
|
|
|
724
|
+
// src/portfolio-project-items-v1-project-item-project-items.types.ts
|
|
725
|
+
var Type = /* @__PURE__ */ ((Type2) => {
|
|
726
|
+
Type2["UNDEFINED"] = "UNDEFINED";
|
|
727
|
+
Type2["IMAGE"] = "IMAGE";
|
|
728
|
+
Type2["VIDEO"] = "VIDEO";
|
|
729
|
+
return Type2;
|
|
730
|
+
})(Type || {});
|
|
731
|
+
var ImageType = /* @__PURE__ */ ((ImageType2) => {
|
|
732
|
+
ImageType2["UNDEFINED"] = "UNDEFINED";
|
|
733
|
+
ImageType2["WIX_MEDIA"] = "WIX_MEDIA";
|
|
734
|
+
ImageType2["EXTERNAL"] = "EXTERNAL";
|
|
735
|
+
return ImageType2;
|
|
736
|
+
})(ImageType || {});
|
|
737
|
+
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
738
|
+
SortOrder2["ASC"] = "ASC";
|
|
739
|
+
SortOrder2["DESC"] = "DESC";
|
|
740
|
+
return SortOrder2;
|
|
741
|
+
})(SortOrder || {});
|
|
742
|
+
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
743
|
+
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
744
|
+
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
745
|
+
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
746
|
+
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
747
|
+
WebhookIdentityType2["APP"] = "APP";
|
|
748
|
+
return WebhookIdentityType2;
|
|
749
|
+
})(WebhookIdentityType || {});
|
|
750
|
+
|
|
690
751
|
// src/portfolio-project-items-v1-project-item-project-items.meta.ts
|
|
691
752
|
function createProjectItem2() {
|
|
692
753
|
const payload = {};
|
|
@@ -880,6 +941,10 @@ function generateTokenForProjectItems2() {
|
|
|
880
941
|
}
|
|
881
942
|
// Annotate the CommonJS export names for ESM import in node:
|
|
882
943
|
0 && (module.exports = {
|
|
944
|
+
ImageTypeOriginal,
|
|
945
|
+
SortOrderOriginal,
|
|
946
|
+
TypeOriginal,
|
|
947
|
+
WebhookIdentityTypeOriginal,
|
|
883
948
|
bulkCreateProjectItems,
|
|
884
949
|
bulkDeleteProjectItems,
|
|
885
950
|
bulkUpdateProjectItems,
|