@artisan-commerce/builders 0.4.8 → 0.4.10

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.
@@ -0,0 +1,5 @@
1
+ import { Category, ProductsByCategory } from "@artisan-commerce/types";
2
+ export declare const buildCategory: (overrides?: Partial<Category>) => Category;
3
+ export declare const genCategorys: (quantity?: number | undefined) => Category[];
4
+ export declare const buildProductsByCategory: (overrides?: Partial<ProductsByCategory>) => ProductsByCategory;
5
+ export declare const genProductsByCategories: (quantity?: number | undefined) => ProductsByCategory[];
@@ -1,9 +1,10 @@
1
1
  import * as common from "./builders/common.builder";
2
2
  import * as product from "./builders/product.builder";
3
+ import * as category from "./builders/category.builder";
3
4
  import * as vendor from "./builders/vendor.builder";
4
5
  import * as shoppingCart from "./builders/shoppingCart.builder";
5
6
  import * as store from "./builders/store.builder";
6
7
  import * as channel from "./builders/channel.builder";
7
8
  import ArtisanData from "./lib/artisan";
8
- export { common, product, vendor, shoppingCart, store, channel };
9
+ export { common, product, category, vendor, shoppingCart, store, channel };
9
10
  export default ArtisanData;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@artisan-commerce/builders",
3
3
  "description": "Builder functions for all artisan entities",
4
- "version": "0.4.8",
4
+ "version": "0.4.10",
5
5
  "main": "./build/main.bundle.js",
6
6
  "types": "./build/src/index.d.ts",
7
7
  "files": [
@@ -38,7 +38,7 @@
38
38
  "i18next-xhr-backend": "^3.2.2"
39
39
  },
40
40
  "devDependencies": {
41
- "@artisan-commerce/types": "^0.10.3",
41
+ "@artisan-commerce/types": "^0.10.5",
42
42
  "@babel/core": "^7.10.5",
43
43
  "@babel/preset-env": "^7.10.4",
44
44
  "@babel/preset-react": "^7.10.4",
@@ -84,5 +84,5 @@
84
84
  "webpack-dev-server": "^3.11.0",
85
85
  "webpack-merge": "^5.0.9"
86
86
  },
87
- "gitHead": "15e2dbb9c832333b00e97f46ec00ea718866c3cf"
87
+ "gitHead": "bc7ad969e80c0c71d27725abf5364498c61ab1b7"
88
88
  }