@ludeo/cloud-common 1.2.89-ygarbage3 → 1.2.89-ygarbage5

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,14 @@
1
1
  import { CloudResourceContext } from "../contexts";
2
2
  import { LudeoEvent } from "../../infra/ludeo-event";
3
- import { CloudProviderSettings, CloudProvider, MachineResourceSettings } from "../types";
4
- export declare class MachineAllocatedResponsePayload<T extends CloudProviderSettings = CloudProviderSettings, K extends MachineResourceSettings = MachineResourceSettings> {
3
+ import { CloudProviderSettings, CloudProvider, MachineResourceProviderSettings } from "../types";
4
+ export declare class MachineAllocatedResponsePayload<T extends CloudProviderSettings = CloudProviderSettings, K extends MachineResourceProviderSettings = MachineResourceProviderSettings> {
5
5
  machineResourceId: string;
6
6
  machinePoolId: string;
7
7
  gameResourceId: string;
8
8
  gamePoolId: string;
9
9
  providerSettings: T;
10
10
  cloudProvider: CloudProvider;
11
- machineResourceSettings: K;
11
+ machineProviderSettings: K;
12
12
  }
13
13
  export declare class MachineAllocatedResponse extends LudeoEvent {
14
14
  static readonly EVENT_NAME = "cloud-pools.machine-allocated-response";
@@ -42,10 +42,6 @@ __decorate([
42
42
  (0, class_validator_1.IsEnum)(types_1.CloudProvider),
43
43
  __metadata("design:type", String)
44
44
  ], MachineAllocatedResponsePayload.prototype, "cloudProvider", void 0);
45
- __decorate([
46
- (0, class_validator_1.IsOptional)(),
47
- __metadata("design:type", Object)
48
- ], MachineAllocatedResponsePayload.prototype, "machineResourceSettings", void 0);
49
45
  class MachineAllocatedResponse extends ludeo_event_1.LudeoEvent {
50
46
  constructor(payload, context) {
51
47
  super(MachineAllocatedResponse.EVENT_NAME);
@@ -1 +1 @@
1
- {"version":3,"file":"machine-allocated-response.js","sourceRoot":"","sources":["../../../src/v4/events/machine-allocated-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA6D;AAE7D,0CAAmD;AACnD,yDAAqD;AACrD,oGAAqF;AACrF,oCAKkB;AAElB,MAAa,+BAA+B;CAwB3C;AAxBD,0EAwBC;AAnBC;IADC,IAAA,wBAAM,GAAE;;0EACiB;AAG1B;IADC,IAAA,wBAAM,GAAE;;sEACa;AAGtB;IADC,IAAA,wBAAM,GAAE;;uEACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;mEACU;AAGnB;IADC,IAAA,mDAAkB,EAAC,+BAAuB,CAAC;;yEACxB;AAGpB;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;sEACO;AAG7B;IADC,IAAA,4BAAU,GAAE;;gFACc;AAG7B,MAAa,wBAAyB,SAAQ,wBAAU;IAGtD,YACE,OAAwC,EACxC,OAA6B;QAE7B,KAAK,CAAC,wBAAwB,CAAC,UAAU,CAAC,CAAC;QAC3C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,4DAiBC;AAhBiB,mCAAU,GAAG,wCAAwC,CAAC;AAYtE;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;yDAAC;AAG9B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAA+B,CAAC;8BACjD,+BAA+B;yDAAC"}
1
+ {"version":3,"file":"machine-allocated-response.js","sourceRoot":"","sources":["../../../src/v4/events/machine-allocated-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiD;AAEjD,0CAAmD;AACnD,yDAAqD;AACrD,oGAAqF;AACrF,oCAKkB;AAElB,MAAa,+BAA+B;CAuB3C;AAvBD,0EAuBC;AAlBC;IADC,IAAA,wBAAM,GAAE;;0EACiB;AAG1B;IADC,IAAA,wBAAM,GAAE;;sEACa;AAGtB;IADC,IAAA,wBAAM,GAAE;;uEACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;mEACU;AAGnB;IADC,IAAA,mDAAkB,EAAC,+BAAuB,CAAC;;yEACxB;AAGpB;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;sEACO;AAK/B,MAAa,wBAAyB,SAAQ,wBAAU;IAGtD,YACE,OAAwC,EACxC,OAA6B;QAE7B,KAAK,CAAC,wBAAwB,CAAC,UAAU,CAAC,CAAC;QAC3C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,4DAiBC;AAhBiB,mCAAU,GAAG,wCAAwC,CAAC;AAYtE;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;yDAAC;AAG9B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAA+B,CAAC;8BACjD,+BAA+B;yDAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ludeo/cloud-common",
3
- "version": "1.2.89-ygarbage3",
3
+ "version": "1.2.89-ygarbage5",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "author": "Yahil Didi",
@@ -1,4 +1,4 @@
1
- import { IsUUID, IsEnum, IsOptional } from "class-validator";
1
+ import { IsUUID, IsEnum } from "class-validator";
2
2
 
3
3
  import { CloudResourceContext } from "../contexts";
4
4
  import { LudeoEvent } from "../../infra/ludeo-event";
@@ -7,12 +7,12 @@ import {
7
7
  CloudProviderSettings,
8
8
  CloudProvider,
9
9
  getProviderSettingsType,
10
- MachineResourceSettings,
10
+ MachineResourceProviderSettings,
11
11
  } from "../types";
12
12
 
13
13
  export class MachineAllocatedResponsePayload<
14
14
  T extends CloudProviderSettings = CloudProviderSettings,
15
- K extends MachineResourceSettings = MachineResourceSettings
15
+ K extends MachineResourceProviderSettings = MachineResourceProviderSettings
16
16
  > {
17
17
  @IsUUID()
18
18
  machineResourceId: string;
@@ -32,8 +32,7 @@ export class MachineAllocatedResponsePayload<
32
32
  @IsEnum(CloudProvider)
33
33
  cloudProvider: CloudProvider;
34
34
 
35
- @IsOptional()
36
- machineResourceSettings: K;
35
+ machineProviderSettings: K;
37
36
  }
38
37
 
39
38
  export class MachineAllocatedResponse extends LudeoEvent {