@wrcb/cb-common 1.0.355 → 1.0.356

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,6 +1,8 @@
1
+ import { TargetType } from 'src/types/targetType';
1
2
  import { CouponType } from '../types/couponType';
2
3
  import { Tenant } from '../types/tenant';
3
4
  export interface TenantData {
5
+ TENANT: string;
4
6
  SITE_NAME: string;
5
7
  SITE_URL: string;
6
8
  SITE_DESCRIPTION: string;
@@ -9,6 +11,7 @@ export interface TenantData {
9
11
  SOCIAL_YOUTUBE: string;
10
12
  SOCIAL_INSTAGRAM: string;
11
13
  SOCIAL_FACEBOOK: string;
14
+ SELLER_TARGETS: TargetType[];
12
15
  COUPONS_TYPE_ALLOWED_TO_BE_CREATED_BY_SELLER: CouponType[];
13
16
  COUPONS_TYPE_ALLOWED_TO_BE_CREATED_BY_ADMIN: CouponType[];
14
17
  EMAIL_HOST: string;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TenantDataService = void 0;
4
+ const targetType_1 = require("src/types/targetType");
4
5
  const couponType_1 = require("../types/couponType");
5
6
  const tenant_1 = require("../types/tenant");
6
7
  class TenantDataService {
@@ -16,6 +17,7 @@ exports.TenantDataService = TenantDataService;
16
17
  TenantDataService.tenantDataMap = {
17
18
  [tenant_1.Tenant.PoliticaBet]: {
18
19
  // NATS_CLUSTER_ID: 'criptobet-cluster',
20
+ TENANT: tenant_1.Tenant.PoliticaBet,
19
21
  SITE_NAME: 'Bet',
20
22
  SITE_URL: 'https://criptobet.dev',
21
23
  SITE_DESCRIPTION: 'Site de previsões políticas!!',
@@ -24,6 +26,7 @@ TenantDataService.tenantDataMap = {
24
26
  SOCIAL_YOUTUBE: 'https://youtube.com',
25
27
  SOCIAL_INSTAGRAM: 'https://instagram.com',
26
28
  SOCIAL_FACEBOOK: 'https://facebook.com',
29
+ SELLER_TARGETS: [targetType_1.TargetType.Bet],
27
30
  COUPONS_TYPE_ALLOWED_TO_BE_CREATED_BY_SELLER: [
28
31
  couponType_1.CouponType.FixedValue,
29
32
  couponType_1.CouponType.Percentage
@@ -43,6 +46,7 @@ TenantDataService.tenantDataMap = {
43
46
  },
44
47
  [tenant_1.Tenant.TourismApp]: {
45
48
  // NATS_CLUSTER_ID: 'tourism-cluster',
49
+ TENANT: tenant_1.Tenant.TourismApp,
46
50
  SITE_NAME: 'Tourism Site',
47
51
  SITE_URL: 'https://tourism.dev',
48
52
  SITE_DESCRIPTION: 'Descrição do outro site',
@@ -51,6 +55,11 @@ TenantDataService.tenantDataMap = {
51
55
  SOCIAL_YOUTUBE: 'https://youtube.com/outro',
52
56
  SOCIAL_INSTAGRAM: 'https://instagram.com/outro',
53
57
  SOCIAL_FACEBOOK: 'https://facebook.com/outro',
58
+ SELLER_TARGETS: [
59
+ targetType_1.TargetType.Book,
60
+ targetType_1.TargetType.Tour,
61
+ targetType_1.TargetType.Wheelbarrow
62
+ ],
54
63
  COUPONS_TYPE_ALLOWED_TO_BE_CREATED_BY_SELLER: [
55
64
  couponType_1.CouponType.FixedValue,
56
65
  couponType_1.CouponType.Percentage
@@ -70,6 +79,7 @@ TenantDataService.tenantDataMap = {
70
79
  },
71
80
  [tenant_1.Tenant.Mentorzinho]: {
72
81
  // NATS_CLUSTER_ID: 'mentorzinho-cluster',
82
+ TENANT: tenant_1.Tenant.Mentorzinho,
73
83
  SITE_NAME: 'Mentorzinho',
74
84
  SITE_URL: 'https://mentorzinho.dev',
75
85
  SITE_DESCRIPTION: 'Descrição do outro site',
@@ -78,6 +88,7 @@ TenantDataService.tenantDataMap = {
78
88
  SOCIAL_YOUTUBE: 'https://youtube.com/outro',
79
89
  SOCIAL_INSTAGRAM: 'https://instagram.com/outro',
80
90
  SOCIAL_FACEBOOK: 'https://facebook.com/outro',
91
+ SELLER_TARGETS: [],
81
92
  COUPONS_TYPE_ALLOWED_TO_BE_CREATED_BY_SELLER: [],
82
93
  COUPONS_TYPE_ALLOWED_TO_BE_CREATED_BY_ADMIN: [
83
94
  couponType_1.CouponType.DepositBonus,
@@ -0,0 +1,8 @@
1
+ export declare enum TargetType {
2
+ Tour = "Tour",
3
+ Book = "Book",
4
+ Wheelbarrow = "Wheelbarrow",
5
+ Live = "Live",
6
+ DigitalProduct = "DigitalProduct",
7
+ Bet = "Bet"
8
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TargetType = void 0;
4
+ var TargetType;
5
+ (function (TargetType) {
6
+ // turismo
7
+ TargetType["Tour"] = "Tour";
8
+ TargetType["Book"] = "Book";
9
+ TargetType["Wheelbarrow"] = "Wheelbarrow";
10
+ // private show
11
+ TargetType["Live"] = "Live";
12
+ TargetType["DigitalProduct"] = "DigitalProduct";
13
+ // aposta
14
+ TargetType["Bet"] = "Bet";
15
+ })(TargetType || (exports.TargetType = TargetType = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wrcb/cb-common",
3
- "version": "1.0.355",
3
+ "version": "1.0.356",
4
4
  "description": "Common resources between services",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",