@wix/portfolio 1.0.68 → 1.0.70

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.68",
3
+ "version": "1.0.70",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
@@ -19,10 +19,10 @@
19
19
  ],
20
20
  "dependencies": {
21
21
  "@wix/portfolio_collections": "1.0.14",
22
- "@wix/portfolio_portfolio-settings": "1.0.1",
22
+ "@wix/portfolio_portfolio-settings": "1.0.2",
23
23
  "@wix/portfolio_project-in-collections": "1.0.15",
24
- "@wix/portfolio_project-items": "1.0.18",
25
- "@wix/portfolio_projects": "1.0.19"
24
+ "@wix/portfolio_project-items": "1.0.20",
25
+ "@wix/portfolio_projects": "1.0.20"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@wix/sdk": "https://cdn.dev.wixpress.com/@wix/sdk/02e8069ab2fd783e0e6a080fc7d590e76cb26ab93c8389574286305b.tar.gz",
@@ -47,5 +47,5 @@
47
47
  "fqdn": ""
48
48
  }
49
49
  },
50
- "falconPackageHash": "0975e57acccf9eb91fb4fc183b09b9766d28534f7144ca50b56b77e9"
50
+ "falconPackageHash": "21726f40d73a8fac790c96ee5092dfc1cc81223cc7fc78c473898bcf"
51
51
  }
@@ -532,33 +532,47 @@ declare namespace context$4 {
532
532
  }
533
533
 
534
534
  interface PortfolioSettings {
535
+ /** The revision of the portfolio settings */
535
536
  revision?: string | null;
537
+ /** The project item settings */
536
538
  projectItemSettings?: ProjectItemSettings;
539
+ /** The media settings */
537
540
  mediaSettings?: MediaSettings;
541
+ /** The site menu settings */
538
542
  siteMenuSettings?: SiteMenuSettings;
539
543
  }
540
544
  interface ProjectItemSettings {
545
+ /** The direction to add items */
541
546
  addItemDirection?: AddItemDirection;
547
+ /** The default item name */
542
548
  defaultItemName?: DefaultItemName;
543
549
  }
544
550
  declare enum AddItemDirection {
551
+ /** Add items to the start of the gallery */
545
552
  GALLERY_START = "GALLERY_START",
553
+ /** Add items to the end of the gallery */
546
554
  GALLERY_END = "GALLERY_END"
547
555
  }
548
556
  declare enum DefaultItemName {
557
+ /** Use the file name as the default item name */
549
558
  FILE_NAME = "FILE_NAME",
559
+ /** Use an empty string as the default item name */
550
560
  EMPTY = "EMPTY"
551
561
  }
552
562
  interface MediaSettings {
563
+ /** The folder ID for the media */
553
564
  folderId?: string | null;
554
565
  }
555
566
  interface SiteMenuSettings {
567
+ /** Whether to automatically update the site menu */
556
568
  autoUpdateMenu?: boolean | null;
557
569
  }
558
570
  interface GetPortfolioSettingsResponse {
571
+ /** The portfolio settings */
559
572
  portfolioSettings?: PortfolioSettings;
560
573
  }
561
574
  interface UpdatePortfolioSettingsResponse {
575
+ /** The updated portfolio settings */
562
576
  updatedPortfolioSettings?: PortfolioSettings;
563
577
  }
564
578
  interface GetPortfolioSettingsResponseNonNullableFields {
@@ -606,7 +620,7 @@ interface Item extends ItemMetadataOneOf {
606
620
  video?: Video$2;
607
621
  /**
608
622
  * Id of the Project the items are part of
609
- * Project must exist before adding items to it. project can be created/updated/deleted using this //TODO
623
+ * Project must exist before adding items to it. You can create a project using the [ProjectService](https://dev.wix.com/docs/rest/business-solutions/portfolio/project)
610
624
  */
611
625
  projectId?: string | null;
612
626
  /**
@@ -617,7 +631,7 @@ interface Item extends ItemMetadataOneOf {
617
631
  /**
618
632
  * Index that determines which position a media item is displayed in the gallery. <br />
619
633
  *
620
- * Default: [Epoch](https://www.epoch101.com/) timestamp. <br /> //TODO: decide if needed, what happens if user add an item without sortOrder? do we give it the default timestamp? if not, does sorting by sortOrder will work when no sortOrder?
634
+ * Default: [Epoch](https://www.epoch101.com/) timestamp. <br />
621
635
  */
622
636
  sortOrder?: number | null;
623
637
  /** Item title. */
@@ -654,8 +668,11 @@ interface ItemMetadataOneOf {
654
668
  video?: Video$2;
655
669
  }
656
670
  declare enum Type {
671
+ /** Undefined item type. */
657
672
  UNDEFINED = "UNDEFINED",
673
+ /** Image item type. */
658
674
  IMAGE = "IMAGE",
675
+ /** Video item type. */
659
676
  VIDEO = "VIDEO"
660
677
  }
661
678
  interface Image$2 {
@@ -689,6 +706,7 @@ interface Link {
689
706
  target?: string | null;
690
707
  }
691
708
  interface GenerateTokenForProjectItemsResponse {
709
+ /** Generated media tokens for project items */
692
710
  mediaTokens?: ProjectItemMediaToken[];
693
711
  }
694
712
  interface ProjectItemMediaToken {
@@ -736,6 +754,7 @@ interface BulkCreateProjectItemsResponse {
736
754
  interface BulkCreateProjectItemResult {
737
755
  /** Holds information about an item in bulk create - id, index in original request array, action successful, error (if failed) */
738
756
  itemMetadata?: ItemMetadata$1;
757
+ /** Created item */
739
758
  item?: Item;
740
759
  }
741
760
  interface ItemMetadata$1 {
@@ -800,6 +819,7 @@ interface Cursors$2 {
800
819
  prev?: string | null;
801
820
  }
802
821
  interface MaskedItem {
822
+ /** Item to be updated */
803
823
  item?: Item;
804
824
  }
805
825
  interface BulkUpdateProjectItemsResponse {
@@ -811,6 +831,7 @@ interface BulkUpdateProjectItemsResponse {
811
831
  interface BulkUpdateProjectItemResult {
812
832
  /** Holds information about an item in bulk update - id, index in original request array, action successful, error (if failed). */
813
833
  itemMetadata?: ItemMetadata$1;
834
+ /** Updated item */
814
835
  item?: Item;
815
836
  }
816
837
  interface DeleteProjectItemResponse {
@@ -1021,7 +1042,7 @@ interface UpdateProjectItem {
1021
1042
  video?: Video$2;
1022
1043
  /**
1023
1044
  * Id of the Project the items are part of
1024
- * Project must exist before adding items to it. project can be created/updated/deleted using this //TODO
1045
+ * Project must exist before adding items to it. You can create a project using the [ProjectService](https://dev.wix.com/docs/rest/business-solutions/portfolio/project)
1025
1046
  */
1026
1047
  projectId?: string | null;
1027
1048
  /**
@@ -1032,7 +1053,7 @@ interface UpdateProjectItem {
1032
1053
  /**
1033
1054
  * Index that determines which position a media item is displayed in the gallery. <br />
1034
1055
  *
1035
- * Default: [Epoch](https://www.epoch101.com/) timestamp. <br /> //TODO: decide if needed, what happens if user add an item without sortOrder? do we give it the default timestamp? if not, does sorting by sortOrder will work when no sortOrder?
1056
+ * Default: [Epoch](https://www.epoch101.com/) timestamp. <br />
1036
1057
  */
1037
1058
  sortOrder?: number | null;
1038
1059
  /** Item title. */
@@ -1064,6 +1085,7 @@ interface UpdateProjectItem {
1064
1085
  interface BulkUpdateProjectItemsOptions {
1065
1086
  /** items to be updated. */
1066
1087
  items?: MaskedItem[];
1088
+ /** Return full entity after update */
1067
1089
  returnFullEntity?: boolean | null;
1068
1090
  }
1069
1091
  interface BulkDeleteProjectItemsOptions {
@@ -1304,13 +1326,17 @@ interface Settings$1 {
1304
1326
  keywords?: Keyword$1[];
1305
1327
  }
1306
1328
  interface GetProjectPageDataResponse {
1329
+ /** Project data */
1307
1330
  project?: Project$1;
1331
+ /** Previous project slug */
1308
1332
  previousProject?: ProjectSlug;
1333
+ /** Next project slug */
1309
1334
  nextProject?: ProjectSlug;
1310
1335
  }
1311
1336
  interface ProjectSlug {
1312
1337
  /** Project id */
1313
1338
  projectId?: string;
1339
+ /** Project slug */
1314
1340
  slug?: string;
1315
1341
  }
1316
1342
  interface IdentificationData$1 extends IdentificationDataIdOneOf$1 {
@@ -921,44 +921,61 @@ declare namespace index_d$4 {
921
921
  }
922
922
 
923
923
  interface PortfolioSettings {
924
+ /** The revision of the portfolio settings */
924
925
  revision?: string | null;
926
+ /** The project item settings */
925
927
  projectItemSettings?: ProjectItemSettings;
928
+ /** The media settings */
926
929
  mediaSettings?: MediaSettings;
930
+ /** The site menu settings */
927
931
  siteMenuSettings?: SiteMenuSettings;
928
932
  }
929
933
  interface ProjectItemSettings {
934
+ /** The direction to add items */
930
935
  addItemDirection?: AddItemDirection;
936
+ /** The default item name */
931
937
  defaultItemName?: DefaultItemName;
932
938
  }
933
939
  declare enum AddItemDirection {
940
+ /** Add items to the start of the gallery */
934
941
  GALLERY_START = "GALLERY_START",
942
+ /** Add items to the end of the gallery */
935
943
  GALLERY_END = "GALLERY_END"
936
944
  }
937
945
  declare enum DefaultItemName {
946
+ /** Use the file name as the default item name */
938
947
  FILE_NAME = "FILE_NAME",
948
+ /** Use an empty string as the default item name */
939
949
  EMPTY = "EMPTY"
940
950
  }
941
951
  interface MediaSettings {
952
+ /** The folder ID for the media */
942
953
  folderId?: string | null;
943
954
  }
944
955
  interface SiteMenuSettings {
956
+ /** Whether to automatically update the site menu */
945
957
  autoUpdateMenu?: boolean | null;
946
958
  }
947
959
  interface CreatePortfolioSettingsRequest {
960
+ /** The portfolio settings to create */
948
961
  portfolioSettings: PortfolioSettings;
949
962
  }
950
963
  interface CreatePortfolioSettingsResponse {
964
+ /** The created portfolio settings */
951
965
  portfolioSettings?: PortfolioSettings;
952
966
  }
953
967
  interface GetPortfolioSettingsRequest {
954
968
  }
955
969
  interface GetPortfolioSettingsResponse {
970
+ /** The portfolio settings */
956
971
  portfolioSettings?: PortfolioSettings;
957
972
  }
958
973
  interface UpdatePortfolioSettingsRequest {
974
+ /** The portfolio settings to update */
959
975
  portfolioSettings: PortfolioSettings;
960
976
  }
961
977
  interface UpdatePortfolioSettingsResponse {
978
+ /** The updated portfolio settings */
962
979
  updatedPortfolioSettings?: PortfolioSettings;
963
980
  }
964
981
  interface DomainEvent$3 extends DomainEventBodyOneOf$3 {
@@ -1140,7 +1157,7 @@ interface Item extends ItemMetadataOneOf {
1140
1157
  video?: Video$2;
1141
1158
  /**
1142
1159
  * Id of the Project the items are part of
1143
- * Project must exist before adding items to it. project can be created/updated/deleted using this //TODO
1160
+ * Project must exist before adding items to it. You can create a project using the [ProjectService](https://dev.wix.com/docs/rest/business-solutions/portfolio/project)
1144
1161
  */
1145
1162
  projectId?: string | null;
1146
1163
  /**
@@ -1151,7 +1168,7 @@ interface Item extends ItemMetadataOneOf {
1151
1168
  /**
1152
1169
  * Index that determines which position a media item is displayed in the gallery. <br />
1153
1170
  *
1154
- * Default: [Epoch](https://www.epoch101.com/) timestamp. <br /> //TODO: decide if needed, what happens if user add an item without sortOrder? do we give it the default timestamp? if not, does sorting by sortOrder will work when no sortOrder?
1171
+ * Default: [Epoch](https://www.epoch101.com/) timestamp. <br />
1155
1172
  */
1156
1173
  sortOrder?: number | null;
1157
1174
  /** Item title. */
@@ -1188,8 +1205,11 @@ interface ItemMetadataOneOf {
1188
1205
  video?: Video$2;
1189
1206
  }
1190
1207
  declare enum Type {
1208
+ /** Undefined item type. */
1191
1209
  UNDEFINED = "UNDEFINED",
1210
+ /** Image item type. */
1192
1211
  IMAGE = "IMAGE",
1212
+ /** Video item type. */
1193
1213
  VIDEO = "VIDEO"
1194
1214
  }
1195
1215
  interface Image$2 {
@@ -1268,6 +1288,7 @@ interface GenerateTokenForProjectItemsRequest {
1268
1288
  mediaIds: string[];
1269
1289
  }
1270
1290
  interface GenerateTokenForProjectItemsResponse {
1291
+ /** Generated media tokens for project items */
1271
1292
  mediaTokens?: ProjectItemMediaToken[];
1272
1293
  }
1273
1294
  interface ProjectItemMediaToken {
@@ -1465,6 +1486,7 @@ interface BulkCreateProjectItemsResponse {
1465
1486
  interface BulkCreateProjectItemResult {
1466
1487
  /** Holds information about an item in bulk create - id, index in original request array, action successful, error (if failed) */
1467
1488
  itemMetadata?: ItemMetadata$1;
1489
+ /** Created item */
1468
1490
  item?: Item;
1469
1491
  }
1470
1492
  interface ItemMetadata$1 {
@@ -1615,9 +1637,11 @@ interface UpdateProjectItemResponse {
1615
1637
  interface BulkUpdateProjectItemsRequest {
1616
1638
  /** items to be updated. */
1617
1639
  items?: MaskedItem[];
1640
+ /** Return full entity after update */
1618
1641
  returnFullEntity?: boolean | null;
1619
1642
  }
1620
1643
  interface MaskedItem {
1644
+ /** Item to be updated */
1621
1645
  item?: Item;
1622
1646
  }
1623
1647
  interface BulkUpdateProjectItemsResponse {
@@ -1629,6 +1653,7 @@ interface BulkUpdateProjectItemsResponse {
1629
1653
  interface BulkUpdateProjectItemResult {
1630
1654
  /** Holds information about an item in bulk update - id, index in original request array, action successful, error (if failed). */
1631
1655
  itemMetadata?: ItemMetadata$1;
1656
+ /** Updated item */
1632
1657
  item?: Item;
1633
1658
  }
1634
1659
  interface DeleteProjectItemRequest {
@@ -1916,7 +1941,7 @@ interface UpdateProjectItem {
1916
1941
  video?: Video$2;
1917
1942
  /**
1918
1943
  * Id of the Project the items are part of
1919
- * Project must exist before adding items to it. project can be created/updated/deleted using this //TODO
1944
+ * Project must exist before adding items to it. You can create a project using the [ProjectService](https://dev.wix.com/docs/rest/business-solutions/portfolio/project)
1920
1945
  */
1921
1946
  projectId?: string | null;
1922
1947
  /**
@@ -1927,7 +1952,7 @@ interface UpdateProjectItem {
1927
1952
  /**
1928
1953
  * Index that determines which position a media item is displayed in the gallery. <br />
1929
1954
  *
1930
- * Default: [Epoch](https://www.epoch101.com/) timestamp. <br /> //TODO: decide if needed, what happens if user add an item without sortOrder? do we give it the default timestamp? if not, does sorting by sortOrder will work when no sortOrder?
1955
+ * Default: [Epoch](https://www.epoch101.com/) timestamp. <br />
1931
1956
  */
1932
1957
  sortOrder?: number | null;
1933
1958
  /** Item title. */
@@ -1959,6 +1984,7 @@ interface UpdateProjectItem {
1959
1984
  interface BulkUpdateProjectItemsOptions {
1960
1985
  /** items to be updated. */
1961
1986
  items?: MaskedItem[];
1987
+ /** Return full entity after update */
1962
1988
  returnFullEntity?: boolean | null;
1963
1989
  }
1964
1990
  interface BulkDeleteProjectItemsOptions {
@@ -2310,13 +2336,17 @@ interface GetProjectPageDataRequest {
2310
2336
  projectSlug: string;
2311
2337
  }
2312
2338
  interface GetProjectPageDataResponse {
2339
+ /** Project data */
2313
2340
  project?: Project$1;
2341
+ /** Previous project slug */
2314
2342
  previousProject?: ProjectSlug;
2343
+ /** Next project slug */
2315
2344
  nextProject?: ProjectSlug;
2316
2345
  }
2317
2346
  interface ProjectSlug {
2318
2347
  /** Project id */
2319
2348
  projectId?: string;
2349
+ /** Project slug */
2320
2350
  slug?: string;
2321
2351
  }
2322
2352
  interface CreateNewPortfolioAppRequest {
@@ -854,44 +854,61 @@ declare namespace meta$4 {
854
854
  }
855
855
 
856
856
  interface PortfolioSettings$1 {
857
+ /** The revision of the portfolio settings */
857
858
  revision?: string | null;
859
+ /** The project item settings */
858
860
  projectItemSettings?: ProjectItemSettings$1;
861
+ /** The media settings */
859
862
  mediaSettings?: MediaSettings$1;
863
+ /** The site menu settings */
860
864
  siteMenuSettings?: SiteMenuSettings$1;
861
865
  }
862
866
  interface ProjectItemSettings$1 {
867
+ /** The direction to add items */
863
868
  addItemDirection?: AddItemDirection$1;
869
+ /** The default item name */
864
870
  defaultItemName?: DefaultItemName$1;
865
871
  }
866
872
  declare enum AddItemDirection$1 {
873
+ /** Add items to the start of the gallery */
867
874
  GALLERY_START = "GALLERY_START",
875
+ /** Add items to the end of the gallery */
868
876
  GALLERY_END = "GALLERY_END"
869
877
  }
870
878
  declare enum DefaultItemName$1 {
879
+ /** Use the file name as the default item name */
871
880
  FILE_NAME = "FILE_NAME",
881
+ /** Use an empty string as the default item name */
872
882
  EMPTY = "EMPTY"
873
883
  }
874
884
  interface MediaSettings$1 {
885
+ /** The folder ID for the media */
875
886
  folderId?: string | null;
876
887
  }
877
888
  interface SiteMenuSettings$1 {
889
+ /** Whether to automatically update the site menu */
878
890
  autoUpdateMenu?: boolean | null;
879
891
  }
880
892
  interface CreatePortfolioSettingsRequest$1 {
893
+ /** The portfolio settings to create */
881
894
  portfolioSettings: PortfolioSettings$1;
882
895
  }
883
896
  interface CreatePortfolioSettingsResponse$1 {
897
+ /** The created portfolio settings */
884
898
  portfolioSettings?: PortfolioSettings$1;
885
899
  }
886
900
  interface GetPortfolioSettingsRequest$1 {
887
901
  }
888
902
  interface GetPortfolioSettingsResponse$1 {
903
+ /** The portfolio settings */
889
904
  portfolioSettings?: PortfolioSettings$1;
890
905
  }
891
906
  interface UpdatePortfolioSettingsRequest$1 {
907
+ /** The portfolio settings to update */
892
908
  portfolioSettings: PortfolioSettings$1;
893
909
  }
894
910
  interface UpdatePortfolioSettingsResponse$1 {
911
+ /** The updated portfolio settings */
895
912
  updatedPortfolioSettings?: PortfolioSettings$1;
896
913
  }
897
914
  interface CreatePortfolioSettingsResponseNonNullableFields$1 {
@@ -920,44 +937,61 @@ interface UpdatePortfolioSettingsResponseNonNullableFields$1 {
920
937
  }
921
938
 
922
939
  interface PortfolioSettings {
940
+ /** The revision of the portfolio settings */
923
941
  revision?: string | null;
942
+ /** The project item settings */
924
943
  projectItemSettings?: ProjectItemSettings;
944
+ /** The media settings */
925
945
  mediaSettings?: MediaSettings;
946
+ /** The site menu settings */
926
947
  siteMenuSettings?: SiteMenuSettings;
927
948
  }
928
949
  interface ProjectItemSettings {
950
+ /** The direction to add items */
929
951
  addItemDirection?: AddItemDirection;
952
+ /** The default item name */
930
953
  defaultItemName?: DefaultItemName;
931
954
  }
932
955
  declare enum AddItemDirection {
956
+ /** Add items to the start of the gallery */
933
957
  GALLERY_START = "GALLERY_START",
958
+ /** Add items to the end of the gallery */
934
959
  GALLERY_END = "GALLERY_END"
935
960
  }
936
961
  declare enum DefaultItemName {
962
+ /** Use the file name as the default item name */
937
963
  FILE_NAME = "FILE_NAME",
964
+ /** Use an empty string as the default item name */
938
965
  EMPTY = "EMPTY"
939
966
  }
940
967
  interface MediaSettings {
968
+ /** The folder ID for the media */
941
969
  folderId?: string | null;
942
970
  }
943
971
  interface SiteMenuSettings {
972
+ /** Whether to automatically update the site menu */
944
973
  autoUpdateMenu?: boolean | null;
945
974
  }
946
975
  interface CreatePortfolioSettingsRequest {
976
+ /** The portfolio settings to create */
947
977
  portfolioSettings: PortfolioSettings;
948
978
  }
949
979
  interface CreatePortfolioSettingsResponse {
980
+ /** The created portfolio settings */
950
981
  portfolioSettings?: PortfolioSettings;
951
982
  }
952
983
  interface GetPortfolioSettingsRequest {
953
984
  }
954
985
  interface GetPortfolioSettingsResponse {
986
+ /** The portfolio settings */
955
987
  portfolioSettings?: PortfolioSettings;
956
988
  }
957
989
  interface UpdatePortfolioSettingsRequest {
990
+ /** The portfolio settings to update */
958
991
  portfolioSettings: PortfolioSettings;
959
992
  }
960
993
  interface UpdatePortfolioSettingsResponse {
994
+ /** The updated portfolio settings */
961
995
  updatedPortfolioSettings?: PortfolioSettings;
962
996
  }
963
997
  interface CreatePortfolioSettingsResponseNonNullableFields {
@@ -1014,7 +1048,7 @@ interface Item$1 extends ItemMetadataOneOf$1 {
1014
1048
  video?: Video$5;
1015
1049
  /**
1016
1050
  * Id of the Project the items are part of
1017
- * Project must exist before adding items to it. project can be created/updated/deleted using this //TODO
1051
+ * Project must exist before adding items to it. You can create a project using the [ProjectService](https://dev.wix.com/docs/rest/business-solutions/portfolio/project)
1018
1052
  */
1019
1053
  projectId?: string | null;
1020
1054
  /**
@@ -1025,7 +1059,7 @@ interface Item$1 extends ItemMetadataOneOf$1 {
1025
1059
  /**
1026
1060
  * Index that determines which position a media item is displayed in the gallery. <br />
1027
1061
  *
1028
- * Default: [Epoch](https://www.epoch101.com/) timestamp. <br /> //TODO: decide if needed, what happens if user add an item without sortOrder? do we give it the default timestamp? if not, does sorting by sortOrder will work when no sortOrder?
1062
+ * Default: [Epoch](https://www.epoch101.com/) timestamp. <br />
1029
1063
  */
1030
1064
  sortOrder?: number | null;
1031
1065
  /** Item title. */
@@ -1062,8 +1096,11 @@ interface ItemMetadataOneOf$1 {
1062
1096
  video?: Video$5;
1063
1097
  }
1064
1098
  declare enum Type$1 {
1099
+ /** Undefined item type. */
1065
1100
  UNDEFINED = "UNDEFINED",
1101
+ /** Image item type. */
1066
1102
  IMAGE = "IMAGE",
1103
+ /** Video item type. */
1067
1104
  VIDEO = "VIDEO"
1068
1105
  }
1069
1106
  interface Image$5 {
@@ -1149,6 +1186,7 @@ interface GenerateTokenForProjectItemsRequest$1 {
1149
1186
  mediaIds: string[];
1150
1187
  }
1151
1188
  interface GenerateTokenForProjectItemsResponse$1 {
1189
+ /** Generated media tokens for project items */
1152
1190
  mediaTokens?: ProjectItemMediaToken$1[];
1153
1191
  }
1154
1192
  interface ProjectItemMediaToken$1 {
@@ -1179,6 +1217,7 @@ interface BulkCreateProjectItemsResponse$1 {
1179
1217
  interface BulkCreateProjectItemResult$1 {
1180
1218
  /** Holds information about an item in bulk create - id, index in original request array, action successful, error (if failed) */
1181
1219
  itemMetadata?: ItemMetadata$3;
1220
+ /** Created item */
1182
1221
  item?: Item$1;
1183
1222
  }
1184
1223
  interface ItemMetadata$3 {
@@ -1267,9 +1306,11 @@ interface UpdateProjectItemResponse$1 {
1267
1306
  interface BulkUpdateProjectItemsRequest$1 {
1268
1307
  /** items to be updated. */
1269
1308
  items?: MaskedItem$1[];
1309
+ /** Return full entity after update */
1270
1310
  returnFullEntity?: boolean | null;
1271
1311
  }
1272
1312
  interface MaskedItem$1 {
1313
+ /** Item to be updated */
1273
1314
  item?: Item$1;
1274
1315
  }
1275
1316
  interface BulkUpdateProjectItemsResponse$1 {
@@ -1281,6 +1322,7 @@ interface BulkUpdateProjectItemsResponse$1 {
1281
1322
  interface BulkUpdateProjectItemResult$1 {
1282
1323
  /** Holds information about an item in bulk update - id, index in original request array, action successful, error (if failed). */
1283
1324
  itemMetadata?: ItemMetadata$3;
1325
+ /** Updated item */
1284
1326
  item?: Item$1;
1285
1327
  }
1286
1328
  interface DeleteProjectItemRequest$1 {
@@ -1673,7 +1715,7 @@ interface Item extends ItemMetadataOneOf {
1673
1715
  video?: Video$4;
1674
1716
  /**
1675
1717
  * Id of the Project the items are part of
1676
- * Project must exist before adding items to it. project can be created/updated/deleted using this //TODO
1718
+ * Project must exist before adding items to it. You can create a project using the [ProjectService](https://dev.wix.com/docs/rest/business-solutions/portfolio/project)
1677
1719
  */
1678
1720
  projectId?: string | null;
1679
1721
  /**
@@ -1684,7 +1726,7 @@ interface Item extends ItemMetadataOneOf {
1684
1726
  /**
1685
1727
  * Index that determines which position a media item is displayed in the gallery. <br />
1686
1728
  *
1687
- * Default: [Epoch](https://www.epoch101.com/) timestamp. <br /> //TODO: decide if needed, what happens if user add an item without sortOrder? do we give it the default timestamp? if not, does sorting by sortOrder will work when no sortOrder?
1729
+ * Default: [Epoch](https://www.epoch101.com/) timestamp. <br />
1688
1730
  */
1689
1731
  sortOrder?: number | null;
1690
1732
  /** Item title. */
@@ -1721,8 +1763,11 @@ interface ItemMetadataOneOf {
1721
1763
  video?: Video$4;
1722
1764
  }
1723
1765
  declare enum Type {
1766
+ /** Undefined item type. */
1724
1767
  UNDEFINED = "UNDEFINED",
1768
+ /** Image item type. */
1725
1769
  IMAGE = "IMAGE",
1770
+ /** Video item type. */
1726
1771
  VIDEO = "VIDEO"
1727
1772
  }
1728
1773
  interface Image$4 {
@@ -1760,6 +1805,7 @@ interface GenerateTokenForProjectItemsRequest {
1760
1805
  mediaIds: string[];
1761
1806
  }
1762
1807
  interface GenerateTokenForProjectItemsResponse {
1808
+ /** Generated media tokens for project items */
1763
1809
  mediaTokens?: ProjectItemMediaToken[];
1764
1810
  }
1765
1811
  interface ProjectItemMediaToken {
@@ -1790,6 +1836,7 @@ interface BulkCreateProjectItemsResponse {
1790
1836
  interface BulkCreateProjectItemResult {
1791
1837
  /** Holds information about an item in bulk create - id, index in original request array, action successful, error (if failed) */
1792
1838
  itemMetadata?: ItemMetadata$2;
1839
+ /** Created item */
1793
1840
  item?: Item;
1794
1841
  }
1795
1842
  interface ItemMetadata$2 {
@@ -1878,9 +1925,11 @@ interface UpdateProjectItemResponse {
1878
1925
  interface BulkUpdateProjectItemsRequest {
1879
1926
  /** items to be updated. */
1880
1927
  items?: MaskedItem[];
1928
+ /** Return full entity after update */
1881
1929
  returnFullEntity?: boolean | null;
1882
1930
  }
1883
1931
  interface MaskedItem {
1932
+ /** Item to be updated */
1884
1933
  item?: Item;
1885
1934
  }
1886
1935
  interface BulkUpdateProjectItemsResponse {
@@ -1892,6 +1941,7 @@ interface BulkUpdateProjectItemsResponse {
1892
1941
  interface BulkUpdateProjectItemResult {
1893
1942
  /** Holds information about an item in bulk update - id, index in original request array, action successful, error (if failed). */
1894
1943
  itemMetadata?: ItemMetadata$2;
1944
+ /** Updated item */
1895
1945
  item?: Item;
1896
1946
  }
1897
1947
  interface DeleteProjectItemRequest {
@@ -2345,13 +2395,17 @@ interface GetProjectPageDataRequest$1 {
2345
2395
  projectSlug: string;
2346
2396
  }
2347
2397
  interface GetProjectPageDataResponse$1 {
2398
+ /** Project data */
2348
2399
  project?: Project$3;
2400
+ /** Previous project slug */
2349
2401
  previousProject?: ProjectSlug$1;
2402
+ /** Next project slug */
2350
2403
  nextProject?: ProjectSlug$1;
2351
2404
  }
2352
2405
  interface ProjectSlug$1 {
2353
2406
  /** Project id */
2354
2407
  projectId?: string;
2408
+ /** Project slug */
2355
2409
  slug?: string;
2356
2410
  }
2357
2411
  interface CreateProjectRequest$1 {
@@ -3466,13 +3520,17 @@ interface GetProjectPageDataRequest {
3466
3520
  projectSlug: string;
3467
3521
  }
3468
3522
  interface GetProjectPageDataResponse {
3523
+ /** Project data */
3469
3524
  project?: Project$2;
3525
+ /** Previous project slug */
3470
3526
  previousProject?: ProjectSlug;
3527
+ /** Next project slug */
3471
3528
  nextProject?: ProjectSlug;
3472
3529
  }
3473
3530
  interface ProjectSlug {
3474
3531
  /** Project id */
3475
3532
  projectId?: string;
3533
+ /** Project slug */
3476
3534
  slug?: string;
3477
3535
  }
3478
3536
  interface CreateProjectRequest {