@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.
- package/build/cjs/index.d.ts +6 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +59 -20
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +37 -16
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +6 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +59 -20
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +37 -16
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +6 -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.map +1 -1
- package/build/internal/cjs/meta.d.ts +37 -16
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +6 -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.map +1 -1
- package/build/internal/es/meta.d.mts +37 -16
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -286,19 +286,28 @@ interface BulkCreateProjectItemsRequest {
|
|
|
286
286
|
* @maxSize 1000
|
|
287
287
|
*/
|
|
288
288
|
items: Item[];
|
|
289
|
-
/**
|
|
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
|
-
/**
|
|
299
|
+
/** List of individual Bulk Create Project Items results. */
|
|
294
300
|
results?: BulkCreateProjectItemResult[];
|
|
295
|
-
/** Bulk
|
|
301
|
+
/** Total number of successes and failures for Bulk Create Project Items. */
|
|
296
302
|
bulkActionMetadata?: BulkActionMetadata;
|
|
297
303
|
}
|
|
298
304
|
interface BulkCreateProjectItemResult {
|
|
299
|
-
/**
|
|
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
|
-
/**
|
|
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
|
|
479
|
+
* Project items to update.
|
|
471
480
|
* @maxSize 100
|
|
472
481
|
*/
|
|
473
482
|
items?: MaskedItem[];
|
|
474
|
-
/**
|
|
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
|
-
/**
|
|
497
|
+
/** List of individual Bulk Update Project Items results. */
|
|
483
498
|
results?: BulkUpdateProjectItemResult[];
|
|
484
|
-
/** Bulk
|
|
499
|
+
/** Total number of successes and failures for Bulk Update Project Items. */
|
|
485
500
|
bulkActionMetadata?: BulkActionMetadata;
|
|
486
501
|
}
|
|
487
502
|
interface BulkUpdateProjectItemResult {
|
|
488
|
-
/**
|
|
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
|
-
*
|
|
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
|
-
/**
|
|
540
|
+
/** List of individual Bulk Delete Project Items results. */
|
|
523
541
|
results?: BulkDeleteProjectItemResult[];
|
|
524
|
-
/** Bulk
|
|
542
|
+
/** Total number of successes and failures for Bulk Delete Project Items. */
|
|
525
543
|
bulkActionMetadata?: BulkActionMetadata;
|
|
526
544
|
}
|
|
527
545
|
interface BulkDeleteProjectItemResult {
|
|
528
|
-
/**
|
|
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
|
-
*
|
|
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
|
-
/**
|
|
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
|
|
978
|
+
* Project items to update.
|
|
948
979
|
* @maxSize 100
|
|
949
980
|
*/
|
|
950
981
|
items?: MaskedItem[];
|
|
951
|
-
/**
|
|
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
|
-
*
|
|
1015
|
+
* IDs of project items to delete.
|
|
977
1016
|
* @format GUID
|
|
978
1017
|
* @minSize 1
|
|
979
1018
|
* @maxLength 100
|