@ludeo/cloud-common 1.2.188 → 1.2.189-beta-yahil-2

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,13 +1,15 @@
1
1
  import { LudeoEvent } from '../../../infra';
2
2
  import { CloudResourceContext } from '../../contexts';
3
3
  import { SiteOperationStatus } from '../../types/site-controller';
4
- import { CloudResourceStatus } from '../../types/pools';
4
+ import { CloudResourceStatus, MachineResourceSettings } from '../../types/pools';
5
+ import { LudeoCastV2MachineResourceProviderSettings } from '../../types/cloud/ludeocast-v2/machine-provider-settings';
5
6
  export declare class MachineLudeocastCreationEndedPayload {
6
7
  machineResourceId: string;
7
8
  machinePoolId: string;
8
9
  operationStatus: SiteOperationStatus;
9
10
  status: CloudResourceStatus;
10
11
  reason?: string;
12
+ machineResourceSettings?: MachineResourceSettings<LudeoCastV2MachineResourceProviderSettings>;
11
13
  }
12
14
  export declare class MachineLudeocastCreationEnded extends LudeoEvent {
13
15
  static readonly EVENT_NAME = "site-controller.machine-ludeocast-creation-ended";
@@ -40,6 +40,10 @@ __decorate([
40
40
  (0, class_validator_1.IsString)(),
41
41
  __metadata("design:type", String)
42
42
  ], MachineLudeocastCreationEndedPayload.prototype, "reason", void 0);
43
+ __decorate([
44
+ (0, class_validator_1.IsOptional)(),
45
+ __metadata("design:type", pools_1.MachineResourceSettings)
46
+ ], MachineLudeocastCreationEndedPayload.prototype, "machineResourceSettings", void 0);
43
47
  class MachineLudeocastCreationEnded extends infra_1.LudeoEvent {
44
48
  constructor(payload, context) {
45
49
  super(MachineLudeocastCreationEnded.EVENT_NAME);
@@ -1 +1 @@
1
- {"version":3,"file":"machine-ludeocast-creation-ended.js","sourceRoot":"","sources":["../../../../src/v4/events/site-controller/machine-ludeocast-creation-ended.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAC5C,oDAAyD;AACzD,qDAAuE;AACvE,6CAAsD;AACtD,iEAAkE;AAClE,6CAAwD;AAExD,MAAa,oCAAoC;CAgBhD;AAhBD,oFAgBC;AAdC;IADC,IAAA,wBAAM,GAAE;;+EACiB;AAG1B;IADC,IAAA,wBAAM,GAAE;;2EACa;AAGtB;IADC,IAAA,wBAAM,EAAC,qCAAmB,CAAC;;6EACS;AAGrC;IADC,IAAA,wBAAM,EAAC,2BAAmB,CAAC;;oEACA;AAI5B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;oEACK;AAGlB,MAAa,6BAA8B,SAAQ,kBAAU;IAG3D,YAAY,OAA6C,EAAE,OAA6B;QACtF,KAAK,CAAC,6BAA6B,CAAC,UAAU,CAAC,CAAC;QAChD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,sEAcC;AAbiB,wCAAU,GAAG,kDAAkD,CAAC;AAShF;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,oCAAoC,CAAC;8BACtD,oCAAoC;8DAAC;AAG9C;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;8DAAC"}
1
+ {"version":3,"file":"machine-ludeocast-creation-ended.js","sourceRoot":"","sources":["../../../../src/v4/events/site-controller/machine-ludeocast-creation-ended.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAC5C,oDAAyD;AACzD,qDAAuE;AACvE,6CAAsD;AACtD,iEAAkE;AAClE,6CAAiF;AAGjF,MAAa,oCAAoC;CAmBhD;AAnBD,oFAmBC;AAjBC;IADC,IAAA,wBAAM,GAAE;;+EACiB;AAG1B;IADC,IAAA,wBAAM,GAAE;;2EACa;AAGtB;IADC,IAAA,wBAAM,EAAC,qCAAmB,CAAC;;6EACS;AAGrC;IADC,IAAA,wBAAM,EAAC,2BAAmB,CAAC;;oEACA;AAI5B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;oEACK;AAGhB;IADC,IAAA,4BAAU,GAAE;8BACa,+BAAuB;qFAA4C;AAG/F,MAAa,6BAA8B,SAAQ,kBAAU;IAG3D,YAAY,OAA6C,EAAE,OAA6B;QACtF,KAAK,CAAC,6BAA6B,CAAC,UAAU,CAAC,CAAC;QAChD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,sEAcC;AAbiB,wCAAU,GAAG,kDAAkD,CAAC;AAShF;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,oCAAoC,CAAC;8BACtD,oCAAoC;8DAAC;AAG9C;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;8DAAC"}
@@ -1,3 +1,7 @@
1
1
  export declare class LudeoCastV2MachineResourceProviderSettings {
2
- machineId: string;
2
+ region?: string;
3
+ site?: string;
4
+ zone?: string;
5
+ publicIp?: string;
6
+ url?: string;
3
7
  }
@@ -15,7 +15,28 @@ class LudeoCastV2MachineResourceProviderSettings {
15
15
  }
16
16
  exports.LudeoCastV2MachineResourceProviderSettings = LudeoCastV2MachineResourceProviderSettings;
17
17
  __decorate([
18
+ (0, class_validator_1.IsOptional)(),
18
19
  (0, class_validator_1.IsString)(),
19
20
  __metadata("design:type", String)
20
- ], LudeoCastV2MachineResourceProviderSettings.prototype, "machineId", void 0);
21
+ ], LudeoCastV2MachineResourceProviderSettings.prototype, "region", void 0);
22
+ __decorate([
23
+ (0, class_validator_1.IsOptional)(),
24
+ (0, class_validator_1.IsString)(),
25
+ __metadata("design:type", String)
26
+ ], LudeoCastV2MachineResourceProviderSettings.prototype, "site", void 0);
27
+ __decorate([
28
+ (0, class_validator_1.IsOptional)(),
29
+ (0, class_validator_1.IsString)(),
30
+ __metadata("design:type", String)
31
+ ], LudeoCastV2MachineResourceProviderSettings.prototype, "zone", void 0);
32
+ __decorate([
33
+ (0, class_validator_1.IsOptional)(),
34
+ (0, class_validator_1.IsString)(),
35
+ __metadata("design:type", String)
36
+ ], LudeoCastV2MachineResourceProviderSettings.prototype, "publicIp", void 0);
37
+ __decorate([
38
+ (0, class_validator_1.IsOptional)(),
39
+ (0, class_validator_1.IsString)(),
40
+ __metadata("design:type", String)
41
+ ], LudeoCastV2MachineResourceProviderSettings.prototype, "url", void 0);
21
42
  //# sourceMappingURL=machine-provider-settings.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"machine-provider-settings.js","sourceRoot":"","sources":["../../../../../src/v4/types/cloud/ludeocast-v2/machine-provider-settings.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA2C;AAE3C,MAAa,0CAA0C;CAGtD;AAHD,gGAGC;AADC;IADC,IAAA,0BAAQ,GAAE;;6EACO"}
1
+ {"version":3,"file":"machine-provider-settings.js","sourceRoot":"","sources":["../../../../../src/v4/types/cloud/ludeocast-v2/machine-provider-settings.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AAEvD,MAAa,0CAA0C;CAoBtD;AApBD,gGAoBC;AAjBC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;0EACK;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;wEACG;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;wEACG;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;4EACO;AAIlB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;uEACE"}
@@ -1,3 +1,4 @@
1
1
  import { MockMachineResourceProviderSettings } from "./mock";
2
2
  import { LudeoCastMachineResourceProviderSettings } from "./ludeocast";
3
- export type MachineResourceProviderSettings = MockMachineResourceProviderSettings | LudeoCastMachineResourceProviderSettings;
3
+ import { LudeoCastV2MachineResourceProviderSettings } from "./ludeocast-v2/machine-provider-settings";
4
+ export type MachineResourceProviderSettings = MockMachineResourceProviderSettings | LudeoCastMachineResourceProviderSettings | LudeoCastV2MachineResourceProviderSettings;
@@ -1,4 +1,6 @@
1
1
  import { LudeocastV2DistributionData } from '../build';
2
+ import { MachineResourceSettings } from '../pools';
3
+ import { LudeoCastV2MachineResourceProviderSettings } from '../cloud';
2
4
  export declare enum MachineMode {
3
5
  PROTON = "proton",
4
6
  ANDROID = "android"
@@ -45,6 +47,7 @@ export interface SiteAdapterStatusPayload {
45
47
  }
46
48
  export interface MachineSiteAdapterStatusPayload extends SiteAdapterStatusPayload {
47
49
  reason?: MachineStatusReason;
50
+ machineResourceSettings?: MachineResourceSettings<LudeoCastV2MachineResourceProviderSettings>;
48
51
  }
49
52
  export interface GameSiteAdapterStatusPayload extends SiteAdapterStatusPayload {
50
53
  reason?: GameStatusReason;
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/v4/types/site-controller/types.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA0E;AAG1E,IAAY,WAGX;AAHD,WAAY,WAAW;IACrB,gCAAiB,CAAA;IACjB,kCAAmB,CAAA;AACrB,CAAC,EAHW,WAAW,2BAAX,WAAW,QAGtB;AAED,MAAa,yBAAyB;CAcrC;AAdD,8DAcC;AAZC;IADC,IAAA,0BAAQ,GAAE;;kEACa;AAIxB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;iFAC6C;AAIxD;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;;uEACsB;AAGhC;IADC,IAAA,0BAAQ,GAAE;;0DACK;AAGlB,MAAa,0BAA0B;CAOtC;AAPD,gEAOC;AALC;IADC,IAAA,0BAAQ,GAAE;;6DACO;AAIlB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;kFAC6C;AAM1D,IAAY,mBAGX;AAHD,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;I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C,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;kFAC6C;AAM1D,IAAY,mBAGX;AAHD,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,sCAAe,CAAA;AACjB,CAAC,EAHW,mBAAmB,mCAAnB,mBAAmB,QAG9B;AAED,IAAY,mBAKX;AALD,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,sEAA+C,CAAA;IAC/C,oEAA6C,CAAA;IAC7C,oDAA6B,CAAA;AAC/B,CAAC,EALW,mBAAmB,mCAAnB,mBAAmB,QAK9B;AAED,IAAY,gBAKX;AALD,WAAY,gBAAgB;IAC1B,iDAA6B,CAAA;IAC7B,iDAA6B,CAAA;IAC7B,qDAAiC,CAAA;IACjC,iDAA6B,CAAA;AAC/B,CAAC,EALW,gBAAgB,gCAAhB,gBAAgB,QAK3B;AAED,IAAY,YAGX;AAHD,WAAY,YAAY;IACtB,yCAAyB,CAAA;IACzB,6CAA6B,CAAA;AAC/B,CAAC,EAHW,YAAY,4BAAZ,YAAY,QAGvB;AAED,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,wCAAqB,CAAA;IACrB,8CAA2B,CAAA;AAC7B,CAAC,EAHW,eAAe,+BAAf,eAAe,QAG1B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ludeo/cloud-common",
3
- "version": "1.2.188",
3
+ "version": "1.2.189-beta-yahil-2",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "author": "Yahil Didi",
@@ -3,7 +3,8 @@ import { ValidateNestedType } from '../../../decorators';
3
3
  import { IsEnum, IsOptional, IsString, IsUUID } from 'class-validator';
4
4
  import { CloudResourceContext } from '../../contexts';
5
5
  import { SiteOperationStatus } from '../../types/site-controller';
6
- import { CloudResourceStatus } from '../../types/pools';
6
+ import { CloudResourceStatus, MachineResourceSettings } from '../../types/pools';
7
+ import { LudeoCastV2MachineResourceProviderSettings } from '../../types/cloud/ludeocast-v2/machine-provider-settings';
7
8
 
8
9
  export class MachineLudeocastCreationEndedPayload {
9
10
  @IsUUID()
@@ -21,6 +22,9 @@ export class MachineLudeocastCreationEndedPayload {
21
22
  @IsOptional()
22
23
  @IsString()
23
24
  reason?: string;
25
+
26
+ @IsOptional()
27
+ machineResourceSettings?: MachineResourceSettings<LudeoCastV2MachineResourceProviderSettings>
24
28
  }
25
29
 
26
30
  export class MachineLudeocastCreationEnded extends LudeoEvent {
@@ -1,6 +1,23 @@
1
- import { IsString } from "class-validator";
1
+ import { IsOptional, IsString } from "class-validator";
2
2
 
3
3
  export class LudeoCastV2MachineResourceProviderSettings {
4
+ @IsOptional()
4
5
  @IsString()
5
- machineId: string;
6
+ region?: string;
7
+
8
+ @IsOptional()
9
+ @IsString()
10
+ site?: string;
11
+
12
+ @IsOptional()
13
+ @IsString()
14
+ zone?: string;
15
+
16
+ @IsOptional()
17
+ @IsString()
18
+ publicIp?: string;
19
+
20
+ @IsOptional()
21
+ @IsString()
22
+ url?: string;
6
23
  }
@@ -1,6 +1,9 @@
1
1
  import { MockMachineResourceProviderSettings } from "./mock";
2
2
  import { LudeoCastMachineResourceProviderSettings } from "./ludeocast";
3
+ import { LudeoCastV2MachineResourceProviderSettings } from "./ludeocast-v2/machine-provider-settings";
3
4
 
4
5
  export type MachineResourceProviderSettings =
5
6
  | MockMachineResourceProviderSettings
6
- | LudeoCastMachineResourceProviderSettings;
7
+ | LudeoCastMachineResourceProviderSettings
8
+ | LudeoCastV2MachineResourceProviderSettings
9
+
@@ -1,5 +1,7 @@
1
1
  import { IsString, IsOptional, IsObject, IsArray } from 'class-validator';
2
2
  import { LudeocastV2DistributionData } from '../build';
3
+ import { MachineResourceSettings } from '../pools';
4
+ import { LudeoCastV2MachineResourceProviderSettings } from '../cloud';
3
5
 
4
6
  export enum MachineMode {
5
7
  PROTON = 'proton',
@@ -72,6 +74,7 @@ export interface SiteAdapterStatusPayload {
72
74
 
73
75
  export interface MachineSiteAdapterStatusPayload extends SiteAdapterStatusPayload {
74
76
  reason?: MachineStatusReason;
77
+ machineResourceSettings?: MachineResourceSettings<LudeoCastV2MachineResourceProviderSettings>;
75
78
  }
76
79
 
77
80
  export interface GameSiteAdapterStatusPayload extends SiteAdapterStatusPayload {