@ludeo/cloud-common 1.1.14 → 1.1.16
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/contexts/getCloudContextType.d.ts +1 -1
- package/dist/v3/events/allocate-game-request.d.ts +1 -1
- package/dist/v3/events/allocate-game-request.js +1 -1
- package/dist/v3/events/allocate-game-request.js.map +1 -1
- package/dist/v3/events/allocate-game-resource-request.d.ts +1 -1
- package/dist/v3/events/allocate-game-resource-request.js +1 -1
- package/dist/v3/events/allocate-game-resource-request.js.map +1 -1
- package/dist/v3/events/create-games-request.d.ts +3 -3
- package/dist/v3/events/create-games-request.js +3 -3
- package/dist/v3/events/create-games-request.js.map +1 -1
- package/dist/v3/events/create-machines-request.d.ts +3 -3
- package/dist/v3/events/create-machines-request.js +3 -3
- package/dist/v3/events/create-machines-request.js.map +1 -1
- package/dist/v3/events/deallocate-machine-request.d.ts +1 -1
- package/dist/v3/events/deallocate-machine-request.js.map +1 -1
- 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 +1 -0
- package/dist/v3/events/index.js +1 -0
- package/dist/v3/events/index.js.map +1 -1
- 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/machine-deallocated-response.d.ts +1 -1
- package/dist/v3/events/machine-deallocation-failed-response.d.ts +1 -1
- package/dist/v3/events/set-pool.event.d.ts +3 -3
- package/dist/v3/events/set-pool.event.js +3 -3
- package/dist/v3/events/set-pool.event.js.map +1 -1
- package/dist/v3/events/swap-cloud-user-request-failed.d.ts +1 -1
- package/dist/v3/events/swap-cloud-user-request-failed.js +1 -1
- package/dist/v3/events/swap-cloud-user-request-failed.js.map +1 -1
- package/dist/v3/events/swap-cloud-user-request.d.ts +1 -1
- package/dist/v3/events/swap-cloud-user-request.js +1 -1
- package/dist/v3/events/swap-cloud-user-request.js.map +1 -1
- package/dist/v3/events/terminate-games-request.d.ts +3 -3
- package/dist/v3/events/terminate-games-request.js +3 -3
- package/dist/v3/events/terminate-games-request.js.map +1 -1
- package/dist/v3/events/terminate-machines-request.d.ts +3 -3
- package/dist/v3/events/terminate-machines-request.js +3 -3
- package/dist/v3/events/terminate-machines-request.js.map +1 -1
- package/package.json +1 -1
- package/src/v3/events/allocate-game-request.ts +1 -1
- package/src/v3/events/allocate-game-resource-request.ts +1 -1
- package/src/v3/events/create-games-request.ts +4 -4
- package/src/v3/events/create-machines-request.ts +7 -4
- package/src/v3/events/deallocate-machine-request.ts +2 -3
- package/src/v3/events/index.ts +1 -0
- package/src/v3/events/machine-deallocated-response.ts +1 -1
- package/src/v3/events/machine-deallocation-failed-response.ts +1 -1
- package/src/v3/events/set-pool.event.ts +4 -4
- package/src/v3/events/swap-cloud-user-request-failed.ts +1 -1
- package/src/v3/events/swap-cloud-user-request.ts +1 -1
- package/src/v3/events/terminate-games-request.ts +7 -4
- package/src/v3/events/terminate-machines-request.ts +7 -4
|
@@ -11,7 +11,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.TerminateGamesRequest = exports.TerminateGamesRequestPayload = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
|
-
const contexts_1 = require("
|
|
14
|
+
const contexts_1 = require("../contexts");
|
|
15
15
|
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
16
16
|
const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
17
17
|
class TerminateGamesRequestPayload {
|
|
@@ -35,8 +35,8 @@ class TerminateGamesRequest extends ludeo_event_1.LudeoEvent {
|
|
|
35
35
|
exports.TerminateGamesRequest = TerminateGamesRequest;
|
|
36
36
|
TerminateGamesRequest.EVENT_NAME = "cloud-pools.terminate-games-request";
|
|
37
37
|
__decorate([
|
|
38
|
-
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.
|
|
39
|
-
__metadata("design:type", contexts_1.
|
|
38
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.CloudPoolContext),
|
|
39
|
+
__metadata("design:type", contexts_1.CloudPoolContext)
|
|
40
40
|
], TerminateGamesRequest.prototype, "context", void 0);
|
|
41
41
|
__decorate([
|
|
42
42
|
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => TerminateGamesRequestPayload),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"terminate-games-request.js","sourceRoot":"","sources":["../../../src/v3/events/terminate-games-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmD;AAEnD,
|
|
1
|
+
{"version":3,"file":"terminate-games-request.js","sourceRoot":"","sources":["../../../src/v3/events/terminate-games-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmD;AAEnD,0CAA+C;AAC/C,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,YACE,OAAqC,EACrC,OAAyB;QAEzB,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,2BAAgB,CAAC;8BAClC,2BAAgB;sDAAC;AAG1B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAA4B,CAAC;8BAC9C,4BAA4B;sDAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CloudPoolContext } from "../contexts";
|
|
2
2
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
3
3
|
export declare class TerminateMachinesRequestPayload {
|
|
4
4
|
poolId: string;
|
|
@@ -6,7 +6,7 @@ export declare class TerminateMachinesRequestPayload {
|
|
|
6
6
|
}
|
|
7
7
|
export declare class TerminateMachinesRequest extends LudeoEvent {
|
|
8
8
|
static readonly EVENT_NAME = "cloud-pools.terminate-machines-request";
|
|
9
|
-
constructor(payload: TerminateMachinesRequestPayload, context:
|
|
10
|
-
context:
|
|
9
|
+
constructor(payload: TerminateMachinesRequestPayload, context: CloudPoolContext);
|
|
10
|
+
context: CloudPoolContext;
|
|
11
11
|
payload: TerminateMachinesRequestPayload;
|
|
12
12
|
}
|
|
@@ -11,7 +11,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.TerminateMachinesRequest = exports.TerminateMachinesRequestPayload = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
|
-
const contexts_1 = require("
|
|
14
|
+
const contexts_1 = require("../contexts");
|
|
15
15
|
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
16
16
|
const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
17
17
|
class TerminateMachinesRequestPayload {
|
|
@@ -35,8 +35,8 @@ class TerminateMachinesRequest extends ludeo_event_1.LudeoEvent {
|
|
|
35
35
|
exports.TerminateMachinesRequest = TerminateMachinesRequest;
|
|
36
36
|
TerminateMachinesRequest.EVENT_NAME = "cloud-pools.terminate-machines-request";
|
|
37
37
|
__decorate([
|
|
38
|
-
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.
|
|
39
|
-
__metadata("design:type", contexts_1.
|
|
38
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.CloudPoolContext),
|
|
39
|
+
__metadata("design:type", contexts_1.CloudPoolContext)
|
|
40
40
|
], TerminateMachinesRequest.prototype, "context", void 0);
|
|
41
41
|
__decorate([
|
|
42
42
|
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => TerminateMachinesRequestPayload),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"terminate-machines-request.js","sourceRoot":"","sources":["../../../src/v3/events/terminate-machines-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmD;AAEnD,
|
|
1
|
+
{"version":3,"file":"terminate-machines-request.js","sourceRoot":"","sources":["../../../src/v3/events/terminate-machines-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmD;AAEnD,0CAA+C;AAC/C,yDAAqD;AACrD,oGAAqF;AAErF,MAAa,+BAA+B;CAM3C;AAND,0EAMC;AAJC;IADC,IAAA,wBAAM,GAAE;;+DACM;AAGf;IADC,IAAA,0BAAQ,GAAE;;iEACM;AAGnB,MAAa,wBAAyB,SAAQ,wBAAU;IAGtD,YACE,OAAwC,EACxC,OAAyB;QAEzB,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,2BAAgB,CAAC;8BAClC,2BAAgB;yDAAC;AAG1B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAA+B,CAAC;8BACjD,+BAA+B;yDAAC"}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@ import { IsUUID } from "class-validator";
|
|
|
2
2
|
|
|
3
3
|
import { AllocationRequestData } from "../types";
|
|
4
4
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
5
|
-
import { CloudSessionContext } from "
|
|
5
|
+
import { CloudSessionContext } from "../contexts";
|
|
6
6
|
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
7
7
|
|
|
8
8
|
export class AllocateGameRequestPayload {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IsUUID, IsEnum } from "class-validator";
|
|
2
2
|
|
|
3
3
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
4
|
-
import { CloudSessionContext } from "
|
|
4
|
+
import { CloudSessionContext } from "../contexts";
|
|
5
5
|
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
6
6
|
import {
|
|
7
7
|
AWSProviderSettings,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IsNumber, IsUUID } from "class-validator";
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { CloudPoolContext } from "../contexts";
|
|
4
4
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
5
5
|
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
6
6
|
|
|
@@ -15,14 +15,14 @@ export class CreateGamesRequestPayload {
|
|
|
15
15
|
export class CreateGamesRequest extends LudeoEvent {
|
|
16
16
|
static readonly EVENT_NAME = "cloud-pools.create-games-request";
|
|
17
17
|
|
|
18
|
-
constructor(payload: CreateGamesRequestPayload, context:
|
|
18
|
+
constructor(payload: CreateGamesRequestPayload, context: CloudPoolContext) {
|
|
19
19
|
super(CreateGamesRequest.EVENT_NAME);
|
|
20
20
|
this.payload = payload;
|
|
21
21
|
this.context = context;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
@ValidateNestedType(() =>
|
|
25
|
-
context:
|
|
24
|
+
@ValidateNestedType(() => CloudPoolContext)
|
|
25
|
+
context: CloudPoolContext;
|
|
26
26
|
|
|
27
27
|
@ValidateNestedType(() => CreateGamesRequestPayload)
|
|
28
28
|
payload: CreateGamesRequestPayload;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IsNumber, IsUUID } from "class-validator";
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { CloudPoolContext } from "../contexts";
|
|
4
4
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
5
5
|
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
6
6
|
|
|
@@ -15,14 +15,17 @@ export class CreateMachinesRequestPayload {
|
|
|
15
15
|
export class CreateMachinesRequest extends LudeoEvent {
|
|
16
16
|
static readonly EVENT_NAME = "cloud-pools.create-machines-request";
|
|
17
17
|
|
|
18
|
-
constructor(
|
|
18
|
+
constructor(
|
|
19
|
+
payload: CreateMachinesRequestPayload,
|
|
20
|
+
context: CloudPoolContext
|
|
21
|
+
) {
|
|
19
22
|
super(CreateMachinesRequest.EVENT_NAME);
|
|
20
23
|
this.payload = payload;
|
|
21
24
|
this.context = context;
|
|
22
25
|
}
|
|
23
26
|
|
|
24
|
-
@ValidateNestedType(() =>
|
|
25
|
-
context:
|
|
27
|
+
@ValidateNestedType(() => CloudPoolContext)
|
|
28
|
+
context: CloudPoolContext;
|
|
26
29
|
|
|
27
30
|
@ValidateNestedType(() => CreateMachinesRequestPayload)
|
|
28
31
|
payload: CreateMachinesRequestPayload;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { IsUUID, ValidateNested } from "class-validator";
|
|
1
|
+
import { IsUUID } from "class-validator";
|
|
3
2
|
|
|
4
3
|
import { CloudPoolContext } from "../contexts";
|
|
5
4
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
6
|
-
import { CloudSessionContext } from "
|
|
5
|
+
import { CloudSessionContext } from "../contexts";
|
|
7
6
|
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
8
7
|
import { getCloudContextType } from "../contexts/getCloudContextType";
|
|
9
8
|
|
package/src/v3/events/index.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IsUUID } from "class-validator";
|
|
2
2
|
|
|
3
3
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
4
|
-
import { CloudSessionContext } from "
|
|
4
|
+
import { CloudSessionContext } from "../contexts";
|
|
5
5
|
import { CloudPoolContext, getCloudContextType } from "../contexts";
|
|
6
6
|
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IsString, IsUUID } from "class-validator";
|
|
2
2
|
|
|
3
3
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
4
|
-
import { CloudSessionContext } from "
|
|
4
|
+
import { CloudSessionContext } from "../contexts";
|
|
5
5
|
import { CloudPoolContext, getCloudContextType } from "../contexts";
|
|
6
6
|
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
7
7
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CloudPoolContext } from "../contexts";
|
|
2
2
|
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
3
3
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
4
4
|
import { BaseCloudPoolConfiguration } from "../types";
|
|
@@ -8,15 +8,15 @@ export class SetPoolEvent extends LudeoEvent {
|
|
|
8
8
|
|
|
9
9
|
constructor(
|
|
10
10
|
payload: Partial<BaseCloudPoolConfiguration>,
|
|
11
|
-
context:
|
|
11
|
+
context: CloudPoolContext
|
|
12
12
|
) {
|
|
13
13
|
super(SetPoolEvent.EVENT_NAME);
|
|
14
14
|
this.payload = payload;
|
|
15
15
|
this.context = context;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
@ValidateNestedType(() =>
|
|
19
|
-
context:
|
|
18
|
+
@ValidateNestedType(() => CloudPoolContext)
|
|
19
|
+
context: CloudPoolContext;
|
|
20
20
|
|
|
21
21
|
@ValidateNestedType(() => BaseCloudPoolConfiguration)
|
|
22
22
|
payload: Partial<BaseCloudPoolConfiguration>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IsString, IsUUID } from "class-validator";
|
|
2
2
|
|
|
3
|
+
import { CloudSessionContext } from "../contexts";
|
|
3
4
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
4
|
-
import { CloudSessionContext } from "../../v2/contexts";
|
|
5
5
|
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
6
6
|
|
|
7
7
|
export class SwapCloudUserRequestFailedPayload {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IsString, IsUUID } from "class-validator";
|
|
2
2
|
|
|
3
|
+
import { CloudSessionContext } from "../contexts";
|
|
3
4
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
4
|
-
import { CloudSessionContext } from "../../v2/contexts";
|
|
5
5
|
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
6
6
|
|
|
7
7
|
export class SwapCloudUserRequestPayload {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IsNumber, IsUUID } from "class-validator";
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { CloudPoolContext } from "../contexts";
|
|
4
4
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
5
5
|
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
6
6
|
|
|
@@ -15,14 +15,17 @@ export class TerminateGamesRequestPayload {
|
|
|
15
15
|
export class TerminateGamesRequest extends LudeoEvent {
|
|
16
16
|
static readonly EVENT_NAME = "cloud-pools.terminate-games-request";
|
|
17
17
|
|
|
18
|
-
constructor(
|
|
18
|
+
constructor(
|
|
19
|
+
payload: TerminateGamesRequestPayload,
|
|
20
|
+
context: CloudPoolContext
|
|
21
|
+
) {
|
|
19
22
|
super(TerminateGamesRequest.EVENT_NAME);
|
|
20
23
|
this.payload = payload;
|
|
21
24
|
this.context = context;
|
|
22
25
|
}
|
|
23
26
|
|
|
24
|
-
@ValidateNestedType(() =>
|
|
25
|
-
context:
|
|
27
|
+
@ValidateNestedType(() => CloudPoolContext)
|
|
28
|
+
context: CloudPoolContext;
|
|
26
29
|
|
|
27
30
|
@ValidateNestedType(() => TerminateGamesRequestPayload)
|
|
28
31
|
payload: TerminateGamesRequestPayload;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IsNumber, IsUUID } from "class-validator";
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { CloudPoolContext } from "../contexts";
|
|
4
4
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
5
5
|
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
6
6
|
|
|
@@ -15,14 +15,17 @@ export class TerminateMachinesRequestPayload {
|
|
|
15
15
|
export class TerminateMachinesRequest extends LudeoEvent {
|
|
16
16
|
static readonly EVENT_NAME = "cloud-pools.terminate-machines-request";
|
|
17
17
|
|
|
18
|
-
constructor(
|
|
18
|
+
constructor(
|
|
19
|
+
payload: TerminateMachinesRequestPayload,
|
|
20
|
+
context: CloudPoolContext
|
|
21
|
+
) {
|
|
19
22
|
super(TerminateMachinesRequest.EVENT_NAME);
|
|
20
23
|
this.payload = payload;
|
|
21
24
|
this.context = context;
|
|
22
25
|
}
|
|
23
26
|
|
|
24
|
-
@ValidateNestedType(() =>
|
|
25
|
-
context:
|
|
27
|
+
@ValidateNestedType(() => CloudPoolContext)
|
|
28
|
+
context: CloudPoolContext;
|
|
26
29
|
|
|
27
30
|
@ValidateNestedType(() => TerminateMachinesRequestPayload)
|
|
28
31
|
payload: TerminateMachinesRequestPayload;
|