@ludeo/cloud-common 1.2.189 → 1.2.190

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 (31) hide show
  1. package/dist/tsconfig.tsbuildinfo +1 -1
  2. package/dist/v4/events/cloud-builds/create-build-snapshot-request.d.ts +1 -0
  3. package/dist/v4/events/cloud-builds/create-build-snapshot-request.js +4 -0
  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 +3 -1
  6. package/dist/v4/events/site-controller/machine-ludeocast-creation-ended.js +4 -0
  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 +5 -1
  9. package/dist/v4/types/cloud/ludeocast-v2/machine-provider-settings.js +22 -1
  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 +3 -1
  12. package/dist/v4/types/cloud/ludeocast-v2/resource-provider-settings.js +15 -5
  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 +2 -1
  15. package/dist/v4/types/cloud/resource-provider-settings.d.ts +3 -2
  16. package/dist/v4/types/cloud/resource-provider-settings.js +4 -0
  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 +1 -0
  19. package/dist/v4/types/site-controller/create-snapshot.dto.js +4 -0
  20. package/dist/v4/types/site-controller/create-snapshot.dto.js.map +1 -1
  21. package/dist/v4/types/site-controller/types.d.ts +4 -1
  22. package/dist/v4/types/site-controller/types.js.map +1 -1
  23. package/package.json +1 -1
  24. package/src/v4/events/cloud-builds/create-build-snapshot-request.ts +4 -1
  25. package/src/v4/events/site-controller/machine-ludeocast-creation-ended.ts +5 -1
  26. package/src/v4/types/cloud/ludeocast-v2/machine-provider-settings.ts +19 -2
  27. package/src/v4/types/cloud/ludeocast-v2/resource-provider-settings.ts +12 -5
  28. package/src/v4/types/cloud/machine-provider-settings.ts +4 -1
  29. package/src/v4/types/cloud/resource-provider-settings.ts +8 -1
  30. package/src/v4/types/site-controller/create-snapshot.dto.ts +4 -1
  31. package/src/v4/types/site-controller/types.ts +5 -2
@@ -3,6 +3,7 @@ import { BuildContext } from '../../contexts';
3
3
  export declare class CreateBuildSnapshotRequestPayload {
4
4
  buildId: string;
5
5
  downloadURL: string;
6
+ sizeGB: number;
6
7
  site?: string;
7
8
  region?: string;
8
9
  }
@@ -25,6 +25,10 @@ __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);
28
32
  __decorate([
29
33
  (0, class_validator_1.IsOptional)(),
30
34
  (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,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
+ {"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,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,7 +1,9 @@
1
1
  import { CloudProvider } from "../provider";
2
2
  export declare class LudeoCastV2ResourceProviderSettings {
3
- machineId?: string;
4
3
  cloudProvider?: CloudProvider;
5
4
  region?: string;
6
5
  site?: string;
6
+ zone?: string;
7
+ publicIp?: string;
8
+ url?: string;
7
9
  }
@@ -15,11 +15,6 @@ 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.IsString)(),
21
- __metadata("design:type", String)
22
- ], LudeoCastV2ResourceProviderSettings.prototype, "machineId", void 0);
23
18
  __decorate([
24
19
  (0, class_validator_1.IsOptional)(),
25
20
  (0, class_validator_1.IsEnum)(provider_1.CloudProvider),
@@ -35,4 +30,19 @@ __decorate([
35
30
  (0, class_validator_1.IsString)(),
36
31
  __metadata("design:type", String)
37
32
  ], LudeoCastV2ResourceProviderSettings.prototype, "site", void 0);
33
+ __decorate([
34
+ (0, class_validator_1.IsOptional)(),
35
+ (0, class_validator_1.IsString)(),
36
+ __metadata("design:type", String)
37
+ ], LudeoCastV2ResourceProviderSettings.prototype, "zone", void 0);
38
+ __decorate([
39
+ (0, class_validator_1.IsOptional)(),
40
+ (0, class_validator_1.IsString)(),
41
+ __metadata("design:type", String)
42
+ ], LudeoCastV2ResourceProviderSettings.prototype, "publicIp", void 0);
43
+ __decorate([
44
+ (0, class_validator_1.IsOptional)(),
45
+ (0, class_validator_1.IsString)(),
46
+ __metadata("design:type", String)
47
+ ], LudeoCastV2ResourceProviderSettings.prototype, "url", void 0);
38
48
  //# 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;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
+ {"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,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;
@@ -2,5 +2,6 @@ import { TypeHelpOptions } from "class-transformer";
2
2
  import { AWSResourceProviderSettings } from "./aws";
3
3
  import { MockResourceProviderSettings } from "./mock";
4
4
  import { LudeoCastResourceProviderSettings } from "./ludeocast";
5
- export type CloudResourceProviderSettings = AWSResourceProviderSettings | MockResourceProviderSettings | LudeoCastResourceProviderSettings;
6
- export declare const getResourceProviderSettingsType: ({ object, property, }: TypeHelpOptions) => typeof AWSResourceProviderSettings | typeof MockResourceProviderSettings | typeof LudeoCastResourceProviderSettings;
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;
@@ -4,6 +4,7 @@ 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");
7
8
  const getResourceProviderSettingsType = ({ object, property, }) => {
8
9
  const providerSettings = object[property];
9
10
  if ("streamSessionId" in providerSettings) {
@@ -12,6 +13,9 @@ const getResourceProviderSettingsType = ({ object, property, }) => {
12
13
  if ("machineId" in providerSettings) {
13
14
  return ludeocast_1.LudeoCastResourceProviderSettings;
14
15
  }
16
+ if ('publicIp' in providerSettings) {
17
+ return resource_provider_settings_1.LudeoCastV2ResourceProviderSettings;
18
+ }
15
19
  return mock_1.MockResourceProviderSettings;
16
20
  };
17
21
  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;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
+ {"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,5 +1,6 @@
1
1
  export declare class CreateBuildSnapshotRequestDto {
2
2
  downloadURL: string;
3
+ sizeGB: number;
3
4
  buildId: string;
4
5
  }
5
6
  export declare class CreateBuildSnapshotResponseDto {
@@ -18,6 +18,10 @@ __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);
21
25
  __decorate([
22
26
  (0, class_validator_1.IsString)(),
23
27
  __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,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
+ {"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,4 +1,6 @@
1
- import { LudeocastV2DistributionData } from "../build";
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",
@@ -46,6 +48,7 @@ export interface SiteAdapterStatusPayload {
46
48
  }
47
49
  export interface MachineSiteAdapterStatusPayload extends SiteAdapterStatusPayload {
48
50
  reason?: MachineStatusReason;
51
+ machineResourceSettings?: MachineResourceSettings<LudeoCastV2MachineResourceProviderSettings>;
49
52
  }
50
53
  export interface GameSiteAdapterStatusPayload extends SiteAdapterStatusPayload {
51
54
  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,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"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/v4/types/site-controller/types.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA0E;AAK1E,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",
3
+ "version": "1.2.190",
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 } from 'class-validator';
3
+ import { IsString, IsOptional, IsNumber } from 'class-validator';
4
4
  import { BuildContext } from '../../contexts';
5
5
 
6
6
  export class CreateBuildSnapshotRequestPayload {
@@ -10,6 +10,9 @@ export class CreateBuildSnapshotRequestPayload {
10
10
  @IsString()
11
11
  downloadURL: string;
12
12
 
13
+ @IsNumber()
14
+ sizeGB: number;
15
+
13
16
  @IsOptional()
14
17
  @IsString()
15
18
  site?: string;
@@ -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
  }
@@ -2,10 +2,6 @@ import { IsEnum, IsOptional, IsString } from "class-validator";
2
2
  import { CloudProvider } from "../provider";
3
3
 
4
4
  export class LudeoCastV2ResourceProviderSettings {
5
- @IsOptional()
6
- @IsString()
7
- machineId?: string;
8
-
9
5
  @IsOptional()
10
6
  @IsEnum(CloudProvider)
11
7
  cloudProvider?: CloudProvider;
@@ -14,8 +10,19 @@ export class LudeoCastV2ResourceProviderSettings {
14
10
  @IsString()
15
11
  region?: string;
16
12
 
17
-
18
13
  @IsOptional()
19
14
  @IsString()
20
15
  site?: string;
16
+
17
+ @IsOptional()
18
+ @IsString()
19
+ zone?: string;
20
+
21
+ @IsOptional()
22
+ @IsString()
23
+ publicIp?: string;
24
+
25
+ @IsOptional()
26
+ @IsString()
27
+ url?: string;
21
28
  }
@@ -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
+
@@ -2,10 +2,13 @@ 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
+
5
7
  export type CloudResourceProviderSettings =
6
8
  | AWSResourceProviderSettings
7
9
  | MockResourceProviderSettings
8
- | LudeoCastResourceProviderSettings;
10
+ | LudeoCastResourceProviderSettings
11
+ | LudeoCastV2ResourceProviderSettings
9
12
 
10
13
  export const getResourceProviderSettingsType = ({
11
14
  object,
@@ -20,5 +23,9 @@ export const getResourceProviderSettingsType = ({
20
23
  return LudeoCastResourceProviderSettings;
21
24
  }
22
25
 
26
+ if ('publicIp' in providerSettings) {
27
+ return LudeoCastV2ResourceProviderSettings;
28
+ }
29
+
23
30
  return MockResourceProviderSettings;
24
31
  };
@@ -1,9 +1,12 @@
1
- import { IsOptional, IsString } from 'class-validator';
1
+ import { IsNumber, 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
+
7
10
  @IsString()
8
11
  buildId: string; // Build ID for snapshot naming (e.g., 'build-{buildId}')
9
12
  }
@@ -1,5 +1,7 @@
1
- import { IsString, IsOptional, IsObject, IsArray } from "class-validator";
2
- import { LudeocastV2DistributionData } from "../build";
1
+ import { IsString, IsOptional, IsObject, IsArray } from 'class-validator';
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",
@@ -74,6 +76,7 @@ export interface SiteAdapterStatusPayload {
74
76
  export interface MachineSiteAdapterStatusPayload
75
77
  extends SiteAdapterStatusPayload {
76
78
  reason?: MachineStatusReason;
79
+ machineResourceSettings?: MachineResourceSettings<LudeoCastV2MachineResourceProviderSettings>;
77
80
  }
78
81
 
79
82
  export interface GameSiteAdapterStatusPayload extends SiteAdapterStatusPayload {