@artisan-commerce/builders 0.7.0-canary.48 → 0.7.0-canary.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +363 -0
- package/build/builders/account.builder.d.ts +17 -0
- package/build/builders/banner.builder.d.ts +35 -0
- package/build/builders/billingData.builder.d.ts +18 -0
- package/build/builders/catalogue.builder.d.ts +18 -0
- package/build/builders/category.builder.d.ts +36 -0
- package/build/builders/common.builder.d.ts +283 -0
- package/build/builders/country.builder.d.ts +51 -0
- package/build/builders/coupon.builder.d.ts +50 -0
- package/build/builders/fulfillment.builder.d.ts +187 -0
- package/build/builders/image.builder.d.ts +34 -0
- package/build/builders/notification.builder.d.ts +19 -0
- package/build/builders/order.builder.d.ts +167 -0
- package/build/builders/payment.builder.d.ts +93 -0
- package/build/builders/product.builder.d.ts +161 -0
- package/build/builders/settings.builder.d.ts +37 -0
- package/build/builders/shippingAddress.builder.d.ts +108 -0
- package/build/builders/shoppingCart.builder.d.ts +76 -0
- package/build/builders/store.builder.d.ts +106 -0
- package/build/builders/user.builder.d.ts +33 -0
- package/build/builders/vendor.builder.d.ts +17 -0
- package/build/config/constants.d.ts +2 -0
- package/build/data/products.data.d.ts +4 -0
- package/build/index.d.ts +23 -0
- package/build/lib/artisn.d.ts +5 -0
- package/build/main.bundle.js +10 -0
- package/build/report.json +1 -0
- package/build/types/artisn.types.d.ts +1 -0
- package/build/types/product.types.d.ts +6 -0
- package/build/utils/artisn.utils.d.ts +2 -0
- package/build/utils/common.utils.d.ts +8 -0
- package/build/vendors.bundle.js +1 -0
- package/build/vendors.d.ts +1 -0
- package/package.json +55 -62
- package/dist/bundle.cjs.js +0 -2635
- package/dist/bundle.cjs.js.map +0 -1
- package/dist/bundle.d.ts +0 -2954
- package/dist/bundle.esm.js +0 -2607
- package/dist/bundle.esm.js.map +0 -1
- package/dist/bundle.umd.js +0 -2638
- package/dist/bundle.umd.js.map +0 -1
- package/dist/noop.cjs.js +0 -332
- package/dist/noop.cjs.js.map +0 -1
- package/dist/noop.esm.js +0 -309
- package/dist/noop.esm.js.map +0 -1
|
@@ -0,0 +1,283 @@
|
|
|
1
|
+
import { CountryCode, DocumentType } from "@artisan-commerce/types";
|
|
2
|
+
import { ARDocumentType, BODocumentType } from "@artisan-commerce/types";
|
|
3
|
+
import { BRDocumentType, CLDocumentType } from "@artisan-commerce/types";
|
|
4
|
+
import { CODocumentType, ECDocumentType } from "@artisan-commerce/types";
|
|
5
|
+
import { PYDocumentType, PEDocumentType } from "@artisan-commerce/types";
|
|
6
|
+
import { UYDocumentType, VEDocumentType } from "@artisan-commerce/types";
|
|
7
|
+
import { USDocumentType, CommonDocumentType } from "@artisan-commerce/types";
|
|
8
|
+
import { CountrySummary, RandomImageConfig } from "@artisan-commerce/types";
|
|
9
|
+
/**
|
|
10
|
+
* Default document types for all countries.
|
|
11
|
+
*
|
|
12
|
+
* @since 0.1.0
|
|
13
|
+
*/
|
|
14
|
+
export declare const commonDocumentTypes: CommonDocumentType[];
|
|
15
|
+
/**
|
|
16
|
+
* Argentina supported document types.
|
|
17
|
+
*
|
|
18
|
+
* @since 0.1.0
|
|
19
|
+
*/
|
|
20
|
+
export declare const ARDocumentTypes: ARDocumentType[];
|
|
21
|
+
/**
|
|
22
|
+
* Bolivia supported document types.
|
|
23
|
+
*
|
|
24
|
+
* @since 0.1.0
|
|
25
|
+
*/
|
|
26
|
+
export declare const BODocumentTypes: BODocumentType[];
|
|
27
|
+
/**
|
|
28
|
+
* Brasil supported document types.
|
|
29
|
+
*
|
|
30
|
+
* @since 0.1.0
|
|
31
|
+
*/
|
|
32
|
+
export declare const BRDocumentTypes: BRDocumentType[];
|
|
33
|
+
/**
|
|
34
|
+
* Chile supported document types.
|
|
35
|
+
*
|
|
36
|
+
* @since 0.1.0
|
|
37
|
+
*/
|
|
38
|
+
export declare const CLDocumentTypes: CLDocumentType[];
|
|
39
|
+
/**
|
|
40
|
+
* Colombia supported document types.
|
|
41
|
+
*
|
|
42
|
+
* @since 0.1.0
|
|
43
|
+
*/
|
|
44
|
+
export declare const CODocumentTypes: CODocumentType[];
|
|
45
|
+
/**
|
|
46
|
+
* Ecuador supported document types.
|
|
47
|
+
*
|
|
48
|
+
* @since 0.1.0
|
|
49
|
+
*/
|
|
50
|
+
export declare const ECDocumentTypes: ECDocumentType[];
|
|
51
|
+
/**
|
|
52
|
+
* Paraguay supported document types.
|
|
53
|
+
*
|
|
54
|
+
* @since 0.1.0
|
|
55
|
+
*/
|
|
56
|
+
export declare const PYDocumentTypes: PYDocumentType[];
|
|
57
|
+
/**
|
|
58
|
+
* Perú supported document types.
|
|
59
|
+
*
|
|
60
|
+
* @since 0.1.0
|
|
61
|
+
*/
|
|
62
|
+
export declare const PEDocumentTypes: PEDocumentType[];
|
|
63
|
+
/**
|
|
64
|
+
* Uruguay supported document types.
|
|
65
|
+
*
|
|
66
|
+
* @since 0.1.0
|
|
67
|
+
*/
|
|
68
|
+
export declare const UYDocumentTypes: UYDocumentType[];
|
|
69
|
+
/**
|
|
70
|
+
* Venezuela supported document types.
|
|
71
|
+
*
|
|
72
|
+
* @since 0.1.0
|
|
73
|
+
*/
|
|
74
|
+
export declare const VEDocumentTypes: VEDocumentType[];
|
|
75
|
+
/**
|
|
76
|
+
* United States supported document types.
|
|
77
|
+
*
|
|
78
|
+
* @since 0.1.0
|
|
79
|
+
*/
|
|
80
|
+
export declare const USDocumentTypes: USDocumentType[];
|
|
81
|
+
/**
|
|
82
|
+
* Generates a random password.
|
|
83
|
+
*
|
|
84
|
+
* @since 0.5.14
|
|
85
|
+
* @param {any[]} args An array of arguments to be passed when
|
|
86
|
+
* generating the password
|
|
87
|
+
* @returns A random password
|
|
88
|
+
*/
|
|
89
|
+
export declare const getPassword: (...args: any[]) => string;
|
|
90
|
+
/**
|
|
91
|
+
* Generates a random username.
|
|
92
|
+
*
|
|
93
|
+
* @since 0.5.14
|
|
94
|
+
*/
|
|
95
|
+
export declare const getUsername: (firstName?: string | undefined, lastName?: string | undefined) => string;
|
|
96
|
+
/**
|
|
97
|
+
* Generates a random unique identifier.
|
|
98
|
+
*
|
|
99
|
+
* @since 0.5.14
|
|
100
|
+
*/
|
|
101
|
+
export declare const genId: () => string;
|
|
102
|
+
/**
|
|
103
|
+
* Generates a random id of type number.
|
|
104
|
+
*
|
|
105
|
+
* @since 0.5.14
|
|
106
|
+
*/
|
|
107
|
+
export declare const genNumericId: () => number;
|
|
108
|
+
/**
|
|
109
|
+
* Generates a random word.
|
|
110
|
+
*
|
|
111
|
+
* @since 0.5.14
|
|
112
|
+
*/
|
|
113
|
+
export declare const genWord: () => string;
|
|
114
|
+
/**
|
|
115
|
+
* Generates a random address.
|
|
116
|
+
*
|
|
117
|
+
* @since 0.5.14
|
|
118
|
+
*/
|
|
119
|
+
export declare const genAddress: (useFullAddress?: boolean | undefined) => string;
|
|
120
|
+
/**
|
|
121
|
+
* Generates a random name.
|
|
122
|
+
*
|
|
123
|
+
* @since 0.5.14
|
|
124
|
+
*/
|
|
125
|
+
export declare const genName: (firstName?: string | undefined, lastName?: string | undefined, gender?: number | undefined) => string;
|
|
126
|
+
/**
|
|
127
|
+
* Generates a random email.
|
|
128
|
+
*
|
|
129
|
+
* @since 0.5.14
|
|
130
|
+
*/
|
|
131
|
+
export declare const genEmail: (firstName?: string | undefined, lastName?: string | undefined, provider?: string | undefined) => string;
|
|
132
|
+
/**
|
|
133
|
+
* Generates a random company name.
|
|
134
|
+
*
|
|
135
|
+
* @since 0.5.14
|
|
136
|
+
*/
|
|
137
|
+
export declare const genCompanyName: (format?: number | undefined) => string;
|
|
138
|
+
/**
|
|
139
|
+
* Generates a random paragraph.
|
|
140
|
+
*
|
|
141
|
+
* @since 0.5.14
|
|
142
|
+
*/
|
|
143
|
+
export declare const genParagraph: (sentenceCount?: number | undefined) => string;
|
|
144
|
+
/**
|
|
145
|
+
* Generates a random title containing 3 words.
|
|
146
|
+
*
|
|
147
|
+
* @since 0.5.14
|
|
148
|
+
*/
|
|
149
|
+
export declare const genTitle: () => string;
|
|
150
|
+
/**
|
|
151
|
+
* Generates a random number.
|
|
152
|
+
*
|
|
153
|
+
* @since 0.5.14
|
|
154
|
+
*/
|
|
155
|
+
export declare const genNumber: {
|
|
156
|
+
(max?: number | undefined): number;
|
|
157
|
+
(options?: {
|
|
158
|
+
min?: number | undefined;
|
|
159
|
+
max?: number | undefined;
|
|
160
|
+
precision?: number | undefined;
|
|
161
|
+
} | undefined): number;
|
|
162
|
+
};
|
|
163
|
+
/**
|
|
164
|
+
* Generates a random boolean value.
|
|
165
|
+
*
|
|
166
|
+
* @since 0.5.14
|
|
167
|
+
*/
|
|
168
|
+
export declare const getBoolean: () => boolean;
|
|
169
|
+
/**
|
|
170
|
+
* Generates a random country name.
|
|
171
|
+
*
|
|
172
|
+
* @since 0.5.14
|
|
173
|
+
*/
|
|
174
|
+
export declare const genCountryName: () => string;
|
|
175
|
+
/**
|
|
176
|
+
* Generates a random image based on custom configuration.
|
|
177
|
+
*
|
|
178
|
+
* @since 0.5.15
|
|
179
|
+
* @param {RandomImageConfig} randomImageConfig Configuration
|
|
180
|
+
* to generate a random image
|
|
181
|
+
* @returns {string} An url of the image generated
|
|
182
|
+
*/
|
|
183
|
+
export declare const genRandomImage: (randomImageConfig?: RandomImageConfig | undefined) => string;
|
|
184
|
+
/** Generates random words.
|
|
185
|
+
*
|
|
186
|
+
* @since 0.5.14
|
|
187
|
+
* @param {number} words The quantity of words to be generated
|
|
188
|
+
*/
|
|
189
|
+
export declare const genWords: (words?: number | undefined) => string;
|
|
190
|
+
/**
|
|
191
|
+
* Generates a random internet url.
|
|
192
|
+
*
|
|
193
|
+
* @since 0.5.14
|
|
194
|
+
*/
|
|
195
|
+
export declare const genURL: () => string;
|
|
196
|
+
/**
|
|
197
|
+
* Generates a random date in ISO format.
|
|
198
|
+
*
|
|
199
|
+
* @since 0.5.14
|
|
200
|
+
*/
|
|
201
|
+
export declare const genDate: () => string;
|
|
202
|
+
/**
|
|
203
|
+
* Generates a random base64 value.
|
|
204
|
+
*
|
|
205
|
+
* @since 0.5.14
|
|
206
|
+
*/
|
|
207
|
+
export declare const genBase64: () => string;
|
|
208
|
+
/**
|
|
209
|
+
* Generates a random boolean value.
|
|
210
|
+
*
|
|
211
|
+
* @since 0.5.14
|
|
212
|
+
* @param {number} bias A number between 0 and 1 which will be used
|
|
213
|
+
* to generate a boolean
|
|
214
|
+
* @throws Error if bias is not between 0 and 1
|
|
215
|
+
* @returns {boolean} A boolean value
|
|
216
|
+
*/
|
|
217
|
+
export declare const genBiasBoolean: (bias: number) => boolean;
|
|
218
|
+
/**
|
|
219
|
+
* Generates a random document.
|
|
220
|
+
*
|
|
221
|
+
* @since 0.5.14
|
|
222
|
+
* @param {number} digits The number of digits with which the document
|
|
223
|
+
* will be generated
|
|
224
|
+
* @returns {string} A random document
|
|
225
|
+
*/
|
|
226
|
+
export declare const genDocument: (digits: number) => string;
|
|
227
|
+
/**
|
|
228
|
+
* Generates a random document type.
|
|
229
|
+
*
|
|
230
|
+
* @since 0.5.14
|
|
231
|
+
* @param {string} countryISOCode Country calling code
|
|
232
|
+
*/
|
|
233
|
+
export declare const genDocumentType: (countryISOCode?: CountryCode) => DocumentType;
|
|
234
|
+
/**
|
|
235
|
+
* Generates a random mobile phone with the country code provided.
|
|
236
|
+
*
|
|
237
|
+
* @since 0.5.14
|
|
238
|
+
* @param {string} countryCode Country calling code
|
|
239
|
+
* @returns {string} A string like a mobile phone
|
|
240
|
+
*/
|
|
241
|
+
export declare const genMobilPhone: (countryCode: string) => string;
|
|
242
|
+
/**
|
|
243
|
+
* Generates a Country Summary object with random data.
|
|
244
|
+
*
|
|
245
|
+
* @since 0.5.14
|
|
246
|
+
* @param {number} id Country specific id
|
|
247
|
+
* @param {string} name Country specific name
|
|
248
|
+
* @returns {CountrySummary} A {@link CountrySummary} object
|
|
249
|
+
*/
|
|
250
|
+
export declare const genCountry: (id?: number | undefined, name?: string | undefined) => CountrySummary;
|
|
251
|
+
/**
|
|
252
|
+
* Fills a number of type string with characters.
|
|
253
|
+
*
|
|
254
|
+
* @since 0.5.14
|
|
255
|
+
* @param {string} num A string, the length of it will
|
|
256
|
+
* be used to fill the number
|
|
257
|
+
* @param {number} max A number, the length of it will
|
|
258
|
+
* be used to fill the number
|
|
259
|
+
* @returns {string} A string filled with the data passed
|
|
260
|
+
*/
|
|
261
|
+
export declare const fillNumber: (num: string, max?: number | undefined) => string;
|
|
262
|
+
/**
|
|
263
|
+
* Chooses a random item inside the array provided.
|
|
264
|
+
*
|
|
265
|
+
* @since 0.5.14
|
|
266
|
+
* @param {T[]} arr An array of generic items
|
|
267
|
+
* @returns {T} A random item of the array passed as param
|
|
268
|
+
*/
|
|
269
|
+
export declare const chooseRandom: <T>(arr: T[]) => T;
|
|
270
|
+
/**
|
|
271
|
+
* Chooses a random enum value of the enum provided.
|
|
272
|
+
*
|
|
273
|
+
* @since 0.5.14
|
|
274
|
+
* @param {T} anEnum An enum
|
|
275
|
+
* @returns {T[keyof T]} A random item of the enum passed as param
|
|
276
|
+
*/
|
|
277
|
+
export declare const chooseRandomEnum: <T>(anEnum: T) => T[keyof T];
|
|
278
|
+
/**
|
|
279
|
+
* Generates a random currency symbol.
|
|
280
|
+
*
|
|
281
|
+
* @since 0.5.14
|
|
282
|
+
*/
|
|
283
|
+
export declare const genSymbol: string;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { Country, CountryCode } from "@artisan-commerce/types";
|
|
2
|
+
import { CountryCurrency, CountryTax } from "@artisan-commerce/types";
|
|
3
|
+
/**
|
|
4
|
+
* All values of CountryCode.
|
|
5
|
+
*
|
|
6
|
+
* @since 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
export declare const countriesCodes: CountryCode[];
|
|
9
|
+
/**
|
|
10
|
+
* Generates CountryCurrency object with random data.
|
|
11
|
+
*
|
|
12
|
+
* @since 0.5.14
|
|
13
|
+
* @param {Partial<CountryCurrency>} overrides Properties to override
|
|
14
|
+
* a {@link CountryCurrency}
|
|
15
|
+
* @returns {CountryCurrency} A {@link CountryCurrency} object
|
|
16
|
+
*/
|
|
17
|
+
export declare const buildCountryCurrency: (overrides?: Partial<CountryCurrency>) => CountryCurrency;
|
|
18
|
+
/**
|
|
19
|
+
* Generates CountryTax object with random data.
|
|
20
|
+
*
|
|
21
|
+
* @since 0.5.14
|
|
22
|
+
* @param {Partial<CountryTax>} overrides Properties to override a
|
|
23
|
+
* {@link CountryTax}
|
|
24
|
+
* @returns {CountryTax} A {@link CountryTax} object
|
|
25
|
+
*/
|
|
26
|
+
export declare const buildCountryTax: (overrides?: Partial<CountryTax>) => CountryTax;
|
|
27
|
+
/**
|
|
28
|
+
* Generates a list of CountryTax objects with random data.
|
|
29
|
+
*
|
|
30
|
+
* @since 0.5.14
|
|
31
|
+
* @param {number} quantity The number of objects to be generated
|
|
32
|
+
* @returns {CountryTax[]} An array of categories objects,
|
|
33
|
+
* see {@link CountryTax}
|
|
34
|
+
*/
|
|
35
|
+
export declare const genCountryTax: (quantity?: number | undefined) => CountryTax[];
|
|
36
|
+
/**
|
|
37
|
+
* Generates Country object with random data.
|
|
38
|
+
*
|
|
39
|
+
* @since 0.5.14
|
|
40
|
+
* @param {Partial<Country>} overrides Properties to override a {@link Country}
|
|
41
|
+
* @returns {Country} A {@link Country} object
|
|
42
|
+
*/
|
|
43
|
+
export declare const buildCountry: (overrides?: Partial<Country>) => Country;
|
|
44
|
+
/**
|
|
45
|
+
* Generates a list of countries objects with random data.
|
|
46
|
+
*
|
|
47
|
+
* @since 0.5.14
|
|
48
|
+
* @param {number} quantity The number of objects to be generated
|
|
49
|
+
* @returns An array of countries objects, see {@link Country}
|
|
50
|
+
*/
|
|
51
|
+
export declare const genCountries: (quantity?: number | undefined) => Country[];
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { Wallet } from "@artisan-commerce/types";
|
|
2
|
+
import { Benefit, Award } from "@artisan-commerce/types";
|
|
3
|
+
/**
|
|
4
|
+
* Generates Benefit object with random data.
|
|
5
|
+
*
|
|
6
|
+
* @since 0.5.14
|
|
7
|
+
* @param {Partial<Benefit>} overrides Properties to override a {@link Benefit}
|
|
8
|
+
* @returns {Benefit} A {@link Benefit} object
|
|
9
|
+
*/
|
|
10
|
+
export declare const buildBenefit: (overrides?: Partial<Benefit>) => Benefit;
|
|
11
|
+
/**
|
|
12
|
+
* Generates a list of Benefit objects with random data.
|
|
13
|
+
*
|
|
14
|
+
* @since 0.5.14
|
|
15
|
+
* @param {number} quantity The number of objects to be generated
|
|
16
|
+
* @returns {Benefit[]} An array of Benefit objects, see {@link Benefit}
|
|
17
|
+
*/
|
|
18
|
+
export declare const genBenefits: (quantity?: number | undefined) => Benefit[];
|
|
19
|
+
/**
|
|
20
|
+
* Generates Award object with random data.
|
|
21
|
+
*
|
|
22
|
+
* @since 0.5.14
|
|
23
|
+
* @param {Partial<>} overrides Properties to override a {@link Award}
|
|
24
|
+
* @returns {Award} A {@link Award} object
|
|
25
|
+
*/
|
|
26
|
+
export declare const buildAward: (overrides?: Partial<Award>) => Award;
|
|
27
|
+
/**
|
|
28
|
+
* Generates a list of Award objects with random data.
|
|
29
|
+
*
|
|
30
|
+
* @since 0.5.14
|
|
31
|
+
* @param {number} quantity The number of objects to be generated
|
|
32
|
+
* @returns {Award[]} An array of Award objects, see {@link Award}
|
|
33
|
+
*/
|
|
34
|
+
export declare const genAwards: (quantity?: number | undefined) => Award[];
|
|
35
|
+
/**
|
|
36
|
+
* Generates Wallet object with random data.
|
|
37
|
+
*
|
|
38
|
+
* @since 0.5.14
|
|
39
|
+
* @param {Partial<Wallet>} overrides Properties to override a {@link Wallet}
|
|
40
|
+
* @returns {Wallet} A {@link Wallet} object
|
|
41
|
+
*/
|
|
42
|
+
export declare const buildWallet: (overrides?: Partial<Wallet>) => Wallet;
|
|
43
|
+
/**
|
|
44
|
+
* Generates a list of Wallet objects with random data.
|
|
45
|
+
*
|
|
46
|
+
* @since 0.5.14
|
|
47
|
+
* @param {number} quantity The number of objects to be generated
|
|
48
|
+
* @returns {Wallet[]} An array of Wallet objects, see {@link Wallet}
|
|
49
|
+
*/
|
|
50
|
+
export declare const genWallets: (quantity?: number | undefined) => Wallet[];
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
import { Workflow, StepWorkflow } from "@artisan-commerce/types";
|
|
2
|
+
import { StepWorkflowAdditionalInfo } from "@artisan-commerce/types";
|
|
3
|
+
import { StepWorkflowGroup } from "@artisan-commerce/types";
|
|
4
|
+
import { Issue } from "@artisan-commerce/types";
|
|
5
|
+
import { StepNotification } from "@artisan-commerce/types";
|
|
6
|
+
import { IssueAdditionalInfo, IssueHistory } from "@artisan-commerce/types";
|
|
7
|
+
import { WebhookWorkflow, TransitionWorkflow } from "@artisan-commerce/types";
|
|
8
|
+
/**
|
|
9
|
+
* Generates Issue object with random data.
|
|
10
|
+
*
|
|
11
|
+
* @since 0.5.15
|
|
12
|
+
* @param {Partial<Issue>} overrides Properties to override
|
|
13
|
+
* a {@link Issue}
|
|
14
|
+
* @returns {Issue} A {@link Issue} object
|
|
15
|
+
*/
|
|
16
|
+
export declare const buildIssue: (overrides?: Partial<Issue>) => Issue;
|
|
17
|
+
/**
|
|
18
|
+
* Generates a list of Issue objects with random data.
|
|
19
|
+
*
|
|
20
|
+
* @since 0.5.15
|
|
21
|
+
* @param {number} quantity The number of objects to be generated
|
|
22
|
+
* @returns {Issue[]} An array of Issue objects,
|
|
23
|
+
* see {@link Issue}
|
|
24
|
+
*/
|
|
25
|
+
export declare const genIssues: (quantity?: number | undefined) => Issue[];
|
|
26
|
+
/**
|
|
27
|
+
* Generates IssueAdditionalInfo object with random data.
|
|
28
|
+
*
|
|
29
|
+
* @since 0.5.15
|
|
30
|
+
* @param {Partial<IssueAdditionalInfo>} overrides Properties to override
|
|
31
|
+
* a {@link IssueAdditionalInfo}
|
|
32
|
+
* @returns {IssueAdditionalInfo} A {@link IssueAdditionalInfo} object
|
|
33
|
+
*/
|
|
34
|
+
export declare const buildIssueAdditionalInfo: (overrides?: Partial<IssueAdditionalInfo>) => IssueAdditionalInfo;
|
|
35
|
+
/**
|
|
36
|
+
* Generates a list of IssueAdditionalInfo objects with random data.
|
|
37
|
+
*
|
|
38
|
+
* @since 0.5.15
|
|
39
|
+
* @param {number} quantity The number of objects to be generated
|
|
40
|
+
* @returns {IssueAdditionalInfo[]} An array of IssueAdditionalInfo objects,
|
|
41
|
+
* see {@link IssueAdditionalInfo}
|
|
42
|
+
*/
|
|
43
|
+
export declare const genIssueAdditionalInfo: (quantity?: number | undefined) => IssueAdditionalInfo[];
|
|
44
|
+
/**
|
|
45
|
+
* Generates IssueHistory object with random data.
|
|
46
|
+
*
|
|
47
|
+
* @since 0.5.15
|
|
48
|
+
* @param {Partial<IssueHistory>} overrides Properties to override
|
|
49
|
+
* a {@link IssueHistory}
|
|
50
|
+
* @returns {IssueHistory} A {@link IssueHistory} object
|
|
51
|
+
*/
|
|
52
|
+
export declare const buildIssueHistory: (overrides?: Partial<IssueHistory>) => IssueHistory;
|
|
53
|
+
/**
|
|
54
|
+
* Generates a list of IssueHistory objects with random data.
|
|
55
|
+
*
|
|
56
|
+
* @since 0.5.15
|
|
57
|
+
* @param {number} quantity The number of objects to be generated
|
|
58
|
+
* @returns {IssueHistory[]} An array of IssueHistory objects,
|
|
59
|
+
* see {@link IssueHistory}
|
|
60
|
+
*/
|
|
61
|
+
export declare const genIssueHistory: (quantity?: number | undefined) => IssueHistory[];
|
|
62
|
+
/**
|
|
63
|
+
* Generates Workflow object with random data.
|
|
64
|
+
*
|
|
65
|
+
* @since 0.5.15
|
|
66
|
+
* @param {Partial<Workflow>} overrides Properties to override
|
|
67
|
+
* a {@link Workflow}
|
|
68
|
+
* @returns {Workflow} A {@link Workflow} object
|
|
69
|
+
*/
|
|
70
|
+
export declare const buildWorkflow: (overrides?: Partial<Workflow>) => Workflow;
|
|
71
|
+
/**
|
|
72
|
+
* Generates a list of Workflow objects with random data.
|
|
73
|
+
*
|
|
74
|
+
* @since 0.5.15
|
|
75
|
+
* @param {number} quantity The number of objects to be generated
|
|
76
|
+
* @returns {Workflow[]} An array of Workflow objects, see {@link Workflow}
|
|
77
|
+
*/
|
|
78
|
+
export declare const genWorkflows: (quantity?: number | undefined) => Workflow[];
|
|
79
|
+
/**
|
|
80
|
+
* Generates StepNotification object with random data.
|
|
81
|
+
*
|
|
82
|
+
* @since 0.5.15
|
|
83
|
+
* @param {Partial<StepNotification>} overrides Properties to override
|
|
84
|
+
* a {@link StepNotification}
|
|
85
|
+
* @returns {StepNotification} A {@link StepNotification} object
|
|
86
|
+
*/
|
|
87
|
+
export declare const buildStepNotification: (overrides?: Partial<StepNotification>) => StepNotification;
|
|
88
|
+
/**
|
|
89
|
+
* Generates a list of StepNotification objects with random data.
|
|
90
|
+
*
|
|
91
|
+
* @since 0.5.15
|
|
92
|
+
* @param {number} quantity The number of objects to be generated
|
|
93
|
+
* @returns {StepNotification[]} An array of StepNotification objects,
|
|
94
|
+
* see {@link StepNotification}
|
|
95
|
+
*/
|
|
96
|
+
export declare const genStepNotifications: (quantity?: number | undefined) => StepNotification[];
|
|
97
|
+
/**
|
|
98
|
+
* Generates StepWorkflow object with random data.
|
|
99
|
+
*
|
|
100
|
+
* @since 0.5.15
|
|
101
|
+
* @param {Partial<StepWorkflow>} overrides Properties to override
|
|
102
|
+
* a {@link StepWorkflow}
|
|
103
|
+
* @returns {StepWorkflow} A {@link StepWorkflow} object
|
|
104
|
+
*/
|
|
105
|
+
export declare const buildStepWorkflow: (overrides?: Partial<StepWorkflow>) => StepWorkflow;
|
|
106
|
+
/**
|
|
107
|
+
* Generates a list of StepWorkflow objects with random data.
|
|
108
|
+
*
|
|
109
|
+
* @since 0.5.15
|
|
110
|
+
* @param {number} quantity The number of objects to be generated
|
|
111
|
+
* @returns {StepWorkflow[]} An array of StepWorkflow objects,
|
|
112
|
+
* see {@link StepWorkflow}
|
|
113
|
+
*/
|
|
114
|
+
export declare const genStepWorkflows: (quantity?: number | undefined) => StepWorkflow[];
|
|
115
|
+
/**
|
|
116
|
+
* Generates WebhookWorkflow object with random data.
|
|
117
|
+
*
|
|
118
|
+
* @since 0.5.15
|
|
119
|
+
* @param {Partial<WebhookWorkflow>} overrides Properties to override
|
|
120
|
+
* a {@link WebhookWorkflow}
|
|
121
|
+
* @returns {WebhookWorkflow} A {@link WebhookWorkflow} object
|
|
122
|
+
*/
|
|
123
|
+
export declare const buildWebhookWorkflow: (overrides?: Partial<WebhookWorkflow>) => WebhookWorkflow;
|
|
124
|
+
/**
|
|
125
|
+
* Generates a list of WebhookWorkflow objects with random data.
|
|
126
|
+
*
|
|
127
|
+
* @since 0.5.15
|
|
128
|
+
* @param {number} quantity The number of objects to be generated
|
|
129
|
+
* @returns {WebhookWorkflow[]} An array of WebhookWorkflow objects,
|
|
130
|
+
* see {@link WebhookWorkflow}
|
|
131
|
+
*/
|
|
132
|
+
export declare const genWebhookWorkflows: (quantity?: number | undefined) => WebhookWorkflow[];
|
|
133
|
+
/**
|
|
134
|
+
* Generates StepWorkflowAdditionalInfo object with random data.
|
|
135
|
+
*
|
|
136
|
+
* @since 0.5.15
|
|
137
|
+
* @param {Partial<StepWorkflowAdditionalInfo>} overrides Properties to
|
|
138
|
+
* override a {@link StepWorkflowAdditionalInfo}
|
|
139
|
+
* @returns {StepWorkflowAdditionalInfo} A
|
|
140
|
+
* {@link StepWorkflowAdditionalInfo} object
|
|
141
|
+
*/
|
|
142
|
+
export declare const buildStepWorkflowAdditionalInfo: (overrides?: Partial<StepWorkflowAdditionalInfo>) => StepWorkflowAdditionalInfo;
|
|
143
|
+
/**
|
|
144
|
+
* Generates a list of StepWorkflowAdditionalInfo objects with random data.
|
|
145
|
+
*
|
|
146
|
+
* @since 0.5.15
|
|
147
|
+
* @param {number} quantity The number of objects to be generated
|
|
148
|
+
* @returns {StepWorkflowAdditionalInfo[]} An array of
|
|
149
|
+
* StepWorkflowAdditionalInfo objects, see {@link StepWorkflowAdditionalInfo}
|
|
150
|
+
*/
|
|
151
|
+
export declare const genStepWorkflowAdditionalInfos: (quantity?: number | undefined) => StepWorkflowAdditionalInfo[];
|
|
152
|
+
/**
|
|
153
|
+
* Generates StepWorkflowGroup object with random data.
|
|
154
|
+
*
|
|
155
|
+
* @since 0.5.15
|
|
156
|
+
* @param {Partial<StepWorkflowGroup>} overrides Properties to override
|
|
157
|
+
* a {@link StepWorkflowGroup}
|
|
158
|
+
* @returns {StepWorkflowGroup} A {@link StepWorkflowGroup} object
|
|
159
|
+
*/
|
|
160
|
+
export declare const buildStepWorkflowGroup: (overrides?: Partial<StepWorkflowGroup>) => StepWorkflowGroup;
|
|
161
|
+
/**
|
|
162
|
+
* Generates a list of StepWorkflowGroup objects with random data.
|
|
163
|
+
*
|
|
164
|
+
* @since 0.5.15
|
|
165
|
+
* @param {number} quantity The number of objects to be generated
|
|
166
|
+
* @returns {StepWorkflowGroup[]} An array of StepWorkflowGroup objects,
|
|
167
|
+
* see {@link StepWorkflowGroup}
|
|
168
|
+
*/
|
|
169
|
+
export declare const genStepWorkflowGroups: (quantity?: number | undefined) => StepWorkflowGroup[];
|
|
170
|
+
/**
|
|
171
|
+
* Generates TransitionWorkflow object with random data.
|
|
172
|
+
*
|
|
173
|
+
* @since 0.5.15
|
|
174
|
+
* @param {Partial<TransitionWorkflow>} overrides Properties to override
|
|
175
|
+
* a {@link TransitionWorkflow}
|
|
176
|
+
* @returns {TransitionWorkflow} A {@link TransitionWorkflow} object
|
|
177
|
+
*/
|
|
178
|
+
export declare const buildTransitionWorkflow: (overrides?: Partial<TransitionWorkflow>) => TransitionWorkflow;
|
|
179
|
+
/**
|
|
180
|
+
* Generates a list of TransitionWorkflow objects with random data.
|
|
181
|
+
*
|
|
182
|
+
* @since 0.5.15
|
|
183
|
+
* @param {number} quantity The number of objects to be generated
|
|
184
|
+
* @returns {TransitionWorkflow[]} An array of TransitionWorkflow objects,
|
|
185
|
+
* see {@link TransitionWorkflow}
|
|
186
|
+
*/
|
|
187
|
+
export declare const genTransitionWorkflows: (quantity?: number | undefined) => TransitionWorkflow[];
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { CDNImage, URLImage, RandomImageConfig } from "@artisan-commerce/types";
|
|
2
|
+
/**
|
|
3
|
+
* Generates a random image url.
|
|
4
|
+
*
|
|
5
|
+
* @since 0.5.15
|
|
6
|
+
*/
|
|
7
|
+
export declare const buildURLImage: (randomImageConfig?: RandomImageConfig | undefined) => string;
|
|
8
|
+
/**
|
|
9
|
+
* Generates a list of URLImage.
|
|
10
|
+
*
|
|
11
|
+
* @since 0.5.15
|
|
12
|
+
* @param {number} quantity The number of objects to be generated
|
|
13
|
+
* @returns {URLImage} An array of {@link URLImage}
|
|
14
|
+
*/
|
|
15
|
+
export declare const genURLImages: (quantity?: number | undefined, overrides?: RandomImageConfig | undefined) => URLImage[];
|
|
16
|
+
/**
|
|
17
|
+
* Generates CDNImage object with random data.
|
|
18
|
+
*
|
|
19
|
+
* @since 0.5.15
|
|
20
|
+
* @param {Partial<CDNImage>} overrides Properties to override
|
|
21
|
+
* a {@link CDNImage}
|
|
22
|
+
* @param {RandomImageConfig} options image request options{{@link RandomImageConfig}
|
|
23
|
+
* @returns {CDNImage} A {@link CDNImage} object
|
|
24
|
+
*/
|
|
25
|
+
export declare const buildCDNImage: (overrides?: Partial<CDNImage>, options?: RandomImageConfig | undefined) => CDNImage;
|
|
26
|
+
/**
|
|
27
|
+
* Generates a list of CDNImage objects with random data.
|
|
28
|
+
*
|
|
29
|
+
* @since 0.5.15
|
|
30
|
+
* @param {number} quantity The number of objects to be generated
|
|
31
|
+
* @param {RandomImageConfig} options image request options{{@link RandomImageConfig}
|
|
32
|
+
* @returns {CDNImage[]} An array of CDNImage objects, see {@link CDNImage}
|
|
33
|
+
*/
|
|
34
|
+
export declare const genCDNImages: (quantity?: number | undefined, options?: RandomImageConfig | undefined) => CDNImage[];
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Notification } from "@artisan-commerce/types";
|
|
2
|
+
/**
|
|
3
|
+
* Generates Notification object with random data.
|
|
4
|
+
*
|
|
5
|
+
* @since 0.5.15
|
|
6
|
+
* @param {Partial<Notification>} overrides Properties to override
|
|
7
|
+
* a {@link Notification}
|
|
8
|
+
* @returns {Notification} A {@link Notification} object
|
|
9
|
+
*/
|
|
10
|
+
export declare const buildNotification: (overrides?: Partial<Notification>) => Notification;
|
|
11
|
+
/**
|
|
12
|
+
* Generates a list of Notification objects with random data.
|
|
13
|
+
*
|
|
14
|
+
* @since 0.5.15
|
|
15
|
+
* @param {number} quantity The number of objects to be generated
|
|
16
|
+
* @returns {Notification[]} An array of Notification objects,
|
|
17
|
+
* see {@link Notification}
|
|
18
|
+
*/
|
|
19
|
+
export declare const genNotifications: (quantity?: number | undefined) => Notification[];
|