@ludeo/cloud-common 1.2.184-beta-yahil-5 → 1.2.184-beta-yahil-7
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/v4/contexts/cloud-resource-context.d.ts +1 -0
- package/dist/v4/contexts/cloud-resource-context.js +5 -0
- package/dist/v4/contexts/cloud-resource-context.js.map +1 -1
- package/dist/v4/events/cloud-resources/create-ludeocast-game-request.d.ts +3 -1
- package/dist/v4/events/cloud-resources/create-ludeocast-game-request.js +5 -1
- package/dist/v4/events/cloud-resources/create-ludeocast-game-request.js.map +1 -1
- package/dist/v4/types/cloud/ludeocast-v2/provider-settings.d.ts +3 -1
- package/dist/v4/types/cloud/ludeocast-v2/provider-settings.js.map +1 -1
- package/dist/v4/types/cloud/ludeocast-v2/resource-provider-settings.d.ts +0 -1
- package/dist/v4/types/cloud/ludeocast-v2/resource-provider-settings.js +0 -5
- package/dist/v4/types/cloud/ludeocast-v2/resource-provider-settings.js.map +1 -1
- package/package.json +1 -1
- package/src/v4/contexts/cloud-resource-context.ts +4 -0
- package/src/v4/events/base/base.ts +1 -1
- package/src/v4/events/cloud-resources/create-ludeocast-game-request.ts +5 -2
- package/src/v4/types/cloud/ludeocast-v2/provider-settings.ts +5 -1
- package/src/v4/types/cloud/ludeocast-v2/resource-provider-settings.ts +0 -3
|
@@ -79,4 +79,9 @@ __decorate([
|
|
|
79
79
|
(0, class_validator_1.IsUUID)(),
|
|
80
80
|
__metadata("design:type", String)
|
|
81
81
|
], CloudResourceContext.prototype, "ludeoPoolId", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, class_validator_1.IsOptional)(),
|
|
84
|
+
(0, class_validator_1.IsUUID)(),
|
|
85
|
+
__metadata("design:type", String)
|
|
86
|
+
], CloudResourceContext.prototype, "gameId", void 0);
|
|
82
87
|
//# sourceMappingURL=cloud-resource-context.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cloud-resource-context.js","sourceRoot":"","sources":["../../../src/v4/contexts/cloud-resource-context.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuE;AACvE,0CAA+C;AAE/C,MAAa,oBAAoB;
|
|
1
|
+
{"version":3,"file":"cloud-resource-context.js","sourceRoot":"","sources":["../../../src/v4/contexts/cloud-resource-context.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuE;AACvE,0CAA+C;AAE/C,MAAa,oBAAoB;CAyDhC;AAzDD,oDAyDC;AAtDC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;2DACY;AAIvB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;6DACc;AAGzB;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;2DACO;AAK7B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;wDACS;AAKpB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;oDACK;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;wDACW;AAIpB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;4DACe;AAIxB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;2DACc;AAIvB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;+DACkB;AAI3B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;kEACqB;AAI9B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;qEACwB;AAIjC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;6DACgB;AAIzB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;yDACY;AAIrB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;oDACO"}
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import { LudeoEvent } from '../../../infra';
|
|
2
2
|
import { GameCreationPayload } from '../../types/site-controller';
|
|
3
3
|
import { CloudResourceContext } from '../../contexts';
|
|
4
|
+
import { LudeoCastV2ProviderSettings } from '../../types/cloud/ludeocast-v2/provider-settings';
|
|
4
5
|
export declare class CreateLudeocastGameRequestPayload {
|
|
5
6
|
machineResourceId: string;
|
|
6
7
|
gameResourceId: string;
|
|
7
8
|
gamePoolId: string;
|
|
8
9
|
gameCreationPayload: GameCreationPayload;
|
|
10
|
+
providerSettings: LudeoCastV2ProviderSettings;
|
|
9
11
|
site: string;
|
|
10
12
|
region: string;
|
|
11
|
-
buildId
|
|
13
|
+
buildId: string;
|
|
12
14
|
}
|
|
13
15
|
export declare class CreateLudeocastGameRequest extends LudeoEvent {
|
|
14
16
|
static readonly EVENT_NAME = "cloud-resources.create-ludeocast-game-request";
|
|
@@ -14,6 +14,7 @@ const infra_1 = require("../../../infra");
|
|
|
14
14
|
const decorators_1 = require("../../../decorators");
|
|
15
15
|
const class_validator_1 = require("class-validator");
|
|
16
16
|
const contexts_1 = require("../../contexts");
|
|
17
|
+
const provider_settings_1 = require("../../types/cloud/ludeocast-v2/provider-settings");
|
|
17
18
|
class CreateLudeocastGameRequestPayload {
|
|
18
19
|
}
|
|
19
20
|
exports.CreateLudeocastGameRequestPayload = CreateLudeocastGameRequestPayload;
|
|
@@ -29,6 +30,10 @@ __decorate([
|
|
|
29
30
|
(0, class_validator_1.IsUUID)(),
|
|
30
31
|
__metadata("design:type", String)
|
|
31
32
|
], CreateLudeocastGameRequestPayload.prototype, "gamePoolId", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, decorators_1.ValidateNestedType)(() => provider_settings_1.LudeoCastV2ProviderSettings),
|
|
35
|
+
__metadata("design:type", provider_settings_1.LudeoCastV2ProviderSettings)
|
|
36
|
+
], CreateLudeocastGameRequestPayload.prototype, "providerSettings", void 0);
|
|
32
37
|
__decorate([
|
|
33
38
|
(0, class_validator_1.IsString)(),
|
|
34
39
|
__metadata("design:type", String)
|
|
@@ -38,7 +43,6 @@ __decorate([
|
|
|
38
43
|
__metadata("design:type", String)
|
|
39
44
|
], CreateLudeocastGameRequestPayload.prototype, "region", void 0);
|
|
40
45
|
__decorate([
|
|
41
|
-
(0, class_validator_1.IsOptional)(),
|
|
42
46
|
(0, class_validator_1.IsUUID)(),
|
|
43
47
|
__metadata("design:type", String)
|
|
44
48
|
], CreateLudeocastGameRequestPayload.prototype, "buildId", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-ludeocast-game-request.js","sourceRoot":"","sources":["../../../../src/v4/events/cloud-resources/create-ludeocast-game-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAC5C,oDAAyD;AACzD,qDAA+D;AAE/D,6CAAsD;
|
|
1
|
+
{"version":3,"file":"create-ludeocast-game-request.js","sourceRoot":"","sources":["../../../../src/v4/events/cloud-resources/create-ludeocast-game-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAC5C,oDAAyD;AACzD,qDAA+D;AAE/D,6CAAsD;AACtD,wFAA+F;AAE/F,MAAa,iCAAiC;CAuB7C;AAvBD,8EAuBC;AArBC;IADC,IAAA,wBAAM,GAAE;;4EACiB;AAG1B;IADC,IAAA,wBAAM,GAAE;;yEACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;qEACU;AAKnB;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,+CAA2B,CAAC;8BACpC,+CAA2B;2EAAC;AAG9C;IADC,IAAA,0BAAQ,GAAE;;+DACE;AAGb;IADC,IAAA,0BAAQ,GAAE;;iEACI;AAGf;IADC,IAAA,wBAAM,GAAE;;kEACO;AAGlB,MAAa,0BAA2B,SAAQ,kBAAU;IAGxD,YAAY,OAA0C,EAAE,OAA6B;QACnF,KAAK,CAAC,0BAA0B,CAAC,UAAU,CAAC,CAAC;QAC7C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,gEAcC;AAbiB,qCAAU,GAAG,+CAA+C,CAAC;AAS7E;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,iCAAiC,CAAC;8BACnD,iCAAiC;2DAAC;AAG3C;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;2DAAC"}
|
|
@@ -4,8 +4,10 @@ import { LudeoCastSite } from "../ludeocast/site";
|
|
|
4
4
|
export declare class LudeoCastV2ProviderSettings {
|
|
5
5
|
site: LudeoCastSite;
|
|
6
6
|
region?: string;
|
|
7
|
-
mode
|
|
7
|
+
mode?: MachineMode;
|
|
8
|
+
executableLaunchPath?: string;
|
|
8
9
|
machineClass?: string;
|
|
9
10
|
additionalEnvironmentVariables?: Record<string, string>;
|
|
11
|
+
additionalLaunchArgs?: string[];
|
|
10
12
|
}
|
|
11
13
|
export declare const isLudeoCastV2ProviderSettings: (settings: CloudProviderSettings) => settings is LudeoCastV2ProviderSettings;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider-settings.js","sourceRoot":"","sources":["../../../../../src/v4/types/cloud/ludeocast-v2/provider-settings.ts"],"names":[],"mappings":";;;AAIA,MAAa,2BAA2B;
|
|
1
|
+
{"version":3,"file":"provider-settings.js","sourceRoot":"","sources":["../../../../../src/v4/types/cloud/ludeocast-v2/provider-settings.ts"],"names":[],"mappings":";;;AAIA,MAAa,2BAA2B;CAcvC;AAdD,kEAcC;AAEM,MAAM,6BAA6B,GAAG,CAC3C,QAA+B,EACU,EAAE;IAC3C,OAAO,CACL,QAAQ;QACR,MAAM,IAAI,QAAQ;QAClB,OAAO,QAAQ,CAAC,IAAI,KAAK,QAAQ,CAClC,CAAC;AACJ,CAAC,CAAC;AARW,QAAA,6BAA6B,iCAQxC"}
|
|
@@ -26,11 +26,6 @@ __decorate([
|
|
|
26
26
|
(0, class_validator_1.IsEnum)(provider_1.CloudProvider),
|
|
27
27
|
__metadata("design:type", String)
|
|
28
28
|
], LudeoCastV2ResourceProviderSettings.prototype, "cloudProvider", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, class_validator_1.IsOptional)(),
|
|
31
|
-
(0, class_validator_1.IsString)(),
|
|
32
|
-
__metadata("design:type", String)
|
|
33
|
-
], LudeoCastV2ResourceProviderSettings.prototype, "namespace", void 0);
|
|
34
29
|
__decorate([
|
|
35
30
|
(0, class_validator_1.IsOptional)(),
|
|
36
31
|
(0, class_validator_1.IsString)(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resource-provider-settings.js","sourceRoot":"","sources":["../../../../../src/v4/types/cloud/ludeocast-v2/resource-provider-settings.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAC/D,0CAA4C;AAC5C,4CAAkD;AAElD,MAAa,mCAAmC;
|
|
1
|
+
{"version":3,"file":"resource-provider-settings.js","sourceRoot":"","sources":["../../../../../src/v4/types/cloud/ludeocast-v2/resource-provider-settings.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAC/D,0CAA4C;AAC5C,4CAAkD;AAElD,MAAa,mCAAmC;CAa/C;AAbD,kFAaC;AAVC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;sEACQ;AAInB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,wBAAa,CAAC;;0EACQ;AAK9B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;iEACU"}
|
package/package.json
CHANGED
|
@@ -3,6 +3,7 @@ import { ValidateNestedType } from '../../../decorators';
|
|
|
3
3
|
import { IsString, IsUUID, IsOptional } from 'class-validator';
|
|
4
4
|
import { GameCreationPayload } from '../../types/site-controller';
|
|
5
5
|
import { CloudResourceContext } from '../../contexts';
|
|
6
|
+
import { LudeoCastV2ProviderSettings } from '../../types/cloud/ludeocast-v2/provider-settings';
|
|
6
7
|
|
|
7
8
|
export class CreateLudeocastGameRequestPayload {
|
|
8
9
|
@IsUUID()
|
|
@@ -16,15 +17,17 @@ export class CreateLudeocastGameRequestPayload {
|
|
|
16
17
|
|
|
17
18
|
gameCreationPayload: GameCreationPayload;
|
|
18
19
|
|
|
20
|
+
@ValidateNestedType(() => LudeoCastV2ProviderSettings)
|
|
21
|
+
providerSettings: LudeoCastV2ProviderSettings;
|
|
22
|
+
|
|
19
23
|
@IsString()
|
|
20
24
|
site: string;
|
|
21
25
|
|
|
22
26
|
@IsString()
|
|
23
27
|
region: string;
|
|
24
28
|
|
|
25
|
-
@IsOptional()
|
|
26
29
|
@IsUUID()
|
|
27
|
-
buildId
|
|
30
|
+
buildId: string;
|
|
28
31
|
}
|
|
29
32
|
|
|
30
33
|
export class CreateLudeocastGameRequest extends LudeoEvent {
|
|
@@ -7,11 +7,15 @@ export class LudeoCastV2ProviderSettings {
|
|
|
7
7
|
|
|
8
8
|
region?: string;
|
|
9
9
|
|
|
10
|
-
mode
|
|
10
|
+
mode?: MachineMode;
|
|
11
|
+
|
|
12
|
+
executableLaunchPath?: string;
|
|
11
13
|
|
|
12
14
|
machineClass?: string;
|
|
13
15
|
|
|
14
16
|
additionalEnvironmentVariables?: Record<string, string>;
|
|
17
|
+
|
|
18
|
+
additionalLaunchArgs?: string[];
|
|
15
19
|
}
|
|
16
20
|
|
|
17
21
|
export const isLudeoCastV2ProviderSettings = (
|