@ludeo/cloud-common 1.2.0 → 1.2.2
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/v3/types/cloud.d.ts +1 -0
- package/dist/v3/types/cloud.js +5 -0
- package/dist/v3/types/cloud.js.map +1 -1
- package/dist/v4/contexts/cloud-resource-context.d.ts +2 -0
- package/dist/v4/contexts/cloud-resource-context.js +10 -0
- package/dist/v4/contexts/cloud-resource-context.js.map +1 -1
- package/dist/v4/contexts/cloud-session-context.d.ts +2 -0
- package/dist/v4/contexts/cloud-session-context.js +10 -0
- package/dist/v4/contexts/cloud-session-context.js.map +1 -1
- package/dist/v4/events/allocate-game-request.d.ts +5 -5
- package/dist/v4/events/allocate-game-request.js +9 -6
- package/dist/v4/events/allocate-game-request.js.map +1 -1
- package/dist/v4/events/allocate-ludeo-request.d.ts +13 -0
- package/dist/v4/events/allocate-ludeo-request.js +46 -0
- package/dist/v4/events/allocate-ludeo-request.js.map +1 -0
- package/dist/v4/events/allocate-ludeo-resource-request.d.ts +13 -7
- package/dist/v4/events/allocate-ludeo-resource-request.js +35 -14
- package/dist/v4/events/allocate-ludeo-resource-request.js.map +1 -1
- package/dist/v4/events/game-allocated-response.d.ts +10 -5
- package/dist/v4/events/game-allocated-response.js +25 -4
- package/dist/v4/events/game-allocated-response.js.map +1 -1
- package/dist/v4/events/game-allocation-failed-response.d.ts +6 -5
- package/dist/v4/events/game-allocation-failed-response.js +13 -6
- package/dist/v4/events/game-allocation-failed-response.js.map +1 -1
- package/dist/v4/events/index.d.ts +5 -1
- package/dist/v4/events/index.js +5 -1
- package/dist/v4/events/index.js.map +1 -1
- package/dist/v4/events/ludeo-allocated-response.d.ts +5 -4
- package/dist/v4/events/ludeo-allocated-response.js +6 -6
- package/dist/v4/events/ludeo-allocated-response.js.map +1 -1
- package/dist/v4/events/ludeo-allocation-failed.d.ts +6 -4
- package/dist/v4/events/ludeo-allocation-failed.js +10 -5
- package/dist/v4/events/ludeo-allocation-failed.js.map +1 -1
- package/dist/v4/events/ludeo-resource-allocated-response.d.ts +7 -3
- package/dist/v4/events/ludeo-resource-allocated-response.js +15 -2
- package/dist/v4/events/ludeo-resource-allocated-response.js.map +1 -1
- package/dist/v4/events/ludeo-resource-allocation-failed.d.ts +4 -0
- package/dist/v4/events/ludeo-resource-allocation-failed.js +13 -0
- package/dist/v4/events/ludeo-resource-allocation-failed.js.map +1 -1
- package/dist/v4/events/ludeo-resource-allocation-timeout-task.d.ts +11 -0
- package/dist/v4/events/ludeo-resource-allocation-timeout-task.js +39 -0
- package/dist/v4/events/ludeo-resource-allocation-timeout-task.js.map +1 -0
- package/dist/v4/events/ludeo-status-updated.d.ts +14 -0
- package/dist/v4/events/ludeo-status-updated.js +50 -0
- package/dist/v4/events/ludeo-status-updated.js.map +1 -0
- package/dist/v4/events/terminate-ludeos-request.d.ts +12 -0
- package/dist/v4/events/terminate-ludeos-request.js +45 -0
- package/dist/v4/events/terminate-ludeos-request.js.map +1 -0
- package/package.json +1 -1
- package/src/v3/types/cloud.ts +4 -0
- package/src/v4/contexts/cloud-resource-context.ts +8 -0
- package/src/v4/contexts/cloud-session-context.ts +8 -0
- package/src/v4/events/allocate-game-request.ts +10 -8
- package/src/v4/events/allocate-ludeo-request.ts +32 -0
- package/src/v4/events/allocate-ludeo-resource-request.ts +35 -12
- package/src/v4/events/game-allocated-response.ts +27 -7
- package/src/v4/events/game-allocation-failed-response.ts +13 -8
- package/src/v4/events/index.ts +5 -1
- package/src/v4/events/ludeo-allocated-response.ts +7 -7
- package/src/v4/events/ludeo-allocation-failed.ts +11 -7
- package/src/v4/events/ludeo-resource-allocated-response.ts +18 -4
- package/src/v4/events/ludeo-resource-allocation-failed.ts +11 -1
- package/src/v4/events/ludeo-resource-allocation-timeout-task.ts +26 -0
- package/src/v4/events/ludeo-status-updated.ts +35 -0
- package/src/v4/events/terminate-ludeos-request.ts +32 -0
package/dist/v3/types/cloud.d.ts
CHANGED
package/dist/v3/types/cloud.js
CHANGED
|
@@ -170,4 +170,9 @@ __decorate([
|
|
|
170
170
|
(0, class_validator_1.IsString)(),
|
|
171
171
|
__metadata("design:type", String)
|
|
172
172
|
], CloudSession.prototype, "resourceId", void 0);
|
|
173
|
+
__decorate([
|
|
174
|
+
(0, class_validator_1.IsOptional)(),
|
|
175
|
+
(0, class_validator_1.IsString)(),
|
|
176
|
+
__metadata("design:type", String)
|
|
177
|
+
], CloudSession.prototype, "gamePoolId", void 0);
|
|
173
178
|
//# sourceMappingURL=cloud.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cloud.js","sourceRoot":"","sources":["../../../src/v3/types/cloud.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,qDAQyB;AACzB,iDAAsD;AAEtD,MAAa,cAAc;CAI1B;AAJD,wCAIC;AADC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;qDACS;AAKxB,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,4BAAW,CAAA;IACX,kCAAiB,CAAA;AACnB,CAAC,EAHW,aAAa,6BAAb,aAAa,QAGxB;AAED,MAAa,mBAAmB;CAS/B;AATD,kDASC;AAID,MAAa,iBAAiB;CAS7B;AATD,8CASC;AAPC;IADC,IAAA,0BAAQ,GAAE;;wDACW;AAGtB;IADC,IAAA,0BAAQ,GAAE;;0DACa;AAGxB;IADC,IAAA,0BAAQ,GAAE;;yDACY;AAKzB,MAAa,2BAA2B;CAgBvC;AAhBD,kEAgBC;AAbC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;oEACc;AAIzB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;kEACY;AAIvB;IAFC,IAAA,wBAAM,EAAC,aAAa,CAAC;IACrB,IAAA,4BAAU,GAAE;;kEACiB;AAI9B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;2DACK;AAKlB,MAAa,uBAAuB;CAInC;AAJD,0DAIC;AADC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;gEACW;AAK1B,MAAa,qBAAqB;CAYjC;AAZD,sDAYC;AATC;IAFC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,cAAc,CAAC;IACxC,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;AAGlB,IAAY,kBAQX;AARD,WAAY,kBAAkB;IAC5B,yCAAmB,CAAA;IACnB,mDAA6B,CAAA;IAC7B,mDAA6B,CAAA;IAC7B,qDAA+B,CAAA;IAC/B,6CAAuB,CAAA;IACvB,+CAAyB,CAAA;IACzB,uCAAiB,CAAA;AACnB,CAAC,EARW,kBAAkB,kCAAlB,kBAAkB,QAQ7B;AAED,MAAa,YAAY;
|
|
1
|
+
{"version":3,"file":"cloud.js","sourceRoot":"","sources":["../../../src/v3/types/cloud.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,qDAQyB;AACzB,iDAAsD;AAEtD,MAAa,cAAc;CAI1B;AAJD,wCAIC;AADC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;qDACS;AAKxB,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,4BAAW,CAAA;IACX,kCAAiB,CAAA;AACnB,CAAC,EAHW,aAAa,6BAAb,aAAa,QAGxB;AAED,MAAa,mBAAmB;CAS/B;AATD,kDASC;AAID,MAAa,iBAAiB;CAS7B;AATD,8CASC;AAPC;IADC,IAAA,0BAAQ,GAAE;;wDACW;AAGtB;IADC,IAAA,0BAAQ,GAAE;;0DACa;AAGxB;IADC,IAAA,0BAAQ,GAAE;;yDACY;AAKzB,MAAa,2BAA2B;CAgBvC;AAhBD,kEAgBC;AAbC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;oEACc;AAIzB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;kEACY;AAIvB;IAFC,IAAA,wBAAM,EAAC,aAAa,CAAC;IACrB,IAAA,4BAAU,GAAE;;kEACiB;AAI9B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;2DACK;AAKlB,MAAa,uBAAuB;CAInC;AAJD,0DAIC;AADC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;gEACW;AAK1B,MAAa,qBAAqB;CAYjC;AAZD,sDAYC;AATC;IAFC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,cAAc,CAAC;IACxC,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;AAGlB,IAAY,kBAQX;AARD,WAAY,kBAAkB;IAC5B,yCAAmB,CAAA;IACnB,mDAA6B,CAAA;IAC7B,mDAA6B,CAAA;IAC7B,qDAA+B,CAAA;IAC/B,6CAAuB,CAAA;IACvB,+CAAyB,CAAA;IACzB,uCAAiB,CAAA;AACnB,CAAC,EARW,kBAAkB,kCAAlB,kBAAkB,QAQ7B;AAED,MAAa,YAAY;CAuDxB;AAvDD,oCAuDC;AArDC;IADC,IAAA,wBAAM,GAAE;;wCACE;AAGX;IADC,IAAA,wBAAM,GAAE;;4CACM;AAGf;IADC,IAAA,wBAAM,GAAE;;4CACM;AAGf;IADC,IAAA,wBAAM,GAAE;;6CACO;AAGhB;IADC,IAAA,0BAAQ,GAAE;;+CACO;AAGlB;IADC,IAAA,0BAAQ,GAAE;;+CACO;AAGlB;IADC,IAAA,wBAAM,EAAC,kBAAkB,CAAC;;4CACA;AAG3B;IADC,IAAA,wBAAM,EAAC,aAAa,CAAC;;mDACO;AAI7B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;oDACe;AAIxB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;4CACO;AAGhB;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,qBAAqB,CAAC;8BACnC,qBAAqB;iDAAC;AAInC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,iBAAiB,CAAC;;oDACC;AAG7C;IADC,IAAA,wBAAM,GAAE;;qDACe;AAIxB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;kDACW;AAKtB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;gDACS;AAIpB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;gDACS"}
|
|
@@ -69,4 +69,14 @@ __decorate([
|
|
|
69
69
|
(0, class_validator_1.IsUUID)(),
|
|
70
70
|
__metadata("design:type", String)
|
|
71
71
|
], CloudResourceContext.prototype, "platformStatusRequestId", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, class_validator_1.IsOptional)(),
|
|
74
|
+
(0, class_validator_1.IsUUID)(),
|
|
75
|
+
__metadata("design:type", String)
|
|
76
|
+
], CloudResourceContext.prototype, "ludeoResourceId", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, class_validator_1.IsOptional)(),
|
|
79
|
+
(0, class_validator_1.IsUUID)(),
|
|
80
|
+
__metadata("design:type", String)
|
|
81
|
+
], CloudResourceContext.prototype, "ludeoPoolId", void 0);
|
|
72
82
|
//# sourceMappingURL=cloud-resource-context.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cloud-resource-context.js","sourceRoot":"","sources":["../../../src/v4/contexts/cloud-resource-context.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuE;AACvE,0CAA+C;AAE/C,MAAa,oBAAoB;
|
|
1
|
+
{"version":3,"file":"cloud-resource-context.js","sourceRoot":"","sources":["../../../src/v4/contexts/cloud-resource-context.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuE;AACvE,0CAA+C;AAE/C,MAAa,oBAAoB;CAqDhC;AArDD,oDAqDC;AAlDC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;2DACY;AAIvB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;6DACc;AAGzB;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;2DACO;AAK7B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;wDACS;AAKpB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;oDACK;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;wDACW;AAIpB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;4DACe;AAIxB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;2DACc;AAIvB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;+DACkB;AAI3B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;kEACqB;AAI9B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;qEACwB;AAIjC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;6DACgB;AAIzB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;yDACY"}
|
|
@@ -98,4 +98,14 @@ __decorate([
|
|
|
98
98
|
(0, class_validator_1.IsString)(),
|
|
99
99
|
__metadata("design:type", String)
|
|
100
100
|
], CloudSessionContext.prototype, "region", void 0);
|
|
101
|
+
__decorate([
|
|
102
|
+
(0, class_validator_1.IsOptional)(),
|
|
103
|
+
(0, class_validator_1.IsUUID)(),
|
|
104
|
+
__metadata("design:type", String)
|
|
105
|
+
], CloudSessionContext.prototype, "ludeoPoolId", void 0);
|
|
106
|
+
__decorate([
|
|
107
|
+
(0, class_validator_1.IsOptional)(),
|
|
108
|
+
(0, class_validator_1.IsUUID)(),
|
|
109
|
+
__metadata("design:type", String)
|
|
110
|
+
], CloudSessionContext.prototype, "ludeoResourceId", void 0);
|
|
101
111
|
//# sourceMappingURL=cloud-session-context.js.map
|
|
@@ -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;AAEzC,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;AAEzC,MAAa,mBAAmB;CA2E/B;AA3ED,kDA2EC;AAxEC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;gEACoB;AAI7B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;4DACgB;AAGzB;IADC,IAAA,wBAAM,GAAE;;2DACc;AAIvB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;mDACO;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;mDACO;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;oDACQ;AAGjB;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;0DACO;AAI7B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;uDACW;AAIpB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;2DACe;AAIxB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;0DACc;AAIvB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;8DACkB;AAI3B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;0DACY;AAIvB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;4DACc;AAKzB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;mDACO;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;uDACW;AAIpB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;yDACa;AAItB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mDACK;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;wDACY;AAIrB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;4DACgB"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { CloudSessionContext } from "../contexts";
|
|
1
|
+
import { CloudResourceContext } from "../contexts";
|
|
3
2
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
4
3
|
export declare class AllocateGameRequestPayload {
|
|
4
|
+
ludeoResourceId: string;
|
|
5
5
|
gamePoolId: string;
|
|
6
|
-
|
|
6
|
+
ludeoPoolId: string;
|
|
7
7
|
}
|
|
8
8
|
export declare class AllocateGameRequest extends LudeoEvent {
|
|
9
9
|
static readonly EVENT_NAME = "cloud-session-allocator.allocate-game-request";
|
|
10
|
-
constructor(payload: AllocateGameRequestPayload, context:
|
|
11
|
-
context:
|
|
10
|
+
constructor(payload: AllocateGameRequestPayload, context: CloudResourceContext);
|
|
11
|
+
context: CloudResourceContext;
|
|
12
12
|
payload: AllocateGameRequestPayload;
|
|
13
13
|
}
|
|
@@ -11,21 +11,24 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.AllocateGameRequest = exports.AllocateGameRequestPayload = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
|
-
const types_1 = require("../types");
|
|
15
14
|
const contexts_1 = require("../contexts");
|
|
16
15
|
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
17
16
|
const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
18
17
|
class AllocateGameRequestPayload {
|
|
19
18
|
}
|
|
20
19
|
exports.AllocateGameRequestPayload = AllocateGameRequestPayload;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_validator_1.IsUUID)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], AllocateGameRequestPayload.prototype, "ludeoResourceId", void 0);
|
|
21
24
|
__decorate([
|
|
22
25
|
(0, class_validator_1.IsUUID)(),
|
|
23
26
|
__metadata("design:type", String)
|
|
24
27
|
], AllocateGameRequestPayload.prototype, "gamePoolId", void 0);
|
|
25
28
|
__decorate([
|
|
26
|
-
(0,
|
|
27
|
-
__metadata("design:type",
|
|
28
|
-
], AllocateGameRequestPayload.prototype, "
|
|
29
|
+
(0, class_validator_1.IsUUID)(),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], AllocateGameRequestPayload.prototype, "ludeoPoolId", void 0);
|
|
29
32
|
class AllocateGameRequest extends ludeo_event_1.LudeoEvent {
|
|
30
33
|
constructor(payload, context) {
|
|
31
34
|
super(AllocateGameRequest.EVENT_NAME);
|
|
@@ -36,8 +39,8 @@ class AllocateGameRequest extends ludeo_event_1.LudeoEvent {
|
|
|
36
39
|
exports.AllocateGameRequest = AllocateGameRequest;
|
|
37
40
|
AllocateGameRequest.EVENT_NAME = "cloud-session-allocator.allocate-game-request";
|
|
38
41
|
__decorate([
|
|
39
|
-
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.
|
|
40
|
-
__metadata("design:type", contexts_1.
|
|
42
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.CloudResourceContext),
|
|
43
|
+
__metadata("design:type", contexts_1.CloudResourceContext)
|
|
41
44
|
], AllocateGameRequest.prototype, "context", void 0);
|
|
42
45
|
__decorate([
|
|
43
46
|
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => AllocateGameRequestPayload),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"allocate-game-request.js","sourceRoot":"","sources":["../../../src/v4/events/allocate-game-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"allocate-game-request.js","sourceRoot":"","sources":["../../../src/v4/events/allocate-game-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyC;AAEzC,0CAAmD;AACnD,yDAAqD;AACrD,oGAAqF;AAErF,MAAa,0BAA0B;CAStC;AATD,gEASC;AAPC;IADC,IAAA,wBAAM,GAAE;;mEACe;AAGxB;IADC,IAAA,wBAAM,GAAE;;8DACU;AAGnB;IADC,IAAA,wBAAM,GAAE;;+DACW;AAGtB,MAAa,mBAAoB,SAAQ,wBAAU;IAGjD,YACE,OAAmC,EACnC,OAA6B;QAE7B,KAAK,CAAC,mBAAmB,CAAC,UAAU,CAAC,CAAC;QACtC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,kDAiBC;AAhBiB,8BAAU,GAAG,+CAA+C,CAAC;AAY7E;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;oDAAC;AAG9B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,0BAA0B,CAAC;8BAC5C,0BAA0B;oDAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
2
|
+
import { CloudSessionContext } from "../contexts";
|
|
3
|
+
import { AllocationRequestData } from "../types";
|
|
4
|
+
export declare class AllocateLudeoRequestPayload {
|
|
5
|
+
ludeoPoolId: string;
|
|
6
|
+
requestData: AllocationRequestData;
|
|
7
|
+
}
|
|
8
|
+
export declare class AllocateLudeoRequest extends LudeoEvent {
|
|
9
|
+
static readonly EVENT_NAME = "cloud-session-allocator.allocate-ludeo-request";
|
|
10
|
+
constructor(payload: AllocateLudeoRequestPayload, context: CloudSessionContext);
|
|
11
|
+
context: CloudSessionContext;
|
|
12
|
+
payload: AllocateLudeoRequestPayload;
|
|
13
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
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.AllocateLudeoRequest = exports.AllocateLudeoRequestPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
15
|
+
const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
16
|
+
const contexts_1 = require("../contexts");
|
|
17
|
+
const types_1 = require("../types");
|
|
18
|
+
class AllocateLudeoRequestPayload {
|
|
19
|
+
}
|
|
20
|
+
exports.AllocateLudeoRequestPayload = AllocateLudeoRequestPayload;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsUUID)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], AllocateLudeoRequestPayload.prototype, "ludeoPoolId", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.AllocationRequestData),
|
|
27
|
+
__metadata("design:type", types_1.AllocationRequestData)
|
|
28
|
+
], AllocateLudeoRequestPayload.prototype, "requestData", void 0);
|
|
29
|
+
class AllocateLudeoRequest extends ludeo_event_1.LudeoEvent {
|
|
30
|
+
constructor(payload, context) {
|
|
31
|
+
super(AllocateLudeoRequest.EVENT_NAME);
|
|
32
|
+
this.payload = payload;
|
|
33
|
+
this.context = context;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.AllocateLudeoRequest = AllocateLudeoRequest;
|
|
37
|
+
AllocateLudeoRequest.EVENT_NAME = "cloud-session-allocator.allocate-ludeo-request";
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.CloudSessionContext),
|
|
40
|
+
__metadata("design:type", contexts_1.CloudSessionContext)
|
|
41
|
+
], AllocateLudeoRequest.prototype, "context", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => AllocateLudeoRequestPayload),
|
|
44
|
+
__metadata("design:type", AllocateLudeoRequestPayload)
|
|
45
|
+
], AllocateLudeoRequest.prototype, "payload", void 0);
|
|
46
|
+
//# sourceMappingURL=allocate-ludeo-request.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"allocate-ludeo-request.js","sourceRoot":"","sources":["../../../src/v4/events/allocate-ludeo-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyC;AACzC,yDAAqD;AACrD,oGAAqF;AACrF,0CAAkD;AAClD,oCAAiD;AAEjD,MAAa,2BAA2B;CAMvC;AAND,kEAMC;AAJC;IADC,IAAA,wBAAM,GAAE;;gEACW;AAGpB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,6BAAqB,CAAC;8BACnC,6BAAqB;gEAAC;AAGrC,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,gDAAgD,CAAC;AAY9E;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"}
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import { CloudSessionContext } from "../contexts";
|
|
3
|
+
import { AllocationRequestData, CloudProvider, CloudProviderSettings, CloudResourceProviderSettings } from "../types";
|
|
4
|
+
export declare class AllocateLudeoResourceRequestPayload {
|
|
4
5
|
ludeoResourceId: string;
|
|
6
|
+
ludeoPoolId: string;
|
|
7
|
+
providerSettings: CloudProviderSettings;
|
|
8
|
+
cloudProvider: CloudProvider;
|
|
9
|
+
requestData: AllocationRequestData;
|
|
10
|
+
resourceProviderSettings: CloudResourceProviderSettings;
|
|
5
11
|
}
|
|
6
|
-
export declare class
|
|
7
|
-
static readonly EVENT_NAME = "cloud-pools.allocate-ludeo-resource";
|
|
8
|
-
constructor(payload:
|
|
9
|
-
context:
|
|
10
|
-
payload:
|
|
12
|
+
export declare class AllocateLudeoResourceRequest extends LudeoEvent {
|
|
13
|
+
static readonly EVENT_NAME = "cloud-pools.allocate-ludeo-resource-request";
|
|
14
|
+
constructor(payload: AllocateLudeoResourceRequestPayload, context: CloudSessionContext);
|
|
15
|
+
context: CloudSessionContext;
|
|
16
|
+
payload: AllocateLudeoResourceRequestPayload;
|
|
11
17
|
}
|
|
@@ -9,33 +9,54 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.AllocateLudeoResourceRequest = exports.AllocateLudeoResourceRequestPayload = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
14
|
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
15
15
|
const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
16
16
|
const contexts_1 = require("../contexts");
|
|
17
|
-
|
|
17
|
+
const types_1 = require("../types");
|
|
18
|
+
class AllocateLudeoResourceRequestPayload {
|
|
18
19
|
}
|
|
19
|
-
exports.
|
|
20
|
+
exports.AllocateLudeoResourceRequestPayload = AllocateLudeoResourceRequestPayload;
|
|
20
21
|
__decorate([
|
|
21
22
|
(0, class_validator_1.IsUUID)(),
|
|
22
23
|
__metadata("design:type", String)
|
|
23
|
-
],
|
|
24
|
-
|
|
24
|
+
], AllocateLudeoResourceRequestPayload.prototype, "ludeoResourceId", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsUUID)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], AllocateLudeoResourceRequestPayload.prototype, "ludeoPoolId", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.AWSProviderSettings),
|
|
31
|
+
__metadata("design:type", Object)
|
|
32
|
+
], AllocateLudeoResourceRequestPayload.prototype, "providerSettings", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_validator_1.IsEnum)(types_1.CloudProvider),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], AllocateLudeoResourceRequestPayload.prototype, "cloudProvider", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.AllocationRequestData),
|
|
39
|
+
__metadata("design:type", types_1.AllocationRequestData)
|
|
40
|
+
], AllocateLudeoResourceRequestPayload.prototype, "requestData", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.AWSResourceProviderSettings),
|
|
43
|
+
__metadata("design:type", Object)
|
|
44
|
+
], AllocateLudeoResourceRequestPayload.prototype, "resourceProviderSettings", void 0);
|
|
45
|
+
class AllocateLudeoResourceRequest extends ludeo_event_1.LudeoEvent {
|
|
25
46
|
constructor(payload, context) {
|
|
26
|
-
super(
|
|
47
|
+
super(AllocateLudeoResourceRequest.EVENT_NAME);
|
|
27
48
|
this.payload = payload;
|
|
28
49
|
this.context = context;
|
|
29
50
|
}
|
|
30
51
|
}
|
|
31
|
-
exports.
|
|
32
|
-
|
|
52
|
+
exports.AllocateLudeoResourceRequest = AllocateLudeoResourceRequest;
|
|
53
|
+
AllocateLudeoResourceRequest.EVENT_NAME = "cloud-pools.allocate-ludeo-resource-request";
|
|
33
54
|
__decorate([
|
|
34
|
-
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.
|
|
35
|
-
__metadata("design:type", contexts_1.
|
|
36
|
-
],
|
|
55
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.CloudSessionContext),
|
|
56
|
+
__metadata("design:type", contexts_1.CloudSessionContext)
|
|
57
|
+
], AllocateLudeoResourceRequest.prototype, "context", void 0);
|
|
37
58
|
__decorate([
|
|
38
|
-
(0, validate_nested_type_decorator_1.ValidateNestedType)(() =>
|
|
39
|
-
__metadata("design:type",
|
|
40
|
-
],
|
|
59
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => AllocateLudeoResourceRequestPayload),
|
|
60
|
+
__metadata("design:type", AllocateLudeoResourceRequestPayload)
|
|
61
|
+
], AllocateLudeoResourceRequest.prototype, "payload", void 0);
|
|
41
62
|
//# sourceMappingURL=allocate-ludeo-resource-request.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"allocate-ludeo-resource-request.js","sourceRoot":"","sources":["../../../src/v4/events/allocate-ludeo-resource-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"allocate-ludeo-resource-request.js","sourceRoot":"","sources":["../../../src/v4/events/allocate-ludeo-resource-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiD;AACjD,yDAAqD;AACrD,oGAAqF;AACrF,0CAAkD;AAClD,oCAOkB;AAElB,MAAa,mCAAmC;CAkB/C;AAlBD,kFAkBC;AAhBC;IADC,IAAA,wBAAM,GAAE;;4EACe;AAGxB;IADC,IAAA,wBAAM,GAAE;;wEACW;AAGpB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,2BAAmB,CAAC;;6EACN;AAGxC;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;0EACO;AAG7B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,6BAAqB,CAAC;8BACnC,6BAAqB;wEAAC;AAGnC;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,mCAA2B,CAAC;;qFACE;AAG1D,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,6CAA6C,CAAC;AAY3E;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"}
|
|
@@ -1,12 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CloudResourceContext } from "../contexts";
|
|
2
2
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
3
|
-
import {
|
|
3
|
+
import { CloudProvider, CloudProviderSettings } from "../types";
|
|
4
4
|
export declare class GameAllocatedResponsePayload {
|
|
5
|
-
|
|
5
|
+
gameResourceId: string;
|
|
6
|
+
gamePoolId: string;
|
|
7
|
+
ludeoResourceId: string;
|
|
8
|
+
ludeoPoolId: string;
|
|
9
|
+
providerSettings: CloudProviderSettings;
|
|
10
|
+
cloudProvider: CloudProvider;
|
|
6
11
|
}
|
|
7
12
|
export declare class GameAllocatedResponse extends LudeoEvent {
|
|
8
13
|
static readonly EVENT_NAME = "cloud-pools.game-allocated-response";
|
|
9
|
-
constructor(payload: GameAllocatedResponsePayload, context:
|
|
10
|
-
context:
|
|
14
|
+
constructor(payload: GameAllocatedResponsePayload, context: CloudResourceContext);
|
|
15
|
+
context: CloudResourceContext;
|
|
11
16
|
payload: GameAllocatedResponsePayload;
|
|
12
17
|
}
|
|
@@ -14,13 +14,34 @@ const contexts_1 = require("../contexts");
|
|
|
14
14
|
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
15
15
|
const types_1 = require("../types");
|
|
16
16
|
const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
17
|
+
const class_validator_1 = require("class-validator");
|
|
17
18
|
class GameAllocatedResponsePayload {
|
|
18
19
|
}
|
|
19
20
|
exports.GameAllocatedResponsePayload = GameAllocatedResponsePayload;
|
|
20
21
|
__decorate([
|
|
21
|
-
(0,
|
|
22
|
+
(0, class_validator_1.IsUUID)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], GameAllocatedResponsePayload.prototype, "gameResourceId", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsUUID)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], GameAllocatedResponsePayload.prototype, "gamePoolId", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_validator_1.IsUUID)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], GameAllocatedResponsePayload.prototype, "ludeoResourceId", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_validator_1.IsUUID)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], GameAllocatedResponsePayload.prototype, "ludeoPoolId", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.AWSProviderSettings),
|
|
22
39
|
__metadata("design:type", Object)
|
|
23
|
-
], GameAllocatedResponsePayload.prototype, "
|
|
40
|
+
], GameAllocatedResponsePayload.prototype, "providerSettings", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, class_validator_1.IsEnum)(types_1.CloudProvider),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], GameAllocatedResponsePayload.prototype, "cloudProvider", void 0);
|
|
24
45
|
class GameAllocatedResponse extends ludeo_event_1.LudeoEvent {
|
|
25
46
|
constructor(payload, context) {
|
|
26
47
|
super(GameAllocatedResponse.EVENT_NAME);
|
|
@@ -31,8 +52,8 @@ class GameAllocatedResponse extends ludeo_event_1.LudeoEvent {
|
|
|
31
52
|
exports.GameAllocatedResponse = GameAllocatedResponse;
|
|
32
53
|
GameAllocatedResponse.EVENT_NAME = "cloud-pools.game-allocated-response";
|
|
33
54
|
__decorate([
|
|
34
|
-
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.
|
|
35
|
-
__metadata("design:type", contexts_1.
|
|
55
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.CloudResourceContext),
|
|
56
|
+
__metadata("design:type", contexts_1.CloudResourceContext)
|
|
36
57
|
], GameAllocatedResponse.prototype, "context", void 0);
|
|
37
58
|
__decorate([
|
|
38
59
|
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => GameAllocatedResponsePayload),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"game-allocated-response.js","sourceRoot":"","sources":["../../../src/v4/events/game-allocated-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"game-allocated-response.js","sourceRoot":"","sources":["../../../src/v4/events/game-allocated-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAAmD;AACnD,yDAAqD;AACrD,oCAIkB;AAClB,oGAAqF;AACrF,qDAAiD;AAEjD,MAAa,4BAA4B;CAkBxC;AAlBD,oEAkBC;AAhBC;IADC,IAAA,wBAAM,GAAE;;oEACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;gEACU;AAGnB;IADC,IAAA,wBAAM,GAAE;;qEACe;AAGxB;IADC,IAAA,wBAAM,GAAE;;iEACW;AAGpB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,2BAAmB,CAAC;;sEACN;AAGxC;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;mEACO;AAG/B,MAAa,qBAAsB,SAAQ,wBAAU;IAGnD,YACE,OAAqC,EACrC,OAA6B;QAE7B,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,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;sDAAC;AAG9B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAA4B,CAAC;8BAC9C,4BAA4B;sDAAC"}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { CloudSessionContext } from "../contexts";
|
|
1
|
+
import { CloudResourceContext } from "../contexts";
|
|
3
2
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
4
3
|
export declare class GameAllocationFailedResponsePayload {
|
|
5
|
-
|
|
4
|
+
ludeoResourceId: string;
|
|
5
|
+
gamePoolId: string;
|
|
6
|
+
ludeoPoolId: string;
|
|
6
7
|
errorMessage: string;
|
|
7
8
|
}
|
|
8
9
|
export declare class GameAllocationFailedResponse extends LudeoEvent {
|
|
9
10
|
static readonly EVENT_NAME = "cloud-pools.game-allocation-failed-response";
|
|
10
|
-
constructor(payload: GameAllocationFailedResponsePayload, context:
|
|
11
|
-
context:
|
|
11
|
+
constructor(payload: GameAllocationFailedResponsePayload, context: CloudResourceContext);
|
|
12
|
+
context: CloudResourceContext;
|
|
12
13
|
payload: GameAllocationFailedResponsePayload;
|
|
13
14
|
}
|
|
@@ -11,7 +11,6 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.GameAllocationFailedResponse = exports.GameAllocationFailedResponsePayload = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
|
-
const types_1 = require("../types");
|
|
15
14
|
const contexts_1 = require("../contexts");
|
|
16
15
|
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
17
16
|
const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
@@ -19,9 +18,17 @@ class GameAllocationFailedResponsePayload {
|
|
|
19
18
|
}
|
|
20
19
|
exports.GameAllocationFailedResponsePayload = GameAllocationFailedResponsePayload;
|
|
21
20
|
__decorate([
|
|
22
|
-
(0,
|
|
23
|
-
__metadata("design:type",
|
|
24
|
-
], GameAllocationFailedResponsePayload.prototype, "
|
|
21
|
+
(0, class_validator_1.IsUUID)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], GameAllocationFailedResponsePayload.prototype, "ludeoResourceId", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsUUID)(),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], GameAllocationFailedResponsePayload.prototype, "gamePoolId", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_validator_1.IsUUID)(),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], GameAllocationFailedResponsePayload.prototype, "ludeoPoolId", void 0);
|
|
25
32
|
__decorate([
|
|
26
33
|
(0, class_validator_1.IsString)(),
|
|
27
34
|
__metadata("design:type", String)
|
|
@@ -36,8 +43,8 @@ class GameAllocationFailedResponse extends ludeo_event_1.LudeoEvent {
|
|
|
36
43
|
exports.GameAllocationFailedResponse = GameAllocationFailedResponse;
|
|
37
44
|
GameAllocationFailedResponse.EVENT_NAME = "cloud-pools.game-allocation-failed-response";
|
|
38
45
|
__decorate([
|
|
39
|
-
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.
|
|
40
|
-
__metadata("design:type", contexts_1.
|
|
46
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.CloudResourceContext),
|
|
47
|
+
__metadata("design:type", contexts_1.CloudResourceContext)
|
|
41
48
|
], GameAllocationFailedResponse.prototype, "context", void 0);
|
|
42
49
|
__decorate([
|
|
43
50
|
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => GameAllocationFailedResponsePayload),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"game-allocation-failed-response.js","sourceRoot":"","sources":["../../../src/v4/events/game-allocation-failed-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"game-allocation-failed-response.js","sourceRoot":"","sources":["../../../src/v4/events/game-allocation-failed-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmD;AAEnD,0CAAmD;AACnD,yDAAqD;AACrD,oGAAqF;AAErF,MAAa,mCAAmC;CAY/C;AAZD,kFAYC;AAVC;IADC,IAAA,wBAAM,GAAE;;4EACe;AAGxB;IADC,IAAA,wBAAM,GAAE;;uEACU;AAGnB;IADC,IAAA,wBAAM,GAAE;;wEACW;AAGpB;IADC,IAAA,0BAAQ,GAAE;;yEACU;AAGvB,MAAa,4BAA6B,SAAQ,wBAAU;IAG1D,YACE,OAA4C,EAC5C,OAA6B;QAE7B,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,6CAA6C,CAAC;AAY3E;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;6DAAC;AAG9B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,mCAAmC,CAAC;8BACrD,mCAAmC;6DAAC"}
|
|
@@ -64,7 +64,7 @@ export * from "./cloud-session-allocated";
|
|
|
64
64
|
export * from "./terminate-stale-resources-task";
|
|
65
65
|
export * from "./cloud-session-ended";
|
|
66
66
|
export * from "./invalid-game-resource";
|
|
67
|
-
export * from "./
|
|
67
|
+
export * from "./ludeo-resource-allocation-timeout-task";
|
|
68
68
|
export * from "./aws-poll-stream-session-task";
|
|
69
69
|
export * from "./game-resource-ready-for-creation";
|
|
70
70
|
export * from "./game-resource-ready-for-creation-failed";
|
|
@@ -82,3 +82,7 @@ export * from "./ludeo-resource-loaded";
|
|
|
82
82
|
export * from "./ludeo-resource-loading-failed";
|
|
83
83
|
export * from "./swap-to-default-user";
|
|
84
84
|
export * from "./swap-to-default-user-completed";
|
|
85
|
+
export * from "./allocate-ludeo-request";
|
|
86
|
+
export * from "./allocate-ludeo-resource-request";
|
|
87
|
+
export * from "./terminate-ludeos-request";
|
|
88
|
+
export * from "./ludeo-status-updated";
|
package/dist/v4/events/index.js
CHANGED
|
@@ -80,7 +80,7 @@ __exportStar(require("./cloud-session-allocated"), exports);
|
|
|
80
80
|
__exportStar(require("./terminate-stale-resources-task"), exports);
|
|
81
81
|
__exportStar(require("./cloud-session-ended"), exports);
|
|
82
82
|
__exportStar(require("./invalid-game-resource"), exports);
|
|
83
|
-
__exportStar(require("./
|
|
83
|
+
__exportStar(require("./ludeo-resource-allocation-timeout-task"), exports);
|
|
84
84
|
__exportStar(require("./aws-poll-stream-session-task"), exports);
|
|
85
85
|
__exportStar(require("./game-resource-ready-for-creation"), exports);
|
|
86
86
|
__exportStar(require("./game-resource-ready-for-creation-failed"), exports);
|
|
@@ -98,4 +98,8 @@ __exportStar(require("./ludeo-resource-loaded"), exports);
|
|
|
98
98
|
__exportStar(require("./ludeo-resource-loading-failed"), exports);
|
|
99
99
|
__exportStar(require("./swap-to-default-user"), exports);
|
|
100
100
|
__exportStar(require("./swap-to-default-user-completed"), exports);
|
|
101
|
+
__exportStar(require("./allocate-ludeo-request"), exports);
|
|
102
|
+
__exportStar(require("./allocate-ludeo-resource-request"), exports);
|
|
103
|
+
__exportStar(require("./terminate-ludeos-request"), exports);
|
|
104
|
+
__exportStar(require("./ludeo-status-updated"), exports);
|
|
101
105
|
//# 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,
|
|
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"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
2
|
-
import {
|
|
2
|
+
import { CloudSessionContext } from "../contexts";
|
|
3
|
+
import { CloudProviderAllocationData } from "../types";
|
|
3
4
|
export declare class LudeoAllocatedResponsePayload {
|
|
4
|
-
|
|
5
|
+
allocationData: CloudProviderAllocationData;
|
|
5
6
|
}
|
|
6
7
|
export declare class LudeoAllocatedResponse extends LudeoEvent {
|
|
7
8
|
static readonly EVENT_NAME = "cloud-pools.ludeo-allocated-response";
|
|
8
|
-
constructor(payload: LudeoAllocatedResponsePayload, context:
|
|
9
|
-
context:
|
|
9
|
+
constructor(payload: LudeoAllocatedResponsePayload, context: CloudSessionContext);
|
|
10
|
+
context: CloudSessionContext;
|
|
10
11
|
payload: LudeoAllocatedResponsePayload;
|
|
11
12
|
}
|
|
@@ -10,17 +10,17 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.LudeoAllocatedResponse = exports.LudeoAllocatedResponsePayload = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
13
|
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
15
14
|
const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
16
15
|
const contexts_1 = require("../contexts");
|
|
16
|
+
const types_1 = require("../types");
|
|
17
17
|
class LudeoAllocatedResponsePayload {
|
|
18
18
|
}
|
|
19
19
|
exports.LudeoAllocatedResponsePayload = LudeoAllocatedResponsePayload;
|
|
20
20
|
__decorate([
|
|
21
|
-
(0,
|
|
22
|
-
__metadata("design:type",
|
|
23
|
-
], LudeoAllocatedResponsePayload.prototype, "
|
|
21
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.AwsAllocationData),
|
|
22
|
+
__metadata("design:type", Object)
|
|
23
|
+
], LudeoAllocatedResponsePayload.prototype, "allocationData", void 0);
|
|
24
24
|
class LudeoAllocatedResponse extends ludeo_event_1.LudeoEvent {
|
|
25
25
|
constructor(payload, context) {
|
|
26
26
|
super(LudeoAllocatedResponse.EVENT_NAME);
|
|
@@ -31,8 +31,8 @@ class LudeoAllocatedResponse extends ludeo_event_1.LudeoEvent {
|
|
|
31
31
|
exports.LudeoAllocatedResponse = LudeoAllocatedResponse;
|
|
32
32
|
LudeoAllocatedResponse.EVENT_NAME = "cloud-pools.ludeo-allocated-response";
|
|
33
33
|
__decorate([
|
|
34
|
-
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.
|
|
35
|
-
__metadata("design:type", contexts_1.
|
|
34
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.CloudSessionContext),
|
|
35
|
+
__metadata("design:type", contexts_1.CloudSessionContext)
|
|
36
36
|
], LudeoAllocatedResponse.prototype, "context", void 0);
|
|
37
37
|
__decorate([
|
|
38
38
|
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => LudeoAllocatedResponsePayload),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ludeo-allocated-response.js","sourceRoot":"","sources":["../../../src/v4/events/ludeo-allocated-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
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;AAE1E,MAAa,6BAA6B;CAGzC;AAHD,sEAGC;AADC;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,yBAAiB,CAAC;;qEACA;AAG9C,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"}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
2
|
-
import {
|
|
2
|
+
import { CloudSessionContext } from "../contexts";
|
|
3
|
+
import { AllocationRequestData } from "../types";
|
|
3
4
|
export declare class LudeoAllocationFailedPayload {
|
|
4
|
-
|
|
5
|
+
requestData: AllocationRequestData;
|
|
6
|
+
errorMessage: string;
|
|
5
7
|
}
|
|
6
8
|
export declare class LudeoAllocationFailed extends LudeoEvent {
|
|
7
9
|
static readonly EVENT_NAME = "cloud-pools.ludeo-allocation-failed";
|
|
8
|
-
constructor(payload: LudeoAllocationFailedPayload, context:
|
|
9
|
-
context:
|
|
10
|
+
constructor(payload: LudeoAllocationFailedPayload, context: CloudSessionContext);
|
|
11
|
+
context: CloudSessionContext;
|
|
10
12
|
payload: LudeoAllocationFailedPayload;
|
|
11
13
|
}
|