@artisan-commerce/builders 0.7.0-canary.18 → 0.7.0-canary.2
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 -139
- package/build/builders/common.builder.d.ts +2 -88
- package/build/builders/country.builder.d.ts +18 -15
- package/build/builders/coupon.builder.d.ts +3 -3
- package/build/builders/fulfillment.builder.d.ts +2 -14
- package/build/builders/image.builder.d.ts +2 -4
- package/build/builders/order.builder.d.ts +41 -338
- package/build/builders/product.builder.d.ts +0 -9
- package/build/builders/user.builder.d.ts +1 -17
- package/build/index.d.ts +2 -2
- package/build/main.bundle.js +2 -2
- package/build/report.json +1 -1
- package/package.json +3 -3
|
@@ -1,43 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { OrderProduct, OrderStore } from "@artisan-commerce/types";
|
|
3
|
-
import { PaymentMethodByOrder } from "@artisan-commerce/types";
|
|
4
|
-
import { OrderRetry, Suborder, ZipCodeField } from "@artisan-commerce/types";
|
|
5
|
-
import { OperatorInformation } from "@artisan-commerce/types";
|
|
6
|
-
import { OrderAdditionalInfo } from "@artisan-commerce/types";
|
|
7
|
-
import { OrderRetryPaymentMethod } from "@artisan-commerce/types";
|
|
8
|
-
import { MetadataShipping, OrderUser } from "@artisan-commerce/types";
|
|
9
|
-
import { InjectionDetail, IntegrationMessage } from "@artisan-commerce/types";
|
|
10
|
-
import { Allocation, BaseField, Status } from "@artisan-commerce/types";
|
|
1
|
+
import { OrderLastRetry } from "@artisan-commerce/types";
|
|
11
2
|
import { BaseOrder, OrderDetails } from "@artisan-commerce/types";
|
|
12
3
|
import { OrderStep, OrderShoppingCart } from "@artisan-commerce/types";
|
|
13
|
-
import {
|
|
14
|
-
import { OrderDetailShippingCost } from "@artisan-commerce/types";
|
|
15
|
-
import { OrderStepAdditionalInfo } from "@artisan-commerce/types";
|
|
16
|
-
import { OrderStepAdditionalInfoGroup } from "@artisan-commerce/types";
|
|
17
|
-
/**
|
|
18
|
-
* All values of OrderStatus.
|
|
19
|
-
*
|
|
20
|
-
* @since 0.1.0
|
|
21
|
-
*/
|
|
22
|
-
export declare const orderStatusOptions: OrderStatus[];
|
|
23
|
-
/**
|
|
24
|
-
* All values of Allocation.
|
|
25
|
-
*
|
|
26
|
-
* @since 0.1.0
|
|
27
|
-
*/
|
|
28
|
-
export declare const allocationOptions: Allocation[];
|
|
29
|
-
/**
|
|
30
|
-
* Generate a sequence identifier with random numbers.
|
|
31
|
-
*
|
|
32
|
-
* @since 0.1.0
|
|
33
|
-
*/
|
|
34
|
-
export declare const genSeqId: () => string;
|
|
35
|
-
/**
|
|
36
|
-
* Generate a order reference with random data.
|
|
37
|
-
*
|
|
38
|
-
* @since 0.1.0
|
|
39
|
-
*/
|
|
40
|
-
export declare const genReference: () => string;
|
|
4
|
+
import { OrderPaidPaymentMethod, OrderStore } from "@artisan-commerce/types";
|
|
5
|
+
import { OrderProduct, OrderDetailShippingCost } from "@artisan-commerce/types";
|
|
41
6
|
/**
|
|
42
7
|
* Generates BaseOrder object with random data.
|
|
43
8
|
*
|
|
@@ -83,36 +48,6 @@ export declare const genOrderDetails: (quantity?: number | undefined) => OrderDe
|
|
|
83
48
|
* @returns {OrderStep} A {@link OrderStep} object
|
|
84
49
|
*/
|
|
85
50
|
export declare const buildOrderStep: (overrides?: Partial<OrderStep>) => OrderStep;
|
|
86
|
-
/**
|
|
87
|
-
* Generates OrderStepAdditionalInfo object with random data.
|
|
88
|
-
*
|
|
89
|
-
* @since 0.1.0
|
|
90
|
-
* @param {Partial<OrderStepAdditionalInfo>} overrides Properties to override
|
|
91
|
-
* a {@link OrderStepAdditionalInfo}
|
|
92
|
-
* @returns {OrderStepAdditionalInfo} A
|
|
93
|
-
* {@link OrderStepAdditionalInfo} object
|
|
94
|
-
*/
|
|
95
|
-
export declare const buildOrderStepAdditionalInfo: (overrides?: Partial<OrderStepAdditionalInfo>) => OrderStepAdditionalInfo;
|
|
96
|
-
/**
|
|
97
|
-
* Generates a list of OrderStepAdditionalInfo objects with random data.
|
|
98
|
-
*
|
|
99
|
-
* @since 0.1.0
|
|
100
|
-
* @param {number} quantity The number of objects to be generated
|
|
101
|
-
* @returns {OrderStepAdditionalInfo[]} An array of
|
|
102
|
-
* OrderStepAdditionalInfo objects,
|
|
103
|
-
* see {@link OrderStepAdditionalInfo}
|
|
104
|
-
*/
|
|
105
|
-
export declare const genOrderStepAdditionalInfos: (quantity?: number | undefined) => OrderStepAdditionalInfo[];
|
|
106
|
-
/**
|
|
107
|
-
* Generates OrderStepAdditionalInfoGroup object with random data.
|
|
108
|
-
*
|
|
109
|
-
* @since 0.1.0
|
|
110
|
-
* @param {Partial<OrderStepAdditionalInfoGroup>} overrides Properties
|
|
111
|
-
* to override a {@link OrderStepAdditionalInfoGroup}
|
|
112
|
-
* @returns {OrderStepAdditionalInfoGroup} A
|
|
113
|
-
* {@link OrderStepAdditionalInfoGroup} object
|
|
114
|
-
*/
|
|
115
|
-
export declare const buildOrderStepAdditionalInfoGroup: (overrides?: Partial<OrderStepAdditionalInfoGroup>) => OrderStepAdditionalInfoGroup;
|
|
116
51
|
/**
|
|
117
52
|
* Generates a list of OrderStep objects with random data.
|
|
118
53
|
*
|
|
@@ -141,72 +76,63 @@ export declare const buildOrderDetailShippingCost: (overrides?: Partial<OrderDet
|
|
|
141
76
|
*/
|
|
142
77
|
export declare const genOrderDetailShippingCosts: (quantity?: number | undefined) => OrderDetailShippingCost[];
|
|
143
78
|
/**
|
|
144
|
-
* Generates
|
|
79
|
+
* Generates OrderLastRetry object with random data.
|
|
145
80
|
*
|
|
146
81
|
* @since 0.5.14
|
|
147
|
-
* @param {Partial<
|
|
148
|
-
* a {@link
|
|
149
|
-
* @returns {
|
|
82
|
+
* @param {Partial<OrderLastRetry>} overrides Properties to override
|
|
83
|
+
* a {@link OrderLastRetry}
|
|
84
|
+
* @returns {OrderLastRetry} A {@link OrderLastRetry} object
|
|
150
85
|
*/
|
|
151
|
-
export declare const
|
|
86
|
+
export declare const buildOrderLastRetry: (overrides?: Partial<OrderLastRetry>) => OrderLastRetry;
|
|
152
87
|
/**
|
|
153
|
-
* Generates
|
|
88
|
+
* Generates a list of OrderLastRetry objects with random data.
|
|
154
89
|
*
|
|
155
|
-
* @since 0.
|
|
156
|
-
* @param {Partial<Status>} overrides Properties to override
|
|
157
|
-
* a {@link Status}
|
|
158
|
-
* @returns {Status} A {@link Status} object
|
|
159
|
-
*/
|
|
160
|
-
export declare const buildStatus: (overrides?: Partial<Status>) => Status;
|
|
161
|
-
/**
|
|
162
|
-
* Generates a list of Status objects with random data.
|
|
163
|
-
*
|
|
164
|
-
* @since 0.1.0
|
|
90
|
+
* @since 0.5.14
|
|
165
91
|
* @param {number} quantity The number of objects to be generated
|
|
166
|
-
* @returns {
|
|
167
|
-
* see {@link
|
|
92
|
+
* @returns {OrderLastRetry[]} An array of OrderLastRetry objects,
|
|
93
|
+
* see {@link OrderLastRetry}
|
|
168
94
|
*/
|
|
169
|
-
export declare const
|
|
95
|
+
export declare const genOrderLastRetries: (quantity?: number | undefined) => OrderLastRetry[];
|
|
170
96
|
/**
|
|
171
|
-
* Generates
|
|
97
|
+
* Generates OrderPaidPaymentMethod object with random data.
|
|
172
98
|
*
|
|
173
99
|
* @since 0.5.14
|
|
174
|
-
* @param {
|
|
175
|
-
* @
|
|
176
|
-
*
|
|
100
|
+
* @param {Partial<OrderPaidPaymentMethod>} overrides Properties to override
|
|
101
|
+
* a {@link OrderPaidPaymentMethod}
|
|
102
|
+
* @returns {OrderPaidPaymentMethod} A {@link OrderPaidPaymentMethod} object
|
|
177
103
|
*/
|
|
178
|
-
export declare const
|
|
104
|
+
export declare const buildOrderPaidPaymentMethod: (overrides?: Partial<OrderPaidPaymentMethod>) => OrderPaidPaymentMethod;
|
|
179
105
|
/**
|
|
180
|
-
* Generates
|
|
106
|
+
* Generates a list of OrderPaidPaymentMethod objects with random data.
|
|
181
107
|
*
|
|
182
108
|
* @since 0.5.14
|
|
183
|
-
* @param {
|
|
184
|
-
*
|
|
185
|
-
*
|
|
109
|
+
* @param {number} quantity The number of objects to be generated
|
|
110
|
+
* @returns {OrderPaidPaymentMethod[]} An array of OrderPaidPaymentMethod
|
|
111
|
+
* objects, see {@link OrderPaidPaymentMethod}
|
|
186
112
|
*/
|
|
187
|
-
export declare const
|
|
113
|
+
export declare const genOrderPaidPaymentMethods: (quantity?: number | undefined) => OrderPaidPaymentMethod[];
|
|
188
114
|
/**
|
|
189
|
-
* Generates
|
|
115
|
+
* Generates OrderProduct object with random data.
|
|
190
116
|
*
|
|
191
117
|
* @since 0.5.14
|
|
192
|
-
* @param {
|
|
193
|
-
* @
|
|
194
|
-
*
|
|
118
|
+
* @param {Partial<OrderProduct>} overrides Properties to override
|
|
119
|
+
* a {@link OrderProduct}
|
|
120
|
+
* @returns {OrderProduct} A {@link OrderProduct} object
|
|
195
121
|
*/
|
|
196
|
-
export declare const
|
|
122
|
+
export declare const buildOrderProduct: (overrides?: Partial<OrderProduct>) => OrderProduct;
|
|
197
123
|
/**
|
|
198
|
-
* Generates
|
|
124
|
+
* Generates a list of OrderProduct objects with random data.
|
|
199
125
|
*
|
|
200
126
|
* @since 0.5.14
|
|
201
|
-
* @param {
|
|
202
|
-
*
|
|
203
|
-
*
|
|
127
|
+
* @param {number} quantity The number of objects to be generated
|
|
128
|
+
* @returns {OrderProduct[]} An array of OrderProduct objects,
|
|
129
|
+
* see {@link OrderProduct}
|
|
204
130
|
*/
|
|
205
|
-
export declare const
|
|
131
|
+
export declare const genOrderProducts: (quantity?: number | undefined) => OrderProduct[];
|
|
206
132
|
/**
|
|
207
133
|
* Generates OrderStore object with random data.
|
|
208
134
|
*
|
|
209
|
-
* @since 0.
|
|
135
|
+
* @since 0.5.14
|
|
210
136
|
* @param {Partial<OrderStore>} overrides Properties to override
|
|
211
137
|
* a {@link OrderStore}
|
|
212
138
|
* @returns {OrderStore} A {@link OrderStore} object
|
|
@@ -215,48 +141,21 @@ export declare const buildOrderStore: (overrides?: Partial<OrderStore>) => Order
|
|
|
215
141
|
/**
|
|
216
142
|
* Generates a list of OrderStore objects with random data.
|
|
217
143
|
*
|
|
218
|
-
* @since 0.
|
|
144
|
+
* @since 0.5.14
|
|
219
145
|
* @param {number} quantity The number of objects to be generated
|
|
220
146
|
* @returns {OrderStore[]} An array of OrderStore objects,
|
|
221
147
|
* see {@link OrderStore}
|
|
222
148
|
*/
|
|
223
149
|
export declare const genOrderStores: (quantity?: number | undefined) => OrderStore[];
|
|
224
150
|
/**
|
|
225
|
-
* Generates
|
|
226
|
-
*
|
|
227
|
-
* @since 0.1.0
|
|
228
|
-
* @param {Partial<OrderProduct>} overrides Properties to override
|
|
229
|
-
* a {@link OrderProduct}
|
|
230
|
-
* @returns {OrderProduct} A {@link OrderProduct} object
|
|
231
|
-
*/
|
|
232
|
-
export declare const buildOrderProduct: (overrides?: Partial<OrderProduct>) => OrderProduct;
|
|
233
|
-
/**
|
|
234
|
-
* Generates a list of OrderProduct objects with random data.
|
|
235
|
-
*
|
|
236
|
-
* @since 0.1.0
|
|
237
|
-
* @param {number} quantity The number of objects to be generated
|
|
238
|
-
* @returns {OrderProduct[]} An array of OrderProduct objects,
|
|
239
|
-
* see {@link OrderProduct}
|
|
240
|
-
*/
|
|
241
|
-
export declare const genOrderProducts: (quantity?: number | undefined) => OrderProduct[];
|
|
242
|
-
/**
|
|
243
|
-
* Generates OrderBillProduct object with random data.
|
|
244
|
-
*
|
|
245
|
-
* @since 0.1.0
|
|
246
|
-
* @param {Partial<OrderBillProduct>} overrides Properties to override
|
|
247
|
-
* a {@link OrderBillProduct}
|
|
248
|
-
* @returns {OrderBillProduct} A {@link OrderBillProduct} object
|
|
249
|
-
*/
|
|
250
|
-
export declare const buildOrderBillProduct: (overrides?: Partial<OrderBillProduct>) => OrderBillProduct;
|
|
251
|
-
/**
|
|
252
|
-
* Generates OrderBillTotal object with random data.
|
|
151
|
+
* Generates OrderShoppingCart object with random data.
|
|
253
152
|
*
|
|
254
|
-
* @since 0.
|
|
255
|
-
* @param {Partial<
|
|
256
|
-
* a {@link
|
|
257
|
-
* @returns {
|
|
153
|
+
* @since 0.5.14
|
|
154
|
+
* @param {Partial<OrderShoppingCart>} overrides Properties to override
|
|
155
|
+
* a {@link OrderShoppingCart}
|
|
156
|
+
* @returns {OrderShoppingCart} A {@link OrderShoppingCart} object
|
|
258
157
|
*/
|
|
259
|
-
export declare const
|
|
158
|
+
export declare const buildOrderShoppingCart: (overrides?: Partial<OrderShoppingCart>) => OrderShoppingCart;
|
|
260
159
|
/**
|
|
261
160
|
* Generates a list of OrderShoppingCart objects with random data.
|
|
262
161
|
*
|
|
@@ -266,199 +165,3 @@ export declare const buildOrderBillTotal: (overrides?: Partial<OrderBillTotal>)
|
|
|
266
165
|
* see {@link OrderShoppingCart}
|
|
267
166
|
*/
|
|
268
167
|
export declare const genOrderShoppingCarts: (quantity?: number | undefined) => OrderShoppingCart[];
|
|
269
|
-
/**
|
|
270
|
-
* Generates OrderAdditionalInfo object with random data.
|
|
271
|
-
*
|
|
272
|
-
* @since 0.1.0
|
|
273
|
-
* @param {Partial<OrderAdditionalInfo>} overrides Properties to override
|
|
274
|
-
* a {@link OrderAdditionalInfo}
|
|
275
|
-
* @returns {OrderAdditionalInfo} A {@link OrderAdditionalInfo} object
|
|
276
|
-
*/
|
|
277
|
-
export declare const buildOrderAdditionalInfo: (overrides?: Partial<OrderAdditionalInfo>) => OrderAdditionalInfo;
|
|
278
|
-
/**
|
|
279
|
-
* Generates a list of OrderAdditionalInfo objects with random data.
|
|
280
|
-
*
|
|
281
|
-
* @since 0.1.0
|
|
282
|
-
* @param {number} quantity The number of objects to be generated
|
|
283
|
-
* @returns {OrderAdditionalInfo[]} An array of OrderAdditionalInfo objects,
|
|
284
|
-
* see {@link OrderAdditionalInfo}
|
|
285
|
-
*/
|
|
286
|
-
export declare const genOrderAdditionalInfos: (quantity?: number | undefined) => OrderAdditionalInfo[];
|
|
287
|
-
/**
|
|
288
|
-
* Generates MetadataShipping object with random data.
|
|
289
|
-
*
|
|
290
|
-
* @since 0.1.0
|
|
291
|
-
* @param {Partial<MetadataShipping>} overrides Properties to override
|
|
292
|
-
* a {@link MetadataShipping}
|
|
293
|
-
* @returns {MetadataShipping} A {@link MetadataShipping} object
|
|
294
|
-
*/
|
|
295
|
-
export declare const buildMetadataShipping: (overrides?: Partial<MetadataShipping>) => MetadataShipping;
|
|
296
|
-
/**
|
|
297
|
-
* Generates a list of MetadataShipping objects with random data.
|
|
298
|
-
*
|
|
299
|
-
* @since 0.1.0
|
|
300
|
-
* @param {number} quantity The number of objects to be generated
|
|
301
|
-
* @returns {MetadataShipping[]} An array of MetadataShipping objects,
|
|
302
|
-
* see {@link MetadataShipping}
|
|
303
|
-
*/
|
|
304
|
-
export declare const genMetadataShippings: (quantity?: number | undefined) => MetadataShipping[];
|
|
305
|
-
/**
|
|
306
|
-
* Generates BaseField object with random data.
|
|
307
|
-
*
|
|
308
|
-
* @since 0.1.0
|
|
309
|
-
* @param {Partial<BaseField>} overrides Properties to override
|
|
310
|
-
* a {@link BaseField}
|
|
311
|
-
* @returns {BaseField} A {@link BaseField} object
|
|
312
|
-
*/
|
|
313
|
-
export declare const buildBaseField: (overrides?: Partial<BaseField>) => BaseField;
|
|
314
|
-
/**
|
|
315
|
-
* Generates a list of BaseField objects with random data.
|
|
316
|
-
*
|
|
317
|
-
* @since 0.1.0
|
|
318
|
-
* @param {number} quantity The number of objects to be generated
|
|
319
|
-
* @returns {BaseField[]} An array of BaseField objects,
|
|
320
|
-
* see {@link BaseField}
|
|
321
|
-
*/
|
|
322
|
-
export declare const genBaseFields: (quantity?: number | undefined) => BaseField[];
|
|
323
|
-
/**
|
|
324
|
-
* Generates ZipCodeField object with random data.
|
|
325
|
-
*
|
|
326
|
-
* @since 0.1.0
|
|
327
|
-
* @param {Partial<ZipCodeField>} overrides Properties to override
|
|
328
|
-
* a {@link ZipCodeField}
|
|
329
|
-
* @returns {ZipCodeField} A {@link ZipCodeField} object
|
|
330
|
-
*/
|
|
331
|
-
export declare const buildZipCodeField: (overrides?: Partial<ZipCodeField>) => ZipCodeField;
|
|
332
|
-
/**
|
|
333
|
-
* Generates a list of ZipCodeField objects with random data.
|
|
334
|
-
*
|
|
335
|
-
* @since 0.1.0
|
|
336
|
-
* @param {number} quantity The number of objects to be generated
|
|
337
|
-
* @returns {ZipCodeField[]} An array of ZipCodeField objects,
|
|
338
|
-
* see {@link ZipCodeField}
|
|
339
|
-
*/
|
|
340
|
-
export declare const genZipCodeFields: (quantity?: number | undefined) => ZipCodeField[];
|
|
341
|
-
/**
|
|
342
|
-
* Generates IntegrationMessage object with random data.
|
|
343
|
-
*
|
|
344
|
-
* @since 0.1.0
|
|
345
|
-
* @param {Partial<IntegrationMessage>} overrides Properties to override
|
|
346
|
-
* a {@link IntegrationMessage}
|
|
347
|
-
* @returns {IntegrationMessage} A {@link IntegrationMessage} object
|
|
348
|
-
*/
|
|
349
|
-
export declare const buildIntegrationMessage: (overrides?: Partial<IntegrationMessage>) => IntegrationMessage;
|
|
350
|
-
/**
|
|
351
|
-
* Generates a list of IntegrationMessage objects with random data.
|
|
352
|
-
*
|
|
353
|
-
* @since 0.1.0
|
|
354
|
-
* @param {number} quantity The number of objects to be generated
|
|
355
|
-
* @returns {IntegrationMessage[]} An array of IntegrationMessage objects,
|
|
356
|
-
* see {@link IntegrationMessage}
|
|
357
|
-
*/
|
|
358
|
-
export declare const genIntegrationMessages: (quantity?: number | undefined) => IntegrationMessage[];
|
|
359
|
-
/**
|
|
360
|
-
* Generates InjectionDetail object with random data.
|
|
361
|
-
*
|
|
362
|
-
* @since 0.1.0
|
|
363
|
-
* @param {Partial<InjectionDetail>} overrides Properties to override
|
|
364
|
-
* a {@link InjectionDetail}
|
|
365
|
-
* @returns {InjectionDetail} A {@link InjectionDetail} object
|
|
366
|
-
*/
|
|
367
|
-
export declare const buildInjectionDetail: (overrides?: Partial<InjectionDetail>) => InjectionDetail;
|
|
368
|
-
/**
|
|
369
|
-
* Generates a list of InjectionDetail objects with random data.
|
|
370
|
-
*
|
|
371
|
-
* @since 0.1.0
|
|
372
|
-
* @param {number} quantity The number of objects to be generated
|
|
373
|
-
* @returns {InjectionDetail[]} An array of InjectionDetail objects,
|
|
374
|
-
* see {@link InjectionDetail}
|
|
375
|
-
*/
|
|
376
|
-
export declare const genInjectionDetails: (quantity?: number | undefined) => InjectionDetail[];
|
|
377
|
-
/**
|
|
378
|
-
* Generates OrderUser object with random data.
|
|
379
|
-
*
|
|
380
|
-
* @since 0.1.0
|
|
381
|
-
* @param {Partial<OrderUser>} overrides Properties to override
|
|
382
|
-
* a {@link OrderUser}
|
|
383
|
-
* @returns {OrderUser} A {@link OrderUser} object
|
|
384
|
-
*/
|
|
385
|
-
export declare const buildOrderUser: (overrides?: Partial<OrderUser>) => OrderUser;
|
|
386
|
-
/**
|
|
387
|
-
* Generates a list of OrderUser objects with random data.
|
|
388
|
-
*
|
|
389
|
-
* @since 0.1.0
|
|
390
|
-
* @param {number} quantity The number of objects to be generated
|
|
391
|
-
* @returns {OrderUser[]} An array of OrderUser objects,
|
|
392
|
-
* see {@link OrderUser}
|
|
393
|
-
*/
|
|
394
|
-
export declare const genOrderUsers: (quantity?: number | undefined) => OrderUser[];
|
|
395
|
-
/**
|
|
396
|
-
* Generates OperatorInformation object with random data.
|
|
397
|
-
*
|
|
398
|
-
* @param {Partial<OperatorInformation>} overrides Properties to override
|
|
399
|
-
* a {@link OperatorInformation}
|
|
400
|
-
* @returns {OperatorInformation} A {@link OperatorInformation} object
|
|
401
|
-
*/
|
|
402
|
-
export declare const buildOperatorInformation: (overrides?: Partial<OperatorInformation>) => OperatorInformation;
|
|
403
|
-
/**
|
|
404
|
-
* Generates a list of OperatorInformation objects with random data.
|
|
405
|
-
*
|
|
406
|
-
* @param {number} quantity The number of objects to be generated
|
|
407
|
-
* @returns {OperatorInformation[]} An array of OperatorInformation objects,
|
|
408
|
-
* see {@link OperatorInformation}
|
|
409
|
-
*/
|
|
410
|
-
export declare const genOperatorInformation: (quantity?: number | undefined) => OperatorInformation[];
|
|
411
|
-
/**
|
|
412
|
-
* Generates Suborder object with random data.
|
|
413
|
-
*
|
|
414
|
-
* @since 0.1.0
|
|
415
|
-
* @param {Partial<Suborder>} overrides Properties to override
|
|
416
|
-
* a {@link Suborder}
|
|
417
|
-
* @returns {Suborder} A {@link Suborder} object
|
|
418
|
-
*/
|
|
419
|
-
export declare const buildSuborder: (overrides?: Partial<Suborder>) => Suborder;
|
|
420
|
-
/**
|
|
421
|
-
* Generates a list of Suborder objects with random data.
|
|
422
|
-
*
|
|
423
|
-
* @since 0.1.0
|
|
424
|
-
* @param {number} quantity The number of objects to be generated
|
|
425
|
-
* @returns {Suborder[]} An array of Suborder objects,
|
|
426
|
-
* see {@link Suborder}
|
|
427
|
-
*/
|
|
428
|
-
export declare const genSuborders: (quantity?: number | undefined) => Suborder[];
|
|
429
|
-
/**
|
|
430
|
-
* Generates PaymentMethodByOrder object with random data.
|
|
431
|
-
*
|
|
432
|
-
* @since 0.1.0
|
|
433
|
-
* @param {Partial<PaymentMethodByOrder>} overrides Properties to override
|
|
434
|
-
* a {@link PaymentMethodByOrder}
|
|
435
|
-
* @returns {PaymentMethodByOrder} A {@link PaymentMethodByOrder} object
|
|
436
|
-
*/
|
|
437
|
-
export declare const buildPaymentMethodByOrder: (overrides?: Partial<PaymentMethodByOrder>) => PaymentMethodByOrder;
|
|
438
|
-
/**
|
|
439
|
-
* Generates a list of PaymentMethodByOrder objects with random data.
|
|
440
|
-
*
|
|
441
|
-
* @since 0.1.0
|
|
442
|
-
* @param {number} quantity The number of objects to be generated
|
|
443
|
-
* @returns {PaymentMethodByOrder[]} An array of PaymentMethodByOrder objects,
|
|
444
|
-
* see {@link PaymentMethodByOrder}
|
|
445
|
-
*/
|
|
446
|
-
export declare const genPaymentMethodByOrders: (quantity?: number | undefined) => PaymentMethodByOrder[];
|
|
447
|
-
/**
|
|
448
|
-
* Generates OrderRetryPaymentMethod object with random data.
|
|
449
|
-
*
|
|
450
|
-
* @since 0.1.0
|
|
451
|
-
* @param {Partial<OrderRetryPaymentMethod>} overrides Properties to override
|
|
452
|
-
* a {@link OrderRetryPaymentMethod}
|
|
453
|
-
* @returns {OrderRetryPaymentMethod} A {@link OrderRetryPaymentMethod} object
|
|
454
|
-
*/
|
|
455
|
-
export declare const buildOrderRetryPaymentMethod: (overrides?: Partial<OrderRetryPaymentMethod>) => OrderRetryPaymentMethod;
|
|
456
|
-
/**
|
|
457
|
-
* Generates a list of OrderRetryPaymentMethod objects with random data.
|
|
458
|
-
*
|
|
459
|
-
* @since 0.1.0
|
|
460
|
-
* @param {number} quantity The number of objects to be generated
|
|
461
|
-
* @returns {OrderRetryPaymentMethod[]} An array of
|
|
462
|
-
* OrderRetryPaymentMethod objects, see {@link OrderRetryPaymentMethod}
|
|
463
|
-
*/
|
|
464
|
-
export declare const genOrderRetryPaymentMethods: (quantity?: number | undefined) => OrderRetryPaymentMethod[];
|
|
@@ -159,12 +159,3 @@ export declare const genCartProductQuestions: (quantity?: number | undefined) =>
|
|
|
159
159
|
* @returns {CartProduct} A {@link CartProduct} object
|
|
160
160
|
*/
|
|
161
161
|
export declare const buildCartProduct: (overrides?: Partial<CartProduct>) => CartProduct;
|
|
162
|
-
/**
|
|
163
|
-
* Generates a list of CartProduct objects with random data.
|
|
164
|
-
*
|
|
165
|
-
* @since 0.1.0
|
|
166
|
-
* @param {number} quantity The number of objects to be generated
|
|
167
|
-
* @returns {CartProduct[]} An array of CartProduct objects,
|
|
168
|
-
* see {@link CartProduct}
|
|
169
|
-
*/
|
|
170
|
-
export declare const genCartProducts: (quantity?: number | undefined) => CartProduct[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { User } from "@artisan-commerce/types";
|
|
2
2
|
/**
|
|
3
3
|
* Generates User object with random data.
|
|
4
4
|
*
|
|
@@ -15,19 +15,3 @@ export declare const buildUser: (overrides?: Partial<User>) => User;
|
|
|
15
15
|
* @returns {User[]} An array of {@link User}s objects
|
|
16
16
|
*/
|
|
17
17
|
export declare const genUsers: (quantity?: number | undefined) => User[];
|
|
18
|
-
/**
|
|
19
|
-
* Generates Phone object with random data.
|
|
20
|
-
*
|
|
21
|
-
* @since 0.1.0
|
|
22
|
-
* @param {Partial<Phone>} overrides Properties to override a {@link Phone}
|
|
23
|
-
* @returns {Phone} A {@link Phone} object
|
|
24
|
-
*/
|
|
25
|
-
export declare const buildPhone: (overrides?: Partial<Phone>) => Phone;
|
|
26
|
-
/**
|
|
27
|
-
* Generates a list of Phone objects with random data.
|
|
28
|
-
*
|
|
29
|
-
* @since 0.1.0
|
|
30
|
-
* @param {number} quantity The number of objects to be generated
|
|
31
|
-
* @returns {Phone[]} An array of Phone objects, see {@link Phone}
|
|
32
|
-
*/
|
|
33
|
-
export declare const genPhones: (quantity?: number | undefined) => Phone[];
|
package/build/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import * as bannerBuilders from "./builders/banner.builder";
|
|
|
3
3
|
import * as billingDataBuilders from "./builders/billingData.builder";
|
|
4
4
|
import * as catalogueBuilders from "./builders/catalogue.builder";
|
|
5
5
|
import * as categoryBuilders from "./builders/category.builder";
|
|
6
|
-
import * as
|
|
6
|
+
import * as common from "./builders/common.builder";
|
|
7
7
|
import * as countryBuilders from "./builders/country.builder";
|
|
8
8
|
import * as couponBuilders from "./builders/coupon.builder";
|
|
9
9
|
import * as fulfillmentBuilders from "./builders/fulfillment.builder";
|
|
@@ -19,5 +19,5 @@ import * as storeBuilders from "./builders/store.builder";
|
|
|
19
19
|
import * as userBuilders from "./builders/user.builder";
|
|
20
20
|
import * as vendorBuilders from "./builders/vendor.builder";
|
|
21
21
|
import ArtisnData from "./lib/artisn";
|
|
22
|
-
export {
|
|
22
|
+
export { common, accountBuilders, bannerBuilders, billingDataBuilders, categoryBuilders, catalogueBuilders, countryBuilders, couponBuilders, fulfillmentBuilders, imageBuilders, notificationBuilders, orderBuilders, productBuilders, paymentBuilders, settingsBuilders, shippingAddressBuilders, shoppingCartBuilders, vendorBuilders, storeBuilders, userBuilders };
|
|
23
23
|
export default ArtisnData;
|