@artisan-commerce/types 0.14.0-canary.4 → 0.14.0-canary.5

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,15 @@
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.14.0-canary.5](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/types@0.14.0-canary.4...@artisan-commerce/types@0.14.0-canary.5) (2021-08-23)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **global:** add missing properties to shipping address and complete document type ([c9156f6](https://bitbucket.org/tradesystem/artisn_sdk/commit/c9156f6db3e55f23479484577760f5196e112afc))
12
+
13
+
14
+
6
15
  ## [0.14.0-canary.4](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/types@0.14.0-canary.3...@artisan-commerce/types@0.14.0-canary.4) (2021-08-12)
7
16
 
8
17
 
@@ -1,3 +1,9 @@
1
+ import { ARDocumentType, BODocumentType } from "./country.types";
2
+ import { BRDocumentType, CLDocumentType } from "./country.types";
3
+ import { CODocumentType, ECDocumentType } from "./country.types";
4
+ import { PYDocumentType, PEDocumentType } from "./country.types";
5
+ import { UYDocumentType, VEDocumentType } from "./country.types";
6
+ import { USDocumentType } from "./country.types";
1
7
  /**
2
8
  * Representation of a generic object.
3
9
  *
@@ -12,9 +18,9 @@ export interface Objectify<T> {
12
18
  * The possible values of a document type.
13
19
  *
14
20
  * @typedef DocumentType
15
- * @since 0.5.14
21
+ * @since 0.1.0
16
22
  */
17
- export declare type DocumentType = "CI" | "RUC" | "PASSPORT";
23
+ export declare type DocumentType = ARDocumentType | BODocumentType | BRDocumentType | CLDocumentType | CODocumentType | ECDocumentType | PYDocumentType | PEDocumentType | UYDocumentType | VEDocumentType | USDocumentType;
18
24
  /**
19
25
  * Representation of the country's summary.
20
26
  *
@@ -57,3 +57,87 @@ export interface CountryTax {
57
57
  * @see https://www.nationsonline.org/oneworld/country_code_list.htm for reference
58
58
  */
59
59
  export declare type CountryCode = "AR" | "BO" | "BR" | "CL" | "CO" | "EC" | "PY" | "PE" | "UY" | "VE" | "US";
60
+ /**
61
+ * Default documents for all countries.
62
+ *
63
+ * @typedef CommonDocumentType
64
+ * @since 0.1.0
65
+ */
66
+ export declare type CommonDocumentType = "PASSPORT";
67
+ /**
68
+ * Argentina supported document types.
69
+ *
70
+ * @typedef ARDocumentType
71
+ * @since 0.1.0
72
+ */
73
+ export declare type ARDocumentType = CommonDocumentType;
74
+ /**
75
+ * Bolivia supported document types.
76
+ *
77
+ * @typedef BODocumentType
78
+ * @since 0.1.0
79
+ */
80
+ export declare type BODocumentType = CommonDocumentType;
81
+ /**
82
+ * Brasil supported document types.
83
+ *
84
+ * @typedef BRDocumentType
85
+ * @since 0.1.0
86
+ */
87
+ export declare type BRDocumentType = CommonDocumentType;
88
+ /**
89
+ * Chile supported document types.
90
+ *
91
+ * @typedef CLDocumentType
92
+ * @since 0.1.0
93
+ */
94
+ export declare type CLDocumentType = CommonDocumentType;
95
+ /**
96
+ * Colombia supported document types.
97
+ *
98
+ * @typedef CODocumentType
99
+ * @since 0.1.0
100
+ */
101
+ export declare type CODocumentType = CommonDocumentType | "RUT" | "NIT" | "CE" | "CC";
102
+ /**
103
+ * Ecuador supported document types.
104
+ *
105
+ * @typedef ECDocumentType
106
+ * @since 0.1.0
107
+ */
108
+ export declare type ECDocumentType = CommonDocumentType | "CI" | "RUC";
109
+ /**
110
+ * Paraguay supported document types.
111
+ *
112
+ * @typedef PYDocumentType
113
+ * @since 0.1.0
114
+ */
115
+ export declare type PYDocumentType = CommonDocumentType;
116
+ /**
117
+ * Perú supported document types.
118
+ *
119
+ * @typedef PEDocumentType
120
+ * @since 0.1.0
121
+ */
122
+ export declare type PEDocumentType = CommonDocumentType;
123
+ /**
124
+ * Uruguay supported document types.
125
+ *
126
+ * @typedef UYDocumentType
127
+ * @since 0.1.0
128
+ */
129
+ export declare type UYDocumentType = CommonDocumentType;
130
+ /**
131
+ * Venezuela supported document types.
132
+ *
133
+ * @typedef VEDocumentType
134
+ * @since 0.1.0
135
+ */
136
+ export declare type VEDocumentType = CommonDocumentType;
137
+ /**
138
+ * United States supported document types.
139
+ *
140
+ * @typedef USDocumentType
141
+ * @since 0.1.0
142
+ */
143
+ export declare type USDocumentType = CommonDocumentType;
@@ -21,10 +21,16 @@ export interface BaseShippingAddress {
21
21
  number: string;
22
22
  /** Shipping address' secondary street */
23
23
  secondaryStreet: string;
24
- /** Shipping address' reference */
25
- addressReference: string;
26
24
  /** It contains country id and country name, see {@link CountrySummary} */
27
25
  country: CountrySummary;
26
+ /** Shipping address' update date */
27
+ updatedAt?: string;
28
+ /** Shipping address' creation date */
29
+ createdAt: string;
30
+ /** Shipping address' nickname */
31
+ nickname: string;
32
+ /** Shipping address' number contact address */
33
+ numberContactAddress: string;
28
34
  }
29
35
  /**
30
36
  * Representation of a Commerce Shipping Address.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@artisan-commerce/types",
3
3
  "description": "Artisn's types and interfaces library",
4
- "version": "0.14.0-canary.4",
4
+ "version": "0.14.0-canary.5",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
7
7
  "files": [
@@ -42,5 +42,5 @@
42
42
  "prettier": "^2.1.2",
43
43
  "webpack-bundle-analyzer": "^3.9.0"
44
44
  },
45
- "gitHead": "f4abe618634cd11424484eaf7e0422fc97b615e8"
45
+ "gitHead": "ebd70d44622f2d80b388382e9035853beec9839a"
46
46
  }