@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.
Files changed (37) hide show
  1. package/build/cjs/index.d.ts +6 -0
  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 +59 -20
  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 +423 -17
  8. package/build/cjs/meta.js +65 -0
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +6 -0
  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 +59 -20
  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 +423 -17
  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 +6 -0
  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 +59 -20
  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 +423 -17
  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 +6 -0
  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 +59 -20
  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 +423 -17
  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
@@ -286,19 +286,28 @@ interface BulkCreateProjectItemsRequest {
286
286
  * @maxSize 1000
287
287
  */
288
288
  items: Item[];
289
- /** Whether to include the created project items in the response. Set to `true` to receive the project items in the response. Default: `false` */
289
+ /**
290
+ * Whether to return the created project items.
291
+ *
292
+ * Set to `true` to return the project items in the response.
293
+ *
294
+ * Default: `false`
295
+ */
290
296
  returnFullEntity?: boolean | null;
291
297
  }
292
298
  interface BulkCreateProjectItemsResponse {
293
- /** Project items created by bulk action. */
299
+ /** List of individual Bulk Create Project Items results. */
294
300
  results?: BulkCreateProjectItemResult[];
295
- /** Bulk action metadata. */
301
+ /** Total number of successes and failures for Bulk Create Project Items. */
296
302
  bulkActionMetadata?: BulkActionMetadata;
297
303
  }
298
304
  interface BulkCreateProjectItemResult {
299
- /** Information about successful action or error for failure. */
305
+ /**
306
+ * Information about the created project item.
307
+ * Including its ID, index in the bulk request and whether it was successfully created.
308
+ */
300
309
  itemMetadata?: ItemMetadata;
301
- /** Newly created project item. */
310
+ /** Created project item. Only returned if `returnEntity` is set to `true` in the request. */
302
311
  item?: Item;
303
312
  }
304
313
  interface ItemMetadata {
@@ -467,11 +476,17 @@ interface UpdateProjectItemResponse {
467
476
  }
468
477
  interface BulkUpdateProjectItemsRequest {
469
478
  /**
470
- * items to be updated.
479
+ * Project items to update.
471
480
  * @maxSize 100
472
481
  */
473
482
  items?: MaskedItem[];
474
- /** Whether to include the updated project items in the response. Set to `true` to receive the project items in the response. Default: `false` */
483
+ /**
484
+ * Whether to return the updated project items.
485
+ *
486
+ * Set to `true` to return the project items in the response.
487
+ *
488
+ * Default: `false`
489
+ */
475
490
  returnFullEntity?: boolean | null;
476
491
  }
477
492
  interface MaskedItem {
@@ -479,15 +494,18 @@ interface MaskedItem {
479
494
  item?: Item;
480
495
  }
481
496
  interface BulkUpdateProjectItemsResponse {
482
- /** Project items updated by bulk action. */
497
+ /** List of individual Bulk Update Project Items results. */
483
498
  results?: BulkUpdateProjectItemResult[];
484
- /** Bulk action metadata. */
499
+ /** Total number of successes and failures for Bulk Update Project Items. */
485
500
  bulkActionMetadata?: BulkActionMetadata;
486
501
  }
487
502
  interface BulkUpdateProjectItemResult {
488
- /** Information about successful action or error for failure. */
503
+ /**
504
+ * Information about the updated project item.
505
+ * Including its ID, index in the bulk request and whether it was successfully updated.
506
+ */
489
507
  itemMetadata?: ItemMetadata;
490
- /** Updated project item. */
508
+ /** Updated project item. Only returned if `returnEntity` is set to `true` in the request. */
491
509
  item?: Item;
492
510
  }
493
511
  interface DeleteProjectItemRequest {
@@ -511,7 +529,7 @@ interface DeleteProjectItemResponse {
511
529
  }
512
530
  interface BulkDeleteProjectItemsRequest {
513
531
  /**
514
- * Project item IDs.
532
+ * IDs of project items to delete.
515
533
  * @format GUID
516
534
  * @minSize 1
517
535
  * @maxLength 100
@@ -519,16 +537,19 @@ interface BulkDeleteProjectItemsRequest {
519
537
  itemIds: string[];
520
538
  }
521
539
  interface BulkDeleteProjectItemsResponse {
522
- /** Project items deleted by bulk action. */
540
+ /** List of individual Bulk Delete Project Items results. */
523
541
  results?: BulkDeleteProjectItemResult[];
524
- /** Bulk action metadata. */
542
+ /** Total number of successes and failures for Bulk Delete Project Items. */
525
543
  bulkActionMetadata?: BulkActionMetadata;
526
544
  }
527
545
  interface BulkDeleteProjectItemResult {
528
- /** Information about successful action or error for failure. */
546
+ /**
547
+ * Information about the deleted project item.
548
+ * Including its ID, index in the bulk request and whether it was successfully deleted.
549
+ */
529
550
  itemMetadata?: ItemMetadata;
530
551
  /**
531
- * Project item ID.
552
+ * ID of the deleted project item.
532
553
  * @format GUID
533
554
  */
534
555
  itemId?: string;
@@ -834,6 +855,8 @@ declare function onProjectItemUpdated(handler: (event: ProjectItemUpdatedEnvelop
834
855
  declare function createProjectItem(item: Item): Promise<NonNullablePaths<Item, `image.focalPoint.x` | `image.focalPoint.y` | `type`, 4>>;
835
856
  /**
836
857
  * Creates multiple project items.
858
+ *
859
+ * To create a single project item, call Create Project Item.
837
860
  * @public
838
861
  * @requiredField options.items
839
862
  * @permissionId PORTFOLIO.PROJECT_ITEM_CREATE
@@ -848,7 +871,13 @@ interface BulkCreateProjectItemsOptions {
848
871
  * @maxSize 1000
849
872
  */
850
873
  items: Item[];
851
- /** Whether to include the created project items in the response. Set to `true` to receive the project items in the response. Default: `false` */
874
+ /**
875
+ * Whether to return the created project items.
876
+ *
877
+ * Set to `true` to return the project items in the response.
878
+ *
879
+ * Default: `false`
880
+ */
852
881
  returnFullEntity?: boolean | null;
853
882
  }
854
883
  /**
@@ -934,6 +963,8 @@ interface UpdateProjectItem {
934
963
  }
935
964
  /**
936
965
  * Updates multiple project items.
966
+ *
967
+ * To update a single project item, call Update Project Item.
937
968
  * @public
938
969
  * @requiredField options.items.item
939
970
  * @requiredField options.items.item._id
@@ -944,11 +975,17 @@ interface UpdateProjectItem {
944
975
  declare function bulkUpdateProjectItems(options?: NonNullablePaths<BulkUpdateProjectItemsOptions, `items.${number}.item` | `items.${number}.item._id`, 5>): Promise<NonNullablePaths<BulkUpdateProjectItemsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `results.${number}.item.type` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 6>>;
945
976
  interface BulkUpdateProjectItemsOptions {
946
977
  /**
947
- * items to be updated.
978
+ * Project items to update.
948
979
  * @maxSize 100
949
980
  */
950
981
  items?: MaskedItem[];
951
- /** Whether to include the updated project items in the response. Set to `true` to receive the project items in the response. Default: `false` */
982
+ /**
983
+ * Whether to return the updated project items.
984
+ *
985
+ * Set to `true` to return the project items in the response.
986
+ *
987
+ * Default: `false`
988
+ */
952
989
  returnFullEntity?: boolean | null;
953
990
  }
954
991
  /**
@@ -963,6 +1000,8 @@ interface BulkUpdateProjectItemsOptions {
963
1000
  declare function deleteProjectItem(itemId: string): Promise<NonNullablePaths<DeleteProjectItemResponse, `projectId` | `itemId`, 2>>;
964
1001
  /**
965
1002
  * Deletes multiple project items.
1003
+ *
1004
+ * To delete a single project item, call Delete Project Item.
966
1005
  * @public
967
1006
  * @requiredField options
968
1007
  * @requiredField options.itemIds
@@ -973,7 +1012,7 @@ declare function deleteProjectItem(itemId: string): Promise<NonNullablePaths<Del
973
1012
  declare function bulkDeleteProjectItems(options: NonNullablePaths<BulkDeleteProjectItemsOptions, `itemIds`, 2>): Promise<NonNullablePaths<BulkDeleteProjectItemsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `results.${number}.itemId` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 6>>;
974
1013
  interface BulkDeleteProjectItemsOptions {
975
1014
  /**
976
- * Project item IDs.
1015
+ * IDs of project items to delete.
977
1016
  * @format GUID
978
1017
  * @minSize 1
979
1018
  * @maxLength 100
@@ -230,6 +230,9 @@ function createProjectItem(payload) {
230
230
  method: "POST",
231
231
  methodFqn: "com.wixpress.portfolio.projectitems.ProjectItemsService.CreateProjectItem",
232
232
  packageName: PACKAGE_NAME,
233
+ migrationOptions: {
234
+ optInTransformResponse: true
235
+ },
233
236
  url: resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl({
234
237
  protoPath: "/api/v1/portfolio/items",
235
238
  data: serializedData,
@@ -300,6 +303,9 @@ function bulkCreateProjectItems(payload) {
300
303
  method: "POST",
301
304
  methodFqn: "com.wixpress.portfolio.projectitems.ProjectItemsService.BulkCreateProjectItems",
302
305
  packageName: PACKAGE_NAME,
306
+ migrationOptions: {
307
+ optInTransformResponse: true
308
+ },
303
309
  url: resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl({
304
310
  protoPath: "/api/v1/bulk/portfolio/items/create",
305
311
  data: serializedData,
@@ -346,6 +352,9 @@ function getProjectItem(payload) {
346
352
  method: "GET",
347
353
  methodFqn: "com.wixpress.portfolio.projectitems.ProjectItemsService.GetProjectItem",
348
354
  packageName: PACKAGE_NAME,
355
+ migrationOptions: {
356
+ optInTransformResponse: true
357
+ },
349
358
  url: resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl({
350
359
  protoPath: "/api/v1/portfolio/items/{itemId}",
351
360
  data: payload,
@@ -401,6 +410,9 @@ function listProjectItems(payload) {
401
410
  method: "GET",
402
411
  methodFqn: "com.wixpress.portfolio.projectitems.ProjectItemsService.ListProjectItems",
403
412
  packageName: PACKAGE_NAME,
413
+ migrationOptions: {
414
+ optInTransformResponse: true
415
+ },
404
416
  url: resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl({
405
417
  protoPath: "/api/v1/portfolio/projects/{projectId}/items",
406
418
  data: payload,
@@ -473,6 +485,9 @@ function updateProjectItem(payload) {
473
485
  method: "PATCH",
474
486
  methodFqn: "com.wixpress.portfolio.projectitems.ProjectItemsService.UpdateProjectItem",
475
487
  packageName: PACKAGE_NAME,
488
+ migrationOptions: {
489
+ optInTransformResponse: true
490
+ },
476
491
  url: resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl({
477
492
  protoPath: "/api/v1/portfolio/items/{item.id}",
478
493
  data: serializedData,
@@ -547,6 +562,9 @@ function bulkUpdateProjectItems(payload) {
547
562
  method: "PATCH",
548
563
  methodFqn: "com.wixpress.portfolio.projectitems.ProjectItemsService.BulkUpdateProjectItems",
549
564
  packageName: PACKAGE_NAME,
565
+ migrationOptions: {
566
+ optInTransformResponse: true
567
+ },
550
568
  url: resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl({
551
569
  protoPath: "/api/v1/bulk/portfolio/items/update",
552
570
  data: serializedData,
@@ -593,6 +611,9 @@ function deleteProjectItem(payload) {
593
611
  method: "DELETE",
594
612
  methodFqn: "com.wixpress.portfolio.projectitems.ProjectItemsService.DeleteProjectItem",
595
613
  packageName: PACKAGE_NAME,
614
+ migrationOptions: {
615
+ optInTransformResponse: true
616
+ },
596
617
  url: resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl({
597
618
  protoPath: "/api/v1/portfolio/items/{itemId}",
598
619
  data: payload,
@@ -611,6 +632,9 @@ function bulkDeleteProjectItems(payload) {
611
632
  method: "DELETE",
612
633
  methodFqn: "com.wixpress.portfolio.projectitems.ProjectItemsService.BulkDeleteProjectItems",
613
634
  packageName: PACKAGE_NAME,
635
+ migrationOptions: {
636
+ optInTransformResponse: true
637
+ },
614
638
  url: resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl({
615
639
  protoPath: "/api/v1/bulk/portfolio/items/delete",
616
640
  data: payload,
@@ -629,6 +653,9 @@ function duplicateProjectItems(payload) {
629
653
  method: "POST",
630
654
  methodFqn: "com.wixpress.portfolio.projectitems.ProjectItemsService.DuplicateProjectItems",
631
655
  packageName: PACKAGE_NAME,
656
+ migrationOptions: {
657
+ optInTransformResponse: true
658
+ },
632
659
  url: resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl({
633
660
  protoPath: "/api/v1/items/duplicate",
634
661
  data: payload,
@@ -647,6 +674,9 @@ function generateTokenForProjectItems(payload) {
647
674
  method: "POST",
648
675
  methodFqn: "com.wixpress.portfolio.portfolioapp.MediaService.GenerateTokenForProjectItems",
649
676
  packageName: PACKAGE_NAME,
677
+ migrationOptions: {
678
+ optInTransformResponse: true
679
+ },
650
680
  url: resolveComWixpressPortfolioPortfolioappMediaServiceUrl({
651
681
  protoPath: "/api/v1/portfolio/project/items/media",
652
682
  data: payload,