@wrcb/cb-common 1.0.703 → 1.0.705

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.
@@ -7,7 +7,7 @@ export declare class RedisService {
7
7
  static withdrawSettingsKey(tenant: Tenant): string;
8
8
  static maintenanceSettingsKey(tenant: Tenant): string;
9
9
  static userBalanceKey(tenant: Tenant, userId: string): string;
10
- static productDataKey(tenant: Tenant, productId: string): string;
10
+ static sellerProductDataKey(tenant: Tenant, productId: string): string;
11
11
  static bannedViewerKey(streamerId: string, viewerId: string): string;
12
12
  static promotionByIdKey(tenant: Tenant, promotionId: string): string;
13
13
  static sellerProfileKey(tenant: Tenant, sellerId: string): string;
@@ -23,8 +23,8 @@ class RedisService {
23
23
  static userBalanceKey(tenant, userId) {
24
24
  return tenant + ':' + userId + ':balance';
25
25
  }
26
- static productDataKey(tenant, productId) {
27
- return tenant + ':' + productId + ':product:data';
26
+ static sellerProductDataKey(tenant, productId) {
27
+ return tenant + ':' + productId + 'seller:product:data';
28
28
  }
29
29
  static bannedViewerKey(streamerId, viewerId) {
30
30
  return `banned:${streamerId}:${viewerId}`;
@@ -1,10 +1,7 @@
1
1
  export declare enum MeasurementUnit {
2
- L = "L",
3
- mL = "mL",
4
- g = "g",
5
- Kg = "Kg",
6
2
  Un = "Un",
7
- Pack = "Pack",
8
- Bandeja = "Bandeja",
9
- Pct = "Pct"
3
+ Kg = "Kg",
4
+ g = "g",
5
+ L = "L",
6
+ mL = "mL"
10
7
  }
@@ -3,12 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.MeasurementUnit = void 0;
4
4
  var MeasurementUnit;
5
5
  (function (MeasurementUnit) {
6
+ MeasurementUnit["Un"] = "Un";
7
+ MeasurementUnit["Kg"] = "Kg";
8
+ MeasurementUnit["g"] = "g";
6
9
  MeasurementUnit["L"] = "L";
7
10
  MeasurementUnit["mL"] = "mL";
8
- MeasurementUnit["g"] = "g";
9
- MeasurementUnit["Kg"] = "Kg";
10
- MeasurementUnit["Un"] = "Un";
11
- MeasurementUnit["Pack"] = "Pack";
12
- MeasurementUnit["Bandeja"] = "Bandeja";
13
- MeasurementUnit["Pct"] = "Pct";
14
11
  })(MeasurementUnit || (exports.MeasurementUnit = MeasurementUnit = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wrcb/cb-common",
3
- "version": "1.0.703",
3
+ "version": "1.0.705",
4
4
  "description": "Common resources between services",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",