@artisan-commerce/builders 0.7.0-canary.2 → 0.7.0-canary.21

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.
Files changed (41) hide show
  1. package/CHANGELOG.md +165 -0
  2. package/dist/bundle.cjs.js +90344 -0
  3. package/dist/bundle.cjs.js.map +1 -0
  4. package/dist/bundle.d.ts +2364 -0
  5. package/dist/bundle.esm.js +90321 -0
  6. package/dist/bundle.esm.js.map +1 -0
  7. package/dist/bundle.umd.js +90350 -0
  8. package/dist/bundle.umd.js.map +1 -0
  9. package/package.json +21 -20
  10. package/build/builders/account.builder.d.ts +0 -17
  11. package/build/builders/banner.builder.d.ts +0 -35
  12. package/build/builders/billingData.builder.d.ts +0 -18
  13. package/build/builders/catalogue.builder.d.ts +0 -18
  14. package/build/builders/category.builder.d.ts +0 -36
  15. package/build/builders/common.builder.d.ts +0 -204
  16. package/build/builders/country.builder.d.ts +0 -44
  17. package/build/builders/coupon.builder.d.ts +0 -50
  18. package/build/builders/fulfillment.builder.d.ts +0 -187
  19. package/build/builders/image.builder.d.ts +0 -32
  20. package/build/builders/notification.builder.d.ts +0 -19
  21. package/build/builders/order.builder.d.ts +0 -167
  22. package/build/builders/payment.builder.d.ts +0 -93
  23. package/build/builders/product.builder.d.ts +0 -161
  24. package/build/builders/settings.builder.d.ts +0 -37
  25. package/build/builders/shippingAddress.builder.d.ts +0 -108
  26. package/build/builders/shoppingCart.builder.d.ts +0 -76
  27. package/build/builders/store.builder.d.ts +0 -106
  28. package/build/builders/user.builder.d.ts +0 -17
  29. package/build/builders/vendor.builder.d.ts +0 -17
  30. package/build/config/constants.d.ts +0 -2
  31. package/build/data/products.data.d.ts +0 -4
  32. package/build/index.d.ts +0 -23
  33. package/build/lib/artisn.d.ts +0 -5
  34. package/build/main.bundle.js +0 -10
  35. package/build/report.json +0 -1
  36. package/build/types/artisn.types.d.ts +0 -1
  37. package/build/types/product.types.d.ts +0 -6
  38. package/build/utils/artisn.utils.d.ts +0 -2
  39. package/build/utils/common.utils.d.ts +0 -8
  40. package/build/vendors.bundle.js +0 -1
  41. package/build/vendors.d.ts +0 -1
@@ -1,76 +0,0 @@
1
- import { ShippingCostTax } from "@artisan-commerce/types";
2
- import { BillTotal, BillTotalCategory } from "@artisan-commerce/types";
3
- import { ShoppingCart, ShippingCost } from "@artisan-commerce/types";
4
- import { CartStore, Objectify } from "@artisan-commerce/types";
5
- /**
6
- * Generates BillTotalCategory object with random data.
7
- *
8
- * @since 0.5.14
9
- * @param {Partial<BillTotalCategory>} overrides Properties to override
10
- * a {@link BillTotalCategory}
11
- * @returns {BillTotalCategory} A {@link BillTotalCategory} object
12
- */
13
- export declare const buildBillTotalNormalCategory: (overrides?: Partial<BillTotalCategory>) => BillTotalCategory;
14
- /**
15
- * Generates BillTotal object with random data.
16
- *
17
- * @since 0.5.14
18
- * @param {Partial<BillTotal>} overrides Properties to override
19
- * a {@link BillTotal}
20
- * @returns {BillTotal} A {@link BillTotal} object
21
- */
22
- export declare const buildBillTotal: (overrides?: Partial<BillTotal>) => BillTotal;
23
- /**
24
- * Generates CartStore object with random data.
25
- *
26
- * @since 0.5.14
27
- * @param {Partial<CartStore>} overrides Properties to override
28
- * a {@link CartStore}
29
- * @returns {CartStore} A {@link CartStore} object
30
- */
31
- export declare const buildCartStore: (overrides?: Partial<CartStore>) => CartStore;
32
- /**
33
- * Generates a CartStore object where the key is the store id
34
- * and the value is the cart store object
35
- *
36
- * @since 0.5.14
37
- * @param {number} quantity The number of objects to be generated
38
- * @returns {Objectify<CartStore>} An Objectify<{@link CartStore}>
39
- */
40
- export declare const genCartStores: (quantity?: number | undefined) => Objectify<CartStore>;
41
- /**
42
- * Generates ShoppingCart object with random data.
43
- *
44
- * @since 0.5.14
45
- * @param {Partial<ShoppingCart>} overrides Properties to override
46
- * a {@link ShoppingCart}
47
- * @returns {ShoppingCart} A {@link ShoppingCart} object
48
- */
49
- export declare const buildShoppingCart: (overrides?: Partial<ShoppingCart>) => ShoppingCart;
50
- /**
51
- * Generates ShippingCost object with random data.
52
- *
53
- * @since 0.5.14
54
- * @param {Partial<ShippingCost>} overrides Properties to override
55
- * a {@link ShippingCost}
56
- * @returns {ShippingCost} A {@link ShippingCost} object
57
- */
58
- export declare const buildShippingCost: (overrides?: Partial<ShippingCost>) => ShippingCost;
59
- /**
60
- * Generates ShippingCostTax object with random data.
61
- *
62
- * @since 0.5.14
63
- * @param {Partial<ShippingCostTax>} overrides Properties to override
64
- * a {@link ShippingCostTax}
65
- * @returns {ShippingCostTax} A {@link ShippingCostTax} object
66
- */
67
- export declare const buildShippingCostTax: (overrides?: Partial<ShippingCostTax>) => ShippingCostTax;
68
- /**
69
- * Generates a list of ShippingCostTax objects with random data.
70
- *
71
- * @since 0.5.14
72
- * @param {number} quantity The number of objects to be generated
73
- * @returns {ShippingCostTax[]} An array of shipping cost taxes objects,
74
- * see {@link ShippingCostTax}
75
- */
76
- export declare const genShippingCostTaxes: (quantity?: number | undefined) => ShippingCostTax[];
@@ -1,106 +0,0 @@
1
- import { Service, Delivery, Schedule } from "@artisan-commerce/types";
2
- import { Store, AdditionalStoreInformation } from "@artisan-commerce/types";
3
- import { GenericStoreLocation, StoreLocation } from "@artisan-commerce/types";
4
- /**
5
- * Generates Store object with random data.
6
- *
7
- * @since 0.5.14
8
- * @param {Partial<Store>} overrides Properties to override a {@link Store}
9
- * @returns {Store} A {@link Store} object
10
- */
11
- export declare const buildStore: (overrides?: Partial<Store>) => Store;
12
- /**
13
- * Generates AdditionalStoreInformation object with random data.
14
- *
15
- * @since 0.5.14
16
- * @param {Partial<AdditionalStoreInformation>} overrides Properties to
17
- * override a {@link AdditionalStoreInformation}
18
- * @returns {AdditionalStoreInformation} A
19
- * {@link AdditionalStoreInformation} object
20
- */
21
- export declare const buildAdditionalStoreInformation: (overrides?: Partial<AdditionalStoreInformation>) => AdditionalStoreInformation;
22
- /**
23
- * Generates Delivery object with random data.
24
- *
25
- * @since 0.5.14
26
- * @param {Partial<Delivery>} overrides Properties to override
27
- * a {@link Delivery}
28
- * @returns {Delivery} A {@link Delivery} object
29
- */
30
- export declare const buildDelivery: (overrides?: Partial<Delivery>) => Delivery;
31
- /**
32
- * Generates Schedule object with random data.
33
- *
34
- * @since 0.5.14
35
- * @param {Partial<Schedule>} overrides Properties to override
36
- * a {@link Schedule}
37
- * @returns {Schedule} A {@link Schedule} object
38
- */
39
- export declare const buildSchedule: (overrides?: Partial<Schedule>) => Schedule;
40
- /**
41
- * Generates Service object with random data.
42
- *
43
- * @since 0.5.14
44
- * @param {Partial<Service>} overrides Properties to override a {@link Service}
45
- * @returns {Service} A {@link Service} object
46
- */
47
- export declare const buildService: (overrides?: Partial<Service>) => Service;
48
- /**
49
- * Generates a list of Service objects with random data.
50
- *
51
- * @since 0.5.14
52
- * @param {number} quantity The number of objects to be generated
53
- * @returns {Service[]} An array of {@link Service}s objects
54
- */
55
- export declare const genServices: (quantity?: number | undefined) => Service[];
56
- /**
57
- * Generates a list of Schedule objects with random data.
58
- *
59
- * @since 0.5.14
60
- * @param {number} quantity The number of objects to be generated
61
- * @returns {Schedule[]} An array of {@link Schedule}s objects
62
- */
63
- export declare const genSchedules: (quantity?: number | undefined) => Schedule[];
64
- /**
65
- * Generates a list of Store objects with random data.
66
- *
67
- * @since 0.5.14
68
- * @param {number} quantity The number of objects to be generated
69
- * @returns {Store[]} An array of {@link Store}s objects
70
- */
71
- export declare const genStores: (quantity?: number | undefined) => Store[];
72
- /**
73
- * Generates GenericStoreLocation object with random data.
74
- *
75
- * @since 0.5.14
76
- * @param {Partial<GenericStoreLocation>} overrides Properties to override
77
- * a {@link GenericStoreLocation}
78
- * @returns {GenericStoreLocation} A {@link GenericStoreLocation} object
79
- */
80
- export declare const buildGenericStoreLocation: (overrides?: Partial<GenericStoreLocation>) => GenericStoreLocation;
81
- /**
82
- * Generates a list of GenericStoreLocation objects with random data.
83
- *
84
- * @since 0.5.14
85
- * @param {number} quantity The number of objects to be generated
86
- * @returns {GenericStoreLocation[]} An array of {@link GenericStoreLocation}s
87
- * objects
88
- */
89
- export declare const genGenericStoreLocation: (quantity?: number | undefined) => GenericStoreLocation[];
90
- /**
91
- * Generates StoreLocation object with random data.
92
- *
93
- * @since 0.5.14
94
- * @param {Partial<StoreLocation>} overrides Properties to override
95
- * a {@link StoreLocation}
96
- * @returns {StoreLocation} A {@link StoreLocation} object
97
- */
98
- export declare const buildStoreLocation: (overrides?: Partial<StoreLocation>) => StoreLocation;
99
- /**
100
- * Generates a list of StoreLocation objects with random data.
101
- *
102
- * @since 0.5.14
103
- * @param {number} quantity The number of objects to be generated
104
- * @returns {StoreLocation[]} An array of {@link StoreLocation}s objects
105
- */
106
- export declare const genStoreLocation: (quantity?: number | undefined) => StoreLocation[];
@@ -1,17 +0,0 @@
1
- import { User } from "@artisan-commerce/types";
2
- /**
3
- * Generates User object with random data.
4
- *
5
- * @since 0.5.14
6
- * @param {Partial<User>} overrides Properties to override a {@link User}
7
- * @returns {User} A {@link User} object
8
- */
9
- export declare const buildUser: (overrides?: Partial<User>) => User;
10
- /**
11
- * Generates a list of User objects with random data.
12
- *
13
- * @since 0.5.14
14
- * @param {number} quantity The number of objects to be generated
15
- * @returns {User[]} An array of {@link User}s objects
16
- */
17
- export declare const genUsers: (quantity?: number | undefined) => User[];
@@ -1,17 +0,0 @@
1
- import { Vendor } from "@artisan-commerce/types";
2
- /**
3
- * Generates Vendor object with random data.
4
- *
5
- * @since 0.5.14
6
- * @param {Partial<Vendor>} overrides Properties to override a {@link Vendor}
7
- * @returns {Vendor} A {@link Vendor} object
8
- */
9
- export declare const buildVendor: (overrides?: Partial<Vendor>) => Vendor;
10
- /**
11
- * Generates a list of Vendor objects with random data.
12
- *
13
- * @since 0.5.14
14
- * @param {number} quantity The number of objects to be generated
15
- * @returns {Vendor[]} An array of {@link Vendor}s objects
16
- */
17
- export declare const genVendors: (quantity?: number | undefined) => Vendor[];
@@ -1,2 +0,0 @@
1
- declare const CONSTANTS: {};
2
- export default CONSTANTS;
@@ -1,4 +0,0 @@
1
- import { ProductFixedData } from "../types/product.types";
2
- export declare const foodShopProducts: ProductFixedData[];
3
- export declare const electronicsProducts: ProductFixedData[];
4
- export declare const products: ProductFixedData[];
package/build/index.d.ts DELETED
@@ -1,23 +0,0 @@
1
- import * as accountBuilders from "./builders/account.builder";
2
- import * as bannerBuilders from "./builders/banner.builder";
3
- import * as billingDataBuilders from "./builders/billingData.builder";
4
- import * as catalogueBuilders from "./builders/catalogue.builder";
5
- import * as categoryBuilders from "./builders/category.builder";
6
- import * as common from "./builders/common.builder";
7
- import * as countryBuilders from "./builders/country.builder";
8
- import * as couponBuilders from "./builders/coupon.builder";
9
- import * as fulfillmentBuilders from "./builders/fulfillment.builder";
10
- import * as imageBuilders from "./builders/image.builder";
11
- import * as notificationBuilders from "./builders/notification.builder";
12
- import * as orderBuilders from "./builders/order.builder";
13
- import * as paymentBuilders from "./builders/payment.builder";
14
- import * as productBuilders from "./builders/product.builder";
15
- import * as settingsBuilders from "./builders/settings.builder";
16
- import * as shippingAddressBuilders from "./builders/shippingAddress.builder";
17
- import * as shoppingCartBuilders from "./builders/shoppingCart.builder";
18
- import * as storeBuilders from "./builders/store.builder";
19
- import * as userBuilders from "./builders/user.builder";
20
- import * as vendorBuilders from "./builders/vendor.builder";
21
- import ArtisnData from "./lib/artisn";
22
- export { common, accountBuilders, bannerBuilders, billingDataBuilders, categoryBuilders, catalogueBuilders, countryBuilders, couponBuilders, fulfillmentBuilders, imageBuilders, notificationBuilders, orderBuilders, productBuilders, paymentBuilders, settingsBuilders, shippingAddressBuilders, shoppingCartBuilders, vendorBuilders, storeBuilders, userBuilders };
23
- export default ArtisnData;
@@ -1,5 +0,0 @@
1
- import { ECOMMERCE_TYPES } from "../types/artisn.types";
2
- declare class ArtisnData {
3
- constructor(ecommerceType: ECOMMERCE_TYPES);
4
- }
5
- export default ArtisnData;