@ludeo/cloud-common 1.2.189-beta-yahil-4 → 1.2.189

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.
Files changed (32) hide show
  1. package/dist/tsconfig.tsbuildinfo +1 -1
  2. package/dist/v4/events/cloud-builds/create-build-snapshot-request.d.ts +0 -1
  3. package/dist/v4/events/cloud-builds/create-build-snapshot-request.js +0 -4
  4. package/dist/v4/events/cloud-builds/create-build-snapshot-request.js.map +1 -1
  5. package/dist/v4/events/site-controller/machine-ludeocast-creation-ended.d.ts +1 -3
  6. package/dist/v4/events/site-controller/machine-ludeocast-creation-ended.js +0 -4
  7. package/dist/v4/events/site-controller/machine-ludeocast-creation-ended.js.map +1 -1
  8. package/dist/v4/types/cloud/ludeocast-v2/machine-provider-settings.d.ts +1 -5
  9. package/dist/v4/types/cloud/ludeocast-v2/machine-provider-settings.js +1 -22
  10. package/dist/v4/types/cloud/ludeocast-v2/machine-provider-settings.js.map +1 -1
  11. package/dist/v4/types/cloud/ludeocast-v2/resource-provider-settings.d.ts +1 -3
  12. package/dist/v4/types/cloud/ludeocast-v2/resource-provider-settings.js +5 -15
  13. package/dist/v4/types/cloud/ludeocast-v2/resource-provider-settings.js.map +1 -1
  14. package/dist/v4/types/cloud/machine-provider-settings.d.ts +1 -2
  15. package/dist/v4/types/cloud/resource-provider-settings.d.ts +2 -3
  16. package/dist/v4/types/cloud/resource-provider-settings.js +0 -4
  17. package/dist/v4/types/cloud/resource-provider-settings.js.map +1 -1
  18. package/dist/v4/types/site-controller/create-snapshot.dto.d.ts +0 -1
  19. package/dist/v4/types/site-controller/create-snapshot.dto.js +0 -4
  20. package/dist/v4/types/site-controller/create-snapshot.dto.js.map +1 -1
  21. package/dist/v4/types/site-controller/types.d.ts +3 -5
  22. package/dist/v4/types/site-controller/types.js +1 -0
  23. package/dist/v4/types/site-controller/types.js.map +1 -1
  24. package/package.json +1 -1
  25. package/src/v4/events/cloud-builds/create-build-snapshot-request.ts +1 -4
  26. package/src/v4/events/site-controller/machine-ludeocast-creation-ended.ts +1 -5
  27. package/src/v4/types/cloud/ludeocast-v2/machine-provider-settings.ts +2 -19
  28. package/src/v4/types/cloud/ludeocast-v2/resource-provider-settings.ts +5 -12
  29. package/src/v4/types/cloud/machine-provider-settings.ts +1 -4
  30. package/src/v4/types/cloud/resource-provider-settings.ts +1 -8
  31. package/src/v4/types/site-controller/create-snapshot.dto.ts +1 -4
  32. package/src/v4/types/site-controller/types.ts +27 -27
@@ -3,7 +3,6 @@ import { BuildContext } from '../../contexts';
3
3
  export declare class CreateBuildSnapshotRequestPayload {
4
4
  buildId: string;
5
5
  downloadURL: string;
6
- sizeGB: number;
7
6
  site?: string;
8
7
  region?: string;
9
8
  }
@@ -25,10 +25,6 @@ __decorate([
25
25
  (0, class_validator_1.IsString)(),
26
26
  __metadata("design:type", String)
27
27
  ], CreateBuildSnapshotRequestPayload.prototype, "downloadURL", void 0);
28
- __decorate([
29
- (0, class_validator_1.IsNumber)(),
30
- __metadata("design:type", Number)
31
- ], CreateBuildSnapshotRequestPayload.prototype, "sizeGB", void 0);
32
28
  __decorate([
33
29
  (0, class_validator_1.IsOptional)(),
34
30
  (0, class_validator_1.IsString)(),
@@ -1 +1 @@
1
- {"version":3,"file":"create-build-snapshot-request.js","sourceRoot":"","sources":["../../../../src/v4/events/cloud-builds/create-build-snapshot-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAC5C,oDAAyD;AACzD,qDAAiE;AACjE,6CAA8C;AAE9C,MAAa,iCAAiC;CAiB7C;AAjBD,8EAiBC;AAfC;IADC,IAAA,0BAAQ,GAAE;;kEACK;AAGhB;IADC,IAAA,0BAAQ,GAAE;;sEACS;AAGpB;IADC,IAAA,0BAAQ,GAAE;;iEACI;AAIf;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;+DACG;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;iEACK;AAGlB,MAAa,0BAA2B,SAAQ,kBAAU;IAGxD,YAAY,OAA0C,EAAE,OAAqB;QAC3E,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,4CAA4C,CAAC;AAS1E;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,iCAAiC,CAAC;8BACnD,iCAAiC;2DAAC;AAG3C;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,uBAAY,CAAC;8BAC9B,uBAAY;2DAAC"}
1
+ {"version":3,"file":"create-build-snapshot-request.js","sourceRoot":"","sources":["../../../../src/v4/events/cloud-builds/create-build-snapshot-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAC5C,oDAAyD;AACzD,qDAAuD;AACvD,6CAA8C;AAE9C,MAAa,iCAAiC;CAc7C;AAdD,8EAcC;AAZC;IADC,IAAA,0BAAQ,GAAE;;kEACK;AAGhB;IADC,IAAA,0BAAQ,GAAE;;sEACS;AAIpB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;+DACG;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;iEACK;AAGlB,MAAa,0BAA2B,SAAQ,kBAAU;IAGxD,YAAY,OAA0C,EAAE,OAAqB;QAC3E,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,4CAA4C,CAAC;AAS1E;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,iCAAiC,CAAC;8BACnD,iCAAiC;2DAAC;AAG3C;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,uBAAY,CAAC;8BAC9B,uBAAY;2DAAC"}
@@ -1,15 +1,13 @@
1
1
  import { LudeoEvent } from '../../../infra';
2
2
  import { CloudResourceContext } from '../../contexts';
3
3
  import { SiteOperationStatus } from '../../types/site-controller';
4
- import { CloudResourceStatus, MachineResourceSettings } from '../../types/pools';
5
- import { LudeoCastV2MachineResourceProviderSettings } from '../../types/cloud/ludeocast-v2/machine-provider-settings';
4
+ import { CloudResourceStatus } from '../../types/pools';
6
5
  export declare class MachineLudeocastCreationEndedPayload {
7
6
  machineResourceId: string;
8
7
  machinePoolId: string;
9
8
  operationStatus: SiteOperationStatus;
10
9
  status: CloudResourceStatus;
11
10
  reason?: string;
12
- machineResourceSettings?: MachineResourceSettings<LudeoCastV2MachineResourceProviderSettings>;
13
11
  }
14
12
  export declare class MachineLudeocastCreationEnded extends LudeoEvent {
15
13
  static readonly EVENT_NAME = "site-controller.machine-ludeocast-creation-ended";
@@ -40,10 +40,6 @@ __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);
47
43
  class MachineLudeocastCreationEnded extends infra_1.LudeoEvent {
48
44
  constructor(payload, context) {
49
45
  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,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
+ {"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,7 +1,3 @@
1
1
  export declare class LudeoCastV2MachineResourceProviderSettings {
2
- region?: string;
3
- site?: string;
4
- zone?: string;
5
- publicIp?: string;
6
- url?: string;
2
+ machineId: string;
7
3
  }
@@ -15,28 +15,7 @@ class LudeoCastV2MachineResourceProviderSettings {
15
15
  }
16
16
  exports.LudeoCastV2MachineResourceProviderSettings = LudeoCastV2MachineResourceProviderSettings;
17
17
  __decorate([
18
- (0, class_validator_1.IsOptional)(),
19
18
  (0, class_validator_1.IsString)(),
20
19
  __metadata("design:type", String)
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);
20
+ ], LudeoCastV2MachineResourceProviderSettings.prototype, "machineId", void 0);
42
21
  //# 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,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
+ {"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,9 +1,7 @@
1
1
  import { CloudProvider } from "../provider";
2
2
  export declare class LudeoCastV2ResourceProviderSettings {
3
+ machineId?: string;
3
4
  cloudProvider?: CloudProvider;
4
5
  region?: string;
5
6
  site?: string;
6
- zone?: string;
7
- publicIp?: string;
8
- url?: string;
9
7
  }
@@ -15,34 +15,24 @@ const provider_1 = require("../provider");
15
15
  class LudeoCastV2ResourceProviderSettings {
16
16
  }
17
17
  exports.LudeoCastV2ResourceProviderSettings = LudeoCastV2ResourceProviderSettings;
18
- __decorate([
19
- (0, class_validator_1.IsOptional)(),
20
- (0, class_validator_1.IsEnum)(provider_1.CloudProvider),
21
- __metadata("design:type", String)
22
- ], LudeoCastV2ResourceProviderSettings.prototype, "cloudProvider", void 0);
23
- __decorate([
24
- (0, class_validator_1.IsOptional)(),
25
- (0, class_validator_1.IsString)(),
26
- __metadata("design:type", String)
27
- ], LudeoCastV2ResourceProviderSettings.prototype, "region", void 0);
28
18
  __decorate([
29
19
  (0, class_validator_1.IsOptional)(),
30
20
  (0, class_validator_1.IsString)(),
31
21
  __metadata("design:type", String)
32
- ], LudeoCastV2ResourceProviderSettings.prototype, "site", void 0);
22
+ ], LudeoCastV2ResourceProviderSettings.prototype, "machineId", void 0);
33
23
  __decorate([
34
24
  (0, class_validator_1.IsOptional)(),
35
- (0, class_validator_1.IsString)(),
25
+ (0, class_validator_1.IsEnum)(provider_1.CloudProvider),
36
26
  __metadata("design:type", String)
37
- ], LudeoCastV2ResourceProviderSettings.prototype, "zone", void 0);
27
+ ], LudeoCastV2ResourceProviderSettings.prototype, "cloudProvider", void 0);
38
28
  __decorate([
39
29
  (0, class_validator_1.IsOptional)(),
40
30
  (0, class_validator_1.IsString)(),
41
31
  __metadata("design:type", String)
42
- ], LudeoCastV2ResourceProviderSettings.prototype, "publicIp", void 0);
32
+ ], LudeoCastV2ResourceProviderSettings.prototype, "region", void 0);
43
33
  __decorate([
44
34
  (0, class_validator_1.IsOptional)(),
45
35
  (0, class_validator_1.IsString)(),
46
36
  __metadata("design:type", String)
47
- ], LudeoCastV2ResourceProviderSettings.prototype, "url", void 0);
37
+ ], LudeoCastV2ResourceProviderSettings.prototype, "site", void 0);
48
38
  //# sourceMappingURL=resource-provider-settings.js.map
@@ -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;AAE5C,MAAa,mCAAmC;CAwB/C;AAxBD,kFAwBC;AArBC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,wBAAa,CAAC;;0EACQ;AAI9B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mEACK;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;iEACG;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;iEACG;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;qEACO;AAIlB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;gEACE"}
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;AAE5C,MAAa,mCAAmC;CAiB/C;AAjBD,kFAiBC;AAdC;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;;mEACK;AAKhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;iEACG"}
@@ -1,4 +1,3 @@
1
1
  import { MockMachineResourceProviderSettings } from "./mock";
2
2
  import { LudeoCastMachineResourceProviderSettings } from "./ludeocast";
3
- import { LudeoCastV2MachineResourceProviderSettings } from "./ludeocast-v2/machine-provider-settings";
4
- export type MachineResourceProviderSettings = MockMachineResourceProviderSettings | LudeoCastMachineResourceProviderSettings | LudeoCastV2MachineResourceProviderSettings;
3
+ export type MachineResourceProviderSettings = MockMachineResourceProviderSettings | LudeoCastMachineResourceProviderSettings;
@@ -2,6 +2,5 @@ import { TypeHelpOptions } from "class-transformer";
2
2
  import { AWSResourceProviderSettings } from "./aws";
3
3
  import { MockResourceProviderSettings } from "./mock";
4
4
  import { LudeoCastResourceProviderSettings } from "./ludeocast";
5
- import { LudeoCastV2ResourceProviderSettings } from "./ludeocast-v2/resource-provider-settings";
6
- export type CloudResourceProviderSettings = AWSResourceProviderSettings | MockResourceProviderSettings | LudeoCastResourceProviderSettings | LudeoCastV2ResourceProviderSettings;
7
- export declare const getResourceProviderSettingsType: ({ object, property, }: TypeHelpOptions) => typeof AWSResourceProviderSettings | typeof MockResourceProviderSettings | typeof LudeoCastResourceProviderSettings | typeof LudeoCastV2ResourceProviderSettings;
5
+ export type CloudResourceProviderSettings = AWSResourceProviderSettings | MockResourceProviderSettings | LudeoCastResourceProviderSettings;
6
+ export declare const getResourceProviderSettingsType: ({ object, property, }: TypeHelpOptions) => typeof AWSResourceProviderSettings | typeof MockResourceProviderSettings | typeof LudeoCastResourceProviderSettings;
@@ -4,7 +4,6 @@ exports.getResourceProviderSettingsType = void 0;
4
4
  const aws_1 = require("./aws");
5
5
  const mock_1 = require("./mock");
6
6
  const ludeocast_1 = require("./ludeocast");
7
- const resource_provider_settings_1 = require("./ludeocast-v2/resource-provider-settings");
8
7
  const getResourceProviderSettingsType = ({ object, property, }) => {
9
8
  const providerSettings = object[property];
10
9
  if ("streamSessionId" in providerSettings) {
@@ -13,9 +12,6 @@ const getResourceProviderSettingsType = ({ object, property, }) => {
13
12
  if ("machineId" in providerSettings) {
14
13
  return ludeocast_1.LudeoCastResourceProviderSettings;
15
14
  }
16
- if ('publicIp' in providerSettings) {
17
- return resource_provider_settings_1.LudeoCastV2ResourceProviderSettings;
18
- }
19
15
  return mock_1.MockResourceProviderSettings;
20
16
  };
21
17
  exports.getResourceProviderSettingsType = getResourceProviderSettingsType;
@@ -1 +1 @@
1
- {"version":3,"file":"resource-provider-settings.js","sourceRoot":"","sources":["../../../../src/v4/types/cloud/resource-provider-settings.ts"],"names":[],"mappings":";;;AACA,+BAAoD;AACpD,iCAAsD;AACtD,2CAAgE;AAChE,0FAAgG;AAQzF,MAAM,+BAA+B,GAAG,CAAC,EAC9C,MAAM,EACN,QAAQ,GACQ,EAAE,EAAE;IACpB,MAAM,gBAAgB,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC;IAC1C,IAAI,iBAAiB,IAAI,gBAAgB,EAAE,CAAC;QAC1C,OAAO,iCAA2B,CAAC;IACrC,CAAC;IAED,IAAI,WAAW,IAAI,gBAAgB,EAAE,CAAC;QACpC,OAAO,6CAAiC,CAAC;IAC3C,CAAC;IAED,IAAI,UAAU,IAAI,gBAAgB,EAAE,CAAC;QACnC,OAAO,gEAAmC,CAAC;IAC7C,CAAC;IAED,OAAO,mCAA4B,CAAC;AACtC,CAAC,CAAC;AAlBW,QAAA,+BAA+B,mCAkB1C"}
1
+ {"version":3,"file":"resource-provider-settings.js","sourceRoot":"","sources":["../../../../src/v4/types/cloud/resource-provider-settings.ts"],"names":[],"mappings":";;;AACA,+BAAoD;AACpD,iCAAsD;AACtD,2CAAgE;AAMzD,MAAM,+BAA+B,GAAG,CAAC,EAC9C,MAAM,EACN,QAAQ,GACQ,EAAE,EAAE;IACpB,MAAM,gBAAgB,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC;IAC1C,IAAI,iBAAiB,IAAI,gBAAgB,EAAE,CAAC;QAC1C,OAAO,iCAA2B,CAAC;IACrC,CAAC;IAED,IAAI,WAAW,IAAI,gBAAgB,EAAE,CAAC;QACpC,OAAO,6CAAiC,CAAC;IAC3C,CAAC;IAED,OAAO,mCAA4B,CAAC;AACtC,CAAC,CAAC;AAdW,QAAA,+BAA+B,mCAc1C"}
@@ -1,6 +1,5 @@
1
1
  export declare class CreateBuildSnapshotRequestDto {
2
2
  downloadURL: string;
3
- sizeGB: number;
4
3
  buildId: string;
5
4
  }
6
5
  export declare class CreateBuildSnapshotResponseDto {
@@ -18,10 +18,6 @@ __decorate([
18
18
  (0, class_validator_1.IsString)(),
19
19
  __metadata("design:type", String)
20
20
  ], CreateBuildSnapshotRequestDto.prototype, "downloadURL", void 0);
21
- __decorate([
22
- (0, class_validator_1.IsNumber)(),
23
- __metadata("design:type", Number)
24
- ], CreateBuildSnapshotRequestDto.prototype, "sizeGB", void 0);
25
21
  __decorate([
26
22
  (0, class_validator_1.IsString)(),
27
23
  __metadata("design:type", String)
@@ -1 +1 @@
1
- {"version":3,"file":"create-snapshot.dto.js","sourceRoot":"","sources":["../../../../src/v4/types/site-controller/create-snapshot.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiE;AAEjE,MAAa,6BAA6B;CASzC;AATD,sEASC;AAPC;IADC,IAAA,0BAAQ,GAAE;;kEACS;AAGpB;IADC,IAAA,0BAAQ,GAAE;;6DACI;AAGf;IADC,IAAA,0BAAQ,GAAE;;8DACK;AAGlB,MAAa,8BAA8B;CAU1C;AAVD,wEAUC;AALC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;+DACM;AAIjB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;oEACW"}
1
+ {"version":3,"file":"create-snapshot.dto.js","sourceRoot":"","sources":["../../../../src/v4/types/site-controller/create-snapshot.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AAEvD,MAAa,6BAA6B;CAMzC;AAND,sEAMC;AAJC;IADC,IAAA,0BAAQ,GAAE;;kEACS;AAGpB;IADC,IAAA,0BAAQ,GAAE;;8DACK;AAGlB,MAAa,8BAA8B;CAU1C;AAVD,wEAUC;AALC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;+DACM;AAIjB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;oEACW"}
@@ -1,9 +1,8 @@
1
- import { LudeocastV2DistributionData } from '../build';
2
- import { MachineResourceSettings } from '../pools';
3
- import { LudeoCastV2MachineResourceProviderSettings } from '../cloud';
1
+ import { LudeocastV2DistributionData } from "../build";
4
2
  export declare enum MachineMode {
5
3
  PROTON = "proton",
6
- ANDROID = "android"
4
+ ANDROID = "android",
5
+ PROTON_V2 = "proton-v2"
7
6
  }
8
7
  export declare class ProtonGameCreationPayload {
9
8
  exeRelativePath: string;
@@ -47,7 +46,6 @@ export interface SiteAdapterStatusPayload {
47
46
  }
48
47
  export interface MachineSiteAdapterStatusPayload extends SiteAdapterStatusPayload {
49
48
  reason?: MachineStatusReason;
50
- machineResourceSettings?: MachineResourceSettings<LudeoCastV2MachineResourceProviderSettings>;
51
49
  }
52
50
  export interface GameSiteAdapterStatusPayload extends SiteAdapterStatusPayload {
53
51
  reason?: GameStatusReason;
@@ -15,6 +15,7 @@ var MachineMode;
15
15
  (function (MachineMode) {
16
16
  MachineMode["PROTON"] = "proton";
17
17
  MachineMode["ANDROID"] = "android";
18
+ MachineMode["PROTON_V2"] = "proton-v2";
18
19
  })(MachineMode || (exports.MachineMode = MachineMode = {}));
19
20
  class ProtonGameCreationPayload {
20
21
  }
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/v4/types/site-controller/types.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA0E;AAK1E,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;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"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/v4/types/site-controller/types.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA0E;AAG1E,IAAY,WAIX;AAJD,WAAY,WAAW;IACrB,gCAAiB,CAAA;IACjB,kCAAmB,CAAA;IACnB,sCAAuB,CAAA;AACzB,CAAC,EAJW,WAAW,2BAAX,WAAW,QAItB;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;AAO1D,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.189-beta-yahil-4",
3
+ "version": "1.2.189",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "author": "Yahil Didi",
@@ -1,6 +1,6 @@
1
1
  import { LudeoEvent } from '../../../infra';
2
2
  import { ValidateNestedType } from '../../../decorators';
3
- import { IsString, IsOptional, IsNumber } from 'class-validator';
3
+ import { IsString, IsOptional } from 'class-validator';
4
4
  import { BuildContext } from '../../contexts';
5
5
 
6
6
  export class CreateBuildSnapshotRequestPayload {
@@ -10,9 +10,6 @@ export class CreateBuildSnapshotRequestPayload {
10
10
  @IsString()
11
11
  downloadURL: string;
12
12
 
13
- @IsNumber()
14
- sizeGB: number;
15
-
16
13
  @IsOptional()
17
14
  @IsString()
18
15
  site?: string;
@@ -3,8 +3,7 @@ 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, MachineResourceSettings } from '../../types/pools';
7
- import { LudeoCastV2MachineResourceProviderSettings } from '../../types/cloud/ludeocast-v2/machine-provider-settings';
6
+ import { CloudResourceStatus } from '../../types/pools';
8
7
 
9
8
  export class MachineLudeocastCreationEndedPayload {
10
9
  @IsUUID()
@@ -22,9 +21,6 @@ export class MachineLudeocastCreationEndedPayload {
22
21
  @IsOptional()
23
22
  @IsString()
24
23
  reason?: string;
25
-
26
- @IsOptional()
27
- machineResourceSettings?: MachineResourceSettings<LudeoCastV2MachineResourceProviderSettings>
28
24
  }
29
25
 
30
26
  export class MachineLudeocastCreationEnded extends LudeoEvent {
@@ -1,23 +1,6 @@
1
- import { IsOptional, IsString } from "class-validator";
1
+ import { IsString } from "class-validator";
2
2
 
3
3
  export class LudeoCastV2MachineResourceProviderSettings {
4
- @IsOptional()
5
4
  @IsString()
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;
5
+ machineId: string;
23
6
  }
@@ -2,27 +2,20 @@ import { IsEnum, IsOptional, IsString } from "class-validator";
2
2
  import { CloudProvider } from "../provider";
3
3
 
4
4
  export class LudeoCastV2ResourceProviderSettings {
5
- @IsOptional()
6
- @IsEnum(CloudProvider)
7
- cloudProvider?: CloudProvider;
8
-
9
5
  @IsOptional()
10
6
  @IsString()
11
- region?: string;
7
+ machineId?: string;
12
8
 
13
9
  @IsOptional()
14
- @IsString()
15
- site?: string;
10
+ @IsEnum(CloudProvider)
11
+ cloudProvider?: CloudProvider;
16
12
 
17
13
  @IsOptional()
18
14
  @IsString()
19
- zone?: string;
15
+ region?: string;
20
16
 
21
- @IsOptional()
22
- @IsString()
23
- publicIp?: string;
24
17
 
25
18
  @IsOptional()
26
19
  @IsString()
27
- url?: string;
20
+ site?: string;
28
21
  }
@@ -1,9 +1,6 @@
1
1
  import { MockMachineResourceProviderSettings } from "./mock";
2
2
  import { LudeoCastMachineResourceProviderSettings } from "./ludeocast";
3
- import { LudeoCastV2MachineResourceProviderSettings } from "./ludeocast-v2/machine-provider-settings";
4
3
 
5
4
  export type MachineResourceProviderSettings =
6
5
  | MockMachineResourceProviderSettings
7
- | LudeoCastMachineResourceProviderSettings
8
- | LudeoCastV2MachineResourceProviderSettings
9
-
6
+ | LudeoCastMachineResourceProviderSettings;
@@ -2,13 +2,10 @@ import { TypeHelpOptions } from "class-transformer";
2
2
  import { AWSResourceProviderSettings } from "./aws";
3
3
  import { MockResourceProviderSettings } from "./mock";
4
4
  import { LudeoCastResourceProviderSettings } from "./ludeocast";
5
- import { LudeoCastV2ResourceProviderSettings } from "./ludeocast-v2/resource-provider-settings";
6
-
7
5
  export type CloudResourceProviderSettings =
8
6
  | AWSResourceProviderSettings
9
7
  | MockResourceProviderSettings
10
- | LudeoCastResourceProviderSettings
11
- | LudeoCastV2ResourceProviderSettings
8
+ | LudeoCastResourceProviderSettings;
12
9
 
13
10
  export const getResourceProviderSettingsType = ({
14
11
  object,
@@ -23,9 +20,5 @@ export const getResourceProviderSettingsType = ({
23
20
  return LudeoCastResourceProviderSettings;
24
21
  }
25
22
 
26
- if ('publicIp' in providerSettings) {
27
- return LudeoCastV2ResourceProviderSettings;
28
- }
29
-
30
23
  return MockResourceProviderSettings;
31
24
  };
@@ -1,12 +1,9 @@
1
- import { IsNumber, IsOptional, IsString } from 'class-validator';
1
+ import { IsOptional, IsString } from 'class-validator';
2
2
 
3
3
  export class CreateBuildSnapshotRequestDto {
4
4
  @IsString()
5
5
  downloadURL: string; // S3 URL (e.g., s3://bucket/path)
6
6
 
7
- @IsNumber()
8
- sizeGB: number;
9
-
10
7
  @IsString()
11
8
  buildId: string; // Build ID for snapshot naming (e.g., 'build-{buildId}')
12
9
  }
@@ -1,11 +1,10 @@
1
- import { IsString, IsOptional, IsObject, IsArray } from 'class-validator';
2
- import { LudeocastV2DistributionData } from '../build';
3
- import { MachineResourceSettings } from '../pools';
4
- import { LudeoCastV2MachineResourceProviderSettings } from '../cloud';
1
+ import { IsString, IsOptional, IsObject, IsArray } from "class-validator";
2
+ import { LudeocastV2DistributionData } from "../build";
5
3
 
6
4
  export enum MachineMode {
7
- PROTON = 'proton',
8
- ANDROID = 'android',
5
+ PROTON = "proton",
6
+ ANDROID = "android",
7
+ PROTON_V2 = "proton-v2",
9
8
  }
10
9
 
11
10
  export class ProtonGameCreationPayload {
@@ -33,56 +32,57 @@ export class AndroidGameCreationPayload {
33
32
  additionalEnvironmentVariables?: Record<string, string>;
34
33
  }
35
34
 
36
- export type GameCreationPayload = ProtonGameCreationPayload | AndroidGameCreationPayload;
37
-
35
+ export type GameCreationPayload =
36
+ | ProtonGameCreationPayload
37
+ | AndroidGameCreationPayload;
38
38
 
39
39
  export enum SiteOperationStatus {
40
- Success = 'success',
41
- Error = 'error',
40
+ Success = "success",
41
+ Error = "error",
42
42
  }
43
43
 
44
44
  export enum MachineStatusReason {
45
- VMReady = 'VMReady',
46
- AgentReadyForCommands = 'AgentReadyForCommands',
47
- AgentModeInitialized = 'AgentModeInitialized',
48
- VMTerminated = 'VMTerminated',
45
+ VMReady = "VMReady",
46
+ AgentReadyForCommands = "AgentReadyForCommands",
47
+ AgentModeInitialized = "AgentModeInitialized",
48
+ VMTerminated = "VMTerminated",
49
49
  }
50
50
 
51
51
  export enum GameStatusReason {
52
- DiskAttached = 'DiskAttached',
53
- GameLaunched = 'GameLaunched',
54
- GameTerminated = 'GameTerminated',
55
- DiskDetached = 'DiskDetached',
52
+ DiskAttached = "DiskAttached",
53
+ GameLaunched = "GameLaunched",
54
+ GameTerminated = "GameTerminated",
55
+ DiskDetached = "DiskDetached",
56
56
  }
57
57
 
58
58
  export enum AgentRunMode {
59
- CONTROLLED = 'controlled',
60
- UNCONTROLLED = 'uncontrolled',
59
+ CONTROLLED = "controlled",
60
+ UNCONTROLLED = "uncontrolled",
61
61
  }
62
62
 
63
63
  export enum SiteAdapterFlow {
64
- Creation = 'creation',
65
- Termination = 'termination',
64
+ Creation = "creation",
65
+ Termination = "termination",
66
66
  }
67
67
 
68
-
69
68
  export interface SiteAdapterStatusPayload {
70
69
  status: SiteOperationStatus;
71
70
  flow: SiteAdapterFlow;
72
71
  message?: string;
73
72
  }
74
73
 
75
- export interface MachineSiteAdapterStatusPayload extends SiteAdapterStatusPayload {
74
+ export interface MachineSiteAdapterStatusPayload
75
+ extends SiteAdapterStatusPayload {
76
76
  reason?: MachineStatusReason;
77
- machineResourceSettings?: MachineResourceSettings<LudeoCastV2MachineResourceProviderSettings>;
78
77
  }
79
78
 
80
79
  export interface GameSiteAdapterStatusPayload extends SiteAdapterStatusPayload {
81
80
  reason?: GameStatusReason;
82
81
  }
83
82
 
84
- export interface BuildSnapshotAdapterStatusPayload extends SiteAdapterStatusPayload {
83
+ export interface BuildSnapshotAdapterStatusPayload
84
+ extends SiteAdapterStatusPayload {
85
85
  buildId?: string;
86
86
  distributionData?: LudeocastV2DistributionData;
87
87
  envIds?: string[];
88
- }
88
+ }