@wrcb/cb-common 1.0.621 → 1.0.624

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.
@@ -1,9 +1,11 @@
1
1
  import { Tenant } from 'src/types/tenant';
2
2
  import { Subjects } from '../subjects';
3
+ import { Country } from 'src/types/country';
3
4
  export interface PromotionCreatedEvent {
4
5
  subject: Subjects.PromotionCreated;
5
6
  data: {
6
7
  tenant: Tenant.PromoApp;
8
+ pais: Country;
7
9
  promotionId: string;
8
10
  titulo: string;
9
11
  descricao: string;
@@ -15,8 +17,5 @@ export interface PromotionCreatedEvent {
15
17
  precoAnterior?: number;
16
18
  descontoPercentual?: number;
17
19
  loja: string;
18
- score: number;
19
- exclusivaParaLogado: boolean;
20
- dataExpiracao?: Date;
21
20
  };
22
21
  }
@@ -17,7 +17,10 @@ exports.BanksByCountry = {
17
17
  { code: '072', name: 'Santander Río' },
18
18
  { code: '285', name: 'BBVA Argentina' },
19
19
  { code: '007', name: 'Banco Nación' }
20
- ]
20
+ ],
21
+ [country_1.Country.Chile]: [],
22
+ [country_1.Country.Espanhan]: [],
23
+ [country_1.Country.Mexico]: []
21
24
  };
22
25
  function getBanksByCountry(country) {
23
26
  return exports.BanksByCountry[country] || [];
@@ -6,6 +6,9 @@ export interface CountryInfo {
6
6
  }
7
7
  export declare enum Country {
8
8
  Brasil = "Brasil",
9
+ Chile = "Chile",
10
+ Espanhan = "Espanha",
11
+ Mexico = "Mexico",
9
12
  Argentina = "Argentina"
10
13
  }
11
14
  export declare enum Language {
@@ -4,6 +4,9 @@ exports.countryInfoMap = exports.Currency = exports.TimeZone = exports.Language
4
4
  var Country;
5
5
  (function (Country) {
6
6
  Country["Brasil"] = "Brasil";
7
+ Country["Chile"] = "Chile";
8
+ Country["Espanhan"] = "Espanha";
9
+ Country["Mexico"] = "Mexico";
7
10
  Country["Argentina"] = "Argentina";
8
11
  })(Country || (exports.Country = Country = {}));
9
12
  var Language;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wrcb/cb-common",
3
- "version": "1.0.621",
3
+ "version": "1.0.624",
4
4
  "description": "Common resources between services",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",