@ludeo/cloud-common 1.2.276-beta-yahil-2 → 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.
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/v4/events/allocate-cloud-session-request.d.ts +1 -0
- package/dist/v4/events/allocate-cloud-session-request.js +6 -0
- package/dist/v4/events/allocate-cloud-session-request.js.map +1 -1
- package/dist/v4/types/cloud/allocation-request.d.ts +0 -1
- package/dist/v4/types/cloud/allocation-request.js +0 -5
- package/dist/v4/types/cloud/allocation-request.js.map +1 -1
- package/package.json +1 -1
- package/src/v4/events/allocate-cloud-session-request.ts +7 -0
- package/src/v4/types/cloud/allocation-request.ts +0 -6
|
@@ -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;
|
|
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"}
|
|
@@ -41,9 +41,4 @@ __decorate([
|
|
|
41
41
|
(0, class_validator_1.IsOptional)(),
|
|
42
42
|
__metadata("design:type", String)
|
|
43
43
|
], AllocationRequestData.prototype, "cloudProvider", void 0);
|
|
44
|
-
__decorate([
|
|
45
|
-
(0, class_validator_1.IsString)(),
|
|
46
|
-
(0, class_validator_1.IsOptional)(),
|
|
47
|
-
__metadata("design:type", String)
|
|
48
|
-
], AllocationRequestData.prototype, "socketId", void 0);
|
|
49
44
|
//# sourceMappingURL=allocation-request.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"allocation-request.js","sourceRoot":"","sources":["../../../../src/v4/types/cloud/allocation-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAkE;AAElE,oDAAyD;AACzD,yDAG4B;AAC5B,yCAA2C;AAE3C,MAAa,qBAAqB;
|
|
1
|
+
{"version":3,"file":"allocation-request.js","sourceRoot":"","sources":["../../../../src/v4/types/cloud/allocation-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAkE;AAElE,oDAAyD;AACzD,yDAG4B;AAC5B,yCAA2C;AAE3C,MAAa,qBAAqB;CAmBjC;AAnBD,sDAmBC;AAhBC;IAFC,IAAA,+BAAkB,EAAC,yCAAsB,CAAC;IAC1C,IAAA,2BAAS,GAAE;;mEAC+B;AAI3C;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;uDACK;AAIlB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;qDACG;AAGhB;IADC,IAAA,0BAAQ,GAAE;;2DACU;AAIrB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;4DACiB"}
|
package/package.json
CHANGED
|
@@ -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 {
|
|
@@ -26,10 +26,4 @@ export class AllocationRequestData {
|
|
|
26
26
|
@IsString()
|
|
27
27
|
@IsOptional()
|
|
28
28
|
cloudProvider?: CloudProvider;
|
|
29
|
-
|
|
30
|
-
// The player's realtime (Echo) socket — carried in the request body so the allocator can push
|
|
31
|
-
// queue position/ETA updates. Persisted with requestData on the allocation request.
|
|
32
|
-
@IsString()
|
|
33
|
-
@IsOptional()
|
|
34
|
-
socketId?: string;
|
|
35
29
|
}
|