@artisan-commerce/types 0.10.4 → 0.10.5

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.
@@ -1,4 +1,5 @@
1
1
  import { Image } from "./image.types";
2
+ import { BaseProduct } from "./product.types";
2
3
  export interface Category {
3
4
  categoryId: number;
4
5
  name: string;
@@ -7,3 +8,7 @@ export interface Category {
7
8
  reload: boolean;
8
9
  subcategories: boolean;
9
10
  }
11
+ export interface ProductsByCategory extends Omit<Category, "categoryId"> {
12
+ categoryId: string;
13
+ products: BaseProduct[];
14
+ }
@@ -5,7 +5,7 @@ export interface ArtisanRequest {
5
5
  query: ArtisanQuery;
6
6
  params: ArtisanParams;
7
7
  }
8
- export declare type ArtisanRequestHeaders = Record<string, string>;
8
+ export declare type ArtisanRequestHeaders = Headers;
9
9
  export interface ArtisanRequestBody {
10
10
  [key: string]: any;
11
11
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@artisan-commerce/types",
3
3
  "description": "Artisan's types and interfaces library",
4
- "version": "0.10.4",
4
+ "version": "0.10.5",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
7
7
  "files": [
@@ -45,7 +45,7 @@
45
45
  "typescript": "^3.9.7",
46
46
  "webpack-bundle-analyzer": "^3.9.0"
47
47
  },
48
- "gitHead": "70179e3a9c68515cc1f04c468e9262e4f996a64d",
48
+ "gitHead": "bc7ad969e80c0c71d27725abf5364498c61ab1b7",
49
49
  "dependencies": {
50
50
  "jest-extended": "^0.11.5"
51
51
  }