@wrcb/cb-common 1.0.389 → 1.0.390
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/events/userUpdatedEvent.d.ts +0 -1
- package/build/index.d.ts +1 -0
- package/build/index.js +1 -0
- package/build/services/TenantDataService.d.ts +2 -0
- package/build/services/TenantDataService.js +7 -7
- package/build/types/productTypes.d.ts +2 -4
- package/build/types/productTypes.js +3 -5
- package/build/types/userCategory.d.ts +9 -10
- package/build/types/userCategory.js +6 -7
- package/build/types/userRegion.d.ts +5 -0
- package/build/types/userRegion.js +9 -0
- package/build/types/userTags.d.ts +4 -4
- package/build/types/userTags.js +6 -10
- package/package.json +1 -1
package/build/index.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ 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';
|
|
18
19
|
export * from './types/productTypes';
|
|
19
20
|
export * from './events/subjects';
|
|
20
21
|
export * from './services/TenantDataService';
|
package/build/index.js
CHANGED
|
@@ -31,6 +31,7 @@ __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);
|
|
34
35
|
__exportStar(require("./types/productTypes"), exports);
|
|
35
36
|
__exportStar(require("./events/subjects"), exports);
|
|
36
37
|
__exportStar(require("./services/TenantDataService"), exports);
|
|
@@ -4,6 +4,7 @@ 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';
|
|
7
8
|
export interface CategoryConfiguration {
|
|
8
9
|
allowedTags: UserTags[];
|
|
9
10
|
allowedProducts: ProductTypes[];
|
|
@@ -21,6 +22,7 @@ export interface TenantData {
|
|
|
21
22
|
USER_CATEGORIES_CONFIG: Partial<Record<UserCategory, CategoryConfiguration>>;
|
|
22
23
|
COUPONS_TYPE_ALLOWED_TO_BE_CREATED_BY_SELLER: CouponType[];
|
|
23
24
|
COUPONS_TYPE_ALLOWED_TO_BE_CREATED_BY_ADMIN: CouponType[];
|
|
25
|
+
ALLOWED_REGIONS: UserRegion[];
|
|
24
26
|
EMAIL_HOST: string;
|
|
25
27
|
EMAIL_PORT: string;
|
|
26
28
|
EMAIL_USER: string;
|
|
@@ -6,6 +6,7 @@ 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");
|
|
9
10
|
class TenantDataService {
|
|
10
11
|
// Métodos existentes
|
|
11
12
|
static getTenantData(tenant) {
|
|
@@ -74,6 +75,7 @@ TenantDataService.tenantDataMap = {
|
|
|
74
75
|
USER_CATEGORIES_CONFIG: {
|
|
75
76
|
// Defina aqui as categorias específicas para PoliticaBet se houver
|
|
76
77
|
},
|
|
78
|
+
ALLOWED_REGIONS: [userRegion_1.UserRegion.Brasil],
|
|
77
79
|
COUPONS_TYPE_ALLOWED_TO_BE_CREATED_BY_SELLER: [],
|
|
78
80
|
COUPONS_TYPE_ALLOWED_TO_BE_CREATED_BY_ADMIN: [
|
|
79
81
|
couponType_1.CouponType.DepositBonus,
|
|
@@ -109,6 +111,7 @@ TenantDataService.tenantDataMap = {
|
|
|
109
111
|
SOCIAL_YOUTUBE: 'https://youtube.com/outro',
|
|
110
112
|
SOCIAL_INSTAGRAM: 'https://instagram.com/outro',
|
|
111
113
|
SOCIAL_FACEBOOK: 'https://facebook.com/outro',
|
|
114
|
+
ALLOWED_REGIONS: [userRegion_1.UserRegion.Jericoacoara, userRegion_1.UserRegion.MorroDeSaoPaulo],
|
|
112
115
|
USER_CATEGORIES_CONFIG: {
|
|
113
116
|
[userCategory_1.UserCategory.Tour]: {
|
|
114
117
|
allowedTags: userTags_1.TOUR_TAGS,
|
|
@@ -118,13 +121,9 @@ TenantDataService.tenantDataMap = {
|
|
|
118
121
|
allowedTags: userTags_1.RESTAURANT_TAGS,
|
|
119
122
|
allowedProducts: productTypes_1.RESTAURANT_PRODUCTS
|
|
120
123
|
},
|
|
121
|
-
[userCategory_1.UserCategory.
|
|
122
|
-
allowedTags:
|
|
123
|
-
allowedProducts: productTypes_1.
|
|
124
|
-
},
|
|
125
|
-
[userCategory_1.UserCategory.Photographer]: {
|
|
126
|
-
allowedTags: userTags_1.PHOTOGRAPHER_TAGS,
|
|
127
|
-
allowedProducts: productTypes_1.PHOTOGRAPHER_PRODUCTS
|
|
124
|
+
[userCategory_1.UserCategory.HomeServices]: {
|
|
125
|
+
allowedTags: userTags_1.HOME_SERVICES_TAGS,
|
|
126
|
+
allowedProducts: productTypes_1.HOME_SERVICE_PRODUCTS
|
|
128
127
|
},
|
|
129
128
|
[userCategory_1.UserCategory.DayUse]: {
|
|
130
129
|
allowedTags: [],
|
|
@@ -185,6 +184,7 @@ TenantDataService.tenantDataMap = {
|
|
|
185
184
|
SOCIAL_YOUTUBE: 'https://youtube.com/privateshow',
|
|
186
185
|
SOCIAL_INSTAGRAM: 'https://instagram.com/privateshow',
|
|
187
186
|
SOCIAL_FACEBOOK: 'https://facebook.com/privateshow',
|
|
187
|
+
ALLOWED_REGIONS: [userRegion_1.UserRegion.Brasil],
|
|
188
188
|
USER_CATEGORIES_CONFIG: {
|
|
189
189
|
[userCategory_1.UserCategory.Male]: {
|
|
190
190
|
allowedTags: userTags_1.PRIVATE_SHOW_COMMON_TAGS,
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
export declare enum ProductTypes {
|
|
2
2
|
Tour = "Tour",
|
|
3
3
|
BookTable = "BookTable",
|
|
4
|
-
|
|
5
|
-
BookPhotographer = "BookPhotographer",
|
|
4
|
+
BookHomeService = "BookHomeService",
|
|
6
5
|
BookDayUse = "BookDayUse",
|
|
7
6
|
BookTransfer = "BookTransfer",
|
|
8
7
|
BookTourGuide = "BookTourGuide",
|
|
@@ -13,11 +12,10 @@ export declare enum ProductTypes {
|
|
|
13
12
|
}
|
|
14
13
|
export declare const TOUR_PRODUCTS: ProductTypes[];
|
|
15
14
|
export declare const RESTAURANT_PRODUCTS: ProductTypes[];
|
|
16
|
-
export declare const PHOTOGRAPHER_PRODUCTS: ProductTypes[];
|
|
17
15
|
export declare const TRANSFER_PRODUCTS: ProductTypes[];
|
|
18
16
|
export declare const SHOW_PRODUCTS: ProductTypes[];
|
|
19
17
|
export declare const EVENT_PRODUCTS: ProductTypes[];
|
|
20
18
|
export declare const DAY_USE_PRODUCTS: ProductTypes[];
|
|
21
19
|
export declare const TOUR_GUIDE_PRODUCTS: ProductTypes[];
|
|
22
|
-
export declare const
|
|
20
|
+
export declare const HOME_SERVICE_PRODUCTS: ProductTypes[];
|
|
23
21
|
export declare const PRIVATE_SHOW_PRODUCTS: ProductTypes[];
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PRIVATE_SHOW_PRODUCTS = exports.
|
|
3
|
+
exports.PRIVATE_SHOW_PRODUCTS = exports.HOME_SERVICE_PRODUCTS = exports.TOUR_GUIDE_PRODUCTS = exports.DAY_USE_PRODUCTS = exports.EVENT_PRODUCTS = exports.SHOW_PRODUCTS = exports.TRANSFER_PRODUCTS = exports.RESTAURANT_PRODUCTS = exports.TOUR_PRODUCTS = exports.ProductTypes = void 0;
|
|
4
4
|
var ProductTypes;
|
|
5
5
|
(function (ProductTypes) {
|
|
6
6
|
// Tourism
|
|
7
7
|
ProductTypes["Tour"] = "Tour";
|
|
8
8
|
ProductTypes["BookTable"] = "BookTable";
|
|
9
|
-
ProductTypes["
|
|
10
|
-
ProductTypes["BookPhotographer"] = "BookPhotographer";
|
|
9
|
+
ProductTypes["BookHomeService"] = "BookHomeService";
|
|
11
10
|
ProductTypes["BookDayUse"] = "BookDayUse";
|
|
12
11
|
ProductTypes["BookTransfer"] = "BookTransfer";
|
|
13
12
|
ProductTypes["BookTourGuide"] = "BookTourGuide";
|
|
@@ -19,13 +18,12 @@ var ProductTypes;
|
|
|
19
18
|
})(ProductTypes || (exports.ProductTypes = ProductTypes = {}));
|
|
20
19
|
exports.TOUR_PRODUCTS = [ProductTypes.Tour];
|
|
21
20
|
exports.RESTAURANT_PRODUCTS = [ProductTypes.BookTable];
|
|
22
|
-
exports.PHOTOGRAPHER_PRODUCTS = [ProductTypes.BookPhotographer];
|
|
23
21
|
exports.TRANSFER_PRODUCTS = [ProductTypes.BookTransfer];
|
|
24
22
|
exports.SHOW_PRODUCTS = [ProductTypes.SellTickets];
|
|
25
23
|
exports.EVENT_PRODUCTS = [ProductTypes.SellTickets];
|
|
26
24
|
exports.DAY_USE_PRODUCTS = [ProductTypes.BookDayUse];
|
|
27
25
|
exports.TOUR_GUIDE_PRODUCTS = [ProductTypes.BookTourGuide];
|
|
28
|
-
exports.
|
|
26
|
+
exports.HOME_SERVICE_PRODUCTS = [ProductTypes.BookHomeService];
|
|
29
27
|
exports.PRIVATE_SHOW_PRODUCTS = [
|
|
30
28
|
ProductTypes.Live,
|
|
31
29
|
ProductTypes.Photos,
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
export declare enum UserCategory {
|
|
2
|
-
Male = "
|
|
3
|
-
Female = "
|
|
2
|
+
Male = "Male",
|
|
3
|
+
Female = "Female",
|
|
4
4
|
Trans = "Trans",
|
|
5
|
-
Tour = "Tour"
|
|
6
|
-
Restaurant = "Restaurant"
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
Show = "Show",
|
|
5
|
+
Tour = "Tour",// venda de passeios produto 1 (geolocalização do cliente após venda abrir chat)
|
|
6
|
+
Restaurant = "Restaurant",// agendamento de mesas produto 2 (geolocalização da empresa)
|
|
7
|
+
HomeServices = "HomeServices",// serviços a domicilio produto 1 (geolocalização do cliente após venda abrir chat)
|
|
8
|
+
DayUse = "DayUse",// produto 2 (geolocalização da empresa)
|
|
9
|
+
Transfer = "Transfer",// produto 1 (geolocalização do cliente após venda abrir chat)
|
|
10
|
+
TourGuide = "TourGuide",// produto 1 (geolocalização do cliente após venda abrir chat)
|
|
11
|
+
Show = "Show",// produto 3 (geolocalização da empresa, emissão de ticket)
|
|
13
12
|
Event = "Event"
|
|
14
13
|
}
|
|
@@ -3,18 +3,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.UserCategory = void 0;
|
|
4
4
|
var UserCategory;
|
|
5
5
|
(function (UserCategory) {
|
|
6
|
-
// Private show
|
|
7
|
-
UserCategory["Male"] = "
|
|
8
|
-
UserCategory["Female"] = "
|
|
6
|
+
// Private show (venda de imagens e videos)
|
|
7
|
+
UserCategory["Male"] = "Male";
|
|
8
|
+
UserCategory["Female"] = "Female";
|
|
9
9
|
UserCategory["Trans"] = "Trans";
|
|
10
|
-
//
|
|
10
|
+
// Tourisms
|
|
11
11
|
UserCategory["Tour"] = "Tour";
|
|
12
12
|
UserCategory["Restaurant"] = "Restaurant";
|
|
13
|
-
UserCategory["
|
|
14
|
-
UserCategory["Photographer"] = "Photographer";
|
|
13
|
+
UserCategory["HomeServices"] = "HomeServices";
|
|
15
14
|
UserCategory["DayUse"] = "DayUse";
|
|
16
15
|
UserCategory["Transfer"] = "Transfer";
|
|
17
16
|
UserCategory["TourGuide"] = "TourGuide";
|
|
18
17
|
UserCategory["Show"] = "Show";
|
|
19
|
-
UserCategory["Event"] = "Event";
|
|
18
|
+
UserCategory["Event"] = "Event"; // produto 3 (geolocalização da empresa, emissão de ticket)
|
|
20
19
|
})(UserCategory || (exports.UserCategory = UserCategory = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
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 = {}));
|
|
@@ -8,19 +8,19 @@ export declare enum UserTags {
|
|
|
8
8
|
ReligiousTour = "ReligiousTour",
|
|
9
9
|
ShoppingTour = "ShoppingTour",
|
|
10
10
|
AquaticTour = "AquaticTour",
|
|
11
|
+
Photographer = "Photographer",
|
|
11
12
|
Brazilian = "Brazilian",
|
|
12
13
|
Italian = "Italian",
|
|
13
14
|
Japanese = "Japanese",
|
|
14
15
|
Chinese = "Chinese",
|
|
16
|
+
FastFood = "FastFood",
|
|
17
|
+
LocalFood = "LocalFood",
|
|
15
18
|
Mexican = "Mexican",
|
|
16
19
|
Arabic = "Arabic",
|
|
17
20
|
French = "French",
|
|
18
21
|
Indian = "Indian",
|
|
19
22
|
Mediterranean = "Mediterranean",
|
|
20
23
|
Vegetarian = "Vegetarian",
|
|
21
|
-
Wedding = "Wedding",
|
|
22
|
-
Tourism = "Tourism",
|
|
23
|
-
Fashion = "Fashion",
|
|
24
24
|
Air = "Air",
|
|
25
25
|
Sea = "Sea",
|
|
26
26
|
Land = "Land",
|
|
@@ -107,8 +107,8 @@ export declare enum UserTags {
|
|
|
107
107
|
}
|
|
108
108
|
export declare const TOUR_TAGS: UserTags[];
|
|
109
109
|
export declare const RESTAURANT_TAGS: UserTags[];
|
|
110
|
-
export declare const PHOTOGRAPHER_TAGS: UserTags[];
|
|
111
110
|
export declare const TRANSFER_TAGS: UserTags[];
|
|
111
|
+
export declare const HOME_SERVICES_TAGS: UserTags[];
|
|
112
112
|
export declare const SHOW_TAGS: UserTags[];
|
|
113
113
|
export declare const EVENT_TAGS: UserTags[];
|
|
114
114
|
export declare const PRIVATE_SHOW_COMMON_TAGS: UserTags[];
|
package/build/types/userTags.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PRIVATE_SHOW_COMMON_TAGS = exports.EVENT_TAGS = exports.SHOW_TAGS = exports.
|
|
3
|
+
exports.PRIVATE_SHOW_COMMON_TAGS = exports.EVENT_TAGS = exports.SHOW_TAGS = exports.HOME_SERVICES_TAGS = exports.TRANSFER_TAGS = exports.RESTAURANT_TAGS = exports.TOUR_TAGS = exports.UserTags = void 0;
|
|
4
4
|
var UserTags;
|
|
5
5
|
(function (UserTags) {
|
|
6
6
|
// Tour
|
|
@@ -13,21 +13,21 @@ var UserTags;
|
|
|
13
13
|
UserTags["ReligiousTour"] = "ReligiousTour";
|
|
14
14
|
UserTags["ShoppingTour"] = "ShoppingTour";
|
|
15
15
|
UserTags["AquaticTour"] = "AquaticTour";
|
|
16
|
+
// home services
|
|
17
|
+
UserTags["Photographer"] = "Photographer";
|
|
16
18
|
// restaurant
|
|
17
19
|
UserTags["Brazilian"] = "Brazilian";
|
|
18
20
|
UserTags["Italian"] = "Italian";
|
|
19
21
|
UserTags["Japanese"] = "Japanese";
|
|
20
22
|
UserTags["Chinese"] = "Chinese";
|
|
23
|
+
UserTags["FastFood"] = "FastFood";
|
|
24
|
+
UserTags["LocalFood"] = "LocalFood";
|
|
21
25
|
UserTags["Mexican"] = "Mexican";
|
|
22
26
|
UserTags["Arabic"] = "Arabic";
|
|
23
27
|
UserTags["French"] = "French";
|
|
24
28
|
UserTags["Indian"] = "Indian";
|
|
25
29
|
UserTags["Mediterranean"] = "Mediterranean";
|
|
26
30
|
UserTags["Vegetarian"] = "Vegetarian";
|
|
27
|
-
// pohotographer
|
|
28
|
-
UserTags["Wedding"] = "Wedding";
|
|
29
|
-
UserTags["Tourism"] = "Tourism";
|
|
30
|
-
UserTags["Fashion"] = "Fashion";
|
|
31
31
|
// transfer
|
|
32
32
|
UserTags["Air"] = "Air";
|
|
33
33
|
UserTags["Sea"] = "Sea";
|
|
@@ -139,12 +139,8 @@ exports.RESTAURANT_TAGS = [
|
|
|
139
139
|
UserTags.Mediterranean,
|
|
140
140
|
UserTags.Vegetarian
|
|
141
141
|
];
|
|
142
|
-
exports.PHOTOGRAPHER_TAGS = [
|
|
143
|
-
UserTags.Wedding,
|
|
144
|
-
UserTags.Tourism,
|
|
145
|
-
UserTags.Fashion
|
|
146
|
-
];
|
|
147
142
|
exports.TRANSFER_TAGS = [UserTags.Air, UserTags.Sea, UserTags.Land];
|
|
143
|
+
exports.HOME_SERVICES_TAGS = [UserTags.Photographer];
|
|
148
144
|
exports.SHOW_TAGS = [
|
|
149
145
|
UserTags.Pop,
|
|
150
146
|
UserTags.Rock,
|