@wrcb/cb-common 1.0.574 → 1.0.576
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 +1 -1
- package/build/index.js +1 -1
- package/build/server.d.ts +10 -0
- package/build/server.js +10 -0
- package/build/services/TenantDataService.d.ts +1 -1
- package/build/services/TenantDataService.js +10 -10
- package/build/types/{marketStatus.d.ts → categoryStatus.d.ts} +1 -1
- package/build/types/categoryStatus.js +8 -0
- package/build/types/market.d.ts +3 -3
- package/package.json +1 -1
- package/build/types/marketStatus.js +0 -8
package/build/index.d.ts
CHANGED
package/build/index.js
CHANGED
|
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./types/
|
|
17
|
+
__exportStar(require("./types/categoryStatus"), exports);
|
|
18
18
|
__exportStar(require("./types/callFinishReason"), exports);
|
|
19
19
|
__exportStar(require("./types/transactionOperation"), exports);
|
|
20
20
|
__exportStar(require("./types/transactionOperationMode"), exports);
|
package/build/server.d.ts
CHANGED
|
@@ -59,6 +59,16 @@ export * from './events/private-show/userFollowedEvent';
|
|
|
59
59
|
export * from './events/private-show/subscriptionCancelledEvent';
|
|
60
60
|
export * from './events/private-show/subscriptionCreatedEvent';
|
|
61
61
|
export * from './events/private-show/subscriptionUpdatedEvent';
|
|
62
|
+
export * from './events/politica-bet/disputeCreatedEvent';
|
|
63
|
+
export * from './events/politica-bet/disputeResolvedEvent';
|
|
64
|
+
export * from './events/politica-bet/predictionCancelledEvent';
|
|
65
|
+
export * from './events/politica-bet/predictionClosedEvent';
|
|
66
|
+
export * from './events/politica-bet/predictionCreatedEvent';
|
|
67
|
+
export * from './events/politica-bet/predictionResolvedEvent';
|
|
68
|
+
export * from './events/politica-bet/predictionUpdatedEvent';
|
|
69
|
+
export * from './events/politica-bet/suggestionApprovedEvent';
|
|
70
|
+
export * from './events/politica-bet/suggestionCreatedEvent';
|
|
71
|
+
export * from './events/politica-bet/suggestionRejectedEvent';
|
|
62
72
|
export * from './services/RedisService';
|
|
63
73
|
export * from './services/TenantDataService';
|
|
64
74
|
export * from './services/WasabiUploader';
|
package/build/server.js
CHANGED
|
@@ -75,6 +75,16 @@ __exportStar(require("./events/private-show/userFollowedEvent"), exports);
|
|
|
75
75
|
__exportStar(require("./events/private-show/subscriptionCancelledEvent"), exports);
|
|
76
76
|
__exportStar(require("./events/private-show/subscriptionCreatedEvent"), exports);
|
|
77
77
|
__exportStar(require("./events/private-show/subscriptionUpdatedEvent"), exports);
|
|
78
|
+
__exportStar(require("./events/politica-bet/disputeCreatedEvent"), exports);
|
|
79
|
+
__exportStar(require("./events/politica-bet/disputeResolvedEvent"), exports);
|
|
80
|
+
__exportStar(require("./events/politica-bet/predictionCancelledEvent"), exports);
|
|
81
|
+
__exportStar(require("./events/politica-bet/predictionClosedEvent"), exports);
|
|
82
|
+
__exportStar(require("./events/politica-bet/predictionCreatedEvent"), exports);
|
|
83
|
+
__exportStar(require("./events/politica-bet/predictionResolvedEvent"), exports);
|
|
84
|
+
__exportStar(require("./events/politica-bet/predictionUpdatedEvent"), exports);
|
|
85
|
+
__exportStar(require("./events/politica-bet/suggestionApprovedEvent"), exports);
|
|
86
|
+
__exportStar(require("./events/politica-bet/suggestionCreatedEvent"), exports);
|
|
87
|
+
__exportStar(require("./events/politica-bet/suggestionRejectedEvent"), exports);
|
|
78
88
|
__exportStar(require("./services/RedisService"), exports);
|
|
79
89
|
__exportStar(require("./services/TenantDataService"), exports);
|
|
80
90
|
__exportStar(require("./services/WasabiUploader"), exports);
|
|
@@ -101,7 +101,7 @@ export declare class TenantDataService {
|
|
|
101
101
|
static getAllTagsForTenant(tenant: Tenant): (UserTags | PoliticaBetTags)[];
|
|
102
102
|
static getPoliticaBetCategories(): PoliticaBetCategory[];
|
|
103
103
|
static isPoliticaBetCategory(category: string): category is PoliticaBetCategory;
|
|
104
|
-
static getPoliticaBetTagsForCategory(
|
|
104
|
+
static getPoliticaBetTagsForCategory(category: PoliticaBetCategory): PoliticaBetTags[];
|
|
105
105
|
static getAllPoliticaBetTags(): PoliticaBetTags[];
|
|
106
106
|
static getCategoriesForTag(tag: PoliticaBetTags): PoliticaBetCategory[];
|
|
107
107
|
static getRatingCriteria(tenant: Tenant): RatingCriteria | null;
|
|
@@ -8,12 +8,12 @@ const userTags_1 = require("../types/userTags");
|
|
|
8
8
|
const productTypes_1 = require("../types/productTypes");
|
|
9
9
|
const politicaBetCategory_1 = require("../types/politicaBetCategory");
|
|
10
10
|
// ============================================
|
|
11
|
-
// POLITICABET -
|
|
11
|
+
// POLITICABET - CATEGORIES E TAGS
|
|
12
12
|
// ============================================
|
|
13
|
-
// Tags compartilhadas entre
|
|
13
|
+
// Tags compartilhadas entre categories
|
|
14
14
|
var PoliticaBetTags;
|
|
15
15
|
(function (PoliticaBetTags) {
|
|
16
|
-
// Regiões Geográficas (podem ser usadas em vários
|
|
16
|
+
// Regiões Geográficas (podem ser usadas em vários categories)
|
|
17
17
|
PoliticaBetTags["Brazil"] = "Brazil";
|
|
18
18
|
PoliticaBetTags["USA"] = "USA";
|
|
19
19
|
PoliticaBetTags["Europe"] = "Europe";
|
|
@@ -200,7 +200,7 @@ class TenantDataService {
|
|
|
200
200
|
static isPoliticaBetCategory(category) {
|
|
201
201
|
return Object.values(politicaBetCategory_1.PoliticaBetCategory).includes(category);
|
|
202
202
|
}
|
|
203
|
-
static getPoliticaBetTagsForCategory(
|
|
203
|
+
static getPoliticaBetTagsForCategory(category) {
|
|
204
204
|
const tagMap = {
|
|
205
205
|
[politicaBetCategory_1.PoliticaBetCategory.Politics]: exports.POLITICABET_POLITICS_TAGS,
|
|
206
206
|
[politicaBetCategory_1.PoliticaBetCategory.Sports]: exports.POLITICABET_SPORTS_TAGS,
|
|
@@ -211,20 +211,20 @@ class TenantDataService {
|
|
|
211
211
|
[politicaBetCategory_1.PoliticaBetCategory.Weather]: exports.POLITICABET_WEATHER_TAGS,
|
|
212
212
|
[politicaBetCategory_1.PoliticaBetCategory.Entertainment]: exports.POLITICABET_ENTERTAINMENT_TAGS
|
|
213
213
|
};
|
|
214
|
-
return tagMap[
|
|
214
|
+
return tagMap[category];
|
|
215
215
|
}
|
|
216
216
|
static getAllPoliticaBetTags() {
|
|
217
217
|
return Object.values(PoliticaBetTags);
|
|
218
218
|
}
|
|
219
219
|
static getCategoriesForTag(tag) {
|
|
220
|
-
const
|
|
221
|
-
Object.values(politicaBetCategory_1.PoliticaBetCategory).forEach(
|
|
222
|
-
const tags = this.getPoliticaBetTagsForCategory(
|
|
220
|
+
const categories = [];
|
|
221
|
+
Object.values(politicaBetCategory_1.PoliticaBetCategory).forEach(category => {
|
|
222
|
+
const tags = this.getPoliticaBetTagsForCategory(category);
|
|
223
223
|
if (tags.includes(tag)) {
|
|
224
|
-
|
|
224
|
+
categories.push(category);
|
|
225
225
|
}
|
|
226
226
|
});
|
|
227
|
-
return
|
|
227
|
+
return categories;
|
|
228
228
|
}
|
|
229
229
|
// ============================================
|
|
230
230
|
// MÉTODOS DE RATING
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CategoryStatus = void 0;
|
|
4
|
+
var CategoryStatus;
|
|
5
|
+
(function (CategoryStatus) {
|
|
6
|
+
CategoryStatus["Active"] = "Active";
|
|
7
|
+
CategoryStatus["Inactive"] = "Inactive";
|
|
8
|
+
})(CategoryStatus || (exports.CategoryStatus = CategoryStatus = {}));
|
package/build/types/market.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MarketStatus = void 0;
|
|
4
|
-
var MarketStatus;
|
|
5
|
-
(function (MarketStatus) {
|
|
6
|
-
MarketStatus["Active"] = "Active";
|
|
7
|
-
MarketStatus["Inactive"] = "Inactive";
|
|
8
|
-
})(MarketStatus || (exports.MarketStatus = MarketStatus = {}));
|