@artisan-commerce/builders 0.4.9 → 0.4.11

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[];
@@ -11,10 +11,10 @@ export declare const genPriceCategoryTaxes: (quantity?: number | undefined) => P
11
11
  export declare const buildPriceCategory: (overrides?: Partial<PriceCategory>) => PriceCategory;
12
12
  export declare const buildBaseProduct: (overrides?: Partial<BaseProduct>) => BaseProduct;
13
13
  export declare const genBaseProducts: (quantity?: number | undefined) => BaseProduct[];
14
- export declare const buildProductAnswer: (overrides?: Partial<ProductAnswer>) => ProductAnswer;
15
- export declare const genProductAnswers: (quantity?: number | undefined) => ProductAnswer[];
16
- export declare const buildProductQuestion: (overrides?: Partial<ProductQuestion>) => ProductQuestion;
17
- export declare const genProductQuestions: (quantity?: number | undefined) => ProductQuestion[];
14
+ export declare const buildProductAnswer: (overrides?: Partial<ProductAnswer>, loop?: number) => ProductAnswer;
15
+ export declare const genProductAnswers: (quantity?: number | undefined, loop?: number) => ProductAnswer[];
16
+ export declare const buildProductQuestion: (overrides?: Partial<ProductQuestion>, loop?: number) => ProductQuestion;
17
+ export declare const genProductQuestions: (quantity?: number | undefined, loop?: number) => ProductQuestion[];
18
18
  export declare const buildProductDetails: (overrides?: Partial<ProductDetails>) => ProductDetails;
19
19
  export declare const genProductDetails: (quantity?: number | undefined) => ProductDetails[];
20
20
  export declare const buildCartProductAnswer: (questionId: string, overrides?: Partial<CartProductAnswer>) => CartProductAnswer;
@@ -1,9 +1,10 @@
1
1
  import * as common from "./builders/common.builder";
2
- import * as product from "./builders/product.builder";
3
- import * as vendor from "./builders/vendor.builder";
4
- import * as shoppingCart from "./builders/shoppingCart.builder";
5
- import * as store from "./builders/store.builder";
6
- import * as channel from "./builders/channel.builder";
2
+ import * as productBuilders from "./builders/product.builder";
3
+ import * as categoryBuilders from "./builders/category.builder";
4
+ import * as vendorBuilders from "./builders/vendor.builder";
5
+ import * as shoppingCartBuilders from "./builders/shoppingCart.builder";
6
+ import * as storeBuilders from "./builders/store.builder";
7
+ import * as channelBuilders from "./builders/channel.builder";
7
8
  import ArtisanData from "./lib/artisan";
8
- export { common, product, vendor, shoppingCart, store, channel };
9
+ export { common, productBuilders, categoryBuilders, vendorBuilders, shoppingCartBuilders, storeBuilders, channelBuilders };
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.9",
4
+ "version": "0.4.11",
5
5
  "main": "./build/main.bundle.js",
6
6
  "types": "./build/src/index.d.ts",
7
7
  "files": [
@@ -32,13 +32,12 @@
32
32
  "license": "MIT",
33
33
  "dependencies": {
34
34
  "@bugsnag/js": "^7.2.0",
35
- "axios": "^0.19.2",
36
35
  "i18next": "^19.6.2",
37
36
  "i18next-browser-languagedetector": "^5.0.0",
38
37
  "i18next-xhr-backend": "^3.2.2"
39
38
  },
40
39
  "devDependencies": {
41
- "@artisan-commerce/types": "^0.10.4",
40
+ "@artisan-commerce/types": "^0.10.5",
42
41
  "@babel/core": "^7.10.5",
43
42
  "@babel/preset-env": "^7.10.4",
44
43
  "@babel/preset-react": "^7.10.4",
@@ -84,5 +83,5 @@
84
83
  "webpack-dev-server": "^3.11.0",
85
84
  "webpack-merge": "^5.0.9"
86
85
  },
87
- "gitHead": "70179e3a9c68515cc1f04c468e9262e4f996a64d"
86
+ "gitHead": "818f3567d0b091f006721c51687f5abd7ea6fa51"
88
87
  }