@artisan-commerce/builders 0.7.0-canary.7 → 0.7.0-canary.72
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/dev/package.json +7 -0
- package/dist/bundle.cjs +2841 -0
- package/dist/bundle.cjs.map +1 -0
- package/dist/bundle.d.ts +3004 -0
- package/dist/bundle.mjs +2818 -0
- package/dist/bundle.mjs.map +1 -0
- package/dist/bundle.umd.js +2844 -0
- package/dist/bundle.umd.js.map +1 -0
- package/dist/noop.cjs +334 -0
- package/dist/noop.cjs.map +1 -0
- package/dist/noop.mjs +312 -0
- package/dist/noop.mjs.map +1 -0
- package/package.json +67 -57
- package/CHANGELOG.md +0 -372
- package/build/builders/account.builder.d.ts +0 -17
- package/build/builders/banner.builder.d.ts +0 -35
- package/build/builders/billingData.builder.d.ts +0 -18
- package/build/builders/catalogue.builder.d.ts +0 -18
- package/build/builders/category.builder.d.ts +0 -36
- package/build/builders/common.builder.d.ts +0 -289
- package/build/builders/country.builder.d.ts +0 -51
- package/build/builders/coupon.builder.d.ts +0 -50
- package/build/builders/fulfillment.builder.d.ts +0 -199
- package/build/builders/image.builder.d.ts +0 -34
- package/build/builders/notification.builder.d.ts +0 -19
- package/build/builders/order.builder.d.ts +0 -427
- package/build/builders/payment.builder.d.ts +0 -93
- package/build/builders/product.builder.d.ts +0 -161
- package/build/builders/settings.builder.d.ts +0 -37
- package/build/builders/shippingAddress.builder.d.ts +0 -108
- package/build/builders/shoppingCart.builder.d.ts +0 -76
- package/build/builders/store.builder.d.ts +0 -106
- package/build/builders/user.builder.d.ts +0 -33
- package/build/builders/vendor.builder.d.ts +0 -17
- package/build/config/constants.d.ts +0 -2
- package/build/data/products.data.d.ts +0 -4
- package/build/index.d.ts +0 -23
- package/build/lib/artisn.d.ts +0 -5
- package/build/main.bundle.js +0 -10
- package/build/report.json +0 -1
- package/build/types/artisn.types.d.ts +0 -1
- package/build/types/product.types.d.ts +0 -6
- package/build/utils/artisn.utils.d.ts +0 -2
- package/build/utils/common.utils.d.ts +0 -8
- package/build/vendors.bundle.js +0 -1
- package/build/vendors.d.ts +0 -1
package/dist/bundle.d.ts
ADDED
|
@@ -0,0 +1,3004 @@
|
|
|
1
|
+
import { AdditionalInfo, Account, Banner, BannerCoupon, BannerBenefits, BannerImage, BillingData, Catalogue, Category, CategoryWithProducts, CommonDocumentType, ARDocumentType, BODocumentType, BRDocumentType, CLDocumentType, CODocumentType, ECDocumentType, PYDocumentType, PEDocumentType, UYDocumentType, VEDocumentType, USDocumentType, RandomImageConfig, CountryCode, DocumentType, CountrySummary, CountryCurrency, Country, Benefit, Award, Wallet, StoreCoupon, ProductCoupon, BenefitData, Coupon, CouponCategory, Code, Token, StoreCouponDetail, StepCategory, StepCode, Issue, IssueAdditionalInfo, IssueHistory, Workflow, StepNotification, StepWorkflow, WebhookWorkflow, StepWorkflowAdditionalInfo, StepWorkflowGroup, TransitionWorkflow, URLImage, CDNImage, MasivoInfo, MasivoCustomer, MetricPeriod, MasivoWallet, WalletTotal, WalletLine, LoyaltyAccumulation, MasivoCampaign, MasivoCampaignRule, Notification, NotificationUser, NotificationStore, NotificationStep, NotificationAdditionalInfo, NotificationExtraData, NotificationListItem, OrderStatus, PaymentStatus, Allocation, BaseOrder, OrderDetails, OrderStep, OrderStepAdditionalInfo, OrderStepAdditionalInfoGroup, OrderDetailShippingCost, OrderRetry, Status, OrderPaymentMethod, OrderShoppingCart, OrderStoreAdditionalInfo, OrderStoreDelivery, OrderStore, OrderProductAttributes, OrderProductAdditionalInfo, OrderProductImage, OrderBillProductAdditionalInfo, TaxCalculation, TaxCalculations, OrderProductPriceCategory, OrderProduct, OrderBillProduct, OrderProductBillTotal, OrderBillTotal, MetadataShipping, BaseField, ZipCodeField, IntegrationMessage, InjectionDetail, OrderUser, OperatorInformation, Suborder, PaymentMethodByOrder, OrderRetryPaymentMethod, BasePaymentMethod, PaymentMethod, PaymentProvider, CreditCardMapping, CardInscription, PriceCategoryTax, PriceCategory, BaseProduct, ProductAnswer, ProductQuestion, ProductDetails, CartProductAnswer, CartProductQuestion, CartProduct, Settings, UserSettings, Field, Rule, Message, LivingPlace, ShippingAddress, BillTotalCategory, BillTotal, CartStore, Objectify, ShoppingCart, ShippingCost, ShippingCostTax, Discount, Store, Delivery, Schedule, Service, GenericStoreLocation, StoreLocation, User, Phone, Vendor } from '@artisan-commerce/types';
|
|
2
|
+
import * as _faker_js_faker_utils_types from '@faker-js/faker/utils/types';
|
|
3
|
+
import * as _faker_js_faker_modules_random from '@faker-js/faker/modules/random';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Generates Account object with random data.
|
|
7
|
+
*
|
|
8
|
+
* @template T Account additional info
|
|
9
|
+
* @since 0.1.0
|
|
10
|
+
* @param {Partial<Account>} overrides Properties to override a {@link Account}
|
|
11
|
+
* @returns {Account} A {@link Account} object
|
|
12
|
+
*/
|
|
13
|
+
declare const buildAccount: <T extends AdditionalInfo = AdditionalInfo>(overrides?: Partial<Account<T>>) => Account<T>;
|
|
14
|
+
/**
|
|
15
|
+
* Generates a list of Account objects with random data.
|
|
16
|
+
*
|
|
17
|
+
* @template T Accounts additional info
|
|
18
|
+
* @since 0.1.0
|
|
19
|
+
* @param {number} quantity The number of objects to be generated
|
|
20
|
+
* @returns {Account[]} An array of {@link Account}s objects
|
|
21
|
+
*/
|
|
22
|
+
declare const genAccounts: <T extends AdditionalInfo = AdditionalInfo>(quantity?: number) => Account<T>[];
|
|
23
|
+
|
|
24
|
+
declare const account_builder_buildAccount: typeof buildAccount;
|
|
25
|
+
declare const account_builder_genAccounts: typeof genAccounts;
|
|
26
|
+
declare namespace account_builder {
|
|
27
|
+
export {
|
|
28
|
+
account_builder_buildAccount as buildAccount,
|
|
29
|
+
account_builder_genAccounts as genAccounts,
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Generates banner object with random data.
|
|
35
|
+
*
|
|
36
|
+
* @template T Banner additional info
|
|
37
|
+
* @since 0.1.0
|
|
38
|
+
* @param {Partial<Banner>} overrides Properties to override a {@link Banner}
|
|
39
|
+
* @returns {Banner} A {@link Banner} object
|
|
40
|
+
*/
|
|
41
|
+
declare const buildBanner: <T extends AdditionalInfo = AdditionalInfo>(overrides?: Partial<Banner<T>>) => Banner<T>;
|
|
42
|
+
/**
|
|
43
|
+
* Generates BannerCoupon object with random data.
|
|
44
|
+
*
|
|
45
|
+
* @since 0.1.0
|
|
46
|
+
* @param {Partial<BannerCoupon>} overrides Properties to override
|
|
47
|
+
* a {@link BannerCoupon}
|
|
48
|
+
* @returns {BannerCoupon} A {@link BannerCoupon} object
|
|
49
|
+
*/
|
|
50
|
+
declare const buildBannerCoupon: (overrides?: Partial<BannerCoupon>) => BannerCoupon;
|
|
51
|
+
/**
|
|
52
|
+
* Generates BannerBenefits object with random data.
|
|
53
|
+
*
|
|
54
|
+
* @since 0.1.0
|
|
55
|
+
* @param {Partial<BannerBenefits>} overrides Properties to override
|
|
56
|
+
* a {@link BannerBenefits}
|
|
57
|
+
* @returns {BannerBenefits} A {@link BannerBenefits} object
|
|
58
|
+
*/
|
|
59
|
+
declare const buildBannerBenefits: (overrides?: Partial<BannerBenefits>) => BannerBenefits;
|
|
60
|
+
/**
|
|
61
|
+
* Generates a list of banner benefits objects with random data.
|
|
62
|
+
*
|
|
63
|
+
* @since 0.1.0
|
|
64
|
+
* @param {number} quantity The number of objects to be generated
|
|
65
|
+
* @returns {BannerBenefits[]} An array of banner benefits, see {@link BannerBenefits}
|
|
66
|
+
*/
|
|
67
|
+
declare const genBannerBenefits: (quantity?: number) => BannerBenefits[];
|
|
68
|
+
/**
|
|
69
|
+
* Generates a list of Banner objects with random data.
|
|
70
|
+
*
|
|
71
|
+
* @template T Banners additional info
|
|
72
|
+
* @since 0.1.0
|
|
73
|
+
* @param {number} quantity The number of objects to be generated
|
|
74
|
+
* @returns {Banner[]} An array of {@link Banner}s objects
|
|
75
|
+
*/
|
|
76
|
+
declare const genBanners: <T extends AdditionalInfo = AdditionalInfo>(quantity?: number) => Banner<T>[];
|
|
77
|
+
/**
|
|
78
|
+
* Generates BannerImage object with random data.
|
|
79
|
+
*
|
|
80
|
+
* @since 0.1.0
|
|
81
|
+
* @param {Partial<BannerImage>} overrides Properties to override
|
|
82
|
+
* a {@link BannerImage}
|
|
83
|
+
* @returns {BannerImage} A {@link BannerImage} object
|
|
84
|
+
*/
|
|
85
|
+
declare const buildBannerImage: (overrides?: Partial<BannerImage>) => BannerImage;
|
|
86
|
+
/**
|
|
87
|
+
* Generates a list of banner image objects with random data.
|
|
88
|
+
*
|
|
89
|
+
* @since 0.1.0
|
|
90
|
+
* @param {number} quantity The number of objects to be generated
|
|
91
|
+
* @returns {BannerImage[]} An array of banner images, see {@link BannerImage}
|
|
92
|
+
*/
|
|
93
|
+
declare const genBannerImages: (quantity?: number) => BannerImage[];
|
|
94
|
+
|
|
95
|
+
declare const banner_builder_buildBanner: typeof buildBanner;
|
|
96
|
+
declare const banner_builder_buildBannerBenefits: typeof buildBannerBenefits;
|
|
97
|
+
declare const banner_builder_buildBannerCoupon: typeof buildBannerCoupon;
|
|
98
|
+
declare const banner_builder_buildBannerImage: typeof buildBannerImage;
|
|
99
|
+
declare const banner_builder_genBannerBenefits: typeof genBannerBenefits;
|
|
100
|
+
declare const banner_builder_genBannerImages: typeof genBannerImages;
|
|
101
|
+
declare const banner_builder_genBanners: typeof genBanners;
|
|
102
|
+
declare namespace banner_builder {
|
|
103
|
+
export {
|
|
104
|
+
banner_builder_buildBanner as buildBanner,
|
|
105
|
+
banner_builder_buildBannerBenefits as buildBannerBenefits,
|
|
106
|
+
banner_builder_buildBannerCoupon as buildBannerCoupon,
|
|
107
|
+
banner_builder_buildBannerImage as buildBannerImage,
|
|
108
|
+
banner_builder_genBannerBenefits as genBannerBenefits,
|
|
109
|
+
banner_builder_genBannerImages as genBannerImages,
|
|
110
|
+
banner_builder_genBanners as genBanners,
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Generates BillingData object with random data.
|
|
116
|
+
*
|
|
117
|
+
* @template T Billing data additional info
|
|
118
|
+
* @since 0.1.0
|
|
119
|
+
* @param {Partial<BillingData>} overrides Properties to override
|
|
120
|
+
* a {@link BillingData}
|
|
121
|
+
* @returns {BillingData} A {@link BillingData} object
|
|
122
|
+
*/
|
|
123
|
+
declare const buildBillingData: <T extends AdditionalInfo = AdditionalInfo>(overrides?: Partial<BillingData<T>>) => BillingData<T>;
|
|
124
|
+
/**
|
|
125
|
+
* Generates a list of Billing Data objects with random data.
|
|
126
|
+
*
|
|
127
|
+
* @template T Billing data additional info
|
|
128
|
+
* @since 0.1.0
|
|
129
|
+
* @param {number} quantity The number of objects to be generated
|
|
130
|
+
* @returns {BillingData[]} An array of {@link BillingData}s objects
|
|
131
|
+
*/
|
|
132
|
+
declare const genBillingData: <T extends AdditionalInfo = AdditionalInfo>(quantity?: number) => BillingData<T>[];
|
|
133
|
+
|
|
134
|
+
declare const billingData_builder_buildBillingData: typeof buildBillingData;
|
|
135
|
+
declare const billingData_builder_genBillingData: typeof genBillingData;
|
|
136
|
+
declare namespace billingData_builder {
|
|
137
|
+
export {
|
|
138
|
+
billingData_builder_buildBillingData as buildBillingData,
|
|
139
|
+
billingData_builder_genBillingData as genBillingData,
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* Generates Catalogue object with random data.
|
|
145
|
+
*
|
|
146
|
+
* @template T Catalogue additional info
|
|
147
|
+
* @since 0.1.0
|
|
148
|
+
* @param {Partial<Catalogue>} overrides Properties to override
|
|
149
|
+
* a {@link Catalogue}
|
|
150
|
+
* @returns {Catalogue} A {@link Catalogue} object
|
|
151
|
+
*/
|
|
152
|
+
declare const buildCatalogue: <T extends AdditionalInfo = AdditionalInfo>(overrides?: Partial<Catalogue<T>>) => Catalogue<T>;
|
|
153
|
+
/**
|
|
154
|
+
* Generates a list of Catalogue objects with custom data.
|
|
155
|
+
*
|
|
156
|
+
* @template T Catalogues additional info
|
|
157
|
+
* @since 0.1.0
|
|
158
|
+
* @param {number} quantity The number of objects to be generated
|
|
159
|
+
* @returns {Catalogue[]} An array of {@link Catalogue}s objects
|
|
160
|
+
*/
|
|
161
|
+
declare const genCatalogues: <T extends AdditionalInfo = AdditionalInfo>(quantity?: number) => Catalogue<T>[];
|
|
162
|
+
|
|
163
|
+
declare const catalogue_builder_buildCatalogue: typeof buildCatalogue;
|
|
164
|
+
declare const catalogue_builder_genCatalogues: typeof genCatalogues;
|
|
165
|
+
declare namespace catalogue_builder {
|
|
166
|
+
export {
|
|
167
|
+
catalogue_builder_buildCatalogue as buildCatalogue,
|
|
168
|
+
catalogue_builder_genCatalogues as genCatalogues,
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* Generates Category object with random data.
|
|
174
|
+
*
|
|
175
|
+
* @template T Category additional info
|
|
176
|
+
* @since 0.1.0
|
|
177
|
+
* @param {Partial<Category>} overrides Properties to override
|
|
178
|
+
* a {@link Category}
|
|
179
|
+
* @returns {Category} A {@link Category} object
|
|
180
|
+
*/
|
|
181
|
+
declare const buildCategory: <T extends AdditionalInfo = AdditionalInfo>(overrides?: Partial<Category<T>>) => Category<T>;
|
|
182
|
+
/**
|
|
183
|
+
* Generates a list of Category objects with random data.
|
|
184
|
+
*
|
|
185
|
+
* @template T Categories additional info
|
|
186
|
+
* @since 0.1.0
|
|
187
|
+
* @param {number} quantity The number of objects to be generated
|
|
188
|
+
* @returns {Category[]} An array of categories objects, see {@link Category}
|
|
189
|
+
*/
|
|
190
|
+
declare const genCategories: <T extends AdditionalInfo = AdditionalInfo>(quantity?: number) => Category<T>[];
|
|
191
|
+
/**
|
|
192
|
+
* Generates CategoryWithProducts object with random data.
|
|
193
|
+
*
|
|
194
|
+
* @since 0.1.0
|
|
195
|
+
* @param {Partial<CategoryWithProducts>} overrides Properties to override
|
|
196
|
+
* a {@link CategoryWithProducts}
|
|
197
|
+
* @returns {CategoryWithProducts} A {@link CategoryWithProducts} object
|
|
198
|
+
*/
|
|
199
|
+
declare const buildCategoryWithProducts: (overrides?: Partial<CategoryWithProducts>) => CategoryWithProducts;
|
|
200
|
+
/**
|
|
201
|
+
* Generates a list of CategoryWithProducts objects with random data.
|
|
202
|
+
*
|
|
203
|
+
* @since 0.1.0
|
|
204
|
+
* @param {number} quantity The number of objects to be generated
|
|
205
|
+
* @returns {CategoryWithProducts[]} An array of products by categories,
|
|
206
|
+
* see {@link CategoryWithProducts}
|
|
207
|
+
*/
|
|
208
|
+
declare const genCategoryWithProducts: (quantity?: number) => CategoryWithProducts[];
|
|
209
|
+
|
|
210
|
+
declare const category_builder_buildCategory: typeof buildCategory;
|
|
211
|
+
declare const category_builder_buildCategoryWithProducts: typeof buildCategoryWithProducts;
|
|
212
|
+
declare const category_builder_genCategories: typeof genCategories;
|
|
213
|
+
declare const category_builder_genCategoryWithProducts: typeof genCategoryWithProducts;
|
|
214
|
+
declare namespace category_builder {
|
|
215
|
+
export {
|
|
216
|
+
category_builder_buildCategory as buildCategory,
|
|
217
|
+
category_builder_buildCategoryWithProducts as buildCategoryWithProducts,
|
|
218
|
+
category_builder_genCategories as genCategories,
|
|
219
|
+
category_builder_genCategoryWithProducts as genCategoryWithProducts,
|
|
220
|
+
};
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* Generates and array of objects of the given type.
|
|
225
|
+
*
|
|
226
|
+
* @param {Function} builder Function passed to generate random data for each object
|
|
227
|
+
* @param {number} quantity The number of objects to be generated
|
|
228
|
+
* @returns {T[]} An array of objects of the given type
|
|
229
|
+
*/
|
|
230
|
+
declare const genItems: <T>(builder: (overrides?: Partial<T> | undefined) => T, quantity?: number) => T[];
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* Default document types for all countries.
|
|
234
|
+
*
|
|
235
|
+
* @since 0.1.0
|
|
236
|
+
*/
|
|
237
|
+
declare const getCommonDocumentTypes: () => CommonDocumentType[];
|
|
238
|
+
/**
|
|
239
|
+
* Argentina supported document types.
|
|
240
|
+
*
|
|
241
|
+
* @since 0.1.0
|
|
242
|
+
*/
|
|
243
|
+
declare const getARDocumentTypes: () => ARDocumentType[];
|
|
244
|
+
/**
|
|
245
|
+
* Bolivia supported document types.
|
|
246
|
+
*
|
|
247
|
+
* @since 0.1.0
|
|
248
|
+
*/
|
|
249
|
+
declare const getBODocumentTypes: () => BODocumentType[];
|
|
250
|
+
/**
|
|
251
|
+
* Brasil supported document types.
|
|
252
|
+
*
|
|
253
|
+
* @since 0.1.0
|
|
254
|
+
*/
|
|
255
|
+
declare const getBRDocumentTypes: () => BRDocumentType[];
|
|
256
|
+
/**
|
|
257
|
+
* Chile supported document types.
|
|
258
|
+
*
|
|
259
|
+
* @since 0.1.0
|
|
260
|
+
*/
|
|
261
|
+
declare const getCLDocumentTypes: () => CLDocumentType[];
|
|
262
|
+
/**
|
|
263
|
+
* Colombia supported document types.
|
|
264
|
+
*
|
|
265
|
+
* @since 0.1.0
|
|
266
|
+
*/
|
|
267
|
+
declare const getCODocumentTypes: () => CODocumentType[];
|
|
268
|
+
/**
|
|
269
|
+
* Ecuador supported document types.
|
|
270
|
+
*
|
|
271
|
+
* @since 0.1.0
|
|
272
|
+
*/
|
|
273
|
+
declare const getECDocumentTypes: () => ECDocumentType[];
|
|
274
|
+
/**
|
|
275
|
+
* Paraguay supported document types.
|
|
276
|
+
*
|
|
277
|
+
* @since 0.1.0
|
|
278
|
+
*/
|
|
279
|
+
declare const getPYDocumentTypes: () => PYDocumentType[];
|
|
280
|
+
/**
|
|
281
|
+
* Perú supported document types.
|
|
282
|
+
*
|
|
283
|
+
* @since 0.1.0
|
|
284
|
+
*/
|
|
285
|
+
declare const getPEDocumentTypes: () => PEDocumentType[];
|
|
286
|
+
/**
|
|
287
|
+
* Uruguay supported document types.
|
|
288
|
+
*
|
|
289
|
+
* @since 0.1.0
|
|
290
|
+
*/
|
|
291
|
+
declare const getUYDocumentTypes: () => UYDocumentType[];
|
|
292
|
+
/**
|
|
293
|
+
* Venezuela supported document types.
|
|
294
|
+
*
|
|
295
|
+
* @since 0.1.0
|
|
296
|
+
*/
|
|
297
|
+
declare const getVEDocumentTypes: () => VEDocumentType[];
|
|
298
|
+
/**
|
|
299
|
+
* United States supported document types.
|
|
300
|
+
*
|
|
301
|
+
* @since 0.1.0
|
|
302
|
+
*/
|
|
303
|
+
declare const getUSDocumentTypes: () => USDocumentType[];
|
|
304
|
+
/**
|
|
305
|
+
* Generates a random password.
|
|
306
|
+
*
|
|
307
|
+
* @since 0.1.0
|
|
308
|
+
* @param {any[]} args An array of arguments to be passed when
|
|
309
|
+
* generating the password
|
|
310
|
+
* @returns A random password
|
|
311
|
+
*/
|
|
312
|
+
declare const getPassword: (...args: any[]) => string;
|
|
313
|
+
/**
|
|
314
|
+
* Generates a random username.
|
|
315
|
+
*
|
|
316
|
+
* @since 0.1.0
|
|
317
|
+
*/
|
|
318
|
+
declare const getUsername: (firstName?: string | undefined, lastName?: string | undefined) => string;
|
|
319
|
+
/**
|
|
320
|
+
* Generates a random unique identifier.
|
|
321
|
+
*
|
|
322
|
+
* @since 0.1.0
|
|
323
|
+
*/
|
|
324
|
+
declare const genId: () => string;
|
|
325
|
+
/**
|
|
326
|
+
* Generates a random id of type number.
|
|
327
|
+
*
|
|
328
|
+
* @since 0.1.0
|
|
329
|
+
*/
|
|
330
|
+
declare const genNumericId: (length?: number | undefined, options?: {
|
|
331
|
+
allowLeadingZeros?: boolean | undefined;
|
|
332
|
+
bannedDigits?: string | readonly _faker_js_faker_utils_types.LiteralUnion<_faker_js_faker_modules_random.NumericChar>[] | undefined;
|
|
333
|
+
} | undefined) => number;
|
|
334
|
+
/**
|
|
335
|
+
* Generates a random word.
|
|
336
|
+
*
|
|
337
|
+
* @since 0.1.0
|
|
338
|
+
*/
|
|
339
|
+
declare const genWord: (options?: number | {
|
|
340
|
+
length?: number | {
|
|
341
|
+
min: number;
|
|
342
|
+
max: number;
|
|
343
|
+
} | undefined;
|
|
344
|
+
strategy?: "fail" | "closest" | "shortest" | "longest" | "any-length" | undefined;
|
|
345
|
+
} | undefined) => string;
|
|
346
|
+
/**
|
|
347
|
+
* Generates a random address.
|
|
348
|
+
*
|
|
349
|
+
* @since 0.1.0
|
|
350
|
+
*/
|
|
351
|
+
declare const genAddress: (useFullAddress?: boolean | undefined) => string;
|
|
352
|
+
/**
|
|
353
|
+
* Generates a random name.
|
|
354
|
+
*
|
|
355
|
+
* @since 0.1.0
|
|
356
|
+
*/
|
|
357
|
+
declare const genName: (options?: {
|
|
358
|
+
firstName?: string | undefined;
|
|
359
|
+
lastName?: string | undefined;
|
|
360
|
+
gender?: "female" | "male" | undefined;
|
|
361
|
+
sex?: "female" | "male" | undefined;
|
|
362
|
+
} | undefined) => string;
|
|
363
|
+
/**
|
|
364
|
+
* Generates a random email.
|
|
365
|
+
*
|
|
366
|
+
* @since 0.1.0
|
|
367
|
+
*/
|
|
368
|
+
declare const genEmail: (firstName?: string | undefined, lastName?: string | undefined, provider?: string | undefined, options?: {
|
|
369
|
+
allowSpecialCharacters?: boolean | undefined;
|
|
370
|
+
} | undefined) => string;
|
|
371
|
+
/**
|
|
372
|
+
* Generates a random company name.
|
|
373
|
+
*
|
|
374
|
+
* @since 0.1.0
|
|
375
|
+
*/
|
|
376
|
+
declare const genCompanyName: (format?: number | undefined) => string;
|
|
377
|
+
/**
|
|
378
|
+
* Generates a random paragraph.
|
|
379
|
+
*
|
|
380
|
+
* @since 0.1.0
|
|
381
|
+
*/
|
|
382
|
+
declare const genParagraph: (sentenceCount?: number | undefined) => string;
|
|
383
|
+
/**
|
|
384
|
+
* Generates a random title containing 3 words.
|
|
385
|
+
*
|
|
386
|
+
* @since 0.1.0
|
|
387
|
+
*/
|
|
388
|
+
declare const genTitle: (wordCount?: number | undefined) => string;
|
|
389
|
+
/**
|
|
390
|
+
* Generates a random number.
|
|
391
|
+
*
|
|
392
|
+
* @since 0.1.0
|
|
393
|
+
*/
|
|
394
|
+
declare const genNumber: (options?: number | {
|
|
395
|
+
min?: number | undefined;
|
|
396
|
+
max?: number | undefined;
|
|
397
|
+
precision?: number | undefined;
|
|
398
|
+
} | undefined) => number;
|
|
399
|
+
/**
|
|
400
|
+
* Generates a random boolean value.
|
|
401
|
+
*
|
|
402
|
+
* @since 0.1.0
|
|
403
|
+
*/
|
|
404
|
+
declare const getBoolean: () => boolean;
|
|
405
|
+
/**
|
|
406
|
+
* Generates a random country name.
|
|
407
|
+
*
|
|
408
|
+
* @since 0.1.0
|
|
409
|
+
*/
|
|
410
|
+
declare const genCountryName: () => string;
|
|
411
|
+
/**
|
|
412
|
+
* Generates a random image based on custom configuration.
|
|
413
|
+
*
|
|
414
|
+
* @since 0.5.15
|
|
415
|
+
* @param {RandomImageConfig} randomImageConfig Configuration
|
|
416
|
+
* to generate a random image
|
|
417
|
+
* @returns {string} An url of the image generated
|
|
418
|
+
*/
|
|
419
|
+
declare const genRandomImage: (randomImageConfig?: RandomImageConfig) => string;
|
|
420
|
+
/** Generates random words.
|
|
421
|
+
*
|
|
422
|
+
* @since 0.1.0
|
|
423
|
+
* @param {number} words The quantity of words to be generated
|
|
424
|
+
*/
|
|
425
|
+
declare const genWords: (words?: number) => string;
|
|
426
|
+
/**
|
|
427
|
+
* Generates a random internet url.
|
|
428
|
+
*
|
|
429
|
+
* @since 0.1.0
|
|
430
|
+
*/
|
|
431
|
+
declare const genURL: () => string;
|
|
432
|
+
/**
|
|
433
|
+
* Generates a random date in ISO format.
|
|
434
|
+
*
|
|
435
|
+
* @since 0.1.0
|
|
436
|
+
*/
|
|
437
|
+
declare const genDate: () => string;
|
|
438
|
+
/**
|
|
439
|
+
* Generates a random base64 value.
|
|
440
|
+
*
|
|
441
|
+
* @since 0.1.0
|
|
442
|
+
*/
|
|
443
|
+
declare const genBase64: () => string;
|
|
444
|
+
/**
|
|
445
|
+
* Generates a random boolean value.
|
|
446
|
+
*
|
|
447
|
+
* @since 0.1.0
|
|
448
|
+
* @param {number} bias A number between 0 and 1 which will be used
|
|
449
|
+
* to generate a boolean
|
|
450
|
+
* @throws Error if bias is not between 0 and 1
|
|
451
|
+
* @returns {boolean} A boolean value
|
|
452
|
+
*/
|
|
453
|
+
declare const genBiasBoolean: (bias: number) => boolean;
|
|
454
|
+
/**
|
|
455
|
+
* Generates a random document.
|
|
456
|
+
*
|
|
457
|
+
* @since 0.1.0
|
|
458
|
+
* @param {number} digits The number of digits with which the document
|
|
459
|
+
* will be generated
|
|
460
|
+
* @returns {string} A random document
|
|
461
|
+
*/
|
|
462
|
+
declare const genDocument: (digits: number) => string;
|
|
463
|
+
/**
|
|
464
|
+
* Generates a random document type.
|
|
465
|
+
*
|
|
466
|
+
* @since 0.1.0
|
|
467
|
+
* @param {string} countryISOCode Country calling code
|
|
468
|
+
*/
|
|
469
|
+
declare const genDocumentType: (countryISOCode?: CountryCode) => DocumentType;
|
|
470
|
+
/**
|
|
471
|
+
* Generates a random mobile phone with the country code provided.
|
|
472
|
+
*
|
|
473
|
+
* @since 0.1.0
|
|
474
|
+
* @param {string} countryCode Country calling code
|
|
475
|
+
* @returns {string} A string like a mobile phone
|
|
476
|
+
*/
|
|
477
|
+
declare const genMobilPhone: (countryCode: string) => string;
|
|
478
|
+
/**
|
|
479
|
+
* Generates a Country Summary object with random data.
|
|
480
|
+
*
|
|
481
|
+
* @since 0.1.0
|
|
482
|
+
* @param {number} id Country specific id
|
|
483
|
+
* @param {string} name Country specific name
|
|
484
|
+
* @returns {CountrySummary} A {@link CountrySummary} object
|
|
485
|
+
*/
|
|
486
|
+
declare const genCountry: (id?: string, name?: string) => CountrySummary;
|
|
487
|
+
/**
|
|
488
|
+
* Fills a number of type string with characters.
|
|
489
|
+
*
|
|
490
|
+
* @since 0.1.0
|
|
491
|
+
* @param {string} num A string, the length of it will
|
|
492
|
+
* be used to fill the number
|
|
493
|
+
* @param {number} max A number, the length of it will
|
|
494
|
+
* be used to fill the number
|
|
495
|
+
* @returns {string} A string filled with the data passed
|
|
496
|
+
*/
|
|
497
|
+
declare const fillNumber: (num: string, max?: number) => string;
|
|
498
|
+
/**
|
|
499
|
+
* Chooses a random item inside the array provided.
|
|
500
|
+
*
|
|
501
|
+
* @since 0.1.0
|
|
502
|
+
* @param {T[]} arr An array of generic items
|
|
503
|
+
* @returns {T} A random item of the array passed as param
|
|
504
|
+
*/
|
|
505
|
+
declare const chooseRandom: <T = string>(array?: T[] | undefined) => T;
|
|
506
|
+
declare const genSymbol: () => string;
|
|
507
|
+
declare const genIP: () => string;
|
|
508
|
+
|
|
509
|
+
declare const common_builder_chooseRandom: typeof chooseRandom;
|
|
510
|
+
declare const common_builder_fillNumber: typeof fillNumber;
|
|
511
|
+
declare const common_builder_genAddress: typeof genAddress;
|
|
512
|
+
declare const common_builder_genBase64: typeof genBase64;
|
|
513
|
+
declare const common_builder_genBiasBoolean: typeof genBiasBoolean;
|
|
514
|
+
declare const common_builder_genCompanyName: typeof genCompanyName;
|
|
515
|
+
declare const common_builder_genCountry: typeof genCountry;
|
|
516
|
+
declare const common_builder_genCountryName: typeof genCountryName;
|
|
517
|
+
declare const common_builder_genDate: typeof genDate;
|
|
518
|
+
declare const common_builder_genDocument: typeof genDocument;
|
|
519
|
+
declare const common_builder_genDocumentType: typeof genDocumentType;
|
|
520
|
+
declare const common_builder_genEmail: typeof genEmail;
|
|
521
|
+
declare const common_builder_genIP: typeof genIP;
|
|
522
|
+
declare const common_builder_genId: typeof genId;
|
|
523
|
+
declare const common_builder_genItems: typeof genItems;
|
|
524
|
+
declare const common_builder_genMobilPhone: typeof genMobilPhone;
|
|
525
|
+
declare const common_builder_genName: typeof genName;
|
|
526
|
+
declare const common_builder_genNumber: typeof genNumber;
|
|
527
|
+
declare const common_builder_genNumericId: typeof genNumericId;
|
|
528
|
+
declare const common_builder_genParagraph: typeof genParagraph;
|
|
529
|
+
declare const common_builder_genRandomImage: typeof genRandomImage;
|
|
530
|
+
declare const common_builder_genSymbol: typeof genSymbol;
|
|
531
|
+
declare const common_builder_genTitle: typeof genTitle;
|
|
532
|
+
declare const common_builder_genURL: typeof genURL;
|
|
533
|
+
declare const common_builder_genWord: typeof genWord;
|
|
534
|
+
declare const common_builder_genWords: typeof genWords;
|
|
535
|
+
declare const common_builder_getARDocumentTypes: typeof getARDocumentTypes;
|
|
536
|
+
declare const common_builder_getBODocumentTypes: typeof getBODocumentTypes;
|
|
537
|
+
declare const common_builder_getBRDocumentTypes: typeof getBRDocumentTypes;
|
|
538
|
+
declare const common_builder_getBoolean: typeof getBoolean;
|
|
539
|
+
declare const common_builder_getCLDocumentTypes: typeof getCLDocumentTypes;
|
|
540
|
+
declare const common_builder_getCODocumentTypes: typeof getCODocumentTypes;
|
|
541
|
+
declare const common_builder_getCommonDocumentTypes: typeof getCommonDocumentTypes;
|
|
542
|
+
declare const common_builder_getECDocumentTypes: typeof getECDocumentTypes;
|
|
543
|
+
declare const common_builder_getPEDocumentTypes: typeof getPEDocumentTypes;
|
|
544
|
+
declare const common_builder_getPYDocumentTypes: typeof getPYDocumentTypes;
|
|
545
|
+
declare const common_builder_getPassword: typeof getPassword;
|
|
546
|
+
declare const common_builder_getUSDocumentTypes: typeof getUSDocumentTypes;
|
|
547
|
+
declare const common_builder_getUYDocumentTypes: typeof getUYDocumentTypes;
|
|
548
|
+
declare const common_builder_getUsername: typeof getUsername;
|
|
549
|
+
declare const common_builder_getVEDocumentTypes: typeof getVEDocumentTypes;
|
|
550
|
+
declare namespace common_builder {
|
|
551
|
+
export {
|
|
552
|
+
common_builder_chooseRandom as chooseRandom,
|
|
553
|
+
common_builder_fillNumber as fillNumber,
|
|
554
|
+
common_builder_genAddress as genAddress,
|
|
555
|
+
common_builder_genBase64 as genBase64,
|
|
556
|
+
common_builder_genBiasBoolean as genBiasBoolean,
|
|
557
|
+
common_builder_genCompanyName as genCompanyName,
|
|
558
|
+
common_builder_genCountry as genCountry,
|
|
559
|
+
common_builder_genCountryName as genCountryName,
|
|
560
|
+
common_builder_genDate as genDate,
|
|
561
|
+
common_builder_genDocument as genDocument,
|
|
562
|
+
common_builder_genDocumentType as genDocumentType,
|
|
563
|
+
common_builder_genEmail as genEmail,
|
|
564
|
+
common_builder_genIP as genIP,
|
|
565
|
+
common_builder_genId as genId,
|
|
566
|
+
common_builder_genItems as genItems,
|
|
567
|
+
common_builder_genMobilPhone as genMobilPhone,
|
|
568
|
+
common_builder_genName as genName,
|
|
569
|
+
common_builder_genNumber as genNumber,
|
|
570
|
+
common_builder_genNumericId as genNumericId,
|
|
571
|
+
common_builder_genParagraph as genParagraph,
|
|
572
|
+
common_builder_genRandomImage as genRandomImage,
|
|
573
|
+
common_builder_genSymbol as genSymbol,
|
|
574
|
+
common_builder_genTitle as genTitle,
|
|
575
|
+
common_builder_genURL as genURL,
|
|
576
|
+
common_builder_genWord as genWord,
|
|
577
|
+
common_builder_genWords as genWords,
|
|
578
|
+
common_builder_getARDocumentTypes as getARDocumentTypes,
|
|
579
|
+
common_builder_getBODocumentTypes as getBODocumentTypes,
|
|
580
|
+
common_builder_getBRDocumentTypes as getBRDocumentTypes,
|
|
581
|
+
common_builder_getBoolean as getBoolean,
|
|
582
|
+
common_builder_getCLDocumentTypes as getCLDocumentTypes,
|
|
583
|
+
common_builder_getCODocumentTypes as getCODocumentTypes,
|
|
584
|
+
common_builder_getCommonDocumentTypes as getCommonDocumentTypes,
|
|
585
|
+
common_builder_getECDocumentTypes as getECDocumentTypes,
|
|
586
|
+
common_builder_getPEDocumentTypes as getPEDocumentTypes,
|
|
587
|
+
common_builder_getPYDocumentTypes as getPYDocumentTypes,
|
|
588
|
+
common_builder_getPassword as getPassword,
|
|
589
|
+
common_builder_getUSDocumentTypes as getUSDocumentTypes,
|
|
590
|
+
common_builder_getUYDocumentTypes as getUYDocumentTypes,
|
|
591
|
+
common_builder_getUsername as getUsername,
|
|
592
|
+
common_builder_getVEDocumentTypes as getVEDocumentTypes,
|
|
593
|
+
};
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
/**
|
|
597
|
+
* All values of CountryCode.
|
|
598
|
+
*
|
|
599
|
+
* @since 0.1.0
|
|
600
|
+
*/
|
|
601
|
+
declare const countriesCodes: CountryCode[];
|
|
602
|
+
/**
|
|
603
|
+
* Generates CountryCurrency object with random data.
|
|
604
|
+
*
|
|
605
|
+
* @since 0.1.0
|
|
606
|
+
* @param {Partial<CountryCurrency>} overrides Properties to override
|
|
607
|
+
* a {@link CountryCurrency}
|
|
608
|
+
* @returns {CountryCurrency} A {@link CountryCurrency} object
|
|
609
|
+
*/
|
|
610
|
+
declare const buildCountryCurrency: (overrides?: Partial<CountryCurrency>) => CountryCurrency;
|
|
611
|
+
/**
|
|
612
|
+
* Generates a list of country's currency objects with random data.
|
|
613
|
+
*
|
|
614
|
+
* @since 0.1.0
|
|
615
|
+
* @param {number} quantity The number of objects to be generated
|
|
616
|
+
* @returns A list of country's currency objects, see {@link CountryCurrency}
|
|
617
|
+
*/
|
|
618
|
+
declare const genCountryCurrencies: (quantity?: number) => CountryCurrency[];
|
|
619
|
+
/**
|
|
620
|
+
* Generates Country object with random data.
|
|
621
|
+
*
|
|
622
|
+
* @template T Country additional info
|
|
623
|
+
* @since 0.1.0
|
|
624
|
+
* @param {Country} overrides Properties to override a {@link Country}
|
|
625
|
+
* @returns {Country} A {@link Country} object
|
|
626
|
+
*/
|
|
627
|
+
declare const buildCountry: <T extends AdditionalInfo = AdditionalInfo>(overrides?: Partial<Country<T>>) => Country<T>;
|
|
628
|
+
/**
|
|
629
|
+
* Generates a list of countries objects with random data.
|
|
630
|
+
*
|
|
631
|
+
* @template T Countries additional info
|
|
632
|
+
* @since 0.1.0
|
|
633
|
+
* @param {number} quantity The number of objects to be generated
|
|
634
|
+
* @returns An array of countries objects, see {@link Country}
|
|
635
|
+
*/
|
|
636
|
+
declare const genCountries: <T extends AdditionalInfo = AdditionalInfo>(quantity?: number) => Country<T>[];
|
|
637
|
+
|
|
638
|
+
declare const country_builder_buildCountry: typeof buildCountry;
|
|
639
|
+
declare const country_builder_buildCountryCurrency: typeof buildCountryCurrency;
|
|
640
|
+
declare const country_builder_countriesCodes: typeof countriesCodes;
|
|
641
|
+
declare const country_builder_genCountries: typeof genCountries;
|
|
642
|
+
declare const country_builder_genCountryCurrencies: typeof genCountryCurrencies;
|
|
643
|
+
declare namespace country_builder {
|
|
644
|
+
export {
|
|
645
|
+
country_builder_buildCountry as buildCountry,
|
|
646
|
+
country_builder_buildCountryCurrency as buildCountryCurrency,
|
|
647
|
+
country_builder_countriesCodes as countriesCodes,
|
|
648
|
+
country_builder_genCountries as genCountries,
|
|
649
|
+
country_builder_genCountryCurrencies as genCountryCurrencies,
|
|
650
|
+
};
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
/**
|
|
654
|
+
* Generates Benefit object with random data.
|
|
655
|
+
*
|
|
656
|
+
* @since 0.1.0
|
|
657
|
+
* @param {Partial<Benefit>} overrides Properties to override a {@link Benefit}
|
|
658
|
+
* @returns {Benefit} A {@link Benefit} object
|
|
659
|
+
*/
|
|
660
|
+
declare const buildBenefit: (overrides?: Partial<Benefit>) => Benefit;
|
|
661
|
+
/**
|
|
662
|
+
* Generates a list of Benefit objects with random data.
|
|
663
|
+
*
|
|
664
|
+
* @since 0.1.0
|
|
665
|
+
* @param {number} quantity The number of objects to be generated
|
|
666
|
+
* @returns {Benefit[]} An array of Benefit objects, see {@link Benefit}
|
|
667
|
+
*/
|
|
668
|
+
declare const genBenefits: (quantity?: number) => Benefit[];
|
|
669
|
+
/**
|
|
670
|
+
* Generates Award object with random data.
|
|
671
|
+
*
|
|
672
|
+
* @since 0.1.0
|
|
673
|
+
* @param {Partial<Award>} overrides Properties to override a {@link Award}
|
|
674
|
+
* @returns {Award} A {@link Award} object
|
|
675
|
+
*/
|
|
676
|
+
declare const buildAward: (overrides?: Partial<Award>) => Award;
|
|
677
|
+
/**
|
|
678
|
+
* Generates a list of Award objects with random data.
|
|
679
|
+
*
|
|
680
|
+
* @since 0.1.0
|
|
681
|
+
* @param {number} quantity The number of objects to be generated
|
|
682
|
+
* @returns {Award[]} An array of Award objects, see {@link Award}
|
|
683
|
+
*/
|
|
684
|
+
declare const genAwards: (quantity?: number) => Award[];
|
|
685
|
+
/**
|
|
686
|
+
* Generates Wallet object with random data.
|
|
687
|
+
*
|
|
688
|
+
* @since 0.1.0
|
|
689
|
+
* @param {Partial<Wallet>} overrides Properties to override a {@link Wallet}
|
|
690
|
+
* @returns {Wallet} A {@link Wallet} object
|
|
691
|
+
*/
|
|
692
|
+
declare const buildWallet: (overrides?: Partial<Wallet>) => Wallet;
|
|
693
|
+
/**
|
|
694
|
+
* Generates a list of Wallet objects with random data.
|
|
695
|
+
*
|
|
696
|
+
* @since 0.1.0
|
|
697
|
+
* @param {number} quantity The number of objects to be generated
|
|
698
|
+
* @returns {Wallet[]} An array of Wallet objects, see {@link Wallet}
|
|
699
|
+
*/
|
|
700
|
+
declare const genWallets: (quantity?: number) => Wallet[];
|
|
701
|
+
/**
|
|
702
|
+
* Generates StoreCoupon object with random data.
|
|
703
|
+
*
|
|
704
|
+
* @since 0.1.0
|
|
705
|
+
* @param {Partial<StoreCoupon>} overrides Properties to override
|
|
706
|
+
* a {@link StoreCoupon}
|
|
707
|
+
* @returns {StoreCoupon} A {@link StoreCoupon} object
|
|
708
|
+
*/
|
|
709
|
+
declare const buildStoreCoupon: (overrides?: Partial<StoreCoupon>) => StoreCoupon;
|
|
710
|
+
/**
|
|
711
|
+
* Generates a list of StoreCoupon objects with random data.
|
|
712
|
+
*
|
|
713
|
+
* @since 0.1.0
|
|
714
|
+
* @param {number} quantity The number of objects to be generated
|
|
715
|
+
* @returns {StoreCoupon[]} An array of StoreCoupon objects,
|
|
716
|
+
* see {@link StoreCoupon}
|
|
717
|
+
*/
|
|
718
|
+
declare const genStoreCoupons: (quantity?: number) => StoreCoupon[];
|
|
719
|
+
/**
|
|
720
|
+
* Generates ProductCoupon object with random data.
|
|
721
|
+
*
|
|
722
|
+
* @since 0.1.0
|
|
723
|
+
* @param {Partial<ProductCoupon>} overrides Properties to override
|
|
724
|
+
* a {@link ProductCoupon}
|
|
725
|
+
* @returns {ProductCoupon} A {@link ProductCoupon} object
|
|
726
|
+
*/
|
|
727
|
+
declare const buildProductCoupon: (overrides?: Partial<ProductCoupon>) => ProductCoupon;
|
|
728
|
+
/**
|
|
729
|
+
* Generates a list of ProductCoupon objects with random data.
|
|
730
|
+
*
|
|
731
|
+
* @since 0.1.0
|
|
732
|
+
* @param {number} quantity The number of objects to be generated
|
|
733
|
+
* @returns {ProductCoupon[]} An array of ProductCoupon objects,
|
|
734
|
+
* see {@link ProductCoupon}
|
|
735
|
+
*/
|
|
736
|
+
declare const genProductCoupons: (quantity?: number) => ProductCoupon[];
|
|
737
|
+
/**
|
|
738
|
+
* Generates BenefitData object with random data.
|
|
739
|
+
*
|
|
740
|
+
* @since 0.1.0
|
|
741
|
+
* @param {Partial<BenefitData>} overrides Properties to override
|
|
742
|
+
* a {@link BenefitData}
|
|
743
|
+
* @returns {BenefitData} A {@link BenefitData} object
|
|
744
|
+
*/
|
|
745
|
+
declare const buildBenefitData: (overrides?: Partial<BenefitData>) => BenefitData;
|
|
746
|
+
/**
|
|
747
|
+
* Generates a list of BenefitData objects with random data.
|
|
748
|
+
*
|
|
749
|
+
* @since 0.1.0
|
|
750
|
+
* @param {number} quantity The number of objects to be generated
|
|
751
|
+
* @returns {BenefitData[]} An array of BenefitData objects,
|
|
752
|
+
* see {@link BenefitData}
|
|
753
|
+
*/
|
|
754
|
+
declare const genBenefitData: (quantity?: number) => BenefitData[];
|
|
755
|
+
/**
|
|
756
|
+
* Generates Coupon object with random data.
|
|
757
|
+
*
|
|
758
|
+
* @since 0.1.0
|
|
759
|
+
* @param {Partial<Coupon>} overrides Properties to override
|
|
760
|
+
* a {@link Coupon}
|
|
761
|
+
* @returns {Coupon} A {@link Coupon} object
|
|
762
|
+
*/
|
|
763
|
+
declare const buildCoupon: (overrides?: Partial<Coupon>) => Coupon;
|
|
764
|
+
/**
|
|
765
|
+
* Generates a list of Coupon objects with random data.
|
|
766
|
+
*
|
|
767
|
+
* @since 0.1.0
|
|
768
|
+
* @param {number} quantity The number of objects to be generated
|
|
769
|
+
* @returns {Coupon[]} An array of Coupon objects,
|
|
770
|
+
* see {@link Coupon}
|
|
771
|
+
*/
|
|
772
|
+
declare const genCoupons: (quantity?: number) => Coupon[];
|
|
773
|
+
/**
|
|
774
|
+
* Generates CouponCategory object with random data.
|
|
775
|
+
*
|
|
776
|
+
* @since 0.1.0
|
|
777
|
+
* @param {Partial<CouponCategory>} overrides Properties to override
|
|
778
|
+
* a {@link CouponCategory}
|
|
779
|
+
* @returns {CouponCategory} A {@link CouponCategory} object
|
|
780
|
+
*/
|
|
781
|
+
declare const buildCouponCategory: (overrides?: Partial<CouponCategory>) => CouponCategory;
|
|
782
|
+
/**
|
|
783
|
+
* Generates a list of CouponCategory objects with random data.
|
|
784
|
+
*
|
|
785
|
+
* @since 0.1.0
|
|
786
|
+
* @param {number} quantity The number of objects to be generated
|
|
787
|
+
* @returns {CouponCategory[]} An array of CouponCategory objects,
|
|
788
|
+
* see {@link CouponCategory}
|
|
789
|
+
*/
|
|
790
|
+
declare const genCouponCategories: (quantity?: number) => CouponCategory[];
|
|
791
|
+
/**
|
|
792
|
+
* Generates Code object with random data.
|
|
793
|
+
*
|
|
794
|
+
* @since 0.1.0
|
|
795
|
+
* @param {Partial<Code>} overrides Properties to override
|
|
796
|
+
* a {@link Code}
|
|
797
|
+
* @returns {Code} A {@link Code} object
|
|
798
|
+
*/
|
|
799
|
+
declare const buildCode: (overrides?: Partial<Code>) => Code;
|
|
800
|
+
/**
|
|
801
|
+
* Generates a list of Code objects with random data.
|
|
802
|
+
*
|
|
803
|
+
* @since 0.1.0
|
|
804
|
+
* @param {number} quantity The number of objects to be generated
|
|
805
|
+
* @returns {Code[]} An array of Code objects,
|
|
806
|
+
* see {@link Code}
|
|
807
|
+
*/
|
|
808
|
+
declare const genCodes: (quantity?: number) => Code[];
|
|
809
|
+
/**
|
|
810
|
+
* Generates Token object with random data.
|
|
811
|
+
*
|
|
812
|
+
* @since 0.1.0
|
|
813
|
+
* @param {Partial<Token>} overrides Properties to override
|
|
814
|
+
* a {@link Token}
|
|
815
|
+
* @returns {Token} A {@link Token} object
|
|
816
|
+
*/
|
|
817
|
+
declare const buildToken: (overrides?: Partial<Token>) => Token;
|
|
818
|
+
/**
|
|
819
|
+
* Generates a list of Token objects with random data.
|
|
820
|
+
*
|
|
821
|
+
* @since 0.1.0
|
|
822
|
+
* @param {number} quantity The number of objects to be generated
|
|
823
|
+
* @returns {Token[]} An array of Token objects,
|
|
824
|
+
* see {@link Token}
|
|
825
|
+
*/
|
|
826
|
+
declare const genTokens: (quantity?: number) => Token[];
|
|
827
|
+
/**
|
|
828
|
+
* Generates StoreCouponDetail object with random data.
|
|
829
|
+
*
|
|
830
|
+
* @since 0.1.0
|
|
831
|
+
* @param {Partial<StoreCouponDetail>} overrides Properties to override
|
|
832
|
+
* a {@link StoreCouponDetail}
|
|
833
|
+
* @returns {StoreCouponDetail} A {@link StoreCouponDetail} object
|
|
834
|
+
*/
|
|
835
|
+
declare const buildStoreCouponDetail: (overrides?: Partial<StoreCouponDetail>) => StoreCouponDetail;
|
|
836
|
+
/**
|
|
837
|
+
* Generates a list of StoreCouponDetail objects with random data.
|
|
838
|
+
*
|
|
839
|
+
* @since 0.1.0
|
|
840
|
+
* @param {number} quantity The number of objects to be generated
|
|
841
|
+
* @returns {StoreCouponDetail[]} An array of StoreCouponDetail objects,
|
|
842
|
+
* see {@link StoreCouponDetail}
|
|
843
|
+
*/
|
|
844
|
+
declare const genStoreCouponDetails: (quantity?: number) => StoreCouponDetail[];
|
|
845
|
+
|
|
846
|
+
declare const coupon_builder_buildAward: typeof buildAward;
|
|
847
|
+
declare const coupon_builder_buildBenefit: typeof buildBenefit;
|
|
848
|
+
declare const coupon_builder_buildBenefitData: typeof buildBenefitData;
|
|
849
|
+
declare const coupon_builder_buildCode: typeof buildCode;
|
|
850
|
+
declare const coupon_builder_buildCoupon: typeof buildCoupon;
|
|
851
|
+
declare const coupon_builder_buildCouponCategory: typeof buildCouponCategory;
|
|
852
|
+
declare const coupon_builder_buildProductCoupon: typeof buildProductCoupon;
|
|
853
|
+
declare const coupon_builder_buildStoreCoupon: typeof buildStoreCoupon;
|
|
854
|
+
declare const coupon_builder_buildStoreCouponDetail: typeof buildStoreCouponDetail;
|
|
855
|
+
declare const coupon_builder_buildToken: typeof buildToken;
|
|
856
|
+
declare const coupon_builder_buildWallet: typeof buildWallet;
|
|
857
|
+
declare const coupon_builder_genAwards: typeof genAwards;
|
|
858
|
+
declare const coupon_builder_genBenefitData: typeof genBenefitData;
|
|
859
|
+
declare const coupon_builder_genBenefits: typeof genBenefits;
|
|
860
|
+
declare const coupon_builder_genCodes: typeof genCodes;
|
|
861
|
+
declare const coupon_builder_genCouponCategories: typeof genCouponCategories;
|
|
862
|
+
declare const coupon_builder_genCoupons: typeof genCoupons;
|
|
863
|
+
declare const coupon_builder_genProductCoupons: typeof genProductCoupons;
|
|
864
|
+
declare const coupon_builder_genStoreCouponDetails: typeof genStoreCouponDetails;
|
|
865
|
+
declare const coupon_builder_genStoreCoupons: typeof genStoreCoupons;
|
|
866
|
+
declare const coupon_builder_genTokens: typeof genTokens;
|
|
867
|
+
declare const coupon_builder_genWallets: typeof genWallets;
|
|
868
|
+
declare namespace coupon_builder {
|
|
869
|
+
export {
|
|
870
|
+
coupon_builder_buildAward as buildAward,
|
|
871
|
+
coupon_builder_buildBenefit as buildBenefit,
|
|
872
|
+
coupon_builder_buildBenefitData as buildBenefitData,
|
|
873
|
+
coupon_builder_buildCode as buildCode,
|
|
874
|
+
coupon_builder_buildCoupon as buildCoupon,
|
|
875
|
+
coupon_builder_buildCouponCategory as buildCouponCategory,
|
|
876
|
+
coupon_builder_buildProductCoupon as buildProductCoupon,
|
|
877
|
+
coupon_builder_buildStoreCoupon as buildStoreCoupon,
|
|
878
|
+
coupon_builder_buildStoreCouponDetail as buildStoreCouponDetail,
|
|
879
|
+
coupon_builder_buildToken as buildToken,
|
|
880
|
+
coupon_builder_buildWallet as buildWallet,
|
|
881
|
+
coupon_builder_genAwards as genAwards,
|
|
882
|
+
coupon_builder_genBenefitData as genBenefitData,
|
|
883
|
+
coupon_builder_genBenefits as genBenefits,
|
|
884
|
+
coupon_builder_genCodes as genCodes,
|
|
885
|
+
coupon_builder_genCouponCategories as genCouponCategories,
|
|
886
|
+
coupon_builder_genCoupons as genCoupons,
|
|
887
|
+
coupon_builder_genProductCoupons as genProductCoupons,
|
|
888
|
+
coupon_builder_genStoreCouponDetails as genStoreCouponDetails,
|
|
889
|
+
coupon_builder_genStoreCoupons as genStoreCoupons,
|
|
890
|
+
coupon_builder_genTokens as genTokens,
|
|
891
|
+
coupon_builder_genWallets as genWallets,
|
|
892
|
+
};
|
|
893
|
+
}
|
|
894
|
+
|
|
895
|
+
/**
|
|
896
|
+
* All values of StepCategory.
|
|
897
|
+
*
|
|
898
|
+
* @since 0.1.0
|
|
899
|
+
*/
|
|
900
|
+
declare const stepCategory: StepCategory[];
|
|
901
|
+
/**
|
|
902
|
+
* All values of StepCode.
|
|
903
|
+
*
|
|
904
|
+
* @since 0.1.0
|
|
905
|
+
*/
|
|
906
|
+
declare const stepCode: StepCode[];
|
|
907
|
+
/**
|
|
908
|
+
* Generates Issue object with random data.
|
|
909
|
+
*
|
|
910
|
+
* @since 0.5.15
|
|
911
|
+
* @param {Partial<Issue>} overrides Properties to override
|
|
912
|
+
* a {@link Issue}
|
|
913
|
+
* @returns {Issue} A {@link Issue} object
|
|
914
|
+
*/
|
|
915
|
+
declare const buildIssue: (overrides?: Partial<Issue>) => Issue;
|
|
916
|
+
/**
|
|
917
|
+
* Generates a list of Issue objects with random data.
|
|
918
|
+
*
|
|
919
|
+
* @since 0.5.15
|
|
920
|
+
* @param {number} quantity The number of objects to be generated
|
|
921
|
+
* @returns {Issue[]} An array of Issue objects,
|
|
922
|
+
* see {@link Issue}
|
|
923
|
+
*/
|
|
924
|
+
declare const genIssues: (quantity?: number) => Issue[];
|
|
925
|
+
/**
|
|
926
|
+
* Generates IssueAdditionalInfo object with random data.
|
|
927
|
+
*
|
|
928
|
+
* @since 0.5.15
|
|
929
|
+
* @param {Partial<IssueAdditionalInfo>} overrides Properties to override
|
|
930
|
+
* a {@link IssueAdditionalInfo}
|
|
931
|
+
* @returns {IssueAdditionalInfo} A {@link IssueAdditionalInfo} object
|
|
932
|
+
*/
|
|
933
|
+
declare const buildIssueAdditionalInfo: (overrides?: Partial<IssueAdditionalInfo>) => IssueAdditionalInfo;
|
|
934
|
+
/**
|
|
935
|
+
* Generates a list of IssueAdditionalInfo objects with random data.
|
|
936
|
+
*
|
|
937
|
+
* @since 0.5.15
|
|
938
|
+
* @param {number} quantity The number of objects to be generated
|
|
939
|
+
* @returns {IssueAdditionalInfo[]} An array of IssueAdditionalInfo objects,
|
|
940
|
+
* see {@link IssueAdditionalInfo}
|
|
941
|
+
*/
|
|
942
|
+
declare const genIssueAdditionalInfo: (quantity?: number) => IssueAdditionalInfo[];
|
|
943
|
+
/**
|
|
944
|
+
* Generates IssueHistory object with random data.
|
|
945
|
+
*
|
|
946
|
+
* @since 0.5.15
|
|
947
|
+
* @param {Partial<IssueHistory>} overrides Properties to override
|
|
948
|
+
* a {@link IssueHistory}
|
|
949
|
+
* @returns {IssueHistory} A {@link IssueHistory} object
|
|
950
|
+
*/
|
|
951
|
+
declare const buildIssueHistory: (overrides?: Partial<IssueHistory>) => IssueHistory;
|
|
952
|
+
/**
|
|
953
|
+
* Generates a list of IssueHistory objects with random data.
|
|
954
|
+
*
|
|
955
|
+
* @since 0.5.15
|
|
956
|
+
* @param {number} quantity The number of objects to be generated
|
|
957
|
+
* @returns {IssueHistory[]} An array of IssueHistory objects,
|
|
958
|
+
* see {@link IssueHistory}
|
|
959
|
+
*/
|
|
960
|
+
declare const genIssueHistory: (quantity?: number) => IssueHistory[];
|
|
961
|
+
/**
|
|
962
|
+
* Generates Workflow object with random data.
|
|
963
|
+
*
|
|
964
|
+
* @since 0.5.15
|
|
965
|
+
* @param {Partial<Workflow>} overrides Properties to override
|
|
966
|
+
* a {@link Workflow}
|
|
967
|
+
* @returns {Workflow} A {@link Workflow} object
|
|
968
|
+
*/
|
|
969
|
+
declare const buildWorkflow: (overrides?: Partial<Workflow>) => Workflow;
|
|
970
|
+
/**
|
|
971
|
+
* Generates a list of Workflow objects with random data.
|
|
972
|
+
*
|
|
973
|
+
* @since 0.5.15
|
|
974
|
+
* @param {number} quantity The number of objects to be generated
|
|
975
|
+
* @returns {Workflow[]} An array of Workflow objects, see {@link Workflow}
|
|
976
|
+
*/
|
|
977
|
+
declare const genWorkflows: (quantity?: number) => Workflow[];
|
|
978
|
+
/**
|
|
979
|
+
* Generates StepNotification object with random data.
|
|
980
|
+
*
|
|
981
|
+
* @since 0.5.15
|
|
982
|
+
* @param {Partial<StepNotification>} overrides Properties to override
|
|
983
|
+
* a {@link StepNotification}
|
|
984
|
+
* @returns {StepNotification} A {@link StepNotification} object
|
|
985
|
+
*/
|
|
986
|
+
declare const buildStepNotification: (overrides?: Partial<StepNotification>) => StepNotification;
|
|
987
|
+
/**
|
|
988
|
+
* Generates a list of StepNotification objects with random data.
|
|
989
|
+
*
|
|
990
|
+
* @since 0.5.15
|
|
991
|
+
* @param {number} quantity The number of objects to be generated
|
|
992
|
+
* @returns {StepNotification[]} An array of StepNotification objects,
|
|
993
|
+
* see {@link StepNotification}
|
|
994
|
+
*/
|
|
995
|
+
declare const genStepNotifications: (quantity?: number) => StepNotification[];
|
|
996
|
+
/**
|
|
997
|
+
* Generates StepWorkflow object with random data.
|
|
998
|
+
*
|
|
999
|
+
* @since 0.5.15
|
|
1000
|
+
* @param {Partial<StepWorkflow>} overrides Properties to override
|
|
1001
|
+
* a {@link StepWorkflow}
|
|
1002
|
+
* @returns {StepWorkflow} A {@link StepWorkflow} object
|
|
1003
|
+
*/
|
|
1004
|
+
declare const buildStepWorkflow: (overrides?: Partial<StepWorkflow>) => StepWorkflow;
|
|
1005
|
+
/**
|
|
1006
|
+
* Generates a list of StepWorkflow objects with random data.
|
|
1007
|
+
*
|
|
1008
|
+
* @since 0.5.15
|
|
1009
|
+
* @param {number} quantity The number of objects to be generated
|
|
1010
|
+
* @returns {StepWorkflow[]} An array of StepWorkflow objects,
|
|
1011
|
+
* see {@link StepWorkflow}
|
|
1012
|
+
*/
|
|
1013
|
+
declare const genStepWorkflows: (quantity?: number) => StepWorkflow[];
|
|
1014
|
+
/**
|
|
1015
|
+
* Generates WebhookWorkflow object with random data.
|
|
1016
|
+
*
|
|
1017
|
+
* @since 0.5.15
|
|
1018
|
+
* @param {Partial<WebhookWorkflow>} overrides Properties to override
|
|
1019
|
+
* a {@link WebhookWorkflow}
|
|
1020
|
+
* @returns {WebhookWorkflow} A {@link WebhookWorkflow} object
|
|
1021
|
+
*/
|
|
1022
|
+
declare const buildWebhookWorkflow: (overrides?: Partial<WebhookWorkflow>) => WebhookWorkflow;
|
|
1023
|
+
/**
|
|
1024
|
+
* Generates a list of WebhookWorkflow objects with random data.
|
|
1025
|
+
*
|
|
1026
|
+
* @since 0.5.15
|
|
1027
|
+
* @param {number} quantity The number of objects to be generated
|
|
1028
|
+
* @returns {WebhookWorkflow[]} An array of WebhookWorkflow objects,
|
|
1029
|
+
* see {@link WebhookWorkflow}
|
|
1030
|
+
*/
|
|
1031
|
+
declare const genWebhookWorkflows: (quantity?: number) => WebhookWorkflow[];
|
|
1032
|
+
/**
|
|
1033
|
+
* Generates StepWorkflowAdditionalInfo object with random data.
|
|
1034
|
+
*
|
|
1035
|
+
* @since 0.5.15
|
|
1036
|
+
* @param {Partial<StepWorkflowAdditionalInfo>} overrides Properties to
|
|
1037
|
+
* override a {@link StepWorkflowAdditionalInfo}
|
|
1038
|
+
* @returns {StepWorkflowAdditionalInfo} A
|
|
1039
|
+
* {@link StepWorkflowAdditionalInfo} object
|
|
1040
|
+
*/
|
|
1041
|
+
declare const buildStepWorkflowAdditionalInfo: (overrides?: Partial<StepWorkflowAdditionalInfo>) => StepWorkflowAdditionalInfo;
|
|
1042
|
+
/**
|
|
1043
|
+
* Generates a list of StepWorkflowAdditionalInfo objects with random data.
|
|
1044
|
+
*
|
|
1045
|
+
* @since 0.5.15
|
|
1046
|
+
* @param {number} quantity The number of objects to be generated
|
|
1047
|
+
* @returns {StepWorkflowAdditionalInfo[]} An array of
|
|
1048
|
+
* StepWorkflowAdditionalInfo objects, see {@link StepWorkflowAdditionalInfo}
|
|
1049
|
+
*/
|
|
1050
|
+
declare const genStepWorkflowAdditionalInfos: (quantity?: number) => StepWorkflowAdditionalInfo[];
|
|
1051
|
+
/**
|
|
1052
|
+
* Generates StepWorkflowGroup object with random data.
|
|
1053
|
+
*
|
|
1054
|
+
* @since 0.5.15
|
|
1055
|
+
* @param {Partial<StepWorkflowGroup>} overrides Properties to override
|
|
1056
|
+
* a {@link StepWorkflowGroup}
|
|
1057
|
+
* @returns {StepWorkflowGroup} A {@link StepWorkflowGroup} object
|
|
1058
|
+
*/
|
|
1059
|
+
declare const buildStepWorkflowGroup: (overrides?: Partial<StepWorkflowGroup>) => StepWorkflowGroup;
|
|
1060
|
+
/**
|
|
1061
|
+
* Generates a list of StepWorkflowGroup objects with random data.
|
|
1062
|
+
*
|
|
1063
|
+
* @since 0.5.15
|
|
1064
|
+
* @param {number} quantity The number of objects to be generated
|
|
1065
|
+
* @returns {StepWorkflowGroup[]} An array of StepWorkflowGroup objects,
|
|
1066
|
+
* see {@link StepWorkflowGroup}
|
|
1067
|
+
*/
|
|
1068
|
+
declare const genStepWorkflowGroups: (quantity?: number) => StepWorkflowGroup[];
|
|
1069
|
+
/**
|
|
1070
|
+
* Generates TransitionWorkflow object with random data.
|
|
1071
|
+
*
|
|
1072
|
+
* @since 0.5.15
|
|
1073
|
+
* @param {Partial<TransitionWorkflow>} overrides Properties to override
|
|
1074
|
+
* a {@link TransitionWorkflow}
|
|
1075
|
+
* @returns {TransitionWorkflow} A {@link TransitionWorkflow} object
|
|
1076
|
+
*/
|
|
1077
|
+
declare const buildTransitionWorkflow: (overrides?: Partial<TransitionWorkflow>) => TransitionWorkflow;
|
|
1078
|
+
/**
|
|
1079
|
+
* Generates a list of TransitionWorkflow objects with random data.
|
|
1080
|
+
*
|
|
1081
|
+
* @since 0.5.15
|
|
1082
|
+
* @param {number} quantity The number of objects to be generated
|
|
1083
|
+
* @returns {TransitionWorkflow[]} An array of TransitionWorkflow objects,
|
|
1084
|
+
* see {@link TransitionWorkflow}
|
|
1085
|
+
*/
|
|
1086
|
+
declare const genTransitionWorkflows: (quantity?: number) => TransitionWorkflow[];
|
|
1087
|
+
|
|
1088
|
+
declare const fulfillment_builder_buildIssue: typeof buildIssue;
|
|
1089
|
+
declare const fulfillment_builder_buildIssueAdditionalInfo: typeof buildIssueAdditionalInfo;
|
|
1090
|
+
declare const fulfillment_builder_buildIssueHistory: typeof buildIssueHistory;
|
|
1091
|
+
declare const fulfillment_builder_buildStepNotification: typeof buildStepNotification;
|
|
1092
|
+
declare const fulfillment_builder_buildStepWorkflow: typeof buildStepWorkflow;
|
|
1093
|
+
declare const fulfillment_builder_buildStepWorkflowAdditionalInfo: typeof buildStepWorkflowAdditionalInfo;
|
|
1094
|
+
declare const fulfillment_builder_buildStepWorkflowGroup: typeof buildStepWorkflowGroup;
|
|
1095
|
+
declare const fulfillment_builder_buildTransitionWorkflow: typeof buildTransitionWorkflow;
|
|
1096
|
+
declare const fulfillment_builder_buildWebhookWorkflow: typeof buildWebhookWorkflow;
|
|
1097
|
+
declare const fulfillment_builder_buildWorkflow: typeof buildWorkflow;
|
|
1098
|
+
declare const fulfillment_builder_genIssueAdditionalInfo: typeof genIssueAdditionalInfo;
|
|
1099
|
+
declare const fulfillment_builder_genIssueHistory: typeof genIssueHistory;
|
|
1100
|
+
declare const fulfillment_builder_genIssues: typeof genIssues;
|
|
1101
|
+
declare const fulfillment_builder_genStepNotifications: typeof genStepNotifications;
|
|
1102
|
+
declare const fulfillment_builder_genStepWorkflowAdditionalInfos: typeof genStepWorkflowAdditionalInfos;
|
|
1103
|
+
declare const fulfillment_builder_genStepWorkflowGroups: typeof genStepWorkflowGroups;
|
|
1104
|
+
declare const fulfillment_builder_genStepWorkflows: typeof genStepWorkflows;
|
|
1105
|
+
declare const fulfillment_builder_genTransitionWorkflows: typeof genTransitionWorkflows;
|
|
1106
|
+
declare const fulfillment_builder_genWebhookWorkflows: typeof genWebhookWorkflows;
|
|
1107
|
+
declare const fulfillment_builder_genWorkflows: typeof genWorkflows;
|
|
1108
|
+
declare const fulfillment_builder_stepCategory: typeof stepCategory;
|
|
1109
|
+
declare const fulfillment_builder_stepCode: typeof stepCode;
|
|
1110
|
+
declare namespace fulfillment_builder {
|
|
1111
|
+
export {
|
|
1112
|
+
fulfillment_builder_buildIssue as buildIssue,
|
|
1113
|
+
fulfillment_builder_buildIssueAdditionalInfo as buildIssueAdditionalInfo,
|
|
1114
|
+
fulfillment_builder_buildIssueHistory as buildIssueHistory,
|
|
1115
|
+
fulfillment_builder_buildStepNotification as buildStepNotification,
|
|
1116
|
+
fulfillment_builder_buildStepWorkflow as buildStepWorkflow,
|
|
1117
|
+
fulfillment_builder_buildStepWorkflowAdditionalInfo as buildStepWorkflowAdditionalInfo,
|
|
1118
|
+
fulfillment_builder_buildStepWorkflowGroup as buildStepWorkflowGroup,
|
|
1119
|
+
fulfillment_builder_buildTransitionWorkflow as buildTransitionWorkflow,
|
|
1120
|
+
fulfillment_builder_buildWebhookWorkflow as buildWebhookWorkflow,
|
|
1121
|
+
fulfillment_builder_buildWorkflow as buildWorkflow,
|
|
1122
|
+
fulfillment_builder_genIssueAdditionalInfo as genIssueAdditionalInfo,
|
|
1123
|
+
fulfillment_builder_genIssueHistory as genIssueHistory,
|
|
1124
|
+
fulfillment_builder_genIssues as genIssues,
|
|
1125
|
+
fulfillment_builder_genStepNotifications as genStepNotifications,
|
|
1126
|
+
fulfillment_builder_genStepWorkflowAdditionalInfos as genStepWorkflowAdditionalInfos,
|
|
1127
|
+
fulfillment_builder_genStepWorkflowGroups as genStepWorkflowGroups,
|
|
1128
|
+
fulfillment_builder_genStepWorkflows as genStepWorkflows,
|
|
1129
|
+
fulfillment_builder_genTransitionWorkflows as genTransitionWorkflows,
|
|
1130
|
+
fulfillment_builder_genWebhookWorkflows as genWebhookWorkflows,
|
|
1131
|
+
fulfillment_builder_genWorkflows as genWorkflows,
|
|
1132
|
+
fulfillment_builder_stepCategory as stepCategory,
|
|
1133
|
+
fulfillment_builder_stepCode as stepCode,
|
|
1134
|
+
};
|
|
1135
|
+
}
|
|
1136
|
+
|
|
1137
|
+
/**
|
|
1138
|
+
* Generates a random image url.
|
|
1139
|
+
*
|
|
1140
|
+
* @since 0.5.15
|
|
1141
|
+
*/
|
|
1142
|
+
declare const buildURLImage: (randomImageConfig?: RandomImageConfig | undefined) => string;
|
|
1143
|
+
/**
|
|
1144
|
+
* Generates a list of URLImage.
|
|
1145
|
+
*
|
|
1146
|
+
* @since 0.5.15
|
|
1147
|
+
* @param {number} quantity The number of objects to be generated
|
|
1148
|
+
* @returns {URLImage} An array of {@link URLImage}
|
|
1149
|
+
*/
|
|
1150
|
+
declare const genURLImages: (quantity?: number, overrides?: RandomImageConfig) => URLImage[];
|
|
1151
|
+
/**
|
|
1152
|
+
* Generates CDNImage object with random data.
|
|
1153
|
+
*
|
|
1154
|
+
* @since 0.5.15
|
|
1155
|
+
* @param {Partial<CDNImage>} overrides Properties to override
|
|
1156
|
+
* a {@link CDNImage}
|
|
1157
|
+
* @param {RandomImageConfig} options image request options{{@link RandomImageConfig}
|
|
1158
|
+
* @returns {CDNImage} A {@link CDNImage} object
|
|
1159
|
+
*/
|
|
1160
|
+
declare const buildCDNImage: (overrides?: Partial<CDNImage>, options?: RandomImageConfig) => CDNImage;
|
|
1161
|
+
/**
|
|
1162
|
+
* Generates a list of CDNImage objects with random data.
|
|
1163
|
+
*
|
|
1164
|
+
* @since 0.5.15
|
|
1165
|
+
* @param {number} quantity The number of objects to be generated
|
|
1166
|
+
* @param {RandomImageConfig} options image request options{{@link RandomImageConfig}
|
|
1167
|
+
* @returns {CDNImage[]} An array of CDNImage objects, see {@link CDNImage}
|
|
1168
|
+
*/
|
|
1169
|
+
declare const genCDNImages: (quantity?: number, options?: RandomImageConfig) => CDNImage[];
|
|
1170
|
+
|
|
1171
|
+
declare const image_builder_buildCDNImage: typeof buildCDNImage;
|
|
1172
|
+
declare const image_builder_buildURLImage: typeof buildURLImage;
|
|
1173
|
+
declare const image_builder_genCDNImages: typeof genCDNImages;
|
|
1174
|
+
declare const image_builder_genURLImages: typeof genURLImages;
|
|
1175
|
+
declare namespace image_builder {
|
|
1176
|
+
export {
|
|
1177
|
+
image_builder_buildCDNImage as buildCDNImage,
|
|
1178
|
+
image_builder_buildURLImage as buildURLImage,
|
|
1179
|
+
image_builder_genCDNImages as genCDNImages,
|
|
1180
|
+
image_builder_genURLImages as genURLImages,
|
|
1181
|
+
};
|
|
1182
|
+
}
|
|
1183
|
+
|
|
1184
|
+
declare const buildLoyaltyInfo: (override?: MasivoInfo) => MasivoInfo;
|
|
1185
|
+
declare const buildLoyaltyCustomer: () => MasivoCustomer;
|
|
1186
|
+
declare const buildCustomerMetrics: () => {
|
|
1187
|
+
last_month: MetricPeriod;
|
|
1188
|
+
last_quarter: MetricPeriod;
|
|
1189
|
+
last_year: MetricPeriod;
|
|
1190
|
+
last_semester: MetricPeriod;
|
|
1191
|
+
this_month: MetricPeriod;
|
|
1192
|
+
this_quarter: MetricPeriod;
|
|
1193
|
+
this_semester: MetricPeriod;
|
|
1194
|
+
this_year: MetricPeriod;
|
|
1195
|
+
lifetime: MetricPeriod;
|
|
1196
|
+
};
|
|
1197
|
+
declare const buildMetrics: () => MetricPeriod;
|
|
1198
|
+
declare const buildLoyaltyWallet: () => MasivoWallet;
|
|
1199
|
+
declare const buildLoyaltyWalletTotals: () => WalletTotal[];
|
|
1200
|
+
declare const buildLoyaltyLines: () => WalletLine[];
|
|
1201
|
+
declare const buildLoyaltyWalletAccumulation: (override?: LoyaltyAccumulation) => LoyaltyAccumulation;
|
|
1202
|
+
declare const buildLoyaltyCampaign: (overrides?: MasivoCampaign) => MasivoCampaign;
|
|
1203
|
+
declare const buildCampaignRule: () => MasivoCampaignRule;
|
|
1204
|
+
|
|
1205
|
+
declare const masivo_builder_buildCampaignRule: typeof buildCampaignRule;
|
|
1206
|
+
declare const masivo_builder_buildCustomerMetrics: typeof buildCustomerMetrics;
|
|
1207
|
+
declare const masivo_builder_buildLoyaltyCampaign: typeof buildLoyaltyCampaign;
|
|
1208
|
+
declare const masivo_builder_buildLoyaltyCustomer: typeof buildLoyaltyCustomer;
|
|
1209
|
+
declare const masivo_builder_buildLoyaltyInfo: typeof buildLoyaltyInfo;
|
|
1210
|
+
declare const masivo_builder_buildLoyaltyLines: typeof buildLoyaltyLines;
|
|
1211
|
+
declare const masivo_builder_buildLoyaltyWallet: typeof buildLoyaltyWallet;
|
|
1212
|
+
declare const masivo_builder_buildLoyaltyWalletAccumulation: typeof buildLoyaltyWalletAccumulation;
|
|
1213
|
+
declare const masivo_builder_buildLoyaltyWalletTotals: typeof buildLoyaltyWalletTotals;
|
|
1214
|
+
declare const masivo_builder_buildMetrics: typeof buildMetrics;
|
|
1215
|
+
declare namespace masivo_builder {
|
|
1216
|
+
export {
|
|
1217
|
+
masivo_builder_buildCampaignRule as buildCampaignRule,
|
|
1218
|
+
masivo_builder_buildCustomerMetrics as buildCustomerMetrics,
|
|
1219
|
+
masivo_builder_buildLoyaltyCampaign as buildLoyaltyCampaign,
|
|
1220
|
+
masivo_builder_buildLoyaltyCustomer as buildLoyaltyCustomer,
|
|
1221
|
+
masivo_builder_buildLoyaltyInfo as buildLoyaltyInfo,
|
|
1222
|
+
masivo_builder_buildLoyaltyLines as buildLoyaltyLines,
|
|
1223
|
+
masivo_builder_buildLoyaltyWallet as buildLoyaltyWallet,
|
|
1224
|
+
masivo_builder_buildLoyaltyWalletAccumulation as buildLoyaltyWalletAccumulation,
|
|
1225
|
+
masivo_builder_buildLoyaltyWalletTotals as buildLoyaltyWalletTotals,
|
|
1226
|
+
masivo_builder_buildMetrics as buildMetrics,
|
|
1227
|
+
};
|
|
1228
|
+
}
|
|
1229
|
+
|
|
1230
|
+
/**
|
|
1231
|
+
* Generates Notification object with random data.
|
|
1232
|
+
*
|
|
1233
|
+
* @since 0.5.15
|
|
1234
|
+
* @param {Partial<Notification>} overrides Properties to override
|
|
1235
|
+
* a {@link Notification}
|
|
1236
|
+
* @returns {Notification} A {@link Notification} object
|
|
1237
|
+
*/
|
|
1238
|
+
declare const buildNotification: (overrides?: Partial<Notification>) => Notification;
|
|
1239
|
+
/**
|
|
1240
|
+
* Generates a list of Notification objects with random data.
|
|
1241
|
+
*
|
|
1242
|
+
* @since 0.5.15
|
|
1243
|
+
* @param {number} quantity The number of objects to be generated
|
|
1244
|
+
* @returns {Notification[]} An array of Notification objects,
|
|
1245
|
+
* see {@link Notification}
|
|
1246
|
+
*/
|
|
1247
|
+
declare const genNotifications: (quantity?: number) => Notification[];
|
|
1248
|
+
/**
|
|
1249
|
+
* Generates NotificationUser object with random data.
|
|
1250
|
+
*
|
|
1251
|
+
* @since 0.1.0
|
|
1252
|
+
* @param {Partial<NotificationUser>} overrides Properties to override
|
|
1253
|
+
* a {@link NotificationUser}
|
|
1254
|
+
* @returns {NotificationUser} A {@link NotificationUser} object
|
|
1255
|
+
*/
|
|
1256
|
+
declare const buildNotificationUser: (overrides?: Partial<NotificationUser>) => NotificationUser;
|
|
1257
|
+
/**
|
|
1258
|
+
* Generates a list of NotificationUser objects with random data.
|
|
1259
|
+
*
|
|
1260
|
+
* @since 0.1.0
|
|
1261
|
+
* @param {number} quantity The number of objects to be generated
|
|
1262
|
+
* @returns {NotificationUser[]} An array of NotificationUser objects,
|
|
1263
|
+
* see {@link NotificationUser}
|
|
1264
|
+
*/
|
|
1265
|
+
declare const genNotificationUsers: (quantity?: number) => NotificationUser[];
|
|
1266
|
+
/**
|
|
1267
|
+
* Generates NotificationStore object with random data.
|
|
1268
|
+
*
|
|
1269
|
+
* @since 0.1.0
|
|
1270
|
+
* @param {Partial<NotificationStore>} overrides Properties to override
|
|
1271
|
+
* a {@link NotificationStore}
|
|
1272
|
+
* @returns {NotificationStore} A {@link NotificationStore} object
|
|
1273
|
+
*/
|
|
1274
|
+
declare const buildNotificationStore: (overrides?: Partial<NotificationStore>) => NotificationStore;
|
|
1275
|
+
/**
|
|
1276
|
+
* Generates a list of NotificationStore objects with random data.
|
|
1277
|
+
*
|
|
1278
|
+
* @since 0.1.0
|
|
1279
|
+
* @param {number} quantity The number of objects to be generated
|
|
1280
|
+
* @returns {NotificationStore[]} An array of NotificationStore objects,
|
|
1281
|
+
* see {@link NotificationStore}
|
|
1282
|
+
*/
|
|
1283
|
+
declare const genNotificationStores: (quantity?: number) => NotificationStore[];
|
|
1284
|
+
/**
|
|
1285
|
+
* Generates NotificationStep object with random data.
|
|
1286
|
+
*
|
|
1287
|
+
* @since 0.1.0
|
|
1288
|
+
* @param {Partial<NotificationStep>} overrides Properties to override
|
|
1289
|
+
* a {@link NotificationStep}
|
|
1290
|
+
* @returns {NotificationStep} A {@link NotificationStep} object
|
|
1291
|
+
*/
|
|
1292
|
+
declare const buildNotificationStep: (overrides?: Partial<NotificationStep>) => NotificationStep;
|
|
1293
|
+
/**
|
|
1294
|
+
* Generates a list of NotificationStep objects with random data.
|
|
1295
|
+
*
|
|
1296
|
+
* @since 0.1.0
|
|
1297
|
+
* @param {number} quantity The number of objects to be generated
|
|
1298
|
+
* @returns {NotificationStep[]} An array of NotificationStep objects,
|
|
1299
|
+
* see {@link NotificationStep}
|
|
1300
|
+
*/
|
|
1301
|
+
declare const genNotificationSteps: (quantity?: number) => NotificationStep[];
|
|
1302
|
+
/**
|
|
1303
|
+
* Generates NotificationAdditionalInfo object with random data.
|
|
1304
|
+
*
|
|
1305
|
+
* @since 0.1.0
|
|
1306
|
+
* @param {Partial<NotificationAdditionalInfo>} overrides Properties to override
|
|
1307
|
+
* a {@link NotificationAdditionalInfo}
|
|
1308
|
+
* @returns {NotificationAdditionalInfo} A {@link NotificationAdditionalInfo} object
|
|
1309
|
+
*/
|
|
1310
|
+
declare const buildNotificationAdditionalInfo: (overrides?: Partial<NotificationAdditionalInfo>) => NotificationAdditionalInfo;
|
|
1311
|
+
/**
|
|
1312
|
+
* Generates a list of NotificationAdditionalInfo objects with random data.
|
|
1313
|
+
*
|
|
1314
|
+
* @since 0.1.0
|
|
1315
|
+
* @param {number} quantity The number of objects to be generated
|
|
1316
|
+
* @returns {NotificationAdditionalInfo[]} An array of NotificationAdditionalInfo objects,
|
|
1317
|
+
* see {@link NotificationAdditionalInfo}
|
|
1318
|
+
*/
|
|
1319
|
+
declare const genNotificationAdditionalInfos: (quantity?: number) => NotificationAdditionalInfo[];
|
|
1320
|
+
/**
|
|
1321
|
+
* Generates NotificationExtraData object with random data.
|
|
1322
|
+
*
|
|
1323
|
+
* @since 0.1.0
|
|
1324
|
+
* @param {Partial<NotificationExtraData>} overrides Properties to override
|
|
1325
|
+
* a {@link NotificationExtraData}
|
|
1326
|
+
* @returns {NotificationExtraData} A {@link NotificationExtraData} object
|
|
1327
|
+
*/
|
|
1328
|
+
declare const buildNotificationExtraData: (overrides?: Partial<NotificationExtraData>) => NotificationExtraData;
|
|
1329
|
+
/**
|
|
1330
|
+
* Generates a list of NotificationExtraData objects with random data.
|
|
1331
|
+
*
|
|
1332
|
+
* @since 0.1.0
|
|
1333
|
+
* @param {number} quantity The number of objects to be generated
|
|
1334
|
+
* @returns {NotificationExtraData[]} An array of NotificationExtraData objects,
|
|
1335
|
+
* see {@link NotificationExtraData}
|
|
1336
|
+
*/
|
|
1337
|
+
declare const genNotificationExtraDatas: (quantity?: number) => NotificationExtraData[];
|
|
1338
|
+
/**
|
|
1339
|
+
* Generates NotificationListItem object with random data.
|
|
1340
|
+
*
|
|
1341
|
+
* @since 0.1.0
|
|
1342
|
+
* @param {Partial<NotificationListItem>} overrides Properties to override
|
|
1343
|
+
* a {@link NotificationListItem}
|
|
1344
|
+
* @returns {NotificationListItem} A {@link NotificationListItem} object
|
|
1345
|
+
*/
|
|
1346
|
+
declare const buildNotificationListItem: (overrides?: Partial<NotificationListItem>) => NotificationListItem;
|
|
1347
|
+
/**
|
|
1348
|
+
* Generates a list of NotificationListItem objects with random data.
|
|
1349
|
+
*
|
|
1350
|
+
* @since 0.1.0
|
|
1351
|
+
* @param {number} quantity The number of objects to be generated
|
|
1352
|
+
* @returns {NotificationListItem[]} An array of NotificationListItem objects,
|
|
1353
|
+
* see {@link NotificationListItem}
|
|
1354
|
+
*/
|
|
1355
|
+
declare const genNotificationListItems: (quantity?: number) => NotificationListItem[];
|
|
1356
|
+
|
|
1357
|
+
declare const notification_builder_buildNotification: typeof buildNotification;
|
|
1358
|
+
declare const notification_builder_buildNotificationAdditionalInfo: typeof buildNotificationAdditionalInfo;
|
|
1359
|
+
declare const notification_builder_buildNotificationExtraData: typeof buildNotificationExtraData;
|
|
1360
|
+
declare const notification_builder_buildNotificationListItem: typeof buildNotificationListItem;
|
|
1361
|
+
declare const notification_builder_buildNotificationStep: typeof buildNotificationStep;
|
|
1362
|
+
declare const notification_builder_buildNotificationStore: typeof buildNotificationStore;
|
|
1363
|
+
declare const notification_builder_buildNotificationUser: typeof buildNotificationUser;
|
|
1364
|
+
declare const notification_builder_genNotificationAdditionalInfos: typeof genNotificationAdditionalInfos;
|
|
1365
|
+
declare const notification_builder_genNotificationExtraDatas: typeof genNotificationExtraDatas;
|
|
1366
|
+
declare const notification_builder_genNotificationListItems: typeof genNotificationListItems;
|
|
1367
|
+
declare const notification_builder_genNotificationSteps: typeof genNotificationSteps;
|
|
1368
|
+
declare const notification_builder_genNotificationStores: typeof genNotificationStores;
|
|
1369
|
+
declare const notification_builder_genNotificationUsers: typeof genNotificationUsers;
|
|
1370
|
+
declare const notification_builder_genNotifications: typeof genNotifications;
|
|
1371
|
+
declare namespace notification_builder {
|
|
1372
|
+
export {
|
|
1373
|
+
notification_builder_buildNotification as buildNotification,
|
|
1374
|
+
notification_builder_buildNotificationAdditionalInfo as buildNotificationAdditionalInfo,
|
|
1375
|
+
notification_builder_buildNotificationExtraData as buildNotificationExtraData,
|
|
1376
|
+
notification_builder_buildNotificationListItem as buildNotificationListItem,
|
|
1377
|
+
notification_builder_buildNotificationStep as buildNotificationStep,
|
|
1378
|
+
notification_builder_buildNotificationStore as buildNotificationStore,
|
|
1379
|
+
notification_builder_buildNotificationUser as buildNotificationUser,
|
|
1380
|
+
notification_builder_genNotificationAdditionalInfos as genNotificationAdditionalInfos,
|
|
1381
|
+
notification_builder_genNotificationExtraDatas as genNotificationExtraDatas,
|
|
1382
|
+
notification_builder_genNotificationListItems as genNotificationListItems,
|
|
1383
|
+
notification_builder_genNotificationSteps as genNotificationSteps,
|
|
1384
|
+
notification_builder_genNotificationStores as genNotificationStores,
|
|
1385
|
+
notification_builder_genNotificationUsers as genNotificationUsers,
|
|
1386
|
+
notification_builder_genNotifications as genNotifications,
|
|
1387
|
+
};
|
|
1388
|
+
}
|
|
1389
|
+
|
|
1390
|
+
/**
|
|
1391
|
+
* All values of OrderStatus.
|
|
1392
|
+
*
|
|
1393
|
+
* @since 0.1.0
|
|
1394
|
+
*/
|
|
1395
|
+
declare const orderStatusOptions: OrderStatus[];
|
|
1396
|
+
/**
|
|
1397
|
+
* All values of PaymentStatus.
|
|
1398
|
+
*
|
|
1399
|
+
* @since 0.5.4
|
|
1400
|
+
*/
|
|
1401
|
+
declare const paymentStatus: PaymentStatus[];
|
|
1402
|
+
/**
|
|
1403
|
+
* All values of Allocation.
|
|
1404
|
+
*
|
|
1405
|
+
* @since 0.1.0
|
|
1406
|
+
*/
|
|
1407
|
+
declare const allocationOptions: Allocation[];
|
|
1408
|
+
/**
|
|
1409
|
+
* Generate a sequence identifier with random numbers.
|
|
1410
|
+
*
|
|
1411
|
+
* @since 0.1.0
|
|
1412
|
+
*/
|
|
1413
|
+
declare const genSeqId: () => string;
|
|
1414
|
+
/**
|
|
1415
|
+
* Generate a order reference with random data.
|
|
1416
|
+
*
|
|
1417
|
+
* @since 0.1.0
|
|
1418
|
+
*/
|
|
1419
|
+
declare const genReference: () => string;
|
|
1420
|
+
/**
|
|
1421
|
+
* Generates BaseOrder object with random data.
|
|
1422
|
+
*
|
|
1423
|
+
* @template T Order additional info
|
|
1424
|
+
* @template U Shopping cart additional info
|
|
1425
|
+
* @template V User additional info
|
|
1426
|
+
* @since 0.1.0
|
|
1427
|
+
* @param {Partial<BaseOrder>} overrides Properties to override
|
|
1428
|
+
* a {@link BaseOrder}
|
|
1429
|
+
* @returns {BaseOrder} A {@link BaseOrder} object
|
|
1430
|
+
*/
|
|
1431
|
+
declare const buildBaseOrder: <T extends AdditionalInfo = AdditionalInfo, U extends AdditionalInfo = AdditionalInfo, V extends AdditionalInfo = AdditionalInfo>(overrides?: Partial<BaseOrder<T, U, V>>) => BaseOrder<T, U, V>;
|
|
1432
|
+
/**
|
|
1433
|
+
* Generates a list of BaseOrder objects with random data.
|
|
1434
|
+
*
|
|
1435
|
+
* @template T Orders additional info
|
|
1436
|
+
* @template U Shopping carts additional info
|
|
1437
|
+
* @template V Users additional info
|
|
1438
|
+
* @since 0.1.0
|
|
1439
|
+
* @param {number} quantity The number of objects to be generated
|
|
1440
|
+
* @returns {BaseOrder[]} An array of BaseOrder objects,
|
|
1441
|
+
* see {@link BaseOrder}
|
|
1442
|
+
*/
|
|
1443
|
+
declare const genBaseOrders: <T extends AdditionalInfo = AdditionalInfo, U extends AdditionalInfo = AdditionalInfo, V extends AdditionalInfo = AdditionalInfo>(quantity?: number) => BaseOrder<T, U, V>[];
|
|
1444
|
+
/**
|
|
1445
|
+
* Generates OrderDetails object with random data.
|
|
1446
|
+
*
|
|
1447
|
+
* @template T Order additional info
|
|
1448
|
+
* @template U Shopping cart additional info
|
|
1449
|
+
* @template V User additional info
|
|
1450
|
+
* @since 0.1.0
|
|
1451
|
+
* @param {Partial<OrderDetails>} overrides Properties to override
|
|
1452
|
+
* a {@link OrderDetails}
|
|
1453
|
+
* @returns {OrderDetails} A {@link OrderDetails} object
|
|
1454
|
+
*/
|
|
1455
|
+
declare const buildOrderDetails: <T extends AdditionalInfo = AdditionalInfo, U extends AdditionalInfo = AdditionalInfo, V extends AdditionalInfo = AdditionalInfo>(overrides?: Partial<OrderDetails<T, U, V>>) => OrderDetails<T, U, V>;
|
|
1456
|
+
/**
|
|
1457
|
+
* Generates a list of OrderDetails objects with random data.
|
|
1458
|
+
*
|
|
1459
|
+
* @template T Orders additional info
|
|
1460
|
+
* @template U Shopping carts additional info
|
|
1461
|
+
* @template V Users additional info
|
|
1462
|
+
* @since 0.1.0
|
|
1463
|
+
* @param {number} quantity The number of objects to be generated
|
|
1464
|
+
* @returns {OrderDetails[]} An array of OrderDetails objects,
|
|
1465
|
+
* see {@link OrderDetails}
|
|
1466
|
+
*/
|
|
1467
|
+
declare const genOrderDetails: <T extends AdditionalInfo = AdditionalInfo, U extends AdditionalInfo = AdditionalInfo, V extends AdditionalInfo = AdditionalInfo>(quantity?: number) => OrderDetails<T, U, V>[];
|
|
1468
|
+
/**
|
|
1469
|
+
* Generates OrderStep object with random data.
|
|
1470
|
+
*
|
|
1471
|
+
* @since 0.1.0
|
|
1472
|
+
* @param {Partial<OrderStep>} overrides Properties to override
|
|
1473
|
+
* a {@link OrderStep}
|
|
1474
|
+
* @returns {OrderStep} A {@link OrderStep} object
|
|
1475
|
+
*/
|
|
1476
|
+
declare const buildOrderStep: (overrides?: Partial<OrderStep>) => OrderStep;
|
|
1477
|
+
/**
|
|
1478
|
+
* Generates OrderStepAdditionalInfo object with random data.
|
|
1479
|
+
*
|
|
1480
|
+
* @since 0.1.0
|
|
1481
|
+
* @param {Partial<OrderStepAdditionalInfo>} overrides Properties to override
|
|
1482
|
+
* a {@link OrderStepAdditionalInfo}
|
|
1483
|
+
* @returns {OrderStepAdditionalInfo} A
|
|
1484
|
+
* {@link OrderStepAdditionalInfo} object
|
|
1485
|
+
*/
|
|
1486
|
+
declare const buildOrderStepAdditionalInfo: (overrides?: Partial<OrderStepAdditionalInfo>) => OrderStepAdditionalInfo;
|
|
1487
|
+
/**
|
|
1488
|
+
* Generates a list of OrderStepAdditionalInfo objects with random data.
|
|
1489
|
+
*
|
|
1490
|
+
* @since 0.1.0
|
|
1491
|
+
* @param {number} quantity The number of objects to be generated
|
|
1492
|
+
* @returns {OrderStepAdditionalInfo[]} An array of
|
|
1493
|
+
* OrderStepAdditionalInfo objects,
|
|
1494
|
+
* see {@link OrderStepAdditionalInfo}
|
|
1495
|
+
*/
|
|
1496
|
+
declare const genOrderStepAdditionalInfos: (quantity?: number) => OrderStepAdditionalInfo[];
|
|
1497
|
+
/**
|
|
1498
|
+
* Generates OrderStepAdditionalInfoGroup object with random data.
|
|
1499
|
+
*
|
|
1500
|
+
* @since 0.1.0
|
|
1501
|
+
* @param {Partial<OrderStepAdditionalInfoGroup>} overrides Properties
|
|
1502
|
+
* to override a {@link OrderStepAdditionalInfoGroup}
|
|
1503
|
+
* @returns {OrderStepAdditionalInfoGroup} A
|
|
1504
|
+
* {@link OrderStepAdditionalInfoGroup} object
|
|
1505
|
+
*/
|
|
1506
|
+
declare const buildOrderStepAdditionalInfoGroup: (overrides?: Partial<OrderStepAdditionalInfoGroup>) => OrderStepAdditionalInfoGroup;
|
|
1507
|
+
/**
|
|
1508
|
+
* Generates a list of OrderStep objects with random data.
|
|
1509
|
+
*
|
|
1510
|
+
* @since 0.1.0
|
|
1511
|
+
* @param {number} quantity The number of objects to be generated
|
|
1512
|
+
* @returns {OrderStep[]} An array of OrderStep objects,
|
|
1513
|
+
* see {@link OrderStep}
|
|
1514
|
+
*/
|
|
1515
|
+
declare const genOrderSteps: (quantity?: number) => OrderStep[];
|
|
1516
|
+
/**
|
|
1517
|
+
* Generates OrderDetailShippingCost object with random data.
|
|
1518
|
+
*
|
|
1519
|
+
* @since 0.1.0
|
|
1520
|
+
* @param {Partial<OrderDetailShippingCost>} overrides Properties to override
|
|
1521
|
+
* a {@link OrderDetailShippingCost}
|
|
1522
|
+
* @returns {OrderDetailShippingCost} A {@link OrderDetailShippingCost} object
|
|
1523
|
+
*/
|
|
1524
|
+
declare const buildOrderDetailShippingCost: (overrides?: Partial<OrderDetailShippingCost>) => OrderDetailShippingCost;
|
|
1525
|
+
/**
|
|
1526
|
+
* Generates a list of OrderDetailShippingCost objects with random data.
|
|
1527
|
+
*
|
|
1528
|
+
* @since 0.1.0
|
|
1529
|
+
* @param {number} quantity The number of objects to be generated
|
|
1530
|
+
* @returns {OrderDetailShippingCost[]} An array of OrderDetailShippingCost
|
|
1531
|
+
* objects, see {@link OrderDetailShippingCost}
|
|
1532
|
+
*/
|
|
1533
|
+
declare const genOrderDetailShippingCosts: (quantity?: number) => OrderDetailShippingCost[];
|
|
1534
|
+
/**
|
|
1535
|
+
* Generates OrderRetry object with random data.
|
|
1536
|
+
*
|
|
1537
|
+
* @since 0.1.0
|
|
1538
|
+
* @param {Partial<OrderRetry>} overrides Properties to override
|
|
1539
|
+
* a {@link OrderRetry}
|
|
1540
|
+
* @returns {OrderRetry} A {@link OrderRetry} object
|
|
1541
|
+
*/
|
|
1542
|
+
declare const buildOrderRetry: (overrides?: Partial<OrderRetry>) => OrderRetry;
|
|
1543
|
+
/**
|
|
1544
|
+
* Generates Status object with random data.
|
|
1545
|
+
*
|
|
1546
|
+
* @since 0.1.0
|
|
1547
|
+
* @param {Partial<Status>} overrides Properties to override
|
|
1548
|
+
* a {@link Status}
|
|
1549
|
+
* @returns {Status} A {@link Status} object
|
|
1550
|
+
*/
|
|
1551
|
+
declare const buildStatus: (overrides?: Partial<Status>) => Status;
|
|
1552
|
+
/**
|
|
1553
|
+
* Generates a list of Status objects with random data.
|
|
1554
|
+
*
|
|
1555
|
+
* @since 0.1.0
|
|
1556
|
+
* @param {number} quantity The number of objects to be generated
|
|
1557
|
+
* @returns {Status[]} An array of Status objects,
|
|
1558
|
+
* see {@link Status}
|
|
1559
|
+
*/
|
|
1560
|
+
declare const genStatus: (quantity?: number) => Status[];
|
|
1561
|
+
/**
|
|
1562
|
+
* Generates a list of OrderRetry objects with random data.
|
|
1563
|
+
*
|
|
1564
|
+
* @since 0.1.0
|
|
1565
|
+
* @param {number} quantity The number of objects to be generated
|
|
1566
|
+
* @returns {OrderRetry[]} An array of OrderRetry objects,
|
|
1567
|
+
* see {@link OrderRetry}
|
|
1568
|
+
*/
|
|
1569
|
+
declare const genOrderRetries: (quantity?: number) => OrderRetry[];
|
|
1570
|
+
/**
|
|
1571
|
+
* Generates OrderPaymentMethod object with random data.
|
|
1572
|
+
*
|
|
1573
|
+
* @since 0.1.0
|
|
1574
|
+
* @param {Partial<OrderPaymentMethod>} overrides Properties to override
|
|
1575
|
+
* a {@link OrderPaymentMethod}
|
|
1576
|
+
* @returns {OrderPaymentMethod} A {@link OrderPaymentMethod} object
|
|
1577
|
+
*/
|
|
1578
|
+
declare const buildOrderPaymentMethod: (overrides?: Partial<OrderPaymentMethod>) => OrderPaymentMethod;
|
|
1579
|
+
/**
|
|
1580
|
+
* Generates a list of OrderPaymentMethod objects with random data.
|
|
1581
|
+
*
|
|
1582
|
+
* @since 0.1.0
|
|
1583
|
+
* @param {number} quantity The number of objects to be generated
|
|
1584
|
+
* @returns {OrderPaymentMethod[]} An array of OrderPaymentMethod
|
|
1585
|
+
* objects, see {@link OrderPaymentMethod}
|
|
1586
|
+
*/
|
|
1587
|
+
declare const genOrderPaymentMethods: (quantity?: number) => OrderPaymentMethod[];
|
|
1588
|
+
/**
|
|
1589
|
+
* Generates OrderShoppingCart object with random data.
|
|
1590
|
+
*
|
|
1591
|
+
* @since 0.1.0
|
|
1592
|
+
* @param {Partial<OrderShoppingCart>} overrides Properties to override
|
|
1593
|
+
* a {@link OrderShoppingCart}
|
|
1594
|
+
* @returns {OrderShoppingCart} A {@link OrderShoppingCart} object
|
|
1595
|
+
*/
|
|
1596
|
+
declare const buildOrderShoppingCart: <T extends AdditionalInfo = AdditionalInfo>(overrides?: Partial<OrderShoppingCart<T>>) => OrderShoppingCart<T>;
|
|
1597
|
+
/**
|
|
1598
|
+
* Generates OrderStoreAdditionalInfo object with random data.
|
|
1599
|
+
*
|
|
1600
|
+
* @since 0.1.0
|
|
1601
|
+
* @param {Partial<OrderStoreAdditionalInfo>} overrides Properties to override
|
|
1602
|
+
* a {@link OrderStoreAdditionalInfo}
|
|
1603
|
+
* @returns {OrderStoreAdditionalInfo} A {@link OrderStoreAdditionalInfo} object
|
|
1604
|
+
*/
|
|
1605
|
+
declare const buildOrderStoreAdditionalInfo: (overrides?: Partial<OrderStoreAdditionalInfo>) => OrderStoreAdditionalInfo;
|
|
1606
|
+
/**
|
|
1607
|
+
* Generates a list of OrderStoreAdditionalInfo objects with random data.
|
|
1608
|
+
*
|
|
1609
|
+
* @since 0.1.0
|
|
1610
|
+
* @param {number} quantity The number of objects to be generated
|
|
1611
|
+
* @returns {OrderStoreAdditionalInfo[]} An array of OrderStoreAdditionalInfo objects,
|
|
1612
|
+
* see {@link OrderStoreAdditionalInfo}
|
|
1613
|
+
*/
|
|
1614
|
+
declare const genOrderStoreAdditionalInfos: (quantity?: number) => OrderStoreAdditionalInfo[];
|
|
1615
|
+
/**
|
|
1616
|
+
* Generates OrderStoreDelivery object with random data.
|
|
1617
|
+
*
|
|
1618
|
+
* @since 0.1.0
|
|
1619
|
+
* @param {Partial<OrderStoreDelivery>} overrides Properties to override
|
|
1620
|
+
* a {@link OrderStoreDelivery}
|
|
1621
|
+
* @returns {OrderStoreDelivery} A {@link OrderStoreDelivery} object
|
|
1622
|
+
*/
|
|
1623
|
+
declare const buildOrderStoreDelivery: (overrides?: Partial<OrderStoreDelivery>) => OrderStoreDelivery;
|
|
1624
|
+
/**
|
|
1625
|
+
* Generates a list of OrderStoreDelivery objects with random data.
|
|
1626
|
+
*
|
|
1627
|
+
* @since 0.1.0
|
|
1628
|
+
* @param {number} quantity The number of objects to be generated
|
|
1629
|
+
* @returns {OrderStoreDelivery[]} An array of OrderStoreDelivery objects,
|
|
1630
|
+
* see {@link OrderStoreDelivery}
|
|
1631
|
+
*/
|
|
1632
|
+
declare const genOrderStoreDeliveries: (quantity?: number) => OrderStoreDelivery[];
|
|
1633
|
+
/**
|
|
1634
|
+
* Generates OrderStore object with random data.
|
|
1635
|
+
*
|
|
1636
|
+
* @since 0.1.0
|
|
1637
|
+
* @param {Partial<OrderStore>} overrides Properties to override
|
|
1638
|
+
* a {@link OrderStore}
|
|
1639
|
+
* @returns {OrderStore} A {@link OrderStore} object
|
|
1640
|
+
*/
|
|
1641
|
+
declare const buildOrderStore: (overrides?: Partial<OrderStore>) => OrderStore;
|
|
1642
|
+
/**
|
|
1643
|
+
* Generates a list of OrderStore objects with random data.
|
|
1644
|
+
*
|
|
1645
|
+
* @since 0.1.0
|
|
1646
|
+
* @param {number} quantity The number of objects to be generated
|
|
1647
|
+
* @returns {OrderStore[]} An array of OrderStore objects,
|
|
1648
|
+
* see {@link OrderStore}
|
|
1649
|
+
*/
|
|
1650
|
+
declare const genOrderStores: (quantity?: number) => OrderStore[];
|
|
1651
|
+
/**
|
|
1652
|
+
* Generates OrderProductAttributes object with random data.
|
|
1653
|
+
*
|
|
1654
|
+
* @since 0.1.0
|
|
1655
|
+
* @param {Partial<OrderProductAttributes>} overrides Properties to override
|
|
1656
|
+
* a {@link OrderProductAttributes}
|
|
1657
|
+
* @returns {OrderProductAttributes} A {@link OrderProductAttributes} object
|
|
1658
|
+
*/
|
|
1659
|
+
declare const buildOrderProductAttributes: (overrides?: Partial<OrderProductAttributes>) => OrderProductAttributes;
|
|
1660
|
+
/**
|
|
1661
|
+
* Generates a list of OrderProductAttributes objects with random data.
|
|
1662
|
+
*
|
|
1663
|
+
* @since 0.1.0
|
|
1664
|
+
* @param {number} quantity The number of objects to be generated
|
|
1665
|
+
* @returns {OrderProductAttributes[]} An array of OrderProductAttributes
|
|
1666
|
+
* objects, see {@link OrderProductAttributes}
|
|
1667
|
+
*/
|
|
1668
|
+
declare const genOrderProductAttributes: (quantity?: number) => OrderProductAttributes[];
|
|
1669
|
+
/**
|
|
1670
|
+
* Generates OrderProductAdditionalInfo object with random data.
|
|
1671
|
+
*
|
|
1672
|
+
* @since 0.1.0
|
|
1673
|
+
* @param {Partial<OrderProductAdditionalInfo>} overrides Properties to override
|
|
1674
|
+
* a {@link OrderProductAdditionalInfo}
|
|
1675
|
+
* @returns {OrderProductAdditionalInfo} A {@link OrderProductAdditionalInfo}
|
|
1676
|
+
* object
|
|
1677
|
+
*/
|
|
1678
|
+
declare const buildOrderProductAdditionalInfo: (overrides?: Partial<OrderProductAdditionalInfo>) => OrderProductAdditionalInfo;
|
|
1679
|
+
/**
|
|
1680
|
+
* Generates a list of OrderProductAdditionalInfo objects with random data.
|
|
1681
|
+
*
|
|
1682
|
+
* @since 0.1.0
|
|
1683
|
+
* @param {number} quantity The number of objects to be generated
|
|
1684
|
+
* @returns {OrderProductAdditionalInfo[]} An array of
|
|
1685
|
+
* OrderProductAdditionalInfo objects, see {@link OrderProductAdditionalInfo}
|
|
1686
|
+
*/
|
|
1687
|
+
declare const genOrderProductAdditionalInfos: (quantity?: number) => OrderProductAdditionalInfo[];
|
|
1688
|
+
/**
|
|
1689
|
+
* Generates OrderProductImage object with random data.
|
|
1690
|
+
*
|
|
1691
|
+
* @since 0.1.0
|
|
1692
|
+
* @param {Partial<OrderProductImage>} overrides Properties to override
|
|
1693
|
+
* a {@link OrderProductImage}
|
|
1694
|
+
* @returns {OrderProductImage} A {@link OrderProductImage} object
|
|
1695
|
+
*/
|
|
1696
|
+
declare const buildOrderProductImage: (overrides?: Partial<OrderProductImage>) => OrderProductImage;
|
|
1697
|
+
/**
|
|
1698
|
+
* Generates a list of OrderProductImage objects with random data.
|
|
1699
|
+
*
|
|
1700
|
+
* @since 0.1.0
|
|
1701
|
+
* @param {number} quantity The number of objects to be generated
|
|
1702
|
+
* @returns {OrderProductImage[]} An array of OrderProductImage objects,
|
|
1703
|
+
* see {@link OrderProductImage}
|
|
1704
|
+
*/
|
|
1705
|
+
declare const genOrderProductImages: (quantity?: number) => OrderProductImage[];
|
|
1706
|
+
/**
|
|
1707
|
+
* Generates OrderBillProductAdditionalInfo object with random data.
|
|
1708
|
+
*
|
|
1709
|
+
* @since 0.1.0
|
|
1710
|
+
* @param {Partial<OrderBillProductAdditionalInfo>} overrides Properties to
|
|
1711
|
+
* override a {@link OrderBillProductAdditionalInfo}
|
|
1712
|
+
* @returns {OrderBillProductAdditionalInfo} A
|
|
1713
|
+
* {@link OrderBillProductAdditionalInfo} object
|
|
1714
|
+
*/
|
|
1715
|
+
declare const buildOrderBillProductAdditionalInfo: (overrides?: Partial<OrderBillProductAdditionalInfo>) => OrderBillProductAdditionalInfo;
|
|
1716
|
+
/**
|
|
1717
|
+
* Generates TaxCalculation object with random data.
|
|
1718
|
+
*
|
|
1719
|
+
* @since 0.1.0
|
|
1720
|
+
* @param {Partial<TaxCalculation>} overrides Properties to override
|
|
1721
|
+
* a {@link TaxCalculation}
|
|
1722
|
+
* @returns {TaxCalculation} A {@link TaxCalculation} object
|
|
1723
|
+
*/
|
|
1724
|
+
declare const buildTaxCalculation: (overrides?: Partial<TaxCalculation>) => TaxCalculation;
|
|
1725
|
+
/**
|
|
1726
|
+
* Generates a list of TaxCalculation objects with random data.
|
|
1727
|
+
*
|
|
1728
|
+
* @since 0.1.0
|
|
1729
|
+
* @param {number} quantity The number of objects to be generated
|
|
1730
|
+
* @returns {TaxCalculation[]} An array of TaxCalculation objects,
|
|
1731
|
+
* see {@link TaxCalculation}
|
|
1732
|
+
*/
|
|
1733
|
+
declare const genTaxCalculations: (quantity?: number) => TaxCalculation[];
|
|
1734
|
+
/**
|
|
1735
|
+
* Generates TaxCalculations object with random data.
|
|
1736
|
+
*
|
|
1737
|
+
* @since 0.1.0
|
|
1738
|
+
* @param {Partial<TaxCalculations>} overrides Properties to override
|
|
1739
|
+
* a {@link TaxCalculations}
|
|
1740
|
+
* @returns {TaxCalculations} A {@link TaxCalculations} object
|
|
1741
|
+
*/
|
|
1742
|
+
declare const buildTaxCalculations: (overrides?: Partial<TaxCalculations>) => TaxCalculations;
|
|
1743
|
+
/**
|
|
1744
|
+
* Generates OrderProductPriceCategory object with random data.
|
|
1745
|
+
*
|
|
1746
|
+
* @since 0.1.0
|
|
1747
|
+
* @param {Partial<OrderProductPriceCategory>} overrides Properties to override
|
|
1748
|
+
* a {@link OrderProductPriceCategory}
|
|
1749
|
+
* @returns {OrderProductPriceCategory} A {@link OrderProductPriceCategory}
|
|
1750
|
+
* object
|
|
1751
|
+
*/
|
|
1752
|
+
declare const buildOrderProductPriceCategory: (overrides?: Partial<OrderProductPriceCategory>) => OrderProductPriceCategory;
|
|
1753
|
+
/**
|
|
1754
|
+
* Generates a list of OrderProductPriceCategory objects with random data.
|
|
1755
|
+
*
|
|
1756
|
+
* @since 0.1.0
|
|
1757
|
+
* @param {number} quantity The number of objects to be generated
|
|
1758
|
+
* @returns {OrderProductPriceCategory[]} An array of OrderProductPriceCategory
|
|
1759
|
+
* objects, see {@link OrderProductPriceCategory}
|
|
1760
|
+
*/
|
|
1761
|
+
declare const genOrderProductPriceCategories: (quantity?: number) => OrderProductPriceCategory[];
|
|
1762
|
+
/**
|
|
1763
|
+
* Generates OrderProduct object with random data.
|
|
1764
|
+
*
|
|
1765
|
+
* @since 0.1.0
|
|
1766
|
+
* @param {Partial<OrderProduct>} overrides Properties to override
|
|
1767
|
+
* a {@link OrderProduct}
|
|
1768
|
+
* @returns {OrderProduct} A {@link OrderProduct} object
|
|
1769
|
+
*/
|
|
1770
|
+
declare const buildOrderProduct: (overrides?: Partial<OrderProduct>) => OrderProduct;
|
|
1771
|
+
/**
|
|
1772
|
+
* Generates a list of OrderProduct objects with random data.
|
|
1773
|
+
*
|
|
1774
|
+
* @since 0.1.0
|
|
1775
|
+
* @param {number} quantity The number of objects to be generated
|
|
1776
|
+
* @returns {OrderProduct[]} An array of OrderProduct objects,
|
|
1777
|
+
* see {@link OrderProduct}
|
|
1778
|
+
*/
|
|
1779
|
+
declare const genOrderProducts: (quantity?: number) => OrderProduct[];
|
|
1780
|
+
/**
|
|
1781
|
+
* Generates OrderBillProduct object with random data.
|
|
1782
|
+
*
|
|
1783
|
+
* @since 0.1.0
|
|
1784
|
+
* @param {Partial<OrderBillProduct>} overrides Properties to override
|
|
1785
|
+
* a {@link OrderBillProduct}
|
|
1786
|
+
* @returns {OrderBillProduct} A {@link OrderBillProduct} object
|
|
1787
|
+
*/
|
|
1788
|
+
declare const buildOrderBillProduct: (overrides?: Partial<OrderBillProduct>) => OrderBillProduct;
|
|
1789
|
+
/**
|
|
1790
|
+
* Generates OrderProductBillTotal object with random data.
|
|
1791
|
+
*
|
|
1792
|
+
* @since 0.1.0
|
|
1793
|
+
* @param {Partial<OrderProductBillTotal>} overrides Properties to override
|
|
1794
|
+
* a {@link OrderProductBillTotal}
|
|
1795
|
+
* @returns {OrderProductBillTotal} A {@link OrderProductBillTotal} object
|
|
1796
|
+
*/
|
|
1797
|
+
declare const buildOrderProductBillTotal: (overrides?: Partial<OrderProductBillTotal>) => OrderProductBillTotal;
|
|
1798
|
+
/**
|
|
1799
|
+
* Generates OrderBillTotal object with random data.
|
|
1800
|
+
*
|
|
1801
|
+
* @since 0.1.0
|
|
1802
|
+
* @param {Partial<OrderBillTotal>} overrides Properties to override
|
|
1803
|
+
* a {@link OrderBillTotal}
|
|
1804
|
+
* @returns {OrderBillTotal} A {@link OrderBillTotal} object
|
|
1805
|
+
*/
|
|
1806
|
+
declare const buildOrderBillTotal: (overrides?: Partial<OrderBillTotal>) => OrderBillTotal;
|
|
1807
|
+
/**
|
|
1808
|
+
* Generates a list of OrderShoppingCart objects with random data.
|
|
1809
|
+
*
|
|
1810
|
+
* @since 0.1.0
|
|
1811
|
+
* @param {number} quantity The number of objects to be generated
|
|
1812
|
+
* @returns {OrderShoppingCart[]} An array of OrderShoppingCart objects,
|
|
1813
|
+
* see {@link OrderShoppingCart}
|
|
1814
|
+
*/
|
|
1815
|
+
declare const genOrderShoppingCarts: <T extends AdditionalInfo = AdditionalInfo>(quantity?: number) => OrderShoppingCart<T>[];
|
|
1816
|
+
/**
|
|
1817
|
+
* Generates MetadataShipping object with random data.
|
|
1818
|
+
*
|
|
1819
|
+
* @since 0.1.0
|
|
1820
|
+
* @param {Partial<MetadataShipping>} overrides Properties to override
|
|
1821
|
+
* a {@link MetadataShipping}
|
|
1822
|
+
* @returns {MetadataShipping} A {@link MetadataShipping} object
|
|
1823
|
+
*/
|
|
1824
|
+
declare const buildMetadataShipping: (overrides?: Partial<MetadataShipping>) => MetadataShipping;
|
|
1825
|
+
/**
|
|
1826
|
+
* Generates a list of MetadataShipping objects with random data.
|
|
1827
|
+
*
|
|
1828
|
+
* @since 0.1.0
|
|
1829
|
+
* @param {number} quantity The number of objects to be generated
|
|
1830
|
+
* @returns {MetadataShipping[]} An array of MetadataShipping objects,
|
|
1831
|
+
* see {@link MetadataShipping}
|
|
1832
|
+
*/
|
|
1833
|
+
declare const genMetadataShippings: (quantity?: number) => MetadataShipping[];
|
|
1834
|
+
/**
|
|
1835
|
+
* Generates BaseField object with random data.
|
|
1836
|
+
*
|
|
1837
|
+
* @since 0.1.0
|
|
1838
|
+
* @param {Partial<BaseField>} overrides Properties to override
|
|
1839
|
+
* a {@link BaseField}
|
|
1840
|
+
* @returns {BaseField} A {@link BaseField} object
|
|
1841
|
+
*/
|
|
1842
|
+
declare const buildBaseField: (overrides?: Partial<BaseField>) => BaseField;
|
|
1843
|
+
/**
|
|
1844
|
+
* Generates a list of BaseField objects with random data.
|
|
1845
|
+
*
|
|
1846
|
+
* @since 0.1.0
|
|
1847
|
+
* @param {number} quantity The number of objects to be generated
|
|
1848
|
+
* @returns {BaseField[]} An array of BaseField objects,
|
|
1849
|
+
* see {@link BaseField}
|
|
1850
|
+
*/
|
|
1851
|
+
declare const genBaseFields: (quantity?: number) => BaseField[];
|
|
1852
|
+
/**
|
|
1853
|
+
* Generates ZipCodeField object with random data.
|
|
1854
|
+
*
|
|
1855
|
+
* @since 0.1.0
|
|
1856
|
+
* @param {Partial<ZipCodeField>} overrides Properties to override
|
|
1857
|
+
* a {@link ZipCodeField}
|
|
1858
|
+
* @returns {ZipCodeField} A {@link ZipCodeField} object
|
|
1859
|
+
*/
|
|
1860
|
+
declare const buildZipCodeField: (overrides?: Partial<ZipCodeField>) => ZipCodeField;
|
|
1861
|
+
/**
|
|
1862
|
+
* Generates a list of ZipCodeField objects with random data.
|
|
1863
|
+
*
|
|
1864
|
+
* @since 0.1.0
|
|
1865
|
+
* @param {number} quantity The number of objects to be generated
|
|
1866
|
+
* @returns {ZipCodeField[]} An array of ZipCodeField objects,
|
|
1867
|
+
* see {@link ZipCodeField}
|
|
1868
|
+
*/
|
|
1869
|
+
declare const genZipCodeFields: (quantity?: number) => ZipCodeField[];
|
|
1870
|
+
/**
|
|
1871
|
+
* Generates IntegrationMessage object with random data.
|
|
1872
|
+
*
|
|
1873
|
+
* @since 0.1.0
|
|
1874
|
+
* @param {Partial<IntegrationMessage>} overrides Properties to override
|
|
1875
|
+
* a {@link IntegrationMessage}
|
|
1876
|
+
* @returns {IntegrationMessage} A {@link IntegrationMessage} object
|
|
1877
|
+
*/
|
|
1878
|
+
declare const buildIntegrationMessage: (overrides?: Partial<IntegrationMessage>) => IntegrationMessage;
|
|
1879
|
+
/**
|
|
1880
|
+
* Generates a list of IntegrationMessage objects with random data.
|
|
1881
|
+
*
|
|
1882
|
+
* @since 0.1.0
|
|
1883
|
+
* @param {number} quantity The number of objects to be generated
|
|
1884
|
+
* @returns {IntegrationMessage[]} An array of IntegrationMessage objects,
|
|
1885
|
+
* see {@link IntegrationMessage}
|
|
1886
|
+
*/
|
|
1887
|
+
declare const genIntegrationMessages: (quantity?: number) => IntegrationMessage[];
|
|
1888
|
+
/**
|
|
1889
|
+
* Generates InjectionDetail object with random data.
|
|
1890
|
+
*
|
|
1891
|
+
* @since 0.1.0
|
|
1892
|
+
* @param {Partial<InjectionDetail>} overrides Properties to override
|
|
1893
|
+
* a {@link InjectionDetail}
|
|
1894
|
+
* @returns {InjectionDetail} A {@link InjectionDetail} object
|
|
1895
|
+
*/
|
|
1896
|
+
declare const buildInjectionDetail: (overrides?: Partial<InjectionDetail>) => InjectionDetail;
|
|
1897
|
+
/**
|
|
1898
|
+
* Generates a list of InjectionDetail objects with random data.
|
|
1899
|
+
*
|
|
1900
|
+
* @since 0.1.0
|
|
1901
|
+
* @param {number} quantity The number of objects to be generated
|
|
1902
|
+
* @returns {InjectionDetail[]} An array of InjectionDetail objects,
|
|
1903
|
+
* see {@link InjectionDetail}
|
|
1904
|
+
*/
|
|
1905
|
+
declare const genInjectionDetails: (quantity?: number) => InjectionDetail[];
|
|
1906
|
+
/**
|
|
1907
|
+
* Generates OrderUser object with random data.
|
|
1908
|
+
*
|
|
1909
|
+
* @since 0.1.0
|
|
1910
|
+
* @param {Partial<OrderUser>} overrides Properties to override
|
|
1911
|
+
* a {@link OrderUser}
|
|
1912
|
+
* @returns {OrderUser} A {@link OrderUser} object
|
|
1913
|
+
*/
|
|
1914
|
+
declare const buildOrderUser: <T extends AdditionalInfo = AdditionalInfo>(overrides?: Partial<OrderUser<T>>) => OrderUser<T>;
|
|
1915
|
+
/**
|
|
1916
|
+
* Generates a list of OrderUser objects with random data.
|
|
1917
|
+
*
|
|
1918
|
+
* @since 0.1.0
|
|
1919
|
+
* @param {number} quantity The number of objects to be generated
|
|
1920
|
+
* @returns {OrderUser[]} An array of OrderUser objects,
|
|
1921
|
+
* see {@link OrderUser}
|
|
1922
|
+
*/
|
|
1923
|
+
declare const genOrderUsers: <T extends AdditionalInfo = AdditionalInfo>(quantity?: number) => OrderUser<T>[];
|
|
1924
|
+
/**
|
|
1925
|
+
* Generates OperatorInformation object with random data.
|
|
1926
|
+
*
|
|
1927
|
+
* @param {Partial<OperatorInformation>} overrides Properties to override
|
|
1928
|
+
* a {@link OperatorInformation}
|
|
1929
|
+
* @returns {OperatorInformation} A {@link OperatorInformation} object
|
|
1930
|
+
*/
|
|
1931
|
+
declare const buildOperatorInformation: (overrides?: Partial<OperatorInformation>) => OperatorInformation;
|
|
1932
|
+
/**
|
|
1933
|
+
* Generates a list of OperatorInformation objects with random data.
|
|
1934
|
+
*
|
|
1935
|
+
* @param {number} quantity The number of objects to be generated
|
|
1936
|
+
* @returns {OperatorInformation[]} An array of OperatorInformation objects,
|
|
1937
|
+
* see {@link OperatorInformation}
|
|
1938
|
+
*/
|
|
1939
|
+
declare const genOperatorInformation: (quantity?: number) => OperatorInformation[];
|
|
1940
|
+
/**
|
|
1941
|
+
* Generates Suborder object with random data.
|
|
1942
|
+
*
|
|
1943
|
+
* @since 0.1.0
|
|
1944
|
+
* @param {Partial<Suborder>} overrides Properties to override
|
|
1945
|
+
* a {@link Suborder}
|
|
1946
|
+
* @returns {Suborder} A {@link Suborder} object
|
|
1947
|
+
*/
|
|
1948
|
+
declare const buildSuborder: (overrides?: Partial<Suborder>) => Suborder;
|
|
1949
|
+
/**
|
|
1950
|
+
* Generates a list of Suborder objects with random data.
|
|
1951
|
+
*
|
|
1952
|
+
* @since 0.1.0
|
|
1953
|
+
* @param {number} quantity The number of objects to be generated
|
|
1954
|
+
* @returns {Suborder[]} An array of Suborder objects,
|
|
1955
|
+
* see {@link Suborder}
|
|
1956
|
+
*/
|
|
1957
|
+
declare const genSuborders: (quantity?: number) => Suborder[];
|
|
1958
|
+
/**
|
|
1959
|
+
* Generates PaymentMethodByOrder object with random data.
|
|
1960
|
+
*
|
|
1961
|
+
* @since 0.1.0
|
|
1962
|
+
* @param {Partial<PaymentMethodByOrder>} overrides Properties to override
|
|
1963
|
+
* a {@link PaymentMethodByOrder}
|
|
1964
|
+
* @returns {PaymentMethodByOrder} A {@link PaymentMethodByOrder} object
|
|
1965
|
+
*/
|
|
1966
|
+
declare const buildPaymentMethodByOrder: (overrides?: Partial<PaymentMethodByOrder>) => PaymentMethodByOrder;
|
|
1967
|
+
/**
|
|
1968
|
+
* Generates a list of PaymentMethodByOrder objects with random data.
|
|
1969
|
+
*
|
|
1970
|
+
* @since 0.1.0
|
|
1971
|
+
* @param {number} quantity The number of objects to be generated
|
|
1972
|
+
* @returns {PaymentMethodByOrder[]} An array of PaymentMethodByOrder objects,
|
|
1973
|
+
* see {@link PaymentMethodByOrder}
|
|
1974
|
+
*/
|
|
1975
|
+
declare const genPaymentMethodByOrders: (quantity?: number) => PaymentMethodByOrder[];
|
|
1976
|
+
/**
|
|
1977
|
+
* Generates OrderRetryPaymentMethod object with random data.
|
|
1978
|
+
*
|
|
1979
|
+
* @since 0.1.0
|
|
1980
|
+
* @param {Partial<OrderRetryPaymentMethod>} overrides Properties to override
|
|
1981
|
+
* a {@link OrderRetryPaymentMethod}
|
|
1982
|
+
* @returns {OrderRetryPaymentMethod} A {@link OrderRetryPaymentMethod} object
|
|
1983
|
+
*/
|
|
1984
|
+
declare const buildOrderRetryPaymentMethod: (overrides?: Partial<OrderRetryPaymentMethod>) => OrderRetryPaymentMethod;
|
|
1985
|
+
/**
|
|
1986
|
+
* Generates a list of OrderRetryPaymentMethod objects with random data.
|
|
1987
|
+
*
|
|
1988
|
+
* @since 0.1.0
|
|
1989
|
+
* @param {number} quantity The number of objects to be generated
|
|
1990
|
+
* @returns {OrderRetryPaymentMethod[]} An array of
|
|
1991
|
+
* OrderRetryPaymentMethod objects, see {@link OrderRetryPaymentMethod}
|
|
1992
|
+
*/
|
|
1993
|
+
declare const genOrderRetryPaymentMethods: (quantity?: number) => OrderRetryPaymentMethod[];
|
|
1994
|
+
|
|
1995
|
+
declare const order_builder_allocationOptions: typeof allocationOptions;
|
|
1996
|
+
declare const order_builder_buildBaseField: typeof buildBaseField;
|
|
1997
|
+
declare const order_builder_buildBaseOrder: typeof buildBaseOrder;
|
|
1998
|
+
declare const order_builder_buildInjectionDetail: typeof buildInjectionDetail;
|
|
1999
|
+
declare const order_builder_buildIntegrationMessage: typeof buildIntegrationMessage;
|
|
2000
|
+
declare const order_builder_buildMetadataShipping: typeof buildMetadataShipping;
|
|
2001
|
+
declare const order_builder_buildOperatorInformation: typeof buildOperatorInformation;
|
|
2002
|
+
declare const order_builder_buildOrderBillProduct: typeof buildOrderBillProduct;
|
|
2003
|
+
declare const order_builder_buildOrderBillProductAdditionalInfo: typeof buildOrderBillProductAdditionalInfo;
|
|
2004
|
+
declare const order_builder_buildOrderBillTotal: typeof buildOrderBillTotal;
|
|
2005
|
+
declare const order_builder_buildOrderDetailShippingCost: typeof buildOrderDetailShippingCost;
|
|
2006
|
+
declare const order_builder_buildOrderDetails: typeof buildOrderDetails;
|
|
2007
|
+
declare const order_builder_buildOrderPaymentMethod: typeof buildOrderPaymentMethod;
|
|
2008
|
+
declare const order_builder_buildOrderProduct: typeof buildOrderProduct;
|
|
2009
|
+
declare const order_builder_buildOrderProductAdditionalInfo: typeof buildOrderProductAdditionalInfo;
|
|
2010
|
+
declare const order_builder_buildOrderProductAttributes: typeof buildOrderProductAttributes;
|
|
2011
|
+
declare const order_builder_buildOrderProductBillTotal: typeof buildOrderProductBillTotal;
|
|
2012
|
+
declare const order_builder_buildOrderProductImage: typeof buildOrderProductImage;
|
|
2013
|
+
declare const order_builder_buildOrderProductPriceCategory: typeof buildOrderProductPriceCategory;
|
|
2014
|
+
declare const order_builder_buildOrderRetry: typeof buildOrderRetry;
|
|
2015
|
+
declare const order_builder_buildOrderRetryPaymentMethod: typeof buildOrderRetryPaymentMethod;
|
|
2016
|
+
declare const order_builder_buildOrderShoppingCart: typeof buildOrderShoppingCart;
|
|
2017
|
+
declare const order_builder_buildOrderStep: typeof buildOrderStep;
|
|
2018
|
+
declare const order_builder_buildOrderStepAdditionalInfo: typeof buildOrderStepAdditionalInfo;
|
|
2019
|
+
declare const order_builder_buildOrderStepAdditionalInfoGroup: typeof buildOrderStepAdditionalInfoGroup;
|
|
2020
|
+
declare const order_builder_buildOrderStore: typeof buildOrderStore;
|
|
2021
|
+
declare const order_builder_buildOrderStoreAdditionalInfo: typeof buildOrderStoreAdditionalInfo;
|
|
2022
|
+
declare const order_builder_buildOrderStoreDelivery: typeof buildOrderStoreDelivery;
|
|
2023
|
+
declare const order_builder_buildOrderUser: typeof buildOrderUser;
|
|
2024
|
+
declare const order_builder_buildPaymentMethodByOrder: typeof buildPaymentMethodByOrder;
|
|
2025
|
+
declare const order_builder_buildStatus: typeof buildStatus;
|
|
2026
|
+
declare const order_builder_buildSuborder: typeof buildSuborder;
|
|
2027
|
+
declare const order_builder_buildTaxCalculation: typeof buildTaxCalculation;
|
|
2028
|
+
declare const order_builder_buildTaxCalculations: typeof buildTaxCalculations;
|
|
2029
|
+
declare const order_builder_buildZipCodeField: typeof buildZipCodeField;
|
|
2030
|
+
declare const order_builder_genBaseFields: typeof genBaseFields;
|
|
2031
|
+
declare const order_builder_genBaseOrders: typeof genBaseOrders;
|
|
2032
|
+
declare const order_builder_genInjectionDetails: typeof genInjectionDetails;
|
|
2033
|
+
declare const order_builder_genIntegrationMessages: typeof genIntegrationMessages;
|
|
2034
|
+
declare const order_builder_genMetadataShippings: typeof genMetadataShippings;
|
|
2035
|
+
declare const order_builder_genOperatorInformation: typeof genOperatorInformation;
|
|
2036
|
+
declare const order_builder_genOrderDetailShippingCosts: typeof genOrderDetailShippingCosts;
|
|
2037
|
+
declare const order_builder_genOrderDetails: typeof genOrderDetails;
|
|
2038
|
+
declare const order_builder_genOrderPaymentMethods: typeof genOrderPaymentMethods;
|
|
2039
|
+
declare const order_builder_genOrderProductAdditionalInfos: typeof genOrderProductAdditionalInfos;
|
|
2040
|
+
declare const order_builder_genOrderProductAttributes: typeof genOrderProductAttributes;
|
|
2041
|
+
declare const order_builder_genOrderProductImages: typeof genOrderProductImages;
|
|
2042
|
+
declare const order_builder_genOrderProductPriceCategories: typeof genOrderProductPriceCategories;
|
|
2043
|
+
declare const order_builder_genOrderProducts: typeof genOrderProducts;
|
|
2044
|
+
declare const order_builder_genOrderRetries: typeof genOrderRetries;
|
|
2045
|
+
declare const order_builder_genOrderRetryPaymentMethods: typeof genOrderRetryPaymentMethods;
|
|
2046
|
+
declare const order_builder_genOrderShoppingCarts: typeof genOrderShoppingCarts;
|
|
2047
|
+
declare const order_builder_genOrderStepAdditionalInfos: typeof genOrderStepAdditionalInfos;
|
|
2048
|
+
declare const order_builder_genOrderSteps: typeof genOrderSteps;
|
|
2049
|
+
declare const order_builder_genOrderStoreAdditionalInfos: typeof genOrderStoreAdditionalInfos;
|
|
2050
|
+
declare const order_builder_genOrderStoreDeliveries: typeof genOrderStoreDeliveries;
|
|
2051
|
+
declare const order_builder_genOrderStores: typeof genOrderStores;
|
|
2052
|
+
declare const order_builder_genOrderUsers: typeof genOrderUsers;
|
|
2053
|
+
declare const order_builder_genPaymentMethodByOrders: typeof genPaymentMethodByOrders;
|
|
2054
|
+
declare const order_builder_genReference: typeof genReference;
|
|
2055
|
+
declare const order_builder_genSeqId: typeof genSeqId;
|
|
2056
|
+
declare const order_builder_genStatus: typeof genStatus;
|
|
2057
|
+
declare const order_builder_genSuborders: typeof genSuborders;
|
|
2058
|
+
declare const order_builder_genTaxCalculations: typeof genTaxCalculations;
|
|
2059
|
+
declare const order_builder_genZipCodeFields: typeof genZipCodeFields;
|
|
2060
|
+
declare const order_builder_orderStatusOptions: typeof orderStatusOptions;
|
|
2061
|
+
declare const order_builder_paymentStatus: typeof paymentStatus;
|
|
2062
|
+
declare namespace order_builder {
|
|
2063
|
+
export {
|
|
2064
|
+
order_builder_allocationOptions as allocationOptions,
|
|
2065
|
+
order_builder_buildBaseField as buildBaseField,
|
|
2066
|
+
order_builder_buildBaseOrder as buildBaseOrder,
|
|
2067
|
+
order_builder_buildInjectionDetail as buildInjectionDetail,
|
|
2068
|
+
order_builder_buildIntegrationMessage as buildIntegrationMessage,
|
|
2069
|
+
order_builder_buildMetadataShipping as buildMetadataShipping,
|
|
2070
|
+
order_builder_buildOperatorInformation as buildOperatorInformation,
|
|
2071
|
+
order_builder_buildOrderBillProduct as buildOrderBillProduct,
|
|
2072
|
+
order_builder_buildOrderBillProductAdditionalInfo as buildOrderBillProductAdditionalInfo,
|
|
2073
|
+
order_builder_buildOrderBillTotal as buildOrderBillTotal,
|
|
2074
|
+
order_builder_buildOrderDetailShippingCost as buildOrderDetailShippingCost,
|
|
2075
|
+
order_builder_buildOrderDetails as buildOrderDetails,
|
|
2076
|
+
order_builder_buildOrderPaymentMethod as buildOrderPaymentMethod,
|
|
2077
|
+
order_builder_buildOrderProduct as buildOrderProduct,
|
|
2078
|
+
order_builder_buildOrderProductAdditionalInfo as buildOrderProductAdditionalInfo,
|
|
2079
|
+
order_builder_buildOrderProductAttributes as buildOrderProductAttributes,
|
|
2080
|
+
order_builder_buildOrderProductBillTotal as buildOrderProductBillTotal,
|
|
2081
|
+
order_builder_buildOrderProductImage as buildOrderProductImage,
|
|
2082
|
+
order_builder_buildOrderProductPriceCategory as buildOrderProductPriceCategory,
|
|
2083
|
+
order_builder_buildOrderRetry as buildOrderRetry,
|
|
2084
|
+
order_builder_buildOrderRetryPaymentMethod as buildOrderRetryPaymentMethod,
|
|
2085
|
+
order_builder_buildOrderShoppingCart as buildOrderShoppingCart,
|
|
2086
|
+
order_builder_buildOrderStep as buildOrderStep,
|
|
2087
|
+
order_builder_buildOrderStepAdditionalInfo as buildOrderStepAdditionalInfo,
|
|
2088
|
+
order_builder_buildOrderStepAdditionalInfoGroup as buildOrderStepAdditionalInfoGroup,
|
|
2089
|
+
order_builder_buildOrderStore as buildOrderStore,
|
|
2090
|
+
order_builder_buildOrderStoreAdditionalInfo as buildOrderStoreAdditionalInfo,
|
|
2091
|
+
order_builder_buildOrderStoreDelivery as buildOrderStoreDelivery,
|
|
2092
|
+
order_builder_buildOrderUser as buildOrderUser,
|
|
2093
|
+
order_builder_buildPaymentMethodByOrder as buildPaymentMethodByOrder,
|
|
2094
|
+
order_builder_buildStatus as buildStatus,
|
|
2095
|
+
order_builder_buildSuborder as buildSuborder,
|
|
2096
|
+
order_builder_buildTaxCalculation as buildTaxCalculation,
|
|
2097
|
+
order_builder_buildTaxCalculations as buildTaxCalculations,
|
|
2098
|
+
order_builder_buildZipCodeField as buildZipCodeField,
|
|
2099
|
+
order_builder_genBaseFields as genBaseFields,
|
|
2100
|
+
order_builder_genBaseOrders as genBaseOrders,
|
|
2101
|
+
order_builder_genInjectionDetails as genInjectionDetails,
|
|
2102
|
+
order_builder_genIntegrationMessages as genIntegrationMessages,
|
|
2103
|
+
order_builder_genMetadataShippings as genMetadataShippings,
|
|
2104
|
+
order_builder_genOperatorInformation as genOperatorInformation,
|
|
2105
|
+
order_builder_genOrderDetailShippingCosts as genOrderDetailShippingCosts,
|
|
2106
|
+
order_builder_genOrderDetails as genOrderDetails,
|
|
2107
|
+
order_builder_genOrderPaymentMethods as genOrderPaymentMethods,
|
|
2108
|
+
order_builder_genOrderProductAdditionalInfos as genOrderProductAdditionalInfos,
|
|
2109
|
+
order_builder_genOrderProductAttributes as genOrderProductAttributes,
|
|
2110
|
+
order_builder_genOrderProductImages as genOrderProductImages,
|
|
2111
|
+
order_builder_genOrderProductPriceCategories as genOrderProductPriceCategories,
|
|
2112
|
+
order_builder_genOrderProducts as genOrderProducts,
|
|
2113
|
+
order_builder_genOrderRetries as genOrderRetries,
|
|
2114
|
+
order_builder_genOrderRetryPaymentMethods as genOrderRetryPaymentMethods,
|
|
2115
|
+
order_builder_genOrderShoppingCarts as genOrderShoppingCarts,
|
|
2116
|
+
order_builder_genOrderStepAdditionalInfos as genOrderStepAdditionalInfos,
|
|
2117
|
+
order_builder_genOrderSteps as genOrderSteps,
|
|
2118
|
+
order_builder_genOrderStoreAdditionalInfos as genOrderStoreAdditionalInfos,
|
|
2119
|
+
order_builder_genOrderStoreDeliveries as genOrderStoreDeliveries,
|
|
2120
|
+
order_builder_genOrderStores as genOrderStores,
|
|
2121
|
+
order_builder_genOrderUsers as genOrderUsers,
|
|
2122
|
+
order_builder_genPaymentMethodByOrders as genPaymentMethodByOrders,
|
|
2123
|
+
order_builder_genReference as genReference,
|
|
2124
|
+
order_builder_genSeqId as genSeqId,
|
|
2125
|
+
order_builder_genStatus as genStatus,
|
|
2126
|
+
order_builder_genSuborders as genSuborders,
|
|
2127
|
+
order_builder_genTaxCalculations as genTaxCalculations,
|
|
2128
|
+
order_builder_genZipCodeFields as genZipCodeFields,
|
|
2129
|
+
order_builder_orderStatusOptions as orderStatusOptions,
|
|
2130
|
+
order_builder_paymentStatus as paymentStatus,
|
|
2131
|
+
};
|
|
2132
|
+
}
|
|
2133
|
+
|
|
2134
|
+
/**
|
|
2135
|
+
* Generates BasePaymentMethod object with random data.
|
|
2136
|
+
*
|
|
2137
|
+
* @since 0.5.15
|
|
2138
|
+
* @param {Partial<BasePaymentMethod>} overrides Properties to override
|
|
2139
|
+
* a {@link BasePaymentMethod}
|
|
2140
|
+
* @returns {BasePaymentMethod} A {@link BasePaymentMethod} object
|
|
2141
|
+
*/
|
|
2142
|
+
declare const buildBasePaymentMethod: (overrides?: Partial<BasePaymentMethod>) => BasePaymentMethod;
|
|
2143
|
+
/**
|
|
2144
|
+
* Generates a list of BasePaymentMethod objects with random data.
|
|
2145
|
+
*
|
|
2146
|
+
* @since 0.5.15
|
|
2147
|
+
* @param {number} quantity The number of objects to be generated
|
|
2148
|
+
* @returns {BasePaymentMethod[]} An array of BasePaymentMethod objects,
|
|
2149
|
+
* see {@link BasePaymentMethod}
|
|
2150
|
+
*/
|
|
2151
|
+
declare const genBasePaymentMethods: (quantity?: number) => BasePaymentMethod[];
|
|
2152
|
+
/**
|
|
2153
|
+
* Generates PaymentMethod object with random data.
|
|
2154
|
+
*
|
|
2155
|
+
* @since 0.5.15
|
|
2156
|
+
* @param {Partial<PaymentMethod>} overrides Properties to override
|
|
2157
|
+
* a {@link PaymentMethod}
|
|
2158
|
+
* @returns {PaymentMethod} A {@link PaymentMethod} object
|
|
2159
|
+
*/
|
|
2160
|
+
declare const buildPaymentMethod: (overrides?: Partial<PaymentMethod>) => PaymentMethod;
|
|
2161
|
+
/**
|
|
2162
|
+
* Generates a list of PaymentMethod objects with random data.
|
|
2163
|
+
*
|
|
2164
|
+
* @since 0.5.15
|
|
2165
|
+
* @param {number} quantity The number of objects to be generated
|
|
2166
|
+
* @returns {PaymentMethod[]} An array of PaymentMethod objects,
|
|
2167
|
+
* see {@link PaymentMethod}
|
|
2168
|
+
*/
|
|
2169
|
+
declare const genPaymentMethods: (quantity?: number) => PaymentMethod[];
|
|
2170
|
+
/**
|
|
2171
|
+
* Generates PaymentProvider object with random data.
|
|
2172
|
+
*
|
|
2173
|
+
* @since 0.5.15
|
|
2174
|
+
* @param {Partial<PaymentProvider>} overrides Properties to override
|
|
2175
|
+
* a {@link PaymentProvider}
|
|
2176
|
+
* @returns {PaymentProvider} A {@link PaymentProvider} object
|
|
2177
|
+
*/
|
|
2178
|
+
declare const buildPaymentProvider: (overrides?: Partial<PaymentProvider>) => PaymentProvider;
|
|
2179
|
+
/**
|
|
2180
|
+
* Generates a list of PaymentProvider objects with random data.
|
|
2181
|
+
*
|
|
2182
|
+
* @since 0.5.15
|
|
2183
|
+
* @param {number} quantity The number of objects to be generated
|
|
2184
|
+
* @returns {PaymentProvider[]} An array of credit card brands,
|
|
2185
|
+
* see {@link PaymentProvider}
|
|
2186
|
+
*/
|
|
2187
|
+
declare const genPaymentProviders: (quantity?: number) => PaymentProvider[];
|
|
2188
|
+
/**
|
|
2189
|
+
* Generates CreditCardMapping object with random data.
|
|
2190
|
+
*
|
|
2191
|
+
* @since 0.5.15
|
|
2192
|
+
* @param {Partial<CreditCardMapping>} overrides Properties to override
|
|
2193
|
+
* a {@link CreditCardMapping}
|
|
2194
|
+
* @returns {CreditCardMapping} A {@link CreditCardMapping} object
|
|
2195
|
+
*/
|
|
2196
|
+
declare const buildCreditCardMapping: (overrides?: Partial<CreditCardMapping>) => CreditCardMapping;
|
|
2197
|
+
/**
|
|
2198
|
+
* Generates a list of CreditCardMapping objects with random data.
|
|
2199
|
+
*
|
|
2200
|
+
* @since 0.5.15
|
|
2201
|
+
* @param {number} quantity The number of objects to be generated
|
|
2202
|
+
* @returns {CreditCardMapping[]} An array of credit card mappings,
|
|
2203
|
+
* see {@link CreditCardMapping}
|
|
2204
|
+
*/
|
|
2205
|
+
declare const genCreditCardMappings: (quantity?: number) => CreditCardMapping[];
|
|
2206
|
+
/**
|
|
2207
|
+
* Generates CardInscription object with random data.
|
|
2208
|
+
*
|
|
2209
|
+
* @since 0.5.15
|
|
2210
|
+
* @param {Partial<CardInscription>} overrides Properties to override
|
|
2211
|
+
* a {@link CardInscription}
|
|
2212
|
+
* @returns {CardInscription} A {@link CardInscription} object
|
|
2213
|
+
*/
|
|
2214
|
+
declare const buildCardInscription: (overrides?: Partial<CardInscription>) => CardInscription;
|
|
2215
|
+
/**
|
|
2216
|
+
* Generates a list of CardInscription objects with random data.
|
|
2217
|
+
*
|
|
2218
|
+
* @since 0.5.15
|
|
2219
|
+
* @param {number} quantity The number of objects to be generated
|
|
2220
|
+
* @returns {CardInscription[]} An array of card inscriptions,
|
|
2221
|
+
* see {@link CardInscription}
|
|
2222
|
+
*/
|
|
2223
|
+
declare const genCardInscriptions: (quantity?: number) => CardInscription[];
|
|
2224
|
+
|
|
2225
|
+
declare const payment_builder_buildBasePaymentMethod: typeof buildBasePaymentMethod;
|
|
2226
|
+
declare const payment_builder_buildCardInscription: typeof buildCardInscription;
|
|
2227
|
+
declare const payment_builder_buildCreditCardMapping: typeof buildCreditCardMapping;
|
|
2228
|
+
declare const payment_builder_buildPaymentMethod: typeof buildPaymentMethod;
|
|
2229
|
+
declare const payment_builder_buildPaymentProvider: typeof buildPaymentProvider;
|
|
2230
|
+
declare const payment_builder_genBasePaymentMethods: typeof genBasePaymentMethods;
|
|
2231
|
+
declare const payment_builder_genCardInscriptions: typeof genCardInscriptions;
|
|
2232
|
+
declare const payment_builder_genCreditCardMappings: typeof genCreditCardMappings;
|
|
2233
|
+
declare const payment_builder_genPaymentMethods: typeof genPaymentMethods;
|
|
2234
|
+
declare const payment_builder_genPaymentProviders: typeof genPaymentProviders;
|
|
2235
|
+
declare namespace payment_builder {
|
|
2236
|
+
export {
|
|
2237
|
+
payment_builder_buildBasePaymentMethod as buildBasePaymentMethod,
|
|
2238
|
+
payment_builder_buildCardInscription as buildCardInscription,
|
|
2239
|
+
payment_builder_buildCreditCardMapping as buildCreditCardMapping,
|
|
2240
|
+
payment_builder_buildPaymentMethod as buildPaymentMethod,
|
|
2241
|
+
payment_builder_buildPaymentProvider as buildPaymentProvider,
|
|
2242
|
+
payment_builder_genBasePaymentMethods as genBasePaymentMethods,
|
|
2243
|
+
payment_builder_genCardInscriptions as genCardInscriptions,
|
|
2244
|
+
payment_builder_genCreditCardMappings as genCreditCardMappings,
|
|
2245
|
+
payment_builder_genPaymentMethods as genPaymentMethods,
|
|
2246
|
+
payment_builder_genPaymentProviders as genPaymentProviders,
|
|
2247
|
+
};
|
|
2248
|
+
}
|
|
2249
|
+
|
|
2250
|
+
/**
|
|
2251
|
+
* Generates PriceCategoryTax object with random data.
|
|
2252
|
+
*
|
|
2253
|
+
* @since 0.1.0
|
|
2254
|
+
* @param {Partial<PriceCategoryTax>} overrides Properties to override
|
|
2255
|
+
* a {@link PriceCategoryTax}
|
|
2256
|
+
* @returns {PriceCategoryTax} A {@link PriceCategoryTax} object
|
|
2257
|
+
*/
|
|
2258
|
+
declare const buildPriceCategoryTax: (overrides?: Partial<PriceCategoryTax>) => PriceCategoryTax;
|
|
2259
|
+
/**
|
|
2260
|
+
* Generates a list of PriceCategoryTax objects with random data.
|
|
2261
|
+
*
|
|
2262
|
+
* @since 0.1.0
|
|
2263
|
+
* @param {number} quantity The number of objects to be generated
|
|
2264
|
+
* @returns {PriceCategoryTax[]} An array of price category taxes objects,
|
|
2265
|
+
* see {@link PriceCategoryTax}
|
|
2266
|
+
*/
|
|
2267
|
+
declare const genPriceCategoryTaxes: (quantity?: number) => PriceCategoryTax[];
|
|
2268
|
+
/**
|
|
2269
|
+
* Generates PriceCategory object with random data.
|
|
2270
|
+
*
|
|
2271
|
+
* @since 0.1.0
|
|
2272
|
+
* @param {Partial<PriceCategory>} overrides Properties to override
|
|
2273
|
+
* a {@link PriceCategory}
|
|
2274
|
+
* @returns {PriceCategory} A {@link PriceCategory} object
|
|
2275
|
+
*/
|
|
2276
|
+
declare const buildPriceCategory: (overrides?: Partial<PriceCategory>) => PriceCategory;
|
|
2277
|
+
/**
|
|
2278
|
+
* Generates BaseProduct object with random data.
|
|
2279
|
+
*
|
|
2280
|
+
* @template T Product additional info
|
|
2281
|
+
* @since 0.1.0
|
|
2282
|
+
* @param {Partial<BaseProduct>} overrides Properties to override
|
|
2283
|
+
* a {@link BaseProduct}
|
|
2284
|
+
* @returns {BaseProduct} A {@link BaseProduct} object
|
|
2285
|
+
*/
|
|
2286
|
+
declare const buildBaseProduct: <T extends AdditionalInfo = AdditionalInfo>(overrides?: Partial<BaseProduct<T>>) => BaseProduct<T>;
|
|
2287
|
+
/**
|
|
2288
|
+
* Generates a list of BaseProduct objects with random data.
|
|
2289
|
+
*
|
|
2290
|
+
* @template T Product additional info
|
|
2291
|
+
* @template U Product additional info
|
|
2292
|
+
* @since 0.1.0
|
|
2293
|
+
* @param {number} quantity The number of objects to be generated
|
|
2294
|
+
* @returns {BaseProduct[]} An array of BaseProduct objects,
|
|
2295
|
+
* see {@link BaseProduct}
|
|
2296
|
+
*/
|
|
2297
|
+
declare const genBaseProducts: <T extends AdditionalInfo = AdditionalInfo>(quantity?: number) => BaseProduct<T>[];
|
|
2298
|
+
/**
|
|
2299
|
+
* Render type for product answers
|
|
2300
|
+
*
|
|
2301
|
+
* @since 0.1.0
|
|
2302
|
+
*/
|
|
2303
|
+
declare const MODIFIER_TYPES: string[];
|
|
2304
|
+
/**
|
|
2305
|
+
* Generates ProductAnswer object with random data.
|
|
2306
|
+
*
|
|
2307
|
+
* @template T Product additional info
|
|
2308
|
+
* @since 0.1.0
|
|
2309
|
+
* @param {Partial<ProductAnswer>} overrides Properties to override
|
|
2310
|
+
* a {@link ProductAnswer}
|
|
2311
|
+
* @param {number} loop The quantity of loops the function will be run
|
|
2312
|
+
* @returns {ProductAnswer} A {@link ProductAnswer} object
|
|
2313
|
+
*/
|
|
2314
|
+
declare const buildProductAnswer: <T extends AdditionalInfo = AdditionalInfo>(overrides?: Partial<ProductAnswer<T>>, loop?: number) => ProductAnswer<T>;
|
|
2315
|
+
/**
|
|
2316
|
+
* Generates a list of ProductAnswer objects with random data.
|
|
2317
|
+
*
|
|
2318
|
+
* @template T Product answers additional info
|
|
2319
|
+
* @since 0.1.0
|
|
2320
|
+
* @param {number} quantity The number of objects to be generated
|
|
2321
|
+
* @param {number} loop The quantity of loops the function will be run
|
|
2322
|
+
* @returns {ProductAnswer[]} An array of ProductAnswer objects,
|
|
2323
|
+
* see {@link ProductAnswer}
|
|
2324
|
+
*/
|
|
2325
|
+
declare const genProductAnswers: <T extends AdditionalInfo = AdditionalInfo>(quantity?: number, loop?: number) => ProductAnswer<T>[];
|
|
2326
|
+
/**
|
|
2327
|
+
* Generates ProductQuestion object with random data.
|
|
2328
|
+
*
|
|
2329
|
+
* @template T Product answers additional info
|
|
2330
|
+
* @since 0.1.0
|
|
2331
|
+
* @param {Partial<ProductQuestion>} overrides Properties to override
|
|
2332
|
+
* a {@link ProductQuestion}
|
|
2333
|
+
* @param {number} loop The quantity of loops the function will be run
|
|
2334
|
+
* @returns {ProductQuestion} A {@link ProductQuestion} object
|
|
2335
|
+
*/
|
|
2336
|
+
declare const buildProductQuestion: <T extends AdditionalInfo = AdditionalInfo>(overrides?: Partial<ProductQuestion<T>>, loop?: number) => ProductQuestion<T>;
|
|
2337
|
+
/**
|
|
2338
|
+
* Generates a list of ProductQuestion objects with random data.
|
|
2339
|
+
*
|
|
2340
|
+
* @template T Product answers additional info
|
|
2341
|
+
* @since 0.1.0
|
|
2342
|
+
* @param {number} quantity The number of objects to be generated
|
|
2343
|
+
* @param {number} loop The quantity of loops the function will be run
|
|
2344
|
+
* @returns {ProductQuestion[]} An array of ProductQuestion objects,
|
|
2345
|
+
* see {@link ProductQuestion}
|
|
2346
|
+
*/
|
|
2347
|
+
declare const genProductQuestions: <T extends AdditionalInfo = AdditionalInfo>(quantity?: number, loop?: number) => ProductQuestion<T>[];
|
|
2348
|
+
/**
|
|
2349
|
+
* Generates ProductDetails object with random data.
|
|
2350
|
+
*
|
|
2351
|
+
* @template T Product additional info
|
|
2352
|
+
* @since 0.1.0
|
|
2353
|
+
* @param {Partial<ProductDetails>} overrides Properties to override
|
|
2354
|
+
* a {@link ProductDetails}
|
|
2355
|
+
* @returns {ProductDetails} A {@link ProductDetails} object
|
|
2356
|
+
*/
|
|
2357
|
+
declare const buildProductDetails: <T extends AdditionalInfo = AdditionalInfo, U extends AdditionalInfo = AdditionalInfo>(overrides?: Partial<ProductDetails<T, U>>) => ProductDetails<T, U>;
|
|
2358
|
+
/**
|
|
2359
|
+
* Generates a list of ProductDetails objects with random data.
|
|
2360
|
+
*
|
|
2361
|
+
* @template T Products additional info
|
|
2362
|
+
* @template U Categories additional info
|
|
2363
|
+
* @since 0.1.0
|
|
2364
|
+
* @param {number} quantity The number of objects to be generated
|
|
2365
|
+
* @returns {ProductDetails[]} An array of ProductDetails objects,
|
|
2366
|
+
* see {@link ProductDetails}
|
|
2367
|
+
*/
|
|
2368
|
+
declare const genProductDetails: <T extends AdditionalInfo = AdditionalInfo, U extends AdditionalInfo = AdditionalInfo>(quantity?: number) => ProductDetails<T, U>[];
|
|
2369
|
+
/**
|
|
2370
|
+
* Generates CartProductAnswer object with random data.
|
|
2371
|
+
*
|
|
2372
|
+
* @template T Product answer additional info
|
|
2373
|
+
* @since 0.1.0
|
|
2374
|
+
* @param questionId The question id associated with the answer
|
|
2375
|
+
* @param {Partial<CartProductAnswer>} overrides Properties to override
|
|
2376
|
+
* a {@link CartProductAnswer}
|
|
2377
|
+
* @returns {CartProductAnswer} A {@link CartProductAnswer} object
|
|
2378
|
+
*/
|
|
2379
|
+
declare const buildCartProductAnswer: <T extends AdditionalInfo = AdditionalInfo>(questionId: string, overrides?: Partial<CartProductAnswer<T>>) => CartProductAnswer<T>;
|
|
2380
|
+
/**
|
|
2381
|
+
* Generates a list of CartProductAnswer objects with random data.
|
|
2382
|
+
*
|
|
2383
|
+
* @template T Product answers additional info
|
|
2384
|
+
* @since 0.1.0
|
|
2385
|
+
* @param {number} quantity The number of objects to be generated
|
|
2386
|
+
* @returns {CartProductAnswer[]} An array of CartProductAnswer objects,
|
|
2387
|
+
* see {@link CartProductAnswer}
|
|
2388
|
+
*/
|
|
2389
|
+
declare const genCartProductAnswers: <T extends AdditionalInfo = AdditionalInfo>(quantity?: number) => CartProductAnswer<T>[];
|
|
2390
|
+
/**
|
|
2391
|
+
* Generates CartProductQuestion object with random data.
|
|
2392
|
+
*
|
|
2393
|
+
* @template T Product answers additional info
|
|
2394
|
+
* @since 0.1.0
|
|
2395
|
+
* @param {Partial<CartProductQuestion>} overrides Properties to override
|
|
2396
|
+
* a {@link CartProductQuestion}
|
|
2397
|
+
* @returns {CartProductQuestion} A {@link CartProductQuestion} object
|
|
2398
|
+
*/
|
|
2399
|
+
declare const buildCartProductQuestion: <T extends AdditionalInfo = AdditionalInfo>(overrides?: Partial<CartProductQuestion<T>>) => CartProductQuestion<T>;
|
|
2400
|
+
/**
|
|
2401
|
+
* Generates a list of CartProductQuestion objects with random data.
|
|
2402
|
+
*
|
|
2403
|
+
* @template T Product answers additional info
|
|
2404
|
+
* @since 0.1.0
|
|
2405
|
+
* @param {number} quantity The number of objects to be generated
|
|
2406
|
+
* @returns {CartProductQuestion[]} An array of CartProductQuestion objects,
|
|
2407
|
+
* see {@link CartProductQuestion}
|
|
2408
|
+
*/
|
|
2409
|
+
declare const genCartProductQuestions: <T extends AdditionalInfo = AdditionalInfo>(quantity?: number) => CartProductQuestion<T>[];
|
|
2410
|
+
/**
|
|
2411
|
+
* Generates CartProduct object with random data.
|
|
2412
|
+
*
|
|
2413
|
+
* @template T Product additional info
|
|
2414
|
+
* @template U Categories additional info
|
|
2415
|
+
* @since 0.1.0
|
|
2416
|
+
* @param {Partial<CartProduct>} overrides Properties to override
|
|
2417
|
+
* a {@link CartProduct}
|
|
2418
|
+
* @returns {CartProduct} A {@link CartProduct} object
|
|
2419
|
+
*/
|
|
2420
|
+
declare const buildCartProduct: <T extends AdditionalInfo = AdditionalInfo, U extends AdditionalInfo = AdditionalInfo>(overrides?: Partial<CartProduct<T, U>>) => CartProduct<T, U>;
|
|
2421
|
+
/**
|
|
2422
|
+
* Generates a list of CartProduct objects with random data.
|
|
2423
|
+
*
|
|
2424
|
+
* @template T Products additional info
|
|
2425
|
+
* @template U Categories additional info
|
|
2426
|
+
* @since 0.1.0
|
|
2427
|
+
* @param {number} quantity The number of objects to be generated
|
|
2428
|
+
* @returns {CartProduct[]} An array of CartProduct objects,
|
|
2429
|
+
* see {@link CartProduct}
|
|
2430
|
+
*/
|
|
2431
|
+
declare const genCartProducts: <T extends AdditionalInfo = AdditionalInfo, U extends AdditionalInfo = AdditionalInfo>(quantity?: number) => CartProduct<T, U>[];
|
|
2432
|
+
|
|
2433
|
+
declare const product_builder_MODIFIER_TYPES: typeof MODIFIER_TYPES;
|
|
2434
|
+
declare const product_builder_buildBaseProduct: typeof buildBaseProduct;
|
|
2435
|
+
declare const product_builder_buildCartProduct: typeof buildCartProduct;
|
|
2436
|
+
declare const product_builder_buildCartProductAnswer: typeof buildCartProductAnswer;
|
|
2437
|
+
declare const product_builder_buildCartProductQuestion: typeof buildCartProductQuestion;
|
|
2438
|
+
declare const product_builder_buildPriceCategory: typeof buildPriceCategory;
|
|
2439
|
+
declare const product_builder_buildPriceCategoryTax: typeof buildPriceCategoryTax;
|
|
2440
|
+
declare const product_builder_buildProductAnswer: typeof buildProductAnswer;
|
|
2441
|
+
declare const product_builder_buildProductDetails: typeof buildProductDetails;
|
|
2442
|
+
declare const product_builder_buildProductQuestion: typeof buildProductQuestion;
|
|
2443
|
+
declare const product_builder_genBaseProducts: typeof genBaseProducts;
|
|
2444
|
+
declare const product_builder_genCartProductAnswers: typeof genCartProductAnswers;
|
|
2445
|
+
declare const product_builder_genCartProductQuestions: typeof genCartProductQuestions;
|
|
2446
|
+
declare const product_builder_genCartProducts: typeof genCartProducts;
|
|
2447
|
+
declare const product_builder_genPriceCategoryTaxes: typeof genPriceCategoryTaxes;
|
|
2448
|
+
declare const product_builder_genProductAnswers: typeof genProductAnswers;
|
|
2449
|
+
declare const product_builder_genProductDetails: typeof genProductDetails;
|
|
2450
|
+
declare const product_builder_genProductQuestions: typeof genProductQuestions;
|
|
2451
|
+
declare namespace product_builder {
|
|
2452
|
+
export {
|
|
2453
|
+
product_builder_MODIFIER_TYPES as MODIFIER_TYPES,
|
|
2454
|
+
product_builder_buildBaseProduct as buildBaseProduct,
|
|
2455
|
+
product_builder_buildCartProduct as buildCartProduct,
|
|
2456
|
+
product_builder_buildCartProductAnswer as buildCartProductAnswer,
|
|
2457
|
+
product_builder_buildCartProductQuestion as buildCartProductQuestion,
|
|
2458
|
+
product_builder_buildPriceCategory as buildPriceCategory,
|
|
2459
|
+
product_builder_buildPriceCategoryTax as buildPriceCategoryTax,
|
|
2460
|
+
product_builder_buildProductAnswer as buildProductAnswer,
|
|
2461
|
+
product_builder_buildProductDetails as buildProductDetails,
|
|
2462
|
+
product_builder_buildProductQuestion as buildProductQuestion,
|
|
2463
|
+
product_builder_genBaseProducts as genBaseProducts,
|
|
2464
|
+
product_builder_genCartProductAnswers as genCartProductAnswers,
|
|
2465
|
+
product_builder_genCartProductQuestions as genCartProductQuestions,
|
|
2466
|
+
product_builder_genCartProducts as genCartProducts,
|
|
2467
|
+
product_builder_genPriceCategoryTaxes as genPriceCategoryTaxes,
|
|
2468
|
+
product_builder_genProductAnswers as genProductAnswers,
|
|
2469
|
+
product_builder_genProductDetails as genProductDetails,
|
|
2470
|
+
product_builder_genProductQuestions as genProductQuestions,
|
|
2471
|
+
};
|
|
2472
|
+
}
|
|
2473
|
+
|
|
2474
|
+
/**
|
|
2475
|
+
* Generates Settings object with random data.
|
|
2476
|
+
*
|
|
2477
|
+
* @since 0.5.15
|
|
2478
|
+
* @param {Partial<Settings>} overrides Properties to override
|
|
2479
|
+
* a {@link Settings}
|
|
2480
|
+
* @returns {Settings} A {@link Settings} object
|
|
2481
|
+
*/
|
|
2482
|
+
declare const buildSettings: (overrides?: Partial<Settings>) => Settings;
|
|
2483
|
+
/**
|
|
2484
|
+
* Generates a list of Settings objects with random data.
|
|
2485
|
+
*
|
|
2486
|
+
* @since 0.5.15
|
|
2487
|
+
* @param {number} quantity The number of objects to be generated
|
|
2488
|
+
* @returns {Settings[]} An array of Settings objects,
|
|
2489
|
+
* see {@link Settings}
|
|
2490
|
+
*/
|
|
2491
|
+
declare const genSettings: (quantity?: number) => Settings[];
|
|
2492
|
+
/**
|
|
2493
|
+
* Generates UserSettings object with random data.
|
|
2494
|
+
*
|
|
2495
|
+
* @since 0.5.15
|
|
2496
|
+
* @param {Partial<UserSettings>} overrides Properties to override
|
|
2497
|
+
* a {@link UserSettings}
|
|
2498
|
+
* @returns {UserSettings} A {@link UserSettings} object
|
|
2499
|
+
*/
|
|
2500
|
+
declare const buildUserSettings: (overrides?: Partial<UserSettings>) => UserSettings;
|
|
2501
|
+
/**
|
|
2502
|
+
* Generates a list of UserSettings objects with random data.
|
|
2503
|
+
*
|
|
2504
|
+
* @since 0.5.15
|
|
2505
|
+
* @param {number} quantity The number of objects to be generated
|
|
2506
|
+
* @returns {UserSettings[]} An array of UserSettings objects,
|
|
2507
|
+
* see {@link UserSettings}
|
|
2508
|
+
*/
|
|
2509
|
+
declare const genUserSettings: (quantity?: number) => UserSettings[];
|
|
2510
|
+
|
|
2511
|
+
declare const settings_builder_buildSettings: typeof buildSettings;
|
|
2512
|
+
declare const settings_builder_buildUserSettings: typeof buildUserSettings;
|
|
2513
|
+
declare const settings_builder_genSettings: typeof genSettings;
|
|
2514
|
+
declare const settings_builder_genUserSettings: typeof genUserSettings;
|
|
2515
|
+
declare namespace settings_builder {
|
|
2516
|
+
export {
|
|
2517
|
+
settings_builder_buildSettings as buildSettings,
|
|
2518
|
+
settings_builder_buildUserSettings as buildUserSettings,
|
|
2519
|
+
settings_builder_genSettings as genSettings,
|
|
2520
|
+
settings_builder_genUserSettings as genUserSettings,
|
|
2521
|
+
};
|
|
2522
|
+
}
|
|
2523
|
+
|
|
2524
|
+
/**
|
|
2525
|
+
* Generates a random street name.
|
|
2526
|
+
*
|
|
2527
|
+
* @since 0.1.0
|
|
2528
|
+
*/
|
|
2529
|
+
declare const genStreetName: () => string;
|
|
2530
|
+
/**
|
|
2531
|
+
* Generates a random street number.
|
|
2532
|
+
*
|
|
2533
|
+
* @since 0.1.0
|
|
2534
|
+
*/
|
|
2535
|
+
declare const genStreetNumber: (format?: string | undefined) => string;
|
|
2536
|
+
/**
|
|
2537
|
+
* Generates a random latitude.
|
|
2538
|
+
*
|
|
2539
|
+
* @since 0.1.0
|
|
2540
|
+
*/
|
|
2541
|
+
declare const genLatitude: (max?: number | undefined, min?: number | undefined, precision?: number | undefined) => string;
|
|
2542
|
+
/**
|
|
2543
|
+
* Generates a random longitude.
|
|
2544
|
+
*
|
|
2545
|
+
* @since 0.1.0
|
|
2546
|
+
*/
|
|
2547
|
+
declare const genLongitude: (max?: number | undefined, min?: number | undefined, precision?: number | undefined) => string;
|
|
2548
|
+
/**
|
|
2549
|
+
* Generates Field object with random data.
|
|
2550
|
+
*
|
|
2551
|
+
* @since 0.1.0
|
|
2552
|
+
* @param {Partial<Field>} overrides Properties to override a {@link Field}
|
|
2553
|
+
* @returns {Field} A {@link Field} object
|
|
2554
|
+
*/
|
|
2555
|
+
declare const buildField: (overrides?: Partial<Field>) => Field;
|
|
2556
|
+
/**
|
|
2557
|
+
* Generates a list of Field objects with random data.
|
|
2558
|
+
*
|
|
2559
|
+
* @since 0.1.0
|
|
2560
|
+
* @param {number} quantity The number of objects to be generated
|
|
2561
|
+
* @returns {Field[]} A list of {@link Field} objects
|
|
2562
|
+
*/
|
|
2563
|
+
declare const genFields: (quantity?: number) => Field[];
|
|
2564
|
+
/**
|
|
2565
|
+
* Generates Rule object with random data.
|
|
2566
|
+
*
|
|
2567
|
+
* @since 0.1.0
|
|
2568
|
+
* @param {Partial<Rule>} overrides Properties to override a {@link Rule}
|
|
2569
|
+
* @returns {Rule} A {@link Rule} object
|
|
2570
|
+
*/
|
|
2571
|
+
declare const buildRule: (overrides?: Partial<Rule>) => Rule;
|
|
2572
|
+
/**
|
|
2573
|
+
* Generates Message object with random data.
|
|
2574
|
+
*
|
|
2575
|
+
* @since 0.1.0
|
|
2576
|
+
* @param {Partial<Message>} overrides Properties to override a {@link Message}
|
|
2577
|
+
* @returns {Message} A {@link Message} object
|
|
2578
|
+
*/
|
|
2579
|
+
declare const buildMessage: (overrides?: Partial<Message>) => Message;
|
|
2580
|
+
/**
|
|
2581
|
+
* Generates a list of Rules objects with random data.
|
|
2582
|
+
*
|
|
2583
|
+
* @since 0.1.0
|
|
2584
|
+
* @param {number} quantity The number of objects to be generated
|
|
2585
|
+
* @returns {Rule[]} A list of {@link Rule} objects
|
|
2586
|
+
*/
|
|
2587
|
+
declare const genRules: (quantity?: number) => Rule[];
|
|
2588
|
+
/**
|
|
2589
|
+
* Generates a list of Messages objects with random data.
|
|
2590
|
+
*
|
|
2591
|
+
* @since 0.1.0
|
|
2592
|
+
* @param {number} quantity The number of objects to be generated
|
|
2593
|
+
* @returns {Message[]} A list of {@link Message} objects
|
|
2594
|
+
*/
|
|
2595
|
+
declare const genMessages: (quantity?: number) => Message[];
|
|
2596
|
+
/**
|
|
2597
|
+
* Generates LivingPlace object with random data.
|
|
2598
|
+
*
|
|
2599
|
+
* @since 0.1.0
|
|
2600
|
+
* @param {Partial<LivingPlace>} overrides Properties to override
|
|
2601
|
+
* a {@link LivingPlace}
|
|
2602
|
+
* @returns {LivingPlace} A {@link LivingPlace} object
|
|
2603
|
+
*/
|
|
2604
|
+
declare const buildLivingPlace: (overrides?: Partial<LivingPlace>) => LivingPlace;
|
|
2605
|
+
/**
|
|
2606
|
+
* Generates a list of LivingPlaces objects with random data.
|
|
2607
|
+
*
|
|
2608
|
+
* @since 0.1.0
|
|
2609
|
+
* @param {number} quantity The number of objects to be generated
|
|
2610
|
+
* @returns {LivingPlace[]} A list of {@link LivingPlace} objects
|
|
2611
|
+
*/
|
|
2612
|
+
declare const genLivingPlaces: (quantity?: number) => LivingPlace[];
|
|
2613
|
+
/**
|
|
2614
|
+
* Generates ShippingAddress object with random data.
|
|
2615
|
+
*
|
|
2616
|
+
* @template T Shipping address additional info
|
|
2617
|
+
* @since 0.1.0
|
|
2618
|
+
* @param {Partial<ShippingAddress>} overrides Properties to override
|
|
2619
|
+
* a {@link ShippingAddress}
|
|
2620
|
+
* @returns {ShippingAddress} A {@link ShippingAddress} object
|
|
2621
|
+
*/
|
|
2622
|
+
declare const buildShippingAddress: <T extends AdditionalInfo = AdditionalInfo>(overrides?: Partial<ShippingAddress<T>>) => ShippingAddress<T>;
|
|
2623
|
+
/**
|
|
2624
|
+
* Generates a list of ShippingAddresses objects with random data.
|
|
2625
|
+
*
|
|
2626
|
+
* @template T Shipping addresses additional info
|
|
2627
|
+
* @since 0.1.0
|
|
2628
|
+
* @param {number} quantity The number of objects to be generated
|
|
2629
|
+
* @returns {ShippingAddress[]} A list of {@link ShippingAddress} objects
|
|
2630
|
+
*/
|
|
2631
|
+
declare const genShippingAddress: <T extends AdditionalInfo = AdditionalInfo>(quantity?: number) => ShippingAddress<T>[];
|
|
2632
|
+
|
|
2633
|
+
declare const shippingAddress_builder_buildField: typeof buildField;
|
|
2634
|
+
declare const shippingAddress_builder_buildLivingPlace: typeof buildLivingPlace;
|
|
2635
|
+
declare const shippingAddress_builder_buildMessage: typeof buildMessage;
|
|
2636
|
+
declare const shippingAddress_builder_buildRule: typeof buildRule;
|
|
2637
|
+
declare const shippingAddress_builder_buildShippingAddress: typeof buildShippingAddress;
|
|
2638
|
+
declare const shippingAddress_builder_genFields: typeof genFields;
|
|
2639
|
+
declare const shippingAddress_builder_genLatitude: typeof genLatitude;
|
|
2640
|
+
declare const shippingAddress_builder_genLivingPlaces: typeof genLivingPlaces;
|
|
2641
|
+
declare const shippingAddress_builder_genLongitude: typeof genLongitude;
|
|
2642
|
+
declare const shippingAddress_builder_genMessages: typeof genMessages;
|
|
2643
|
+
declare const shippingAddress_builder_genRules: typeof genRules;
|
|
2644
|
+
declare const shippingAddress_builder_genShippingAddress: typeof genShippingAddress;
|
|
2645
|
+
declare const shippingAddress_builder_genStreetName: typeof genStreetName;
|
|
2646
|
+
declare const shippingAddress_builder_genStreetNumber: typeof genStreetNumber;
|
|
2647
|
+
declare namespace shippingAddress_builder {
|
|
2648
|
+
export {
|
|
2649
|
+
shippingAddress_builder_buildField as buildField,
|
|
2650
|
+
shippingAddress_builder_buildLivingPlace as buildLivingPlace,
|
|
2651
|
+
shippingAddress_builder_buildMessage as buildMessage,
|
|
2652
|
+
shippingAddress_builder_buildRule as buildRule,
|
|
2653
|
+
shippingAddress_builder_buildShippingAddress as buildShippingAddress,
|
|
2654
|
+
shippingAddress_builder_genFields as genFields,
|
|
2655
|
+
shippingAddress_builder_genLatitude as genLatitude,
|
|
2656
|
+
shippingAddress_builder_genLivingPlaces as genLivingPlaces,
|
|
2657
|
+
shippingAddress_builder_genLongitude as genLongitude,
|
|
2658
|
+
shippingAddress_builder_genMessages as genMessages,
|
|
2659
|
+
shippingAddress_builder_genRules as genRules,
|
|
2660
|
+
shippingAddress_builder_genShippingAddress as genShippingAddress,
|
|
2661
|
+
shippingAddress_builder_genStreetName as genStreetName,
|
|
2662
|
+
shippingAddress_builder_genStreetNumber as genStreetNumber,
|
|
2663
|
+
};
|
|
2664
|
+
}
|
|
2665
|
+
|
|
2666
|
+
/**
|
|
2667
|
+
* Generates BillTotalCategory object with random data.
|
|
2668
|
+
*
|
|
2669
|
+
* @since 0.1.0
|
|
2670
|
+
* @param {Partial<BillTotalCategory>} overrides Properties to override
|
|
2671
|
+
* a {@link BillTotalCategory}
|
|
2672
|
+
* @returns {BillTotalCategory} A {@link BillTotalCategory} object
|
|
2673
|
+
*/
|
|
2674
|
+
declare const buildBillTotalNormalCategory: (overrides?: Partial<BillTotalCategory>) => BillTotalCategory;
|
|
2675
|
+
/**
|
|
2676
|
+
* Generates BillTotal object with random data.
|
|
2677
|
+
*
|
|
2678
|
+
* @since 0.1.0
|
|
2679
|
+
* @param {Partial<BillTotal>} overrides Properties to override
|
|
2680
|
+
* a {@link BillTotal}
|
|
2681
|
+
* @returns {BillTotal} A {@link BillTotal} object
|
|
2682
|
+
*/
|
|
2683
|
+
declare const buildBillTotal: (overrides?: Partial<BillTotal>) => BillTotal;
|
|
2684
|
+
/**
|
|
2685
|
+
* Generates CartStore object with random data.
|
|
2686
|
+
*
|
|
2687
|
+
* @template T Store additional info
|
|
2688
|
+
* @template U Product additional info
|
|
2689
|
+
* @template V Categories additional info
|
|
2690
|
+
* @template W Vendor additional info
|
|
2691
|
+
* @template X Catalogues additional info
|
|
2692
|
+
* @since 0.1.0
|
|
2693
|
+
* @param {Partial<CartStore>} overrides Properties to override
|
|
2694
|
+
* a {@link CartStore}
|
|
2695
|
+
* @returns {CartStore} A {@link CartStore} object
|
|
2696
|
+
*/
|
|
2697
|
+
declare const buildCartStore: <T extends AdditionalInfo = AdditionalInfo, U extends AdditionalInfo = AdditionalInfo, V extends AdditionalInfo = AdditionalInfo, W extends AdditionalInfo = AdditionalInfo, X extends AdditionalInfo = AdditionalInfo>(overrides?: Partial<CartStore<T, U, V, W, X>>) => CartStore<T, U, V, W, X>;
|
|
2698
|
+
/**
|
|
2699
|
+
* Generates a CartStore object where the key is the store id
|
|
2700
|
+
* and the value is the cart store object
|
|
2701
|
+
*
|
|
2702
|
+
* @template T Store additional info
|
|
2703
|
+
* @template U Product additional info
|
|
2704
|
+
* @template V Categories additional info
|
|
2705
|
+
* @template W Vendor additional info
|
|
2706
|
+
* @template X Catalogues additional info
|
|
2707
|
+
* @since 0.1.0
|
|
2708
|
+
* @param {number} quantity The number of objects to be generated
|
|
2709
|
+
* @returns {Objectify<CartStore>} An Objectify<{@link CartStore}>
|
|
2710
|
+
*/
|
|
2711
|
+
declare const genCartStores: <T extends AdditionalInfo = AdditionalInfo, U extends AdditionalInfo = AdditionalInfo, V extends AdditionalInfo = AdditionalInfo, W extends AdditionalInfo = AdditionalInfo, X extends AdditionalInfo = AdditionalInfo>(quantity?: number) => Objectify<CartStore<T, U, V, W, X>>;
|
|
2712
|
+
/**
|
|
2713
|
+
* Generates ShoppingCart object with random data.
|
|
2714
|
+
*
|
|
2715
|
+
* @template T Shopping cart additional info
|
|
2716
|
+
* @template U Product additional info
|
|
2717
|
+
* @template V Categories additional info
|
|
2718
|
+
* @template W Store additional info
|
|
2719
|
+
* @template X Vendor additional info
|
|
2720
|
+
* @template Y Catalogues additional info
|
|
2721
|
+
* @template Z Shipping cost additional info
|
|
2722
|
+
* @since 0.1.0
|
|
2723
|
+
* @param {Partial<ShoppingCart>} overrides Properties to override
|
|
2724
|
+
* a {@link ShoppingCart}
|
|
2725
|
+
* @returns {ShoppingCart} A {@link ShoppingCart} object
|
|
2726
|
+
*/
|
|
2727
|
+
declare const buildShoppingCart: <T extends AdditionalInfo = AdditionalInfo, U extends AdditionalInfo = AdditionalInfo, V extends AdditionalInfo = AdditionalInfo, W extends AdditionalInfo = AdditionalInfo, X extends AdditionalInfo = AdditionalInfo, Y extends AdditionalInfo = AdditionalInfo, Z extends AdditionalInfo = AdditionalInfo>(overrides?: Partial<ShoppingCart<T, U, V, W, X, Y, Z>>) => ShoppingCart<T, U, V, W, X, Y, Z>;
|
|
2728
|
+
/**
|
|
2729
|
+
* Generates ShippingCost object with random data.
|
|
2730
|
+
*
|
|
2731
|
+
* @template T Shipping cost additional info
|
|
2732
|
+
* @since 0.1.0
|
|
2733
|
+
* @param {Partial<ShippingCost>} overrides Properties to override
|
|
2734
|
+
* a {@link ShippingCost}
|
|
2735
|
+
* @returns {ShippingCost} A {@link ShippingCost} object
|
|
2736
|
+
*/
|
|
2737
|
+
declare const buildShippingCost: <T extends AdditionalInfo = AdditionalInfo>(overrides?: Partial<ShippingCost<T>>) => ShippingCost<T>;
|
|
2738
|
+
/**
|
|
2739
|
+
* Generates ShippingCostTax object with random data.
|
|
2740
|
+
*
|
|
2741
|
+
* @since 0.1.0
|
|
2742
|
+
* @param {Partial<ShippingCostTax>} overrides Properties to override
|
|
2743
|
+
* a {@link ShippingCostTax}
|
|
2744
|
+
* @returns {ShippingCostTax} A {@link ShippingCostTax} object
|
|
2745
|
+
*/
|
|
2746
|
+
declare const buildShippingCostTax: (overrides?: Partial<ShippingCostTax>) => ShippingCostTax;
|
|
2747
|
+
/**
|
|
2748
|
+
* Generates a list of ShippingCostTax objects with random data.
|
|
2749
|
+
*
|
|
2750
|
+
* @since 0.1.0
|
|
2751
|
+
* @param {number} quantity The number of objects to be generated
|
|
2752
|
+
* @returns {ShippingCostTax[]} An array of shipping cost taxes objects,
|
|
2753
|
+
* see {@link ShippingCostTax}
|
|
2754
|
+
*/
|
|
2755
|
+
declare const genShippingCostTaxes: (quantity?: number) => ShippingCostTax[];
|
|
2756
|
+
/**
|
|
2757
|
+
* Generates Discount object with random data.
|
|
2758
|
+
*
|
|
2759
|
+
* @since 0.1.0
|
|
2760
|
+
* @param {Partial<Discount>} overrides Properties to override
|
|
2761
|
+
* a {@link Discount}
|
|
2762
|
+
* @returns {Discount} A {@link Discount} object
|
|
2763
|
+
*/
|
|
2764
|
+
declare const buildDiscount: (overrides?: Partial<Discount>) => Discount;
|
|
2765
|
+
declare const genDiscounts: (quantity?: number) => Discount[];
|
|
2766
|
+
|
|
2767
|
+
declare const shoppingCart_builder_buildBillTotal: typeof buildBillTotal;
|
|
2768
|
+
declare const shoppingCart_builder_buildBillTotalNormalCategory: typeof buildBillTotalNormalCategory;
|
|
2769
|
+
declare const shoppingCart_builder_buildCartStore: typeof buildCartStore;
|
|
2770
|
+
declare const shoppingCart_builder_buildDiscount: typeof buildDiscount;
|
|
2771
|
+
declare const shoppingCart_builder_buildShippingCost: typeof buildShippingCost;
|
|
2772
|
+
declare const shoppingCart_builder_buildShippingCostTax: typeof buildShippingCostTax;
|
|
2773
|
+
declare const shoppingCart_builder_buildShoppingCart: typeof buildShoppingCart;
|
|
2774
|
+
declare const shoppingCart_builder_genCartStores: typeof genCartStores;
|
|
2775
|
+
declare const shoppingCart_builder_genDiscounts: typeof genDiscounts;
|
|
2776
|
+
declare const shoppingCart_builder_genShippingCostTaxes: typeof genShippingCostTaxes;
|
|
2777
|
+
declare namespace shoppingCart_builder {
|
|
2778
|
+
export {
|
|
2779
|
+
shoppingCart_builder_buildBillTotal as buildBillTotal,
|
|
2780
|
+
shoppingCart_builder_buildBillTotalNormalCategory as buildBillTotalNormalCategory,
|
|
2781
|
+
shoppingCart_builder_buildCartStore as buildCartStore,
|
|
2782
|
+
shoppingCart_builder_buildDiscount as buildDiscount,
|
|
2783
|
+
shoppingCart_builder_buildShippingCost as buildShippingCost,
|
|
2784
|
+
shoppingCart_builder_buildShippingCostTax as buildShippingCostTax,
|
|
2785
|
+
shoppingCart_builder_buildShoppingCart as buildShoppingCart,
|
|
2786
|
+
shoppingCart_builder_genCartStores as genCartStores,
|
|
2787
|
+
shoppingCart_builder_genDiscounts as genDiscounts,
|
|
2788
|
+
shoppingCart_builder_genShippingCostTaxes as genShippingCostTaxes,
|
|
2789
|
+
};
|
|
2790
|
+
}
|
|
2791
|
+
|
|
2792
|
+
/**
|
|
2793
|
+
* Generates Store object with random data.
|
|
2794
|
+
*
|
|
2795
|
+
* @template T Store additional info
|
|
2796
|
+
* @template U Vendor additional info
|
|
2797
|
+
* @template V Catalogues additional info
|
|
2798
|
+
* @since 0.1.0
|
|
2799
|
+
* @param {Partial<Store>} overrides Properties to override a {@link Store}
|
|
2800
|
+
* @returns {Store} A {@link Store} object
|
|
2801
|
+
*/
|
|
2802
|
+
declare const buildStore: <T extends AdditionalInfo = AdditionalInfo, U extends AdditionalInfo = AdditionalInfo, V extends AdditionalInfo = AdditionalInfo>(overrides?: Partial<Store<T, U, V>>) => Store<T, U, V>;
|
|
2803
|
+
/**
|
|
2804
|
+
* Generates Delivery object with random data.
|
|
2805
|
+
*
|
|
2806
|
+
* @since 0.1.0
|
|
2807
|
+
* @param {Partial<Delivery>} overrides Properties to override
|
|
2808
|
+
* a {@link Delivery}
|
|
2809
|
+
* @returns {Delivery} A {@link Delivery} object
|
|
2810
|
+
*/
|
|
2811
|
+
declare const buildDelivery: (overrides?: Partial<Delivery>) => Delivery;
|
|
2812
|
+
/**
|
|
2813
|
+
* Generates Schedule object with random data.
|
|
2814
|
+
*
|
|
2815
|
+
* @since 0.1.0
|
|
2816
|
+
* @param {Partial<Schedule>} overrides Properties to override
|
|
2817
|
+
* a {@link Schedule}
|
|
2818
|
+
* @returns {Schedule} A {@link Schedule} object
|
|
2819
|
+
*/
|
|
2820
|
+
declare const buildSchedule: (overrides?: Partial<Schedule>) => Schedule;
|
|
2821
|
+
/**
|
|
2822
|
+
* Generates Service object with random data.
|
|
2823
|
+
*
|
|
2824
|
+
* @since 0.1.0
|
|
2825
|
+
* @param {Partial<Service>} overrides Properties to override a {@link Service}
|
|
2826
|
+
* @returns {Service} A {@link Service} object
|
|
2827
|
+
*/
|
|
2828
|
+
declare const buildService: (overrides?: Partial<Service>) => Service;
|
|
2829
|
+
/**
|
|
2830
|
+
* Generates a list of Service objects with random data.
|
|
2831
|
+
*
|
|
2832
|
+
* @since 0.1.0
|
|
2833
|
+
* @param {number} quantity The number of objects to be generated
|
|
2834
|
+
* @returns {Service[]} An array of {@link Service}s objects
|
|
2835
|
+
*/
|
|
2836
|
+
declare const genServices: (quantity?: number) => Service[];
|
|
2837
|
+
/**
|
|
2838
|
+
* Generates a list of Schedule objects with random data.
|
|
2839
|
+
*
|
|
2840
|
+
* @since 0.1.0
|
|
2841
|
+
* @param {number} quantity The number of objects to be generated
|
|
2842
|
+
* @returns {Schedule[]} An array of {@link Schedule}s objects
|
|
2843
|
+
*/
|
|
2844
|
+
declare const genSchedules: (quantity?: number) => Schedule[];
|
|
2845
|
+
/**
|
|
2846
|
+
* Generates a list of Store objects with random data.
|
|
2847
|
+
*
|
|
2848
|
+
* @template T Store additional info
|
|
2849
|
+
* @template U Vendor additional info
|
|
2850
|
+
* @template V Catalogues additional info
|
|
2851
|
+
* @since 0.1.0
|
|
2852
|
+
* @param {number} quantity The number of objects to be generated
|
|
2853
|
+
* @returns {Store[]} An array of {@link Store}s objects
|
|
2854
|
+
*/
|
|
2855
|
+
declare const genStores: <T extends AdditionalInfo = AdditionalInfo, U extends AdditionalInfo = AdditionalInfo, V extends AdditionalInfo = AdditionalInfo>(quantity?: number) => Store<T, U, V>[];
|
|
2856
|
+
/**
|
|
2857
|
+
* Generates GenericStoreLocation object with random data.
|
|
2858
|
+
*
|
|
2859
|
+
* @since 0.1.0
|
|
2860
|
+
* @param {Partial<GenericStoreLocation>} overrides Properties to override
|
|
2861
|
+
* a {@link GenericStoreLocation}
|
|
2862
|
+
* @returns {GenericStoreLocation} A {@link GenericStoreLocation} object
|
|
2863
|
+
*/
|
|
2864
|
+
declare const buildGenericStoreLocation: (overrides?: Partial<GenericStoreLocation>) => GenericStoreLocation;
|
|
2865
|
+
/**
|
|
2866
|
+
* Generates a list of GenericStoreLocation objects with random data.
|
|
2867
|
+
*
|
|
2868
|
+
* @since 0.1.0
|
|
2869
|
+
* @param {number} quantity The number of objects to be generated
|
|
2870
|
+
* @returns {GenericStoreLocation[]} An array of {@link GenericStoreLocation}s
|
|
2871
|
+
* objects
|
|
2872
|
+
*/
|
|
2873
|
+
declare const genGenericStoreLocation: (quantity?: number) => GenericStoreLocation[];
|
|
2874
|
+
/**
|
|
2875
|
+
* Generates StoreLocation object with random data.
|
|
2876
|
+
*
|
|
2877
|
+
* @since 0.1.0
|
|
2878
|
+
* @param {Partial<StoreLocation>} overrides Properties to override
|
|
2879
|
+
* a {@link StoreLocation}
|
|
2880
|
+
* @returns {StoreLocation} A {@link StoreLocation} object
|
|
2881
|
+
*/
|
|
2882
|
+
declare const buildStoreLocation: (overrides?: Partial<StoreLocation>) => StoreLocation;
|
|
2883
|
+
/**
|
|
2884
|
+
* Generates a list of StoreLocation objects with random data.
|
|
2885
|
+
*
|
|
2886
|
+
* @since 0.1.0
|
|
2887
|
+
* @param {number} quantity The number of objects to be generated
|
|
2888
|
+
* @returns {StoreLocation[]} An array of {@link StoreLocation}s objects
|
|
2889
|
+
*/
|
|
2890
|
+
declare const genStoreLocation: (quantity?: number) => StoreLocation[];
|
|
2891
|
+
|
|
2892
|
+
declare const store_builder_buildDelivery: typeof buildDelivery;
|
|
2893
|
+
declare const store_builder_buildGenericStoreLocation: typeof buildGenericStoreLocation;
|
|
2894
|
+
declare const store_builder_buildSchedule: typeof buildSchedule;
|
|
2895
|
+
declare const store_builder_buildService: typeof buildService;
|
|
2896
|
+
declare const store_builder_buildStore: typeof buildStore;
|
|
2897
|
+
declare const store_builder_buildStoreLocation: typeof buildStoreLocation;
|
|
2898
|
+
declare const store_builder_genGenericStoreLocation: typeof genGenericStoreLocation;
|
|
2899
|
+
declare const store_builder_genSchedules: typeof genSchedules;
|
|
2900
|
+
declare const store_builder_genServices: typeof genServices;
|
|
2901
|
+
declare const store_builder_genStoreLocation: typeof genStoreLocation;
|
|
2902
|
+
declare const store_builder_genStores: typeof genStores;
|
|
2903
|
+
declare namespace store_builder {
|
|
2904
|
+
export {
|
|
2905
|
+
store_builder_buildDelivery as buildDelivery,
|
|
2906
|
+
store_builder_buildGenericStoreLocation as buildGenericStoreLocation,
|
|
2907
|
+
store_builder_buildSchedule as buildSchedule,
|
|
2908
|
+
store_builder_buildService as buildService,
|
|
2909
|
+
store_builder_buildStore as buildStore,
|
|
2910
|
+
store_builder_buildStoreLocation as buildStoreLocation,
|
|
2911
|
+
store_builder_genGenericStoreLocation as genGenericStoreLocation,
|
|
2912
|
+
store_builder_genSchedules as genSchedules,
|
|
2913
|
+
store_builder_genServices as genServices,
|
|
2914
|
+
store_builder_genStoreLocation as genStoreLocation,
|
|
2915
|
+
store_builder_genStores as genStores,
|
|
2916
|
+
};
|
|
2917
|
+
}
|
|
2918
|
+
|
|
2919
|
+
/**
|
|
2920
|
+
* Generates User object with random data.
|
|
2921
|
+
*
|
|
2922
|
+
* @template T User additional info
|
|
2923
|
+
* @since 0.1.0
|
|
2924
|
+
* @param {Partial<User>} overrides Properties to override a {@link User}
|
|
2925
|
+
* @returns {User} A {@link User} object
|
|
2926
|
+
*/
|
|
2927
|
+
declare const buildUser: <T extends AdditionalInfo = AdditionalInfo>(overrides?: Partial<User<T>>) => User<T>;
|
|
2928
|
+
/**
|
|
2929
|
+
* Generates a list of User objects with random data.
|
|
2930
|
+
*
|
|
2931
|
+
* @template T Users additional info
|
|
2932
|
+
* @since 0.1.0
|
|
2933
|
+
* @param {number} quantity The number of objects to be generated
|
|
2934
|
+
* @returns {User[]} An array of {@link User}s objects
|
|
2935
|
+
*/
|
|
2936
|
+
declare const genUsers: <T extends AdditionalInfo = AdditionalInfo>(quantity?: number) => User<T>[];
|
|
2937
|
+
/**
|
|
2938
|
+
* Generates Phone object with random data.
|
|
2939
|
+
*
|
|
2940
|
+
* @since 0.1.0
|
|
2941
|
+
* @param {Partial<Phone>} overrides Properties to override a {@link Phone}
|
|
2942
|
+
* @returns {Phone} A {@link Phone} object
|
|
2943
|
+
*/
|
|
2944
|
+
declare const buildPhone: (overrides?: Partial<Phone>) => Phone;
|
|
2945
|
+
/**
|
|
2946
|
+
* Generates a list of Phone objects with random data.
|
|
2947
|
+
*
|
|
2948
|
+
* @since 0.1.0
|
|
2949
|
+
* @param {number} quantity The number of objects to be generated
|
|
2950
|
+
* @returns {Phone[]} An array of Phone objects, see {@link Phone}
|
|
2951
|
+
*/
|
|
2952
|
+
declare const genPhones: (quantity?: number) => Phone[];
|
|
2953
|
+
|
|
2954
|
+
declare const user_builder_buildPhone: typeof buildPhone;
|
|
2955
|
+
declare const user_builder_buildUser: typeof buildUser;
|
|
2956
|
+
declare const user_builder_genPhones: typeof genPhones;
|
|
2957
|
+
declare const user_builder_genUsers: typeof genUsers;
|
|
2958
|
+
declare namespace user_builder {
|
|
2959
|
+
export {
|
|
2960
|
+
user_builder_buildPhone as buildPhone,
|
|
2961
|
+
user_builder_buildUser as buildUser,
|
|
2962
|
+
user_builder_genPhones as genPhones,
|
|
2963
|
+
user_builder_genUsers as genUsers,
|
|
2964
|
+
};
|
|
2965
|
+
}
|
|
2966
|
+
|
|
2967
|
+
/**
|
|
2968
|
+
* Generates Vendor object with random data.
|
|
2969
|
+
*
|
|
2970
|
+
* @template T Vendor additional info
|
|
2971
|
+
* @since 0.1.0
|
|
2972
|
+
* @param {Partial<Vendor>} overrides Properties to override a {@link Vendor}
|
|
2973
|
+
* @returns {Vendor} A {@link Vendor} object
|
|
2974
|
+
*/
|
|
2975
|
+
declare const buildVendor: <T extends AdditionalInfo = AdditionalInfo>(overrides?: Partial<Vendor<T>>) => Vendor<T>;
|
|
2976
|
+
/**
|
|
2977
|
+
* Generates a list of Vendor objects with random data.
|
|
2978
|
+
*
|
|
2979
|
+
* @template T Vendors additional info
|
|
2980
|
+
* @since 0.1.0
|
|
2981
|
+
* @param {number} quantity The number of objects to be generated
|
|
2982
|
+
* @returns {Vendor[]} An array of {@link Vendor}s objects
|
|
2983
|
+
*/
|
|
2984
|
+
declare const genVendors: <T extends AdditionalInfo = AdditionalInfo>(quantity?: number) => Vendor<T>[];
|
|
2985
|
+
|
|
2986
|
+
declare const vendor_builder_buildVendor: typeof buildVendor;
|
|
2987
|
+
declare const vendor_builder_genVendors: typeof genVendors;
|
|
2988
|
+
declare namespace vendor_builder {
|
|
2989
|
+
export {
|
|
2990
|
+
vendor_builder_buildVendor as buildVendor,
|
|
2991
|
+
vendor_builder_genVendors as genVendors,
|
|
2992
|
+
};
|
|
2993
|
+
}
|
|
2994
|
+
|
|
2995
|
+
declare const seed: <T extends number | number[] | undefined = undefined>(seed?: T | undefined) => T extends number ? number : T extends number[] ? number[] : number;
|
|
2996
|
+
|
|
2997
|
+
declare const instance_utils_seed: typeof seed;
|
|
2998
|
+
declare namespace instance_utils {
|
|
2999
|
+
export {
|
|
3000
|
+
instance_utils_seed as seed,
|
|
3001
|
+
};
|
|
3002
|
+
}
|
|
3003
|
+
|
|
3004
|
+
export { instance_utils as Builders, account_builder as accountBuilders, banner_builder as bannerBuilders, billingData_builder as billingDataBuilders, catalogue_builder as catalogueBuilders, category_builder as categoryBuilders, country_builder as countryBuilders, coupon_builder as couponBuilders, fulfillment_builder as fulfillmentBuilders, image_builder as imageBuilders, masivo_builder as masivoBuilders, notification_builder as notificationBuilders, order_builder as orderBuilders, payment_builder as paymentBuilders, product_builder as productBuilders, settings_builder as settingsBuilders, shippingAddress_builder as shippingAddressBuilders, shoppingCart_builder as shoppingCartBuilders, store_builder as storeBuilders, user_builder as userBuilders, common_builder as utils, vendor_builder as vendorBuilders };
|