@ludeo/cloud-common 1.2.184-beta-yahil-8 → 1.2.184

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 (87) hide show
  1. package/dist/tsconfig.tsbuildinfo +1 -1
  2. package/dist/v4/contexts/cloud-resource-context.d.ts +0 -1
  3. package/dist/v4/contexts/cloud-resource-context.js +0 -5
  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 +7 -8
  6. package/dist/v4/events/cloud-resources/create-ludeocast-game-request.js +8 -12
  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 +8 -6
  9. package/dist/v4/events/cloud-resources/create-ludeocast-machine-request.js +16 -8
  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 +9 -6
  16. package/dist/v4/events/cloud-resources/terminate-ludeocast-machine-request.js.map +1 -1
  17. package/dist/v4/events/site-controller/game-ludeocast-creation-ended.d.ts +8 -11
  18. package/dist/v4/events/site-controller/game-ludeocast-creation-ended.js +16 -25
  19. package/dist/v4/events/site-controller/game-ludeocast-creation-ended.js.map +1 -1
  20. package/dist/v4/events/site-controller/index.d.ts +0 -2
  21. package/dist/v4/events/site-controller/index.js +0 -2
  22. package/dist/v4/events/site-controller/index.js.map +1 -1
  23. package/dist/v4/events/site-controller/machine-ludeocast-creation-ended.d.ts +8 -11
  24. package/dist/v4/events/site-controller/machine-ludeocast-creation-ended.js +16 -25
  25. package/dist/v4/events/site-controller/machine-ludeocast-creation-ended.js.map +1 -1
  26. package/dist/v4/events/site-controller/start-game.command.d.ts +0 -1
  27. package/dist/v4/events/site-controller/start-game.command.js +0 -4
  28. package/dist/v4/events/site-controller/start-game.command.js.map +1 -1
  29. package/dist/v4/types/cloud/index.d.ts +0 -1
  30. package/dist/v4/types/cloud/index.js +0 -1
  31. package/dist/v4/types/cloud/index.js.map +1 -1
  32. package/dist/v4/types/cloud/provider.d.ts +0 -1
  33. package/dist/v4/types/cloud/provider.js +0 -1
  34. package/dist/v4/types/cloud/provider.js.map +1 -1
  35. package/package.json +1 -1
  36. package/src/v4/contexts/cloud-resource-context.ts +0 -4
  37. package/src/v4/events/base/base.ts +1 -1
  38. package/src/v4/events/cloud-resources/create-ludeocast-game-request.ts +11 -12
  39. package/src/v4/events/cloud-resources/create-ludeocast-machine-request.ts +16 -10
  40. package/src/v4/events/cloud-resources/terminate-ludeocast-game-request.ts +4 -4
  41. package/src/v4/events/cloud-resources/terminate-ludeocast-machine-request.ts +10 -8
  42. package/src/v4/events/site-controller/game-ludeocast-creation-ended.ts +11 -18
  43. package/src/v4/events/site-controller/index.ts +0 -2
  44. package/src/v4/events/site-controller/machine-ludeocast-creation-ended.ts +11 -18
  45. package/src/v4/events/site-controller/start-game.command.ts +1 -4
  46. package/src/v4/types/cloud/index.ts +0 -1
  47. package/src/v4/types/cloud/provider.ts +0 -1
  48. package/dist/v4/events/site-controller/game-ludeocast-termination-ended.d.ts +0 -17
  49. package/dist/v4/events/site-controller/game-ludeocast-termination-ended.js +0 -60
  50. package/dist/v4/events/site-controller/game-ludeocast-termination-ended.js.map +0 -1
  51. package/dist/v4/events/site-controller/machine-ludeocast-termination-ended.d.ts +0 -17
  52. package/dist/v4/events/site-controller/machine-ludeocast-termination-ended.js +0 -60
  53. package/dist/v4/events/site-controller/machine-ludeocast-termination-ended.js.map +0 -1
  54. package/dist/v4/types/cloud/ludeocast-v2/allocation-data.d.ts +0 -3
  55. package/dist/v4/types/cloud/ludeocast-v2/allocation-data.js +0 -21
  56. package/dist/v4/types/cloud/ludeocast-v2/allocation-data.js.map +0 -1
  57. package/dist/v4/types/cloud/ludeocast-v2/game-creation-response.d.ts +0 -2
  58. package/dist/v4/types/cloud/ludeocast-v2/game-creation-response.js +0 -7
  59. package/dist/v4/types/cloud/ludeocast-v2/game-creation-response.js.map +0 -1
  60. package/dist/v4/types/cloud/ludeocast-v2/index.d.ts +0 -6
  61. package/dist/v4/types/cloud/ludeocast-v2/index.js +0 -23
  62. package/dist/v4/types/cloud/ludeocast-v2/index.js.map +0 -1
  63. package/dist/v4/types/cloud/ludeocast-v2/machine-provider-settings.d.ts +0 -3
  64. package/dist/v4/types/cloud/ludeocast-v2/machine-provider-settings.js +0 -21
  65. package/dist/v4/types/cloud/ludeocast-v2/machine-provider-settings.js.map +0 -1
  66. package/dist/v4/types/cloud/ludeocast-v2/provider-settings.d.ts +0 -13
  67. package/dist/v4/types/cloud/ludeocast-v2/provider-settings.js +0 -13
  68. package/dist/v4/types/cloud/ludeocast-v2/provider-settings.js.map +0 -1
  69. package/dist/v4/types/cloud/ludeocast-v2/request-data.d.ts +0 -3
  70. package/dist/v4/types/cloud/ludeocast-v2/request-data.js +0 -22
  71. package/dist/v4/types/cloud/ludeocast-v2/request-data.js.map +0 -1
  72. package/dist/v4/types/cloud/ludeocast-v2/resource-provider-settings.d.ts +0 -7
  73. package/dist/v4/types/cloud/ludeocast-v2/resource-provider-settings.js +0 -34
  74. package/dist/v4/types/cloud/ludeocast-v2/resource-provider-settings.js.map +0 -1
  75. package/dist/v4/types/cloud/ludeocast-v2/site.d.ts +0 -0
  76. package/dist/v4/types/cloud/ludeocast-v2/site.js +0 -1
  77. package/dist/v4/types/cloud/ludeocast-v2/site.js.map +0 -1
  78. package/src/v4/events/site-controller/game-ludeocast-termination-ended.ts +0 -41
  79. package/src/v4/events/site-controller/machine-ludeocast-termination-ended.ts +0 -41
  80. package/src/v4/types/cloud/ludeocast-v2/allocation-data.ts +0 -6
  81. package/src/v4/types/cloud/ludeocast-v2/game-creation-response.ts +0 -1
  82. package/src/v4/types/cloud/ludeocast-v2/index.ts +0 -6
  83. package/src/v4/types/cloud/ludeocast-v2/machine-provider-settings.ts +0 -6
  84. package/src/v4/types/cloud/ludeocast-v2/provider-settings.ts +0 -29
  85. package/src/v4/types/cloud/ludeocast-v2/request-data.ts +0 -7
  86. package/src/v4/types/cloud/ludeocast-v2/resource-provider-settings.ts +0 -18
  87. package/src/v4/types/cloud/ludeocast-v2/site.ts +0 -7
@@ -13,5 +13,4 @@ export declare class CloudResourceContext {
13
13
  platformStatusRequestId?: string;
14
14
  ludeoResourceId?: string;
15
15
  ludeoPoolId?: string;
16
- gameId?: string;
17
16
  }
@@ -79,9 +79,4 @@ __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);
87
82
  //# 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;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
+ {"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,18 +1,17 @@
1
1
  import { LudeoEvent } from '../../../infra';
2
2
  import { GameCreationPayload } from '../../types/site-controller';
3
- import { CloudResourceContext } from '../../contexts';
4
- import { LudeoCastV2ProviderSettings } from '../../types/cloud/ludeocast-v2/provider-settings';
3
+ import { SiteControllerContext } from '../../contexts';
5
4
  export declare class CreateLudeocastGameRequestPayload {
6
5
  machineResourceId: string;
7
6
  gameResourceId: string;
8
- gamePoolId: string;
9
- gameCreationPayload?: GameCreationPayload;
10
- providerSettings: LudeoCastV2ProviderSettings;
11
- buildId: string;
7
+ gameCreationPayload: GameCreationPayload;
8
+ site: string;
9
+ region: string;
10
+ buildId?: string;
12
11
  }
13
12
  export declare class CreateLudeocastGameRequest extends LudeoEvent {
14
13
  static readonly EVENT_NAME = "cloud-resources.create-ludeocast-game-request";
15
- constructor(payload: CreateLudeocastGameRequestPayload, context: CloudResourceContext);
14
+ constructor(payload: CreateLudeocastGameRequestPayload, context: SiteControllerContext);
16
15
  payload: CreateLudeocastGameRequestPayload;
17
- context: CloudResourceContext;
16
+ context: SiteControllerContext;
18
17
  }
@@ -14,7 +14,6 @@ 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 provider_settings_1 = require("../../types/cloud/ludeocast-v2/provider-settings");
18
17
  class CreateLudeocastGameRequestPayload {
19
18
  }
20
19
  exports.CreateLudeocastGameRequestPayload = CreateLudeocastGameRequestPayload;
@@ -27,18 +26,15 @@ __decorate([
27
26
  __metadata("design:type", String)
28
27
  ], CreateLudeocastGameRequestPayload.prototype, "gameResourceId", void 0);
29
28
  __decorate([
30
- (0, class_validator_1.IsUUID)(),
29
+ (0, class_validator_1.IsString)(),
31
30
  __metadata("design:type", String)
32
- ], CreateLudeocastGameRequestPayload.prototype, "gamePoolId", void 0);
33
- __decorate([
34
- (0, class_validator_1.IsOptional)(),
35
- __metadata("design:type", Object)
36
- ], CreateLudeocastGameRequestPayload.prototype, "gameCreationPayload", void 0);
31
+ ], CreateLudeocastGameRequestPayload.prototype, "site", void 0);
37
32
  __decorate([
38
- (0, decorators_1.ValidateNestedType)(() => provider_settings_1.LudeoCastV2ProviderSettings),
39
- __metadata("design:type", provider_settings_1.LudeoCastV2ProviderSettings)
40
- ], CreateLudeocastGameRequestPayload.prototype, "providerSettings", void 0);
33
+ (0, class_validator_1.IsString)(),
34
+ __metadata("design:type", String)
35
+ ], CreateLudeocastGameRequestPayload.prototype, "region", void 0);
41
36
  __decorate([
37
+ (0, class_validator_1.IsOptional)(),
42
38
  (0, class_validator_1.IsUUID)(),
43
39
  __metadata("design:type", String)
44
40
  ], CreateLudeocastGameRequestPayload.prototype, "buildId", void 0);
@@ -56,7 +52,7 @@ __decorate([
56
52
  __metadata("design:type", CreateLudeocastGameRequestPayload)
57
53
  ], CreateLudeocastGameRequest.prototype, "payload", void 0);
58
54
  __decorate([
59
- (0, decorators_1.ValidateNestedType)(() => contexts_1.CloudResourceContext),
60
- __metadata("design:type", contexts_1.CloudResourceContext)
55
+ (0, decorators_1.ValidateNestedType)(() => contexts_1.SiteControllerContext),
56
+ __metadata("design:type", contexts_1.SiteControllerContext)
61
57
  ], CreateLudeocastGameRequest.prototype, "context", void 0);
62
58
  //# 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,6CAAsD;AACtD,wFAA+F;AAE/F,MAAa,iCAAiC;CAkB7C;AAlBD,8EAkBC;AAhBC;IADC,IAAA,wBAAM,GAAE;;4EACiB;AAG1B;IADC,IAAA,wBAAM,GAAE;;yEACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;qEACU;AAGnB;IADC,IAAA,4BAAU,GAAE;;8EAC6B;AAG1C;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,+CAA2B,CAAC;8BACpC,+CAA2B;2EAAC;AAG9C;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
+ {"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,18 +1,20 @@
1
1
  import { LudeoEvent } from '../../../infra';
2
- import { CloudResourceContext } from '../../contexts';
3
- import { LudeoCastV2ProviderSettings } from '../../types';
2
+ import { MachineMode } from '../../types/site-controller';
3
+ import { SiteControllerContext } from '../../contexts';
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
- machinePoolId: string;
9
+ mode: MachineMode;
10
10
  machineCreationPayload?: MachineCreationPayload;
11
- providerSettings: LudeoCastV2ProviderSettings;
11
+ site: string;
12
+ region: string;
13
+ machineType: string;
12
14
  }
13
15
  export declare class CreateLudeocastMachineRequest extends LudeoEvent {
14
16
  static readonly EVENT_NAME = "cloud-resources.create-ludeocast-machine-request";
15
- constructor(payload: CreateLudeocastMachineRequestPayload, context: CloudResourceContext);
17
+ constructor(payload: CreateLudeocastMachineRequestPayload, context: SiteControllerContext);
16
18
  payload: CreateLudeocastMachineRequestPayload;
17
- context: CloudResourceContext;
19
+ context: SiteControllerContext;
18
20
  }
@@ -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");
16
17
  const contexts_1 = require("../../contexts");
17
- const types_1 = require("../../types");
18
18
  class AndroidMachineCreationPayload {
19
19
  }
20
20
  exports.AndroidMachineCreationPayload = AndroidMachineCreationPayload;
@@ -26,18 +26,26 @@ __decorate([
26
26
  __metadata("design:type", String)
27
27
  ], CreateLudeocastMachineRequestPayload.prototype, "machineResourceId", void 0);
28
28
  __decorate([
29
- (0, class_validator_1.IsUUID)(),
29
+ (0, class_validator_1.IsEnum)(site_controller_1.MachineMode),
30
30
  __metadata("design:type", String)
31
- ], CreateLudeocastMachineRequestPayload.prototype, "machinePoolId", void 0);
31
+ ], CreateLudeocastMachineRequestPayload.prototype, "mode", 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, decorators_1.ValidateNestedType)(() => types_1.LudeoCastV2ProviderSettings),
39
- __metadata("design:type", types_1.LudeoCastV2ProviderSettings)
40
- ], CreateLudeocastMachineRequestPayload.prototype, "providerSettings", void 0);
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);
41
49
  class CreateLudeocastMachineRequest extends infra_1.LudeoEvent {
42
50
  constructor(payload, context) {
43
51
  super(CreateLudeocastMachineRequest.EVENT_NAME);
@@ -52,7 +60,7 @@ __decorate([
52
60
  __metadata("design:type", CreateLudeocastMachineRequestPayload)
53
61
  ], CreateLudeocastMachineRequest.prototype, "payload", void 0);
54
62
  __decorate([
55
- (0, decorators_1.ValidateNestedType)(() => contexts_1.CloudResourceContext),
56
- __metadata("design:type", contexts_1.CloudResourceContext)
63
+ (0, decorators_1.ValidateNestedType)(() => contexts_1.SiteControllerContext),
64
+ __metadata("design:type", contexts_1.SiteControllerContext)
57
65
  ], CreateLudeocastMachineRequest.prototype, "context", void 0);
58
66
  //# 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,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
+ {"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,5 +1,5 @@
1
1
  import { LudeoEvent } from '../../../infra';
2
- import { CloudResourceContext } from '../../contexts';
2
+ import { SiteControllerContext } 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: CloudResourceContext);
11
+ constructor(payload: TerminateLudeocastGameRequestPayload, context: SiteControllerContext);
12
12
  payload: TerminateLudeocastGameRequestPayload;
13
- context: CloudResourceContext;
13
+ context: SiteControllerContext;
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.CloudResourceContext),
51
- __metadata("design:type", contexts_1.CloudResourceContext)
50
+ (0, decorators_1.ValidateNestedType)(() => contexts_1.SiteControllerContext),
51
+ __metadata("design:type", contexts_1.SiteControllerContext)
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,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
+ {"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,13 +1,13 @@
1
1
  import { LudeoEvent } from '../../../infra';
2
- import { CloudResourceContext } from '../../contexts';
3
- import { LudeoCastV2ProviderSettings } from '../../types';
2
+ import { SiteControllerContext } from '../../contexts';
4
3
  export declare class TerminateLudeocastMachineRequestPayload {
5
4
  machineResourceId: string;
6
- providerSettings: LudeoCastV2ProviderSettings;
5
+ site: string;
6
+ region: string;
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: CloudResourceContext);
10
+ constructor(payload: TerminateLudeocastMachineRequestPayload, context: SiteControllerContext);
11
11
  payload: TerminateLudeocastMachineRequestPayload;
12
- context: CloudResourceContext;
12
+ context: SiteControllerContext;
13
13
  }
@@ -14,7 +14,6 @@ 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");
18
17
  class TerminateLudeocastMachineRequestPayload {
19
18
  }
20
19
  exports.TerminateLudeocastMachineRequestPayload = TerminateLudeocastMachineRequestPayload;
@@ -23,9 +22,13 @@ __decorate([
23
22
  __metadata("design:type", String)
24
23
  ], TerminateLudeocastMachineRequestPayload.prototype, "machineResourceId", void 0);
25
24
  __decorate([
26
- (0, decorators_1.ValidateNestedType)(() => types_1.LudeoCastV2ProviderSettings),
27
- __metadata("design:type", types_1.LudeoCastV2ProviderSettings)
28
- ], TerminateLudeocastMachineRequestPayload.prototype, "providerSettings", void 0);
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);
29
32
  class TerminateLudeocastMachineRequest extends infra_1.LudeoEvent {
30
33
  constructor(payload, context) {
31
34
  super(TerminateLudeocastMachineRequest.EVENT_NAME);
@@ -40,7 +43,7 @@ __decorate([
40
43
  __metadata("design:type", TerminateLudeocastMachineRequestPayload)
41
44
  ], TerminateLudeocastMachineRequest.prototype, "payload", void 0);
42
45
  __decorate([
43
- (0, decorators_1.ValidateNestedType)(() => contexts_1.CloudResourceContext),
44
- __metadata("design:type", contexts_1.CloudResourceContext)
46
+ (0, decorators_1.ValidateNestedType)(() => contexts_1.SiteControllerContext),
47
+ __metadata("design:type", contexts_1.SiteControllerContext)
45
48
  ], TerminateLudeocastMachineRequest.prototype, "context", void 0);
46
49
  //# 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,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"}
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,17 +1,14 @@
1
1
  import { LudeoEvent } from '../../../infra';
2
- import { CloudResourceContext } from '../../contexts';
2
+ import { SiteControllerContext } from '../../contexts';
3
3
  import { SiteOperationStatus } from '../../types/site-controller';
4
- import { CloudResourceStatus } from '../../types/pools';
5
- export declare class GameLudeocastCreationEndedPayload {
4
+ export declare class GameCreationEndedPayload {
6
5
  gameResourceId: string;
7
- gamePoolId: string;
8
- operationStatus: SiteOperationStatus;
9
- status: CloudResourceStatus;
6
+ status: SiteOperationStatus;
10
7
  reason?: string;
11
8
  }
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;
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;
17
14
  }
@@ -9,52 +9,43 @@ 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.GameLudeocastCreationEnded = exports.GameLudeocastCreationEndedPayload = void 0;
12
+ exports.GameCreationEnded = exports.GameCreationEndedPayload = 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
- const pools_1 = require("../../types/pools");
19
- class GameLudeocastCreationEndedPayload {
18
+ class GameCreationEndedPayload {
20
19
  }
21
- exports.GameLudeocastCreationEndedPayload = GameLudeocastCreationEndedPayload;
20
+ exports.GameCreationEndedPayload = GameCreationEndedPayload;
22
21
  __decorate([
23
22
  (0, class_validator_1.IsUUID)(),
24
23
  __metadata("design:type", String)
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);
24
+ ], GameCreationEndedPayload.prototype, "gameResourceId", void 0);
30
25
  __decorate([
31
26
  (0, class_validator_1.IsEnum)(site_controller_1.SiteOperationStatus),
32
27
  __metadata("design:type", String)
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);
28
+ ], GameCreationEndedPayload.prototype, "status", void 0);
38
29
  __decorate([
39
30
  (0, class_validator_1.IsOptional)(),
40
31
  (0, class_validator_1.IsString)(),
41
32
  __metadata("design:type", String)
42
- ], GameLudeocastCreationEndedPayload.prototype, "reason", void 0);
43
- class GameLudeocastCreationEnded extends infra_1.LudeoEvent {
33
+ ], GameCreationEndedPayload.prototype, "reason", void 0);
34
+ class GameCreationEnded extends infra_1.LudeoEvent {
44
35
  constructor(payload, context) {
45
- super(GameLudeocastCreationEnded.EVENT_NAME);
36
+ super(GameCreationEnded.EVENT_NAME);
46
37
  this.payload = payload;
47
38
  this.context = context;
48
39
  }
49
40
  }
50
- exports.GameLudeocastCreationEnded = GameLudeocastCreationEnded;
51
- GameLudeocastCreationEnded.EVENT_NAME = 'site-controller.game-ludeocast-creation-ended';
41
+ exports.GameCreationEnded = GameCreationEnded;
42
+ GameCreationEnded.EVENT_NAME = 'site-controller.game-creation-ended';
52
43
  __decorate([
53
- (0, decorators_1.ValidateNestedType)(() => GameLudeocastCreationEndedPayload),
54
- __metadata("design:type", GameLudeocastCreationEndedPayload)
55
- ], GameLudeocastCreationEnded.prototype, "payload", void 0);
44
+ (0, decorators_1.ValidateNestedType)(() => GameCreationEndedPayload),
45
+ __metadata("design:type", GameCreationEndedPayload)
46
+ ], GameCreationEnded.prototype, "payload", void 0);
56
47
  __decorate([
57
- (0, decorators_1.ValidateNestedType)(() => contexts_1.CloudResourceContext),
58
- __metadata("design:type", contexts_1.CloudResourceContext)
59
- ], GameLudeocastCreationEnded.prototype, "context", void 0);
48
+ (0, decorators_1.ValidateNestedType)(() => contexts_1.SiteControllerContext),
49
+ __metadata("design:type", contexts_1.SiteControllerContext)
50
+ ], GameCreationEnded.prototype, "context", void 0);
60
51
  //# 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,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"}
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,7 +1,5 @@
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';
5
3
  export * from './snapshot-ludeocast-creation-ended';
6
4
  export * from './snapshot-ludeocast-termination-ended';
7
5
  export * from './resource-status-update';
@@ -16,8 +16,6 @@ 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);
21
19
  __exportStar(require("./snapshot-ludeocast-creation-ended"), exports);
22
20
  __exportStar(require("./snapshot-ludeocast-termination-ended"), exports);
23
21
  __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;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
+ {"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,17 +1,14 @@
1
1
  import { LudeoEvent } from '../../../infra';
2
- import { CloudResourceContext } from '../../contexts';
2
+ import { SiteControllerContext } from '../../contexts';
3
3
  import { SiteOperationStatus } from '../../types/site-controller';
4
- import { CloudResourceStatus } from '../../types/pools';
5
- export declare class MachineLudeocastCreationEndedPayload {
4
+ export declare class MachineCreationEndedPayload {
6
5
  machineResourceId: string;
7
- machinePoolId: string;
8
- operationStatus: SiteOperationStatus;
9
- status: CloudResourceStatus;
6
+ status: SiteOperationStatus;
10
7
  reason?: string;
11
8
  }
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;
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;
17
14
  }
@@ -9,52 +9,43 @@ 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.MachineLudeocastCreationEnded = exports.MachineLudeocastCreationEndedPayload = void 0;
12
+ exports.MachineCreationEnded = exports.MachineCreationEndedPayload = 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
- const pools_1 = require("../../types/pools");
19
- class MachineLudeocastCreationEndedPayload {
18
+ class MachineCreationEndedPayload {
20
19
  }
21
- exports.MachineLudeocastCreationEndedPayload = MachineLudeocastCreationEndedPayload;
20
+ exports.MachineCreationEndedPayload = MachineCreationEndedPayload;
22
21
  __decorate([
23
22
  (0, class_validator_1.IsUUID)(),
24
23
  __metadata("design:type", String)
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);
24
+ ], MachineCreationEndedPayload.prototype, "machineResourceId", void 0);
30
25
  __decorate([
31
26
  (0, class_validator_1.IsEnum)(site_controller_1.SiteOperationStatus),
32
27
  __metadata("design:type", String)
33
- ], MachineLudeocastCreationEndedPayload.prototype, "operationStatus", void 0);
34
- __decorate([
35
- (0, class_validator_1.IsEnum)(pools_1.CloudResourceStatus),
36
- __metadata("design:type", String)
37
- ], MachineLudeocastCreationEndedPayload.prototype, "status", void 0);
28
+ ], MachineCreationEndedPayload.prototype, "status", void 0);
38
29
  __decorate([
39
30
  (0, class_validator_1.IsOptional)(),
40
31
  (0, class_validator_1.IsString)(),
41
32
  __metadata("design:type", String)
42
- ], MachineLudeocastCreationEndedPayload.prototype, "reason", void 0);
43
- class MachineLudeocastCreationEnded extends infra_1.LudeoEvent {
33
+ ], MachineCreationEndedPayload.prototype, "reason", void 0);
34
+ class MachineCreationEnded extends infra_1.LudeoEvent {
44
35
  constructor(payload, context) {
45
- super(MachineLudeocastCreationEnded.EVENT_NAME);
36
+ super(MachineCreationEnded.EVENT_NAME);
46
37
  this.payload = payload;
47
38
  this.context = context;
48
39
  }
49
40
  }
50
- exports.MachineLudeocastCreationEnded = MachineLudeocastCreationEnded;
51
- MachineLudeocastCreationEnded.EVENT_NAME = 'site-controller.machine-ludeocast-creation-ended';
41
+ exports.MachineCreationEnded = MachineCreationEnded;
42
+ MachineCreationEnded.EVENT_NAME = 'site-controller.machine-creation-ended';
52
43
  __decorate([
53
- (0, decorators_1.ValidateNestedType)(() => MachineLudeocastCreationEndedPayload),
54
- __metadata("design:type", MachineLudeocastCreationEndedPayload)
55
- ], MachineLudeocastCreationEnded.prototype, "payload", void 0);
44
+ (0, decorators_1.ValidateNestedType)(() => MachineCreationEndedPayload),
45
+ __metadata("design:type", MachineCreationEndedPayload)
46
+ ], MachineCreationEnded.prototype, "payload", void 0);
56
47
  __decorate([
57
- (0, decorators_1.ValidateNestedType)(() => contexts_1.CloudResourceContext),
58
- __metadata("design:type", contexts_1.CloudResourceContext)
59
- ], MachineLudeocastCreationEnded.prototype, "context", void 0);
48
+ (0, decorators_1.ValidateNestedType)(() => contexts_1.SiteControllerContext),
49
+ __metadata("design:type", contexts_1.SiteControllerContext)
50
+ ], MachineCreationEnded.prototype, "context", void 0);
60
51
  //# sourceMappingURL=machine-ludeocast-creation-ended.js.map
@@ -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,6CAAuD;AACvD,iEAAkE;AAElE,MAAa,2BAA2B;CAUvC;AAVD,kEAUC;AARC;IADC,IAAA,wBAAM,GAAE;;sEACiB;AAG1B;IADC,IAAA,wBAAM,EAAC,qCAAmB,CAAC;;2DACA;AAI5B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;2DACK;AAGlB,MAAa,oBAAqB,SAAQ,kBAAU;IAGlD,YAAY,OAAoC,EAAE,OAA8B;QAC9E,KAAK,CAAC,oBAAoB,CAAC,UAAU,CAAC,CAAC;QACvC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,oDAcC;AAbiB,+BAAU,GAAG,wCAAwC,CAAC;AAStE;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,2BAA2B,CAAC;8BAC7C,2BAA2B;qDAAC;AAGrC;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,gCAAqB,CAAC;8BACvC,gCAAqB;qDAAC"}
@@ -2,7 +2,6 @@ import { BaseCommand, BaseCommandPayload } from '../base/base';
2
2
  import { GameCreationPayload, MachineMode } from '../../types/site-controller';
3
3
  export declare class StartGameCommandPayload extends BaseCommandPayload {
4
4
  payload: GameCreationPayload;
5
- gameResourceId: string;
6
5
  machineMode: MachineMode;
7
6
  }
8
7
  export declare class StartGameCommand extends BaseCommand<StartGameCommandPayload> {
@@ -17,10 +17,6 @@ const class_validator_1 = require("class-validator");
17
17
  class StartGameCommandPayload extends base_1.BaseCommandPayload {
18
18
  }
19
19
  exports.StartGameCommandPayload = StartGameCommandPayload;
20
- __decorate([
21
- (0, class_validator_1.IsString)(),
22
- __metadata("design:type", String)
23
- ], StartGameCommandPayload.prototype, "gameResourceId", void 0);
24
20
  __decorate([
25
21
  (0, class_validator_1.IsEnum)(site_controller_1.MachineMode),
26
22
  __metadata("design:type", String)
@@ -1 +1 @@
1
- {"version":3,"file":"start-game.command.js","sourceRoot":"","sources":["../../../../src/v4/events/site-controller/start-game.command.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uCAA+D;AAC/D,iEAA+E;AAC/E,oDAAyD;AACzD,qDAAmD;AAGnD,MAAa,uBAAwB,SAAQ,yBAAkB;CAQ9D;AARD,0DAQC;AAJC;IADC,IAAA,0BAAQ,GAAE;;+DACY;AAGvB;IADC,IAAA,wBAAM,EAAC,6BAAW,CAAC;;4DACK;AAG3B,MAAa,gBAAiB,SAAQ,kBAAoC;IAIxE,YAAY,OAAgC;QAC1C,KAAK,CAAC,OAAO,CAAC,iBAAiB,EAAE,YAAY,EAAE,OAAO,CAAC,CAAC;IAC1D,CAAC;CACF;AAPD,4CAOC;AALC;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,uBAAuB,CAAC;8BACzC,uBAAuB;iDAAC"}
1
+ {"version":3,"file":"start-game.command.js","sourceRoot":"","sources":["../../../../src/v4/events/site-controller/start-game.command.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uCAA+D;AAC/D,iEAA+E;AAC/E,oDAAyD;AACzD,qDAAyC;AAGzC,MAAa,uBAAwB,SAAQ,yBAAkB;CAK9D;AALD,0DAKC;AADC;IADC,IAAA,wBAAM,EAAC,6BAAW,CAAC;;4DACK;AAG3B,MAAa,gBAAiB,SAAQ,kBAAoC;IAIxE,YAAY,OAAgC;QAC1C,KAAK,CAAC,OAAO,CAAC,iBAAiB,EAAE,YAAY,EAAE,OAAO,CAAC,CAAC;IAC1D,CAAC;CACF;AAPD,4CAOC;AALC;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,uBAAuB,CAAC;8BACzC,uBAAuB;iDAAC"}
@@ -11,4 +11,3 @@ export * from "./mock";
11
11
  export * from "./machine-provider-settings";
12
12
  export * from "./ludeocast";
13
13
  export * from "./cloud-configuration-settings";
14
- export * from "./ludeocast-v2";
@@ -27,5 +27,4 @@ __exportStar(require("./mock"), exports);
27
27
  __exportStar(require("./machine-provider-settings"), exports);
28
28
  __exportStar(require("./ludeocast"), exports);
29
29
  __exportStar(require("./cloud-configuration-settings"), exports);
30
- __exportStar(require("./ludeocast-v2"), exports);
31
30
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/v4/types/cloud/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,uDAAqC;AACrC,wCAAsB;AACtB,2DAAyC;AACzC,qDAAmC;AACnC,sDAAoC;AACpC,6CAA2B;AAC3B,+DAA6C;AAC7C,4CAA0B;AAC1B,yCAAuB;AACvB,8DAA4C;AAC5C,8CAA4B;AAC5B,iEAA+C;AAC/C,iDAA+B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/v4/types/cloud/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,uDAAqC;AACrC,wCAAsB;AACtB,2DAAyC;AACzC,qDAAmC;AACnC,sDAAoC;AACpC,6CAA2B;AAC3B,+DAA6C;AAC7C,4CAA0B;AAC1B,yCAAuB;AACvB,8DAA4C;AAC5C,8CAA4B;AAC5B,iEAA+C"}
@@ -2,7 +2,6 @@ export declare enum CloudProvider {
2
2
  AWS = "aws",
3
3
  NVIDIA = "nvidia",
4
4
  LUDEOCAST = "ludeocast",
5
- LUDEOCAST_V2 = "ludeocast-v2",
6
5
  MOCK = "mock",
7
6
  GAMELIFT = "gamelift"
8
7
  }
@@ -6,7 +6,6 @@ var CloudProvider;
6
6
  CloudProvider["AWS"] = "aws";
7
7
  CloudProvider["NVIDIA"] = "nvidia";
8
8
  CloudProvider["LUDEOCAST"] = "ludeocast";
9
- CloudProvider["LUDEOCAST_V2"] = "ludeocast-v2";
10
9
  CloudProvider["MOCK"] = "mock";
11
10
  CloudProvider["GAMELIFT"] = "gamelift";
12
11
  })(CloudProvider || (exports.CloudProvider = CloudProvider = {}));
@@ -1 +1 @@
1
- {"version":3,"file":"provider.js","sourceRoot":"","sources":["../../../../src/v4/types/cloud/provider.ts"],"names":[],"mappings":";;;AAAA,IAAY,aAOX;AAPD,WAAY,aAAa;IACvB,4BAAW,CAAA;IACX,kCAAiB,CAAA;IACjB,wCAAuB,CAAA;IACvB,8CAA6B,CAAA;IAC7B,8BAAa,CAAA;IACb,sCAAqB,CAAA;AACvB,CAAC,EAPW,aAAa,6BAAb,aAAa,QAOxB"}
1
+ {"version":3,"file":"provider.js","sourceRoot":"","sources":["../../../../src/v4/types/cloud/provider.ts"],"names":[],"mappings":";;;AAAA,IAAY,aAMX;AAND,WAAY,aAAa;IACvB,4BAAW,CAAA;IACX,kCAAiB,CAAA;IACjB,wCAAuB,CAAA;IACvB,8BAAa,CAAA;IACb,sCAAqB,CAAA;AACvB,CAAC,EANW,aAAa,6BAAb,aAAa,QAMxB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ludeo/cloud-common",
3
- "version": "1.2.184-beta-yahil-8",
3
+ "version": "1.2.184",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "author": "Yahil Didi",