@wix/auto_sdk_portfolio_project-items 1.0.23 → 1.0.24

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.
@@ -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