@ludeo/cloud-common 1.2.184-beta-yahil-2 → 1.2.184-beta-yahil-4

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 (34) hide show
  1. package/dist/tsconfig.tsbuildinfo +1 -1
  2. package/dist/v4/events/cloud-resources/create-ludeocast-game-request.d.ts +1 -0
  3. package/dist/v4/events/cloud-resources/create-ludeocast-game-request.js +4 -0
  4. package/dist/v4/events/cloud-resources/create-ludeocast-game-request.js.map +1 -1
  5. package/dist/v4/events/cloud-resources/create-ludeocast-machine-request.d.ts +3 -5
  6. package/dist/v4/events/cloud-resources/create-ludeocast-machine-request.js +6 -14
  7. package/dist/v4/events/cloud-resources/create-ludeocast-machine-request.js.map +1 -1
  8. package/dist/v4/events/cloud-resources/terminate-ludeocast-machine-request.d.ts +2 -2
  9. package/dist/v4/events/cloud-resources/terminate-ludeocast-machine-request.js +4 -7
  10. package/dist/v4/events/cloud-resources/terminate-ludeocast-machine-request.js.map +1 -1
  11. package/dist/v4/events/site-controller/game-ludeocast-creation-ended.d.ts +1 -0
  12. package/dist/v4/events/site-controller/game-ludeocast-creation-ended.js +4 -0
  13. package/dist/v4/events/site-controller/game-ludeocast-creation-ended.js.map +1 -1
  14. package/dist/v4/events/site-controller/game-ludeocast-termination-ended.d.ts +17 -0
  15. package/dist/v4/events/site-controller/game-ludeocast-termination-ended.js +60 -0
  16. package/dist/v4/events/site-controller/game-ludeocast-termination-ended.js.map +1 -0
  17. package/dist/v4/events/site-controller/index.d.ts +2 -0
  18. package/dist/v4/events/site-controller/index.js +2 -0
  19. package/dist/v4/events/site-controller/index.js.map +1 -1
  20. package/dist/v4/events/site-controller/machine-ludeocast-creation-ended.d.ts +1 -0
  21. package/dist/v4/events/site-controller/machine-ludeocast-creation-ended.js +4 -0
  22. package/dist/v4/events/site-controller/machine-ludeocast-creation-ended.js.map +1 -1
  23. package/dist/v4/events/site-controller/machine-ludeocast-termination-ended.d.ts +17 -0
  24. package/dist/v4/events/site-controller/machine-ludeocast-termination-ended.js +60 -0
  25. package/dist/v4/events/site-controller/machine-ludeocast-termination-ended.js.map +1 -0
  26. package/package.json +1 -1
  27. package/src/v4/events/cloud-resources/create-ludeocast-game-request.ts +3 -0
  28. package/src/v4/events/cloud-resources/create-ludeocast-machine-request.ts +6 -12
  29. package/src/v4/events/cloud-resources/terminate-ludeocast-machine-request.ts +4 -6
  30. package/src/v4/events/site-controller/game-ludeocast-creation-ended.ts +3 -0
  31. package/src/v4/events/site-controller/game-ludeocast-termination-ended.ts +41 -0
  32. package/src/v4/events/site-controller/index.ts +2 -0
  33. package/src/v4/events/site-controller/machine-ludeocast-creation-ended.ts +3 -0
  34. package/src/v4/events/site-controller/machine-ludeocast-termination-ended.ts +41 -0
@@ -4,6 +4,7 @@ import { CloudResourceContext } from '../../contexts';
4
4
  export declare class CreateLudeocastGameRequestPayload {
5
5
  machineResourceId: string;
6
6
  gameResourceId: string;
7
+ gamePoolId: string;
7
8
  gameCreationPayload: GameCreationPayload;
8
9
  site: string;
9
10
  region: string;
@@ -25,6 +25,10 @@ __decorate([
25
25
  (0, class_validator_1.IsUUID)(),
26
26
  __metadata("design:type", String)
27
27
  ], CreateLudeocastGameRequestPayload.prototype, "gameResourceId", void 0);
28
+ __decorate([
29
+ (0, class_validator_1.IsUUID)(),
30
+ __metadata("design:type", String)
31
+ ], CreateLudeocastGameRequestPayload.prototype, "gamePoolId", void 0);
28
32
  __decorate([
29
33
  (0, class_validator_1.IsString)(),
30
34
  __metadata("design:type", String)
@@ -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;CAkB7C;AAlBD,8EAkBC;AAhBC;IADC,IAAA,wBAAM,GAAE;;4EACiB;AAG1B;IADC,IAAA,wBAAM,GAAE;;yEACc;AAKvB;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;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,16 +1,14 @@
1
1
  import { LudeoEvent } from '../../../infra';
2
- import { MachineMode } from '../../types/site-controller';
3
2
  import { CloudResourceContext } from '../../contexts';
3
+ import { LudeoCastV2ProviderSettings } from '../../types';
4
4
  export declare class AndroidMachineCreationPayload {
5
5
  }
6
6
  export type MachineCreationPayload = AndroidMachineCreationPayload;
7
7
  export declare class CreateLudeocastMachineRequestPayload {
8
8
  machineResourceId: string;
9
- mode: MachineMode;
9
+ machinePoolId: string;
10
10
  machineCreationPayload?: MachineCreationPayload;
11
- site: string;
12
- region: string;
13
- machineType: string;
11
+ providerSettings: LudeoCastV2ProviderSettings;
14
12
  }
15
13
  export declare class CreateLudeocastMachineRequest extends LudeoEvent {
16
14
  static readonly EVENT_NAME = "cloud-resources.create-ludeocast-machine-request";
@@ -13,8 +13,8 @@ exports.CreateLudeocastMachineRequest = exports.CreateLudeocastMachineRequestPay
13
13
  const infra_1 = require("../../../infra");
14
14
  const decorators_1 = require("../../../decorators");
15
15
  const class_validator_1 = require("class-validator");
16
- const site_controller_1 = require("../../types/site-controller");
17
16
  const contexts_1 = require("../../contexts");
17
+ const types_1 = require("../../types");
18
18
  class AndroidMachineCreationPayload {
19
19
  }
20
20
  exports.AndroidMachineCreationPayload = AndroidMachineCreationPayload;
@@ -26,26 +26,18 @@ __decorate([
26
26
  __metadata("design:type", String)
27
27
  ], CreateLudeocastMachineRequestPayload.prototype, "machineResourceId", void 0);
28
28
  __decorate([
29
- (0, class_validator_1.IsEnum)(site_controller_1.MachineMode),
29
+ (0, class_validator_1.IsUUID)(),
30
30
  __metadata("design:type", String)
31
- ], CreateLudeocastMachineRequestPayload.prototype, "mode", void 0);
31
+ ], CreateLudeocastMachineRequestPayload.prototype, "machinePoolId", void 0);
32
32
  __decorate([
33
33
  (0, class_validator_1.IsOptional)(),
34
34
  (0, decorators_1.ValidateNestedType)(() => AndroidMachineCreationPayload),
35
35
  __metadata("design:type", Object)
36
36
  ], CreateLudeocastMachineRequestPayload.prototype, "machineCreationPayload", void 0);
37
37
  __decorate([
38
- (0, class_validator_1.IsString)(),
39
- __metadata("design:type", String)
40
- ], CreateLudeocastMachineRequestPayload.prototype, "site", void 0);
41
- __decorate([
42
- (0, class_validator_1.IsString)(),
43
- __metadata("design:type", String)
44
- ], CreateLudeocastMachineRequestPayload.prototype, "region", void 0);
45
- __decorate([
46
- (0, class_validator_1.IsString)(),
47
- __metadata("design:type", String)
48
- ], CreateLudeocastMachineRequestPayload.prototype, "machineType", void 0);
38
+ (0, decorators_1.ValidateNestedType)(() => types_1.LudeoCastV2ProviderSettings),
39
+ __metadata("design:type", types_1.LudeoCastV2ProviderSettings)
40
+ ], CreateLudeocastMachineRequestPayload.prototype, "providerSettings", void 0);
49
41
  class CreateLudeocastMachineRequest extends infra_1.LudeoEvent {
50
42
  constructor(payload, context) {
51
43
  super(CreateLudeocastMachineRequest.EVENT_NAME);
@@ -1 +1 @@
1
- {"version":3,"file":"create-ludeocast-machine-request.js","sourceRoot":"","sources":["../../../../src/v4/events/cloud-resources/create-ludeocast-machine-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAC5C,oDAAyD;AACzD,qDAAuE;AACvE,iEAA0D;AAC1D,6CAAsD;AAEtD,MAAa,6BAA6B;CAAG;AAA7C,sEAA6C;AAI7C,MAAa,oCAAoC;CAmBhD;AAnBD,oFAmBC;AAjBC;IADC,IAAA,wBAAM,GAAE;;+EACiB;AAG1B;IADC,IAAA,wBAAM,EAAC,6BAAW,CAAC;;kEACF;AAIlB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,6BAA6B,CAAC;;oFACR;AAGhD;IADC,IAAA,0BAAQ,GAAE;;kEACE;AAGb;IADC,IAAA,0BAAQ,GAAE;;oEACI;AAGf;IADC,IAAA,0BAAQ,GAAE;;yEACS;AAGtB,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":"create-ludeocast-machine-request.js","sourceRoot":"","sources":["../../../../src/v4/events/cloud-resources/create-ludeocast-machine-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAC5C,oDAAyD;AACzD,qDAAqD;AACrD,6CAAsD;AACtD,uCAA0D;AAE1D,MAAa,6BAA6B;CAAG;AAA7C,sEAA6C;AAI7C,MAAa,oCAAoC;CAahD;AAbD,oFAaC;AAXC;IADC,IAAA,wBAAM,GAAE;;+EACiB;AAG1B;IADC,IAAA,wBAAM,GAAE;;2EACa;AAItB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,6BAA6B,CAAC;;oFACR;AAGhD;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,mCAA2B,CAAC;8BACpC,mCAA2B;8EAAC;AAGhD,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,9 +1,9 @@
1
1
  import { LudeoEvent } from '../../../infra';
2
2
  import { CloudResourceContext } from '../../contexts';
3
+ import { LudeoCastV2ProviderSettings } from '../../types';
3
4
  export declare class TerminateLudeocastMachineRequestPayload {
4
5
  machineResourceId: string;
5
- site: string;
6
- region: string;
6
+ providerSettings: LudeoCastV2ProviderSettings;
7
7
  }
8
8
  export declare class TerminateLudeocastMachineRequest extends LudeoEvent {
9
9
  static readonly EVENT_NAME = "cloud-resources.terminate-ludeocast-machine-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 types_1 = require("../../types");
17
18
  class TerminateLudeocastMachineRequestPayload {
18
19
  }
19
20
  exports.TerminateLudeocastMachineRequestPayload = TerminateLudeocastMachineRequestPayload;
@@ -22,13 +23,9 @@ __decorate([
22
23
  __metadata("design:type", String)
23
24
  ], TerminateLudeocastMachineRequestPayload.prototype, "machineResourceId", void 0);
24
25
  __decorate([
25
- (0, class_validator_1.IsString)(),
26
- __metadata("design:type", String)
27
- ], TerminateLudeocastMachineRequestPayload.prototype, "site", void 0);
28
- __decorate([
29
- (0, class_validator_1.IsString)(),
30
- __metadata("design:type", String)
31
- ], TerminateLudeocastMachineRequestPayload.prototype, "region", void 0);
26
+ (0, decorators_1.ValidateNestedType)(() => types_1.LudeoCastV2ProviderSettings),
27
+ __metadata("design:type", types_1.LudeoCastV2ProviderSettings)
28
+ ], TerminateLudeocastMachineRequestPayload.prototype, "providerSettings", void 0);
32
29
  class TerminateLudeocastMachineRequest extends infra_1.LudeoEvent {
33
30
  constructor(payload, context) {
34
31
  super(TerminateLudeocastMachineRequest.EVENT_NAME);
@@ -1 +1 @@
1
- {"version":3,"file":"terminate-ludeocast-machine-request.js","sourceRoot":"","sources":["../../../../src/v4/events/cloud-resources/terminate-ludeocast-machine-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAC5C,oDAAyD;AACzD,qDAAmD;AACnD,6CAAsD;AAEtD,MAAa,uCAAuC;CASnD;AATD,0FASC;AAPC;IADC,IAAA,wBAAM,GAAE;;kFACiB;AAG1B;IADC,IAAA,0BAAQ,GAAE;;qEACE;AAGb;IADC,IAAA,0BAAQ,GAAE;;uEACI;AAGjB,MAAa,gCAAiC,SAAQ,kBAAU;IAG9D,YAAY,OAAgD,EAAE,OAA6B;QACzF,KAAK,CAAC,gCAAgC,CAAC,UAAU,CAAC,CAAC;QACnD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,4EAcC;AAbiB,2CAAU,GAAG,qDAAqD,CAAC;AASnF;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,uCAAuC,CAAC;8BACzD,uCAAuC;iEAAC;AAGjD;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;iEAAC"}
1
+ {"version":3,"file":"terminate-ludeocast-machine-request.js","sourceRoot":"","sources":["../../../../src/v4/events/cloud-resources/terminate-ludeocast-machine-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAC5C,oDAAyD;AACzD,qDAAyC;AACzC,6CAAsD;AACtD,uCAA0D;AAE1D,MAAa,uCAAuC;CAMnD;AAND,0FAMC;AAJC;IADC,IAAA,wBAAM,GAAE;;kFACiB;AAG1B;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,mCAA2B,CAAC;8BACpC,mCAA2B;iFAAC;AAGhD,MAAa,gCAAiC,SAAQ,kBAAU;IAG9D,YAAY,OAAgD,EAAE,OAA6B;QACzF,KAAK,CAAC,gCAAgC,CAAC,UAAU,CAAC,CAAC;QACnD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,4EAcC;AAbiB,2CAAU,GAAG,qDAAqD,CAAC;AASnF;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,uCAAuC,CAAC;8BACzD,uCAAuC;iEAAC;AAGjD;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;iEAAC"}
@@ -4,6 +4,7 @@ import { SiteOperationStatus } from '../../types/site-controller';
4
4
  import { CloudResourceStatus } from '../../types/pools';
5
5
  export declare class GameLudeocastCreationEndedPayload {
6
6
  gameResourceId: string;
7
+ gamePoolId: string;
7
8
  operationStatus: SiteOperationStatus;
8
9
  status: CloudResourceStatus;
9
10
  reason?: string;
@@ -23,6 +23,10 @@ __decorate([
23
23
  (0, class_validator_1.IsUUID)(),
24
24
  __metadata("design:type", String)
25
25
  ], GameLudeocastCreationEndedPayload.prototype, "gameResourceId", void 0);
26
+ __decorate([
27
+ (0, class_validator_1.IsUUID)(),
28
+ __metadata("design:type", String)
29
+ ], GameLudeocastCreationEndedPayload.prototype, "gamePoolId", void 0);
26
30
  __decorate([
27
31
  (0, class_validator_1.IsEnum)(site_controller_1.SiteOperationStatus),
28
32
  __metadata("design:type", String)
@@ -1 +1 @@
1
- {"version":3,"file":"game-ludeocast-creation-ended.js","sourceRoot":"","sources":["../../../../src/v4/events/site-controller/game-ludeocast-creation-ended.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAC5C,oDAAyD;AACzD,qDAAuE;AACvE,6CAAsD;AACtD,iEAAkE;AAClE,6CAAwD;AAExD,MAAa,iCAAiC;CAa7C;AAbD,8EAaC;AAXC;IADC,IAAA,wBAAM,GAAE;;yEACc;AAGvB;IADC,IAAA,wBAAM,EAAC,qCAAmB,CAAC;;0EACS;AAGrC;IADC,IAAA,wBAAM,EAAC,2BAAmB,CAAC;;iEACA;AAI5B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;iEACK;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"}
1
+ {"version":3,"file":"game-ludeocast-creation-ended.js","sourceRoot":"","sources":["../../../../src/v4/events/site-controller/game-ludeocast-creation-ended.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAC5C,oDAAyD;AACzD,qDAAuE;AACvE,6CAAsD;AACtD,iEAAkE;AAClE,6CAAwD;AAExD,MAAa,iCAAiC;CAgB7C;AAhBD,8EAgBC;AAdC;IADC,IAAA,wBAAM,GAAE;;yEACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;qEACU;AAGnB;IADC,IAAA,wBAAM,EAAC,qCAAmB,CAAC;;0EACS;AAGrC;IADC,IAAA,wBAAM,EAAC,2BAAmB,CAAC;;iEACA;AAI5B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;iEACK;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"}
@@ -0,0 +1,17 @@
1
+ import { LudeoEvent } from '../../../infra';
2
+ import { CloudResourceContext } from '../../contexts';
3
+ import { SiteOperationStatus } from '../../types/site-controller';
4
+ import { CloudResourceStatus } from '../../types/pools';
5
+ export declare class GameLudeocastTerminationEndedPayload {
6
+ gameResourceId: string;
7
+ gamePoolId: string;
8
+ operationStatus: SiteOperationStatus;
9
+ status: CloudResourceStatus;
10
+ reason?: string;
11
+ }
12
+ export declare class GameLudeocastTerminationEnded extends LudeoEvent {
13
+ static readonly EVENT_NAME = "site-controller.game-ludeocast-termination-ended";
14
+ constructor(payload: GameLudeocastTerminationEndedPayload, context: CloudResourceContext);
15
+ payload: GameLudeocastTerminationEndedPayload;
16
+ context: CloudResourceContext;
17
+ }
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.GameLudeocastTerminationEnded = exports.GameLudeocastTerminationEndedPayload = void 0;
13
+ const infra_1 = require("../../../infra");
14
+ const decorators_1 = require("../../../decorators");
15
+ const class_validator_1 = require("class-validator");
16
+ const contexts_1 = require("../../contexts");
17
+ const site_controller_1 = require("../../types/site-controller");
18
+ const pools_1 = require("../../types/pools");
19
+ class GameLudeocastTerminationEndedPayload {
20
+ }
21
+ exports.GameLudeocastTerminationEndedPayload = GameLudeocastTerminationEndedPayload;
22
+ __decorate([
23
+ (0, class_validator_1.IsUUID)(),
24
+ __metadata("design:type", String)
25
+ ], GameLudeocastTerminationEndedPayload.prototype, "gameResourceId", void 0);
26
+ __decorate([
27
+ (0, class_validator_1.IsUUID)(),
28
+ __metadata("design:type", String)
29
+ ], GameLudeocastTerminationEndedPayload.prototype, "gamePoolId", void 0);
30
+ __decorate([
31
+ (0, class_validator_1.IsEnum)(site_controller_1.SiteOperationStatus),
32
+ __metadata("design:type", String)
33
+ ], GameLudeocastTerminationEndedPayload.prototype, "operationStatus", void 0);
34
+ __decorate([
35
+ (0, class_validator_1.IsEnum)(pools_1.CloudResourceStatus),
36
+ __metadata("design:type", String)
37
+ ], GameLudeocastTerminationEndedPayload.prototype, "status", void 0);
38
+ __decorate([
39
+ (0, class_validator_1.IsOptional)(),
40
+ (0, class_validator_1.IsString)(),
41
+ __metadata("design:type", String)
42
+ ], GameLudeocastTerminationEndedPayload.prototype, "reason", void 0);
43
+ class GameLudeocastTerminationEnded extends infra_1.LudeoEvent {
44
+ constructor(payload, context) {
45
+ super(GameLudeocastTerminationEnded.EVENT_NAME);
46
+ this.payload = payload;
47
+ this.context = context;
48
+ }
49
+ }
50
+ exports.GameLudeocastTerminationEnded = GameLudeocastTerminationEnded;
51
+ GameLudeocastTerminationEnded.EVENT_NAME = 'site-controller.game-ludeocast-termination-ended';
52
+ __decorate([
53
+ (0, decorators_1.ValidateNestedType)(() => GameLudeocastTerminationEndedPayload),
54
+ __metadata("design:type", GameLudeocastTerminationEndedPayload)
55
+ ], GameLudeocastTerminationEnded.prototype, "payload", void 0);
56
+ __decorate([
57
+ (0, decorators_1.ValidateNestedType)(() => contexts_1.CloudResourceContext),
58
+ __metadata("design:type", contexts_1.CloudResourceContext)
59
+ ], GameLudeocastTerminationEnded.prototype, "context", void 0);
60
+ //# sourceMappingURL=game-ludeocast-termination-ended.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"game-ludeocast-termination-ended.js","sourceRoot":"","sources":["../../../../src/v4/events/site-controller/game-ludeocast-termination-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;;4EACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;wEACU;AAGnB;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,5 +1,7 @@
1
1
  export * from './machine-ludeocast-creation-ended';
2
2
  export * from './game-ludeocast-creation-ended';
3
+ export * from './game-ludeocast-termination-ended';
4
+ export * from './machine-ludeocast-termination-ended';
3
5
  export * from './snapshot-ludeocast-creation-ended';
4
6
  export * from './snapshot-ludeocast-termination-ended';
5
7
  export * from './resource-status-update';
@@ -16,6 +16,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./machine-ludeocast-creation-ended"), exports);
18
18
  __exportStar(require("./game-ludeocast-creation-ended"), exports);
19
+ __exportStar(require("./game-ludeocast-termination-ended"), exports);
20
+ __exportStar(require("./machine-ludeocast-termination-ended"), exports);
19
21
  __exportStar(require("./snapshot-ludeocast-creation-ended"), exports);
20
22
  __exportStar(require("./snapshot-ludeocast-termination-ended"), exports);
21
23
  __exportStar(require("./resource-status-update"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/v4/events/site-controller/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AACA,qEAAmD;AACnD,kEAAgD;AAEhD,sEAAoD;AACpD,yEAAuD;AAEvD,2DAAyC;AAGzC,+CAA6B;AAC7B,oDAAkC;AAClC,iDAA+B;AAC/B,2DAAyC;AACzC,uDAAqC;AACrC,qDAAmC;AACnC,wDAAsC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/v4/events/site-controller/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AACA,qEAAmD;AACnD,kEAAgD;AAChD,qEAAmD;AACnD,wEAAsD;AAEtD,sEAAoD;AACpD,yEAAuD;AAEvD,2DAAyC;AAGzC,+CAA6B;AAC7B,oDAAkC;AAClC,iDAA+B;AAC/B,2DAAyC;AACzC,uDAAqC;AACrC,qDAAmC;AACnC,wDAAsC"}
@@ -4,6 +4,7 @@ import { SiteOperationStatus } from '../../types/site-controller';
4
4
  import { CloudResourceStatus } from '../../types/pools';
5
5
  export declare class MachineLudeocastCreationEndedPayload {
6
6
  machineResourceId: string;
7
+ machinePoolId: string;
7
8
  operationStatus: SiteOperationStatus;
8
9
  status: CloudResourceStatus;
9
10
  reason?: string;
@@ -23,6 +23,10 @@ __decorate([
23
23
  (0, class_validator_1.IsUUID)(),
24
24
  __metadata("design:type", String)
25
25
  ], MachineLudeocastCreationEndedPayload.prototype, "machineResourceId", void 0);
26
+ __decorate([
27
+ (0, class_validator_1.IsUUID)(),
28
+ __metadata("design:type", String)
29
+ ], MachineLudeocastCreationEndedPayload.prototype, "machinePoolId", void 0);
26
30
  __decorate([
27
31
  (0, class_validator_1.IsEnum)(site_controller_1.SiteOperationStatus),
28
32
  __metadata("design:type", String)
@@ -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;CAahD;AAbD,oFAaC;AAXC;IADC,IAAA,wBAAM,GAAE;;+EACiB;AAG1B;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,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"}
@@ -0,0 +1,17 @@
1
+ import { LudeoEvent } from '../../../infra';
2
+ import { CloudResourceContext } from '../../contexts';
3
+ import { SiteOperationStatus } from '../../types/site-controller';
4
+ import { CloudResourceStatus } from '../../types/pools';
5
+ export declare class MachineLudeocastTerminationEndedPayload {
6
+ machineResourceId: string;
7
+ machinePoolId: string;
8
+ operationStatus: SiteOperationStatus;
9
+ status: CloudResourceStatus;
10
+ reason?: string;
11
+ }
12
+ export declare class MachineLudeocastTerminationEnded extends LudeoEvent {
13
+ static readonly EVENT_NAME = "site-controller.machine-ludeocast-termination-ended";
14
+ constructor(payload: MachineLudeocastTerminationEndedPayload, context: CloudResourceContext);
15
+ payload: MachineLudeocastTerminationEndedPayload;
16
+ context: CloudResourceContext;
17
+ }
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.MachineLudeocastTerminationEnded = exports.MachineLudeocastTerminationEndedPayload = void 0;
13
+ const infra_1 = require("../../../infra");
14
+ const decorators_1 = require("../../../decorators");
15
+ const class_validator_1 = require("class-validator");
16
+ const contexts_1 = require("../../contexts");
17
+ const site_controller_1 = require("../../types/site-controller");
18
+ const pools_1 = require("../../types/pools");
19
+ class MachineLudeocastTerminationEndedPayload {
20
+ }
21
+ exports.MachineLudeocastTerminationEndedPayload = MachineLudeocastTerminationEndedPayload;
22
+ __decorate([
23
+ (0, class_validator_1.IsUUID)(),
24
+ __metadata("design:type", String)
25
+ ], MachineLudeocastTerminationEndedPayload.prototype, "machineResourceId", void 0);
26
+ __decorate([
27
+ (0, class_validator_1.IsUUID)(),
28
+ __metadata("design:type", String)
29
+ ], MachineLudeocastTerminationEndedPayload.prototype, "machinePoolId", void 0);
30
+ __decorate([
31
+ (0, class_validator_1.IsEnum)(site_controller_1.SiteOperationStatus),
32
+ __metadata("design:type", String)
33
+ ], MachineLudeocastTerminationEndedPayload.prototype, "operationStatus", void 0);
34
+ __decorate([
35
+ (0, class_validator_1.IsEnum)(pools_1.CloudResourceStatus),
36
+ __metadata("design:type", String)
37
+ ], MachineLudeocastTerminationEndedPayload.prototype, "status", void 0);
38
+ __decorate([
39
+ (0, class_validator_1.IsOptional)(),
40
+ (0, class_validator_1.IsString)(),
41
+ __metadata("design:type", String)
42
+ ], MachineLudeocastTerminationEndedPayload.prototype, "reason", void 0);
43
+ class MachineLudeocastTerminationEnded extends infra_1.LudeoEvent {
44
+ constructor(payload, context) {
45
+ super(MachineLudeocastTerminationEnded.EVENT_NAME);
46
+ this.payload = payload;
47
+ this.context = context;
48
+ }
49
+ }
50
+ exports.MachineLudeocastTerminationEnded = MachineLudeocastTerminationEnded;
51
+ MachineLudeocastTerminationEnded.EVENT_NAME = 'site-controller.machine-ludeocast-termination-ended';
52
+ __decorate([
53
+ (0, decorators_1.ValidateNestedType)(() => MachineLudeocastTerminationEndedPayload),
54
+ __metadata("design:type", MachineLudeocastTerminationEndedPayload)
55
+ ], MachineLudeocastTerminationEnded.prototype, "payload", void 0);
56
+ __decorate([
57
+ (0, decorators_1.ValidateNestedType)(() => contexts_1.CloudResourceContext),
58
+ __metadata("design:type", contexts_1.CloudResourceContext)
59
+ ], MachineLudeocastTerminationEnded.prototype, "context", void 0);
60
+ //# sourceMappingURL=machine-ludeocast-termination-ended.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"machine-ludeocast-termination-ended.js","sourceRoot":"","sources":["../../../../src/v4/events/site-controller/machine-ludeocast-termination-ended.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAC5C,oDAAyD;AACzD,qDAAuE;AACvE,6CAAsD;AACtD,iEAAkE;AAClE,6CAAwD;AAExD,MAAa,uCAAuC;CAgBnD;AAhBD,0FAgBC;AAdC;IADC,IAAA,wBAAM,GAAE;;kFACiB;AAG1B;IADC,IAAA,wBAAM,GAAE;;8EACa;AAGtB;IADC,IAAA,wBAAM,EAAC,qCAAmB,CAAC;;gFACS;AAGrC;IADC,IAAA,wBAAM,EAAC,2BAAmB,CAAC;;uEACA;AAI5B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;uEACK;AAGlB,MAAa,gCAAiC,SAAQ,kBAAU;IAG9D,YAAY,OAAgD,EAAE,OAA6B;QACzF,KAAK,CAAC,gCAAgC,CAAC,UAAU,CAAC,CAAC;QACnD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,4EAcC;AAbiB,2CAAU,GAAG,qDAAqD,CAAC;AASnF;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,uCAAuC,CAAC;8BACzD,uCAAuC;iEAAC;AAGjD;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;iEAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ludeo/cloud-common",
3
- "version": "1.2.184-beta-yahil-2",
3
+ "version": "1.2.184-beta-yahil-4",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "author": "Yahil Didi",
@@ -11,6 +11,9 @@ export class CreateLudeocastGameRequestPayload {
11
11
  @IsUUID()
12
12
  gameResourceId: string;
13
13
 
14
+ @IsUUID()
15
+ gamePoolId: string;
16
+
14
17
  gameCreationPayload: GameCreationPayload;
15
18
 
16
19
  @IsString()
@@ -1,8 +1,8 @@
1
1
  import { LudeoEvent } from '../../../infra';
2
2
  import { ValidateNestedType } from '../../../decorators';
3
- import { IsEnum, IsOptional, IsString, IsUUID } from 'class-validator';
4
- import { MachineMode } from '../../types/site-controller';
3
+ import { IsOptional, IsUUID } from 'class-validator';
5
4
  import { CloudResourceContext } from '../../contexts';
5
+ import { LudeoCastV2ProviderSettings } from '../../types';
6
6
 
7
7
  export class AndroidMachineCreationPayload {}
8
8
 
@@ -12,21 +12,15 @@ export class CreateLudeocastMachineRequestPayload {
12
12
  @IsUUID()
13
13
  machineResourceId: string;
14
14
 
15
- @IsEnum(MachineMode)
16
- mode: MachineMode;
15
+ @IsUUID()
16
+ machinePoolId: string;
17
17
 
18
18
  @IsOptional()
19
19
  @ValidateNestedType(() => AndroidMachineCreationPayload)
20
20
  machineCreationPayload?: MachineCreationPayload;
21
21
 
22
- @IsString()
23
- site: string;
24
-
25
- @IsString()
26
- region: string;
27
-
28
- @IsString()
29
- machineType: string;
22
+ @ValidateNestedType(() => LudeoCastV2ProviderSettings)
23
+ providerSettings: LudeoCastV2ProviderSettings;
30
24
  }
31
25
 
32
26
  export class CreateLudeocastMachineRequest extends LudeoEvent {
@@ -1,17 +1,15 @@
1
1
  import { LudeoEvent } from '../../../infra';
2
2
  import { ValidateNestedType } from '../../../decorators';
3
- import { IsString, IsUUID } from 'class-validator';
3
+ import { IsUUID } from 'class-validator';
4
4
  import { CloudResourceContext } from '../../contexts';
5
+ import { LudeoCastV2ProviderSettings } from '../../types';
5
6
 
6
7
  export class TerminateLudeocastMachineRequestPayload {
7
8
  @IsUUID()
8
9
  machineResourceId: string;
9
10
 
10
- @IsString()
11
- site: string;
12
-
13
- @IsString()
14
- region: string;
11
+ @ValidateNestedType(() => LudeoCastV2ProviderSettings)
12
+ providerSettings: LudeoCastV2ProviderSettings;
15
13
  }
16
14
 
17
15
  export class TerminateLudeocastMachineRequest extends LudeoEvent {
@@ -9,6 +9,9 @@ export class GameLudeocastCreationEndedPayload {
9
9
  @IsUUID()
10
10
  gameResourceId: string;
11
11
 
12
+ @IsUUID()
13
+ gamePoolId: string;
14
+
12
15
  @IsEnum(SiteOperationStatus)
13
16
  operationStatus: SiteOperationStatus;
14
17
 
@@ -0,0 +1,41 @@
1
+ import { LudeoEvent } from '../../../infra';
2
+ import { ValidateNestedType } from '../../../decorators';
3
+ import { IsEnum, IsOptional, IsString, IsUUID } from 'class-validator';
4
+ import { CloudResourceContext } from '../../contexts';
5
+ import { SiteOperationStatus } from '../../types/site-controller';
6
+ import { CloudResourceStatus } from '../../types/pools';
7
+
8
+ export class GameLudeocastTerminationEndedPayload {
9
+ @IsUUID()
10
+ gameResourceId: string;
11
+
12
+ @IsUUID()
13
+ gamePoolId: string;
14
+
15
+ @IsEnum(SiteOperationStatus)
16
+ operationStatus: SiteOperationStatus;
17
+
18
+ @IsEnum(CloudResourceStatus)
19
+ status: CloudResourceStatus;
20
+
21
+ @IsOptional()
22
+ @IsString()
23
+ reason?: string;
24
+ }
25
+
26
+ export class GameLudeocastTerminationEnded extends LudeoEvent {
27
+ static readonly EVENT_NAME = 'site-controller.game-ludeocast-termination-ended';
28
+
29
+ constructor(payload: GameLudeocastTerminationEndedPayload, context: CloudResourceContext) {
30
+ super(GameLudeocastTerminationEnded.EVENT_NAME);
31
+ this.payload = payload;
32
+ this.context = context;
33
+ }
34
+
35
+ @ValidateNestedType(() => GameLudeocastTerminationEndedPayload)
36
+ payload: GameLudeocastTerminationEndedPayload;
37
+
38
+ @ValidateNestedType(() => CloudResourceContext)
39
+ context: CloudResourceContext;
40
+ }
41
+
@@ -1,6 +1,8 @@
1
1
 
2
2
  export * from './machine-ludeocast-creation-ended';
3
3
  export * from './game-ludeocast-creation-ended';
4
+ export * from './game-ludeocast-termination-ended';
5
+ export * from './machine-ludeocast-termination-ended';
4
6
 
5
7
  export * from './snapshot-ludeocast-creation-ended';
6
8
  export * from './snapshot-ludeocast-termination-ended';
@@ -9,6 +9,9 @@ export class MachineLudeocastCreationEndedPayload {
9
9
  @IsUUID()
10
10
  machineResourceId: string;
11
11
 
12
+ @IsUUID()
13
+ machinePoolId: string;
14
+
12
15
  @IsEnum(SiteOperationStatus)
13
16
  operationStatus: SiteOperationStatus;
14
17
 
@@ -0,0 +1,41 @@
1
+ import { LudeoEvent } from '../../../infra';
2
+ import { ValidateNestedType } from '../../../decorators';
3
+ import { IsEnum, IsOptional, IsString, IsUUID } from 'class-validator';
4
+ import { CloudResourceContext } from '../../contexts';
5
+ import { SiteOperationStatus } from '../../types/site-controller';
6
+ import { CloudResourceStatus } from '../../types/pools';
7
+
8
+ export class MachineLudeocastTerminationEndedPayload {
9
+ @IsUUID()
10
+ machineResourceId: string;
11
+
12
+ @IsUUID()
13
+ machinePoolId: string;
14
+
15
+ @IsEnum(SiteOperationStatus)
16
+ operationStatus: SiteOperationStatus;
17
+
18
+ @IsEnum(CloudResourceStatus)
19
+ status: CloudResourceStatus;
20
+
21
+ @IsOptional()
22
+ @IsString()
23
+ reason?: string;
24
+ }
25
+
26
+ export class MachineLudeocastTerminationEnded extends LudeoEvent {
27
+ static readonly EVENT_NAME = 'site-controller.machine-ludeocast-termination-ended';
28
+
29
+ constructor(payload: MachineLudeocastTerminationEndedPayload, context: CloudResourceContext) {
30
+ super(MachineLudeocastTerminationEnded.EVENT_NAME);
31
+ this.payload = payload;
32
+ this.context = context;
33
+ }
34
+
35
+ @ValidateNestedType(() => MachineLudeocastTerminationEndedPayload)
36
+ payload: MachineLudeocastTerminationEndedPayload;
37
+
38
+ @ValidateNestedType(() => CloudResourceContext)
39
+ context: CloudResourceContext;
40
+ }
41
+