@ludeo/cloud-common 1.0.32 → 1.0.33
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/index.d.ts +1 -0
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/v3/contexts/cloud-resource-context.d.ts +8 -0
- package/dist/v3/contexts/cloud-resource-context.js +40 -0
- package/dist/v3/contexts/cloud-resource-context.js.map +1 -0
- package/dist/v3/contexts/index.d.ts +1 -0
- package/dist/v3/contexts/index.js +18 -0
- package/dist/v3/contexts/index.js.map +1 -0
- package/dist/v3/events/allocate-game-request.d.ts +14 -0
- package/dist/v3/events/allocate-game-request.js +50 -0
- package/dist/v3/events/allocate-game-request.js.map +1 -0
- package/dist/v3/events/allocate-game-resource-request.d.ts +17 -0
- package/dist/v3/events/allocate-game-resource-request.js +62 -0
- package/dist/v3/events/allocate-game-resource-request.js.map +1 -0
- package/dist/v3/events/allocate-machine-request.d.ts +13 -0
- package/dist/v3/events/allocate-machine-request.js +49 -0
- package/dist/v3/events/allocate-machine-request.js.map +1 -0
- package/dist/v3/events/create-game-resource-request.d.ts +16 -0
- package/dist/v3/events/create-game-resource-request.js +58 -0
- package/dist/v3/events/create-game-resource-request.js.map +1 -0
- package/dist/v3/events/create-games-request.d.ts +12 -0
- package/dist/v3/events/create-games-request.js +45 -0
- package/dist/v3/events/create-games-request.js.map +1 -0
- package/dist/v3/events/create-machine-resource-batch-request.d.ts +15 -0
- package/dist/v3/events/create-machine-resource-batch-request.js +54 -0
- package/dist/v3/events/create-machine-resource-batch-request.js.map +1 -0
- package/dist/v3/events/create-machine-resource-request.d.ts +15 -0
- package/dist/v3/events/create-machine-resource-request.js +54 -0
- package/dist/v3/events/create-machine-resource-request.js.map +1 -0
- package/dist/v3/events/create-machines-request.d.ts +12 -0
- package/dist/v3/events/create-machines-request.js +45 -0
- package/dist/v3/events/create-machines-request.js.map +1 -0
- package/dist/v3/events/game-allocated-response.d.ts +14 -0
- package/dist/v3/events/game-allocated-response.js +50 -0
- package/dist/v3/events/game-allocated-response.js.map +1 -0
- package/dist/v3/events/game-created-response.d.ts +15 -0
- package/dist/v3/events/game-created-response.js +54 -0
- package/dist/v3/events/game-created-response.js.map +1 -0
- package/dist/v3/events/game-terminated-response.d.ts +12 -0
- package/dist/v3/events/game-terminated-response.js +45 -0
- package/dist/v3/events/game-terminated-response.js.map +1 -0
- package/dist/v3/events/index.d.ts +17 -0
- package/dist/v3/events/index.js +34 -0
- package/dist/v3/events/index.js.map +1 -0
- package/dist/v3/events/machine-allocated-response.d.ts +17 -0
- package/dist/v3/events/machine-allocated-response.js +62 -0
- package/dist/v3/events/machine-allocated-response.js.map +1 -0
- package/dist/v3/events/machine-created-response.d.ts +12 -0
- package/dist/v3/events/machine-created-response.js +45 -0
- package/dist/v3/events/machine-created-response.js.map +1 -0
- package/dist/v3/events/set-pool.event.d.ts +9 -0
- package/dist/v3/events/set-pool.event.js +34 -0
- package/dist/v3/events/set-pool.event.js.map +1 -0
- package/dist/v3/events/terminate-game-resource-request.d.ts +15 -0
- package/dist/v3/events/terminate-game-resource-request.js +54 -0
- package/dist/v3/events/terminate-game-resource-request.js.map +1 -0
- package/dist/v3/events/terminate-games-request.d.ts +12 -0
- package/dist/v3/events/terminate-games-request.js +45 -0
- package/dist/v3/events/terminate-games-request.js.map +1 -0
- package/dist/v3/events/terminate-machine-resource-batch-request.d.ts +15 -0
- package/dist/v3/events/terminate-machine-resource-batch-request.js +54 -0
- package/dist/v3/events/terminate-machine-resource-batch-request.js.map +1 -0
- package/dist/v3/events/terminate-machines-request.d.ts +12 -0
- package/dist/v3/events/terminate-machines-request.js +45 -0
- package/dist/v3/events/terminate-machines-request.js.map +1 -0
- package/dist/v3/index.d.ts +2 -0
- package/dist/v3/index.js +6 -0
- package/dist/v3/index.js.map +1 -0
- package/dist/v3/types/cloud.d.ts +39 -0
- package/dist/v3/types/cloud.js +88 -0
- package/dist/v3/types/cloud.js.map +1 -0
- package/dist/v3/types/index.d.ts +2 -0
- package/dist/v3/types/index.js +19 -0
- package/dist/v3/types/index.js.map +1 -0
- package/dist/v3/types/pools.d.ts +59 -0
- package/dist/v3/types/pools.js +88 -0
- package/dist/v3/types/pools.js.map +1 -0
- package/package.json +1 -1
- package/src/index.ts +1 -0
- package/src/v3/contexts/cloud-resource-context.ts +21 -0
- package/src/v3/contexts/index.ts +1 -0
- package/src/v3/events/allocate-game-request.ts +36 -0
- package/src/v3/events/allocate-game-resource-request.ts +50 -0
- package/src/v3/events/allocate-machine-request.ts +35 -0
- package/src/v3/events/create-game-resource-request.ts +46 -0
- package/src/v3/events/create-games-request.ts +29 -0
- package/src/v3/events/create-machine-resource-batch-request.ts +44 -0
- package/src/v3/events/create-machine-resource-request.ts +43 -0
- package/src/v3/events/create-machines-request.ts +29 -0
- package/src/v3/events/game-allocated-response.ts +36 -0
- package/src/v3/events/game-created-response.ts +43 -0
- package/src/v3/events/game-terminated-response.ts +32 -0
- package/src/v3/events/index.ts +17 -0
- package/src/v3/events/machine-allocated-response.ts +49 -0
- package/src/v3/events/machine-created-response.ts +32 -0
- package/src/v3/events/set-pool.event.ts +23 -0
- package/src/v3/events/terminate-game-resource-request.ts +43 -0
- package/src/v3/events/terminate-games-request.ts +29 -0
- package/src/v3/events/terminate-machine-resource-batch-request.ts +44 -0
- package/src/v3/events/terminate-machines-request.ts +29 -0
- package/src/v3/index.ts +2 -0
- package/src/v3/types/cloud.ts +84 -0
- package/src/v3/types/index.ts +2 -0
- package/src/v3/types/pools.ts +90 -0
|
@@ -0,0 +1,45 @@
|
|
|
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.CreateMachinesRequest = exports.CreateMachinesRequestPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const contexts_1 = require("../../v2/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 CreateMachinesRequestPayload {
|
|
18
|
+
}
|
|
19
|
+
exports.CreateMachinesRequestPayload = CreateMachinesRequestPayload;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_validator_1.IsUUID)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], CreateMachinesRequestPayload.prototype, "poolId", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsNumber)(),
|
|
26
|
+
__metadata("design:type", Number)
|
|
27
|
+
], CreateMachinesRequestPayload.prototype, "quantity", void 0);
|
|
28
|
+
class CreateMachinesRequest extends ludeo_event_1.LudeoEvent {
|
|
29
|
+
constructor(payload, context) {
|
|
30
|
+
super(CreateMachinesRequest.EVENT_NAME);
|
|
31
|
+
this.payload = payload;
|
|
32
|
+
this.context = context;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
exports.CreateMachinesRequest = CreateMachinesRequest;
|
|
36
|
+
CreateMachinesRequest.EVENT_NAME = "cloud-pools.create-machines-request";
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.PoolContext),
|
|
39
|
+
__metadata("design:type", contexts_1.PoolContext)
|
|
40
|
+
], CreateMachinesRequest.prototype, "context", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => CreateMachinesRequestPayload),
|
|
43
|
+
__metadata("design:type", CreateMachinesRequestPayload)
|
|
44
|
+
], CreateMachinesRequest.prototype, "payload", void 0);
|
|
45
|
+
//# sourceMappingURL=create-machines-request.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-machines-request.js","sourceRoot":"","sources":["../../../src/v3/events/create-machines-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmD;AAEnD,gDAAgD;AAChD,yDAAqD;AACrD,oGAAqF;AAErF,MAAa,4BAA4B;CAMxC;AAND,oEAMC;AAJC;IADC,IAAA,wBAAM,GAAE;;4DACM;AAGf;IADC,IAAA,0BAAQ,GAAE;;8DACM;AAGnB,MAAa,qBAAsB,SAAQ,wBAAU;IAGnD,YAAY,OAAqC,EAAE,OAAoB;QACrE,KAAK,CAAC,qBAAqB,CAAC,UAAU,CAAC,CAAC;QACxC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,sDAcC;AAbiB,gCAAU,GAAG,qCAAqC,CAAC;AASnE;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,sBAAW,CAAC;8BAC7B,sBAAW;sDAAC;AAGrB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAA4B,CAAC;8BAC9C,4BAA4B;sDAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CloudResourceContext } from "../contexts";
|
|
2
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
3
|
+
import { CloudProviderAllocationData } from "../types";
|
|
4
|
+
export declare class GameAllocatedResponsePayload {
|
|
5
|
+
gameResourceId: string;
|
|
6
|
+
gamePoolId: string;
|
|
7
|
+
allocationData: CloudProviderAllocationData;
|
|
8
|
+
}
|
|
9
|
+
export declare class GameAllocatedResponse extends LudeoEvent {
|
|
10
|
+
static readonly EVENT_NAME = "cloud-resources.game-allocated-response";
|
|
11
|
+
constructor(payload: GameAllocatedResponsePayload, context: CloudResourceContext);
|
|
12
|
+
context: CloudResourceContext;
|
|
13
|
+
payload: GameAllocatedResponsePayload;
|
|
14
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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.GameAllocatedResponse = exports.GameAllocatedResponsePayload = 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
|
+
const types_1 = require("../types");
|
|
18
|
+
class GameAllocatedResponsePayload {
|
|
19
|
+
}
|
|
20
|
+
exports.GameAllocatedResponsePayload = GameAllocatedResponsePayload;
|
|
21
|
+
__decorate([
|
|
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, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.AwsAllocationData),
|
|
31
|
+
__metadata("design:type", Object)
|
|
32
|
+
], GameAllocatedResponsePayload.prototype, "allocationData", void 0);
|
|
33
|
+
class GameAllocatedResponse extends ludeo_event_1.LudeoEvent {
|
|
34
|
+
constructor(payload, context) {
|
|
35
|
+
super(GameAllocatedResponse.EVENT_NAME);
|
|
36
|
+
this.payload = payload;
|
|
37
|
+
this.context = context;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
exports.GameAllocatedResponse = GameAllocatedResponse;
|
|
41
|
+
GameAllocatedResponse.EVENT_NAME = "cloud-resources.game-allocated-response";
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.CloudResourceContext),
|
|
44
|
+
__metadata("design:type", contexts_1.CloudResourceContext)
|
|
45
|
+
], GameAllocatedResponse.prototype, "context", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => GameAllocatedResponsePayload),
|
|
48
|
+
__metadata("design:type", GameAllocatedResponsePayload)
|
|
49
|
+
], GameAllocatedResponse.prototype, "payload", void 0);
|
|
50
|
+
//# sourceMappingURL=game-allocated-response.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"game-allocated-response.js","sourceRoot":"","sources":["../../../src/v3/events/game-allocated-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyC;AAEzC,0CAAmD;AACnD,yDAAqD;AACrD,oGAAqF;AACrF,oCAA0E;AAE1E,MAAa,4BAA4B;CASxC;AATD,oEASC;AAPC;IADC,IAAA,wBAAM,GAAE;;oEACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;gEACU;AAGnB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,yBAAiB,CAAC;;oEACA;AAG9C,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,yCAAyC,CAAC;AAYvE;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"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { CloudResourceContext } from "../contexts";
|
|
2
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
3
|
+
import { CloudProviderSettings, CloudProvider } from "../types";
|
|
4
|
+
export declare class GameCreatedResponsePayload {
|
|
5
|
+
gameResourceId: string;
|
|
6
|
+
gamePoolId: string;
|
|
7
|
+
providerSettings: CloudProviderSettings;
|
|
8
|
+
cloudProvider: CloudProvider;
|
|
9
|
+
}
|
|
10
|
+
export declare class GameCreatedResponse extends LudeoEvent {
|
|
11
|
+
static readonly EVENT_NAME = "cloud-resources.game-created-response";
|
|
12
|
+
constructor(payload: GameCreatedResponsePayload, context: CloudResourceContext);
|
|
13
|
+
context: CloudResourceContext;
|
|
14
|
+
payload: GameCreatedResponsePayload;
|
|
15
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
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.GameCreatedResponse = exports.GameCreatedResponsePayload = 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
|
+
const types_1 = require("../types");
|
|
18
|
+
class GameCreatedResponsePayload {
|
|
19
|
+
}
|
|
20
|
+
exports.GameCreatedResponsePayload = GameCreatedResponsePayload;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsUUID)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], GameCreatedResponsePayload.prototype, "gameResourceId", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsUUID)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], GameCreatedResponsePayload.prototype, "gamePoolId", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.AWSProviderSettings),
|
|
31
|
+
__metadata("design:type", Object)
|
|
32
|
+
], GameCreatedResponsePayload.prototype, "providerSettings", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_validator_1.IsEnum)(types_1.CloudProvider),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], GameCreatedResponsePayload.prototype, "cloudProvider", void 0);
|
|
37
|
+
class GameCreatedResponse extends ludeo_event_1.LudeoEvent {
|
|
38
|
+
constructor(payload, context) {
|
|
39
|
+
super(GameCreatedResponse.EVENT_NAME);
|
|
40
|
+
this.payload = payload;
|
|
41
|
+
this.context = context;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.GameCreatedResponse = GameCreatedResponse;
|
|
45
|
+
GameCreatedResponse.EVENT_NAME = "cloud-resources.game-created-response";
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.CloudResourceContext),
|
|
48
|
+
__metadata("design:type", contexts_1.CloudResourceContext)
|
|
49
|
+
], GameCreatedResponse.prototype, "context", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => GameCreatedResponsePayload),
|
|
52
|
+
__metadata("design:type", GameCreatedResponsePayload)
|
|
53
|
+
], GameCreatedResponse.prototype, "payload", void 0);
|
|
54
|
+
//# sourceMappingURL=game-created-response.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"game-created-response.js","sourceRoot":"","sources":["../../../src/v3/events/game-created-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiD;AAEjD,0CAAmD;AACnD,yDAAqD;AACrD,oGAAqF;AACrF,oCAIkB;AAElB,MAAa,0BAA0B;CAYtC;AAZD,gEAYC;AAVC;IADC,IAAA,wBAAM,GAAE;;kEACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;8DACU;AAGnB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,2BAAmB,CAAC;;oEACN;AAGxC;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;iEACO;AAG/B,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,uCAAuC,CAAC;AAYrE;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,12 @@
|
|
|
1
|
+
import { CloudResourceContext } from "../contexts";
|
|
2
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
3
|
+
export declare class GameTerminatedResponsePayload {
|
|
4
|
+
gameResourceId: string;
|
|
5
|
+
gamePoolId: string;
|
|
6
|
+
}
|
|
7
|
+
export declare class GameTerminatedResponse extends LudeoEvent {
|
|
8
|
+
static readonly EVENT_NAME = "cloud-resources.game-terminated-response";
|
|
9
|
+
constructor(payload: GameTerminatedResponsePayload, context: CloudResourceContext);
|
|
10
|
+
context: CloudResourceContext;
|
|
11
|
+
payload: GameTerminatedResponsePayload;
|
|
12
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
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.GameTerminatedResponse = exports.GameTerminatedResponsePayload = 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 GameTerminatedResponsePayload {
|
|
18
|
+
}
|
|
19
|
+
exports.GameTerminatedResponsePayload = GameTerminatedResponsePayload;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_validator_1.IsUUID)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], GameTerminatedResponsePayload.prototype, "gameResourceId", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsUUID)(),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], GameTerminatedResponsePayload.prototype, "gamePoolId", void 0);
|
|
28
|
+
class GameTerminatedResponse extends ludeo_event_1.LudeoEvent {
|
|
29
|
+
constructor(payload, context) {
|
|
30
|
+
super(GameTerminatedResponse.EVENT_NAME);
|
|
31
|
+
this.payload = payload;
|
|
32
|
+
this.context = context;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
exports.GameTerminatedResponse = GameTerminatedResponse;
|
|
36
|
+
GameTerminatedResponse.EVENT_NAME = "cloud-resources.game-terminated-response";
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.CloudResourceContext),
|
|
39
|
+
__metadata("design:type", contexts_1.CloudResourceContext)
|
|
40
|
+
], GameTerminatedResponse.prototype, "context", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => GameTerminatedResponsePayload),
|
|
43
|
+
__metadata("design:type", GameTerminatedResponsePayload)
|
|
44
|
+
], GameTerminatedResponse.prototype, "payload", void 0);
|
|
45
|
+
//# sourceMappingURL=game-terminated-response.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"game-terminated-response.js","sourceRoot":"","sources":["../../../src/v3/events/game-terminated-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyC;AAEzC,0CAAmD;AACnD,yDAAqD;AACrD,oGAAqF;AAErF,MAAa,6BAA6B;CAMzC;AAND,sEAMC;AAJC;IADC,IAAA,wBAAM,GAAE;;qEACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;iEACU;AAGrB,MAAa,sBAAuB,SAAQ,wBAAU;IAGpD,YACE,OAAsC,EACtC,OAA6B;QAE7B,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,0CAA0C,CAAC;AAYxE;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;uDAAC;AAG9B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,6BAA6B,CAAC;8BAC/C,6BAA6B;uDAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export * from "./allocate-game-request";
|
|
2
|
+
export * from "./allocate-game-resource-request";
|
|
3
|
+
export * from "./allocate-machine-request";
|
|
4
|
+
export * from "./create-game-resource-request";
|
|
5
|
+
export * from "./create-games-request";
|
|
6
|
+
export * from "./create-machine-resource-batch-request";
|
|
7
|
+
export * from "./create-machines-request";
|
|
8
|
+
export * from "./game-allocated-response";
|
|
9
|
+
export * from "./game-created-response";
|
|
10
|
+
export * from "./game-terminated-response";
|
|
11
|
+
export * from "./machine-allocated-response";
|
|
12
|
+
export * from "./machine-created-response";
|
|
13
|
+
export * from "./set-pool.event";
|
|
14
|
+
export * from "./terminate-game-resource-request";
|
|
15
|
+
export * from "./terminate-games-request";
|
|
16
|
+
export * from "./terminate-machine-resource-batch-request";
|
|
17
|
+
export * from "./terminate-machines-request";
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./allocate-game-request"), exports);
|
|
18
|
+
__exportStar(require("./allocate-game-resource-request"), exports);
|
|
19
|
+
__exportStar(require("./allocate-machine-request"), exports);
|
|
20
|
+
__exportStar(require("./create-game-resource-request"), exports);
|
|
21
|
+
__exportStar(require("./create-games-request"), exports);
|
|
22
|
+
__exportStar(require("./create-machine-resource-batch-request"), exports);
|
|
23
|
+
__exportStar(require("./create-machines-request"), exports);
|
|
24
|
+
__exportStar(require("./game-allocated-response"), exports);
|
|
25
|
+
__exportStar(require("./game-created-response"), exports);
|
|
26
|
+
__exportStar(require("./game-terminated-response"), exports);
|
|
27
|
+
__exportStar(require("./machine-allocated-response"), exports);
|
|
28
|
+
__exportStar(require("./machine-created-response"), exports);
|
|
29
|
+
__exportStar(require("./set-pool.event"), exports);
|
|
30
|
+
__exportStar(require("./terminate-game-resource-request"), exports);
|
|
31
|
+
__exportStar(require("./terminate-games-request"), exports);
|
|
32
|
+
__exportStar(require("./terminate-machine-resource-batch-request"), exports);
|
|
33
|
+
__exportStar(require("./terminate-machines-request"), exports);
|
|
34
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v3/events/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,mEAAiD;AACjD,6DAA2C;AAC3C,iEAA+C;AAC/C,yDAAuC;AACvC,0EAAwD;AACxD,4DAA0C;AAC1C,4DAA0C;AAC1C,0DAAwC;AACxC,6DAA2C;AAC3C,+DAA6C;AAC7C,6DAA2C;AAC3C,mDAAiC;AACjC,oEAAkD;AAClD,4DAA0C;AAC1C,6EAA2D;AAC3D,+DAA6C"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { CloudResourceContext } from "../contexts";
|
|
2
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
3
|
+
import { CloudProviderSettings, CloudProvider } from "../types";
|
|
4
|
+
export declare class MachineAllocatedResponsePayload {
|
|
5
|
+
machineResourceId: string;
|
|
6
|
+
machinePoolId: string;
|
|
7
|
+
gameResourceId: string;
|
|
8
|
+
gamePoolId: string;
|
|
9
|
+
providerSettings: CloudProviderSettings;
|
|
10
|
+
cloudProvider: CloudProvider;
|
|
11
|
+
}
|
|
12
|
+
export declare class MachineAllocatedResponse extends LudeoEvent {
|
|
13
|
+
static readonly EVENT_NAME = "cloud-pools.machine-allocated-response";
|
|
14
|
+
constructor(payload: MachineAllocatedResponsePayload, context: CloudResourceContext);
|
|
15
|
+
context: CloudResourceContext;
|
|
16
|
+
payload: MachineAllocatedResponsePayload;
|
|
17
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
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.MachineAllocatedResponse = exports.MachineAllocatedResponsePayload = 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
|
+
const types_1 = require("../types");
|
|
18
|
+
class MachineAllocatedResponsePayload {
|
|
19
|
+
}
|
|
20
|
+
exports.MachineAllocatedResponsePayload = MachineAllocatedResponsePayload;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsUUID)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], MachineAllocatedResponsePayload.prototype, "machineResourceId", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsUUID)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], MachineAllocatedResponsePayload.prototype, "machinePoolId", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_validator_1.IsUUID)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], MachineAllocatedResponsePayload.prototype, "gameResourceId", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_validator_1.IsUUID)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], MachineAllocatedResponsePayload.prototype, "gamePoolId", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.AWSProviderSettings),
|
|
39
|
+
__metadata("design:type", Object)
|
|
40
|
+
], MachineAllocatedResponsePayload.prototype, "providerSettings", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, class_validator_1.IsEnum)(types_1.CloudProvider),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], MachineAllocatedResponsePayload.prototype, "cloudProvider", void 0);
|
|
45
|
+
class MachineAllocatedResponse extends ludeo_event_1.LudeoEvent {
|
|
46
|
+
constructor(payload, context) {
|
|
47
|
+
super(MachineAllocatedResponse.EVENT_NAME);
|
|
48
|
+
this.payload = payload;
|
|
49
|
+
this.context = context;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
exports.MachineAllocatedResponse = MachineAllocatedResponse;
|
|
53
|
+
MachineAllocatedResponse.EVENT_NAME = "cloud-pools.machine-allocated-response";
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.CloudResourceContext),
|
|
56
|
+
__metadata("design:type", contexts_1.CloudResourceContext)
|
|
57
|
+
], MachineAllocatedResponse.prototype, "context", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => MachineAllocatedResponsePayload),
|
|
60
|
+
__metadata("design:type", MachineAllocatedResponsePayload)
|
|
61
|
+
], MachineAllocatedResponse.prototype, "payload", void 0);
|
|
62
|
+
//# sourceMappingURL=machine-allocated-response.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"machine-allocated-response.js","sourceRoot":"","sources":["../../../src/v3/events/machine-allocated-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiD;AAEjD,0CAAmD;AACnD,yDAAqD;AACrD,oGAAqF;AACrF,oCAIkB;AAElB,MAAa,+BAA+B;CAkB3C;AAlBD,0EAkBC;AAhBC;IADC,IAAA,wBAAM,GAAE;;0EACiB;AAG1B;IADC,IAAA,wBAAM,GAAE;;sEACa;AAGtB;IADC,IAAA,wBAAM,GAAE;;uEACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;mEACU;AAGnB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,2BAAmB,CAAC;;yEACN;AAGxC;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;sEACO;AAG/B,MAAa,wBAAyB,SAAQ,wBAAU;IAGtD,YACE,OAAwC,EACxC,OAA6B;QAE7B,KAAK,CAAC,wBAAwB,CAAC,UAAU,CAAC,CAAC;QAC3C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,4DAiBC;AAhBiB,mCAAU,GAAG,wCAAwC,CAAC;AAYtE;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;yDAAC;AAG9B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAA+B,CAAC;8BACjD,+BAA+B;yDAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CloudResourceContext } from "../contexts";
|
|
2
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
3
|
+
export declare class MachineCreatedResponsePayload {
|
|
4
|
+
machineResourceId: string;
|
|
5
|
+
machinePoolId: string;
|
|
6
|
+
}
|
|
7
|
+
export declare class MachineCreatedResponse extends LudeoEvent {
|
|
8
|
+
static readonly EVENT_NAME = "cloud-resources.machine-created-response";
|
|
9
|
+
constructor(payload: MachineCreatedResponsePayload, context: CloudResourceContext);
|
|
10
|
+
context: CloudResourceContext;
|
|
11
|
+
payload: MachineCreatedResponsePayload;
|
|
12
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
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.MachineCreatedResponse = exports.MachineCreatedResponsePayload = 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 MachineCreatedResponsePayload {
|
|
18
|
+
}
|
|
19
|
+
exports.MachineCreatedResponsePayload = MachineCreatedResponsePayload;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_validator_1.IsUUID)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], MachineCreatedResponsePayload.prototype, "machineResourceId", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsUUID)(),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], MachineCreatedResponsePayload.prototype, "machinePoolId", void 0);
|
|
28
|
+
class MachineCreatedResponse extends ludeo_event_1.LudeoEvent {
|
|
29
|
+
constructor(payload, context) {
|
|
30
|
+
super(MachineCreatedResponse.EVENT_NAME);
|
|
31
|
+
this.payload = payload;
|
|
32
|
+
this.context = context;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
exports.MachineCreatedResponse = MachineCreatedResponse;
|
|
36
|
+
MachineCreatedResponse.EVENT_NAME = "cloud-resources.machine-created-response";
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.CloudResourceContext),
|
|
39
|
+
__metadata("design:type", contexts_1.CloudResourceContext)
|
|
40
|
+
], MachineCreatedResponse.prototype, "context", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => MachineCreatedResponsePayload),
|
|
43
|
+
__metadata("design:type", MachineCreatedResponsePayload)
|
|
44
|
+
], MachineCreatedResponse.prototype, "payload", void 0);
|
|
45
|
+
//# sourceMappingURL=machine-created-response.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"machine-created-response.js","sourceRoot":"","sources":["../../../src/v3/events/machine-created-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyC;AAEzC,0CAAmD;AACnD,yDAAqD;AACrD,oGAAqF;AAErF,MAAa,6BAA6B;CAMzC;AAND,sEAMC;AAJC;IADC,IAAA,wBAAM,GAAE;;wEACiB;AAG1B;IADC,IAAA,wBAAM,GAAE;;oEACa;AAGxB,MAAa,sBAAuB,SAAQ,wBAAU;IAGpD,YACE,OAAsC,EACtC,OAA6B;QAE7B,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,0CAA0C,CAAC;AAYxE;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;uDAAC;AAG9B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,6BAA6B,CAAC;8BAC/C,6BAA6B;uDAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PoolContext } from "../../v2/contexts/pool-context";
|
|
2
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
3
|
+
import { BaseCloudPoolConfiguration } from "../types";
|
|
4
|
+
export declare class SetPoolEvent extends LudeoEvent {
|
|
5
|
+
static readonly EVENT_NAME = "cloud-pools.set-pool";
|
|
6
|
+
constructor(payload: Partial<BaseCloudPoolConfiguration>, context: PoolContext);
|
|
7
|
+
context: PoolContext;
|
|
8
|
+
payload: Partial<BaseCloudPoolConfiguration>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
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.SetPoolEvent = void 0;
|
|
13
|
+
const pool_context_1 = require("../../v2/contexts/pool-context");
|
|
14
|
+
const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
15
|
+
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
16
|
+
const types_1 = require("../types");
|
|
17
|
+
class SetPoolEvent extends ludeo_event_1.LudeoEvent {
|
|
18
|
+
constructor(payload, context) {
|
|
19
|
+
super(SetPoolEvent.EVENT_NAME);
|
|
20
|
+
this.payload = payload;
|
|
21
|
+
this.context = context;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.SetPoolEvent = SetPoolEvent;
|
|
25
|
+
SetPoolEvent.EVENT_NAME = "cloud-pools.set-pool";
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => pool_context_1.PoolContext),
|
|
28
|
+
__metadata("design:type", pool_context_1.PoolContext)
|
|
29
|
+
], SetPoolEvent.prototype, "context", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.BaseCloudPoolConfiguration),
|
|
32
|
+
__metadata("design:type", Object)
|
|
33
|
+
], SetPoolEvent.prototype, "payload", void 0);
|
|
34
|
+
//# sourceMappingURL=set-pool.event.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"set-pool.event.js","sourceRoot":"","sources":["../../../src/v3/events/set-pool.event.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iEAA6D;AAC7D,oGAAqF;AACrF,yDAAqD;AACrD,oCAAsD;AAEtD,MAAa,YAAa,SAAQ,wBAAU;IAG1C,YACE,OAA4C,EAC5C,OAAoB;QAEpB,KAAK,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC;QAC/B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,oCAiBC;AAhBiB,uBAAU,GAAG,sBAAsB,CAAC;AAYpD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,0BAAW,CAAC;8BAC7B,0BAAW;6CAAC;AAGrB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,kCAA0B,CAAC;;6CACR"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { CloudResourceContext } from "../contexts";
|
|
2
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
3
|
+
import { CloudProviderSettings, CloudProvider } from "../types";
|
|
4
|
+
export declare class TerminateGameResourceRequestPayload {
|
|
5
|
+
gameResourceId: string;
|
|
6
|
+
gamePoolId: string;
|
|
7
|
+
providerSettings: CloudProviderSettings;
|
|
8
|
+
cloudProvider: CloudProvider;
|
|
9
|
+
}
|
|
10
|
+
export declare class TerminateGameResourceRequest extends LudeoEvent {
|
|
11
|
+
static readonly EVENT_NAME = "cloud-pools.terminate-game-resource-request";
|
|
12
|
+
constructor(payload: TerminateGameResourceRequestPayload, context: CloudResourceContext);
|
|
13
|
+
context: CloudResourceContext;
|
|
14
|
+
payload: TerminateGameResourceRequestPayload;
|
|
15
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
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.TerminateGameResourceRequest = exports.TerminateGameResourceRequestPayload = 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
|
+
const types_1 = require("../types");
|
|
18
|
+
class TerminateGameResourceRequestPayload {
|
|
19
|
+
}
|
|
20
|
+
exports.TerminateGameResourceRequestPayload = TerminateGameResourceRequestPayload;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsUUID)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], TerminateGameResourceRequestPayload.prototype, "gameResourceId", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsUUID)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], TerminateGameResourceRequestPayload.prototype, "gamePoolId", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.AWSProviderSettings),
|
|
31
|
+
__metadata("design:type", Object)
|
|
32
|
+
], TerminateGameResourceRequestPayload.prototype, "providerSettings", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_validator_1.IsEnum)(types_1.CloudProvider),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], TerminateGameResourceRequestPayload.prototype, "cloudProvider", void 0);
|
|
37
|
+
class TerminateGameResourceRequest extends ludeo_event_1.LudeoEvent {
|
|
38
|
+
constructor(payload, context) {
|
|
39
|
+
super(TerminateGameResourceRequest.EVENT_NAME);
|
|
40
|
+
this.payload = payload;
|
|
41
|
+
this.context = context;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.TerminateGameResourceRequest = TerminateGameResourceRequest;
|
|
45
|
+
TerminateGameResourceRequest.EVENT_NAME = "cloud-pools.terminate-game-resource-request";
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.CloudResourceContext),
|
|
48
|
+
__metadata("design:type", contexts_1.CloudResourceContext)
|
|
49
|
+
], TerminateGameResourceRequest.prototype, "context", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => TerminateGameResourceRequestPayload),
|
|
52
|
+
__metadata("design:type", TerminateGameResourceRequestPayload)
|
|
53
|
+
], TerminateGameResourceRequest.prototype, "payload", void 0);
|
|
54
|
+
//# sourceMappingURL=terminate-game-resource-request.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"terminate-game-resource-request.js","sourceRoot":"","sources":["../../../src/v3/events/terminate-game-resource-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiD;AAEjD,0CAAmD;AACnD,yDAAqD;AACrD,oGAAqF;AACrF,oCAIkB;AAElB,MAAa,mCAAmC;CAY/C;AAZD,kFAYC;AAVC;IADC,IAAA,wBAAM,GAAE;;2EACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;uEACU;AAGnB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,2BAAmB,CAAC;;6EACN;AAGxC;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;0EACO;AAG/B,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"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { PoolContext } from "../../v2/contexts";
|
|
2
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
3
|
+
export declare class TerminateGamesRequestPayload {
|
|
4
|
+
poolId: string;
|
|
5
|
+
quantity: number;
|
|
6
|
+
}
|
|
7
|
+
export declare class TerminateGamesRequest extends LudeoEvent {
|
|
8
|
+
static readonly EVENT_NAME = "cloud-pools.terminate-games-request";
|
|
9
|
+
constructor(payload: TerminateGamesRequestPayload, context: PoolContext);
|
|
10
|
+
context: PoolContext;
|
|
11
|
+
payload: TerminateGamesRequestPayload;
|
|
12
|
+
}
|