@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.
Files changed (37) hide show
  1. package/build/cjs/index.d.ts +1 -1
  2. package/build/cjs/index.js +30 -0
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +1 -6
  5. package/build/cjs/index.typings.js +30 -0
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +386 -6
  8. package/build/cjs/meta.js +65 -0
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +1 -1
  11. package/build/es/index.mjs +30 -0
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +1 -6
  14. package/build/es/index.typings.mjs +30 -0
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +386 -6
  17. package/build/es/meta.mjs +61 -0
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +1 -1
  20. package/build/internal/cjs/index.js +30 -0
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +1 -6
  23. package/build/internal/cjs/index.typings.js +30 -0
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +386 -6
  26. package/build/internal/cjs/meta.js +65 -0
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +1 -1
  29. package/build/internal/es/index.mjs +30 -0
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +1 -6
  32. package/build/internal/es/index.typings.mjs +30 -0
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +386 -6
  35. package/build/internal/es/meta.mjs +61 -0
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +3 -3
@@ -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/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,