@wix/portfolio 1.0.61 → 1.0.63

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/portfolio",
3
- "version": "1.0.61",
3
+ "version": "1.0.63",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
@@ -20,8 +20,8 @@
20
20
  "dependencies": {
21
21
  "@wix/portfolio_collections": "1.0.13",
22
22
  "@wix/portfolio_project-in-collections": "1.0.13",
23
- "@wix/portfolio_project-items": "1.0.14",
24
- "@wix/portfolio_projects": "1.0.14"
23
+ "@wix/portfolio_project-items": "1.0.15",
24
+ "@wix/portfolio_projects": "1.0.15"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@wix/sdk": "https://cdn.dev.wixpress.com/@wix/sdk/02e8069ab2fd783e0e6a080fc7d590e76cb26ab93c8389574286305b.tar.gz",
@@ -46,5 +46,5 @@
46
46
  "fqdn": ""
47
47
  }
48
48
  },
49
- "falconPackageHash": "aa73dd379c5a2ad2809736cf4905c2c9ee650877d15812b0af36e595"
49
+ "falconPackageHash": "e3ee25f64b51bcdfafe235b31550932a9a4b16ff09263051dfbf815d"
50
50
  }
@@ -612,7 +612,44 @@ interface Link {
612
612
  */
613
613
  target?: string | null;
614
614
  }
615
- interface Paging {
615
+ interface BulkCreateProjectItemsResponse {
616
+ /** Array with all created items results. */
617
+ results?: BulkCreateProjectItemResult[];
618
+ /** Holds metadata of the entire bulk create operation */
619
+ bulkActionMetadata?: BulkActionMetadata$1;
620
+ }
621
+ interface BulkCreateProjectItemResult {
622
+ /** Holds information about an item in bulk create - id, index in original request array, action successful, error (if failed) */
623
+ itemMetadata?: ItemMetadata$1;
624
+ item?: Item;
625
+ }
626
+ interface ItemMetadata$1 {
627
+ /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
628
+ _id?: string | null;
629
+ /** Index of the item within the request array. Allows for correlation between request and response items. */
630
+ originalIndex?: number;
631
+ /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
632
+ success?: boolean;
633
+ /** Details about the error in case of failure. */
634
+ error?: ApplicationError$1;
635
+ }
636
+ interface ApplicationError$1 {
637
+ /** Error code. */
638
+ code?: string;
639
+ /** Description of the error. */
640
+ description?: string;
641
+ /** Data related to the error. */
642
+ data?: Record<string, any> | null;
643
+ }
644
+ interface BulkActionMetadata$1 {
645
+ /** Number of items that were successfully processed. */
646
+ totalSuccesses?: number;
647
+ /** Number of items that couldn't be processed. */
648
+ totalFailures?: number;
649
+ /** Number of failures without details because detailed failure threshold was exceeded. */
650
+ undetailedFailures?: number;
651
+ }
652
+ interface Paging$1 {
616
653
  /** Number of items to load. */
617
654
  limit?: number | null;
618
655
  /** Number of items to skip in the current sort order. */
@@ -647,12 +684,38 @@ interface Cursors$2 {
647
684
  /** Cursor pointing to the previous page in the list of results. */
648
685
  prev?: string | null;
649
686
  }
687
+ interface MaskedItem {
688
+ item?: Item;
689
+ }
690
+ interface BulkUpdateProjectItemsResponse {
691
+ /** Array with all updated items results. */
692
+ results?: BulkUpdateProjectItemResult[];
693
+ /** Holds metadata of the entire bulk update operation */
694
+ bulkActionMetadata?: BulkActionMetadata$1;
695
+ }
696
+ interface BulkUpdateProjectItemResult {
697
+ /** Holds information about an item in bulk update - id, index in original request array, action successful, error (if failed). */
698
+ itemMetadata?: ItemMetadata$1;
699
+ item?: Item;
700
+ }
650
701
  interface DeleteProjectItemResponse {
651
702
  /** Id of the Project the item is part of */
652
703
  projectId?: string;
653
704
  /** Id of deleted item */
654
705
  itemId?: string;
655
706
  }
707
+ interface BulkDeleteProjectItemsResponse {
708
+ /** Array with all deleted items results */
709
+ results?: BulkDeleteProjectItemResult[];
710
+ /** Holds metadata of the entire bulk delete operation */
711
+ bulkActionMetadata?: BulkActionMetadata$1;
712
+ }
713
+ interface BulkDeleteProjectItemResult {
714
+ /** Holds information about an item in bulk delete - id, index in original request array, action successful, error (if failed) */
715
+ itemMetadata?: ItemMetadata$1;
716
+ /** Id of the ProjectItem */
717
+ itemId?: string;
718
+ }
656
719
  interface IdentificationData$2 extends IdentificationDataIdOneOf$2 {
657
720
  /** ID of a site visitor that has not logged in to the site. */
658
721
  anonymousVisitorId?: string;
@@ -683,6 +746,36 @@ declare enum WebhookIdentityType$2 {
683
746
  WIX_USER = "WIX_USER",
684
747
  APP = "APP"
685
748
  }
749
+ interface BulkCreateProjectItemsResponseNonNullableFields {
750
+ results: {
751
+ itemMetadata?: {
752
+ originalIndex: number;
753
+ success: boolean;
754
+ error?: {
755
+ code: string;
756
+ description: string;
757
+ };
758
+ };
759
+ item?: {
760
+ image?: {
761
+ imageInfo: string;
762
+ focalPoint?: {
763
+ x: number;
764
+ y: number;
765
+ };
766
+ };
767
+ video?: {
768
+ videoInfo: string;
769
+ };
770
+ type: Type;
771
+ };
772
+ }[];
773
+ bulkActionMetadata?: {
774
+ totalSuccesses: number;
775
+ totalFailures: number;
776
+ undetailedFailures: number;
777
+ };
778
+ }
686
779
  interface ListProjectItemsResponseNonNullableFields {
687
780
  items: {
688
781
  image?: {
@@ -698,10 +791,58 @@ interface ListProjectItemsResponseNonNullableFields {
698
791
  type: Type;
699
792
  }[];
700
793
  }
794
+ interface BulkUpdateProjectItemsResponseNonNullableFields {
795
+ results: {
796
+ itemMetadata?: {
797
+ originalIndex: number;
798
+ success: boolean;
799
+ error?: {
800
+ code: string;
801
+ description: string;
802
+ };
803
+ };
804
+ item?: {
805
+ image?: {
806
+ imageInfo: string;
807
+ focalPoint?: {
808
+ x: number;
809
+ y: number;
810
+ };
811
+ };
812
+ video?: {
813
+ videoInfo: string;
814
+ };
815
+ type: Type;
816
+ };
817
+ }[];
818
+ bulkActionMetadata?: {
819
+ totalSuccesses: number;
820
+ totalFailures: number;
821
+ undetailedFailures: number;
822
+ };
823
+ }
701
824
  interface DeleteProjectItemResponseNonNullableFields {
702
825
  projectId: string;
703
826
  itemId: string;
704
827
  }
828
+ interface BulkDeleteProjectItemsResponseNonNullableFields {
829
+ results: {
830
+ itemMetadata?: {
831
+ originalIndex: number;
832
+ success: boolean;
833
+ error?: {
834
+ code: string;
835
+ description: string;
836
+ };
837
+ };
838
+ itemId: string;
839
+ }[];
840
+ bulkActionMetadata?: {
841
+ totalSuccesses: number;
842
+ totalFailures: number;
843
+ undetailedFailures: number;
844
+ };
845
+ }
705
846
  interface BaseEventMetadata$2 {
706
847
  /** App instance ID. */
707
848
  instanceId?: string | null;
@@ -759,9 +900,14 @@ interface ProjectItemUpdatedEnvelope {
759
900
  interface ProjectItemDeletedEnvelope {
760
901
  metadata: EventMetadata$2;
761
902
  }
903
+ interface BulkCreateProjectItemsOptions {
904
+ /** items to be created. */
905
+ items: Item[];
906
+ returnFullEntity?: boolean | null;
907
+ }
762
908
  interface ListProjectItemsOptions {
763
909
  /** limit and offset for ProjectItems - maximum limit is 200 per request, default is 50 */
764
- paging?: Paging;
910
+ paging?: Paging$1;
765
911
  }
766
912
  interface UpdateProjectItem {
767
913
  /** Information about the image. */
@@ -810,6 +956,15 @@ interface UpdateProjectItem {
810
956
  /** Link from the item. */
811
957
  link?: Link;
812
958
  }
959
+ interface BulkUpdateProjectItemsOptions {
960
+ /** items to be updated. */
961
+ items?: MaskedItem[];
962
+ returnFullEntity?: boolean | null;
963
+ }
964
+ interface BulkDeleteProjectItemsOptions {
965
+ /** Ids of the items to be deleted */
966
+ itemIds: string[];
967
+ }
813
968
 
814
969
  declare function createProjectItem$1(httpClient: HttpClient): (item: Item) => Promise<Item & {
815
970
  image?: {
@@ -824,6 +979,7 @@ declare function createProjectItem$1(httpClient: HttpClient): (item: Item) => Pr
824
979
  } | undefined;
825
980
  type: Type;
826
981
  }>;
982
+ declare function bulkCreateProjectItems$1(httpClient: HttpClient): (options?: BulkCreateProjectItemsOptions) => Promise<BulkCreateProjectItemsResponse & BulkCreateProjectItemsResponseNonNullableFields>;
827
983
  declare function getProjectItem$1(httpClient: HttpClient): (itemId: string) => Promise<Item & {
828
984
  image?: {
829
985
  imageInfo: string;
@@ -851,20 +1007,28 @@ declare function updateProjectItem$1(httpClient: HttpClient): (_id: string | nul
851
1007
  } | undefined;
852
1008
  type: Type;
853
1009
  }>;
1010
+ declare function bulkUpdateProjectItems$1(httpClient: HttpClient): (options?: BulkUpdateProjectItemsOptions) => Promise<BulkUpdateProjectItemsResponse & BulkUpdateProjectItemsResponseNonNullableFields>;
854
1011
  declare function deleteProjectItem$1(httpClient: HttpClient): (itemId: string) => Promise<DeleteProjectItemResponse & DeleteProjectItemResponseNonNullableFields>;
1012
+ declare function bulkDeleteProjectItems$1(httpClient: HttpClient): (options: BulkDeleteProjectItemsOptions) => Promise<BulkDeleteProjectItemsResponse & BulkDeleteProjectItemsResponseNonNullableFields>;
855
1013
  declare const onProjectItemCreated$1: EventDefinition<ProjectItemCreatedEnvelope, "wix.portfolio.project_items.v1.project_item_created">;
856
1014
  declare const onProjectItemUpdated$1: EventDefinition<ProjectItemUpdatedEnvelope, "wix.portfolio.project_items.v1.project_item_updated">;
857
1015
  declare const onProjectItemDeleted$1: EventDefinition<ProjectItemDeletedEnvelope, "wix.portfolio.project_items.v1.project_item_deleted">;
858
1016
 
859
1017
  declare const createProjectItem: BuildRESTFunction<typeof createProjectItem$1>;
1018
+ declare const bulkCreateProjectItems: BuildRESTFunction<typeof bulkCreateProjectItems$1>;
860
1019
  declare const getProjectItem: BuildRESTFunction<typeof getProjectItem$1>;
861
1020
  declare const listProjectItems: BuildRESTFunction<typeof listProjectItems$1>;
862
1021
  declare const updateProjectItem: BuildRESTFunction<typeof updateProjectItem$1>;
1022
+ declare const bulkUpdateProjectItems: BuildRESTFunction<typeof bulkUpdateProjectItems$1>;
863
1023
  declare const deleteProjectItem: BuildRESTFunction<typeof deleteProjectItem$1>;
1024
+ declare const bulkDeleteProjectItems: BuildRESTFunction<typeof bulkDeleteProjectItems$1>;
864
1025
  declare const onProjectItemCreated: BuildEventDefinition<typeof onProjectItemCreated$1>;
865
1026
  declare const onProjectItemUpdated: BuildEventDefinition<typeof onProjectItemUpdated$1>;
866
1027
  declare const onProjectItemDeleted: BuildEventDefinition<typeof onProjectItemDeleted$1>;
867
1028
 
1029
+ declare const context$2_bulkCreateProjectItems: typeof bulkCreateProjectItems;
1030
+ declare const context$2_bulkDeleteProjectItems: typeof bulkDeleteProjectItems;
1031
+ declare const context$2_bulkUpdateProjectItems: typeof bulkUpdateProjectItems;
868
1032
  declare const context$2_createProjectItem: typeof createProjectItem;
869
1033
  declare const context$2_deleteProjectItem: typeof deleteProjectItem;
870
1034
  declare const context$2_getProjectItem: typeof getProjectItem;
@@ -874,7 +1038,7 @@ declare const context$2_onProjectItemDeleted: typeof onProjectItemDeleted;
874
1038
  declare const context$2_onProjectItemUpdated: typeof onProjectItemUpdated;
875
1039
  declare const context$2_updateProjectItem: typeof updateProjectItem;
876
1040
  declare namespace context$2 {
877
- export { context$2_createProjectItem as createProjectItem, context$2_deleteProjectItem as deleteProjectItem, context$2_getProjectItem as getProjectItem, context$2_listProjectItems as listProjectItems, context$2_onProjectItemCreated as onProjectItemCreated, context$2_onProjectItemDeleted as onProjectItemDeleted, context$2_onProjectItemUpdated as onProjectItemUpdated, context$2_updateProjectItem as updateProjectItem };
1041
+ export { context$2_bulkCreateProjectItems as bulkCreateProjectItems, context$2_bulkDeleteProjectItems as bulkDeleteProjectItems, context$2_bulkUpdateProjectItems as bulkUpdateProjectItems, context$2_createProjectItem as createProjectItem, context$2_deleteProjectItem as deleteProjectItem, context$2_getProjectItem as getProjectItem, context$2_listProjectItems as listProjectItems, context$2_onProjectItemCreated as onProjectItemCreated, context$2_onProjectItemDeleted as onProjectItemDeleted, context$2_onProjectItemUpdated as onProjectItemUpdated, context$2_updateProjectItem as updateProjectItem };
878
1042
  }
879
1043
 
880
1044
  /** Project is the main entity of ProjectsService */
@@ -1085,10 +1249,115 @@ interface Cursors$1 {
1085
1249
  /** Cursor pointing to the previous page in the list of results. */
1086
1250
  prev?: string | null;
1087
1251
  }
1252
+ interface MaskedProject {
1253
+ project?: Project$1;
1254
+ }
1255
+ interface BulkUpdateProjectsResponse {
1256
+ /** Array with all updated items results. */
1257
+ results?: BulkUpdateProjectsResult[];
1258
+ /** Holds metadata of the entire bulk update operation */
1259
+ bulkActionMetadata?: BulkActionMetadata;
1260
+ }
1261
+ interface BulkUpdateProjectsResult {
1262
+ /** Holds information about an item in bulk update - id, index in original request array, action successful, error (if failed). */
1263
+ itemMetadata?: ItemMetadata;
1264
+ project?: Project$1;
1265
+ }
1266
+ interface ItemMetadata {
1267
+ /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
1268
+ _id?: string | null;
1269
+ /** Index of the item within the request array. Allows for correlation between request and response items. */
1270
+ originalIndex?: number;
1271
+ /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
1272
+ success?: boolean;
1273
+ /** Details about the error in case of failure. */
1274
+ error?: ApplicationError;
1275
+ }
1276
+ interface ApplicationError {
1277
+ /** Error code. */
1278
+ code?: string;
1279
+ /** Description of the error. */
1280
+ description?: string;
1281
+ /** Data related to the error. */
1282
+ data?: Record<string, any> | null;
1283
+ }
1284
+ interface BulkActionMetadata {
1285
+ /** Number of items that were successfully processed. */
1286
+ totalSuccesses?: number;
1287
+ /** Number of items that couldn't be processed. */
1288
+ totalFailures?: number;
1289
+ /** Number of failures without details because detailed failure threshold was exceeded. */
1290
+ undetailedFailures?: number;
1291
+ }
1088
1292
  interface DeleteProjectResponse {
1089
1293
  /** Id of the deleted Project */
1090
1294
  projectId?: string;
1091
1295
  }
1296
+ interface QueryV2 extends QueryV2PagingMethodOneOf {
1297
+ /** Paging options to limit and skip the number of items. */
1298
+ paging?: Paging;
1299
+ /** 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`. */
1300
+ cursorPaging?: CursorPaging;
1301
+ /**
1302
+ * Filter object in the following format:
1303
+ * `"filter" : {
1304
+ * "fieldName1": "value1",
1305
+ * "fieldName2":{"$operator":"value2"}
1306
+ * }`
1307
+ * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
1308
+ */
1309
+ filter?: Record<string, any> | null;
1310
+ /**
1311
+ * Sort object in the following format:
1312
+ * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
1313
+ */
1314
+ sort?: Sorting[];
1315
+ /** 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. */
1316
+ fields?: string[];
1317
+ /** 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. */
1318
+ fieldsets?: string[];
1319
+ }
1320
+ /** @oneof */
1321
+ interface QueryV2PagingMethodOneOf {
1322
+ /** Paging options to limit and skip the number of items. */
1323
+ paging?: Paging;
1324
+ /** 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`. */
1325
+ cursorPaging?: CursorPaging;
1326
+ }
1327
+ interface Sorting {
1328
+ /** Name of the field to sort by. */
1329
+ fieldName?: string;
1330
+ /** Sort order. */
1331
+ order?: SortOrder;
1332
+ }
1333
+ declare enum SortOrder {
1334
+ ASC = "ASC",
1335
+ DESC = "DESC"
1336
+ }
1337
+ interface Paging {
1338
+ /** Number of items to load. */
1339
+ limit?: number | null;
1340
+ /** Number of items to skip in the current sort order. */
1341
+ offset?: number | null;
1342
+ }
1343
+ interface UpdateProjectOrderInCollectionResponse$1 {
1344
+ /** project with new sort order set */
1345
+ projectInCollection?: ProjectInCollection$1;
1346
+ }
1347
+ interface ProjectInCollection$1 {
1348
+ /** Collection ID */
1349
+ collectionId?: string;
1350
+ /** Project */
1351
+ project?: Project$1;
1352
+ /** The sort order of the project in the given Collection */
1353
+ sortOrder?: number | null;
1354
+ }
1355
+ interface QueryProjectWithCollectionInfoResponse {
1356
+ /** The retrieved Projects in Collection */
1357
+ projects?: ProjectInCollection$1[];
1358
+ /** Paging metadata */
1359
+ metadata?: PagingMetadataV2;
1360
+ }
1092
1361
  interface ListProjectsResponseNonNullableFields {
1093
1362
  projects: {
1094
1363
  coverImage?: {
@@ -1124,9 +1393,135 @@ interface ListProjectsResponseNonNullableFields {
1124
1393
  };
1125
1394
  }[];
1126
1395
  }
1396
+ interface BulkUpdateProjectsResponseNonNullableFields {
1397
+ results: {
1398
+ itemMetadata?: {
1399
+ originalIndex: number;
1400
+ success: boolean;
1401
+ error?: {
1402
+ code: string;
1403
+ description: string;
1404
+ };
1405
+ };
1406
+ project?: {
1407
+ coverImage?: {
1408
+ imageInfo: string;
1409
+ focalPoint?: {
1410
+ x: number;
1411
+ y: number;
1412
+ };
1413
+ };
1414
+ coverVideo?: {
1415
+ videoInfo: string;
1416
+ };
1417
+ collectionIds: string[];
1418
+ details: {
1419
+ text: string;
1420
+ label: string;
1421
+ }[];
1422
+ url: string;
1423
+ seoData?: {
1424
+ tags: {
1425
+ type: string;
1426
+ children: string;
1427
+ custom: boolean;
1428
+ disabled: boolean;
1429
+ }[];
1430
+ settings?: {
1431
+ preventAutoRedirect: boolean;
1432
+ keywords: {
1433
+ term: string;
1434
+ isMain: boolean;
1435
+ }[];
1436
+ };
1437
+ };
1438
+ };
1439
+ }[];
1440
+ bulkActionMetadata?: {
1441
+ totalSuccesses: number;
1442
+ totalFailures: number;
1443
+ undetailedFailures: number;
1444
+ };
1445
+ }
1127
1446
  interface DeleteProjectResponseNonNullableFields {
1128
1447
  projectId: string;
1129
1448
  }
1449
+ interface UpdateProjectOrderInCollectionResponseNonNullableFields$1 {
1450
+ projectInCollection?: {
1451
+ collectionId: string;
1452
+ project?: {
1453
+ coverImage?: {
1454
+ imageInfo: string;
1455
+ focalPoint?: {
1456
+ x: number;
1457
+ y: number;
1458
+ };
1459
+ };
1460
+ coverVideo?: {
1461
+ videoInfo: string;
1462
+ };
1463
+ collectionIds: string[];
1464
+ details: {
1465
+ text: string;
1466
+ label: string;
1467
+ }[];
1468
+ url: string;
1469
+ seoData?: {
1470
+ tags: {
1471
+ type: string;
1472
+ children: string;
1473
+ custom: boolean;
1474
+ disabled: boolean;
1475
+ }[];
1476
+ settings?: {
1477
+ preventAutoRedirect: boolean;
1478
+ keywords: {
1479
+ term: string;
1480
+ isMain: boolean;
1481
+ }[];
1482
+ };
1483
+ };
1484
+ };
1485
+ };
1486
+ }
1487
+ interface QueryProjectWithCollectionInfoResponseNonNullableFields {
1488
+ projects: {
1489
+ collectionId: string;
1490
+ project?: {
1491
+ coverImage?: {
1492
+ imageInfo: string;
1493
+ focalPoint?: {
1494
+ x: number;
1495
+ y: number;
1496
+ };
1497
+ };
1498
+ coverVideo?: {
1499
+ videoInfo: string;
1500
+ };
1501
+ collectionIds: string[];
1502
+ details: {
1503
+ text: string;
1504
+ label: string;
1505
+ }[];
1506
+ url: string;
1507
+ seoData?: {
1508
+ tags: {
1509
+ type: string;
1510
+ children: string;
1511
+ custom: boolean;
1512
+ disabled: boolean;
1513
+ }[];
1514
+ settings?: {
1515
+ preventAutoRedirect: boolean;
1516
+ keywords: {
1517
+ term: string;
1518
+ isMain: boolean;
1519
+ }[];
1520
+ };
1521
+ };
1522
+ };
1523
+ }[];
1524
+ }
1130
1525
  interface BaseEventMetadata$1 {
1131
1526
  /** App instance ID. */
1132
1527
  instanceId?: string | null;
@@ -1238,6 +1633,11 @@ interface UpdateProject {
1238
1633
  */
1239
1634
  syncedProject?: boolean | null;
1240
1635
  }
1636
+ interface BulkUpdateProjectsOptions {
1637
+ /** projects to be updated. */
1638
+ projects?: MaskedProject[];
1639
+ returnFullEntity?: boolean | null;
1640
+ }
1241
1641
  interface QueryProjectsOptions {
1242
1642
  includePageUrl?: boolean | null | undefined;
1243
1643
  }
@@ -1323,6 +1723,15 @@ interface ProjectsQueryBuilder {
1323
1723
  /** @documentationMaturity preview */
1324
1724
  find: () => Promise<ProjectsQueryResult>;
1325
1725
  }
1726
+ interface UpdateProjectOrderInCollectionIdentifiers$1 {
1727
+ /** Id of the Project to update its order */
1728
+ projectId: string;
1729
+ /** Id of the collection in which the project will be re-ordered */
1730
+ collectionId: string;
1731
+ }
1732
+ interface QueryProjectsWithCollectionInfoOptions {
1733
+ includePageUrl?: boolean | null;
1734
+ }
1326
1735
 
1327
1736
  declare function createProject$1(httpClient: HttpClient): (project: Project$1) => Promise<Project$1 & {
1328
1737
  coverImage?: {
@@ -1424,8 +1833,11 @@ declare function updateProject$1(httpClient: HttpClient): (_id: string | null, p
1424
1833
  } | undefined;
1425
1834
  } | undefined;
1426
1835
  }>;
1836
+ declare function bulkUpdateProjects$1(httpClient: HttpClient): (options?: BulkUpdateProjectsOptions) => Promise<BulkUpdateProjectsResponse & BulkUpdateProjectsResponseNonNullableFields>;
1427
1837
  declare function deleteProject$1(httpClient: HttpClient): (projectId: string) => Promise<DeleteProjectResponse & DeleteProjectResponseNonNullableFields>;
1428
1838
  declare function queryProjects$1(httpClient: HttpClient): (options?: QueryProjectsOptions) => ProjectsQueryBuilder;
1839
+ declare function updateProjectOrderInCollection$3(httpClient: HttpClient): (identifiers: UpdateProjectOrderInCollectionIdentifiers$1, sortOrder: number | null) => Promise<UpdateProjectOrderInCollectionResponse$1 & UpdateProjectOrderInCollectionResponseNonNullableFields$1>;
1840
+ declare function queryProjectsWithCollectionInfo$1(httpClient: HttpClient): (query: QueryV2, options?: QueryProjectsWithCollectionInfoOptions) => Promise<QueryProjectWithCollectionInfoResponse & QueryProjectWithCollectionInfoResponseNonNullableFields>;
1429
1841
  declare const onProjectCreated$1: EventDefinition<ProjectCreatedEnvelope, "wix.portfolio.projects.v1.project_created">;
1430
1842
  declare const onProjectUpdated$1: EventDefinition<ProjectUpdatedEnvelope, "wix.portfolio.projects.v1.project_updated">;
1431
1843
  declare const onProjectDeleted$1: EventDefinition<ProjectDeletedEnvelope, "wix.portfolio.projects.v1.project_deleted">;
@@ -1434,12 +1846,16 @@ declare const createProject: BuildRESTFunction<typeof createProject$1>;
1434
1846
  declare const getProject: BuildRESTFunction<typeof getProject$1>;
1435
1847
  declare const listProjects: BuildRESTFunction<typeof listProjects$1>;
1436
1848
  declare const updateProject: BuildRESTFunction<typeof updateProject$1>;
1849
+ declare const bulkUpdateProjects: BuildRESTFunction<typeof bulkUpdateProjects$1>;
1437
1850
  declare const deleteProject: BuildRESTFunction<typeof deleteProject$1>;
1438
1851
  declare const queryProjects: BuildRESTFunction<typeof queryProjects$1>;
1852
+ declare const updateProjectOrderInCollection$2: BuildRESTFunction<typeof updateProjectOrderInCollection$3>;
1853
+ declare const queryProjectsWithCollectionInfo: BuildRESTFunction<typeof queryProjectsWithCollectionInfo$1>;
1439
1854
  declare const onProjectCreated: BuildEventDefinition<typeof onProjectCreated$1>;
1440
1855
  declare const onProjectUpdated: BuildEventDefinition<typeof onProjectUpdated$1>;
1441
1856
  declare const onProjectDeleted: BuildEventDefinition<typeof onProjectDeleted$1>;
1442
1857
 
1858
+ declare const context$1_bulkUpdateProjects: typeof bulkUpdateProjects;
1443
1859
  declare const context$1_createProject: typeof createProject;
1444
1860
  declare const context$1_deleteProject: typeof deleteProject;
1445
1861
  declare const context$1_getProject: typeof getProject;
@@ -1448,9 +1864,10 @@ declare const context$1_onProjectCreated: typeof onProjectCreated;
1448
1864
  declare const context$1_onProjectDeleted: typeof onProjectDeleted;
1449
1865
  declare const context$1_onProjectUpdated: typeof onProjectUpdated;
1450
1866
  declare const context$1_queryProjects: typeof queryProjects;
1867
+ declare const context$1_queryProjectsWithCollectionInfo: typeof queryProjectsWithCollectionInfo;
1451
1868
  declare const context$1_updateProject: typeof updateProject;
1452
1869
  declare namespace context$1 {
1453
- export { context$1_createProject as createProject, context$1_deleteProject as deleteProject, context$1_getProject as getProject, context$1_listProjects as listProjects, context$1_onProjectCreated as onProjectCreated, context$1_onProjectDeleted as onProjectDeleted, context$1_onProjectUpdated as onProjectUpdated, context$1_queryProjects as queryProjects, context$1_updateProject as updateProject };
1870
+ export { context$1_bulkUpdateProjects as bulkUpdateProjects, context$1_createProject as createProject, context$1_deleteProject as deleteProject, context$1_getProject as getProject, context$1_listProjects as listProjects, context$1_onProjectCreated as onProjectCreated, context$1_onProjectDeleted as onProjectDeleted, context$1_onProjectUpdated as onProjectUpdated, context$1_queryProjects as queryProjects, context$1_queryProjectsWithCollectionInfo as queryProjectsWithCollectionInfo, context$1_updateProject as updateProject, updateProjectOrderInCollection$2 as updateProjectOrderInCollection };
1454
1871
  }
1455
1872
 
1456
1873
  interface ProjectInCollection {