@ludeo/cloud-common 1.1.133 → 1.1.134-matias
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/cloud-session-provider-requested.event.d.ts +14 -0
- package/dist/v3/events/cloud-session-provider-requested.event.js +51 -0
- package/dist/v3/events/cloud-session-provider-requested.event.js.map +1 -0
- package/dist/v3/events/game-available.d.ts +11 -0
- package/dist/v3/events/game-available.js +42 -0
- package/dist/v3/events/game-available.js.map +1 -0
- package/dist/v3/types/cloud.d.ts +2 -1
- package/dist/v3/types/cloud.js +1 -0
- package/dist/v3/types/cloud.js.map +1 -1
- package/package.json +1 -1
- package/src/v3/events/cloud-session-provider-requested.event.ts +37 -0
- package/src/v3/events/game-available.ts +27 -0
- package/src/v3/types/cloud.ts +1 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
2
|
+
import { CloudSessionContext } from "../contexts/cloud-session-context";
|
|
3
|
+
import { CloudProvider } from "../types";
|
|
4
|
+
export declare class CloudSessionProviderRequestedPayload {
|
|
5
|
+
cloudProvider: CloudProvider;
|
|
6
|
+
poolId: string;
|
|
7
|
+
region: string;
|
|
8
|
+
}
|
|
9
|
+
export declare class CloudSessionProviderRequested extends LudeoEvent {
|
|
10
|
+
static readonly EVENT_NAME = "cloud-session-allocator.cloud-session-provider-requested";
|
|
11
|
+
constructor(payload: CloudSessionProviderRequestedPayload, context: CloudSessionContext);
|
|
12
|
+
payload: CloudSessionProviderRequestedPayload;
|
|
13
|
+
context: CloudSessionContext;
|
|
14
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
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.CloudSessionProviderRequested = exports.CloudSessionProviderRequestedPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
15
|
+
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
16
|
+
const cloud_session_context_1 = require("../contexts/cloud-session-context");
|
|
17
|
+
const types_1 = require("../types");
|
|
18
|
+
class CloudSessionProviderRequestedPayload {
|
|
19
|
+
}
|
|
20
|
+
exports.CloudSessionProviderRequestedPayload = CloudSessionProviderRequestedPayload;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsEnum)(types_1.CloudProvider),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], CloudSessionProviderRequestedPayload.prototype, "cloudProvider", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsString)(),
|
|
27
|
+
(0, class_validator_1.IsUUID)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], CloudSessionProviderRequestedPayload.prototype, "poolId", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_validator_1.IsString)(),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], CloudSessionProviderRequestedPayload.prototype, "region", void 0);
|
|
34
|
+
class CloudSessionProviderRequested extends ludeo_event_1.LudeoEvent {
|
|
35
|
+
constructor(payload, context) {
|
|
36
|
+
super(CloudSessionProviderRequested.EVENT_NAME);
|
|
37
|
+
this.payload = payload;
|
|
38
|
+
this.context = context;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
exports.CloudSessionProviderRequested = CloudSessionProviderRequested;
|
|
42
|
+
CloudSessionProviderRequested.EVENT_NAME = "cloud-session-allocator.cloud-session-provider-requested";
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => CloudSessionProviderRequestedPayload),
|
|
45
|
+
__metadata("design:type", CloudSessionProviderRequestedPayload)
|
|
46
|
+
], CloudSessionProviderRequested.prototype, "payload", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => cloud_session_context_1.CloudSessionContext),
|
|
49
|
+
__metadata("design:type", cloud_session_context_1.CloudSessionContext)
|
|
50
|
+
], CloudSessionProviderRequested.prototype, "context", void 0);
|
|
51
|
+
//# sourceMappingURL=cloud-session-provider-requested.event.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cloud-session-provider-requested.event.js","sourceRoot":"","sources":["../../../src/v3/events/cloud-session-provider-requested.event.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA2D;AAC3D,oGAAqF;AACrF,yDAAqD;AACrD,6EAAwE;AACxE,oCAAyC;AAEzC,MAAa,oCAAoC;CAUhD;AAVD,oFAUC;AARC;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;2EACO;AAI7B;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,wBAAM,GAAE;;oEACM;AAGf;IADC,IAAA,0BAAQ,GAAE;;oEACI;AAGjB,MAAa,6BAA8B,SAAQ,wBAAU;IAI3D,YACE,OAA6C,EAC7C,OAA4B;QAE5B,KAAK,CAAC,6BAA6B,CAAC,UAAU,CAAC,CAAC;QAChD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAXH,sEAkBC;AAjBiB,wCAAU,GACxB,0DAA0D,CAAC;AAY7D;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,oCAAoC,CAAC;8BACtD,oCAAoC;8DAAC;AAG9C;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,2CAAmB,CAAC;8BACrC,2CAAmB;8DAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
2
|
+
import { CloudPoolContext } from "../contexts";
|
|
3
|
+
export declare class GameAvailablePayload {
|
|
4
|
+
gamePoolId: string;
|
|
5
|
+
}
|
|
6
|
+
export declare class GameAvailable extends LudeoEvent {
|
|
7
|
+
static readonly EVENT_NAME = "cloud-pools.game-available";
|
|
8
|
+
constructor(payload: GameAvailablePayload, context: CloudPoolContext);
|
|
9
|
+
context: CloudPoolContext;
|
|
10
|
+
payload: GameAvailablePayload;
|
|
11
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
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.GameAvailable = exports.GameAvailablePayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
15
|
+
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
16
|
+
const contexts_1 = require("../contexts");
|
|
17
|
+
class GameAvailablePayload {
|
|
18
|
+
}
|
|
19
|
+
exports.GameAvailablePayload = GameAvailablePayload;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_validator_1.IsString)(),
|
|
22
|
+
(0, class_validator_1.IsUUID)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], GameAvailablePayload.prototype, "gamePoolId", void 0);
|
|
25
|
+
class GameAvailable extends ludeo_event_1.LudeoEvent {
|
|
26
|
+
constructor(payload, context) {
|
|
27
|
+
super(GameAvailable.EVENT_NAME);
|
|
28
|
+
this.payload = payload;
|
|
29
|
+
this.context = context;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
exports.GameAvailable = GameAvailable;
|
|
33
|
+
GameAvailable.EVENT_NAME = "cloud-pools.game-available";
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.CloudPoolContext),
|
|
36
|
+
__metadata("design:type", contexts_1.CloudPoolContext)
|
|
37
|
+
], GameAvailable.prototype, "context", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => GameAvailablePayload),
|
|
40
|
+
__metadata("design:type", GameAvailablePayload)
|
|
41
|
+
], GameAvailable.prototype, "payload", void 0);
|
|
42
|
+
//# sourceMappingURL=game-available.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"game-available.js","sourceRoot":"","sources":["../../../src/v3/events/game-available.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmD;AAEnD,oGAAqF;AACrF,yDAAqD;AACrD,0CAA+C;AAE/C,MAAa,oBAAoB;CAIhC;AAJD,oDAIC;AADC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,wBAAM,GAAE;;wDACU;AAGrB,MAAa,aAAc,SAAQ,wBAAU;IAG3C,YAAY,OAA6B,EAAE,OAAyB;QAClE,KAAK,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;QAChC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,sCAcC;AAbiB,wBAAU,GAAG,4BAA4B,CAAC;AAS1D;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,2BAAgB,CAAC;8BAClC,2BAAgB;8CAAC;AAG1B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,oBAAoB,CAAC;8BACtC,oBAAoB;8CAAC"}
|
package/dist/v3/types/cloud.d.ts
CHANGED
|
@@ -4,7 +4,8 @@ export declare class AWSRequestData {
|
|
|
4
4
|
}
|
|
5
5
|
export type CloudProviderRequest = AWSRequestData;
|
|
6
6
|
export declare enum CloudProvider {
|
|
7
|
-
AWS = "aws"
|
|
7
|
+
AWS = "aws",
|
|
8
|
+
NVIDIA = "nvidia"
|
|
8
9
|
}
|
|
9
10
|
export declare class AWSProviderSettings {
|
|
10
11
|
streamGroupId: GameCast.Identifier;
|
package/dist/v3/types/cloud.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cloud.js","sourceRoot":"","sources":["../../../src/v3/types/cloud.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,qDAQyB;AACzB,iDAAsD;AAEtD,MAAa,cAAc;CAI1B;AAJD,wCAIC;AADC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;qDACS;AAKxB,IAAY,
|
|
1
|
+
{"version":3,"file":"cloud.js","sourceRoot":"","sources":["../../../src/v3/types/cloud.ts"],"names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AmDC;AAjDC;IADC,IAAA,wBAAM,GAAE;;wCACE;AAGX;IADC,IAAA,wBAAM,GAAE;;4CACM;AAGf;IADC,IAAA,wBAAM,GAAE;;4CACM;AAGf;IADC,IAAA,wBAAM,GAAE;;6CACO;AAGhB;IADC,IAAA,0BAAQ,GAAE;;+CACO;AAGlB;IADC,IAAA,0BAAQ,GAAE;;+CACO;AAGlB;IADC,IAAA,wBAAM,EAAC,kBAAkB,CAAC;;4CACA;AAG3B;IADC,IAAA,wBAAM,EAAC,aAAa,CAAC;;mDACO;AAI7B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;oDACe;AAIxB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;4CACO;AAGhB;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,qBAAqB,CAAC;8BACnC,qBAAqB;iDAAC;AAInC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,iBAAiB,CAAC;;oDACC;AAG7C;IADC,IAAA,wBAAM,GAAE;;qDACe;AAIxB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;kDACW;AAKtB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;gDACS"}
|
package/package.json
CHANGED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { IsEnum, IsString, IsUUID } from "class-validator";
|
|
2
|
+
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
3
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
4
|
+
import { CloudSessionContext } from "../contexts/cloud-session-context";
|
|
5
|
+
import { CloudProvider } from "../types";
|
|
6
|
+
|
|
7
|
+
export class CloudSessionProviderRequestedPayload {
|
|
8
|
+
@IsEnum(CloudProvider)
|
|
9
|
+
cloudProvider: CloudProvider;
|
|
10
|
+
|
|
11
|
+
@IsString()
|
|
12
|
+
@IsUUID()
|
|
13
|
+
poolId: string;
|
|
14
|
+
|
|
15
|
+
@IsString()
|
|
16
|
+
region: string;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export class CloudSessionProviderRequested extends LudeoEvent {
|
|
20
|
+
static readonly EVENT_NAME =
|
|
21
|
+
"cloud-session-allocator.cloud-session-provider-requested";
|
|
22
|
+
|
|
23
|
+
constructor(
|
|
24
|
+
payload: CloudSessionProviderRequestedPayload,
|
|
25
|
+
context: CloudSessionContext
|
|
26
|
+
) {
|
|
27
|
+
super(CloudSessionProviderRequested.EVENT_NAME);
|
|
28
|
+
this.payload = payload;
|
|
29
|
+
this.context = context;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
@ValidateNestedType(() => CloudSessionProviderRequestedPayload)
|
|
33
|
+
payload: CloudSessionProviderRequestedPayload;
|
|
34
|
+
|
|
35
|
+
@ValidateNestedType(() => CloudSessionContext)
|
|
36
|
+
context: CloudSessionContext;
|
|
37
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { IsString, IsUUID } from "class-validator";
|
|
2
|
+
|
|
3
|
+
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
4
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
5
|
+
import { CloudPoolContext } from "../contexts";
|
|
6
|
+
|
|
7
|
+
export class GameAvailablePayload {
|
|
8
|
+
@IsString()
|
|
9
|
+
@IsUUID()
|
|
10
|
+
gamePoolId: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export class GameAvailable extends LudeoEvent {
|
|
14
|
+
static readonly EVENT_NAME = "cloud-pools.game-available";
|
|
15
|
+
|
|
16
|
+
constructor(payload: GameAvailablePayload, context: CloudPoolContext) {
|
|
17
|
+
super(GameAvailable.EVENT_NAME);
|
|
18
|
+
this.payload = payload;
|
|
19
|
+
this.context = context;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@ValidateNestedType(() => CloudPoolContext)
|
|
23
|
+
context: CloudPoolContext;
|
|
24
|
+
|
|
25
|
+
@ValidateNestedType(() => GameAvailablePayload)
|
|
26
|
+
payload: GameAvailablePayload;
|
|
27
|
+
}
|