@artisan-commerce/builders 0.7.0-canary.1 → 0.7.0-canary.10

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,6 +3,84 @@
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.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)
7
+
8
+ **Note:** Version bump only for package @artisan-commerce/builders
9
+
10
+
11
+
12
+
13
+
14
+ ## [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)
15
+
16
+ **Note:** Version bump only for package @artisan-commerce/builders
17
+
18
+
19
+
20
+
21
+
22
+ ## [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)
23
+
24
+ **Note:** Version bump only for package @artisan-commerce/builders
25
+
26
+
27
+
28
+
29
+
30
+ ## [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)
31
+
32
+
33
+ ### Bug Fixes
34
+
35
+ * **global:** add missing properties to order interfaces and types ([757157f](https://bitbucket.org/tradesystem/artisn_sdk/commit/757157fbb2dd25d04efc791cd9b9511e41685471))
36
+
37
+
38
+
39
+ ## [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)
40
+
41
+
42
+ ### Bug Fixes
43
+
44
+ * **global:** add missing properties to shipping address and complete document type ([c9156f6](https://bitbucket.org/tradesystem/artisn_sdk/commit/c9156f6db3e55f23479484577760f5196e112afc))
45
+
46
+
47
+
48
+ ## [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)
49
+
50
+
51
+ ### Bug Fixes
52
+
53
+ * **global:** add CountryCode type and update user builder ([f94eb5d](https://bitbucket.org/tradesystem/artisn_sdk/commit/f94eb5d38e0725bd157398e3c51b3bb8b2592abc))
54
+
55
+
56
+
57
+ ## [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)
58
+
59
+
60
+ ### Bug Fixes
61
+
62
+ * **image-builders:** make bucket not use undefined ([5f7e95d](https://bitbucket.org/tradesystem/artisn_sdk/commit/5f7e95d6b0b4d4d1e47e38400b126a0ee9aa3478))
63
+
64
+
65
+
66
+ ## [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)
67
+
68
+
69
+ ### Features
70
+
71
+ * **builders:** improve all image builders with the ability to add a topic and dimensions ([168f638](https://bitbucket.org/tradesystem/artisn_sdk/commit/168f638b439ba3ab4b00c861f1597e23d50d9fe6))
72
+
73
+
74
+
75
+ ## [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)
76
+
77
+
78
+ ### Features
79
+
80
+ * **global:** rebrand artisan-commerce to artisn ([b2688b1](https://bitbucket.org/tradesystem/artisn_sdk/commit/b2688b107757ed82791c0be49439e9fb28f78b6d))
81
+
82
+
83
+
6
84
  ## [0.7.0-canary.1](https://bitbucket.org/tradesystem/artisan_sdk/compare/@artisan-commerce/builders@0.7.0-canary.0...@artisan-commerce/builders@0.7.0-canary.1) (2021-08-06)
7
85
 
8
86
 
@@ -1,5 +1,83 @@
1
- import { DocumentType } from "@artisan-commerce/types";
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";
2
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[];
3
81
  /**
4
82
  * Generates a random password.
5
83
  *
@@ -150,8 +228,9 @@ export declare const genDocument: (digits: number) => string;
150
228
  * Generates a random document type.
151
229
  *
152
230
  * @since 0.5.14
231
+ * @param {string} countryISOCode Country calling code
153
232
  */
154
- export declare const genDocumentType: () => DocumentType;
233
+ export declare const genDocumentType: (countryISOCode?: CountryCode) => DocumentType;
155
234
  /**
156
235
  * Generates a random mobile phone with the country code provided.
157
236
  *
@@ -202,3 +281,9 @@ export declare const chooseRandomEnum: <T>(anEnum: T) => T[keyof T];
202
281
  * @since 0.5.14
203
282
  */
204
283
  export declare const genSymbol: string;
284
+ /**
285
+ * Generates a random internet ip.
286
+ *
287
+ * @since 0.1.0
288
+ */
289
+ export declare const genIP: () => string;
@@ -1,4 +1,11 @@
1
- import { Country, CountryCurrency, CountryTax } from "@artisan-commerce/types";
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[];
2
9
  /**
3
10
  * Generates CountryCurrency object with random data.
4
11
  *
@@ -1,10 +1,22 @@
1
1
  import { Workflow, StepWorkflow } from "@artisan-commerce/types";
2
2
  import { StepWorkflowAdditionalInfo } from "@artisan-commerce/types";
3
- import { StepWorkflowGroup } from "@artisan-commerce/types";
3
+ import { StepWorkflowGroup, StepCode } from "@artisan-commerce/types";
4
4
  import { Issue } from "@artisan-commerce/types";
5
- import { StepNotification } from "@artisan-commerce/types";
5
+ import { StepCategory, 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[];
8
20
  /**
9
21
  * Generates Issue object with random data.
10
22
  *
@@ -19,14 +19,16 @@ 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}
22
23
  * @returns {CDNImage} A {@link CDNImage} object
23
24
  */
24
- export declare const buildCDNImage: (overrides?: Partial<CDNImage>) => CDNImage;
25
+ export declare const buildCDNImage: (overrides?: Partial<CDNImage>, options?: RandomImageConfig | undefined) => CDNImage;
25
26
  /**
26
27
  * Generates a list of CDNImage objects with random data.
27
28
  *
28
29
  * @since 0.5.15
29
30
  * @param {number} quantity The number of objects to be generated
31
+ * @param {RandomImageConfig} options image request options{{@link RandomImageConfig}
30
32
  * @returns {CDNImage[]} An array of CDNImage objects, see {@link CDNImage}
31
33
  */
32
- export declare const genCDNImages: (quantity?: number | undefined) => CDNImage[];
34
+ export declare const genCDNImages: (quantity?: number | undefined, options?: RandomImageConfig | undefined) => CDNImage[];