@ludeo/cloud-common 1.1.127-beta3 → 1.1.127
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 +0 -1
- package/dist/v3/events/index.js +0 -1
- package/dist/v3/events/index.js.map +1 -1
- package/dist/v3/events/pool-status.d.ts +7 -9
- package/dist/v3/events/pool-status.js +6 -6
- package/dist/v3/events/pool-status.js.map +1 -1
- package/package.json +1 -1
- package/src/v3/events/index.ts +0 -1
- package/src/v3/events/pool-status.ts +13 -12
- package/.idea/cloud-common.iml +0 -12
- package/.idea/git_toolbox_blame.xml +0 -6
- package/.idea/git_toolbox_prj.xml +0 -15
- package/.idea/modules.xml +0 -8
- package/.idea/vcs.xml +0 -6
- package/dist/v3/events/aws-stream-session-active.d.ts +0 -15
- package/dist/v3/events/aws-stream-session-active.js +0 -51
- package/dist/v3/events/aws-stream-session-active.js.map +0 -1
- package/dist/v3/types/pools/configuration/attributes/type.d.ts +0 -5
- package/dist/v3/types/pools/configuration/attributes/type.js +0 -3
- package/dist/v3/types/pools/configuration/attributes/type.js.map +0 -1
- package/src/v3/events/aws-stream-session-active.ts +0 -36
- package/src/v3/types/pools/configuration/attributes/type.ts +0 -14
|
@@ -64,4 +64,3 @@ export * from "./game-resource-allocation-timeout-task";
|
|
|
64
64
|
export * from "./aws-poll-stream-session-task";
|
|
65
65
|
export * from "./game-resource-ready-for-creation";
|
|
66
66
|
export * from "./game-resource-ready-for-creation-failed";
|
|
67
|
-
export * from "./aws-stream-session-active";
|
package/dist/v3/events/index.js
CHANGED
|
@@ -80,5 +80,4 @@ __exportStar(require("./game-resource-allocation-timeout-task"), exports);
|
|
|
80
80
|
__exportStar(require("./aws-poll-stream-session-task"), exports);
|
|
81
81
|
__exportStar(require("./game-resource-ready-for-creation"), exports);
|
|
82
82
|
__exportStar(require("./game-resource-ready-for-creation-failed"), exports);
|
|
83
|
-
__exportStar(require("./aws-stream-session-active"), exports);
|
|
84
83
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v3/events/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,mEAAiD;AACjD,6DAA2C;AAC3C,6DAA2C;AAC3C,iEAA+C;AAC/C,yDAAuC;AACvC,0EAAwD;AACxD,oEAAkD;AAClD,4DAA0C;AAC1C,+DAA6C;AAC7C,4DAA0C;AAC1C,oEAAkD;AAClD,qEAAmD;AACnD,6EAA2D;AAC3D,mEAAiD;AACjD,2EAAyD;AACzD,sEAAoD;AACpD,8EAA4D;AAC5D,6DAA2C;AAC3C,qEAAmD;AACnD,iEAA+C;AAC/C,+DAA6C;AAC7C,uEAAqD;AACrD,iEAA+C;AAC/C,yEAAuD;AACvD,+DAA6C;AAC7C,oFAAkE;AAClE,uFAAqE;AACrE,sEAAoD;AACpD,8EAA4D;AAC5D,yEAAuD;AACvD,6DAA2C;AAC3C,+DAA6C;AAC7C,gDAA8B;AAC9B,4DAA0C;AAC1C,6CAA2B;AAC3B,oDAAkC;AAClC,8DAA4C;AAC5C,mEAAiD;AACjD,4DAA0C;AAC1C,2DAAyC;AACzC,oEAAkD;AAClD,4DAA0C;AAC1C,uEAAqD;AACrD,6EAA2D;AAC3D,+DAA6C;AAC7C,0DAAwC;AACxC,6DAA2C;AAC3C,+DAA6C;AAC7C,sEAAoD;AACpD,yDAAuC;AACvC,6DAA2C;AAC3C,kEAAgD;AAChD,mEAAiD;AACjD,+DAA6C;AAC7C,gEAA8C;AAC9C,oEAAkD;AAClD,0DAAwC;AACxC,4DAA0C;AAC1C,mEAAiD;AACjD,wDAAsC;AACtC,0DAAwC;AACxC,0EAAwD;AACxD,iEAA+C;AAC/C,qEAAmD;AACnD,4EAA0D
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v3/events/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,mEAAiD;AACjD,6DAA2C;AAC3C,6DAA2C;AAC3C,iEAA+C;AAC/C,yDAAuC;AACvC,0EAAwD;AACxD,oEAAkD;AAClD,4DAA0C;AAC1C,+DAA6C;AAC7C,4DAA0C;AAC1C,oEAAkD;AAClD,qEAAmD;AACnD,6EAA2D;AAC3D,mEAAiD;AACjD,2EAAyD;AACzD,sEAAoD;AACpD,8EAA4D;AAC5D,6DAA2C;AAC3C,qEAAmD;AACnD,iEAA+C;AAC/C,+DAA6C;AAC7C,uEAAqD;AACrD,iEAA+C;AAC/C,yEAAuD;AACvD,+DAA6C;AAC7C,oFAAkE;AAClE,uFAAqE;AACrE,sEAAoD;AACpD,8EAA4D;AAC5D,yEAAuD;AACvD,6DAA2C;AAC3C,+DAA6C;AAC7C,gDAA8B;AAC9B,4DAA0C;AAC1C,6CAA2B;AAC3B,oDAAkC;AAClC,8DAA4C;AAC5C,mEAAiD;AACjD,4DAA0C;AAC1C,2DAAyC;AACzC,oEAAkD;AAClD,4DAA0C;AAC1C,uEAAqD;AACrD,6EAA2D;AAC3D,+DAA6C;AAC7C,0DAAwC;AACxC,6DAA2C;AAC3C,+DAA6C;AAC7C,sEAAoD;AACpD,yDAAuC;AACvC,6DAA2C;AAC3C,kEAAgD;AAChD,mEAAiD;AACjD,+DAA6C;AAC7C,gEAA8C;AAC9C,oEAAkD;AAClD,0DAAwC;AACxC,4DAA0C;AAC1C,mEAAiD;AACjD,wDAAsC;AACtC,0DAAwC;AACxC,0EAAwD;AACxD,iEAA+C;AAC/C,qEAAmD;AACnD,4EAA0D"}
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
statusMap: CloudResourcesStatusMap & {
|
|
7
|
-
poolSize: number;
|
|
8
|
-
};
|
|
2
|
+
import { CloudResourcesStatusMap, BasePoolAttributes } from "../types";
|
|
3
|
+
export declare class PoolStatusEventPoolV2 {
|
|
4
|
+
attributes: BasePoolAttributes;
|
|
5
|
+
statusMap: CloudResourcesStatusMap;
|
|
9
6
|
}
|
|
7
|
+
export type PoolStatusEventPayloadV1 = Record<string, string | number>;
|
|
10
8
|
export declare class PoolStatusEventPayload {
|
|
11
|
-
games:
|
|
12
|
-
machines:
|
|
9
|
+
games: PoolStatusEventPayloadV1[];
|
|
10
|
+
machines: PoolStatusEventPayloadV1[];
|
|
13
11
|
requestId: string;
|
|
14
12
|
}
|
|
15
13
|
export declare class PoolStatusEvent extends LudeoEvent {
|
|
@@ -9,18 +9,18 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.PoolStatusEvent = exports.PoolStatusEventPayload = exports.
|
|
12
|
+
exports.PoolStatusEvent = exports.PoolStatusEventPayload = exports.PoolStatusEventPoolV2 = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
14
|
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
15
|
-
const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
16
15
|
const types_1 = require("../types");
|
|
17
|
-
|
|
16
|
+
const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
17
|
+
class PoolStatusEventPoolV2 {
|
|
18
18
|
}
|
|
19
|
-
exports.
|
|
19
|
+
exports.PoolStatusEventPoolV2 = PoolStatusEventPoolV2;
|
|
20
20
|
__decorate([
|
|
21
21
|
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.BasePoolAttributes),
|
|
22
|
-
__metadata("design:type",
|
|
23
|
-
],
|
|
22
|
+
__metadata("design:type", types_1.BasePoolAttributes)
|
|
23
|
+
], PoolStatusEventPoolV2.prototype, "attributes", void 0);
|
|
24
24
|
class PoolStatusEventPayload {
|
|
25
25
|
}
|
|
26
26
|
exports.PoolStatusEventPayload = PoolStatusEventPayload;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pool-status.js","sourceRoot":"","sources":["../../../src/v3/events/pool-status.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyC;AAEzC,yDAAqD;AACrD,
|
|
1
|
+
{"version":3,"file":"pool-status.js","sourceRoot":"","sources":["../../../src/v3/events/pool-status.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyC;AAEzC,yDAAqD;AACrD,oCAAuE;AACvE,oGAAqF;AAKrF,MAAa,qBAAqB;CAKjC;AALD,sDAKC;AAHC;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,0BAAkB,CAAC;8BACjC,0BAAkB;yDAAC;AAQjC,MAAa,sBAAsB;CAOlC;AAPD,wDAOC;AADC;IADC,IAAA,wBAAM,GAAE;;yDACS;AAGpB,MAAa,eAAgB,SAAQ,wBAAU;IAG7C,YAAY,OAA+B;QACzC,KAAK,CAAC,eAAe,CAAC,UAAU,CAAC,CAAC;QAClC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AANH,0CAUC;AATiB,0BAAU,GAAG,yBAAyB,CAAC;AAQvD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,sBAAsB,CAAC;8BACxC,sBAAsB;gDAAC"}
|
package/package.json
CHANGED
package/src/v3/events/index.ts
CHANGED
|
@@ -64,4 +64,3 @@ export * from "./game-resource-allocation-timeout-task";
|
|
|
64
64
|
export * from "./aws-poll-stream-session-task";
|
|
65
65
|
export * from "./game-resource-ready-for-creation";
|
|
66
66
|
export * from "./game-resource-ready-for-creation-failed";
|
|
67
|
-
export * from "./aws-stream-session-active";
|
|
@@ -1,25 +1,26 @@
|
|
|
1
1
|
import { IsUUID } from "class-validator";
|
|
2
2
|
|
|
3
3
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
4
|
+
import { CloudResourcesStatusMap, BasePoolAttributes } from "../types";
|
|
4
5
|
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
} from "../types";
|
|
11
|
-
|
|
12
|
-
export class PoolStatusEventPool<T extends CloudPoolType> {
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Will be used later on in a newer version of the predictor
|
|
9
|
+
*/
|
|
10
|
+
export class PoolStatusEventPoolV2 {
|
|
13
11
|
@ValidateNestedType(() => BasePoolAttributes)
|
|
14
|
-
attributes:
|
|
12
|
+
attributes: BasePoolAttributes;
|
|
15
13
|
|
|
16
|
-
statusMap: CloudResourcesStatusMap
|
|
14
|
+
statusMap: CloudResourcesStatusMap;
|
|
17
15
|
}
|
|
18
16
|
|
|
17
|
+
// something like {...attributes, ...statusMap}
|
|
18
|
+
export type PoolStatusEventPayloadV1 = Record<string, string | number>;
|
|
19
|
+
|
|
19
20
|
export class PoolStatusEventPayload {
|
|
20
|
-
games:
|
|
21
|
+
games: PoolStatusEventPayloadV1[];
|
|
21
22
|
|
|
22
|
-
machines:
|
|
23
|
+
machines: PoolStatusEventPayloadV1[];
|
|
23
24
|
|
|
24
25
|
@IsUUID()
|
|
25
26
|
requestId: string;
|
package/.idea/cloud-common.iml
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<module type="WEB_MODULE" version="4">
|
|
3
|
-
<component name="NewModuleRootManager">
|
|
4
|
-
<content url="file://$MODULE_DIR$">
|
|
5
|
-
<excludeFolder url="file://$MODULE_DIR$/.tmp" />
|
|
6
|
-
<excludeFolder url="file://$MODULE_DIR$/temp" />
|
|
7
|
-
<excludeFolder url="file://$MODULE_DIR$/tmp" />
|
|
8
|
-
</content>
|
|
9
|
-
<orderEntry type="inheritedJdk" />
|
|
10
|
-
<orderEntry type="sourceFolder" forTests="false" />
|
|
11
|
-
</component>
|
|
12
|
-
</module>
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<project version="4">
|
|
3
|
-
<component name="GitToolBoxProjectSettings">
|
|
4
|
-
<option name="commitMessageIssueKeyValidationOverride">
|
|
5
|
-
<BoolValueOverride>
|
|
6
|
-
<option name="enabled" value="true" />
|
|
7
|
-
</BoolValueOverride>
|
|
8
|
-
</option>
|
|
9
|
-
<option name="commitMessageValidationEnabledOverride">
|
|
10
|
-
<BoolValueOverride>
|
|
11
|
-
<option name="enabled" value="true" />
|
|
12
|
-
</BoolValueOverride>
|
|
13
|
-
</option>
|
|
14
|
-
</component>
|
|
15
|
-
</project>
|
package/.idea/modules.xml
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<project version="4">
|
|
3
|
-
<component name="ProjectModuleManager">
|
|
4
|
-
<modules>
|
|
5
|
-
<module fileurl="file://$PROJECT_DIR$/.idea/cloud-common.iml" filepath="$PROJECT_DIR$/.idea/cloud-common.iml" />
|
|
6
|
-
</modules>
|
|
7
|
-
</component>
|
|
8
|
-
</project>
|
package/.idea/vcs.xml
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { LudeoEvent } from "../../infra";
|
|
2
|
-
import { CreateGameResourceRequestPayload } from "./create-game-resource-request";
|
|
3
|
-
import { CloudResourceContext } from "../contexts";
|
|
4
|
-
import { AWSResourceProviderSettings } from "../types";
|
|
5
|
-
export declare class AwsStreamSessionActivePayload {
|
|
6
|
-
creationPayload: CreateGameResourceRequestPayload;
|
|
7
|
-
providerSettings: AWSResourceProviderSettings;
|
|
8
|
-
streamSessionId: string;
|
|
9
|
-
}
|
|
10
|
-
export declare class AwsStreamSessionActive extends LudeoEvent {
|
|
11
|
-
static readonly EVENT_NAME = "cloud-resources.aws-stream-session-active";
|
|
12
|
-
constructor(payload: AwsStreamSessionActivePayload, context: CloudResourceContext);
|
|
13
|
-
context: CloudResourceContext;
|
|
14
|
-
payload: AwsStreamSessionActivePayload;
|
|
15
|
-
}
|
|
@@ -1,51 +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.AwsStreamSessionActive = exports.AwsStreamSessionActivePayload = void 0;
|
|
13
|
-
const infra_1 = require("../../infra");
|
|
14
|
-
const decorators_1 = require("../../decorators");
|
|
15
|
-
const create_game_resource_request_1 = require("./create-game-resource-request");
|
|
16
|
-
const class_validator_1 = require("class-validator");
|
|
17
|
-
const contexts_1 = require("../contexts");
|
|
18
|
-
const types_1 = require("../types");
|
|
19
|
-
class AwsStreamSessionActivePayload {
|
|
20
|
-
}
|
|
21
|
-
exports.AwsStreamSessionActivePayload = AwsStreamSessionActivePayload;
|
|
22
|
-
__decorate([
|
|
23
|
-
(0, decorators_1.ValidateNestedType)(() => create_game_resource_request_1.CreateGameResourceRequestPayload),
|
|
24
|
-
__metadata("design:type", create_game_resource_request_1.CreateGameResourceRequestPayload)
|
|
25
|
-
], AwsStreamSessionActivePayload.prototype, "creationPayload", void 0);
|
|
26
|
-
__decorate([
|
|
27
|
-
(0, decorators_1.ValidateNestedType)(() => types_1.AWSResourceProviderSettings),
|
|
28
|
-
__metadata("design:type", types_1.AWSResourceProviderSettings)
|
|
29
|
-
], AwsStreamSessionActivePayload.prototype, "providerSettings", void 0);
|
|
30
|
-
__decorate([
|
|
31
|
-
(0, class_validator_1.IsString)(),
|
|
32
|
-
__metadata("design:type", String)
|
|
33
|
-
], AwsStreamSessionActivePayload.prototype, "streamSessionId", void 0);
|
|
34
|
-
class AwsStreamSessionActive extends infra_1.LudeoEvent {
|
|
35
|
-
constructor(payload, context) {
|
|
36
|
-
super(AwsStreamSessionActive.EVENT_NAME);
|
|
37
|
-
this.payload = payload;
|
|
38
|
-
this.context = context;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
exports.AwsStreamSessionActive = AwsStreamSessionActive;
|
|
42
|
-
AwsStreamSessionActive.EVENT_NAME = "cloud-resources.aws-stream-session-active";
|
|
43
|
-
__decorate([
|
|
44
|
-
(0, decorators_1.ValidateNestedType)(() => contexts_1.CloudResourceContext),
|
|
45
|
-
__metadata("design:type", contexts_1.CloudResourceContext)
|
|
46
|
-
], AwsStreamSessionActive.prototype, "context", void 0);
|
|
47
|
-
__decorate([
|
|
48
|
-
(0, decorators_1.ValidateNestedType)(() => AwsStreamSessionActivePayload),
|
|
49
|
-
__metadata("design:type", AwsStreamSessionActivePayload)
|
|
50
|
-
], AwsStreamSessionActive.prototype, "payload", void 0);
|
|
51
|
-
//# sourceMappingURL=aws-stream-session-active.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"aws-stream-session-active.js","sourceRoot":"","sources":["../../../src/v3/events/aws-stream-session-active.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uCAAyC;AACzC,iDAAsD;AACtD,iFAAkF;AAClF,qDAA2C;AAC3C,0CAAmD;AACnD,oCAAuD;AAEvD,MAAa,6BAA6B;CASzC;AATD,sEASC;AAPC;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,+DAAgC,CAAC;8BAC1C,+DAAgC;sEAAC;AAGlD;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,mCAA2B,CAAC;8BACpC,mCAA2B;uEAAC;AAG9C;IADC,IAAA,0BAAQ,GAAE;;sEACa;AAG1B,MAAa,sBAAuB,SAAQ,kBAAU;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,2CAA2C,CAAC;AAYzE;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;uDAAC;AAG9B;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,6BAA6B,CAAC;8BAC/C,6BAA6B;uDAAC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { CloudPoolType } from "../../type";
|
|
2
|
-
import { BasePoolAttributes } from "./base";
|
|
3
|
-
import { GamePoolAttributes } from "./game";
|
|
4
|
-
import { MachinePoolAttributes } from "./machine";
|
|
5
|
-
export type PoolAttributesType<T extends CloudPoolType | undefined = undefined> = T extends undefined ? BasePoolAttributes : T extends CloudPoolType.GAME ? GamePoolAttributes : T extends CloudPoolType.MACHINE ? MachinePoolAttributes : BasePoolAttributes;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"type.js","sourceRoot":"","sources":["../../../../../../src/v3/types/pools/configuration/attributes/type.ts"],"names":[],"mappings":""}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { LudeoEvent } from "../../infra";
|
|
2
|
-
import { ValidateNestedType } from "../../decorators";
|
|
3
|
-
import { CreateGameResourceRequestPayload } from "./create-game-resource-request";
|
|
4
|
-
import { IsString } from "class-validator";
|
|
5
|
-
import { CloudResourceContext } from "../contexts";
|
|
6
|
-
import { AWSResourceProviderSettings } from "../types";
|
|
7
|
-
|
|
8
|
-
export class AwsStreamSessionActivePayload {
|
|
9
|
-
@ValidateNestedType(() => CreateGameResourceRequestPayload)
|
|
10
|
-
creationPayload: CreateGameResourceRequestPayload;
|
|
11
|
-
|
|
12
|
-
@ValidateNestedType(() => AWSResourceProviderSettings)
|
|
13
|
-
providerSettings: AWSResourceProviderSettings;
|
|
14
|
-
|
|
15
|
-
@IsString()
|
|
16
|
-
streamSessionId: string;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export class AwsStreamSessionActive extends LudeoEvent {
|
|
20
|
-
static readonly EVENT_NAME = "cloud-resources.aws-stream-session-active";
|
|
21
|
-
|
|
22
|
-
constructor(
|
|
23
|
-
payload: AwsStreamSessionActivePayload,
|
|
24
|
-
context: CloudResourceContext,
|
|
25
|
-
) {
|
|
26
|
-
super(AwsStreamSessionActive.EVENT_NAME);
|
|
27
|
-
this.payload = payload;
|
|
28
|
-
this.context = context;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
@ValidateNestedType(() => CloudResourceContext)
|
|
32
|
-
context: CloudResourceContext;
|
|
33
|
-
|
|
34
|
-
@ValidateNestedType(() => AwsStreamSessionActivePayload)
|
|
35
|
-
payload: AwsStreamSessionActivePayload;
|
|
36
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { CloudPoolType } from "../../type";
|
|
2
|
-
import { BasePoolAttributes } from "./base";
|
|
3
|
-
import { GamePoolAttributes } from "./game";
|
|
4
|
-
import { MachinePoolAttributes } from "./machine";
|
|
5
|
-
|
|
6
|
-
export type PoolAttributesType<
|
|
7
|
-
T extends CloudPoolType | undefined = undefined
|
|
8
|
-
> = T extends undefined
|
|
9
|
-
? BasePoolAttributes
|
|
10
|
-
: T extends CloudPoolType.GAME
|
|
11
|
-
? GamePoolAttributes
|
|
12
|
-
: T extends CloudPoolType.MACHINE
|
|
13
|
-
? MachinePoolAttributes
|
|
14
|
-
: BasePoolAttributes;
|