@artisan-commerce/builders 0.7.0-canary.28 → 0.7.0-canary.3
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 +0 -218
- package/build/builders/account.builder.d.ts +17 -0
- package/build/builders/banner.builder.d.ts +35 -0
- package/build/builders/billingData.builder.d.ts +18 -0
- package/build/builders/catalogue.builder.d.ts +18 -0
- package/build/builders/category.builder.d.ts +36 -0
- package/build/builders/common.builder.d.ts +204 -0
- package/build/builders/country.builder.d.ts +44 -0
- package/build/builders/coupon.builder.d.ts +50 -0
- package/build/builders/fulfillment.builder.d.ts +187 -0
- package/build/builders/image.builder.d.ts +34 -0
- package/build/builders/notification.builder.d.ts +19 -0
- package/build/builders/order.builder.d.ts +167 -0
- package/build/builders/payment.builder.d.ts +93 -0
- package/build/builders/product.builder.d.ts +161 -0
- package/build/builders/settings.builder.d.ts +37 -0
- package/build/builders/shippingAddress.builder.d.ts +108 -0
- package/build/builders/shoppingCart.builder.d.ts +76 -0
- package/build/builders/store.builder.d.ts +106 -0
- package/build/builders/user.builder.d.ts +17 -0
- package/build/builders/vendor.builder.d.ts +17 -0
- package/build/config/constants.d.ts +2 -0
- package/build/data/products.data.d.ts +4 -0
- package/build/index.d.ts +23 -0
- package/build/lib/artisn.d.ts +5 -0
- package/build/main.bundle.js +10 -0
- package/build/report.json +1 -0
- package/build/types/artisn.types.d.ts +1 -0
- package/build/types/product.types.d.ts +6 -0
- package/build/utils/artisn.utils.d.ts +2 -0
- package/build/utils/common.utils.d.ts +8 -0
- package/build/vendors.bundle.js +1 -0
- package/build/vendors.d.ts +1 -0
- package/package.json +55 -24
- package/dist/bundle.cjs.js +0 -143745
- package/dist/bundle.cjs.js.map +0 -1
- package/dist/bundle.d.ts +0 -2675
- package/dist/bundle.esm.js +0 -143722
- package/dist/bundle.esm.js.map +0 -1
- package/dist/bundle.umd.js +0 -143749
- package/dist/bundle.umd.js.map +0 -1
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
import { Workflow, StepWorkflow } from "@artisan-commerce/types";
|
|
2
|
+
import { StepWorkflowAdditionalInfo } from "@artisan-commerce/types";
|
|
3
|
+
import { StepWorkflowGroup } from "@artisan-commerce/types";
|
|
4
|
+
import { Issue } from "@artisan-commerce/types";
|
|
5
|
+
import { StepNotification } from "@artisan-commerce/types";
|
|
6
|
+
import { IssueAdditionalInfo, IssueHistory } from "@artisan-commerce/types";
|
|
7
|
+
import { WebhookWorkflow, TransitionWorkflow } from "@artisan-commerce/types";
|
|
8
|
+
/**
|
|
9
|
+
* Generates Issue object with random data.
|
|
10
|
+
*
|
|
11
|
+
* @since 0.5.15
|
|
12
|
+
* @param {Partial<Issue>} overrides Properties to override
|
|
13
|
+
* a {@link Issue}
|
|
14
|
+
* @returns {Issue} A {@link Issue} object
|
|
15
|
+
*/
|
|
16
|
+
export declare const buildIssue: (overrides?: Partial<Issue>) => Issue;
|
|
17
|
+
/**
|
|
18
|
+
* Generates a list of Issue objects with random data.
|
|
19
|
+
*
|
|
20
|
+
* @since 0.5.15
|
|
21
|
+
* @param {number} quantity The number of objects to be generated
|
|
22
|
+
* @returns {Issue[]} An array of Issue objects,
|
|
23
|
+
* see {@link Issue}
|
|
24
|
+
*/
|
|
25
|
+
export declare const genIssues: (quantity?: number | undefined) => Issue[];
|
|
26
|
+
/**
|
|
27
|
+
* Generates IssueAdditionalInfo object with random data.
|
|
28
|
+
*
|
|
29
|
+
* @since 0.5.15
|
|
30
|
+
* @param {Partial<IssueAdditionalInfo>} overrides Properties to override
|
|
31
|
+
* a {@link IssueAdditionalInfo}
|
|
32
|
+
* @returns {IssueAdditionalInfo} A {@link IssueAdditionalInfo} object
|
|
33
|
+
*/
|
|
34
|
+
export declare const buildIssueAdditionalInfo: (overrides?: Partial<IssueAdditionalInfo>) => IssueAdditionalInfo;
|
|
35
|
+
/**
|
|
36
|
+
* Generates a list of IssueAdditionalInfo objects with random data.
|
|
37
|
+
*
|
|
38
|
+
* @since 0.5.15
|
|
39
|
+
* @param {number} quantity The number of objects to be generated
|
|
40
|
+
* @returns {IssueAdditionalInfo[]} An array of IssueAdditionalInfo objects,
|
|
41
|
+
* see {@link IssueAdditionalInfo}
|
|
42
|
+
*/
|
|
43
|
+
export declare const genIssueAdditionalInfo: (quantity?: number | undefined) => IssueAdditionalInfo[];
|
|
44
|
+
/**
|
|
45
|
+
* Generates IssueHistory object with random data.
|
|
46
|
+
*
|
|
47
|
+
* @since 0.5.15
|
|
48
|
+
* @param {Partial<IssueHistory>} overrides Properties to override
|
|
49
|
+
* a {@link IssueHistory}
|
|
50
|
+
* @returns {IssueHistory} A {@link IssueHistory} object
|
|
51
|
+
*/
|
|
52
|
+
export declare const buildIssueHistory: (overrides?: Partial<IssueHistory>) => IssueHistory;
|
|
53
|
+
/**
|
|
54
|
+
* Generates a list of IssueHistory objects with random data.
|
|
55
|
+
*
|
|
56
|
+
* @since 0.5.15
|
|
57
|
+
* @param {number} quantity The number of objects to be generated
|
|
58
|
+
* @returns {IssueHistory[]} An array of IssueHistory objects,
|
|
59
|
+
* see {@link IssueHistory}
|
|
60
|
+
*/
|
|
61
|
+
export declare const genIssueHistory: (quantity?: number | undefined) => IssueHistory[];
|
|
62
|
+
/**
|
|
63
|
+
* Generates Workflow object with random data.
|
|
64
|
+
*
|
|
65
|
+
* @since 0.5.15
|
|
66
|
+
* @param {Partial<Workflow>} overrides Properties to override
|
|
67
|
+
* a {@link Workflow}
|
|
68
|
+
* @returns {Workflow} A {@link Workflow} object
|
|
69
|
+
*/
|
|
70
|
+
export declare const buildWorkflow: (overrides?: Partial<Workflow>) => Workflow;
|
|
71
|
+
/**
|
|
72
|
+
* Generates a list of Workflow objects with random data.
|
|
73
|
+
*
|
|
74
|
+
* @since 0.5.15
|
|
75
|
+
* @param {number} quantity The number of objects to be generated
|
|
76
|
+
* @returns {Workflow[]} An array of Workflow objects, see {@link Workflow}
|
|
77
|
+
*/
|
|
78
|
+
export declare const genWorkflows: (quantity?: number | undefined) => Workflow[];
|
|
79
|
+
/**
|
|
80
|
+
* Generates StepNotification object with random data.
|
|
81
|
+
*
|
|
82
|
+
* @since 0.5.15
|
|
83
|
+
* @param {Partial<StepNotification>} overrides Properties to override
|
|
84
|
+
* a {@link StepNotification}
|
|
85
|
+
* @returns {StepNotification} A {@link StepNotification} object
|
|
86
|
+
*/
|
|
87
|
+
export declare const buildStepNotification: (overrides?: Partial<StepNotification>) => StepNotification;
|
|
88
|
+
/**
|
|
89
|
+
* Generates a list of StepNotification objects with random data.
|
|
90
|
+
*
|
|
91
|
+
* @since 0.5.15
|
|
92
|
+
* @param {number} quantity The number of objects to be generated
|
|
93
|
+
* @returns {StepNotification[]} An array of StepNotification objects,
|
|
94
|
+
* see {@link StepNotification}
|
|
95
|
+
*/
|
|
96
|
+
export declare const genStepNotifications: (quantity?: number | undefined) => StepNotification[];
|
|
97
|
+
/**
|
|
98
|
+
* Generates StepWorkflow object with random data.
|
|
99
|
+
*
|
|
100
|
+
* @since 0.5.15
|
|
101
|
+
* @param {Partial<StepWorkflow>} overrides Properties to override
|
|
102
|
+
* a {@link StepWorkflow}
|
|
103
|
+
* @returns {StepWorkflow} A {@link StepWorkflow} object
|
|
104
|
+
*/
|
|
105
|
+
export declare const buildStepWorkflow: (overrides?: Partial<StepWorkflow>) => StepWorkflow;
|
|
106
|
+
/**
|
|
107
|
+
* Generates a list of StepWorkflow objects with random data.
|
|
108
|
+
*
|
|
109
|
+
* @since 0.5.15
|
|
110
|
+
* @param {number} quantity The number of objects to be generated
|
|
111
|
+
* @returns {StepWorkflow[]} An array of StepWorkflow objects,
|
|
112
|
+
* see {@link StepWorkflow}
|
|
113
|
+
*/
|
|
114
|
+
export declare const genStepWorkflows: (quantity?: number | undefined) => StepWorkflow[];
|
|
115
|
+
/**
|
|
116
|
+
* Generates WebhookWorkflow object with random data.
|
|
117
|
+
*
|
|
118
|
+
* @since 0.5.15
|
|
119
|
+
* @param {Partial<WebhookWorkflow>} overrides Properties to override
|
|
120
|
+
* a {@link WebhookWorkflow}
|
|
121
|
+
* @returns {WebhookWorkflow} A {@link WebhookWorkflow} object
|
|
122
|
+
*/
|
|
123
|
+
export declare const buildWebhookWorkflow: (overrides?: Partial<WebhookWorkflow>) => WebhookWorkflow;
|
|
124
|
+
/**
|
|
125
|
+
* Generates a list of WebhookWorkflow objects with random data.
|
|
126
|
+
*
|
|
127
|
+
* @since 0.5.15
|
|
128
|
+
* @param {number} quantity The number of objects to be generated
|
|
129
|
+
* @returns {WebhookWorkflow[]} An array of WebhookWorkflow objects,
|
|
130
|
+
* see {@link WebhookWorkflow}
|
|
131
|
+
*/
|
|
132
|
+
export declare const genWebhookWorkflows: (quantity?: number | undefined) => WebhookWorkflow[];
|
|
133
|
+
/**
|
|
134
|
+
* Generates StepWorkflowAdditionalInfo object with random data.
|
|
135
|
+
*
|
|
136
|
+
* @since 0.5.15
|
|
137
|
+
* @param {Partial<StepWorkflowAdditionalInfo>} overrides Properties to
|
|
138
|
+
* override a {@link StepWorkflowAdditionalInfo}
|
|
139
|
+
* @returns {StepWorkflowAdditionalInfo} A
|
|
140
|
+
* {@link StepWorkflowAdditionalInfo} object
|
|
141
|
+
*/
|
|
142
|
+
export declare const buildStepWorkflowAdditionalInfo: (overrides?: Partial<StepWorkflowAdditionalInfo>) => StepWorkflowAdditionalInfo;
|
|
143
|
+
/**
|
|
144
|
+
* Generates a list of StepWorkflowAdditionalInfo objects with random data.
|
|
145
|
+
*
|
|
146
|
+
* @since 0.5.15
|
|
147
|
+
* @param {number} quantity The number of objects to be generated
|
|
148
|
+
* @returns {StepWorkflowAdditionalInfo[]} An array of
|
|
149
|
+
* StepWorkflowAdditionalInfo objects, see {@link StepWorkflowAdditionalInfo}
|
|
150
|
+
*/
|
|
151
|
+
export declare const genStepWorkflowAdditionalInfos: (quantity?: number | undefined) => StepWorkflowAdditionalInfo[];
|
|
152
|
+
/**
|
|
153
|
+
* Generates StepWorkflowGroup object with random data.
|
|
154
|
+
*
|
|
155
|
+
* @since 0.5.15
|
|
156
|
+
* @param {Partial<StepWorkflowGroup>} overrides Properties to override
|
|
157
|
+
* a {@link StepWorkflowGroup}
|
|
158
|
+
* @returns {StepWorkflowGroup} A {@link StepWorkflowGroup} object
|
|
159
|
+
*/
|
|
160
|
+
export declare const buildStepWorkflowGroup: (overrides?: Partial<StepWorkflowGroup>) => StepWorkflowGroup;
|
|
161
|
+
/**
|
|
162
|
+
* Generates a list of StepWorkflowGroup objects with random data.
|
|
163
|
+
*
|
|
164
|
+
* @since 0.5.15
|
|
165
|
+
* @param {number} quantity The number of objects to be generated
|
|
166
|
+
* @returns {StepWorkflowGroup[]} An array of StepWorkflowGroup objects,
|
|
167
|
+
* see {@link StepWorkflowGroup}
|
|
168
|
+
*/
|
|
169
|
+
export declare const genStepWorkflowGroups: (quantity?: number | undefined) => StepWorkflowGroup[];
|
|
170
|
+
/**
|
|
171
|
+
* Generates TransitionWorkflow object with random data.
|
|
172
|
+
*
|
|
173
|
+
* @since 0.5.15
|
|
174
|
+
* @param {Partial<TransitionWorkflow>} overrides Properties to override
|
|
175
|
+
* a {@link TransitionWorkflow}
|
|
176
|
+
* @returns {TransitionWorkflow} A {@link TransitionWorkflow} object
|
|
177
|
+
*/
|
|
178
|
+
export declare const buildTransitionWorkflow: (overrides?: Partial<TransitionWorkflow>) => TransitionWorkflow;
|
|
179
|
+
/**
|
|
180
|
+
* Generates a list of TransitionWorkflow objects with random data.
|
|
181
|
+
*
|
|
182
|
+
* @since 0.5.15
|
|
183
|
+
* @param {number} quantity The number of objects to be generated
|
|
184
|
+
* @returns {TransitionWorkflow[]} An array of TransitionWorkflow objects,
|
|
185
|
+
* see {@link TransitionWorkflow}
|
|
186
|
+
*/
|
|
187
|
+
export declare const genTransitionWorkflows: (quantity?: number | undefined) => TransitionWorkflow[];
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { CDNImage, URLImage, RandomImageConfig } from "@artisan-commerce/types";
|
|
2
|
+
/**
|
|
3
|
+
* Generates a random image url.
|
|
4
|
+
*
|
|
5
|
+
* @since 0.5.15
|
|
6
|
+
*/
|
|
7
|
+
export declare const buildURLImage: (randomImageConfig?: RandomImageConfig | undefined) => string;
|
|
8
|
+
/**
|
|
9
|
+
* Generates a list of URLImage.
|
|
10
|
+
*
|
|
11
|
+
* @since 0.5.15
|
|
12
|
+
* @param {number} quantity The number of objects to be generated
|
|
13
|
+
* @returns {URLImage} An array of {@link URLImage}
|
|
14
|
+
*/
|
|
15
|
+
export declare const genURLImages: (quantity?: number | undefined, overrides?: RandomImageConfig | undefined) => URLImage[];
|
|
16
|
+
/**
|
|
17
|
+
* Generates CDNImage object with random data.
|
|
18
|
+
*
|
|
19
|
+
* @since 0.5.15
|
|
20
|
+
* @param {Partial<CDNImage>} overrides Properties to override
|
|
21
|
+
* a {@link CDNImage}
|
|
22
|
+
* @param {RandomImageConfig} options image request options{{@link RandomImageConfig}
|
|
23
|
+
* @returns {CDNImage} A {@link CDNImage} object
|
|
24
|
+
*/
|
|
25
|
+
export declare const buildCDNImage: (overrides?: Partial<CDNImage>, options?: RandomImageConfig | undefined) => CDNImage;
|
|
26
|
+
/**
|
|
27
|
+
* Generates a list of CDNImage objects with random data.
|
|
28
|
+
*
|
|
29
|
+
* @since 0.5.15
|
|
30
|
+
* @param {number} quantity The number of objects to be generated
|
|
31
|
+
* @param {RandomImageConfig} options image request options{{@link RandomImageConfig}
|
|
32
|
+
* @returns {CDNImage[]} An array of CDNImage objects, see {@link CDNImage}
|
|
33
|
+
*/
|
|
34
|
+
export declare const genCDNImages: (quantity?: number | undefined, options?: RandomImageConfig | undefined) => CDNImage[];
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Notification } from "@artisan-commerce/types";
|
|
2
|
+
/**
|
|
3
|
+
* Generates Notification object with random data.
|
|
4
|
+
*
|
|
5
|
+
* @since 0.5.15
|
|
6
|
+
* @param {Partial<Notification>} overrides Properties to override
|
|
7
|
+
* a {@link Notification}
|
|
8
|
+
* @returns {Notification} A {@link Notification} object
|
|
9
|
+
*/
|
|
10
|
+
export declare const buildNotification: (overrides?: Partial<Notification>) => Notification;
|
|
11
|
+
/**
|
|
12
|
+
* Generates a list of Notification objects with random data.
|
|
13
|
+
*
|
|
14
|
+
* @since 0.5.15
|
|
15
|
+
* @param {number} quantity The number of objects to be generated
|
|
16
|
+
* @returns {Notification[]} An array of Notification objects,
|
|
17
|
+
* see {@link Notification}
|
|
18
|
+
*/
|
|
19
|
+
export declare const genNotifications: (quantity?: number | undefined) => Notification[];
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
import { OrderLastRetry } from "@artisan-commerce/types";
|
|
2
|
+
import { BaseOrder, OrderDetails } from "@artisan-commerce/types";
|
|
3
|
+
import { OrderStep, OrderShoppingCart } from "@artisan-commerce/types";
|
|
4
|
+
import { OrderPaidPaymentMethod, OrderStore } from "@artisan-commerce/types";
|
|
5
|
+
import { OrderProduct, OrderDetailShippingCost } from "@artisan-commerce/types";
|
|
6
|
+
/**
|
|
7
|
+
* Generates BaseOrder object with random data.
|
|
8
|
+
*
|
|
9
|
+
* @since 0.5.14
|
|
10
|
+
* @param {Partial<BaseOrder>} overrides Properties to override
|
|
11
|
+
* a {@link BaseOrder}
|
|
12
|
+
* @returns {BaseOrder} A {@link BaseOrder} object
|
|
13
|
+
*/
|
|
14
|
+
export declare const buildBaseOrder: (overrides?: Partial<BaseOrder>) => BaseOrder;
|
|
15
|
+
/**
|
|
16
|
+
* Generates a list of BaseOrder objects with random data.
|
|
17
|
+
*
|
|
18
|
+
* @since 0.5.14
|
|
19
|
+
* @param {number} quantity The number of objects to be generated
|
|
20
|
+
* @returns {BaseOrder[]} An array of BaseOrder objects,
|
|
21
|
+
* see {@link BaseOrder}
|
|
22
|
+
*/
|
|
23
|
+
export declare const genBaseOrders: (quantity?: number | undefined) => BaseOrder[];
|
|
24
|
+
/**
|
|
25
|
+
* Generates OrderDetails object with random data.
|
|
26
|
+
*
|
|
27
|
+
* @since 0.5.14
|
|
28
|
+
* @param {Partial<OrderDetails>} overrides Properties to override
|
|
29
|
+
* a {@link OrderDetails}
|
|
30
|
+
* @returns {OrderDetails} A {@link OrderDetails} object
|
|
31
|
+
*/
|
|
32
|
+
export declare const buildOrderDetails: (overrides?: Partial<OrderDetails>) => OrderDetails;
|
|
33
|
+
/**
|
|
34
|
+
* Generates a list of OrderDetails objects with random data.
|
|
35
|
+
*
|
|
36
|
+
* @since 0.5.14
|
|
37
|
+
* @param {number} quantity The number of objects to be generated
|
|
38
|
+
* @returns {OrderDetails[]} An array of OrderDetails objects,
|
|
39
|
+
* see {@link OrderDetails}
|
|
40
|
+
*/
|
|
41
|
+
export declare const genOrderDetails: (quantity?: number | undefined) => OrderDetails[];
|
|
42
|
+
/**
|
|
43
|
+
* Generates OrderStep object with random data.
|
|
44
|
+
*
|
|
45
|
+
* @since 0.5.14
|
|
46
|
+
* @param {Partial<OrderStep>} overrides Properties to override
|
|
47
|
+
* a {@link OrderStep}
|
|
48
|
+
* @returns {OrderStep} A {@link OrderStep} object
|
|
49
|
+
*/
|
|
50
|
+
export declare const buildOrderStep: (overrides?: Partial<OrderStep>) => OrderStep;
|
|
51
|
+
/**
|
|
52
|
+
* Generates a list of OrderStep objects with random data.
|
|
53
|
+
*
|
|
54
|
+
* @since 0.5.14
|
|
55
|
+
* @param {number} quantity The number of objects to be generated
|
|
56
|
+
* @returns {OrderStep[]} An array of OrderStep objects,
|
|
57
|
+
* see {@link OrderStep}
|
|
58
|
+
*/
|
|
59
|
+
export declare const genOrderSteps: (quantity?: number | undefined) => OrderStep[];
|
|
60
|
+
/**
|
|
61
|
+
* Generates OrderDetailShippingCost object with random data.
|
|
62
|
+
*
|
|
63
|
+
* @since 0.5.14
|
|
64
|
+
* @param {Partial<OrderDetailShippingCost>} overrides Properties to override
|
|
65
|
+
* a {@link OrderDetailShippingCost}
|
|
66
|
+
* @returns {OrderDetailShippingCost} A {@link OrderDetailShippingCost} object
|
|
67
|
+
*/
|
|
68
|
+
export declare const buildOrderDetailShippingCost: (overrides?: Partial<OrderDetailShippingCost>) => OrderDetailShippingCost;
|
|
69
|
+
/**
|
|
70
|
+
* Generates a list of OrderDetailShippingCost objects with random data.
|
|
71
|
+
*
|
|
72
|
+
* @since 0.5.14
|
|
73
|
+
* @param {number} quantity The number of objects to be generated
|
|
74
|
+
* @returns {OrderDetailShippingCost[]} An array of OrderDetailShippingCost
|
|
75
|
+
* objects, see {@link OrderDetailShippingCost}
|
|
76
|
+
*/
|
|
77
|
+
export declare const genOrderDetailShippingCosts: (quantity?: number | undefined) => OrderDetailShippingCost[];
|
|
78
|
+
/**
|
|
79
|
+
* Generates OrderLastRetry object with random data.
|
|
80
|
+
*
|
|
81
|
+
* @since 0.5.14
|
|
82
|
+
* @param {Partial<OrderLastRetry>} overrides Properties to override
|
|
83
|
+
* a {@link OrderLastRetry}
|
|
84
|
+
* @returns {OrderLastRetry} A {@link OrderLastRetry} object
|
|
85
|
+
*/
|
|
86
|
+
export declare const buildOrderLastRetry: (overrides?: Partial<OrderLastRetry>) => OrderLastRetry;
|
|
87
|
+
/**
|
|
88
|
+
* Generates a list of OrderLastRetry objects with random data.
|
|
89
|
+
*
|
|
90
|
+
* @since 0.5.14
|
|
91
|
+
* @param {number} quantity The number of objects to be generated
|
|
92
|
+
* @returns {OrderLastRetry[]} An array of OrderLastRetry objects,
|
|
93
|
+
* see {@link OrderLastRetry}
|
|
94
|
+
*/
|
|
95
|
+
export declare const genOrderLastRetries: (quantity?: number | undefined) => OrderLastRetry[];
|
|
96
|
+
/**
|
|
97
|
+
* Generates OrderPaidPaymentMethod object with random data.
|
|
98
|
+
*
|
|
99
|
+
* @since 0.5.14
|
|
100
|
+
* @param {Partial<OrderPaidPaymentMethod>} overrides Properties to override
|
|
101
|
+
* a {@link OrderPaidPaymentMethod}
|
|
102
|
+
* @returns {OrderPaidPaymentMethod} A {@link OrderPaidPaymentMethod} object
|
|
103
|
+
*/
|
|
104
|
+
export declare const buildOrderPaidPaymentMethod: (overrides?: Partial<OrderPaidPaymentMethod>) => OrderPaidPaymentMethod;
|
|
105
|
+
/**
|
|
106
|
+
* Generates a list of OrderPaidPaymentMethod objects with random data.
|
|
107
|
+
*
|
|
108
|
+
* @since 0.5.14
|
|
109
|
+
* @param {number} quantity The number of objects to be generated
|
|
110
|
+
* @returns {OrderPaidPaymentMethod[]} An array of OrderPaidPaymentMethod
|
|
111
|
+
* objects, see {@link OrderPaidPaymentMethod}
|
|
112
|
+
*/
|
|
113
|
+
export declare const genOrderPaidPaymentMethods: (quantity?: number | undefined) => OrderPaidPaymentMethod[];
|
|
114
|
+
/**
|
|
115
|
+
* Generates OrderProduct object with random data.
|
|
116
|
+
*
|
|
117
|
+
* @since 0.5.14
|
|
118
|
+
* @param {Partial<OrderProduct>} overrides Properties to override
|
|
119
|
+
* a {@link OrderProduct}
|
|
120
|
+
* @returns {OrderProduct} A {@link OrderProduct} object
|
|
121
|
+
*/
|
|
122
|
+
export declare const buildOrderProduct: (overrides?: Partial<OrderProduct>) => OrderProduct;
|
|
123
|
+
/**
|
|
124
|
+
* Generates a list of OrderProduct objects with random data.
|
|
125
|
+
*
|
|
126
|
+
* @since 0.5.14
|
|
127
|
+
* @param {number} quantity The number of objects to be generated
|
|
128
|
+
* @returns {OrderProduct[]} An array of OrderProduct objects,
|
|
129
|
+
* see {@link OrderProduct}
|
|
130
|
+
*/
|
|
131
|
+
export declare const genOrderProducts: (quantity?: number | undefined) => OrderProduct[];
|
|
132
|
+
/**
|
|
133
|
+
* Generates OrderStore object with random data.
|
|
134
|
+
*
|
|
135
|
+
* @since 0.5.14
|
|
136
|
+
* @param {Partial<OrderStore>} overrides Properties to override
|
|
137
|
+
* a {@link OrderStore}
|
|
138
|
+
* @returns {OrderStore} A {@link OrderStore} object
|
|
139
|
+
*/
|
|
140
|
+
export declare const buildOrderStore: (overrides?: Partial<OrderStore>) => OrderStore;
|
|
141
|
+
/**
|
|
142
|
+
* Generates a list of OrderStore objects with random data.
|
|
143
|
+
*
|
|
144
|
+
* @since 0.5.14
|
|
145
|
+
* @param {number} quantity The number of objects to be generated
|
|
146
|
+
* @returns {OrderStore[]} An array of OrderStore objects,
|
|
147
|
+
* see {@link OrderStore}
|
|
148
|
+
*/
|
|
149
|
+
export declare const genOrderStores: (quantity?: number | undefined) => OrderStore[];
|
|
150
|
+
/**
|
|
151
|
+
* Generates OrderShoppingCart object with random data.
|
|
152
|
+
*
|
|
153
|
+
* @since 0.5.14
|
|
154
|
+
* @param {Partial<OrderShoppingCart>} overrides Properties to override
|
|
155
|
+
* a {@link OrderShoppingCart}
|
|
156
|
+
* @returns {OrderShoppingCart} A {@link OrderShoppingCart} object
|
|
157
|
+
*/
|
|
158
|
+
export declare const buildOrderShoppingCart: (overrides?: Partial<OrderShoppingCart>) => OrderShoppingCart;
|
|
159
|
+
/**
|
|
160
|
+
* Generates a list of OrderShoppingCart objects with random data.
|
|
161
|
+
*
|
|
162
|
+
* @since 0.5.14
|
|
163
|
+
* @param {number} quantity The number of objects to be generated
|
|
164
|
+
* @returns {OrderShoppingCart[]} An array of OrderShoppingCart objects,
|
|
165
|
+
* see {@link OrderShoppingCart}
|
|
166
|
+
*/
|
|
167
|
+
export declare const genOrderShoppingCarts: (quantity?: number | undefined) => OrderShoppingCart[];
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { BasePaymentMethod, PaymentMethod } from "@artisan-commerce/types";
|
|
2
|
+
import { CreditCardBrand, CreditCardMapping } from "@artisan-commerce/types";
|
|
3
|
+
import { CardInscription } from "@artisan-commerce/types";
|
|
4
|
+
/**
|
|
5
|
+
* Generates BasePaymentMethod object with random data.
|
|
6
|
+
*
|
|
7
|
+
* @since 0.5.15
|
|
8
|
+
* @param {Partial<BasePaymentMethod>} overrides Properties to override
|
|
9
|
+
* a {@link BasePaymentMethod}
|
|
10
|
+
* @returns {BasePaymentMethod} A {@link BasePaymentMethod} object
|
|
11
|
+
*/
|
|
12
|
+
export declare const buildBasePaymentMethod: (overrides?: Partial<BasePaymentMethod>) => BasePaymentMethod;
|
|
13
|
+
/**
|
|
14
|
+
* Generates a list of BasePaymentMethod objects with random data.
|
|
15
|
+
*
|
|
16
|
+
* @since 0.5.15
|
|
17
|
+
* @param {number} quantity The number of objects to be generated
|
|
18
|
+
* @returns {BasePaymentMethod[]} An array of BasePaymentMethod objects,
|
|
19
|
+
* see {@link BasePaymentMethod}
|
|
20
|
+
*/
|
|
21
|
+
export declare const genBasePaymentMethods: (quantity?: number | undefined) => BasePaymentMethod[];
|
|
22
|
+
/**
|
|
23
|
+
* Generates PaymentMethod object with random data.
|
|
24
|
+
*
|
|
25
|
+
* @since 0.5.15
|
|
26
|
+
* @param {Partial<PaymentMethod>} overrides Properties to override
|
|
27
|
+
* a {@link PaymentMethod}
|
|
28
|
+
* @returns {PaymentMethod} A {@link PaymentMethod} object
|
|
29
|
+
*/
|
|
30
|
+
export declare const buildPaymentMethod: (overrides?: Partial<PaymentMethod>) => PaymentMethod;
|
|
31
|
+
/**
|
|
32
|
+
* Generates a list of PaymentMethod objects with random data.
|
|
33
|
+
*
|
|
34
|
+
* @since 0.5.15
|
|
35
|
+
* @param {number} quantity The number of objects to be generated
|
|
36
|
+
* @returns {PaymentMethod[]} An array of PaymentMethod objects,
|
|
37
|
+
* see {@link PaymentMethod}
|
|
38
|
+
*/
|
|
39
|
+
export declare const genPaymentMethods: (quantity?: number | undefined) => PaymentMethod[];
|
|
40
|
+
/**
|
|
41
|
+
* Generates CreditCardBrand object with random data.
|
|
42
|
+
*
|
|
43
|
+
* @since 0.5.15
|
|
44
|
+
* @param {Partial<CreditCardBrand>} overrides Properties to override
|
|
45
|
+
* a {@link CreditCardBrand}
|
|
46
|
+
* @returns {CreditCardBrand} A {@link CreditCardBrand} object
|
|
47
|
+
*/
|
|
48
|
+
export declare const buildCreditCardBrand: (overrides?: Partial<CreditCardBrand>) => CreditCardBrand;
|
|
49
|
+
/**
|
|
50
|
+
* Generates a list of CreditCardBrand objects with random data.
|
|
51
|
+
*
|
|
52
|
+
* @since 0.5.15
|
|
53
|
+
* @param {number} quantity The number of objects to be generated
|
|
54
|
+
* @returns {CreditCardBrand[]} An array of credit card brands,
|
|
55
|
+
* see {@link CreditCardBrand}
|
|
56
|
+
*/
|
|
57
|
+
export declare const genCreditCardBrands: (quantity?: number | undefined) => CreditCardBrand[];
|
|
58
|
+
/**
|
|
59
|
+
* Generates CreditCardMapping object with random data.
|
|
60
|
+
*
|
|
61
|
+
* @since 0.5.15
|
|
62
|
+
* @param {Partial<CreditCardMapping>} overrides Properties to override
|
|
63
|
+
* a {@link CreditCardMapping}
|
|
64
|
+
* @returns {CreditCardMapping} A {@link CreditCardMapping} object
|
|
65
|
+
*/
|
|
66
|
+
export declare const buildCreditCardMapping: (overrides?: Partial<CreditCardMapping>) => CreditCardMapping;
|
|
67
|
+
/**
|
|
68
|
+
* Generates a list of CreditCardMapping objects with random data.
|
|
69
|
+
*
|
|
70
|
+
* @since 0.5.15
|
|
71
|
+
* @param {number} quantity The number of objects to be generated
|
|
72
|
+
* @returns {CreditCardMapping[]} An array of credit card mappings,
|
|
73
|
+
* see {@link CreditCardMapping}
|
|
74
|
+
*/
|
|
75
|
+
export declare const genCreditCardMappings: (quantity?: number | undefined) => CreditCardMapping[];
|
|
76
|
+
/**
|
|
77
|
+
* Generates CardInscription object with random data.
|
|
78
|
+
*
|
|
79
|
+
* @since 0.5.15
|
|
80
|
+
* @param {Partial<CardInscription>} overrides Properties to override
|
|
81
|
+
* a {@link CardInscription}
|
|
82
|
+
* @returns {CardInscription} A {@link CardInscription} object
|
|
83
|
+
*/
|
|
84
|
+
export declare const buildCardInscription: (overrides?: Partial<CardInscription>) => CardInscription;
|
|
85
|
+
/**
|
|
86
|
+
* Generates a list of CardInscription objects with random data.
|
|
87
|
+
*
|
|
88
|
+
* @since 0.5.15
|
|
89
|
+
* @param {number} quantity The number of objects to be generated
|
|
90
|
+
* @returns {CardInscription[]} An array of card inscriptions,
|
|
91
|
+
* see {@link CardInscription}
|
|
92
|
+
*/
|
|
93
|
+
export declare const genCardInscriptions: (quantity?: number | undefined) => CardInscription[];
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import { BaseProduct } from "@artisan-commerce/types";
|
|
2
|
+
import { CartProductAnswer } from "@artisan-commerce/types";
|
|
3
|
+
import { CartProductQuestion } from "@artisan-commerce/types";
|
|
4
|
+
import { CartProduct, ProductQuestion } from "@artisan-commerce/types";
|
|
5
|
+
import { ProductAnswer, ProductDetails } from "@artisan-commerce/types";
|
|
6
|
+
import { PriceCategory, PriceCategoryTax } from "@artisan-commerce/types";
|
|
7
|
+
/**
|
|
8
|
+
* Generates PriceCategoryTax object with random data.
|
|
9
|
+
*
|
|
10
|
+
* @since 0.5.14
|
|
11
|
+
* @param {Partial<PriceCategoryTax>} overrides Properties to override
|
|
12
|
+
* a {@link PriceCategoryTax}
|
|
13
|
+
* @returns {PriceCategoryTax} A {@link PriceCategoryTax} object
|
|
14
|
+
*/
|
|
15
|
+
export declare const buildPriceCategoryTax: (overrides?: Partial<PriceCategoryTax>) => PriceCategoryTax;
|
|
16
|
+
/**
|
|
17
|
+
* Generates a list of PriceCategoryTax objects with random data.
|
|
18
|
+
*
|
|
19
|
+
* @since 0.5.14
|
|
20
|
+
* @param {number} quantity The number of objects to be generated
|
|
21
|
+
* @returns {PriceCategoryTax[]} An array of price category taxes objects,
|
|
22
|
+
* see {@link PriceCategoryTax}
|
|
23
|
+
*/
|
|
24
|
+
export declare const genPriceCategoryTaxes: (quantity?: number | undefined) => PriceCategoryTax[];
|
|
25
|
+
/**
|
|
26
|
+
* Generates PriceCategory object with random data.
|
|
27
|
+
*
|
|
28
|
+
* @since 0.5.14
|
|
29
|
+
* @param {Partial<PriceCategory>} overrides Properties to override
|
|
30
|
+
* a {@link PriceCategory}
|
|
31
|
+
* @returns {PriceCategory} A {@link PriceCategory} object
|
|
32
|
+
*/
|
|
33
|
+
export declare const buildPriceCategory: (overrides?: Partial<PriceCategory>) => PriceCategory;
|
|
34
|
+
/**
|
|
35
|
+
* Generates BaseProduct object with random data.
|
|
36
|
+
*
|
|
37
|
+
* @since 0.5.14
|
|
38
|
+
* @param {Partial<BaseProduct>} overrides Properties to override
|
|
39
|
+
* a {@link BaseProduct}
|
|
40
|
+
* @returns {BaseProduct} A {@link BaseProduct} object
|
|
41
|
+
*/
|
|
42
|
+
export declare const buildBaseProduct: (overrides?: Partial<BaseProduct>) => BaseProduct;
|
|
43
|
+
/**
|
|
44
|
+
* Generates a list of BaseProduct objects with random data.
|
|
45
|
+
*
|
|
46
|
+
* @since 0.5.14
|
|
47
|
+
* @param {number} quantity The number of objects to be generated
|
|
48
|
+
* @returns {BaseProduct[]} An array of BaseProduct objects,
|
|
49
|
+
* see {@link BaseProduct}
|
|
50
|
+
*/
|
|
51
|
+
export declare const genBaseProducts: (quantity?: number | undefined) => BaseProduct[];
|
|
52
|
+
/**
|
|
53
|
+
* Render type for product answers
|
|
54
|
+
*
|
|
55
|
+
* @since 0.5.14
|
|
56
|
+
*/
|
|
57
|
+
export declare const MODIFIER_TYPES: string[];
|
|
58
|
+
/**
|
|
59
|
+
* Generates ProductAnswer object with random data.
|
|
60
|
+
*
|
|
61
|
+
* @since 0.5.14
|
|
62
|
+
* @param {Partial<ProductAnswer>} overrides Properties to override
|
|
63
|
+
* a {@link ProductAnswer}
|
|
64
|
+
* @param {number} loop The quantity of loops the function will be run
|
|
65
|
+
* @returns {ProductAnswer} A {@link ProductAnswer} object
|
|
66
|
+
*/
|
|
67
|
+
export declare const buildProductAnswer: (overrides?: Partial<ProductAnswer>, loop?: number) => ProductAnswer;
|
|
68
|
+
/**
|
|
69
|
+
* Generates a list of ProductAnswer objects with random data.
|
|
70
|
+
*
|
|
71
|
+
* @since 0.5.14
|
|
72
|
+
* @param {number} quantity The number of objects to be generated
|
|
73
|
+
* @param {number} loop The quantity of loops the function will be run
|
|
74
|
+
* @returns {ProductAnswer[]} An array of ProductAnswer objects,
|
|
75
|
+
* see {@link ProductAnswer}
|
|
76
|
+
*/
|
|
77
|
+
export declare const genProductAnswers: (quantity?: number | undefined, loop?: number) => ProductAnswer[];
|
|
78
|
+
/**
|
|
79
|
+
* Generates ProductQuestion object with random data.
|
|
80
|
+
*
|
|
81
|
+
* @since 0.5.14
|
|
82
|
+
* @param {Partial<ProductQuestion>} overrides Properties to override
|
|
83
|
+
* a {@link ProductQuestion}
|
|
84
|
+
* @param {number} loop The quantity of loops the function will be run
|
|
85
|
+
* @returns {ProductQuestion} A {@link ProductQuestion} object
|
|
86
|
+
*/
|
|
87
|
+
export declare const buildProductQuestion: (overrides?: Partial<ProductQuestion>, loop?: number) => ProductQuestion;
|
|
88
|
+
/**
|
|
89
|
+
* Generates a list of ProductQuestion objects with random data.
|
|
90
|
+
*
|
|
91
|
+
* @since 0.5.14
|
|
92
|
+
* @param {number} quantity The number of objects to be generated
|
|
93
|
+
* @param {number} loop The quantity of loops the function will be run
|
|
94
|
+
* @returns {ProductQuestion[]} An array of ProductQuestion objects,
|
|
95
|
+
* see {@link ProductQuestion}
|
|
96
|
+
*/
|
|
97
|
+
export declare const genProductQuestions: (quantity?: number | undefined, loop?: number) => ProductQuestion[];
|
|
98
|
+
/**
|
|
99
|
+
* Generates ProductDetails object with random data.
|
|
100
|
+
*
|
|
101
|
+
* @since 0.5.14
|
|
102
|
+
* @param {Partial<ProductDetails>} overrides Properties to override
|
|
103
|
+
* a {@link ProductDetails}
|
|
104
|
+
* @returns {ProductDetails} A {@link ProductDetails} object
|
|
105
|
+
*/
|
|
106
|
+
export declare const buildProductDetails: (overrides?: Partial<ProductDetails>) => ProductDetails;
|
|
107
|
+
/**
|
|
108
|
+
* Generates a list of ProductDetails objects with random data.
|
|
109
|
+
*
|
|
110
|
+
* @since 0.5.14
|
|
111
|
+
* @param {number} quantity The number of objects to be generated
|
|
112
|
+
* @returns {ProductDetails[]} An array of ProductDetails objects,
|
|
113
|
+
* see {@link ProductDetails}
|
|
114
|
+
*/
|
|
115
|
+
export declare const genProductDetails: (quantity?: number | undefined) => ProductDetails[];
|
|
116
|
+
/**
|
|
117
|
+
* Generates CartProductAnswer object with random data.
|
|
118
|
+
*
|
|
119
|
+
* @since 0.5.14
|
|
120
|
+
* @param questionId The question id associated with the answer
|
|
121
|
+
* @param {Partial<CartProductAnswer>} overrides Properties to override
|
|
122
|
+
* a {@link CartProductAnswer}
|
|
123
|
+
* @returns {CartProductAnswer} A {@link CartProductAnswer} object
|
|
124
|
+
*/
|
|
125
|
+
export declare const buildCartProductAnswer: (questionId: string, overrides?: Partial<CartProductAnswer>) => CartProductAnswer;
|
|
126
|
+
/**
|
|
127
|
+
* Generates a list of CartProductAnswer objects with random data.
|
|
128
|
+
*
|
|
129
|
+
* @since 0.5.14
|
|
130
|
+
* @param {number} quantity The number of objects to be generated
|
|
131
|
+
* @returns {CartProductAnswer[]} An array of CartProductAnswer objects,
|
|
132
|
+
* see {@link CartProductAnswer}
|
|
133
|
+
*/
|
|
134
|
+
export declare const genCartProductAnswers: (quantity?: number | undefined) => CartProductAnswer[];
|
|
135
|
+
/**
|
|
136
|
+
* Generates CartProductQuestion object with random data.
|
|
137
|
+
*
|
|
138
|
+
* @since 0.5.14
|
|
139
|
+
* @param {Partial<CartProductQuestion>} overrides Properties to override
|
|
140
|
+
* a {@link CartProductQuestion}
|
|
141
|
+
* @returns {CartProductQuestion} A {@link CartProductQuestion} object
|
|
142
|
+
*/
|
|
143
|
+
export declare const buildCartProductQuestion: (overrides?: Partial<CartProductQuestion>) => CartProductQuestion;
|
|
144
|
+
/**
|
|
145
|
+
* Generates a list of CartProductQuestion objects with random data.
|
|
146
|
+
*
|
|
147
|
+
* @since 0.5.14
|
|
148
|
+
* @param {number} quantity The number of objects to be generated
|
|
149
|
+
* @returns {CartProductQuestion[]} An array of CartProductQuestion objects,
|
|
150
|
+
* see {@link CartProductQuestion}
|
|
151
|
+
*/
|
|
152
|
+
export declare const genCartProductQuestions: (quantity?: number | undefined) => CartProductQuestion[];
|
|
153
|
+
/**
|
|
154
|
+
* Generates CartProduct object with random data.
|
|
155
|
+
*
|
|
156
|
+
* @since 0.5.14
|
|
157
|
+
* @param {Partial<CartProduct>} overrides Properties to override
|
|
158
|
+
* a {@link CartProduct}
|
|
159
|
+
* @returns {CartProduct} A {@link CartProduct} object
|
|
160
|
+
*/
|
|
161
|
+
export declare const buildCartProduct: (overrides?: Partial<CartProduct>) => CartProduct;
|