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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,145 +3,6 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- ## [0.7.0-canary.18](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/builders@0.7.0-canary.17...@artisan-commerce/builders@0.7.0-canary.18) (2021-10-13)
7
-
8
-
9
- ### Features
10
-
11
- * **global:** fix builder and types to adjust better to reality ([11cdb93](https://bitbucket.org/tradesystem/artisn_sdk/commit/11cdb93199d5a57d12f5aa6f7ece17f0c38c0521))
12
- * **global:** fix unnecessary params on functions and add docs ([3830d7d](https://bitbucket.org/tradesystem/artisn_sdk/commit/3830d7d8b0044ca580bcbcc4acd0b0ea5a8b0266))
13
-
14
-
15
-
16
- ## [0.7.0-canary.17](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/builders@0.7.0-canary.16...@artisan-commerce/builders@0.7.0-canary.17) (2021-10-05)
17
-
18
-
19
- ### Bug Fixes
20
-
21
- * **global:** fix ProductDetail builder and update its types ([cdc6cf9](https://bitbucket.org/tradesystem/artisn_sdk/commit/cdc6cf9ed2e7ff1a340bc691b0dc1156bc682d38))
22
-
23
-
24
-
25
- ## [0.7.0-canary.16](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/builders@0.7.0-canary.15...@artisan-commerce/builders@0.7.0-canary.16) (2021-10-01)
26
-
27
- **Note:** Version bump only for package @artisan-commerce/builders
28
-
29
-
30
-
31
-
32
-
33
- ## [0.7.0-canary.15](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/builders@0.7.0-canary.14...@artisan-commerce/builders@0.7.0-canary.15) (2021-09-30)
34
-
35
- **Note:** Version bump only for package @artisan-commerce/builders
36
-
37
-
38
-
39
-
40
-
41
- ## [0.7.0-canary.14](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/builders@0.7.0-canary.13...@artisan-commerce/builders@0.7.0-canary.14) (2021-09-30)
42
-
43
- **Note:** Version bump only for package @artisan-commerce/builders
44
-
45
-
46
-
47
-
48
-
49
- ## [0.7.0-canary.13](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/builders@0.7.0-canary.12...@artisan-commerce/builders@0.7.0-canary.13) (2021-09-23)
50
-
51
-
52
- ### Bug Fixes
53
-
54
- * **global:** update types of CDNImage, reduce the depth of product questions ([82dba32](https://bitbucket.org/tradesystem/artisn_sdk/commit/82dba324457455e6cd2d76091aaffaef5f540d9f))
55
-
56
-
57
-
58
- ## [0.7.0-canary.12](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/builders@0.7.0-canary.11...@artisan-commerce/builders@0.7.0-canary.12) (2021-09-21)
59
-
60
-
61
- ### Bug Fixes
62
-
63
- * **global:** fix product details and settings builders ([5452fc9](https://bitbucket.org/tradesystem/artisn_sdk/commit/5452fc9d70ff3fa9f859ed4a665fd933e133c7ce))
64
-
65
-
66
-
67
- ## [0.7.0-canary.11](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/builders@0.7.0-canary.10...@artisan-commerce/builders@0.7.0-canary.11) (2021-09-17)
68
-
69
-
70
- ### Features
71
-
72
- * **global:** add categories property to product details interface ([0d95d09](https://bitbucket.org/tradesystem/artisn_sdk/commit/0d95d093383673322369b0870af290182bb57cb8))
73
-
74
-
75
-
76
- ## [0.7.0-canary.10](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/builders@0.7.0-canary.9...@artisan-commerce/builders@0.7.0-canary.10) (2021-08-25)
77
-
78
- **Note:** Version bump only for package @artisan-commerce/builders
79
-
80
-
81
-
82
-
83
-
84
- ## [0.7.0-canary.9](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/builders@0.7.0-canary.8...@artisan-commerce/builders@0.7.0-canary.9) (2021-08-25)
85
-
86
- **Note:** Version bump only for package @artisan-commerce/builders
87
-
88
-
89
-
90
-
91
-
92
- ## [0.7.0-canary.8](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/builders@0.7.0-canary.7...@artisan-commerce/builders@0.7.0-canary.8) (2021-08-24)
93
-
94
- **Note:** Version bump only for package @artisan-commerce/builders
95
-
96
-
97
-
98
-
99
-
100
- ## [0.7.0-canary.7](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/builders@0.7.0-canary.6...@artisan-commerce/builders@0.7.0-canary.7) (2021-08-23)
101
-
102
-
103
- ### Bug Fixes
104
-
105
- * **global:** add missing properties to order interfaces and types ([757157f](https://bitbucket.org/tradesystem/artisn_sdk/commit/757157fbb2dd25d04efc791cd9b9511e41685471))
106
-
107
-
108
-
109
- ## [0.7.0-canary.6](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/builders@0.7.0-canary.5...@artisan-commerce/builders@0.7.0-canary.6) (2021-08-23)
110
-
111
-
112
- ### Bug Fixes
113
-
114
- * **global:** add missing properties to shipping address and complete document type ([c9156f6](https://bitbucket.org/tradesystem/artisn_sdk/commit/c9156f6db3e55f23479484577760f5196e112afc))
115
-
116
-
117
-
118
- ## [0.7.0-canary.5](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/builders@0.7.0-canary.4...@artisan-commerce/builders@0.7.0-canary.5) (2021-08-12)
119
-
120
-
121
- ### Bug Fixes
122
-
123
- * **global:** add CountryCode type and update user builder ([f94eb5d](https://bitbucket.org/tradesystem/artisn_sdk/commit/f94eb5d38e0725bd157398e3c51b3bb8b2592abc))
124
-
125
-
126
-
127
- ## [0.7.0-canary.4](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/builders@0.7.0-canary.3...@artisan-commerce/builders@0.7.0-canary.4) (2021-08-12)
128
-
129
-
130
- ### Bug Fixes
131
-
132
- * **image-builders:** make bucket not use undefined ([5f7e95d](https://bitbucket.org/tradesystem/artisn_sdk/commit/5f7e95d6b0b4d4d1e47e38400b126a0ee9aa3478))
133
-
134
-
135
-
136
- ## [0.7.0-canary.3](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/builders@0.7.0-canary.2...@artisan-commerce/builders@0.7.0-canary.3) (2021-08-12)
137
-
138
-
139
- ### Features
140
-
141
- * **builders:** improve all image builders with the ability to add a topic and dimensions ([168f638](https://bitbucket.org/tradesystem/artisn_sdk/commit/168f638b439ba3ab4b00c861f1597e23d50d9fe6))
142
-
143
-
144
-
145
6
  ## [0.7.0-canary.2](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/builders@0.7.0-canary.1...@artisan-commerce/builders@0.7.0-canary.2) (2021-08-11)
146
7
 
147
8
 
@@ -1,84 +1,5 @@
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";
1
+ import { DocumentType } from "@artisan-commerce/types";
8
2
  import { CountrySummary, RandomImageConfig } from "@artisan-commerce/types";
9
- export { genItems } from "../utils/common.utils";
10
- /**
11
- * Default document types for all countries.
12
- *
13
- * @since 0.1.0
14
- */
15
- export declare const commonDocumentTypes: CommonDocumentType[];
16
- /**
17
- * Argentina supported document types.
18
- *
19
- * @since 0.1.0
20
- */
21
- export declare const ARDocumentTypes: ARDocumentType[];
22
- /**
23
- * Bolivia supported document types.
24
- *
25
- * @since 0.1.0
26
- */
27
- export declare const BODocumentTypes: BODocumentType[];
28
- /**
29
- * Brasil supported document types.
30
- *
31
- * @since 0.1.0
32
- */
33
- export declare const BRDocumentTypes: BRDocumentType[];
34
- /**
35
- * Chile supported document types.
36
- *
37
- * @since 0.1.0
38
- */
39
- export declare const CLDocumentTypes: CLDocumentType[];
40
- /**
41
- * Colombia supported document types.
42
- *
43
- * @since 0.1.0
44
- */
45
- export declare const CODocumentTypes: CODocumentType[];
46
- /**
47
- * Ecuador supported document types.
48
- *
49
- * @since 0.1.0
50
- */
51
- export declare const ECDocumentTypes: ECDocumentType[];
52
- /**
53
- * Paraguay supported document types.
54
- *
55
- * @since 0.1.0
56
- */
57
- export declare const PYDocumentTypes: PYDocumentType[];
58
- /**
59
- * Perú supported document types.
60
- *
61
- * @since 0.1.0
62
- */
63
- export declare const PEDocumentTypes: PEDocumentType[];
64
- /**
65
- * Uruguay supported document types.
66
- *
67
- * @since 0.1.0
68
- */
69
- export declare const UYDocumentTypes: UYDocumentType[];
70
- /**
71
- * Venezuela supported document types.
72
- *
73
- * @since 0.1.0
74
- */
75
- export declare const VEDocumentTypes: VEDocumentType[];
76
- /**
77
- * United States supported document types.
78
- *
79
- * @since 0.1.0
80
- */
81
- export declare const USDocumentTypes: USDocumentType[];
82
3
  /**
83
4
  * Generates a random password.
84
5
  *
@@ -229,9 +150,8 @@ export declare const genDocument: (digits: number) => string;
229
150
  * Generates a random document type.
230
151
  *
231
152
  * @since 0.5.14
232
- * @param {string} countryISOCode Country calling code
233
153
  */
234
- export declare const genDocumentType: (countryISOCode?: CountryCode) => DocumentType;
154
+ export declare const genDocumentType: () => DocumentType;
235
155
  /**
236
156
  * Generates a random mobile phone with the country code provided.
237
157
  *
@@ -282,9 +202,3 @@ export declare const chooseRandomEnum: <T>(anEnum: T) => T[keyof T];
282
202
  * @since 0.5.14
283
203
  */
284
204
  export declare const genSymbol: string;
285
- /**
286
- * Generates a random internet ip.
287
- *
288
- * @since 0.1.0
289
- */
290
- export declare const genIP: () => string;
@@ -1,33 +1,36 @@
1
- import { Country, CountryCode } from "@artisan-commerce/types";
2
- import { CountryCurrency } from "@artisan-commerce/types";
3
- /**
4
- * All values of CountryCode.
5
- *
6
- * @since 0.1.0
7
- */
8
- export declare const countriesCodes: CountryCode[];
1
+ import { Country, CountryCurrency, CountryTax } from "@artisan-commerce/types";
9
2
  /**
10
3
  * Generates CountryCurrency object with random data.
11
4
  *
12
- * @since 0.1.0
5
+ * @since 0.5.14
13
6
  * @param {Partial<CountryCurrency>} overrides Properties to override
14
7
  * a {@link CountryCurrency}
15
8
  * @returns {CountryCurrency} A {@link CountryCurrency} object
16
9
  */
17
10
  export declare const buildCountryCurrency: (overrides?: Partial<CountryCurrency>) => CountryCurrency;
18
11
  /**
19
- * Generates a list of country's currency objects with random data.
12
+ * Generates CountryTax object with random data.
13
+ *
14
+ * @since 0.5.14
15
+ * @param {Partial<CountryTax>} overrides Properties to override a
16
+ * {@link CountryTax}
17
+ * @returns {CountryTax} A {@link CountryTax} object
18
+ */
19
+ export declare const buildCountryTax: (overrides?: Partial<CountryTax>) => CountryTax;
20
+ /**
21
+ * Generates a list of CountryTax objects with random data.
20
22
  *
21
- * @since 0.1.0
23
+ * @since 0.5.14
22
24
  * @param {number} quantity The number of objects to be generated
23
- * @returns A list of country's currency objects, see {@link CountryCurrency}
25
+ * @returns {CountryTax[]} An array of categories objects,
26
+ * see {@link CountryTax}
24
27
  */
25
- export declare const genCountryCurrencies: (quantity?: number | undefined) => CountryCurrency[];
28
+ export declare const genCountryTax: (quantity?: number | undefined) => CountryTax[];
26
29
  /**
27
30
  * Generates Country object with random data.
28
31
  *
29
- * @since 0.1.0
30
- * @param {Country} overrides Properties to override a {@link Country}
32
+ * @since 0.5.14
33
+ * @param {Partial<Country>} overrides Properties to override a {@link Country}
31
34
  * @returns {Country} A {@link Country} object
32
35
  */
33
36
  export declare const buildCountry: (overrides?: Partial<Country>) => Country;
@@ -3,7 +3,7 @@ import { Benefit, Award } from "@artisan-commerce/types";
3
3
  /**
4
4
  * Generates Benefit object with random data.
5
5
  *
6
- * @since 0.1.0
6
+ * @since 0.5.14
7
7
  * @param {Partial<Benefit>} overrides Properties to override a {@link Benefit}
8
8
  * @returns {Benefit} A {@link Benefit} object
9
9
  */
@@ -19,8 +19,8 @@ export declare const genBenefits: (quantity?: number | undefined) => Benefit[];
19
19
  /**
20
20
  * Generates Award object with random data.
21
21
  *
22
- * @since 0.1.0
23
- * @param {Partial<Award>} overrides Properties to override a {@link Award}
22
+ * @since 0.5.14
23
+ * @param {Partial<>} overrides Properties to override a {@link Award}
24
24
  * @returns {Award} A {@link Award} object
25
25
  */
26
26
  export declare const buildAward: (overrides?: Partial<Award>) => Award;
@@ -1,22 +1,10 @@
1
1
  import { Workflow, StepWorkflow } from "@artisan-commerce/types";
2
2
  import { StepWorkflowAdditionalInfo } from "@artisan-commerce/types";
3
- import { StepWorkflowGroup, StepCode } from "@artisan-commerce/types";
3
+ import { StepWorkflowGroup } from "@artisan-commerce/types";
4
4
  import { Issue } from "@artisan-commerce/types";
5
- import { StepCategory, StepNotification } from "@artisan-commerce/types";
5
+ import { StepNotification } from "@artisan-commerce/types";
6
6
  import { IssueAdditionalInfo, IssueHistory } from "@artisan-commerce/types";
7
7
  import { WebhookWorkflow, TransitionWorkflow } from "@artisan-commerce/types";
8
- /**
9
- * All values of StepCategory.
10
- *
11
- * @since 0.1.0
12
- */
13
- export declare const stepCategory: StepCategory[];
14
- /**
15
- * All values of StepCode.
16
- *
17
- * @since 0.1.0
18
- */
19
- export declare const stepCode: StepCode[];
20
8
  /**
21
9
  * Generates Issue object with random data.
22
10
  *
@@ -19,16 +19,14 @@ export declare const genURLImages: (quantity?: number | undefined, overrides?: R
19
19
  * @since 0.5.15
20
20
  * @param {Partial<CDNImage>} overrides Properties to override
21
21
  * a {@link CDNImage}
22
- * @param {RandomImageConfig} options image request options{{@link RandomImageConfig}
23
22
  * @returns {CDNImage} A {@link CDNImage} object
24
23
  */
25
- export declare const buildCDNImage: (overrides?: Partial<CDNImage>, options?: RandomImageConfig | undefined) => CDNImage;
24
+ export declare const buildCDNImage: (overrides?: Partial<CDNImage>) => CDNImage;
26
25
  /**
27
26
  * Generates a list of CDNImage objects with random data.
28
27
  *
29
28
  * @since 0.5.15
30
29
  * @param {number} quantity The number of objects to be generated
31
- * @param {RandomImageConfig} options image request options{{@link RandomImageConfig}
32
30
  * @returns {CDNImage[]} An array of CDNImage objects, see {@link CDNImage}
33
31
  */
34
- export declare const genCDNImages: (quantity?: number | undefined, options?: RandomImageConfig | undefined) => CDNImage[];
32
+ export declare const genCDNImages: (quantity?: number | undefined) => CDNImage[];