@wrcb/cb-common 1.0.621 → 1.0.623
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
|
}
|
package/build/types/bankList.js
CHANGED
|
@@ -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] || [];
|
package/build/types/country.d.ts
CHANGED
package/build/types/country.js
CHANGED
|
@@ -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;
|