@ludeo/cloud-common 1.2.184 → 1.2.185

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 (91) hide show
  1. package/dist/tsconfig.tsbuildinfo +1 -1
  2. package/dist/v4/contexts/cloud-resource-context.d.ts +1 -0
  3. package/dist/v4/contexts/cloud-resource-context.js +5 -0
  4. package/dist/v4/contexts/cloud-resource-context.js.map +1 -1
  5. package/dist/v4/events/cloud-resources/create-ludeocast-game-request.d.ts +8 -7
  6. package/dist/v4/events/cloud-resources/create-ludeocast-game-request.js +7 -8
  7. package/dist/v4/events/cloud-resources/create-ludeocast-game-request.js.map +1 -1
  8. package/dist/v4/events/cloud-resources/create-ludeocast-machine-request.d.ts +6 -8
  9. package/dist/v4/events/cloud-resources/create-ludeocast-machine-request.js +4 -17
  10. package/dist/v4/events/cloud-resources/create-ludeocast-machine-request.js.map +1 -1
  11. package/dist/v4/events/cloud-resources/terminate-ludeocast-game-request.d.ts +3 -3
  12. package/dist/v4/events/cloud-resources/terminate-ludeocast-game-request.js +2 -2
  13. package/dist/v4/events/cloud-resources/terminate-ludeocast-game-request.js.map +1 -1
  14. package/dist/v4/events/cloud-resources/terminate-ludeocast-machine-request.d.ts +5 -5
  15. package/dist/v4/events/cloud-resources/terminate-ludeocast-machine-request.js +6 -9
  16. package/dist/v4/events/cloud-resources/terminate-ludeocast-machine-request.js.map +1 -1
  17. package/dist/v4/events/ludeocast-agent/resource-update.d.ts +1 -0
  18. package/dist/v4/events/ludeocast-agent/resource-update.js +3 -2
  19. package/dist/v4/events/ludeocast-agent/resource-update.js.map +1 -1
  20. package/dist/v4/events/site-controller/game-ludeocast-creation-ended.d.ts +11 -8
  21. package/dist/v4/events/site-controller/game-ludeocast-creation-ended.js +25 -16
  22. package/dist/v4/events/site-controller/game-ludeocast-creation-ended.js.map +1 -1
  23. package/dist/v4/events/site-controller/game-ludeocast-termination-ended.d.ts +17 -0
  24. package/dist/v4/events/site-controller/game-ludeocast-termination-ended.js +60 -0
  25. package/dist/v4/events/site-controller/game-ludeocast-termination-ended.js.map +1 -0
  26. package/dist/v4/events/site-controller/index.d.ts +2 -0
  27. package/dist/v4/events/site-controller/index.js +2 -0
  28. package/dist/v4/events/site-controller/index.js.map +1 -1
  29. package/dist/v4/events/site-controller/machine-ludeocast-creation-ended.d.ts +11 -8
  30. package/dist/v4/events/site-controller/machine-ludeocast-creation-ended.js +25 -16
  31. package/dist/v4/events/site-controller/machine-ludeocast-creation-ended.js.map +1 -1
  32. package/dist/v4/events/site-controller/machine-ludeocast-termination-ended.d.ts +17 -0
  33. package/dist/v4/events/site-controller/machine-ludeocast-termination-ended.js +60 -0
  34. package/dist/v4/events/site-controller/machine-ludeocast-termination-ended.js.map +1 -0
  35. package/dist/v4/events/site-controller/start-game.command.d.ts +1 -0
  36. package/dist/v4/events/site-controller/start-game.command.js +4 -0
  37. package/dist/v4/events/site-controller/start-game.command.js.map +1 -1
  38. package/dist/v4/types/cloud/index.d.ts +1 -0
  39. package/dist/v4/types/cloud/index.js +1 -0
  40. package/dist/v4/types/cloud/index.js.map +1 -1
  41. package/dist/v4/types/cloud/ludeocast-v2/allocation-data.d.ts +3 -0
  42. package/dist/v4/types/cloud/ludeocast-v2/allocation-data.js +21 -0
  43. package/dist/v4/types/cloud/ludeocast-v2/allocation-data.js.map +1 -0
  44. package/dist/v4/types/cloud/ludeocast-v2/game-creation-response.d.ts +2 -0
  45. package/dist/v4/types/cloud/ludeocast-v2/game-creation-response.js +7 -0
  46. package/dist/v4/types/cloud/ludeocast-v2/game-creation-response.js.map +1 -0
  47. package/dist/v4/types/cloud/ludeocast-v2/index.d.ts +6 -0
  48. package/dist/v4/types/cloud/ludeocast-v2/index.js +23 -0
  49. package/dist/v4/types/cloud/ludeocast-v2/index.js.map +1 -0
  50. package/dist/v4/types/cloud/ludeocast-v2/machine-provider-settings.d.ts +3 -0
  51. package/dist/v4/types/cloud/ludeocast-v2/machine-provider-settings.js +21 -0
  52. package/dist/v4/types/cloud/ludeocast-v2/machine-provider-settings.js.map +1 -0
  53. package/dist/v4/types/cloud/ludeocast-v2/provider-settings.d.ts +12 -0
  54. package/dist/v4/types/cloud/ludeocast-v2/provider-settings.js +13 -0
  55. package/dist/v4/types/cloud/ludeocast-v2/provider-settings.js.map +1 -0
  56. package/dist/v4/types/cloud/ludeocast-v2/request-data.d.ts +3 -0
  57. package/dist/v4/types/cloud/ludeocast-v2/request-data.js +22 -0
  58. package/dist/v4/types/cloud/ludeocast-v2/request-data.js.map +1 -0
  59. package/dist/v4/types/cloud/ludeocast-v2/resource-provider-settings.d.ts +7 -0
  60. package/dist/v4/types/cloud/ludeocast-v2/resource-provider-settings.js +38 -0
  61. package/dist/v4/types/cloud/ludeocast-v2/resource-provider-settings.js.map +1 -0
  62. package/dist/v4/types/cloud/ludeocast-v2/site.d.ts +0 -0
  63. package/dist/v4/types/cloud/ludeocast-v2/site.js +1 -0
  64. package/dist/v4/types/cloud/ludeocast-v2/site.js.map +1 -0
  65. package/dist/v4/types/cloud/provider.d.ts +1 -0
  66. package/dist/v4/types/cloud/provider.js +1 -0
  67. package/dist/v4/types/cloud/provider.js.map +1 -1
  68. package/package.json +1 -1
  69. package/src/v4/contexts/cloud-resource-context.ts +4 -0
  70. package/src/v4/events/base/base.ts +1 -1
  71. package/src/v4/events/cloud-resources/create-ludeocast-game-request.ts +12 -12
  72. package/src/v4/events/cloud-resources/create-ludeocast-machine-request.ts +9 -16
  73. package/src/v4/events/cloud-resources/terminate-ludeocast-game-request.ts +4 -4
  74. package/src/v4/events/cloud-resources/terminate-ludeocast-machine-request.ts +8 -10
  75. package/src/v4/events/ludeocast-agent/resource-update.ts +2 -1
  76. package/src/v4/events/site-controller/game-ludeocast-creation-ended.ts +18 -11
  77. package/src/v4/events/site-controller/game-ludeocast-termination-ended.ts +41 -0
  78. package/src/v4/events/site-controller/index.ts +2 -0
  79. package/src/v4/events/site-controller/machine-ludeocast-creation-ended.ts +18 -11
  80. package/src/v4/events/site-controller/machine-ludeocast-termination-ended.ts +41 -0
  81. package/src/v4/events/site-controller/start-game.command.ts +4 -1
  82. package/src/v4/types/cloud/index.ts +1 -0
  83. package/src/v4/types/cloud/ludeocast-v2/allocation-data.ts +6 -0
  84. package/src/v4/types/cloud/ludeocast-v2/game-creation-response.ts +1 -0
  85. package/src/v4/types/cloud/ludeocast-v2/index.ts +6 -0
  86. package/src/v4/types/cloud/ludeocast-v2/machine-provider-settings.ts +6 -0
  87. package/src/v4/types/cloud/ludeocast-v2/provider-settings.ts +28 -0
  88. package/src/v4/types/cloud/ludeocast-v2/request-data.ts +7 -0
  89. package/src/v4/types/cloud/ludeocast-v2/resource-provider-settings.ts +21 -0
  90. package/src/v4/types/cloud/ludeocast-v2/site.ts +7 -0
  91. package/src/v4/types/cloud/provider.ts +1 -0
@@ -13,4 +13,5 @@ export declare class CloudResourceContext {
13
13
  platformStatusRequestId?: string;
14
14
  ludeoResourceId?: string;
15
15
  ludeoPoolId?: string;
16
+ gameId?: string;
16
17
  }
@@ -79,4 +79,9 @@ __decorate([
79
79
  (0, class_validator_1.IsUUID)(),
80
80
  __metadata("design:type", String)
81
81
  ], CloudResourceContext.prototype, "ludeoPoolId", void 0);
82
+ __decorate([
83
+ (0, class_validator_1.IsOptional)(),
84
+ (0, class_validator_1.IsUUID)(),
85
+ __metadata("design:type", String)
86
+ ], CloudResourceContext.prototype, "gameId", void 0);
82
87
  //# sourceMappingURL=cloud-resource-context.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"cloud-resource-context.js","sourceRoot":"","sources":["../../../src/v4/contexts/cloud-resource-context.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuE;AACvE,0CAA+C;AAE/C,MAAa,oBAAoB;CAqDhC;AArDD,oDAqDC;AAlDC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;2DACY;AAIvB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;6DACc;AAGzB;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;2DACO;AAK7B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;wDACS;AAKpB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;oDACK;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;wDACW;AAIpB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;4DACe;AAIxB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;2DACc;AAIvB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;+DACkB;AAI3B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;kEACqB;AAI9B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;qEACwB;AAIjC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;6DACgB;AAIzB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;yDACY"}
1
+ {"version":3,"file":"cloud-resource-context.js","sourceRoot":"","sources":["../../../src/v4/contexts/cloud-resource-context.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuE;AACvE,0CAA+C;AAE/C,MAAa,oBAAoB;CAyDhC;AAzDD,oDAyDC;AAtDC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;2DACY;AAIvB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;6DACc;AAGzB;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;2DACO;AAK7B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;wDACS;AAKpB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;oDACK;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;wDACW;AAIpB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;4DACe;AAIxB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;2DACc;AAIvB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;+DACkB;AAI3B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;kEACqB;AAI9B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;qEACwB;AAIjC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;6DACgB;AAIzB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;yDACY;AAIrB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;oDACO"}
@@ -1,17 +1,18 @@
1
1
  import { LudeoEvent } from '../../../infra';
2
2
  import { GameCreationPayload } from '../../types/site-controller';
3
- import { SiteControllerContext } from '../../contexts';
3
+ import { CloudResourceContext } from '../../contexts';
4
+ import { LudeoCastV2ProviderSettings } from '../../types/cloud/ludeocast-v2/provider-settings';
4
5
  export declare class CreateLudeocastGameRequestPayload {
5
6
  machineResourceId: string;
6
7
  gameResourceId: string;
7
- gameCreationPayload: GameCreationPayload;
8
- site: string;
9
- region: string;
10
- buildId?: string;
8
+ gamePoolId: string;
9
+ gameCreationPayload?: GameCreationPayload;
10
+ providerSettings: LudeoCastV2ProviderSettings;
11
+ buildId: string;
11
12
  }
12
13
  export declare class CreateLudeocastGameRequest extends LudeoEvent {
13
14
  static readonly EVENT_NAME = "cloud-resources.create-ludeocast-game-request";
14
- constructor(payload: CreateLudeocastGameRequestPayload, context: SiteControllerContext);
15
+ constructor(payload: CreateLudeocastGameRequestPayload, context: CloudResourceContext);
15
16
  payload: CreateLudeocastGameRequestPayload;
16
- context: SiteControllerContext;
17
+ context: CloudResourceContext;
17
18
  }
@@ -26,15 +26,14 @@ __decorate([
26
26
  __metadata("design:type", String)
27
27
  ], CreateLudeocastGameRequestPayload.prototype, "gameResourceId", void 0);
28
28
  __decorate([
29
- (0, class_validator_1.IsString)(),
30
- __metadata("design:type", String)
31
- ], CreateLudeocastGameRequestPayload.prototype, "site", void 0);
32
- __decorate([
33
- (0, class_validator_1.IsString)(),
29
+ (0, class_validator_1.IsUUID)(),
34
30
  __metadata("design:type", String)
35
- ], CreateLudeocastGameRequestPayload.prototype, "region", void 0);
31
+ ], CreateLudeocastGameRequestPayload.prototype, "gamePoolId", void 0);
36
32
  __decorate([
37
33
  (0, class_validator_1.IsOptional)(),
34
+ __metadata("design:type", Object)
35
+ ], CreateLudeocastGameRequestPayload.prototype, "gameCreationPayload", void 0);
36
+ __decorate([
38
37
  (0, class_validator_1.IsUUID)(),
39
38
  __metadata("design:type", String)
40
39
  ], CreateLudeocastGameRequestPayload.prototype, "buildId", void 0);
@@ -52,7 +51,7 @@ __decorate([
52
51
  __metadata("design:type", CreateLudeocastGameRequestPayload)
53
52
  ], CreateLudeocastGameRequest.prototype, "payload", void 0);
54
53
  __decorate([
55
- (0, decorators_1.ValidateNestedType)(() => contexts_1.SiteControllerContext),
56
- __metadata("design:type", contexts_1.SiteControllerContext)
54
+ (0, decorators_1.ValidateNestedType)(() => contexts_1.CloudResourceContext),
55
+ __metadata("design:type", contexts_1.CloudResourceContext)
57
56
  ], CreateLudeocastGameRequest.prototype, "context", void 0);
58
57
  //# sourceMappingURL=create-ludeocast-game-request.js.map
@@ -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,6CAAuD;AAEvD,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,OAA8B;QACpF,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,gCAAqB,CAAC;8BACvC,gCAAqB;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,qDAAqD;AAErD,6CAAsD;AAGtD,MAAa,iCAAiC;CAiB7C;AAjBD,8EAiBC;AAfC;IADC,IAAA,wBAAM,GAAE;;4EACiB;AAG1B;IADC,IAAA,wBAAM,GAAE;;yEACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;qEACU;AAGnB;IADC,IAAA,4BAAU,GAAE;;8EAC6B;AAK1C;IADC,IAAA,wBAAM,GAAE;;kEACO;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,20 +1,18 @@
1
1
  import { LudeoEvent } from '../../../infra';
2
- import { MachineMode } from '../../types/site-controller';
3
- import { SiteControllerContext } from '../../contexts';
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";
17
- constructor(payload: CreateLudeocastMachineRequestPayload, context: SiteControllerContext);
15
+ constructor(payload: CreateLudeocastMachineRequestPayload, context: CloudResourceContext);
18
16
  payload: CreateLudeocastMachineRequestPayload;
19
- context: SiteControllerContext;
17
+ context: CloudResourceContext;
20
18
  }
@@ -13,7 +13,6 @@ 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");
18
17
  class AndroidMachineCreationPayload {
19
18
  }
@@ -26,26 +25,14 @@ __decorate([
26
25
  __metadata("design:type", String)
27
26
  ], CreateLudeocastMachineRequestPayload.prototype, "machineResourceId", void 0);
28
27
  __decorate([
29
- (0, class_validator_1.IsEnum)(site_controller_1.MachineMode),
28
+ (0, class_validator_1.IsUUID)(),
30
29
  __metadata("design:type", String)
31
- ], CreateLudeocastMachineRequestPayload.prototype, "mode", void 0);
30
+ ], CreateLudeocastMachineRequestPayload.prototype, "machinePoolId", void 0);
32
31
  __decorate([
33
32
  (0, class_validator_1.IsOptional)(),
34
33
  (0, decorators_1.ValidateNestedType)(() => AndroidMachineCreationPayload),
35
34
  __metadata("design:type", Object)
36
35
  ], CreateLudeocastMachineRequestPayload.prototype, "machineCreationPayload", void 0);
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);
49
36
  class CreateLudeocastMachineRequest extends infra_1.LudeoEvent {
50
37
  constructor(payload, context) {
51
38
  super(CreateLudeocastMachineRequest.EVENT_NAME);
@@ -60,7 +47,7 @@ __decorate([
60
47
  __metadata("design:type", CreateLudeocastMachineRequestPayload)
61
48
  ], CreateLudeocastMachineRequest.prototype, "payload", void 0);
62
49
  __decorate([
63
- (0, decorators_1.ValidateNestedType)(() => contexts_1.SiteControllerContext),
64
- __metadata("design:type", contexts_1.SiteControllerContext)
50
+ (0, decorators_1.ValidateNestedType)(() => contexts_1.CloudResourceContext),
51
+ __metadata("design:type", contexts_1.CloudResourceContext)
65
52
  ], CreateLudeocastMachineRequest.prototype, "context", void 0);
66
53
  //# sourceMappingURL=create-ludeocast-machine-request.js.map
@@ -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,6CAAuD;AAEvD,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,OAA8B;QACvF,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,gCAAqB,CAAC;8BACvC,gCAAqB;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;AAGtD,MAAa,6BAA6B;CAAG;AAA7C,sEAA6C;AAI7C,MAAa,oCAAoC;CAYhD;AAZD,oFAYC;AAVC;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;AAKlD,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,5 @@
1
1
  import { LudeoEvent } from '../../../infra';
2
- import { SiteControllerContext } from '../../contexts';
2
+ import { CloudResourceContext } from '../../contexts';
3
3
  export declare class TerminateLudeocastGameRequestPayload {
4
4
  machineResourceId: string;
5
5
  gameResourceId: string;
@@ -8,7 +8,7 @@ export declare class TerminateLudeocastGameRequestPayload {
8
8
  }
9
9
  export declare class TerminateLudeocastGameRequest extends LudeoEvent {
10
10
  static readonly EVENT_NAME = "cloud-resources.terminate-ludeocast-game-request";
11
- constructor(payload: TerminateLudeocastGameRequestPayload, context: SiteControllerContext);
11
+ constructor(payload: TerminateLudeocastGameRequestPayload, context: CloudResourceContext);
12
12
  payload: TerminateLudeocastGameRequestPayload;
13
- context: SiteControllerContext;
13
+ context: CloudResourceContext;
14
14
  }
@@ -47,7 +47,7 @@ __decorate([
47
47
  __metadata("design:type", TerminateLudeocastGameRequestPayload)
48
48
  ], TerminateLudeocastGameRequest.prototype, "payload", void 0);
49
49
  __decorate([
50
- (0, decorators_1.ValidateNestedType)(() => contexts_1.SiteControllerContext),
51
- __metadata("design:type", contexts_1.SiteControllerContext)
50
+ (0, decorators_1.ValidateNestedType)(() => contexts_1.CloudResourceContext),
51
+ __metadata("design:type", contexts_1.CloudResourceContext)
52
52
  ], TerminateLudeocastGameRequest.prototype, "context", void 0);
53
53
  //# sourceMappingURL=terminate-ludeocast-game-request.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"terminate-ludeocast-game-request.js","sourceRoot":"","sources":["../../../../src/v4/events/cloud-resources/terminate-ludeocast-game-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAC5C,oDAAyD;AACzD,qDAAmD;AACnD,6CAAuD;AAEvD,MAAa,oCAAoC;CAYhD;AAZD,oFAYC;AAVC;IADC,IAAA,wBAAM,GAAE;;+EACiB;AAG1B;IADC,IAAA,wBAAM,GAAE;;4EACc;AAGvB;IADC,IAAA,0BAAQ,GAAE;;kEACE;AAGb;IADC,IAAA,0BAAQ,GAAE;;oEACI;AAGjB,MAAa,6BAA8B,SAAQ,kBAAU;IAG3D,YAAY,OAA6C,EAAE,OAA8B;QACvF,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,gCAAqB,CAAC;8BACvC,gCAAqB;8DAAC"}
1
+ {"version":3,"file":"terminate-ludeocast-game-request.js","sourceRoot":"","sources":["../../../../src/v4/events/cloud-resources/terminate-ludeocast-game-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAC5C,oDAAyD;AACzD,qDAAmD;AACnD,6CAAsD;AAEtD,MAAa,oCAAoC;CAYhD;AAZD,oFAYC;AAVC;IADC,IAAA,wBAAM,GAAE;;+EACiB;AAG1B;IADC,IAAA,wBAAM,GAAE;;4EACc;AAGvB;IADC,IAAA,0BAAQ,GAAE;;kEACE;AAGb;IADC,IAAA,0BAAQ,GAAE;;oEACI;AAGjB,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,13 +1,13 @@
1
1
  import { LudeoEvent } from '../../../infra';
2
- import { SiteControllerContext } from '../../contexts';
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";
10
- constructor(payload: TerminateLudeocastMachineRequestPayload, context: SiteControllerContext);
10
+ constructor(payload: TerminateLudeocastMachineRequestPayload, context: CloudResourceContext);
11
11
  payload: TerminateLudeocastMachineRequestPayload;
12
- context: SiteControllerContext;
12
+ context: CloudResourceContext;
13
13
  }
@@ -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);
@@ -43,7 +40,7 @@ __decorate([
43
40
  __metadata("design:type", TerminateLudeocastMachineRequestPayload)
44
41
  ], TerminateLudeocastMachineRequest.prototype, "payload", void 0);
45
42
  __decorate([
46
- (0, decorators_1.ValidateNestedType)(() => contexts_1.SiteControllerContext),
47
- __metadata("design:type", contexts_1.SiteControllerContext)
43
+ (0, decorators_1.ValidateNestedType)(() => contexts_1.CloudResourceContext),
44
+ __metadata("design:type", contexts_1.CloudResourceContext)
48
45
  ], TerminateLudeocastMachineRequest.prototype, "context", void 0);
49
46
  //# sourceMappingURL=terminate-ludeocast-machine-request.js.map
@@ -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,6CAAuD;AAEvD,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,OAA8B;QAC1F,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,gCAAqB,CAAC;8BACvC,gCAAqB;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"}
@@ -14,3 +14,4 @@ export declare class ResourceUpdate extends BaseCommand<ResourceUpdatePayload> {
14
14
  getTopic(): string;
15
15
  }
16
16
  export declare const RESOURCE_UPDATE_SUBSCRIBE_PATTERN = "$share/site-controller-group/agent/resource-update/+";
17
+ export declare const RESOURCE_UPDATE_AGENT_SUBSCRIBE_PATTERN = "agent/resource-update";
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.RESOURCE_UPDATE_SUBSCRIBE_PATTERN = exports.ResourceUpdate = exports.ResourceUpdatePayload = void 0;
12
+ exports.RESOURCE_UPDATE_AGENT_SUBSCRIBE_PATTERN = exports.RESOURCE_UPDATE_SUBSCRIBE_PATTERN = exports.ResourceUpdate = exports.ResourceUpdatePayload = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
14
  const base_1 = require("../base/base");
15
15
  const status_1 = require("../../types/pools/resource/status");
@@ -45,7 +45,7 @@ __decorate([
45
45
  ], ResourceUpdatePayload.prototype, "meta", void 0);
46
46
  class ResourceUpdate extends base_1.BaseCommand {
47
47
  constructor(payload) {
48
- super(payload.machineResourceId, 'resource-update', payload);
48
+ super(payload.machineResourceId, RESOURCE_UPDATE, payload);
49
49
  }
50
50
  getTopic() {
51
51
  return `${constants_1.AGENT_STRING}/${RESOURCE_UPDATE}/${this.payload.machineResourceId}`;
@@ -57,4 +57,5 @@ __decorate([
57
57
  __metadata("design:type", ResourceUpdatePayload)
58
58
  ], ResourceUpdate.prototype, "payload", void 0);
59
59
  exports.RESOURCE_UPDATE_SUBSCRIBE_PATTERN = `$share/site-controller-group/${constants_1.AGENT_STRING}/${RESOURCE_UPDATE}/${constants_1.WILDCARD_MQTT_STRING}`;
60
+ exports.RESOURCE_UPDATE_AGENT_SUBSCRIBE_PATTERN = `${constants_1.AGENT_STRING}/${RESOURCE_UPDATE}`;
60
61
  //# sourceMappingURL=resource-update.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"resource-update.js","sourceRoot":"","sources":["../../../../src/v4/events/ludeocast-agent/resource-update.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuE;AACvE,uCAA+D;AAC/D,8DAAwE;AACxE,uGAAwF;AACxF,iDAAuE;AACvE,sFAAyE;AAGzE,MAAM,eAAe,GAAG,iBAAiB,CAAC;AAE1C,MAAa,qBAAsB,SAAQ,yBAAkB;CAkB5D;AAlBD,sDAkBC;AAfC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;6DACe;AAGxB;IADC,IAAA,wBAAM,EAAC,4BAAmB,CAAC;;qDACA;AAI5B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,qDAAoB,CAAC;;0DACM;AAInC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;qDACK;AAGhB;IADC,IAAA,4BAAU,GAAE;;mDACc;AAG7B,MAAa,cAAe,SAAQ,kBAAkC;IAKpE,YAAY,OAA8B;QACxC,KAAK,CAAC,OAAO,CAAC,iBAAiB,EAAE,iBAAiB,EAAE,OAAO,CAAC,CAAC;IAC/D,CAAC;IAED,QAAQ;QACN,OAAM,GAAG,wBAAY,IAAI,eAAe,IAAI,IAAI,CAAC,OAAO,CAAC,iBAAiB,EAAE,CAAA;IAC9E,CAAC;CACF;AAZD,wCAYC;AATC;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,qBAAqB,CAAC;8BACvC,qBAAqB;+CAAC;AAWpB,QAAA,iCAAiC,GAAG,gCAAgC,wBAAY,IAAI,eAAe,IAAI,gCAAoB,EAAE,CAAC"}
1
+ {"version":3,"file":"resource-update.js","sourceRoot":"","sources":["../../../../src/v4/events/ludeocast-agent/resource-update.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuE;AACvE,uCAA+D;AAC/D,8DAAwE;AACxE,uGAAwF;AACxF,iDAAuE;AACvE,sFAAyE;AAGzE,MAAM,eAAe,GAAG,iBAAiB,CAAC;AAE1C,MAAa,qBAAsB,SAAQ,yBAAkB;CAkB5D;AAlBD,sDAkBC;AAfC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;6DACe;AAGxB;IADC,IAAA,wBAAM,EAAC,4BAAmB,CAAC;;qDACA;AAI5B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,qDAAoB,CAAC;;0DACM;AAInC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;qDACK;AAGhB;IADC,IAAA,4BAAU,GAAE;;mDACc;AAG7B,MAAa,cAAe,SAAQ,kBAAkC;IAKpE,YAAY,OAA8B;QACxC,KAAK,CAAC,OAAO,CAAC,iBAAiB,EAAE,eAAe,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC;IAED,QAAQ;QACN,OAAM,GAAG,wBAAY,IAAI,eAAe,IAAI,IAAI,CAAC,OAAO,CAAC,iBAAiB,EAAE,CAAA;IAC9E,CAAC;CACF;AAZD,wCAYC;AATC;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,qBAAqB,CAAC;8BACvC,qBAAqB;+CAAC;AAWpB,QAAA,iCAAiC,GAAG,gCAAgC,wBAAY,IAAI,eAAe,IAAI,gCAAoB,EAAE,CAAC;AAE9H,QAAA,uCAAuC,GAAG,GAAG,wBAAY,IAAI,eAAe,EAAE,CAAC"}
@@ -1,14 +1,17 @@
1
1
  import { LudeoEvent } from '../../../infra';
2
- import { SiteControllerContext } from '../../contexts';
2
+ import { CloudResourceContext } from '../../contexts';
3
3
  import { SiteOperationStatus } from '../../types/site-controller';
4
- export declare class GameCreationEndedPayload {
4
+ import { CloudResourceStatus } from '../../types/pools';
5
+ export declare class GameLudeocastCreationEndedPayload {
5
6
  gameResourceId: string;
6
- status: SiteOperationStatus;
7
+ gamePoolId: string;
8
+ operationStatus: SiteOperationStatus;
9
+ status: CloudResourceStatus;
7
10
  reason?: string;
8
11
  }
9
- export declare class GameCreationEnded extends LudeoEvent {
10
- static readonly EVENT_NAME = "site-controller.game-creation-ended";
11
- constructor(payload: GameCreationEndedPayload, context: SiteControllerContext);
12
- payload: GameCreationEndedPayload;
13
- context: SiteControllerContext;
12
+ export declare class GameLudeocastCreationEnded extends LudeoEvent {
13
+ static readonly EVENT_NAME = "site-controller.game-ludeocast-creation-ended";
14
+ constructor(payload: GameLudeocastCreationEndedPayload, context: CloudResourceContext);
15
+ payload: GameLudeocastCreationEndedPayload;
16
+ context: CloudResourceContext;
14
17
  }
@@ -9,43 +9,52 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.GameCreationEnded = exports.GameCreationEndedPayload = void 0;
12
+ exports.GameLudeocastCreationEnded = exports.GameLudeocastCreationEndedPayload = void 0;
13
13
  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
17
  const site_controller_1 = require("../../types/site-controller");
18
- class GameCreationEndedPayload {
18
+ const pools_1 = require("../../types/pools");
19
+ class GameLudeocastCreationEndedPayload {
19
20
  }
20
- exports.GameCreationEndedPayload = GameCreationEndedPayload;
21
+ exports.GameLudeocastCreationEndedPayload = GameLudeocastCreationEndedPayload;
21
22
  __decorate([
22
23
  (0, class_validator_1.IsUUID)(),
23
24
  __metadata("design:type", String)
24
- ], GameCreationEndedPayload.prototype, "gameResourceId", void 0);
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);
25
30
  __decorate([
26
31
  (0, class_validator_1.IsEnum)(site_controller_1.SiteOperationStatus),
27
32
  __metadata("design:type", String)
28
- ], GameCreationEndedPayload.prototype, "status", void 0);
33
+ ], GameLudeocastCreationEndedPayload.prototype, "operationStatus", void 0);
34
+ __decorate([
35
+ (0, class_validator_1.IsEnum)(pools_1.CloudResourceStatus),
36
+ __metadata("design:type", String)
37
+ ], GameLudeocastCreationEndedPayload.prototype, "status", void 0);
29
38
  __decorate([
30
39
  (0, class_validator_1.IsOptional)(),
31
40
  (0, class_validator_1.IsString)(),
32
41
  __metadata("design:type", String)
33
- ], GameCreationEndedPayload.prototype, "reason", void 0);
34
- class GameCreationEnded extends infra_1.LudeoEvent {
42
+ ], GameLudeocastCreationEndedPayload.prototype, "reason", void 0);
43
+ class GameLudeocastCreationEnded extends infra_1.LudeoEvent {
35
44
  constructor(payload, context) {
36
- super(GameCreationEnded.EVENT_NAME);
45
+ super(GameLudeocastCreationEnded.EVENT_NAME);
37
46
  this.payload = payload;
38
47
  this.context = context;
39
48
  }
40
49
  }
41
- exports.GameCreationEnded = GameCreationEnded;
42
- GameCreationEnded.EVENT_NAME = 'site-controller.game-creation-ended';
50
+ exports.GameLudeocastCreationEnded = GameLudeocastCreationEnded;
51
+ GameLudeocastCreationEnded.EVENT_NAME = 'site-controller.game-ludeocast-creation-ended';
43
52
  __decorate([
44
- (0, decorators_1.ValidateNestedType)(() => GameCreationEndedPayload),
45
- __metadata("design:type", GameCreationEndedPayload)
46
- ], GameCreationEnded.prototype, "payload", void 0);
53
+ (0, decorators_1.ValidateNestedType)(() => GameLudeocastCreationEndedPayload),
54
+ __metadata("design:type", GameLudeocastCreationEndedPayload)
55
+ ], GameLudeocastCreationEnded.prototype, "payload", void 0);
47
56
  __decorate([
48
- (0, decorators_1.ValidateNestedType)(() => contexts_1.SiteControllerContext),
49
- __metadata("design:type", contexts_1.SiteControllerContext)
50
- ], GameCreationEnded.prototype, "context", void 0);
57
+ (0, decorators_1.ValidateNestedType)(() => contexts_1.CloudResourceContext),
58
+ __metadata("design:type", contexts_1.CloudResourceContext)
59
+ ], GameLudeocastCreationEnded.prototype, "context", void 0);
51
60
  //# sourceMappingURL=game-ludeocast-creation-ended.js.map
@@ -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,6CAAuD;AACvD,iEAAkE;AAElE,MAAa,wBAAwB;CAUpC;AAVD,4DAUC;AARC;IADC,IAAA,wBAAM,GAAE;;gEACc;AAGvB;IADC,IAAA,wBAAM,EAAC,qCAAmB,CAAC;;wDACA;AAI5B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;wDACK;AAGlB,MAAa,iBAAkB,SAAQ,kBAAU;IAG/C,YAAY,OAAiC,EAAE,OAA8B;QAC3E,KAAK,CAAC,iBAAiB,CAAC,UAAU,CAAC,CAAC;QACpC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,8CAcC;AAbiB,4BAAU,GAAG,qCAAqC,CAAC;AASnE;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,wBAAwB,CAAC;8BAC1C,wBAAwB;kDAAC;AAGlC;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,gCAAqB,CAAC;8BACvC,gCAAqB;kDAAC"}
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"}
@@ -1,14 +1,17 @@
1
1
  import { LudeoEvent } from '../../../infra';
2
- import { SiteControllerContext } from '../../contexts';
2
+ import { CloudResourceContext } from '../../contexts';
3
3
  import { SiteOperationStatus } from '../../types/site-controller';
4
- export declare class MachineCreationEndedPayload {
4
+ import { CloudResourceStatus } from '../../types/pools';
5
+ export declare class MachineLudeocastCreationEndedPayload {
5
6
  machineResourceId: string;
6
- status: SiteOperationStatus;
7
+ machinePoolId: string;
8
+ operationStatus: SiteOperationStatus;
9
+ status: CloudResourceStatus;
7
10
  reason?: string;
8
11
  }
9
- export declare class MachineCreationEnded extends LudeoEvent {
10
- static readonly EVENT_NAME = "site-controller.machine-creation-ended";
11
- constructor(payload: MachineCreationEndedPayload, context: SiteControllerContext);
12
- payload: MachineCreationEndedPayload;
13
- context: SiteControllerContext;
12
+ export declare class MachineLudeocastCreationEnded extends LudeoEvent {
13
+ static readonly EVENT_NAME = "site-controller.machine-ludeocast-creation-ended";
14
+ constructor(payload: MachineLudeocastCreationEndedPayload, context: CloudResourceContext);
15
+ payload: MachineLudeocastCreationEndedPayload;
16
+ context: CloudResourceContext;
14
17
  }