@artisan-commerce/builders 0.6.0-canary.1 → 0.6.0-canary.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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,83 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.6.0-canary.10](https://bitbucket.org/tradesystem/artisan_sdk/compare/@artisan-commerce/builders@0.6.0-canary.9...@artisan-commerce/builders@0.6.0-canary.10) (2021-06-18)
7
+
8
+ **Note:** Version bump only for package @artisan-commerce/builders
9
+
10
+
11
+
12
+
13
+
14
+ ## [0.6.0-canary.9](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/builders@0.6.0-canary.8...@artisan-commerce/builders@0.6.0-canary.9) (2021-06-10)
15
+
16
+ **Note:** Version bump only for package @artisan-commerce/builders
17
+
18
+
19
+
20
+
21
+
22
+ ## [0.6.0-canary.8](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/builders@0.6.0-canary.7...@artisan-commerce/builders@0.6.0-canary.8) (2021-04-22)
23
+
24
+
25
+ ### Features
26
+
27
+ * **types:** add country types and interfaces ([f73fabd](https://bitbucket.org/tradesystem/artisan_monorepo/commit/f73fabd5615ae1bb39c9ca59a8b79a5437eca9d1))
28
+
29
+
30
+
31
+ ## [0.6.0-canary.7](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/builders@0.6.0-canary.6...@artisan-commerce/builders@0.6.0-canary.7) (2021-04-21)
32
+
33
+
34
+ ### Features
35
+
36
+ * **global:** update account types and add account builders ([4a6fecd](https://bitbucket.org/tradesystem/artisan_monorepo/commit/4a6fecdc45b363f068a6089eccbf36483f517288))
37
+
38
+
39
+
40
+ ## [0.6.0-canary.6](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/builders@0.6.0-canary.5...@artisan-commerce/builders@0.6.0-canary.6) (2021-04-16)
41
+
42
+ **Note:** Version bump only for package @artisan-commerce/builders
43
+
44
+
45
+
46
+
47
+
48
+ ## [0.6.0-canary.5](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/builders@0.6.0-canary.4...@artisan-commerce/builders@0.6.0-canary.5) (2021-04-06)
49
+
50
+
51
+ ### Performance Improvements
52
+
53
+ * **global:** move typescript to be a global dependency ([32370e1](https://bitbucket.org/tradesystem/artisan_monorepo/commit/32370e134f1bcc4f79c55e2bae0ee22fee193e77))
54
+
55
+
56
+
57
+ ## [0.6.0-canary.4](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/builders@0.6.0-canary.3...@artisan-commerce/builders@0.6.0-canary.4) (2021-04-01)
58
+
59
+ **Note:** Version bump only for package @artisan-commerce/builders
60
+
61
+
62
+
63
+
64
+
65
+ ## [0.6.0-canary.3](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/builders@0.6.0-canary.2...@artisan-commerce/builders@0.6.0-canary.3) (2021-03-30)
66
+
67
+
68
+ ### Performance Improvements
69
+
70
+ * **global:** add esbuild opt-in for dev ([f760449](https://bitbucket.org/tradesystem/artisan_monorepo/commit/f7604492fc17967bad75583a49d91a51cd6241aa))
71
+ * **global:** improve jest performance ([8c36173](https://bitbucket.org/tradesystem/artisan_monorepo/commit/8c36173df7e7cbfad40888499c81fcf7d11a7105))
72
+
73
+
74
+
75
+ ## [0.6.0-canary.2](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/builders@0.6.0-canary.1...@artisan-commerce/builders@0.6.0-canary.2) (2021-03-19)
76
+
77
+ **Note:** Version bump only for package @artisan-commerce/builders
78
+
79
+
80
+
81
+
82
+
6
83
  ## [0.6.0-canary.1](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/builders@0.6.0-canary.0...@artisan-commerce/builders@0.6.0-canary.1) (2021-03-19)
7
84
 
8
85
  **Note:** Version bump only for package @artisan-commerce/builders
@@ -0,0 +1,3 @@
1
+ import { Account } from "@artisan-commerce/types";
2
+ export declare const buildAccount: (overrides?: Partial<Account>) => Account;
3
+ export declare const genAccounts: (quantity?: number | undefined) => Account[];
@@ -1,4 +1,4 @@
1
- import { DocumentType, Country } from "@artisan-commerce/types";
1
+ import { DocumentType, CountrySummary } from "@artisan-commerce/types";
2
2
  export declare const getPassword: (...args: any[]) => string;
3
3
  export declare const getUsername: (firstName?: string | undefined, lastName?: string | undefined) => string;
4
4
  export declare const genId: () => string;
@@ -24,7 +24,7 @@ export declare const genBiasBoolean: (bias: number) => boolean;
24
24
  export declare const genDocument: (digits: number) => string;
25
25
  export declare const genDocumentType: () => DocumentType;
26
26
  export declare const genMobilPhone: (countryCode: string) => string;
27
- export declare const genCountry: (id?: number | undefined, name?: string | undefined) => Country;
27
+ export declare const genCountry: (id?: number | undefined, name?: string | undefined) => CountrySummary;
28
28
  export declare const fillNumber: (num: string, max?: number | undefined) => string;
29
29
  export declare const chooseRandom: <T>(arr: T[]) => T;
30
30
  export declare const chooseRandomEnum: <T>(anEnum: T) => T[keyof T];
@@ -0,0 +1,5 @@
1
+ import { Country, CountryCurrency, CountryTax } from "@artisan-commerce/types";
2
+ export declare const buildCountryCurrency: (overrides?: Partial<CountryCurrency>) => CountryCurrency;
3
+ export declare const buildCountryTax: (overrides?: Partial<CountryTax>) => CountryTax;
4
+ export declare const buildCountry: (overrides?: Partial<Country>) => Country;
5
+ export declare const genCountries: (quantity?: number | undefined) => Country[];
package/build/index.d.ts CHANGED
@@ -1,6 +1,8 @@
1
1
  import * as common from "./builders/common.builder";
2
+ import * as accountBuilders from "./builders/account.builder";
2
3
  import * as productBuilders from "./builders/product.builder";
3
4
  import * as categoryBuilders from "./builders/category.builder";
5
+ import * as countryBuilders from "./builders/country.builder";
4
6
  import * as vendorBuilders from "./builders/vendor.builder";
5
7
  import * as shoppingCartBuilders from "./builders/shoppingCart.builder";
6
8
  import * as storeBuilders from "./builders/store.builder";
@@ -9,5 +11,5 @@ import * as userBuilders from "./builders/user.builder";
9
11
  import * as billingDataBuilders from "./builders/billingData.builder";
10
12
  import * as shippingAddressBuilders from "./builders/shippingAddress.builder";
11
13
  import ArtisanData from "./lib/artisan";
12
- export { common, productBuilders, categoryBuilders, vendorBuilders, shoppingCartBuilders, storeBuilders, channelBuilders, userBuilders, billingDataBuilders, shippingAddressBuilders };
14
+ export { common, accountBuilders, productBuilders, categoryBuilders, countryBuilders, vendorBuilders, shoppingCartBuilders, storeBuilders, channelBuilders, userBuilders, billingDataBuilders, shippingAddressBuilders };
13
15
  export default ArtisanData;