@ludeo/cloud-common 1.2.12 → 1.2.13

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.
@@ -0,0 +1,9 @@
1
+ import { LudeoEvent } from "../../infra";
2
+ import { CloudSessionContext } from "../contexts";
3
+ export type CloudSessionStatsReportPayload = Record<string, string | number>;
4
+ export declare class CloudSessionStatsReport extends LudeoEvent {
5
+ static readonly EVENT_NAME = "cloud-sessions.cloud-session-stats-report";
6
+ constructor(payload: CloudSessionStatsReportPayload, context: CloudSessionContext);
7
+ payload: Record<string, string | number>;
8
+ context: CloudSessionContext;
9
+ }
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.CloudSessionStatsReport = void 0;
13
+ const infra_1 = require("../../infra");
14
+ const decorators_1 = require("../../decorators");
15
+ const types_1 = require("../types");
16
+ const contexts_1 = require("../contexts");
17
+ class CloudSessionStatsReport extends infra_1.LudeoEvent {
18
+ constructor(payload, context) {
19
+ super(CloudSessionStatsReport.EVENT_NAME);
20
+ this.payload = payload;
21
+ this.context = context;
22
+ }
23
+ }
24
+ exports.CloudSessionStatsReport = CloudSessionStatsReport;
25
+ CloudSessionStatsReport.EVENT_NAME = "cloud-sessions.cloud-session-stats-report";
26
+ __decorate([
27
+ (0, decorators_1.ValidateNestedType)(() => types_1.CloudSession),
28
+ __metadata("design:type", Object)
29
+ ], CloudSessionStatsReport.prototype, "payload", void 0);
30
+ __decorate([
31
+ (0, decorators_1.ValidateNestedType)(() => contexts_1.CloudSessionContext),
32
+ __metadata("design:type", contexts_1.CloudSessionContext)
33
+ ], CloudSessionStatsReport.prototype, "context", void 0);
34
+ //# sourceMappingURL=cloud-session-stats-report.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cloud-session-stats-report.js","sourceRoot":"","sources":["../../../src/v4/events/cloud-session-stats-report.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uCAAyC;AACzC,iDAAsD;AACtD,oCAAwC;AACxC,0CAAkD;AAGlD,MAAa,uBAAwB,SAAQ,kBAAU;IAGrD,YACE,OAAuC,EACvC,OAA4B;QAE5B,KAAK,CAAC,uBAAuB,CAAC,UAAU,CAAC,CAAC;QAC1C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,0DAiBC;AAhBiB,kCAAU,GAAG,2CAA2C,CAAC;AAYzE;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,oBAAY,CAAC;;wDACE;AAGzC;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,8BAAmB,CAAC;8BACrC,8BAAmB;wDAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ludeo/cloud-common",
3
- "version": "1.2.12",
3
+ "version": "1.2.13",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "author": "Yahil Didi",
@@ -0,0 +1,24 @@
1
+ import { LudeoEvent } from "../../infra";
2
+ import { ValidateNestedType } from "../../decorators";
3
+ import { CloudSession } from "../types";
4
+ import { CloudSessionContext } from "../contexts";
5
+
6
+ export type CloudSessionStatsReportPayload = Record<string, string | number>;
7
+ export class CloudSessionStatsReport extends LudeoEvent {
8
+ static readonly EVENT_NAME = "cloud-sessions.cloud-session-stats-report";
9
+
10
+ constructor(
11
+ payload: CloudSessionStatsReportPayload,
12
+ context: CloudSessionContext
13
+ ) {
14
+ super(CloudSessionStatsReport.EVENT_NAME);
15
+ this.payload = payload;
16
+ this.context = context;
17
+ }
18
+
19
+ @ValidateNestedType(() => CloudSession)
20
+ payload: Record<string, string | number>;
21
+
22
+ @ValidateNestedType(() => CloudSessionContext)
23
+ context: CloudSessionContext;
24
+ }