@ludeo/cloud-common 1.1.138 → 1.1.140-beta

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,12 @@
1
+ import { LudeoEvent } from "../../infra";
2
+ import { CloudSessionContext } from "../contexts";
3
+ declare class CloudSessionOptimalRegionSelectedPayload {
4
+ region: string;
5
+ }
6
+ export declare class CloudSessionOptimalRegionSelected extends LudeoEvent {
7
+ static readonly EVENT_NAME = "cloud-sessions.cloud-session-optimal-region-selected";
8
+ constructor(payload: CloudSessionOptimalRegionSelectedPayload, context: CloudSessionContext);
9
+ context: CloudSessionContext;
10
+ payload: CloudSessionOptimalRegionSelectedPayload;
11
+ }
12
+ export {};
@@ -0,0 +1,40 @@
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.CloudSessionOptimalRegionSelected = void 0;
13
+ const infra_1 = require("../../infra");
14
+ const contexts_1 = require("../contexts");
15
+ const class_validator_1 = require("class-validator");
16
+ const decorators_1 = require("../../decorators");
17
+ class CloudSessionOptimalRegionSelectedPayload {
18
+ }
19
+ __decorate([
20
+ (0, class_validator_1.IsString)(),
21
+ __metadata("design:type", String)
22
+ ], CloudSessionOptimalRegionSelectedPayload.prototype, "region", void 0);
23
+ class CloudSessionOptimalRegionSelected extends infra_1.LudeoEvent {
24
+ constructor(payload, context) {
25
+ super(CloudSessionOptimalRegionSelected.EVENT_NAME);
26
+ this.context = context;
27
+ this.payload = payload;
28
+ }
29
+ }
30
+ exports.CloudSessionOptimalRegionSelected = CloudSessionOptimalRegionSelected;
31
+ CloudSessionOptimalRegionSelected.EVENT_NAME = "cloud-sessions.cloud-session-optimal-region-selected";
32
+ __decorate([
33
+ (0, decorators_1.ValidateNestedType)(() => contexts_1.CloudSessionContext),
34
+ __metadata("design:type", contexts_1.CloudSessionContext)
35
+ ], CloudSessionOptimalRegionSelected.prototype, "context", void 0);
36
+ __decorate([
37
+ (0, decorators_1.ValidateNestedType)(() => CloudSessionOptimalRegionSelectedPayload),
38
+ __metadata("design:type", CloudSessionOptimalRegionSelectedPayload)
39
+ ], CloudSessionOptimalRegionSelected.prototype, "payload", void 0);
40
+ //# sourceMappingURL=cloud-session-optimal-region-selected.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cloud-session-optimal-region-selected.js","sourceRoot":"","sources":["../../../src/v3/events/cloud-session-optimal-region-selected.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uCAAyC;AACzC,0CAAkD;AAClD,qDAA2C;AAC3C,iDAAsD;AAEtD,MAAM,wCAAwC;CAG7C;AADC;IADC,IAAA,0BAAQ,GAAE;;wEACI;AAGjB,MAAa,iCAAkC,SAAQ,kBAAU;IAI/D,YACE,OAAiD,EACjD,OAA4B;QAE5B,KAAK,CAAC,iCAAiC,CAAC,UAAU,CAAC,CAAC;QACpD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAXH,8EAkBC;AAjBiB,4CAAU,GACxB,sDAAsD,CAAC;AAYzD;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,8BAAmB,CAAC;8BACrC,8BAAmB;kEAAC;AAG7B;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,wCAAwC,CAAC;8BAC1D,wCAAwC;kEAAC"}
@@ -69,3 +69,4 @@ export * from "./aws-poll-stream-session-task";
69
69
  export * from "./game-resource-ready-for-creation";
70
70
  export * from "./game-resource-ready-for-creation-failed";
71
71
  export * from "./aws-stream-session-active";
72
+ export * from "./cloud-session-optimal-region-selected";
@@ -85,4 +85,5 @@ __exportStar(require("./aws-poll-stream-session-task"), exports);
85
85
  __exportStar(require("./game-resource-ready-for-creation"), exports);
86
86
  __exportStar(require("./game-resource-ready-for-creation-failed"), exports);
87
87
  __exportStar(require("./aws-stream-session-active"), exports);
88
+ __exportStar(require("./cloud-session-optimal-region-selected"), exports);
88
89
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v3/events/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,mEAAiD;AACjD,6DAA2C;AAC3C,uEAAqD;AACrD,4EAA0D;AAC1D,6DAA2C;AAC3C,qEAAmD;AACnD,iEAA+C;AAC/C,yDAAuC;AACvC,0EAAwD;AACxD,oEAAkD;AAClD,4DAA0C;AAC1C,+DAA6C;AAC7C,mDAAiC;AACjC,4DAA0C;AAC1C,oEAAkD;AAClD,qEAAmD;AACnD,6EAA2D;AAC3D,mEAAiD;AACjD,2EAAyD;AACzD,sEAAoD;AACpD,8EAA4D;AAC5D,6DAA2C;AAC3C,qEAAmD;AACnD,iEAA+C;AAC/C,+DAA6C;AAC7C,uEAAqD;AACrD,iEAA+C;AAC/C,yEAAuD;AACvD,+DAA6C;AAC7C,oFAAkE;AAClE,uFAAqE;AACrE,sEAAoD;AACpD,8EAA4D;AAC5D,yEAAuD;AACvD,6DAA2C;AAC3C,+DAA6C;AAC7C,gDAA8B;AAC9B,4DAA0C;AAC1C,6CAA2B;AAC3B,oDAAkC;AAClC,8DAA4C;AAC5C,mEAAiD;AACjD,4DAA0C;AAC1C,2DAAyC;AACzC,oEAAkD;AAClD,4DAA0C;AAC1C,uEAAqD;AACrD,6EAA2D;AAC3D,+DAA6C;AAC7C,0DAAwC;AACxC,6DAA2C;AAC3C,+DAA6C;AAC7C,sEAAoD;AACpD,yDAAuC;AACvC,6DAA2C;AAC3C,kEAAgD;AAChD,mEAAiD;AACjD,+DAA6C;AAC7C,gEAA8C;AAC9C,oEAAkD;AAClD,0DAAwC;AACxC,4DAA0C;AAC1C,mEAAiD;AACjD,wDAAsC;AACtC,0DAAwC;AACxC,0EAAwD;AACxD,iEAA+C;AAC/C,qEAAmD;AACnD,4EAA0D;AAC1D,8DAA4C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v3/events/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,mEAAiD;AACjD,6DAA2C;AAC3C,uEAAqD;AACrD,4EAA0D;AAC1D,6DAA2C;AAC3C,qEAAmD;AACnD,iEAA+C;AAC/C,yDAAuC;AACvC,0EAAwD;AACxD,oEAAkD;AAClD,4DAA0C;AAC1C,+DAA6C;AAC7C,mDAAiC;AACjC,4DAA0C;AAC1C,oEAAkD;AAClD,qEAAmD;AACnD,6EAA2D;AAC3D,mEAAiD;AACjD,2EAAyD;AACzD,sEAAoD;AACpD,8EAA4D;AAC5D,6DAA2C;AAC3C,qEAAmD;AACnD,iEAA+C;AAC/C,+DAA6C;AAC7C,uEAAqD;AACrD,iEAA+C;AAC/C,yEAAuD;AACvD,+DAA6C;AAC7C,oFAAkE;AAClE,uFAAqE;AACrE,sEAAoD;AACpD,8EAA4D;AAC5D,yEAAuD;AACvD,6DAA2C;AAC3C,+DAA6C;AAC7C,gDAA8B;AAC9B,4DAA0C;AAC1C,6CAA2B;AAC3B,oDAAkC;AAClC,8DAA4C;AAC5C,mEAAiD;AACjD,4DAA0C;AAC1C,2DAAyC;AACzC,oEAAkD;AAClD,4DAA0C;AAC1C,uEAAqD;AACrD,6EAA2D;AAC3D,+DAA6C;AAC7C,0DAAwC;AACxC,6DAA2C;AAC3C,+DAA6C;AAC7C,sEAAoD;AACpD,yDAAuC;AACvC,6DAA2C;AAC3C,kEAAgD;AAChD,mEAAiD;AACjD,+DAA6C;AAC7C,gEAA8C;AAC9C,oEAAkD;AAClD,0DAAwC;AACxC,4DAA0C;AAC1C,mEAAiD;AACjD,wDAAsC;AACtC,0DAAwC;AACxC,0EAAwD;AACxD,iEAA+C;AAC/C,qEAAmD;AACnD,4EAA0D;AAC1D,8DAA4C;AAC5C,0EAAwD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ludeo/cloud-common",
3
- "version": "1.1.138",
3
+ "version": "1.1.140-beta",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "author": "Yahil Didi",
@@ -0,0 +1,29 @@
1
+ import { LudeoEvent } from "../../infra";
2
+ import { CloudSessionContext } from "../contexts";
3
+ import { IsString } from "class-validator";
4
+ import { ValidateNestedType } from "../../decorators";
5
+
6
+ class CloudSessionOptimalRegionSelectedPayload {
7
+ @IsString()
8
+ region: string;
9
+ }
10
+
11
+ export class CloudSessionOptimalRegionSelected extends LudeoEvent {
12
+ static readonly EVENT_NAME =
13
+ "cloud-sessions.cloud-session-optimal-region-selected";
14
+
15
+ constructor(
16
+ payload: CloudSessionOptimalRegionSelectedPayload,
17
+ context: CloudSessionContext,
18
+ ) {
19
+ super(CloudSessionOptimalRegionSelected.EVENT_NAME);
20
+ this.context = context;
21
+ this.payload = payload;
22
+ }
23
+
24
+ @ValidateNestedType(() => CloudSessionContext)
25
+ context: CloudSessionContext;
26
+
27
+ @ValidateNestedType(() => CloudSessionOptimalRegionSelectedPayload)
28
+ payload: CloudSessionOptimalRegionSelectedPayload;
29
+ }
@@ -69,3 +69,4 @@ export * from "./aws-poll-stream-session-task";
69
69
  export * from "./game-resource-ready-for-creation";
70
70
  export * from "./game-resource-ready-for-creation-failed";
71
71
  export * from "./aws-stream-session-active";
72
+ export * from "./cloud-session-optimal-region-selected";