@artisan-commerce/types 0.13.0-canary.5 → 0.13.0-canary.7

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,24 @@
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.13.0-canary.7](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/types@0.13.0-canary.6...@artisan-commerce/types@0.13.0-canary.7) (2021-04-22)
7
+
8
+
9
+ ### Features
10
+
11
+ * **types:** add country types and interfaces ([f73fabd](https://bitbucket.org/tradesystem/artisan_monorepo/commit/f73fabd5615ae1bb39c9ca59a8b79a5437eca9d1))
12
+
13
+
14
+
15
+ ## [0.13.0-canary.6](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/types@0.13.0-canary.5...@artisan-commerce/types@0.13.0-canary.6) (2021-04-21)
16
+
17
+
18
+ ### Features
19
+
20
+ * **global:** update account types and add account builders ([4a6fecd](https://bitbucket.org/tradesystem/artisan_monorepo/commit/4a6fecdc45b363f068a6089eccbf36483f517288))
21
+
22
+
23
+
6
24
  ## [0.13.0-canary.5](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/types@0.13.0-canary.4...@artisan-commerce/types@0.13.0-canary.5) (2021-04-16)
7
25
 
8
26
  **Note:** Version bump only for package @artisan-commerce/types
package/build/index.d.ts CHANGED
@@ -5,6 +5,7 @@ export * from "./types/category.types";
5
5
  export * from "./types/channel.types";
6
6
  export * from "./types/common.types";
7
7
  export * from "./types/coupons.types";
8
+ export * from "./types/country.types";
8
9
  export * from "./types/currency.types";
9
10
  export * from "./types/image.types";
10
11
  export * from "./types/product.types";
package/build/index.js CHANGED
@@ -18,6 +18,7 @@ __exportStar(require("./types/category.types"), exports);
18
18
  __exportStar(require("./types/channel.types"), exports);
19
19
  __exportStar(require("./types/common.types"), exports);
20
20
  __exportStar(require("./types/coupons.types"), exports);
21
+ __exportStar(require("./types/country.types"), exports);
21
22
  __exportStar(require("./types/currency.types"), exports);
22
23
  __exportStar(require("./types/image.types"), exports);
23
24
  __exportStar(require("./types/product.types"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO;AACP,oDAAkC;AAClC,wDAAsC;AACtC,0DAAwC;AACxC,yDAAuC;AACvC,wDAAsC;AACtC,uDAAqC;AACrC,wDAAsC;AACtC,yDAAuC;AACvC,sDAAoC;AACpC,wDAAsC;AACtC,6DAA2C;AAC3C,6DAA2C;AAC3C,sDAAoC;AACpC,uDAAqC;AACrC,qDAAmC;AACnC,qDAAmC;AACnC,4DAA0C;AAC1C,4DAA0C;AAC1C,gEAA8C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO;AACP,oDAAkC;AAClC,wDAAsC;AACtC,0DAAwC;AACxC,yDAAuC;AACvC,wDAAsC;AACtC,uDAAqC;AACrC,wDAAsC;AACtC,wDAAsC;AACtC,yDAAuC;AACvC,sDAAoC;AACpC,wDAAsC;AACtC,6DAA2C;AAC3C,6DAA2C;AAC3C,sDAAoC;AACpC,uDAAqC;AACrC,qDAAmC;AACnC,qDAAmC;AACnC,4DAA0C;AAC1C,4DAA0C;AAC1C,gEAA8C"}
@@ -1,12 +1,17 @@
1
+ import { Image } from "./image.types";
1
2
  /**
2
- * Representation of a Customer Account
3
+ * Representation of a Commerce Account
3
4
  *
4
5
  * @interface Account
5
6
  * @since 0.5.14
6
7
  * @property {number} accountId artisan's account unique identifier.
7
8
  * @property {string} name account's name.
9
+ * @property {string} description account's description.
10
+ * @property {string} images account's images.
8
11
  */
9
12
  export interface Account {
10
13
  accountId: number;
11
14
  name: string;
15
+ description?: string;
16
+ images: Image[];
12
17
  }
@@ -1,4 +1,4 @@
1
- import { Country } from "./common.types";
1
+ import { CountrySummary } from "./common.types";
2
2
  import { DocumentType } from "./common.types";
3
3
  export interface BaseBillingData {
4
4
  nickname: string;
@@ -9,7 +9,7 @@ export interface BaseBillingData {
9
9
  phone: string;
10
10
  email: string;
11
11
  default: boolean;
12
- country: Country;
12
+ country: CountrySummary;
13
13
  }
14
14
  export interface BillingData extends BaseBillingData {
15
15
  id: number;
@@ -2,7 +2,7 @@ export interface Objectify<T> {
2
2
  [key: string]: T;
3
3
  }
4
4
  export declare type DocumentType = "CI" | "RUC" | "PASSPORT";
5
- export interface Country {
5
+ export interface CountrySummary {
6
6
  id: number;
7
7
  name: string;
8
8
  }
@@ -0,0 +1,18 @@
1
+ export interface Country {
2
+ countryId: string;
3
+ name: string;
4
+ code: string;
5
+ active: boolean;
6
+ currency: CountryCurrency;
7
+ taxes: CountryTax[];
8
+ }
9
+ export interface CountryCurrency {
10
+ currencyId: string;
11
+ name: string;
12
+ sign: string;
13
+ }
14
+ export interface CountryTax {
15
+ tax: string;
16
+ vatRate: string;
17
+ percentage: string;
18
+ }
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ // Country types and interfaces
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ //# sourceMappingURL=country.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"country.types.js","sourceRoot":"","sources":["../../src/types/country.types.ts"],"names":[],"mappings":";AAAA,+BAA+B"}
@@ -1,4 +1,4 @@
1
- import { Country } from "./common.types";
1
+ import { CountrySummary } from "./common.types";
2
2
  import { LivingPlace, LivingPlaceToSave } from "./livingPlace.types";
3
3
  export interface BaseShippingAddress {
4
4
  default: boolean;
@@ -9,7 +9,7 @@ export interface BaseShippingAddress {
9
9
  number: string;
10
10
  secondaryStreet: string;
11
11
  addressReference: string;
12
- country: Country;
12
+ country: CountrySummary;
13
13
  }
14
14
  export interface ShippingAddress extends BaseShippingAddress {
15
15
  id: number;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@artisan-commerce/types",
3
3
  "description": "Artisan's types and interfaces library",
4
- "version": "0.13.0-canary.5",
4
+ "version": "0.13.0-canary.7",
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": "300cc3ac5ee7cbec431b343043bafd1a79fbec58"
45
+ "gitHead": "f2ed3cab4228e2deb025c24104872d55283c4ef6"
46
46
  }