@wix/portfolio 1.0.68 → 1.0.69

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.69",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
@@ -21,7 +21,7 @@
21
21
  "@wix/portfolio_collections": "1.0.14",
22
22
  "@wix/portfolio_portfolio-settings": "1.0.1",
23
23
  "@wix/portfolio_project-in-collections": "1.0.15",
24
- "@wix/portfolio_project-items": "1.0.18",
24
+ "@wix/portfolio_project-items": "1.0.19",
25
25
  "@wix/portfolio_projects": "1.0.19"
26
26
  },
27
27
  "devDependencies": {
@@ -47,5 +47,5 @@
47
47
  "fqdn": ""
48
48
  }
49
49
  },
50
- "falconPackageHash": "0975e57acccf9eb91fb4fc183b09b9766d28534f7144ca50b56b77e9"
50
+ "falconPackageHash": "48b77fdb492305fdb4f4e9d844c78e5b30fdb2da87cdab232d9baed0"
51
51
  }
@@ -606,7 +606,7 @@ interface Item extends ItemMetadataOneOf {
606
606
  video?: Video$2;
607
607
  /**
608
608
  * 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
609
+ * 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
610
  */
611
611
  projectId?: string | null;
612
612
  /**
@@ -617,7 +617,7 @@ interface Item extends ItemMetadataOneOf {
617
617
  /**
618
618
  * Index that determines which position a media item is displayed in the gallery. <br />
619
619
  *
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?
620
+ * Default: [Epoch](https://www.epoch101.com/) timestamp. <br />
621
621
  */
622
622
  sortOrder?: number | null;
623
623
  /** Item title. */
@@ -654,8 +654,11 @@ interface ItemMetadataOneOf {
654
654
  video?: Video$2;
655
655
  }
656
656
  declare enum Type {
657
+ /** Undefined item type. */
657
658
  UNDEFINED = "UNDEFINED",
659
+ /** Image item type. */
658
660
  IMAGE = "IMAGE",
661
+ /** Video item type. */
659
662
  VIDEO = "VIDEO"
660
663
  }
661
664
  interface Image$2 {
@@ -736,6 +739,7 @@ interface BulkCreateProjectItemsResponse {
736
739
  interface BulkCreateProjectItemResult {
737
740
  /** Holds information about an item in bulk create - id, index in original request array, action successful, error (if failed) */
738
741
  itemMetadata?: ItemMetadata$1;
742
+ /** Created item */
739
743
  item?: Item;
740
744
  }
741
745
  interface ItemMetadata$1 {
@@ -800,6 +804,7 @@ interface Cursors$2 {
800
804
  prev?: string | null;
801
805
  }
802
806
  interface MaskedItem {
807
+ /** Item to be updated */
803
808
  item?: Item;
804
809
  }
805
810
  interface BulkUpdateProjectItemsResponse {
@@ -811,6 +816,7 @@ interface BulkUpdateProjectItemsResponse {
811
816
  interface BulkUpdateProjectItemResult {
812
817
  /** Holds information about an item in bulk update - id, index in original request array, action successful, error (if failed). */
813
818
  itemMetadata?: ItemMetadata$1;
819
+ /** Updated item */
814
820
  item?: Item;
815
821
  }
816
822
  interface DeleteProjectItemResponse {
@@ -1021,7 +1027,7 @@ interface UpdateProjectItem {
1021
1027
  video?: Video$2;
1022
1028
  /**
1023
1029
  * 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
1030
+ * 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
1031
  */
1026
1032
  projectId?: string | null;
1027
1033
  /**
@@ -1032,7 +1038,7 @@ interface UpdateProjectItem {
1032
1038
  /**
1033
1039
  * Index that determines which position a media item is displayed in the gallery. <br />
1034
1040
  *
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?
1041
+ * Default: [Epoch](https://www.epoch101.com/) timestamp. <br />
1036
1042
  */
1037
1043
  sortOrder?: number | null;
1038
1044
  /** Item title. */
@@ -1064,6 +1070,7 @@ interface UpdateProjectItem {
1064
1070
  interface BulkUpdateProjectItemsOptions {
1065
1071
  /** items to be updated. */
1066
1072
  items?: MaskedItem[];
1073
+ /** Return full entity after update */
1067
1074
  returnFullEntity?: boolean | null;
1068
1075
  }
1069
1076
  interface BulkDeleteProjectItemsOptions {
@@ -1140,7 +1140,7 @@ interface Item extends ItemMetadataOneOf {
1140
1140
  video?: Video$2;
1141
1141
  /**
1142
1142
  * 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
1143
+ * 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
1144
  */
1145
1145
  projectId?: string | null;
1146
1146
  /**
@@ -1151,7 +1151,7 @@ interface Item extends ItemMetadataOneOf {
1151
1151
  /**
1152
1152
  * Index that determines which position a media item is displayed in the gallery. <br />
1153
1153
  *
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?
1154
+ * Default: [Epoch](https://www.epoch101.com/) timestamp. <br />
1155
1155
  */
1156
1156
  sortOrder?: number | null;
1157
1157
  /** Item title. */
@@ -1188,8 +1188,11 @@ interface ItemMetadataOneOf {
1188
1188
  video?: Video$2;
1189
1189
  }
1190
1190
  declare enum Type {
1191
+ /** Undefined item type. */
1191
1192
  UNDEFINED = "UNDEFINED",
1193
+ /** Image item type. */
1192
1194
  IMAGE = "IMAGE",
1195
+ /** Video item type. */
1193
1196
  VIDEO = "VIDEO"
1194
1197
  }
1195
1198
  interface Image$2 {
@@ -1465,6 +1468,7 @@ interface BulkCreateProjectItemsResponse {
1465
1468
  interface BulkCreateProjectItemResult {
1466
1469
  /** Holds information about an item in bulk create - id, index in original request array, action successful, error (if failed) */
1467
1470
  itemMetadata?: ItemMetadata$1;
1471
+ /** Created item */
1468
1472
  item?: Item;
1469
1473
  }
1470
1474
  interface ItemMetadata$1 {
@@ -1615,9 +1619,11 @@ interface UpdateProjectItemResponse {
1615
1619
  interface BulkUpdateProjectItemsRequest {
1616
1620
  /** items to be updated. */
1617
1621
  items?: MaskedItem[];
1622
+ /** Return full entity after update */
1618
1623
  returnFullEntity?: boolean | null;
1619
1624
  }
1620
1625
  interface MaskedItem {
1626
+ /** Item to be updated */
1621
1627
  item?: Item;
1622
1628
  }
1623
1629
  interface BulkUpdateProjectItemsResponse {
@@ -1629,6 +1635,7 @@ interface BulkUpdateProjectItemsResponse {
1629
1635
  interface BulkUpdateProjectItemResult {
1630
1636
  /** Holds information about an item in bulk update - id, index in original request array, action successful, error (if failed). */
1631
1637
  itemMetadata?: ItemMetadata$1;
1638
+ /** Updated item */
1632
1639
  item?: Item;
1633
1640
  }
1634
1641
  interface DeleteProjectItemRequest {
@@ -1916,7 +1923,7 @@ interface UpdateProjectItem {
1916
1923
  video?: Video$2;
1917
1924
  /**
1918
1925
  * 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
1926
+ * 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
1927
  */
1921
1928
  projectId?: string | null;
1922
1929
  /**
@@ -1927,7 +1934,7 @@ interface UpdateProjectItem {
1927
1934
  /**
1928
1935
  * Index that determines which position a media item is displayed in the gallery. <br />
1929
1936
  *
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?
1937
+ * Default: [Epoch](https://www.epoch101.com/) timestamp. <br />
1931
1938
  */
1932
1939
  sortOrder?: number | null;
1933
1940
  /** Item title. */
@@ -1959,6 +1966,7 @@ interface UpdateProjectItem {
1959
1966
  interface BulkUpdateProjectItemsOptions {
1960
1967
  /** items to be updated. */
1961
1968
  items?: MaskedItem[];
1969
+ /** Return full entity after update */
1962
1970
  returnFullEntity?: boolean | null;
1963
1971
  }
1964
1972
  interface BulkDeleteProjectItemsOptions {
@@ -1014,7 +1014,7 @@ interface Item$1 extends ItemMetadataOneOf$1 {
1014
1014
  video?: Video$5;
1015
1015
  /**
1016
1016
  * 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
1017
+ * 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
1018
  */
1019
1019
  projectId?: string | null;
1020
1020
  /**
@@ -1025,7 +1025,7 @@ interface Item$1 extends ItemMetadataOneOf$1 {
1025
1025
  /**
1026
1026
  * Index that determines which position a media item is displayed in the gallery. <br />
1027
1027
  *
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?
1028
+ * Default: [Epoch](https://www.epoch101.com/) timestamp. <br />
1029
1029
  */
1030
1030
  sortOrder?: number | null;
1031
1031
  /** Item title. */
@@ -1062,8 +1062,11 @@ interface ItemMetadataOneOf$1 {
1062
1062
  video?: Video$5;
1063
1063
  }
1064
1064
  declare enum Type$1 {
1065
+ /** Undefined item type. */
1065
1066
  UNDEFINED = "UNDEFINED",
1067
+ /** Image item type. */
1066
1068
  IMAGE = "IMAGE",
1069
+ /** Video item type. */
1067
1070
  VIDEO = "VIDEO"
1068
1071
  }
1069
1072
  interface Image$5 {
@@ -1179,6 +1182,7 @@ interface BulkCreateProjectItemsResponse$1 {
1179
1182
  interface BulkCreateProjectItemResult$1 {
1180
1183
  /** Holds information about an item in bulk create - id, index in original request array, action successful, error (if failed) */
1181
1184
  itemMetadata?: ItemMetadata$3;
1185
+ /** Created item */
1182
1186
  item?: Item$1;
1183
1187
  }
1184
1188
  interface ItemMetadata$3 {
@@ -1267,9 +1271,11 @@ interface UpdateProjectItemResponse$1 {
1267
1271
  interface BulkUpdateProjectItemsRequest$1 {
1268
1272
  /** items to be updated. */
1269
1273
  items?: MaskedItem$1[];
1274
+ /** Return full entity after update */
1270
1275
  returnFullEntity?: boolean | null;
1271
1276
  }
1272
1277
  interface MaskedItem$1 {
1278
+ /** Item to be updated */
1273
1279
  item?: Item$1;
1274
1280
  }
1275
1281
  interface BulkUpdateProjectItemsResponse$1 {
@@ -1281,6 +1287,7 @@ interface BulkUpdateProjectItemsResponse$1 {
1281
1287
  interface BulkUpdateProjectItemResult$1 {
1282
1288
  /** Holds information about an item in bulk update - id, index in original request array, action successful, error (if failed). */
1283
1289
  itemMetadata?: ItemMetadata$3;
1290
+ /** Updated item */
1284
1291
  item?: Item$1;
1285
1292
  }
1286
1293
  interface DeleteProjectItemRequest$1 {
@@ -1673,7 +1680,7 @@ interface Item extends ItemMetadataOneOf {
1673
1680
  video?: Video$4;
1674
1681
  /**
1675
1682
  * 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
1683
+ * 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
1684
  */
1678
1685
  projectId?: string | null;
1679
1686
  /**
@@ -1684,7 +1691,7 @@ interface Item extends ItemMetadataOneOf {
1684
1691
  /**
1685
1692
  * Index that determines which position a media item is displayed in the gallery. <br />
1686
1693
  *
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?
1694
+ * Default: [Epoch](https://www.epoch101.com/) timestamp. <br />
1688
1695
  */
1689
1696
  sortOrder?: number | null;
1690
1697
  /** Item title. */
@@ -1721,8 +1728,11 @@ interface ItemMetadataOneOf {
1721
1728
  video?: Video$4;
1722
1729
  }
1723
1730
  declare enum Type {
1731
+ /** Undefined item type. */
1724
1732
  UNDEFINED = "UNDEFINED",
1733
+ /** Image item type. */
1725
1734
  IMAGE = "IMAGE",
1735
+ /** Video item type. */
1726
1736
  VIDEO = "VIDEO"
1727
1737
  }
1728
1738
  interface Image$4 {
@@ -1790,6 +1800,7 @@ interface BulkCreateProjectItemsResponse {
1790
1800
  interface BulkCreateProjectItemResult {
1791
1801
  /** Holds information about an item in bulk create - id, index in original request array, action successful, error (if failed) */
1792
1802
  itemMetadata?: ItemMetadata$2;
1803
+ /** Created item */
1793
1804
  item?: Item;
1794
1805
  }
1795
1806
  interface ItemMetadata$2 {
@@ -1878,9 +1889,11 @@ interface UpdateProjectItemResponse {
1878
1889
  interface BulkUpdateProjectItemsRequest {
1879
1890
  /** items to be updated. */
1880
1891
  items?: MaskedItem[];
1892
+ /** Return full entity after update */
1881
1893
  returnFullEntity?: boolean | null;
1882
1894
  }
1883
1895
  interface MaskedItem {
1896
+ /** Item to be updated */
1884
1897
  item?: Item;
1885
1898
  }
1886
1899
  interface BulkUpdateProjectItemsResponse {
@@ -1892,6 +1905,7 @@ interface BulkUpdateProjectItemsResponse {
1892
1905
  interface BulkUpdateProjectItemResult {
1893
1906
  /** Holds information about an item in bulk update - id, index in original request array, action successful, error (if failed). */
1894
1907
  itemMetadata?: ItemMetadata$2;
1908
+ /** Updated item */
1895
1909
  item?: Item;
1896
1910
  }
1897
1911
  interface DeleteProjectItemRequest {