@ludeo/cloud-common 1.1.37 → 1.1.39
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/events/index.d.ts +1 -0
- package/dist/v3/events/index.js +1 -0
- package/dist/v3/events/index.js.map +1 -1
- package/dist/v3/events/machine-pool-resizing-task.d.ts +13 -0
- package/dist/v3/events/machine-pool-resizing-task.js +45 -0
- package/dist/v3/events/machine-pool-resizing-task.js.map +1 -0
- package/dist/v3/events/prepare-cloud-machine-auth.d.ts +1 -0
- package/dist/v3/events/prepare-cloud-machine-auth.js +5 -0
- package/dist/v3/events/prepare-cloud-machine-auth.js.map +1 -1
- package/package.json +1 -1
- package/src/v3/events/index.ts +1 -0
- package/src/v3/events/machine-pool-resizing-task.ts +35 -0
- package/src/v3/events/prepare-cloud-machine-auth.ts +5 -1
- package/dist/v3/events/game-allocated-response.d.ts +0 -14
- package/dist/v3/events/game-allocated-response.js +0 -50
- package/dist/v3/events/game-allocated-response.js.map +0 -1
- package/dist/v3/events/game-created-response.d.ts +0 -15
- package/dist/v3/events/game-created-response.js +0 -54
- package/dist/v3/events/game-created-response.js.map +0 -1
- package/dist/v3/events/game-terminated-response.d.ts +0 -12
- package/dist/v3/events/game-terminated-response.js +0 -45
- package/dist/v3/events/game-terminated-response.js.map +0 -1
- package/dist/v3/events/machine-created-response.d.ts +0 -12
- package/dist/v3/events/machine-created-response.js +0 -45
- package/dist/v3/events/machine-created-response.js.map +0 -1
|
@@ -17,6 +17,7 @@ export * from "./machine-allocated-response";
|
|
|
17
17
|
export * from "./machine-allocation-failed-response";
|
|
18
18
|
export * from "./machine-deallocated-response";
|
|
19
19
|
export * from "./machine-deallocation-failed-response";
|
|
20
|
+
export * from "./machine-pool-resizing-task";
|
|
20
21
|
export * from "./machine-resource-created-response";
|
|
21
22
|
export * from "./machine-resource-creation-failed-response";
|
|
22
23
|
export * from "./set-pool.event";
|
package/dist/v3/events/index.js
CHANGED
|
@@ -33,6 +33,7 @@ __exportStar(require("./machine-allocated-response"), exports);
|
|
|
33
33
|
__exportStar(require("./machine-allocation-failed-response"), exports);
|
|
34
34
|
__exportStar(require("./machine-deallocated-response"), exports);
|
|
35
35
|
__exportStar(require("./machine-deallocation-failed-response"), exports);
|
|
36
|
+
__exportStar(require("./machine-pool-resizing-task"), exports);
|
|
36
37
|
__exportStar(require("./machine-resource-created-response"), exports);
|
|
37
38
|
__exportStar(require("./machine-resource-creation-failed-response"), exports);
|
|
38
39
|
__exportStar(require("./set-pool.event"), exports);
|
|
@@ -1 +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,oEAAkD;AAClD,4DAA0C;AAC1C,+DAA6C;AAC7C,qEAAmD;AACnD,6EAA2D;AAC3D,mEAAiD;AACjD,2EAAyD;AACzD,sEAAoD;AACpD,8EAA4D;AAC5D,+DAA6C;AAC7C,uEAAqD;AACrD,iEAA+C;AAC/C,yEAAuD;AACvD,sEAAoD;AACpD,8EAA4D;AAC5D,mDAAiC;AACjC,oEAAkD;AAClD,4DAA0C;AAC1C,6EAA2D;AAC3D,+DAA6C;AAC7C,4DAA0C;AAC1C,mEAAiD;AACjD,+DAA6C;AAC7C,sEAAoD;AACpD,yDAAuC;AACvC,8DAA4C;AAC5C,6DAA2C"}
|
|
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,oEAAkD;AAClD,4DAA0C;AAC1C,+DAA6C;AAC7C,qEAAmD;AACnD,6EAA2D;AAC3D,mEAAiD;AACjD,2EAAyD;AACzD,sEAAoD;AACpD,8EAA4D;AAC5D,+DAA6C;AAC7C,uEAAqD;AACrD,iEAA+C;AAC/C,yEAAuD;AACvD,+DAA6C;AAC7C,sEAAoD;AACpD,8EAA4D;AAC5D,mDAAiC;AACjC,oEAAkD;AAClD,4DAA0C;AAC1C,6EAA2D;AAC3D,+DAA6C;AAC7C,4DAA0C;AAC1C,mEAAiD;AACjD,+DAA6C;AAC7C,sEAAoD;AACpD,yDAAuC;AACvC,8DAA4C;AAC5C,6DAA2C"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
2
|
+
import { CloudProvider, CloudProviderSettings } from "../types";
|
|
3
|
+
export declare class MachinePoolResizingTaskEventPayload {
|
|
4
|
+
providerSettings: CloudProviderSettings;
|
|
5
|
+
cloudProvider: CloudProvider;
|
|
6
|
+
machinePoolId: string;
|
|
7
|
+
}
|
|
8
|
+
export declare class MachinePoolResizingTask extends LudeoEvent {
|
|
9
|
+
static readonly EVENT_NAME = "cloud-resources.machine-pool-resizing-task";
|
|
10
|
+
constructor(payload: MachinePoolResizingTaskEventPayload, context: never);
|
|
11
|
+
context: never;
|
|
12
|
+
payload: MachinePoolResizingTaskEventPayload;
|
|
13
|
+
}
|
|
@@ -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.MachinePoolResizingTask = exports.MachinePoolResizingTaskEventPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
15
|
+
const decorators_1 = require("../../decorators");
|
|
16
|
+
const types_1 = require("../types");
|
|
17
|
+
class MachinePoolResizingTaskEventPayload {
|
|
18
|
+
}
|
|
19
|
+
exports.MachinePoolResizingTaskEventPayload = MachinePoolResizingTaskEventPayload;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, decorators_1.ValidateNestedType)(() => types_1.AWSProviderSettings),
|
|
22
|
+
__metadata("design:type", Object)
|
|
23
|
+
], MachinePoolResizingTaskEventPayload.prototype, "providerSettings", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsEnum)(types_1.CloudProvider),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], MachinePoolResizingTaskEventPayload.prototype, "cloudProvider", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_validator_1.IsUUID)(),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], MachinePoolResizingTaskEventPayload.prototype, "machinePoolId", void 0);
|
|
32
|
+
class MachinePoolResizingTask extends ludeo_event_1.LudeoEvent {
|
|
33
|
+
constructor(payload, context) {
|
|
34
|
+
super(MachinePoolResizingTask.EVENT_NAME);
|
|
35
|
+
this.payload = payload;
|
|
36
|
+
this.context = context;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
exports.MachinePoolResizingTask = MachinePoolResizingTask;
|
|
40
|
+
MachinePoolResizingTask.EVENT_NAME = "cloud-resources.machine-pool-resizing-task";
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, decorators_1.ValidateNestedType)(() => MachinePoolResizingTaskEventPayload),
|
|
43
|
+
__metadata("design:type", MachinePoolResizingTaskEventPayload)
|
|
44
|
+
], MachinePoolResizingTask.prototype, "payload", void 0);
|
|
45
|
+
//# sourceMappingURL=machine-pool-resizing-task.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"machine-pool-resizing-task.js","sourceRoot":"","sources":["../../../src/v3/events/machine-pool-resizing-task.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiD;AACjD,yDAAqD;AACrD,iDAAsD;AACtD,oCAIkB;AAElB,MAAa,mCAAmC;CAS/C;AATD,kFASC;AAPC;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,2BAAmB,CAAC;;6EACN;AAGxC;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;0EACO;AAG7B;IADC,IAAA,wBAAM,GAAE;;0EACa;AAGxB,MAAa,uBAAwB,SAAQ,wBAAU;IAIrD,YAAY,OAA4C,EAAE,OAAc;QACtE,KAAK,CAAC,uBAAuB,CAAC,UAAU,CAAC,CAAC;QAC1C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AARH,0DAcC;AAbwB,kCAAU,GAC/B,4CAA4C,CAAC;AAWxC;IADN,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,mCAAmC,CAAC;8BAC9C,mCAAmC;wDAAC"}
|
|
@@ -4,6 +4,7 @@ export declare class PrepareCloudMachineAuthPayload {
|
|
|
4
4
|
cloudUserId: string;
|
|
5
5
|
authTokenId: string;
|
|
6
6
|
resourceId: string;
|
|
7
|
+
gameId: string;
|
|
7
8
|
}
|
|
8
9
|
export declare class PrepareCloudMachineAuth extends LudeoEvent {
|
|
9
10
|
static readonly EVENT_NAME = "cloud-pools.prepare-cloud-machine-auth";
|
|
@@ -29,6 +29,11 @@ __decorate([
|
|
|
29
29
|
(0, class_validator_1.IsUUID)(),
|
|
30
30
|
__metadata("design:type", String)
|
|
31
31
|
], PrepareCloudMachineAuthPayload.prototype, "resourceId", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsOptional)(),
|
|
34
|
+
(0, class_validator_1.IsUUID)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], PrepareCloudMachineAuthPayload.prototype, "gameId", void 0);
|
|
32
37
|
class PrepareCloudMachineAuth extends infra_1.LudeoEvent {
|
|
33
38
|
constructor(payload, context) {
|
|
34
39
|
super(PrepareCloudMachineAuth.EVENT_NAME);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prepare-cloud-machine-auth.js","sourceRoot":"","sources":["../../../src/v3/events/prepare-cloud-machine-auth.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"prepare-cloud-machine-auth.js","sourceRoot":"","sources":["../../../src/v3/events/prepare-cloud-machine-auth.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAqD;AACrD,oGAAqF;AACrF,uCAAyC;AACzC,0CAAmD;AAEnD,MAAa,8BAA8B;CAa1C;AAbD,wEAaC;AAXC;IADC,IAAA,wBAAM,GAAE;;mEACW;AAGpB;IADC,IAAA,wBAAM,GAAE;;mEACW;AAGpB;IADC,IAAA,wBAAM,GAAE;;kEACU;AAInB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;8DACM;AAGjB,MAAa,uBAAwB,SAAQ,kBAAU;IAGrD,YACE,OAAuC,EACvC,OAA6B;QAE7B,KAAK,CAAC,uBAAuB,CAAC,UAAU,CAAC,CAAC;QAC1C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,0DAiBC;AAhBiB,kCAAU,GAAG,wCAAwC,CAAC;AAYtE;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,8BAA8B,CAAC;8BAChD,8BAA8B;wDAAC;AAGxC;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;wDAAC"}
|
package/package.json
CHANGED
package/src/v3/events/index.ts
CHANGED
|
@@ -17,6 +17,7 @@ export * from "./machine-allocated-response";
|
|
|
17
17
|
export * from "./machine-allocation-failed-response";
|
|
18
18
|
export * from "./machine-deallocated-response";
|
|
19
19
|
export * from "./machine-deallocation-failed-response";
|
|
20
|
+
export * from "./machine-pool-resizing-task";
|
|
20
21
|
export * from "./machine-resource-created-response";
|
|
21
22
|
export * from "./machine-resource-creation-failed-response";
|
|
22
23
|
export * from "./set-pool.event";
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { IsEnum, IsUUID } from "class-validator";
|
|
2
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
3
|
+
import { ValidateNestedType } from "../../decorators";
|
|
4
|
+
import {
|
|
5
|
+
AWSProviderSettings,
|
|
6
|
+
CloudProvider,
|
|
7
|
+
CloudProviderSettings,
|
|
8
|
+
} from "../types";
|
|
9
|
+
|
|
10
|
+
export class MachinePoolResizingTaskEventPayload {
|
|
11
|
+
@ValidateNestedType(() => AWSProviderSettings)
|
|
12
|
+
providerSettings: CloudProviderSettings;
|
|
13
|
+
|
|
14
|
+
@IsEnum(CloudProvider)
|
|
15
|
+
cloudProvider: CloudProvider;
|
|
16
|
+
|
|
17
|
+
@IsUUID()
|
|
18
|
+
machinePoolId: string;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export class MachinePoolResizingTask extends LudeoEvent {
|
|
22
|
+
public static readonly EVENT_NAME =
|
|
23
|
+
"cloud-resources.machine-pool-resizing-task";
|
|
24
|
+
|
|
25
|
+
constructor(payload: MachinePoolResizingTaskEventPayload, context: never) {
|
|
26
|
+
super(MachinePoolResizingTask.EVENT_NAME);
|
|
27
|
+
this.payload = payload;
|
|
28
|
+
this.context = context;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
public context: never;
|
|
32
|
+
|
|
33
|
+
@ValidateNestedType(() => MachinePoolResizingTaskEventPayload)
|
|
34
|
+
public payload: MachinePoolResizingTaskEventPayload;
|
|
35
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IsUUID } from "class-validator";
|
|
1
|
+
import { IsOptional, IsUUID } from "class-validator";
|
|
2
2
|
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
3
3
|
import { LudeoEvent } from "../../infra";
|
|
4
4
|
import { CloudResourceContext } from "../contexts";
|
|
@@ -12,6 +12,10 @@ export class PrepareCloudMachineAuthPayload {
|
|
|
12
12
|
|
|
13
13
|
@IsUUID()
|
|
14
14
|
resourceId: string;
|
|
15
|
+
|
|
16
|
+
@IsOptional()
|
|
17
|
+
@IsUUID()
|
|
18
|
+
gameId: string;
|
|
15
19
|
}
|
|
16
20
|
|
|
17
21
|
export class PrepareCloudMachineAuth extends LudeoEvent {
|
|
@@ -1,14 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,15 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,54 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,12 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,12 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|