@wrcb/cb-common 1.0.390 → 1.0.392
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/build/index.d.ts
CHANGED
|
@@ -15,7 +15,6 @@ export * from './types/couponType';
|
|
|
15
15
|
export * from './types/tenant';
|
|
16
16
|
export * from './types/userTags';
|
|
17
17
|
export * from './types/userCategory';
|
|
18
|
-
export * from './types/userRegion';
|
|
19
18
|
export * from './types/productTypes';
|
|
20
19
|
export * from './events/subjects';
|
|
21
20
|
export * from './services/TenantDataService';
|
package/build/index.js
CHANGED
|
@@ -31,7 +31,6 @@ __exportStar(require("./types/couponType"), exports);
|
|
|
31
31
|
__exportStar(require("./types/tenant"), exports);
|
|
32
32
|
__exportStar(require("./types/userTags"), exports);
|
|
33
33
|
__exportStar(require("./types/userCategory"), exports);
|
|
34
|
-
__exportStar(require("./types/userRegion"), exports);
|
|
35
34
|
__exportStar(require("./types/productTypes"), exports);
|
|
36
35
|
__exportStar(require("./events/subjects"), exports);
|
|
37
36
|
__exportStar(require("./services/TenantDataService"), exports);
|
|
@@ -4,7 +4,6 @@ import { UserCategory } from '../types/userCategory';
|
|
|
4
4
|
import { UserTags } from '../types/userTags';
|
|
5
5
|
import { ProductTypes } from '../types/productTypes';
|
|
6
6
|
import { MediaConfiguration } from '../storage/interfaces/MediaConfiguration';
|
|
7
|
-
import { UserRegion } from 'src/types/userRegion';
|
|
8
7
|
export interface CategoryConfiguration {
|
|
9
8
|
allowedTags: UserTags[];
|
|
10
9
|
allowedProducts: ProductTypes[];
|
|
@@ -22,7 +21,6 @@ export interface TenantData {
|
|
|
22
21
|
USER_CATEGORIES_CONFIG: Partial<Record<UserCategory, CategoryConfiguration>>;
|
|
23
22
|
COUPONS_TYPE_ALLOWED_TO_BE_CREATED_BY_SELLER: CouponType[];
|
|
24
23
|
COUPONS_TYPE_ALLOWED_TO_BE_CREATED_BY_ADMIN: CouponType[];
|
|
25
|
-
ALLOWED_REGIONS: UserRegion[];
|
|
26
24
|
EMAIL_HOST: string;
|
|
27
25
|
EMAIL_PORT: string;
|
|
28
26
|
EMAIL_USER: string;
|
|
@@ -6,7 +6,6 @@ const tenant_1 = require("../types/tenant");
|
|
|
6
6
|
const userCategory_1 = require("../types/userCategory");
|
|
7
7
|
const userTags_1 = require("../types/userTags");
|
|
8
8
|
const productTypes_1 = require("../types/productTypes");
|
|
9
|
-
const userRegion_1 = require("src/types/userRegion");
|
|
10
9
|
class TenantDataService {
|
|
11
10
|
// Métodos existentes
|
|
12
11
|
static getTenantData(tenant) {
|
|
@@ -75,7 +74,6 @@ TenantDataService.tenantDataMap = {
|
|
|
75
74
|
USER_CATEGORIES_CONFIG: {
|
|
76
75
|
// Defina aqui as categorias específicas para PoliticaBet se houver
|
|
77
76
|
},
|
|
78
|
-
ALLOWED_REGIONS: [userRegion_1.UserRegion.Brasil],
|
|
79
77
|
COUPONS_TYPE_ALLOWED_TO_BE_CREATED_BY_SELLER: [],
|
|
80
78
|
COUPONS_TYPE_ALLOWED_TO_BE_CREATED_BY_ADMIN: [
|
|
81
79
|
couponType_1.CouponType.DepositBonus,
|
|
@@ -111,7 +109,6 @@ TenantDataService.tenantDataMap = {
|
|
|
111
109
|
SOCIAL_YOUTUBE: 'https://youtube.com/outro',
|
|
112
110
|
SOCIAL_INSTAGRAM: 'https://instagram.com/outro',
|
|
113
111
|
SOCIAL_FACEBOOK: 'https://facebook.com/outro',
|
|
114
|
-
ALLOWED_REGIONS: [userRegion_1.UserRegion.Jericoacoara, userRegion_1.UserRegion.MorroDeSaoPaulo],
|
|
115
112
|
USER_CATEGORIES_CONFIG: {
|
|
116
113
|
[userCategory_1.UserCategory.Tour]: {
|
|
117
114
|
allowedTags: userTags_1.TOUR_TAGS,
|
|
@@ -184,7 +181,6 @@ TenantDataService.tenantDataMap = {
|
|
|
184
181
|
SOCIAL_YOUTUBE: 'https://youtube.com/privateshow',
|
|
185
182
|
SOCIAL_INSTAGRAM: 'https://instagram.com/privateshow',
|
|
186
183
|
SOCIAL_FACEBOOK: 'https://facebook.com/privateshow',
|
|
187
|
-
ALLOWED_REGIONS: [userRegion_1.UserRegion.Brasil],
|
|
188
184
|
USER_CATEGORIES_CONFIG: {
|
|
189
185
|
[userCategory_1.UserCategory.Male]: {
|
|
190
186
|
allowedTags: userTags_1.PRIVATE_SHOW_COMMON_TAGS,
|
package/package.json
CHANGED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UserRegion = void 0;
|
|
4
|
-
var UserRegion;
|
|
5
|
-
(function (UserRegion) {
|
|
6
|
-
UserRegion["Jericoacoara"] = "Jericoacoara";
|
|
7
|
-
UserRegion["MorroDeSaoPaulo"] = "MorroDeSaoPaulo";
|
|
8
|
-
UserRegion["Brasil"] = "Brasil";
|
|
9
|
-
})(UserRegion || (exports.UserRegion = UserRegion = {}));
|