@ludeo/cloud-common 1.2.276-beta-yahil-1 → 1.2.276-beta-yahil-3

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.
@@ -3,6 +3,7 @@ import { CloudSessionContext } from "../contexts";
3
3
  import { AllocationRequestData } from "../types";
4
4
  export declare class AllocateCloudSessionRequestData {
5
5
  requestData: AllocationRequestData;
6
+ socketId?: string;
6
7
  }
7
8
  export declare class AllocateCloudSessionRequest extends LudeoEvent {
8
9
  static readonly EVENT_NAME = "cloud-sessions.allocate-cloud-session-request";
@@ -10,6 +10,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.AllocateCloudSessionRequest = exports.AllocateCloudSessionRequestData = void 0;
13
+ const class_validator_1 = require("class-validator");
13
14
  const infra_1 = require("../../infra");
14
15
  const contexts_1 = require("../contexts");
15
16
  const decorators_1 = require("../../decorators");
@@ -21,6 +22,11 @@ __decorate([
21
22
  (0, decorators_1.ValidateNestedType)(() => types_1.AllocationRequestData),
22
23
  __metadata("design:type", types_1.AllocationRequestData)
23
24
  ], AllocateCloudSessionRequestData.prototype, "requestData", void 0);
25
+ __decorate([
26
+ (0, class_validator_1.IsString)(),
27
+ (0, class_validator_1.IsOptional)(),
28
+ __metadata("design:type", String)
29
+ ], AllocateCloudSessionRequestData.prototype, "socketId", void 0);
24
30
  class AllocateCloudSessionRequest extends infra_1.LudeoEvent {
25
31
  constructor(payload, context) {
26
32
  super(AllocateCloudSessionRequest.EVENT_NAME);
@@ -1 +1 @@
1
- {"version":3,"file":"allocate-cloud-session-request.js","sourceRoot":"","sources":["../../../src/v4/events/allocate-cloud-session-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uCAAyC;AACzC,0CAAkD;AAClD,iDAAsD;AACtD,oCAAiD;AAEjD,MAAa,+BAA+B;CAG3C;AAHD,0EAGC;AADC;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,6BAAqB,CAAC;8BACnC,6BAAqB;oEAAC;AAGrC,MAAa,2BAA4B,SAAQ,kBAAU;IAGzD,YACE,OAAwC,EACxC,OAA4B;QAE5B,KAAK,CAAC,2BAA2B,CAAC,UAAU,CAAC,CAAC;QAC9C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,kEAiBC;AAhBiB,sCAAU,GAAG,+CAA+C,CAAC;AAY7E;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,+BAA+B,CAAC;8BACjD,+BAA+B;4DAAC;AAGzC;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,8BAAmB,CAAC;8BACrC,8BAAmB;4DAAC"}
1
+ {"version":3,"file":"allocate-cloud-session-request.js","sourceRoot":"","sources":["../../../src/v4/events/allocate-cloud-session-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AAEvD,uCAAyC;AACzC,0CAAkD;AAClD,iDAAsD;AACtD,oCAAiD;AAEjD,MAAa,+BAA+B;CAQ3C;AARD,0EAQC;AANC;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,6BAAqB,CAAC;8BACnC,6BAAqB;oEAAC;AAKnC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;iEACK;AAGpB,MAAa,2BAA4B,SAAQ,kBAAU;IAGzD,YACE,OAAwC,EACxC,OAA4B;QAE5B,KAAK,CAAC,2BAA2B,CAAC,UAAU,CAAC,CAAC;QAC9C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,kEAiBC;AAhBiB,sCAAU,GAAG,+CAA+C,CAAC;AAY7E;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,+BAA+B,CAAC;8BACjD,+BAA+B;4DAAC;AAGzC;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,8BAAmB,CAAC;8BACrC,8BAAmB;4DAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ludeo/cloud-common",
3
- "version": "1.2.276-beta-yahil-1",
3
+ "version": "1.2.276-beta-yahil-3",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "author": "Yahil Didi",
@@ -1,3 +1,5 @@
1
+ import { IsOptional, IsString } from "class-validator";
2
+
1
3
  import { LudeoEvent } from "../../infra";
2
4
  import { CloudSessionContext } from "../contexts";
3
5
  import { ValidateNestedType } from "../../decorators";
@@ -6,6 +8,11 @@ import { AllocationRequestData } from "../types";
6
8
  export class AllocateCloudSessionRequestData {
7
9
  @ValidateNestedType(() => AllocationRequestData)
8
10
  requestData: AllocationRequestData;
11
+
12
+ // The player's realtime (Echo) socket — the allocator saves it on the allocation request to push queue updates.
13
+ @IsString()
14
+ @IsOptional()
15
+ socketId?: string;
9
16
  }
10
17
 
11
18
  export class AllocateCloudSessionRequest extends LudeoEvent {