@ludeo/cloud-common 1.2.276-beta-yahil-3 → 1.2.277
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 -1
- package/dist/v4/events/allocate-cloud-session-request.js +0 -1
- package/dist/v4/events/allocate-cloud-session-request.js.map +1 -1
- package/dist/v4/events/build-uploaded.d.ts +2 -0
- package/dist/v4/events/build-uploaded.js +10 -0
- package/dist/v4/events/build-uploaded.js.map +1 -1
- package/package.json +1 -1
- package/src/v4/events/allocate-cloud-session-request.ts +2 -3
- package/src/v4/events/build-uploaded.ts +12 -1
|
@@ -3,7 +3,7 @@ import { CloudSessionContext } from "../contexts";
|
|
|
3
3
|
import { AllocationRequestData } from "../types";
|
|
4
4
|
export declare class AllocateCloudSessionRequestData {
|
|
5
5
|
requestData: AllocationRequestData;
|
|
6
|
-
socketId
|
|
6
|
+
socketId: string;
|
|
7
7
|
}
|
|
8
8
|
export declare class AllocateCloudSessionRequest extends LudeoEvent {
|
|
9
9
|
static readonly EVENT_NAME = "cloud-sessions.allocate-cloud-session-request";
|
|
@@ -24,7 +24,6 @@ __decorate([
|
|
|
24
24
|
], AllocateCloudSessionRequestData.prototype, "requestData", void 0);
|
|
25
25
|
__decorate([
|
|
26
26
|
(0, class_validator_1.IsString)(),
|
|
27
|
-
(0, class_validator_1.IsOptional)(),
|
|
28
27
|
__metadata("design:type", String)
|
|
29
28
|
], AllocateCloudSessionRequestData.prototype, "socketId", void 0);
|
|
30
29
|
class AllocateCloudSessionRequest extends infra_1.LudeoEvent {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"allocate-cloud-session-request.js","sourceRoot":"","sources":["../../../src/v4/events/allocate-cloud-session-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"allocate-cloud-session-request.js","sourceRoot":"","sources":["../../../src/v4/events/allocate-cloud-session-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA2C;AAE3C,uCAAyC;AACzC,0CAAkD;AAClD,iDAAsD;AACtD,oCAAiD;AAEjD,MAAa,+BAA+B;CAO3C;AAPD,0EAOC;AALC;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,6BAAqB,CAAC;8BACnC,6BAAqB;oEAAC;AAInC;IADC,IAAA,0BAAQ,GAAE;;iEACM;AAGnB,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"}
|
|
@@ -3,6 +3,8 @@ import { LudeoEvent } from "../../infra/ludeo-event";
|
|
|
3
3
|
export declare class BuildUploadedPayload {
|
|
4
4
|
buildId: string;
|
|
5
5
|
centralizedPath: string;
|
|
6
|
+
versionId?: string;
|
|
7
|
+
buildVersion?: string;
|
|
6
8
|
}
|
|
7
9
|
export declare class BuildUploaded extends LudeoEvent {
|
|
8
10
|
static readonly EVENT_NAME = "cloud-builds.build-uploaded";
|
|
@@ -25,6 +25,16 @@ __decorate([
|
|
|
25
25
|
(0, class_validator_1.IsString)(),
|
|
26
26
|
__metadata("design:type", String)
|
|
27
27
|
], BuildUploadedPayload.prototype, "centralizedPath", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_validator_1.IsOptional)(),
|
|
30
|
+
(0, class_validator_1.IsString)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], BuildUploadedPayload.prototype, "versionId", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_validator_1.IsOptional)(),
|
|
35
|
+
(0, class_validator_1.IsString)(),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], BuildUploadedPayload.prototype, "buildVersion", void 0);
|
|
28
38
|
class BuildUploaded extends ludeo_event_1.LudeoEvent {
|
|
29
39
|
constructor(payload, context) {
|
|
30
40
|
super(BuildUploaded.EVENT_NAME);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-uploaded.js","sourceRoot":"","sources":["../../../src/v4/events/build-uploaded.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"build-uploaded.js","sourceRoot":"","sources":["../../../src/v4/events/build-uploaded.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAC/D,6DAAyD;AACzD,oGAAqF;AACrF,yDAAqD;AAErD,MAAa,oBAAoB;CAiBhC;AAjBD,oDAiBC;AAfC;IADC,IAAA,wBAAM,GAAE;;qDACO;AAGhB;IADC,IAAA,0BAAQ,GAAE;;6DACa;AAOxB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;uDACQ;AAInB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;0DACW;AAGxB,MAAa,aAAc,SAAQ,wBAAU;IAG3C,YAAY,OAA6B,EAAE,OAAqB;QAC9D,KAAK,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;QAChC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,sCAcC;AAbiB,wBAAU,GAAG,6BAA6B,CAAC;AAS3D;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAAY,CAAC;8BAC9B,4BAAY;8CAAC;AAGtB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,oBAAoB,CAAC;8BACtC,oBAAoB;8CAAC"}
|
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IsString } from "class-validator";
|
|
2
2
|
|
|
3
3
|
import { LudeoEvent } from "../../infra";
|
|
4
4
|
import { CloudSessionContext } from "../contexts";
|
|
@@ -11,8 +11,7 @@ export class AllocateCloudSessionRequestData {
|
|
|
11
11
|
|
|
12
12
|
// The player's realtime (Echo) socket — the allocator saves it on the allocation request to push queue updates.
|
|
13
13
|
@IsString()
|
|
14
|
-
|
|
15
|
-
socketId?: string;
|
|
14
|
+
socketId: string;
|
|
16
15
|
}
|
|
17
16
|
|
|
18
17
|
export class AllocateCloudSessionRequest extends LudeoEvent {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IsUUID, IsString } from "class-validator";
|
|
1
|
+
import { IsUUID, IsString, IsOptional } from "class-validator";
|
|
2
2
|
import { BuildContext } from "../contexts/build-context";
|
|
3
3
|
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
4
4
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
@@ -9,6 +9,17 @@ export class BuildUploadedPayload {
|
|
|
9
9
|
|
|
10
10
|
@IsString()
|
|
11
11
|
centralizedPath: string;
|
|
12
|
+
|
|
13
|
+
// The game version this build belongs to (from the build metadata). Optional for backward
|
|
14
|
+
// compatibility. Lets consumers (e.g. the CRM sync) correlate the upload to a game/version
|
|
15
|
+
// without a follow-up fetch — the build-uploaded event otherwise carried no game identifier.
|
|
16
|
+
@IsOptional()
|
|
17
|
+
@IsString()
|
|
18
|
+
versionId?: string;
|
|
19
|
+
|
|
20
|
+
@IsOptional()
|
|
21
|
+
@IsString()
|
|
22
|
+
buildVersion?: string;
|
|
12
23
|
}
|
|
13
24
|
|
|
14
25
|
export class BuildUploaded extends LudeoEvent {
|