@mivis/petmart-api 1.2.211 → 1.2.212

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/type.d.ts +54 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mivis/petmart-api",
3
- "version": "1.2.211",
3
+ "version": "1.2.212",
4
4
  "main": "index.js",
5
5
  "types": "type.d.ts",
6
6
  "license": "ISC",
package/type.d.ts CHANGED
@@ -1842,5 +1842,59 @@ declare namespace Components {
1842
1842
  lat?: string; // user lat
1843
1843
  lng?: string; // user lng
1844
1844
  }
1845
+
1846
+ export enum ECollectionStatus {
1847
+ PUBLISHED = 'PUBLISHED',
1848
+ ARCHIVED = 'ARCHIVED',
1849
+ }
1850
+ export interface IPopulatedCollection
1851
+ extends Omit<ICollection, 'products'> {
1852
+ products: IProductResponse[];
1853
+ }
1854
+
1855
+ export interface ICollectionQueryRequest {
1856
+ title?: string;
1857
+ desc?: string;
1858
+ slug?: string;
1859
+ deeplink?: string;
1860
+ photo?: string;
1861
+ products?: string;
1862
+ status?: string;
1863
+ position?: number;
1864
+ all_fields?: string;
1865
+ skip: string;
1866
+ limit: string;
1867
+ }
1868
+
1869
+ export interface ICreateCollection {
1870
+ title: string;
1871
+ desc?: string;
1872
+ deeplink?: string;
1873
+ photo: File;
1874
+ products: string[];
1875
+ status: ECollectionStatus;
1876
+ position: number;
1877
+ }
1878
+
1879
+ export interface IUpdateCollection {
1880
+ title?: string;
1881
+ desc?: string;
1882
+ deeplink?: string;
1883
+ photo?: File;
1884
+ products?: string[];
1885
+ status?: ECollectionStatus;
1886
+ position?: number;
1887
+ }
1888
+
1889
+ export interface ICollection {
1890
+ title: string;
1891
+ desc?: string;
1892
+ slug: string;
1893
+ deeplink?: string;
1894
+ photo: string;
1895
+ products: string[];
1896
+ status: ECollectionStatus;
1897
+ position: number;
1898
+ }
1845
1899
  }
1846
1900
  }