@wrcb/cb-common 1.0.802 → 1.0.804

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.
@@ -47,9 +47,6 @@ export declare enum Subjects {
47
47
  BetRefunded = "BetRefunded",
48
48
  BetRejected = "BetRejected",
49
49
  PredictionResolved = "PredictionResolved",
50
- PromotionCreated = "PromotionCreated",
51
- PromotionUpdated = "PromotionUpdated",
52
- PromotionExpired = "PromotionExpired",
53
50
  OrderCreated = "OrderCreated",
54
51
  OrderStatusChanged = "OrderStatusChanged",
55
52
  SellerProductCreated = "SellerProductCreated",
@@ -53,10 +53,6 @@ var Subjects;
53
53
  Subjects["BetRefunded"] = "BetRefunded";
54
54
  Subjects["BetRejected"] = "BetRejected";
55
55
  Subjects["PredictionResolved"] = "PredictionResolved";
56
- // promo app
57
- Subjects["PromotionCreated"] = "PromotionCreated";
58
- Subjects["PromotionUpdated"] = "PromotionUpdated";
59
- Subjects["PromotionExpired"] = "PromotionExpired";
60
56
  // compranomia
61
57
  Subjects["OrderCreated"] = "OrderCreated";
62
58
  Subjects["OrderStatusChanged"] = "OrderStatusChanged";
@@ -9,14 +9,5 @@ export declare class RedisService {
9
9
  static userBalanceKey(tenant: Tenant, userId: string): string;
10
10
  static sellerProductDataKey(tenant: Tenant, productId: string): string;
11
11
  static bannedViewerKey(streamerId: string, viewerId: string): string;
12
- static promotionByIdKey(tenant: Tenant, promotionId: string): string;
13
12
  static sellerProfileKey(tenant: Tenant, sellerId: string): string;
14
- static promotionsListKey(params: {
15
- tenant: Tenant;
16
- categoria?: string;
17
- page: number;
18
- limit: number;
19
- isLogged: boolean;
20
- }): string;
21
- static promotionsCategoryPrefix(tenant: Tenant, categoria?: string): string;
22
13
  }
@@ -29,24 +29,8 @@ class RedisService {
29
29
  static bannedViewerKey(streamerId, viewerId) {
30
30
  return `banned:${streamerId}:${viewerId}`;
31
31
  }
32
- static promotionByIdKey(tenant, promotionId) {
33
- return `${tenant}:promotion:${promotionId}`;
34
- }
35
32
  static sellerProfileKey(tenant, sellerId) {
36
33
  return `${tenant}:seller:${sellerId}:profile`;
37
34
  }
38
- static promotionsListKey(params) {
39
- var _a;
40
- const categoria = (_a = params.categoria) !== null && _a !== void 0 ? _a : 'all';
41
- const authScope = params.isLogged ? 'logged' : 'guest';
42
- return (`${params.tenant}:promotions:list:` +
43
- `${categoria}:` +
44
- `${authScope}:` +
45
- `page:${params.page}:` +
46
- `limit:${params.limit}`);
47
- }
48
- static promotionsCategoryPrefix(tenant, categoria) {
49
- return `${tenant}:promotions:list:${categoria !== null && categoria !== void 0 ? categoria : 'all'}`;
50
- }
51
35
  }
52
36
  exports.RedisService = RedisService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wrcb/cb-common",
3
- "version": "1.0.802",
3
+ "version": "1.0.804",
4
4
  "description": "Common resources between services",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",