@artisan-commerce/builders 0.5.0-canary.1 → 0.5.0
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 +30 -0
- package/build/builders/billingData.builder.d.ts +2 -0
- package/build/{src/builders → builders}/category.builder.d.ts +0 -0
- package/build/{src/builders → builders}/channel.builder.d.ts +0 -0
- package/build/{src/builders → builders}/common.builder.d.ts +5 -0
- package/build/{src/builders → builders}/product.builder.d.ts +0 -0
- package/build/builders/shippingAddress.builder.d.ts +11 -0
- package/build/{src/builders → builders}/shoppingCart.builder.d.ts +0 -0
- package/build/{src/builders → builders}/store.builder.d.ts +0 -0
- package/build/builders/user.builder.d.ts +2 -0
- package/build/{src/builders → builders}/vendor.builder.d.ts +0 -0
- package/build/config/constants.d.ts +2 -0
- package/build/{src/data → data}/products.data.d.ts +0 -0
- package/build/{src/index.d.ts → index.d.ts} +4 -1
- package/build/{src/lib → lib}/artisan.d.ts +0 -0
- package/build/main.bundle.js +1 -1
- package/build/report.json +1 -1
- package/build/{src/types → types}/artisan.types.d.ts +0 -0
- package/build/{src/types → types}/product.types.d.ts +0 -0
- package/build/{src/utils → utils}/artisan.utils.d.ts +0 -0
- package/build/vendors.bundle.js +1 -1
- package/build/{src/vendors.d.ts → vendors.d.ts} +0 -0
- package/package.json +9 -16
- package/build/src/config/constants.d.ts +0 -13
- package/build/src/i18n/i18n.d.ts +0 -2
- package/build/src/utils/axios.d.ts +0 -2
- package/build/src/utils/bugsnag.d.ts +0 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,36 @@
|
|
|
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.5.0](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/builders@0.5.0-canary.3...@artisan-commerce/builders@0.5.0) (2021-02-25)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @artisan-commerce/builders
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [0.5.0-canary.3](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/builders@0.5.0-canary.2...@artisan-commerce/builders@0.5.0-canary.3) (2021-02-25)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @artisan-commerce/builders
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
## [0.5.0-canary.2](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/builders@0.5.0-canary.1...@artisan-commerce/builders@0.5.0-canary.2) (2021-02-23)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Features
|
|
26
|
+
|
|
27
|
+
* added billing data and shipping address builders ([6a9eaa9](https://bitbucket.org/tradesystem/artisan_monorepo/commit/6a9eaa921bab2367171473565de0ce6d662bd7c0))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
### Bug Fixes
|
|
31
|
+
|
|
32
|
+
* lint fixes ([36c4c71](https://bitbucket.org/tradesystem/artisan_monorepo/commit/36c4c71223fadf55a310145eefa7af81a1e3c50e))
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
6
36
|
## [0.5.0-canary.1](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/builders@0.5.0-canary.0...@artisan-commerce/builders@0.5.0-canary.1) (2021-02-12)
|
|
7
37
|
|
|
8
38
|
**Note:** Version bump only for package @artisan-commerce/builders
|
|
File without changes
|
|
File without changes
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import { DocumentType, Country } from "@artisan-commerce/types";
|
|
1
2
|
export declare const getPassword: (...args: any[]) => string;
|
|
2
3
|
export declare const getUsername: (firstName?: string | undefined, lastName?: string | undefined) => string;
|
|
3
4
|
export declare const genId: () => string;
|
|
4
5
|
export declare const genNumericId: () => number;
|
|
5
6
|
export declare const genWord: () => string;
|
|
7
|
+
export declare const genAddress: (useFullAddress?: boolean | undefined) => string;
|
|
6
8
|
export declare const genName: (firstName?: string | undefined, lastName?: string | undefined, gender?: number | undefined) => string;
|
|
7
9
|
export declare const genEmail: (firstName?: string | undefined, lastName?: string | undefined, provider?: string | undefined) => string;
|
|
8
10
|
export declare const genCompanyName: (format?: number | undefined) => string;
|
|
@@ -17,9 +19,12 @@ export declare const genNumber: {
|
|
|
17
19
|
} | undefined): number;
|
|
18
20
|
};
|
|
19
21
|
export declare const getBoolean: () => boolean;
|
|
22
|
+
export declare const genCountryName: () => string;
|
|
20
23
|
export declare const genBiasBoolean: (bias: number) => boolean;
|
|
21
24
|
export declare const genDocument: (digits: number) => string;
|
|
25
|
+
export declare const genDocumentType: () => DocumentType;
|
|
22
26
|
export declare const genMobilPhone: (countryCode: string) => string;
|
|
27
|
+
export declare const genCountry: (id?: number | undefined, name?: string | undefined) => Country;
|
|
23
28
|
export declare const fillNumber: (num: string, max?: number | undefined) => string;
|
|
24
29
|
export declare const chooseRandom: <T>(arr: T[]) => T;
|
|
25
30
|
export declare const chooseRandomEnum: <T>(anEnum: T) => T[keyof T];
|
|
File without changes
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ShippingAddress, LivingPlace } from "@artisan-commerce/types";
|
|
2
|
+
export declare const genStreetName: () => string;
|
|
3
|
+
export declare const genStreetNumber: (format?: string | undefined) => string;
|
|
4
|
+
export declare const genLatitude: () => string;
|
|
5
|
+
export declare const genLongitude: () => string;
|
|
6
|
+
export declare const genFields: (quantity?: number | undefined) => {
|
|
7
|
+
id: string;
|
|
8
|
+
value: string;
|
|
9
|
+
}[];
|
|
10
|
+
export declare const buildLivingPlace: (overrides?: Partial<LivingPlace>) => Partial<LivingPlace>;
|
|
11
|
+
export declare const buildShippingAddress: (overrides?: Partial<ShippingAddress>) => Partial<ShippingAddress>;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -5,6 +5,9 @@ import * as vendorBuilders from "./builders/vendor.builder";
|
|
|
5
5
|
import * as shoppingCartBuilders from "./builders/shoppingCart.builder";
|
|
6
6
|
import * as storeBuilders from "./builders/store.builder";
|
|
7
7
|
import * as channelBuilders from "./builders/channel.builder";
|
|
8
|
+
import * as userBuilders from "./builders/user.builder";
|
|
9
|
+
import * as billingDataBuilders from "./builders/billingData.builder";
|
|
10
|
+
import * as shippingAddressBuilders from "./builders/shippingAddress.builder";
|
|
8
11
|
import ArtisanData from "./lib/artisan";
|
|
9
|
-
export { common, productBuilders, categoryBuilders, vendorBuilders, shoppingCartBuilders, storeBuilders, channelBuilders };
|
|
12
|
+
export { common, productBuilders, categoryBuilders, vendorBuilders, shoppingCartBuilders, storeBuilders, channelBuilders, userBuilders, billingDataBuilders, shippingAddressBuilders };
|
|
10
13
|
export default ArtisanData;
|
|
File without changes
|