@artisan-commerce/builders 0.6.0-canary.8 → 0.6.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.
@@ -1,8 +1,61 @@
1
+ import { ShippingCostTax } from "@artisan-commerce/types";
1
2
  import { BillTotal, BillTotalCategory } from "@artisan-commerce/types";
2
- import { ShoppingCart } from "@artisan-commerce/types";
3
+ import { ShoppingCart, ShippingCost } from "@artisan-commerce/types";
3
4
  import { CartStore, Objectify } from "@artisan-commerce/types";
5
+ /**
6
+ * Generates BillTotalCategory object with random data.
7
+ *
8
+ * @param {Partial<BillTotalCategory>} overrides Properties to override a {@link BillTotalCategory}
9
+ * @returns {BillTotalCategory} A {@link BillTotalCategory} object
10
+ */
4
11
  export declare const buildBillTotalNormalCategory: (overrides?: Partial<BillTotalCategory>) => BillTotalCategory;
12
+ /**
13
+ * Generates BillTotal object with random data.
14
+ *
15
+ * @param {Partial<BillTotal>} overrides Properties to override a {@link BillTotal}
16
+ * @returns {BillTotal} A {@link BillTotal} object
17
+ */
5
18
  export declare const buildBillTotal: (overrides?: Partial<BillTotal>) => BillTotal;
19
+ /**
20
+ * Generates CartStore object with random data.
21
+ *
22
+ * @param {Partial<CartStore>} overrides Properties to override a {@link CartStore}
23
+ * @returns {CartStore} A {@link CartStore} object
24
+ */
6
25
  export declare const buildCartStore: (overrides?: Partial<CartStore>) => CartStore;
26
+ /**
27
+ * Generates a CartStore object where the key is the store id
28
+ * and the value is the cart store object
29
+ *
30
+ * @param {number} quantity The number of objects to be generated
31
+ * @returns {Objectify<CartStore>} An Objectify<{@link CartStore}>
32
+ */
7
33
  export declare const genCartStores: (quantity?: number | undefined) => Objectify<CartStore>;
34
+ /**
35
+ * Generates ShoppingCart object with random data.
36
+ *
37
+ * @param {Partial<ShoppingCart>} overrides Properties to override a {@link ShoppingCart}
38
+ * @returns {ShoppingCart} A {@link ShoppingCart} object
39
+ */
8
40
  export declare const buildShoppingCart: (overrides?: Partial<ShoppingCart>) => ShoppingCart;
41
+ /**
42
+ * Generates ShippingCost object with random data.
43
+ *
44
+ * @param {Partial<ShippingCost>} overrides Properties to override a {@link ShippingCost}
45
+ * @returns {ShippingCost} A {@link ShippingCost} object
46
+ */
47
+ export declare const buildShippingCost: (overrides?: Partial<ShippingCost>) => ShippingCost;
48
+ /**
49
+ * Generates ShippingCostTax object with random data.
50
+ *
51
+ * @param {Partial<ShippingCostTax>} overrides Properties to override a {@link ShippingCostTax}
52
+ * @returns {ShippingCostTax} A {@link ShippingCostTax} object
53
+ */
54
+ export declare const buildShippingCostTax: (overrides?: Partial<ShippingCostTax>) => ShippingCostTax;
55
+ /**
56
+ * Generates a list of ShippingCostTax objects with random data.
57
+ *
58
+ * @param {number} quantity The number of objects to be generated
59
+ * @returns {ShippingCostTax[]} An array of shipping cost taxes objects, see {@link ShippingCostTax}
60
+ */
61
+ export declare const genShippingCostTaxes: (quantity?: number | undefined) => ShippingCostTax[];
@@ -1,11 +1,87 @@
1
- import { Service } from "@artisan-commerce/types";
1
+ import { Service, Delivery, Schedule } from "@artisan-commerce/types";
2
2
  import { Store, AdditionalStoreInformation } from "@artisan-commerce/types";
3
- import { Delivery, Schedule } from "@artisan-commerce/types";
3
+ import { GenericStoreLocation, StoreLocation } from "@artisan-commerce/types";
4
+ /**
5
+ * Generates Store object with random data.
6
+ *
7
+ * @param {Partial<Store>} overrides Properties to override a {@link Store}
8
+ * @returns {Store} A {@link Store} object
9
+ */
4
10
  export declare const buildStore: (overrides?: Partial<Store>) => Store;
11
+ /**
12
+ * Generates AdditionalStoreInformation object with random data.
13
+ *
14
+ * @param {Partial<AdditionalStoreInformation>} overrides Properties to override a {@link AdditionalStoreInformation}
15
+ * @returns {AdditionalStoreInformation} A {@link AdditionalStoreInformation} object
16
+ */
5
17
  export declare const buildAdditionalStoreInformation: (overrides?: Partial<AdditionalStoreInformation>) => AdditionalStoreInformation;
18
+ /**
19
+ * Generates Delivery object with random data.
20
+ *
21
+ * @param {Partial<Delivery>} overrides Properties to override a {@link Delivery}
22
+ * @returns {Delivery} A {@link Delivery} object
23
+ */
6
24
  export declare const buildDelivery: (overrides?: Partial<Delivery>) => Delivery;
25
+ /**
26
+ * Generates Schedule object with random data.
27
+ *
28
+ * @param {Partial<Schedule>} overrides Properties to override a {@link Schedule}
29
+ * @returns {Schedule} A {@link Schedule} object
30
+ */
7
31
  export declare const buildSchedule: (overrides?: Partial<Schedule>) => Schedule;
32
+ /**
33
+ * Generates Service object with random data.
34
+ *
35
+ * @param {Partial<Service>} overrides Properties to override a {@link Service}
36
+ * @returns {Service} A {@link Service} object
37
+ */
8
38
  export declare const buildService: (overrides?: Partial<Service>) => Service;
39
+ /**
40
+ * Generates a list of Service objects with random data.
41
+ *
42
+ * @param {number} quantity The number of objects to be generated
43
+ * @returns {Service[]} An array of {@link Service}s objects
44
+ */
9
45
  export declare const genServices: (quantity?: number | undefined) => Service[];
46
+ /**
47
+ * Generates a list of Schedule objects with random data.
48
+ *
49
+ * @param {number} quantity The number of objects to be generated
50
+ * @returns {Schedule[]} An array of {@link Schedule}s objects
51
+ */
10
52
  export declare const genSchedules: (quantity?: number | undefined) => Schedule[];
53
+ /**
54
+ * Generates a list of Store objects with random data.
55
+ *
56
+ * @param {number} quantity The number of objects to be generated
57
+ * @returns {Store[]} An array of {@link Store}s objects
58
+ */
11
59
  export declare const genStores: (quantity?: number | undefined) => Store[];
60
+ /**
61
+ * Generates GenericStoreLocation object with random data.
62
+ *
63
+ * @param {Partial<GenericStoreLocation>} overrides Properties to override a {@link GenericStoreLocation}
64
+ * @returns {GenericStoreLocation} A {@link GenericStoreLocation} object
65
+ */
66
+ export declare const buildGenericStoreLocation: (overrides?: Partial<GenericStoreLocation>) => GenericStoreLocation;
67
+ /**
68
+ * Generates a list of GenericStoreLocation objects with random data.
69
+ *
70
+ * @param {number} quantity The number of objects to be generated
71
+ * @returns {GenericStoreLocation[]} An array of {@link GenericStoreLocation}s objects
72
+ */
73
+ export declare const genGenericStoreLocation: (quantity?: number | undefined) => GenericStoreLocation[];
74
+ /**
75
+ * Generates StoreLocation object with random data.
76
+ *
77
+ * @param {Partial<StoreLocation>} overrides Properties to override a {@link StoreLocation}
78
+ * @returns {StoreLocation} A {@link StoreLocation} object
79
+ */
80
+ export declare const buildStoreLocation: (overrides?: Partial<StoreLocation>) => StoreLocation;
81
+ /**
82
+ * Generates a list of StoreLocation objects with random data.
83
+ *
84
+ * @param {number} quantity The number of objects to be generated
85
+ * @returns {StoreLocation[]} An array of {@link StoreLocation}s objects
86
+ */
87
+ export declare const genStoreLocation: (quantity?: number | undefined) => StoreLocation[];
@@ -1,2 +1,15 @@
1
1
  import { User } from "@artisan-commerce/types";
2
+ /**
3
+ * Generates User object with random data.
4
+ *
5
+ * @param {Partial<User>} overrides Properties to override a {@link User}
6
+ * @returns {User} A {@link User} object
7
+ */
2
8
  export declare const buildUser: (overrides?: Partial<User>) => User;
9
+ /**
10
+ * Generates a list of User objects with random data.
11
+ *
12
+ * @param {number} quantity The number of objects to be generated
13
+ * @returns {User[]} An array of {@link User}s objects
14
+ */
15
+ export declare const genUsers: (quantity?: number | undefined) => User[];
@@ -1,2 +1,15 @@
1
1
  import { Vendor } from "@artisan-commerce/types";
2
+ /**
3
+ * Generates Vendor object with random data.
4
+ *
5
+ * @param {Partial<Vendor>} overrides Properties to override a {@link Vendor}
6
+ * @returns {Vendor} A {@link Vendor} object
7
+ */
2
8
  export declare const buildVendor: (overrides?: Partial<Vendor>) => Vendor;
9
+ /**
10
+ * Generates a list of Vendor objects with random data.
11
+ *
12
+ * @param {number} quantity The number of objects to be generated
13
+ * @returns {Vendor[]} An array of {@link Vendor}s objects
14
+ */
15
+ export declare const genVendors: (quantity?: number | undefined) => Vendor[];
package/build/index.d.ts CHANGED
@@ -1,15 +1,16 @@
1
- import * as common from "./builders/common.builder";
2
1
  import * as accountBuilders from "./builders/account.builder";
3
- import * as productBuilders from "./builders/product.builder";
2
+ import * as billingDataBuilders from "./builders/billingData.builder";
3
+ import * as catalogueBuilders from "./builders/catalogue.builder";
4
4
  import * as categoryBuilders from "./builders/category.builder";
5
+ import * as common from "./builders/common.builder";
5
6
  import * as countryBuilders from "./builders/country.builder";
6
- import * as vendorBuilders from "./builders/vendor.builder";
7
+ import * as couponBuilders from "./builders/coupon.builder";
8
+ import * as productBuilders from "./builders/product.builder";
9
+ import * as shippingAddressBuilders from "./builders/shippingAddress.builder";
7
10
  import * as shoppingCartBuilders from "./builders/shoppingCart.builder";
8
11
  import * as storeBuilders from "./builders/store.builder";
9
- import * as channelBuilders from "./builders/channel.builder";
10
12
  import * as userBuilders from "./builders/user.builder";
11
- import * as billingDataBuilders from "./builders/billingData.builder";
12
- import * as shippingAddressBuilders from "./builders/shippingAddress.builder";
13
+ import * as vendorBuilders from "./builders/vendor.builder";
13
14
  import ArtisanData from "./lib/artisan";
14
- export { common, accountBuilders, productBuilders, categoryBuilders, countryBuilders, vendorBuilders, shoppingCartBuilders, storeBuilders, channelBuilders, userBuilders, billingDataBuilders, shippingAddressBuilders };
15
+ export { common, accountBuilders, productBuilders, categoryBuilders, countryBuilders, vendorBuilders, shoppingCartBuilders, storeBuilders, catalogueBuilders, couponBuilders, userBuilders, billingDataBuilders, shippingAddressBuilders };
15
16
  export default ArtisanData;