@ludeo/cloud-common 1.2.274 → 1.2.276-beta-yahil-1
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/contexts/cloud-session-context.d.ts +1 -0
- package/dist/v4/contexts/cloud-session-context.js +5 -0
- package/dist/v4/contexts/cloud-session-context.js.map +1 -1
- package/dist/v4/events/allocate-cloud-session-failed.d.ts +2 -1
- package/dist/v4/events/allocate-cloud-session-failed.js +6 -0
- package/dist/v4/events/allocate-cloud-session-failed.js.map +1 -1
- package/package.json +1 -1
- package/src/v4/contexts/cloud-session-context.ts +5 -0
- package/src/v4/events/allocate-cloud-session-failed.ts +8 -2
|
@@ -34,6 +34,11 @@ __decorate([
|
|
|
34
34
|
(0, class_validator_1.IsOptional)(),
|
|
35
35
|
__metadata("design:type", String)
|
|
36
36
|
], CloudSessionContext.prototype, "userId", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_validator_1.IsOptional)(),
|
|
39
|
+
(0, class_validator_1.IsString)(),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], CloudSessionContext.prototype, "socketId", void 0);
|
|
37
42
|
__decorate([
|
|
38
43
|
(0, class_validator_1.IsOptional)(),
|
|
39
44
|
__metadata("design:type", String)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cloud-session-context.js","sourceRoot":"","sources":["../../../src/v4/contexts/cloud-session-context.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuE;AACvE,oCAAyC;AACzC,uDAAkD;AAClD,oGAAqF;AAErF,MAAa,mBAAmB;
|
|
1
|
+
{"version":3,"file":"cloud-session-context.js","sourceRoot":"","sources":["../../../src/v4/contexts/cloud-session-context.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuE;AACvE,oCAAyC;AACzC,uDAAkD;AAClD,oGAAqF;AAErF,MAAa,mBAAmB;CAqG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AA,4BAAU,GAAE;;yDACS;AAGtB;IADC,IAAA,4BAAU,GAAE;;mDACG;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;uDACW;AAIpB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;kDACM;AAIf;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAa,CAAC;8BACxB,+BAAa;0DAAC;AAI9B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;yDACW"}
|
|
@@ -10,7 +10,8 @@ export declare enum AllocateCloudSessionFailureCode {
|
|
|
10
10
|
}
|
|
11
11
|
export declare class AllocateCloudSessionFailedPayload {
|
|
12
12
|
code?: AllocateCloudSessionFailureCode;
|
|
13
|
-
description
|
|
13
|
+
description?: string;
|
|
14
|
+
error?: string;
|
|
14
15
|
stack?: string;
|
|
15
16
|
isRetryable?: boolean;
|
|
16
17
|
}
|
|
@@ -32,9 +32,15 @@ __decorate([
|
|
|
32
32
|
__metadata("design:type", String)
|
|
33
33
|
], AllocateCloudSessionFailedPayload.prototype, "code", void 0);
|
|
34
34
|
__decorate([
|
|
35
|
+
(0, class_validator_1.IsOptional)(),
|
|
35
36
|
(0, class_validator_1.IsString)(),
|
|
36
37
|
__metadata("design:type", String)
|
|
37
38
|
], AllocateCloudSessionFailedPayload.prototype, "description", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, class_validator_1.IsOptional)(),
|
|
41
|
+
(0, class_validator_1.IsString)(),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], AllocateCloudSessionFailedPayload.prototype, "error", void 0);
|
|
38
44
|
__decorate([
|
|
39
45
|
(0, class_validator_1.IsOptional)(),
|
|
40
46
|
(0, class_validator_1.IsString)(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"allocate-cloud-session-failed.js","sourceRoot":"","sources":["../../../src/v4/events/allocate-cloud-session-failed.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA0E;AAC1E,6EAAwE;AACxE,oGAAqF;AACrF,yDAAqD;AAErD,IAAY,+BAaX;AAbD,WAAY,+BAA+B;IAEzC,8EAA2C,CAAA;IAE3C,8EAA2C,CAAA;IAE3C,sGAAmE,CAAA;IAEnE,0GAAuE,CAAA;IAEvE,kFAA+C,CAAA;IAE/C,kFAA+C,CAAA;AACjD,CAAC,EAbW,+BAA+B,+CAA/B,+BAA+B,QAa1C;AAED,MAAa,iCAAiC;
|
|
1
|
+
{"version":3,"file":"allocate-cloud-session-failed.js","sourceRoot":"","sources":["../../../src/v4/events/allocate-cloud-session-failed.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA0E;AAC1E,6EAAwE;AACxE,oGAAqF;AACrF,yDAAqD;AAErD,IAAY,+BAaX;AAbD,WAAY,+BAA+B;IAEzC,8EAA2C,CAAA;IAE3C,8EAA2C,CAAA;IAE3C,sGAAmE,CAAA;IAEnE,0GAAuE,CAAA;IAEvE,kFAA+C,CAAA;IAE/C,kFAA+C,CAAA;AACjD,CAAC,EAbW,+BAA+B,+CAA/B,+BAA+B,QAa1C;AAED,MAAa,iCAAiC;CAyB7C;AAzBD,8EAyBC;AArBC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,+BAA+B,CAAC;;+DACD;AAKvC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;sEACU;AAKrB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;gEACI;AAKf;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;gEACI;AAKf;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;sEACU;AAExB,MAAa,0BAA2B,SAAQ,wBAAU;IAIxD,YACE,OAA0C,EAC1C,OAA4B;QAE5B,KAAK,CAAC,0BAA0B,CAAC,UAAU,CAAC,CAAC;QAC7C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAXH,gEAkBC;AAjBiB,qCAAU,GACxB,uDAAuD,CAAC;AAY1D;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,iCAAiC,CAAC;8BACnD,iCAAiC;2DAAC;AAG3C;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,2CAAmB,CAAC;8BACrC,2CAAmB;2DAAC"}
|
package/package.json
CHANGED
|
@@ -17,6 +17,11 @@ export class CloudSessionContext {
|
|
|
17
17
|
@IsOptional()
|
|
18
18
|
userId?: string;
|
|
19
19
|
|
|
20
|
+
// The player's realtime (Echo) socket — lets the allocator push queue position/ETA updates directly.
|
|
21
|
+
@IsOptional()
|
|
22
|
+
@IsString()
|
|
23
|
+
socketId?: string;
|
|
24
|
+
|
|
20
25
|
@IsOptional()
|
|
21
26
|
gameId?: string;
|
|
22
27
|
|
|
@@ -24,9 +24,15 @@ export class AllocateCloudSessionFailedPayload {
|
|
|
24
24
|
@IsEnum(AllocateCloudSessionFailureCode)
|
|
25
25
|
code?: AllocateCloudSessionFailureCode;
|
|
26
26
|
|
|
27
|
-
// Human-readable failure message.
|
|
27
|
+
// Human-readable failure message. Optional during rollout — old in-flight events carry `error` instead.
|
|
28
|
+
@IsOptional()
|
|
29
|
+
@IsString()
|
|
30
|
+
description?: string;
|
|
31
|
+
|
|
32
|
+
// @deprecated legacy message field, kept so events produced before the rename still parse. Read `description ?? error`.
|
|
33
|
+
@IsOptional()
|
|
28
34
|
@IsString()
|
|
29
|
-
|
|
35
|
+
error?: string;
|
|
30
36
|
|
|
31
37
|
// Optional error stack for debugging (not shown to the player).
|
|
32
38
|
@IsOptional()
|