@wrcb/cb-common 1.0.434 β†’ 1.0.435

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.
@@ -19,7 +19,7 @@ class Listener {
19
19
  listen() {
20
20
  const subscription = this.client.subscribe(this.subject, this.queueGroupName, this.subscriptionOptions());
21
21
  subscription.on('message', (msg) => {
22
- console.log(`Message received: ${this.subject} / ${this.queueGroupName}`);
22
+ // console.log(`Message received: ${this.subject} / ${this.queueGroupName}`)
23
23
  const parsedData = this.parseMessage(msg);
24
24
  this.onMessage(parsedData, msg);
25
25
  });
@@ -11,7 +11,6 @@ class Publisher {
11
11
  if (err) {
12
12
  return reject(err);
13
13
  }
14
- // console.log('Event published to subject ', this.subject)
15
14
  resolve();
16
15
  });
17
16
  });
@@ -7,11 +7,11 @@ export interface GiftSentEvent {
7
7
  liveId: string;
8
8
  sessionId: string;
9
9
  streamerId: string;
10
- viewerNickName: string;
10
+ streamerNickName: string;
11
11
  viewerId: string;
12
+ viewerNickName: string;
12
13
  giftId: string;
13
14
  giftName: string;
14
- quantity: string;
15
- totalValye: string;
15
+ value: string;
16
16
  };
17
17
  }
package/build/index.d.ts CHANGED
@@ -21,6 +21,7 @@ export * from './types/feedPostType';
21
21
  export * from './types/liveType';
22
22
  export * from './types/liveStatus';
23
23
  export * from './types/sessionStatus';
24
+ export * from './types/giftType';
24
25
  export * from './events/subjects';
25
26
  export * from './services/TenantDataService';
26
27
  export * from './storage/types';
package/build/index.js CHANGED
@@ -37,6 +37,7 @@ __exportStar(require("./types/feedPostType"), exports);
37
37
  __exportStar(require("./types/liveType"), exports);
38
38
  __exportStar(require("./types/liveStatus"), exports);
39
39
  __exportStar(require("./types/sessionStatus"), exports);
40
+ __exportStar(require("./types/giftType"), exports);
40
41
  __exportStar(require("./events/subjects"), exports);
41
42
  __exportStar(require("./services/TenantDataService"), exports);
42
43
  __exportStar(require("./storage/types"), exports);
@@ -0,0 +1,7 @@
1
+ export interface GiftType {
2
+ id: string;
3
+ name: string;
4
+ emoji: string;
5
+ value: number;
6
+ }
7
+ export declare const AVAILABLE_GIFTS: GiftType[];
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AVAILABLE_GIFTS = void 0;
4
+ exports.AVAILABLE_GIFTS = [
5
+ { id: 'rose', name: 'Rose', emoji: '🌹', value: 100 }, // R$ 1,00
6
+ { id: 'kiss', name: 'Kiss', emoji: 'πŸ’‹', value: 200 }, // R$ 2,00
7
+ { id: 'heart', name: 'Heart', emoji: '❀️', value: 500 }, // R$ 5,00
8
+ { id: 'pussy', name: 'Pussy', emoji: 'πŸΈπŸ’§', value: 1000 }, // R$ 10,00
9
+ { id: 'cock', name: 'Cock', emoji: 'πŸ†πŸ’¦', value: 2000 }, // R$ 20,00
10
+ { id: 'crown', name: 'Crown', emoji: 'πŸ‘‘', value: 5000 } // R$ 50,00
11
+ ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wrcb/cb-common",
3
- "version": "1.0.434",
3
+ "version": "1.0.435",
4
4
  "description": "Common resources between services",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",