@ludeo/cloud-common 1.2.184-beta-yahil-6 → 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.
@@ -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?: string;
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;AAEtD,MAAa,iCAAiC;CAqB7C;AArBD,8EAqBC;AAnBC;IADC,IAAA,wBAAM,GAAE;;4EACiB;AAG1B;IADC,IAAA,wBAAM,GAAE;;yEACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;qEACU;AAKnB;IADC,IAAA,0BAAQ,GAAE;;+DACE;AAGb;IADC,IAAA,0BAAQ,GAAE;;iEACI;AAIf;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;kEACQ;AAGnB,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"}
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: MachineMode;
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;CAUvC;AAVD,kEAUC;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"}
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"}
@@ -3,6 +3,5 @@ import { LudeoCastSite } from "../ludeocast/site";
3
3
  export declare class LudeoCastV2ResourceProviderSettings {
4
4
  machineId?: string;
5
5
  cloudProvider?: CloudProvider;
6
- namespace?: string;
7
6
  site?: LudeoCastSite;
8
7
  }
@@ -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;CAgB/C;AAhBD,kFAgBC;AAbC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;sEACQ;AAInB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,wBAAa,CAAC;;0EACQ;AAI9B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;sEACQ;AAInB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;iEACU"}
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ludeo/cloud-common",
3
- "version": "1.2.184-beta-yahil-6",
3
+ "version": "1.2.184-beta-yahil-7",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "author": "Yahil Didi",
@@ -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?: string;
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: MachineMode;
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 = (
@@ -11,9 +11,6 @@ export class LudeoCastV2ResourceProviderSettings {
11
11
  @IsEnum(CloudProvider)
12
12
  cloudProvider?: CloudProvider;
13
13
 
14
- @IsOptional()
15
- @IsString()
16
- namespace?: string;
17
14
 
18
15
  @IsOptional()
19
16
  @IsString()