@ludeo/cloud-common 1.2.40 → 1.2.42-nir
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/cloud-session-allocated.d.ts +4 -0
- package/dist/v4/events/cloud-session-allocated.js +16 -0
- package/dist/v4/events/cloud-session-allocated.js.map +1 -1
- package/dist/v4/events/deallocate-game-request.d.ts +15 -0
- package/dist/v4/events/deallocate-game-request.js +58 -0
- package/dist/v4/events/deallocate-game-request.js.map +1 -0
- package/dist/v4/events/index.d.ts +2 -0
- package/dist/v4/events/index.js +2 -0
- package/dist/v4/events/index.js.map +1 -1
- package/dist/v4/events/ludeo-allocated-response.d.ts +5 -0
- package/dist/v4/events/ludeo-allocated-response.js +21 -0
- package/dist/v4/events/ludeo-allocated-response.js.map +1 -1
- package/dist/v4/events/swap-cloud-user-gameplay-request-failed.d.ts +16 -0
- package/dist/v4/events/swap-cloud-user-gameplay-request-failed.js +61 -0
- package/dist/v4/events/swap-cloud-user-gameplay-request-failed.js.map +1 -0
- package/dist/v4/events/swap-cloud-user-gameplay-request.d.ts +15 -0
- package/dist/v4/events/swap-cloud-user-gameplay-request.js +57 -0
- package/dist/v4/events/swap-cloud-user-gameplay-request.js.map +1 -0
- package/dist/v4/events/swap-cloud-user-request.d.ts +0 -1
- package/dist/v4/events/swap-cloud-user-request.js +0 -4
- package/dist/v4/events/swap-cloud-user-request.js.map +1 -1
- package/dist/v4/events/terminate-cloud-session-request.d.ts +5 -0
- package/dist/v4/events/terminate-cloud-session-request.js +20 -0
- package/dist/v4/events/terminate-cloud-session-request.js.map +1 -1
- package/package.json +1 -1
- package/src/v4/events/cloud-session-allocated.ts +14 -2
- package/src/v4/events/deallocate-game-request.ts +45 -0
- package/src/v4/events/index.ts +2 -0
- package/src/v4/events/ludeo-allocated-response.ts +16 -0
- package/src/v4/events/swap-cloud-user-gameplay-request-failed.ts +45 -0
- package/src/v4/events/swap-cloud-user-gameplay-request.ts +42 -0
- package/src/v4/events/swap-cloud-user-request.ts +0 -3
- package/src/v4/events/terminate-cloud-session-request.ts +16 -1
|
@@ -4,6 +4,10 @@ import { CloudProviderAllocationData } from "../types";
|
|
|
4
4
|
export declare class CloudSessionAllocatedPayload {
|
|
5
5
|
allocationData?: CloudProviderAllocationData;
|
|
6
6
|
region?: string;
|
|
7
|
+
gamePoolId: string;
|
|
8
|
+
gameResourceId: string;
|
|
9
|
+
ludeoPoolId: string;
|
|
10
|
+
ludeoResourceId: string;
|
|
7
11
|
}
|
|
8
12
|
export declare class CloudSessionAllocated extends LudeoEvent {
|
|
9
13
|
static readonly EVENT_NAME = "cloud-session-allocator.cloud-session-allocated";
|
|
@@ -27,6 +27,22 @@ __decorate([
|
|
|
27
27
|
(0, class_validator_1.IsOptional)(),
|
|
28
28
|
__metadata("design:type", String)
|
|
29
29
|
], CloudSessionAllocatedPayload.prototype, "region", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_validator_1.IsUUID)(),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], CloudSessionAllocatedPayload.prototype, "gamePoolId", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, class_validator_1.IsUUID)(),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], CloudSessionAllocatedPayload.prototype, "gameResourceId", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, class_validator_1.IsUUID)(),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], CloudSessionAllocatedPayload.prototype, "ludeoPoolId", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, class_validator_1.IsUUID)(),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], CloudSessionAllocatedPayload.prototype, "ludeoResourceId", void 0);
|
|
30
46
|
class CloudSessionAllocated extends ludeo_event_1.LudeoEvent {
|
|
31
47
|
constructor(payload, context) {
|
|
32
48
|
super(CloudSessionAllocated.EVENT_NAME);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cloud-session-allocated.js","sourceRoot":"","sources":["../../../src/v4/events/cloud-session-allocated.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6EAAwE;AACxE,oGAAqF;AACrF,yDAAqD;AACrD,oCAA0E;AAC1E,
|
|
1
|
+
{"version":3,"file":"cloud-session-allocated.js","sourceRoot":"","sources":["../../../src/v4/events/cloud-session-allocated.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6EAAwE;AACxE,oGAAqF;AACrF,yDAAqD;AACrD,oCAA0E;AAC1E,qDAA+D;AAE/D,MAAa,4BAA4B;CAmBxC;AAnBD,oEAmBC;AAjBC;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,yBAAiB,CAAC;;oEACC;AAI7C;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;4DACG;AAGhB;IADC,IAAA,wBAAM,GAAE;;gEACU;AAGnB;IADC,IAAA,wBAAM,GAAE;;oEACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;iEACW;AAGpB;IADC,IAAA,wBAAM,GAAE;;qEACe;AAG1B,MAAa,qBAAsB,SAAQ,wBAAU;IAInD,YACE,OAAqC,EACrC,OAA4B;QAE5B,KAAK,CAAC,qBAAqB,CAAC,UAAU,CAAC,CAAC;QACxC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAXH,sDAkBC;AAjBiB,gCAAU,GACxB,iDAAiD,CAAC;AAYpD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAA4B,CAAC;8BAC9C,4BAA4B;sDAAC;AAGtC;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,2CAAmB,CAAC;8BACrC,2CAAmB;sDAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { LudeoEvent } from "@ludeo/cloud-common";
|
|
2
|
+
import { CloudResourceContext, CloudSessionContext } from "../contexts";
|
|
3
|
+
export declare class DeallocateGameRequestPayload {
|
|
4
|
+
gamePoolId: string;
|
|
5
|
+
gameResourceId: string;
|
|
6
|
+
ludeoPoolId: string;
|
|
7
|
+
ludeoResourceId: string;
|
|
8
|
+
shouldTerminate: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare class DeallocateGameRequest extends LudeoEvent {
|
|
11
|
+
static readonly EVENT_NAME = "cloud-pools.deallocate-game-request";
|
|
12
|
+
constructor(payload: DeallocateGameRequestPayload, context: CloudSessionContext | CloudResourceContext);
|
|
13
|
+
payload: DeallocateGameRequestPayload;
|
|
14
|
+
context: CloudSessionContext | CloudResourceContext;
|
|
15
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
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.DeallocateGameRequest = exports.DeallocateGameRequestPayload = void 0;
|
|
13
|
+
const cloud_common_1 = require("@ludeo/cloud-common");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const contexts_1 = require("../contexts");
|
|
16
|
+
const decorators_1 = require("../../decorators");
|
|
17
|
+
class DeallocateGameRequestPayload {
|
|
18
|
+
}
|
|
19
|
+
exports.DeallocateGameRequestPayload = DeallocateGameRequestPayload;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_validator_1.IsUUID)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], DeallocateGameRequestPayload.prototype, "gamePoolId", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsUUID)(),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], DeallocateGameRequestPayload.prototype, "gameResourceId", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_validator_1.IsUUID)(),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], DeallocateGameRequestPayload.prototype, "ludeoPoolId", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsUUID)(),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], DeallocateGameRequestPayload.prototype, "ludeoResourceId", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, class_validator_1.IsBoolean)(),
|
|
38
|
+
(0, class_validator_1.IsOptional)(),
|
|
39
|
+
__metadata("design:type", Boolean)
|
|
40
|
+
], DeallocateGameRequestPayload.prototype, "shouldTerminate", void 0);
|
|
41
|
+
class DeallocateGameRequest extends cloud_common_1.LudeoEvent {
|
|
42
|
+
constructor(payload, context) {
|
|
43
|
+
super(DeallocateGameRequest.EVENT_NAME);
|
|
44
|
+
this.payload = payload;
|
|
45
|
+
this.context = context;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
exports.DeallocateGameRequest = DeallocateGameRequest;
|
|
49
|
+
DeallocateGameRequest.EVENT_NAME = "cloud-pools.deallocate-game-request";
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, decorators_1.ValidateNestedType)(() => DeallocateGameRequestPayload),
|
|
52
|
+
__metadata("design:type", DeallocateGameRequestPayload)
|
|
53
|
+
], DeallocateGameRequest.prototype, "payload", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, decorators_1.ValidateNestedType)(contexts_1.getCloudContextType),
|
|
56
|
+
__metadata("design:type", Object)
|
|
57
|
+
], DeallocateGameRequest.prototype, "context", void 0);
|
|
58
|
+
//# sourceMappingURL=deallocate-game-request.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deallocate-game-request.js","sourceRoot":"","sources":["../../../src/v4/events/deallocate-game-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,sDAAiD;AACjD,qDAAgE;AAChE,0CAIqB;AACrB,iDAAsD;AAEtD,MAAa,4BAA4B;CAgBxC;AAhBD,oEAgBC;AAdC;IADC,IAAA,wBAAM,GAAE;;gEACU;AAGnB;IADC,IAAA,wBAAM,GAAE;;oEACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;iEACW;AAGpB;IADC,IAAA,wBAAM,GAAE;;qEACe;AAIxB;IAFC,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;qEACY;AAG3B,MAAa,qBAAsB,SAAQ,yBAAU;IAGnD,YACE,OAAqC,EACrC,OAAmD;QAEnD,KAAK,CAAC,qBAAqB,CAAC,UAAU,CAAC,CAAC;QACxC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,sDAiBC;AAhBiB,gCAAU,GAAG,qCAAqC,CAAC;AAYnE;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,4BAA4B,CAAC;8BAC9C,4BAA4B;sDAAC;AAGtC;IADC,IAAA,+BAAkB,EAAC,8BAAmB,CAAC;;sDACY"}
|
|
@@ -92,3 +92,5 @@ export * from "./cloud-session-stats-report";
|
|
|
92
92
|
export * from "./mark-game-available";
|
|
93
93
|
export * from "./gameplay-ready-timeout-task";
|
|
94
94
|
export * from "./no-user-connection-timeout-task";
|
|
95
|
+
export * from "./swap-cloud-user-gameplay-request";
|
|
96
|
+
export * from "./swap-cloud-user-gameplay-request-failed";
|
package/dist/v4/events/index.js
CHANGED
|
@@ -108,4 +108,6 @@ __exportStar(require("./cloud-session-stats-report"), exports);
|
|
|
108
108
|
__exportStar(require("./mark-game-available"), exports);
|
|
109
109
|
__exportStar(require("./gameplay-ready-timeout-task"), exports);
|
|
110
110
|
__exportStar(require("./no-user-connection-timeout-task"), exports);
|
|
111
|
+
__exportStar(require("./swap-cloud-user-gameplay-request"), exports);
|
|
112
|
+
__exportStar(require("./swap-cloud-user-gameplay-request-failed"), exports);
|
|
111
113
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v4/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,2EAAyD;AACzD,iEAA+C;AAC/C,qEAAmD;AACnD,4EAA0D;AAC1D,8DAA4C;AAC5C,0EAAwD;AACxD,0DAAwC;AACxC,oEAAkD;AAClD,8DAA4C;AAC5C,wDAAsC;AACtC,6DAA2C;AAC3C,4DAA0C;AAC1C,sEAAoD;AACpD,qEAAmD;AACnD,0DAAwC;AACxC,kEAAgD;AAChD,yDAAuC;AACvC,mEAAiD;AACjD,2DAAyC;AACzC,oEAAkD;AAClD,6DAA2C;AAC3C,yDAAuC;AACvC,+DAA6C;AAC7C,wEAAsD;AACtD,+DAA6C;AAC7C,wDAAsC;AACtC,gEAA8C;AAC9C,oEAAkD"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v4/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,2EAAyD;AACzD,iEAA+C;AAC/C,qEAAmD;AACnD,4EAA0D;AAC1D,8DAA4C;AAC5C,0EAAwD;AACxD,0DAAwC;AACxC,oEAAkD;AAClD,8DAA4C;AAC5C,wDAAsC;AACtC,6DAA2C;AAC3C,4DAA0C;AAC1C,sEAAoD;AACpD,qEAAmD;AACnD,0DAAwC;AACxC,kEAAgD;AAChD,yDAAuC;AACvC,mEAAiD;AACjD,2DAAyC;AACzC,oEAAkD;AAClD,6DAA2C;AAC3C,yDAAuC;AACvC,+DAA6C;AAC7C,wEAAsD;AACtD,+DAA6C;AAC7C,wDAAsC;AACtC,gEAA8C;AAC9C,oEAAkD;AAClD,qEAAmD;AACnD,4EAA0D"}
|
|
@@ -3,6 +3,11 @@ import { CloudSessionContext } from "../contexts";
|
|
|
3
3
|
import { CloudProviderAllocationData } from "../types";
|
|
4
4
|
export declare class LudeoAllocatedResponsePayload {
|
|
5
5
|
allocationData: CloudProviderAllocationData;
|
|
6
|
+
cloudSessionId: string;
|
|
7
|
+
gamePoolId: string;
|
|
8
|
+
gameResourceId: string;
|
|
9
|
+
ludeoPoolId: string;
|
|
10
|
+
ludeoResourceId: string;
|
|
6
11
|
}
|
|
7
12
|
export declare class LudeoAllocatedResponse extends LudeoEvent {
|
|
8
13
|
static readonly EVENT_NAME = "cloud-pools.ludeo-allocated-response";
|
|
@@ -14,6 +14,7 @@ const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
|
14
14
|
const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
15
15
|
const contexts_1 = require("../contexts");
|
|
16
16
|
const types_1 = require("../types");
|
|
17
|
+
const class_validator_1 = require("class-validator");
|
|
17
18
|
class LudeoAllocatedResponsePayload {
|
|
18
19
|
}
|
|
19
20
|
exports.LudeoAllocatedResponsePayload = LudeoAllocatedResponsePayload;
|
|
@@ -21,6 +22,26 @@ __decorate([
|
|
|
21
22
|
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.AwsAllocationData),
|
|
22
23
|
__metadata("design:type", Object)
|
|
23
24
|
], LudeoAllocatedResponsePayload.prototype, "allocationData", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsUUID)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], LudeoAllocatedResponsePayload.prototype, "cloudSessionId", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_validator_1.IsUUID)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], LudeoAllocatedResponsePayload.prototype, "gamePoolId", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_validator_1.IsUUID)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], LudeoAllocatedResponsePayload.prototype, "gameResourceId", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_validator_1.IsUUID)(),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], LudeoAllocatedResponsePayload.prototype, "ludeoPoolId", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, class_validator_1.IsUUID)(),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], LudeoAllocatedResponsePayload.prototype, "ludeoResourceId", void 0);
|
|
24
45
|
class LudeoAllocatedResponse extends ludeo_event_1.LudeoEvent {
|
|
25
46
|
constructor(payload, context) {
|
|
26
47
|
super(LudeoAllocatedResponse.EVENT_NAME);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ludeo-allocated-response.js","sourceRoot":"","sources":["../../../src/v4/events/ludeo-allocated-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAqD;AACrD,oGAAqF;AACrF,0CAAkD;AAClD,oCAA0E;
|
|
1
|
+
{"version":3,"file":"ludeo-allocated-response.js","sourceRoot":"","sources":["../../../src/v4/events/ludeo-allocated-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAqD;AACrD,oGAAqF;AACrF,0CAAkD;AAClD,oCAA0E;AAC1E,qDAAyC;AAEzC,MAAa,6BAA6B;CAkBzC;AAlBD,sEAkBC;AAhBC;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,yBAAiB,CAAC;;qEACA;AAG5C;IADC,IAAA,wBAAM,GAAE;;qEACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;iEACU;AAGnB;IADC,IAAA,wBAAM,GAAE;;qEACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;kEACW;AAGpB;IADC,IAAA,wBAAM,GAAE;;sEACe;AAG1B,MAAa,sBAAuB,SAAQ,wBAAU;IAGpD,YACE,OAAsC,EACtC,OAA4B;QAE5B,KAAK,CAAC,sBAAsB,CAAC,UAAU,CAAC,CAAC;QACzC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,wDAiBC;AAhBiB,iCAAU,GAAG,sCAAsC,CAAC;AAYpE;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,8BAAmB,CAAC;8BACrC,8BAAmB;uDAAC;AAG7B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,6BAA6B,CAAC;8BAC/C,6BAA6B;uDAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { CloudSessionContext } from "../contexts";
|
|
2
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
3
|
+
export declare class SwapCloudUserGameplayRequestFailedPayload {
|
|
4
|
+
userId: string;
|
|
5
|
+
gameResourceId: string;
|
|
6
|
+
gameplayId: string;
|
|
7
|
+
errorMessage: string;
|
|
8
|
+
ludeoResourceId: string;
|
|
9
|
+
cloudSessionId: string;
|
|
10
|
+
}
|
|
11
|
+
export declare class SwapCloudUserGameplayRequestFailed extends LudeoEvent {
|
|
12
|
+
static readonly EVENT_NAME = "cloud-resources.swap-cloud-user-gameplay-request-failed";
|
|
13
|
+
constructor(payload: SwapCloudUserGameplayRequestFailedPayload, context: CloudSessionContext);
|
|
14
|
+
context: CloudSessionContext;
|
|
15
|
+
payload: SwapCloudUserGameplayRequestFailedPayload;
|
|
16
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
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.SwapCloudUserGameplayRequestFailed = exports.SwapCloudUserGameplayRequestFailedPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const contexts_1 = require("../contexts");
|
|
15
|
+
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
16
|
+
const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
17
|
+
class SwapCloudUserGameplayRequestFailedPayload {
|
|
18
|
+
}
|
|
19
|
+
exports.SwapCloudUserGameplayRequestFailedPayload = SwapCloudUserGameplayRequestFailedPayload;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_validator_1.IsUUID)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], SwapCloudUserGameplayRequestFailedPayload.prototype, "userId", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsUUID)(),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], SwapCloudUserGameplayRequestFailedPayload.prototype, "gameResourceId", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_validator_1.IsUUID)(),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], SwapCloudUserGameplayRequestFailedPayload.prototype, "gameplayId", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsString)(),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], SwapCloudUserGameplayRequestFailedPayload.prototype, "errorMessage", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, class_validator_1.IsUUID)(),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], SwapCloudUserGameplayRequestFailedPayload.prototype, "ludeoResourceId", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, class_validator_1.IsUUID)(),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], SwapCloudUserGameplayRequestFailedPayload.prototype, "cloudSessionId", void 0);
|
|
44
|
+
class SwapCloudUserGameplayRequestFailed extends ludeo_event_1.LudeoEvent {
|
|
45
|
+
constructor(payload, context) {
|
|
46
|
+
super(SwapCloudUserGameplayRequestFailed.EVENT_NAME);
|
|
47
|
+
this.payload = payload;
|
|
48
|
+
this.context = context;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.SwapCloudUserGameplayRequestFailed = SwapCloudUserGameplayRequestFailed;
|
|
52
|
+
SwapCloudUserGameplayRequestFailed.EVENT_NAME = "cloud-resources.swap-cloud-user-gameplay-request-failed";
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.CloudSessionContext),
|
|
55
|
+
__metadata("design:type", contexts_1.CloudSessionContext)
|
|
56
|
+
], SwapCloudUserGameplayRequestFailed.prototype, "context", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => SwapCloudUserGameplayRequestFailedPayload),
|
|
59
|
+
__metadata("design:type", SwapCloudUserGameplayRequestFailedPayload)
|
|
60
|
+
], SwapCloudUserGameplayRequestFailed.prototype, "payload", void 0);
|
|
61
|
+
//# sourceMappingURL=swap-cloud-user-gameplay-request-failed.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"swap-cloud-user-gameplay-request-failed.js","sourceRoot":"","sources":["../../../src/v4/events/swap-cloud-user-gameplay-request-failed.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmD;AAEnD,0CAAkD;AAClD,yDAAqD;AACrD,oGAAqF;AAErF,MAAa,yCAAyC;CAkBrD;AAlBD,8FAkBC;AAhBC;IADC,IAAA,wBAAM,GAAE;;yEACM;AAGf;IADC,IAAA,wBAAM,GAAE;;iFACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;6EACU;AAGnB;IADC,IAAA,0BAAQ,GAAE;;+EACU;AAGrB;IADC,IAAA,wBAAM,GAAE;;kFACe;AAGxB;IADC,IAAA,wBAAM,GAAE;;iFACc;AAGzB,MAAa,kCAAmC,SAAQ,wBAAU;IAIhE,YACE,OAAkD,EAClD,OAA4B;QAE5B,KAAK,CAAC,kCAAkC,CAAC,UAAU,CAAC,CAAC;QACrD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAXH,gFAkBC;AAjBiB,6CAAU,GACxB,yDAAyD,CAAC;AAY5D;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,8BAAmB,CAAC;8BACrC,8BAAmB;mEAAC;AAG7B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,yCAAyC,CAAC;8BAC3D,yCAAyC;mEAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { CloudSessionContext } from "../contexts";
|
|
2
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
3
|
+
export declare class SwapCloudUserGameplayRequestPayload {
|
|
4
|
+
userId: string;
|
|
5
|
+
gameResourceId: string;
|
|
6
|
+
gameplayId: string;
|
|
7
|
+
ludeoResourceId: string;
|
|
8
|
+
cloudSessionId: string;
|
|
9
|
+
}
|
|
10
|
+
export declare class SwapCloudUserGameplayRequest extends LudeoEvent {
|
|
11
|
+
static readonly EVENT_NAME = "cloud-resources.swap-cloud-user-gameplay-request";
|
|
12
|
+
constructor(payload: SwapCloudUserGameplayRequestPayload, context: CloudSessionContext);
|
|
13
|
+
context: CloudSessionContext;
|
|
14
|
+
payload: SwapCloudUserGameplayRequestPayload;
|
|
15
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
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.SwapCloudUserGameplayRequest = exports.SwapCloudUserGameplayRequestPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const contexts_1 = require("../contexts");
|
|
15
|
+
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
16
|
+
const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
17
|
+
class SwapCloudUserGameplayRequestPayload {
|
|
18
|
+
}
|
|
19
|
+
exports.SwapCloudUserGameplayRequestPayload = SwapCloudUserGameplayRequestPayload;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_validator_1.IsUUID)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], SwapCloudUserGameplayRequestPayload.prototype, "userId", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsUUID)(),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], SwapCloudUserGameplayRequestPayload.prototype, "gameResourceId", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_validator_1.IsUUID)(),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], SwapCloudUserGameplayRequestPayload.prototype, "gameplayId", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsUUID)(),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], SwapCloudUserGameplayRequestPayload.prototype, "ludeoResourceId", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, class_validator_1.IsUUID)(),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], SwapCloudUserGameplayRequestPayload.prototype, "cloudSessionId", void 0);
|
|
40
|
+
class SwapCloudUserGameplayRequest extends ludeo_event_1.LudeoEvent {
|
|
41
|
+
constructor(payload, context) {
|
|
42
|
+
super(SwapCloudUserGameplayRequest.EVENT_NAME);
|
|
43
|
+
this.payload = payload;
|
|
44
|
+
this.context = context;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
exports.SwapCloudUserGameplayRequest = SwapCloudUserGameplayRequest;
|
|
48
|
+
SwapCloudUserGameplayRequest.EVENT_NAME = "cloud-resources.swap-cloud-user-gameplay-request";
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.CloudSessionContext),
|
|
51
|
+
__metadata("design:type", contexts_1.CloudSessionContext)
|
|
52
|
+
], SwapCloudUserGameplayRequest.prototype, "context", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => SwapCloudUserGameplayRequestPayload),
|
|
55
|
+
__metadata("design:type", SwapCloudUserGameplayRequestPayload)
|
|
56
|
+
], SwapCloudUserGameplayRequest.prototype, "payload", void 0);
|
|
57
|
+
//# sourceMappingURL=swap-cloud-user-gameplay-request.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"swap-cloud-user-gameplay-request.js","sourceRoot":"","sources":["../../../src/v4/events/swap-cloud-user-gameplay-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyC;AAEzC,0CAAkD;AAClD,yDAAqD;AACrD,oGAAqF;AAErF,MAAa,mCAAmC;CAe/C;AAfD,kFAeC;AAbC;IADC,IAAA,wBAAM,GAAE;;mEACM;AAGf;IADC,IAAA,wBAAM,GAAE;;2EACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;uEACU;AAGnB;IADC,IAAA,wBAAM,GAAE;;4EACe;AAGxB;IADC,IAAA,wBAAM,GAAE;;2EACc;AAGzB,MAAa,4BAA6B,SAAQ,wBAAU;IAI1D,YACE,OAA4C,EAC5C,OAA4B;QAE5B,KAAK,CAAC,4BAA4B,CAAC,UAAU,CAAC,CAAC;QAC/C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAXH,oEAkBC;AAjBiB,uCAAU,GACxB,kDAAkD,CAAC;AAYrD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,8BAAmB,CAAC;8BACrC,8BAAmB;6DAAC;AAG7B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,mCAAmC,CAAC;8BACrD,mCAAmC;6DAAC"}
|
|
@@ -5,7 +5,6 @@ export declare class SwapCloudUserRequestPayload {
|
|
|
5
5
|
defaultUserSessionToken: string;
|
|
6
6
|
actualUserSessionToken?: string;
|
|
7
7
|
ludeoResourceId: string;
|
|
8
|
-
gameplayId: string;
|
|
9
8
|
}
|
|
10
9
|
export declare class SwapCloudUserRequest extends LudeoEvent {
|
|
11
10
|
static readonly EVENT_NAME = "cloud-resources.swap-cloud-user-request";
|
|
@@ -34,10 +34,6 @@ __decorate([
|
|
|
34
34
|
(0, class_validator_1.IsUUID)(),
|
|
35
35
|
__metadata("design:type", String)
|
|
36
36
|
], SwapCloudUserRequestPayload.prototype, "ludeoResourceId", void 0);
|
|
37
|
-
__decorate([
|
|
38
|
-
(0, class_validator_1.IsUUID)(),
|
|
39
|
-
__metadata("design:type", String)
|
|
40
|
-
], SwapCloudUserRequestPayload.prototype, "gameplayId", void 0);
|
|
41
37
|
class SwapCloudUserRequest extends ludeo_event_1.LudeoEvent {
|
|
42
38
|
constructor(payload, context) {
|
|
43
39
|
super(SwapCloudUserRequest.EVENT_NAME);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"swap-cloud-user-request.js","sourceRoot":"","sources":["../../../src/v4/events/swap-cloud-user-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAE/D,0CAAkD;AAClD,yDAAqD;AACrD,oGAAqF;AAErF,MAAa,2BAA2B;
|
|
1
|
+
{"version":3,"file":"swap-cloud-user-request.js","sourceRoot":"","sources":["../../../src/v4/events/swap-cloud-user-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAE/D,0CAAkD;AAClD,yDAAqD;AACrD,oGAAqF;AAErF,MAAa,2BAA2B;CAavC;AAbD,kEAaC;AAXC;IADC,IAAA,wBAAM,GAAE;;iEACY;AAGrB;IADC,IAAA,0BAAQ,GAAE;;4EACqB;AAIhC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;2EACqB;AAGhC;IADC,IAAA,wBAAM,GAAE;;oEACe;AAG1B,MAAa,oBAAqB,SAAQ,wBAAU;IAGlD,YACE,OAAoC,EACpC,OAA4B;QAE5B,KAAK,CAAC,oBAAoB,CAAC,UAAU,CAAC,CAAC;QACvC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,oDAiBC;AAhBiB,+BAAU,GAAG,yCAAyC,CAAC;AAYvE;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,8BAAmB,CAAC;8BACrC,8BAAmB;qDAAC;AAG7B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,2BAA2B,CAAC;8BAC7C,2BAA2B;qDAAC"}
|
|
@@ -3,6 +3,11 @@ import { LudeoEvent } from "../../infra/ludeo-event";
|
|
|
3
3
|
export declare class TerminateCloudSessionRequestPayload {
|
|
4
4
|
status?: string;
|
|
5
5
|
reason?: string;
|
|
6
|
+
cloudSessionId: string;
|
|
7
|
+
gamePoolId: string;
|
|
8
|
+
gameResourceId: string;
|
|
9
|
+
ludeoPoolId: string;
|
|
10
|
+
ludeoResourceId: string;
|
|
6
11
|
}
|
|
7
12
|
export declare class TerminateCloudSessionRequest extends LudeoEvent {
|
|
8
13
|
static readonly EVENT_NAME = "cloud-sessions.terminate-cloud-session-request";
|
|
@@ -27,6 +27,26 @@ __decorate([
|
|
|
27
27
|
(0, class_validator_1.IsString)(),
|
|
28
28
|
__metadata("design:type", String)
|
|
29
29
|
], TerminateCloudSessionRequestPayload.prototype, "reason", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_validator_1.IsUUID)(),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], TerminateCloudSessionRequestPayload.prototype, "cloudSessionId", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, class_validator_1.IsUUID)(),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], TerminateCloudSessionRequestPayload.prototype, "gamePoolId", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, class_validator_1.IsUUID)(),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], TerminateCloudSessionRequestPayload.prototype, "gameResourceId", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, class_validator_1.IsUUID)(),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], TerminateCloudSessionRequestPayload.prototype, "ludeoPoolId", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, class_validator_1.IsUUID)(),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], TerminateCloudSessionRequestPayload.prototype, "ludeoResourceId", void 0);
|
|
30
50
|
class TerminateCloudSessionRequest extends ludeo_event_1.LudeoEvent {
|
|
31
51
|
constructor(payload, context) {
|
|
32
52
|
super(TerminateCloudSessionRequest.EVENT_NAME);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"terminate-cloud-session-request.js","sourceRoot":"","sources":["../../../src/v4/events/terminate-cloud-session-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6EAAwE;AACxE,oGAAqF;AACrF,yDAAqD;AACrD,
|
|
1
|
+
{"version":3,"file":"terminate-cloud-session-request.js","sourceRoot":"","sources":["../../../src/v4/events/terminate-cloud-session-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6EAAwE;AACxE,oGAAqF;AACrF,yDAAqD;AACrD,qDAA+D;AAE/D,MAAa,mCAAmC;CAuB/C;AAvBD,kFAuBC;AApBC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mEACK;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mEACK;AAGhB;IADC,IAAA,wBAAM,GAAE;;2EACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;uEACU;AAGnB;IADC,IAAA,wBAAM,GAAE;;2EACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;wEACW;AAGpB;IADC,IAAA,wBAAM,GAAE;;4EACe;AAG1B,MAAa,4BAA6B,SAAQ,wBAAU;IAG1D,YACE,OAA4C,EAC5C,OAA4B;QAE5B,KAAK,CAAC,4BAA4B,CAAC,UAAU,CAAC,CAAC;QAC/C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,oEAiBC;AAhBiB,uCAAU,GAAG,gDAAgD,CAAC;AAY9E;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,2CAAmB,CAAC;8BACrC,2CAAmB;6DAAC;AAG7B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,mCAAmC,CAAC;8BACrD,mCAAmC;6DAAC"}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@ import { CloudSessionContext } from "../contexts/cloud-session-context";
|
|
|
2
2
|
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
3
3
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
4
4
|
import { AwsAllocationData, CloudProviderAllocationData } from "../types";
|
|
5
|
-
import { IsOptional, IsString } from "class-validator";
|
|
5
|
+
import { IsOptional, IsString, IsUUID } from "class-validator";
|
|
6
6
|
|
|
7
7
|
export class CloudSessionAllocatedPayload {
|
|
8
8
|
@ValidateNestedType(() => AwsAllocationData)
|
|
@@ -11,6 +11,18 @@ export class CloudSessionAllocatedPayload {
|
|
|
11
11
|
@IsString()
|
|
12
12
|
@IsOptional()
|
|
13
13
|
region?: string;
|
|
14
|
+
|
|
15
|
+
@IsUUID()
|
|
16
|
+
gamePoolId: string;
|
|
17
|
+
|
|
18
|
+
@IsUUID()
|
|
19
|
+
gameResourceId: string;
|
|
20
|
+
|
|
21
|
+
@IsUUID()
|
|
22
|
+
ludeoPoolId: string;
|
|
23
|
+
|
|
24
|
+
@IsUUID()
|
|
25
|
+
ludeoResourceId: string;
|
|
14
26
|
}
|
|
15
27
|
|
|
16
28
|
export class CloudSessionAllocated extends LudeoEvent {
|
|
@@ -19,7 +31,7 @@ export class CloudSessionAllocated extends LudeoEvent {
|
|
|
19
31
|
|
|
20
32
|
constructor(
|
|
21
33
|
payload: CloudSessionAllocatedPayload,
|
|
22
|
-
context: CloudSessionContext
|
|
34
|
+
context: CloudSessionContext
|
|
23
35
|
) {
|
|
24
36
|
super(CloudSessionAllocated.EVENT_NAME);
|
|
25
37
|
this.payload = payload;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { LudeoEvent } from "@ludeo/cloud-common";
|
|
2
|
+
import { IsBoolean, IsOptional, IsUUID } from "class-validator";
|
|
3
|
+
import {
|
|
4
|
+
CloudResourceContext,
|
|
5
|
+
CloudSessionContext,
|
|
6
|
+
getCloudContextType,
|
|
7
|
+
} from "../contexts";
|
|
8
|
+
import { ValidateNestedType } from "../../decorators";
|
|
9
|
+
|
|
10
|
+
export class DeallocateGameRequestPayload {
|
|
11
|
+
@IsUUID()
|
|
12
|
+
gamePoolId: string;
|
|
13
|
+
|
|
14
|
+
@IsUUID()
|
|
15
|
+
gameResourceId: string;
|
|
16
|
+
|
|
17
|
+
@IsUUID()
|
|
18
|
+
ludeoPoolId: string;
|
|
19
|
+
|
|
20
|
+
@IsUUID()
|
|
21
|
+
ludeoResourceId: string;
|
|
22
|
+
|
|
23
|
+
@IsBoolean()
|
|
24
|
+
@IsOptional()
|
|
25
|
+
shouldTerminate: boolean;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export class DeallocateGameRequest extends LudeoEvent {
|
|
29
|
+
static readonly EVENT_NAME = "cloud-pools.deallocate-game-request";
|
|
30
|
+
|
|
31
|
+
constructor(
|
|
32
|
+
payload: DeallocateGameRequestPayload,
|
|
33
|
+
context: CloudSessionContext | CloudResourceContext
|
|
34
|
+
) {
|
|
35
|
+
super(DeallocateGameRequest.EVENT_NAME);
|
|
36
|
+
this.payload = payload;
|
|
37
|
+
this.context = context;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@ValidateNestedType(() => DeallocateGameRequestPayload)
|
|
41
|
+
payload: DeallocateGameRequestPayload;
|
|
42
|
+
|
|
43
|
+
@ValidateNestedType(getCloudContextType)
|
|
44
|
+
context: CloudSessionContext | CloudResourceContext;
|
|
45
|
+
}
|
package/src/v4/events/index.ts
CHANGED
|
@@ -92,3 +92,5 @@ export * from "./cloud-session-stats-report";
|
|
|
92
92
|
export * from "./mark-game-available";
|
|
93
93
|
export * from "./gameplay-ready-timeout-task";
|
|
94
94
|
export * from "./no-user-connection-timeout-task";
|
|
95
|
+
export * from "./swap-cloud-user-gameplay-request";
|
|
96
|
+
export * from "./swap-cloud-user-gameplay-request-failed";
|
|
@@ -2,10 +2,26 @@ import { LudeoEvent } from "../../infra/ludeo-event";
|
|
|
2
2
|
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
3
3
|
import { CloudSessionContext } from "../contexts";
|
|
4
4
|
import { AwsAllocationData, CloudProviderAllocationData } from "../types";
|
|
5
|
+
import { IsUUID } from "class-validator";
|
|
5
6
|
|
|
6
7
|
export class LudeoAllocatedResponsePayload {
|
|
7
8
|
@ValidateNestedType(() => AwsAllocationData)
|
|
8
9
|
allocationData: CloudProviderAllocationData;
|
|
10
|
+
|
|
11
|
+
@IsUUID()
|
|
12
|
+
cloudSessionId: string;
|
|
13
|
+
|
|
14
|
+
@IsUUID()
|
|
15
|
+
gamePoolId: string;
|
|
16
|
+
|
|
17
|
+
@IsUUID()
|
|
18
|
+
gameResourceId: string;
|
|
19
|
+
|
|
20
|
+
@IsUUID()
|
|
21
|
+
ludeoPoolId: string;
|
|
22
|
+
|
|
23
|
+
@IsUUID()
|
|
24
|
+
ludeoResourceId: string;
|
|
9
25
|
}
|
|
10
26
|
|
|
11
27
|
export class LudeoAllocatedResponse extends LudeoEvent {
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { IsString, IsUUID } from "class-validator";
|
|
2
|
+
|
|
3
|
+
import { CloudSessionContext } from "../contexts";
|
|
4
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
5
|
+
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
6
|
+
|
|
7
|
+
export class SwapCloudUserGameplayRequestFailedPayload {
|
|
8
|
+
@IsUUID()
|
|
9
|
+
userId: string;
|
|
10
|
+
|
|
11
|
+
@IsUUID()
|
|
12
|
+
gameResourceId: string;
|
|
13
|
+
|
|
14
|
+
@IsUUID()
|
|
15
|
+
gameplayId: string;
|
|
16
|
+
|
|
17
|
+
@IsString()
|
|
18
|
+
errorMessage: string;
|
|
19
|
+
|
|
20
|
+
@IsUUID()
|
|
21
|
+
ludeoResourceId: string;
|
|
22
|
+
|
|
23
|
+
@IsUUID()
|
|
24
|
+
cloudSessionId: string;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export class SwapCloudUserGameplayRequestFailed extends LudeoEvent {
|
|
28
|
+
static readonly EVENT_NAME =
|
|
29
|
+
"cloud-resources.swap-cloud-user-gameplay-request-failed";
|
|
30
|
+
|
|
31
|
+
constructor(
|
|
32
|
+
payload: SwapCloudUserGameplayRequestFailedPayload,
|
|
33
|
+
context: CloudSessionContext
|
|
34
|
+
) {
|
|
35
|
+
super(SwapCloudUserGameplayRequestFailed.EVENT_NAME);
|
|
36
|
+
this.payload = payload;
|
|
37
|
+
this.context = context;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@ValidateNestedType(() => CloudSessionContext)
|
|
41
|
+
context: CloudSessionContext;
|
|
42
|
+
|
|
43
|
+
@ValidateNestedType(() => SwapCloudUserGameplayRequestFailedPayload)
|
|
44
|
+
payload: SwapCloudUserGameplayRequestFailedPayload;
|
|
45
|
+
}
|