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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/dist/tsconfig.tsbuildinfo +1 -1
  2. package/dist/v4/events/cloud-resources/create-ludeocast-game-request.d.ts +1 -0
  3. package/dist/v4/events/cloud-resources/create-ludeocast-game-request.js +4 -0
  4. package/dist/v4/events/cloud-resources/create-ludeocast-game-request.js.map +1 -1
  5. package/dist/v4/events/cloud-resources/create-ludeocast-machine-request.d.ts +1 -0
  6. package/dist/v4/events/cloud-resources/create-ludeocast-machine-request.js +4 -0
  7. package/dist/v4/events/cloud-resources/create-ludeocast-machine-request.js.map +1 -1
  8. package/dist/v4/events/site-controller/game-ludeocast-creation-ended.d.ts +1 -0
  9. package/dist/v4/events/site-controller/game-ludeocast-creation-ended.js +4 -0
  10. package/dist/v4/events/site-controller/game-ludeocast-creation-ended.js.map +1 -1
  11. package/dist/v4/events/site-controller/game-ludeocast-termination-ended.d.ts +17 -0
  12. package/dist/v4/events/site-controller/game-ludeocast-termination-ended.js +60 -0
  13. package/dist/v4/events/site-controller/game-ludeocast-termination-ended.js.map +1 -0
  14. package/dist/v4/events/site-controller/index.d.ts +2 -0
  15. package/dist/v4/events/site-controller/index.js +2 -0
  16. package/dist/v4/events/site-controller/index.js.map +1 -1
  17. package/dist/v4/events/site-controller/machine-ludeocast-creation-ended.d.ts +1 -0
  18. package/dist/v4/events/site-controller/machine-ludeocast-creation-ended.js +4 -0
  19. package/dist/v4/events/site-controller/machine-ludeocast-creation-ended.js.map +1 -1
  20. package/dist/v4/events/site-controller/machine-ludeocast-termination-ended.d.ts +17 -0
  21. package/dist/v4/events/site-controller/machine-ludeocast-termination-ended.js +60 -0
  22. package/dist/v4/events/site-controller/machine-ludeocast-termination-ended.js.map +1 -0
  23. package/package.json +1 -1
  24. package/src/v4/events/cloud-resources/create-ludeocast-game-request.ts +3 -0
  25. package/src/v4/events/cloud-resources/create-ludeocast-machine-request.ts +3 -0
  26. package/src/v4/events/site-controller/game-ludeocast-creation-ended.ts +3 -0
  27. package/src/v4/events/site-controller/game-ludeocast-termination-ended.ts +41 -0
  28. package/src/v4/events/site-controller/index.ts +2 -0
  29. package/src/v4/events/site-controller/machine-ludeocast-creation-ended.ts +3 -0
  30. package/src/v4/events/site-controller/machine-ludeocast-termination-ended.ts +41 -0
@@ -4,6 +4,7 @@ import { CloudResourceContext } from '../../contexts';
4
4
  export declare class CreateLudeocastGameRequestPayload {
5
5
  machineResourceId: string;
6
6
  gameResourceId: string;
7
+ gamePoolId: string;
7
8
  gameCreationPayload: GameCreationPayload;
8
9
  site: string;
9
10
  region: string;
@@ -25,6 +25,10 @@ __decorate([
25
25
  (0, class_validator_1.IsUUID)(),
26
26
  __metadata("design:type", String)
27
27
  ], CreateLudeocastGameRequestPayload.prototype, "gameResourceId", void 0);
28
+ __decorate([
29
+ (0, class_validator_1.IsUUID)(),
30
+ __metadata("design:type", String)
31
+ ], CreateLudeocastGameRequestPayload.prototype, "gamePoolId", void 0);
28
32
  __decorate([
29
33
  (0, class_validator_1.IsString)(),
30
34
  __metadata("design:type", String)
@@ -1 +1 @@
1
- {"version":3,"file":"create-ludeocast-game-request.js","sourceRoot":"","sources":["../../../../src/v4/events/cloud-resources/create-ludeocast-game-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAC5C,oDAAyD;AACzD,qDAA+D;AAE/D,6CAAsD;AAEtD,MAAa,iCAAiC;CAkB7C;AAlBD,8EAkBC;AAhBC;IADC,IAAA,wBAAM,GAAE;;4EACiB;AAG1B;IADC,IAAA,wBAAM,GAAE;;yEACc;AAKvB;IADC,IAAA,0BAAQ,GAAE;;+DACE;AAGb;IADC,IAAA,0BAAQ,GAAE;;iEACI;AAIf;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;kEACQ;AAGnB,MAAa,0BAA2B,SAAQ,kBAAU;IAGxD,YAAY,OAA0C,EAAE,OAA6B;QACnF,KAAK,CAAC,0BAA0B,CAAC,UAAU,CAAC,CAAC;QAC7C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,gEAcC;AAbiB,qCAAU,GAAG,+CAA+C,CAAC;AAS7E;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,iCAAiC,CAAC;8BACnD,iCAAiC;2DAAC;AAG3C;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;2DAAC"}
1
+ {"version":3,"file":"create-ludeocast-game-request.js","sourceRoot":"","sources":["../../../../src/v4/events/cloud-resources/create-ludeocast-game-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAC5C,oDAAyD;AACzD,qDAA+D;AAE/D,6CAAsD;AAEtD,MAAa,iCAAiC;CAqB7C;AArBD,8EAqBC;AAnBC;IADC,IAAA,wBAAM,GAAE;;4EACiB;AAG1B;IADC,IAAA,wBAAM,GAAE;;yEACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;qEACU;AAKnB;IADC,IAAA,0BAAQ,GAAE;;+DACE;AAGb;IADC,IAAA,0BAAQ,GAAE;;iEACI;AAIf;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;kEACQ;AAGnB,MAAa,0BAA2B,SAAQ,kBAAU;IAGxD,YAAY,OAA0C,EAAE,OAA6B;QACnF,KAAK,CAAC,0BAA0B,CAAC,UAAU,CAAC,CAAC;QAC7C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,gEAcC;AAbiB,qCAAU,GAAG,+CAA+C,CAAC;AAS7E;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,iCAAiC,CAAC;8BACnD,iCAAiC;2DAAC;AAG3C;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;2DAAC"}
@@ -6,6 +6,7 @@ export declare class AndroidMachineCreationPayload {
6
6
  export type MachineCreationPayload = AndroidMachineCreationPayload;
7
7
  export declare class CreateLudeocastMachineRequestPayload {
8
8
  machineResourceId: string;
9
+ machinePoolId: string;
9
10
  machineCreationPayload?: MachineCreationPayload;
10
11
  providerSettings: LudeoCastV2ProviderSettings;
11
12
  }
@@ -25,6 +25,10 @@ __decorate([
25
25
  (0, class_validator_1.IsUUID)(),
26
26
  __metadata("design:type", String)
27
27
  ], CreateLudeocastMachineRequestPayload.prototype, "machineResourceId", void 0);
28
+ __decorate([
29
+ (0, class_validator_1.IsUUID)(),
30
+ __metadata("design:type", String)
31
+ ], CreateLudeocastMachineRequestPayload.prototype, "machinePoolId", void 0);
28
32
  __decorate([
29
33
  (0, class_validator_1.IsOptional)(),
30
34
  (0, decorators_1.ValidateNestedType)(() => AndroidMachineCreationPayload),
@@ -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;CAUhD;AAVD,oFAUC;AARC;IADC,IAAA,wBAAM,GAAE;;+EACiB;AAI1B;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,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"}
@@ -4,6 +4,7 @@ import { SiteOperationStatus } from '../../types/site-controller';
4
4
  import { CloudResourceStatus } from '../../types/pools';
5
5
  export declare class GameLudeocastCreationEndedPayload {
6
6
  gameResourceId: string;
7
+ gamePoolId: string;
7
8
  operationStatus: SiteOperationStatus;
8
9
  status: CloudResourceStatus;
9
10
  reason?: string;
@@ -23,6 +23,10 @@ __decorate([
23
23
  (0, class_validator_1.IsUUID)(),
24
24
  __metadata("design:type", String)
25
25
  ], GameLudeocastCreationEndedPayload.prototype, "gameResourceId", void 0);
26
+ __decorate([
27
+ (0, class_validator_1.IsUUID)(),
28
+ __metadata("design:type", String)
29
+ ], GameLudeocastCreationEndedPayload.prototype, "gamePoolId", void 0);
26
30
  __decorate([
27
31
  (0, class_validator_1.IsEnum)(site_controller_1.SiteOperationStatus),
28
32
  __metadata("design:type", String)
@@ -1 +1 @@
1
- {"version":3,"file":"game-ludeocast-creation-ended.js","sourceRoot":"","sources":["../../../../src/v4/events/site-controller/game-ludeocast-creation-ended.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAC5C,oDAAyD;AACzD,qDAAuE;AACvE,6CAAsD;AACtD,iEAAkE;AAClE,6CAAwD;AAExD,MAAa,iCAAiC;CAa7C;AAbD,8EAaC;AAXC;IADC,IAAA,wBAAM,GAAE;;yEACc;AAGvB;IADC,IAAA,wBAAM,EAAC,qCAAmB,CAAC;;0EACS;AAGrC;IADC,IAAA,wBAAM,EAAC,2BAAmB,CAAC;;iEACA;AAI5B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;iEACK;AAGlB,MAAa,0BAA2B,SAAQ,kBAAU;IAGxD,YAAY,OAA0C,EAAE,OAA6B;QACnF,KAAK,CAAC,0BAA0B,CAAC,UAAU,CAAC,CAAC;QAC7C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,gEAcC;AAbiB,qCAAU,GAAG,+CAA+C,CAAC;AAS7E;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,iCAAiC,CAAC;8BACnD,iCAAiC;2DAAC;AAG3C;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;2DAAC"}
1
+ {"version":3,"file":"game-ludeocast-creation-ended.js","sourceRoot":"","sources":["../../../../src/v4/events/site-controller/game-ludeocast-creation-ended.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAC5C,oDAAyD;AACzD,qDAAuE;AACvE,6CAAsD;AACtD,iEAAkE;AAClE,6CAAwD;AAExD,MAAa,iCAAiC;CAgB7C;AAhBD,8EAgBC;AAdC;IADC,IAAA,wBAAM,GAAE;;yEACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;qEACU;AAGnB;IADC,IAAA,wBAAM,EAAC,qCAAmB,CAAC;;0EACS;AAGrC;IADC,IAAA,wBAAM,EAAC,2BAAmB,CAAC;;iEACA;AAI5B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;iEACK;AAGlB,MAAa,0BAA2B,SAAQ,kBAAU;IAGxD,YAAY,OAA0C,EAAE,OAA6B;QACnF,KAAK,CAAC,0BAA0B,CAAC,UAAU,CAAC,CAAC;QAC7C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,gEAcC;AAbiB,qCAAU,GAAG,+CAA+C,CAAC;AAS7E;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,iCAAiC,CAAC;8BACnD,iCAAiC;2DAAC;AAG3C;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;2DAAC"}
@@ -0,0 +1,17 @@
1
+ import { LudeoEvent } from '../../../infra';
2
+ import { CloudResourceContext } from '../../contexts';
3
+ import { SiteOperationStatus } from '../../types/site-controller';
4
+ import { CloudResourceStatus } from '../../types/pools';
5
+ export declare class GameLudeocastTerminationEndedPayload {
6
+ gameResourceId: string;
7
+ gamePoolId: string;
8
+ operationStatus: SiteOperationStatus;
9
+ status: CloudResourceStatus;
10
+ reason?: string;
11
+ }
12
+ export declare class GameLudeocastTerminationEnded extends LudeoEvent {
13
+ static readonly EVENT_NAME = "site-controller.game-ludeocast-termination-ended";
14
+ constructor(payload: GameLudeocastTerminationEndedPayload, context: CloudResourceContext);
15
+ payload: GameLudeocastTerminationEndedPayload;
16
+ context: CloudResourceContext;
17
+ }
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.GameLudeocastTerminationEnded = exports.GameLudeocastTerminationEndedPayload = void 0;
13
+ const infra_1 = require("../../../infra");
14
+ const decorators_1 = require("../../../decorators");
15
+ const class_validator_1 = require("class-validator");
16
+ const contexts_1 = require("../../contexts");
17
+ const site_controller_1 = require("../../types/site-controller");
18
+ const pools_1 = require("../../types/pools");
19
+ class GameLudeocastTerminationEndedPayload {
20
+ }
21
+ exports.GameLudeocastTerminationEndedPayload = GameLudeocastTerminationEndedPayload;
22
+ __decorate([
23
+ (0, class_validator_1.IsUUID)(),
24
+ __metadata("design:type", String)
25
+ ], GameLudeocastTerminationEndedPayload.prototype, "gameResourceId", void 0);
26
+ __decorate([
27
+ (0, class_validator_1.IsUUID)(),
28
+ __metadata("design:type", String)
29
+ ], GameLudeocastTerminationEndedPayload.prototype, "gamePoolId", void 0);
30
+ __decorate([
31
+ (0, class_validator_1.IsEnum)(site_controller_1.SiteOperationStatus),
32
+ __metadata("design:type", String)
33
+ ], GameLudeocastTerminationEndedPayload.prototype, "operationStatus", void 0);
34
+ __decorate([
35
+ (0, class_validator_1.IsEnum)(pools_1.CloudResourceStatus),
36
+ __metadata("design:type", String)
37
+ ], GameLudeocastTerminationEndedPayload.prototype, "status", void 0);
38
+ __decorate([
39
+ (0, class_validator_1.IsOptional)(),
40
+ (0, class_validator_1.IsString)(),
41
+ __metadata("design:type", String)
42
+ ], GameLudeocastTerminationEndedPayload.prototype, "reason", void 0);
43
+ class GameLudeocastTerminationEnded extends infra_1.LudeoEvent {
44
+ constructor(payload, context) {
45
+ super(GameLudeocastTerminationEnded.EVENT_NAME);
46
+ this.payload = payload;
47
+ this.context = context;
48
+ }
49
+ }
50
+ exports.GameLudeocastTerminationEnded = GameLudeocastTerminationEnded;
51
+ GameLudeocastTerminationEnded.EVENT_NAME = 'site-controller.game-ludeocast-termination-ended';
52
+ __decorate([
53
+ (0, decorators_1.ValidateNestedType)(() => GameLudeocastTerminationEndedPayload),
54
+ __metadata("design:type", GameLudeocastTerminationEndedPayload)
55
+ ], GameLudeocastTerminationEnded.prototype, "payload", void 0);
56
+ __decorate([
57
+ (0, decorators_1.ValidateNestedType)(() => contexts_1.CloudResourceContext),
58
+ __metadata("design:type", contexts_1.CloudResourceContext)
59
+ ], GameLudeocastTerminationEnded.prototype, "context", void 0);
60
+ //# sourceMappingURL=game-ludeocast-termination-ended.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"game-ludeocast-termination-ended.js","sourceRoot":"","sources":["../../../../src/v4/events/site-controller/game-ludeocast-termination-ended.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAC5C,oDAAyD;AACzD,qDAAuE;AACvE,6CAAsD;AACtD,iEAAkE;AAClE,6CAAwD;AAExD,MAAa,oCAAoC;CAgBhD;AAhBD,oFAgBC;AAdC;IADC,IAAA,wBAAM,GAAE;;4EACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;wEACU;AAGnB;IADC,IAAA,wBAAM,EAAC,qCAAmB,CAAC;;6EACS;AAGrC;IADC,IAAA,wBAAM,EAAC,2BAAmB,CAAC;;oEACA;AAI5B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;oEACK;AAGlB,MAAa,6BAA8B,SAAQ,kBAAU;IAG3D,YAAY,OAA6C,EAAE,OAA6B;QACtF,KAAK,CAAC,6BAA6B,CAAC,UAAU,CAAC,CAAC;QAChD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,sEAcC;AAbiB,wCAAU,GAAG,kDAAkD,CAAC;AAShF;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,oCAAoC,CAAC;8BACtD,oCAAoC;8DAAC;AAG9C;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;8DAAC"}
@@ -1,5 +1,7 @@
1
1
  export * from './machine-ludeocast-creation-ended';
2
2
  export * from './game-ludeocast-creation-ended';
3
+ export * from './game-ludeocast-termination-ended';
4
+ export * from './machine-ludeocast-termination-ended';
3
5
  export * from './snapshot-ludeocast-creation-ended';
4
6
  export * from './snapshot-ludeocast-termination-ended';
5
7
  export * from './resource-status-update';
@@ -16,6 +16,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./machine-ludeocast-creation-ended"), exports);
18
18
  __exportStar(require("./game-ludeocast-creation-ended"), exports);
19
+ __exportStar(require("./game-ludeocast-termination-ended"), exports);
20
+ __exportStar(require("./machine-ludeocast-termination-ended"), exports);
19
21
  __exportStar(require("./snapshot-ludeocast-creation-ended"), exports);
20
22
  __exportStar(require("./snapshot-ludeocast-termination-ended"), exports);
21
23
  __exportStar(require("./resource-status-update"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/v4/events/site-controller/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AACA,qEAAmD;AACnD,kEAAgD;AAEhD,sEAAoD;AACpD,yEAAuD;AAEvD,2DAAyC;AAGzC,+CAA6B;AAC7B,oDAAkC;AAClC,iDAA+B;AAC/B,2DAAyC;AACzC,uDAAqC;AACrC,qDAAmC;AACnC,wDAAsC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/v4/events/site-controller/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AACA,qEAAmD;AACnD,kEAAgD;AAChD,qEAAmD;AACnD,wEAAsD;AAEtD,sEAAoD;AACpD,yEAAuD;AAEvD,2DAAyC;AAGzC,+CAA6B;AAC7B,oDAAkC;AAClC,iDAA+B;AAC/B,2DAAyC;AACzC,uDAAqC;AACrC,qDAAmC;AACnC,wDAAsC"}
@@ -4,6 +4,7 @@ import { SiteOperationStatus } from '../../types/site-controller';
4
4
  import { CloudResourceStatus } from '../../types/pools';
5
5
  export declare class MachineLudeocastCreationEndedPayload {
6
6
  machineResourceId: string;
7
+ machinePoolId: string;
7
8
  operationStatus: SiteOperationStatus;
8
9
  status: CloudResourceStatus;
9
10
  reason?: string;
@@ -23,6 +23,10 @@ __decorate([
23
23
  (0, class_validator_1.IsUUID)(),
24
24
  __metadata("design:type", String)
25
25
  ], MachineLudeocastCreationEndedPayload.prototype, "machineResourceId", void 0);
26
+ __decorate([
27
+ (0, class_validator_1.IsUUID)(),
28
+ __metadata("design:type", String)
29
+ ], MachineLudeocastCreationEndedPayload.prototype, "machinePoolId", void 0);
26
30
  __decorate([
27
31
  (0, class_validator_1.IsEnum)(site_controller_1.SiteOperationStatus),
28
32
  __metadata("design:type", String)
@@ -1 +1 @@
1
- {"version":3,"file":"machine-ludeocast-creation-ended.js","sourceRoot":"","sources":["../../../../src/v4/events/site-controller/machine-ludeocast-creation-ended.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAC5C,oDAAyD;AACzD,qDAAuE;AACvE,6CAAsD;AACtD,iEAAkE;AAClE,6CAAwD;AAExD,MAAa,oCAAoC;CAahD;AAbD,oFAaC;AAXC;IADC,IAAA,wBAAM,GAAE;;+EACiB;AAG1B;IADC,IAAA,wBAAM,EAAC,qCAAmB,CAAC;;6EACS;AAGrC;IADC,IAAA,wBAAM,EAAC,2BAAmB,CAAC;;oEACA;AAI5B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;oEACK;AAGlB,MAAa,6BAA8B,SAAQ,kBAAU;IAG3D,YAAY,OAA6C,EAAE,OAA6B;QACtF,KAAK,CAAC,6BAA6B,CAAC,UAAU,CAAC,CAAC;QAChD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,sEAcC;AAbiB,wCAAU,GAAG,kDAAkD,CAAC;AAShF;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,oCAAoC,CAAC;8BACtD,oCAAoC;8DAAC;AAG9C;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;8DAAC"}
1
+ {"version":3,"file":"machine-ludeocast-creation-ended.js","sourceRoot":"","sources":["../../../../src/v4/events/site-controller/machine-ludeocast-creation-ended.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAC5C,oDAAyD;AACzD,qDAAuE;AACvE,6CAAsD;AACtD,iEAAkE;AAClE,6CAAwD;AAExD,MAAa,oCAAoC;CAgBhD;AAhBD,oFAgBC;AAdC;IADC,IAAA,wBAAM,GAAE;;+EACiB;AAG1B;IADC,IAAA,wBAAM,GAAE;;2EACa;AAGtB;IADC,IAAA,wBAAM,EAAC,qCAAmB,CAAC;;6EACS;AAGrC;IADC,IAAA,wBAAM,EAAC,2BAAmB,CAAC;;oEACA;AAI5B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;oEACK;AAGlB,MAAa,6BAA8B,SAAQ,kBAAU;IAG3D,YAAY,OAA6C,EAAE,OAA6B;QACtF,KAAK,CAAC,6BAA6B,CAAC,UAAU,CAAC,CAAC;QAChD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,sEAcC;AAbiB,wCAAU,GAAG,kDAAkD,CAAC;AAShF;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,oCAAoC,CAAC;8BACtD,oCAAoC;8DAAC;AAG9C;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;8DAAC"}
@@ -0,0 +1,17 @@
1
+ import { LudeoEvent } from '../../../infra';
2
+ import { CloudResourceContext } from '../../contexts';
3
+ import { SiteOperationStatus } from '../../types/site-controller';
4
+ import { CloudResourceStatus } from '../../types/pools';
5
+ export declare class MachineLudeocastTerminationEndedPayload {
6
+ machineResourceId: string;
7
+ machinePoolId: string;
8
+ operationStatus: SiteOperationStatus;
9
+ status: CloudResourceStatus;
10
+ reason?: string;
11
+ }
12
+ export declare class MachineLudeocastTerminationEnded extends LudeoEvent {
13
+ static readonly EVENT_NAME = "site-controller.machine-ludeocast-termination-ended";
14
+ constructor(payload: MachineLudeocastTerminationEndedPayload, context: CloudResourceContext);
15
+ payload: MachineLudeocastTerminationEndedPayload;
16
+ context: CloudResourceContext;
17
+ }
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.MachineLudeocastTerminationEnded = exports.MachineLudeocastTerminationEndedPayload = void 0;
13
+ const infra_1 = require("../../../infra");
14
+ const decorators_1 = require("../../../decorators");
15
+ const class_validator_1 = require("class-validator");
16
+ const contexts_1 = require("../../contexts");
17
+ const site_controller_1 = require("../../types/site-controller");
18
+ const pools_1 = require("../../types/pools");
19
+ class MachineLudeocastTerminationEndedPayload {
20
+ }
21
+ exports.MachineLudeocastTerminationEndedPayload = MachineLudeocastTerminationEndedPayload;
22
+ __decorate([
23
+ (0, class_validator_1.IsUUID)(),
24
+ __metadata("design:type", String)
25
+ ], MachineLudeocastTerminationEndedPayload.prototype, "machineResourceId", void 0);
26
+ __decorate([
27
+ (0, class_validator_1.IsUUID)(),
28
+ __metadata("design:type", String)
29
+ ], MachineLudeocastTerminationEndedPayload.prototype, "machinePoolId", void 0);
30
+ __decorate([
31
+ (0, class_validator_1.IsEnum)(site_controller_1.SiteOperationStatus),
32
+ __metadata("design:type", String)
33
+ ], MachineLudeocastTerminationEndedPayload.prototype, "operationStatus", void 0);
34
+ __decorate([
35
+ (0, class_validator_1.IsEnum)(pools_1.CloudResourceStatus),
36
+ __metadata("design:type", String)
37
+ ], MachineLudeocastTerminationEndedPayload.prototype, "status", void 0);
38
+ __decorate([
39
+ (0, class_validator_1.IsOptional)(),
40
+ (0, class_validator_1.IsString)(),
41
+ __metadata("design:type", String)
42
+ ], MachineLudeocastTerminationEndedPayload.prototype, "reason", void 0);
43
+ class MachineLudeocastTerminationEnded extends infra_1.LudeoEvent {
44
+ constructor(payload, context) {
45
+ super(MachineLudeocastTerminationEnded.EVENT_NAME);
46
+ this.payload = payload;
47
+ this.context = context;
48
+ }
49
+ }
50
+ exports.MachineLudeocastTerminationEnded = MachineLudeocastTerminationEnded;
51
+ MachineLudeocastTerminationEnded.EVENT_NAME = 'site-controller.machine-ludeocast-termination-ended';
52
+ __decorate([
53
+ (0, decorators_1.ValidateNestedType)(() => MachineLudeocastTerminationEndedPayload),
54
+ __metadata("design:type", MachineLudeocastTerminationEndedPayload)
55
+ ], MachineLudeocastTerminationEnded.prototype, "payload", void 0);
56
+ __decorate([
57
+ (0, decorators_1.ValidateNestedType)(() => contexts_1.CloudResourceContext),
58
+ __metadata("design:type", contexts_1.CloudResourceContext)
59
+ ], MachineLudeocastTerminationEnded.prototype, "context", void 0);
60
+ //# sourceMappingURL=machine-ludeocast-termination-ended.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"machine-ludeocast-termination-ended.js","sourceRoot":"","sources":["../../../../src/v4/events/site-controller/machine-ludeocast-termination-ended.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAC5C,oDAAyD;AACzD,qDAAuE;AACvE,6CAAsD;AACtD,iEAAkE;AAClE,6CAAwD;AAExD,MAAa,uCAAuC;CAgBnD;AAhBD,0FAgBC;AAdC;IADC,IAAA,wBAAM,GAAE;;kFACiB;AAG1B;IADC,IAAA,wBAAM,GAAE;;8EACa;AAGtB;IADC,IAAA,wBAAM,EAAC,qCAAmB,CAAC;;gFACS;AAGrC;IADC,IAAA,wBAAM,EAAC,2BAAmB,CAAC;;uEACA;AAI5B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;uEACK;AAGlB,MAAa,gCAAiC,SAAQ,kBAAU;IAG9D,YAAY,OAAgD,EAAE,OAA6B;QACzF,KAAK,CAAC,gCAAgC,CAAC,UAAU,CAAC,CAAC;QACnD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,4EAcC;AAbiB,2CAAU,GAAG,qDAAqD,CAAC;AASnF;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,uCAAuC,CAAC;8BACzD,uCAAuC;iEAAC;AAGjD;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;iEAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ludeo/cloud-common",
3
- "version": "1.2.184-beta-yahil-3",
3
+ "version": "1.2.184-beta-yahil-4",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "author": "Yahil Didi",
@@ -11,6 +11,9 @@ export class CreateLudeocastGameRequestPayload {
11
11
  @IsUUID()
12
12
  gameResourceId: string;
13
13
 
14
+ @IsUUID()
15
+ gamePoolId: string;
16
+
14
17
  gameCreationPayload: GameCreationPayload;
15
18
 
16
19
  @IsString()
@@ -12,6 +12,9 @@ export class CreateLudeocastMachineRequestPayload {
12
12
  @IsUUID()
13
13
  machineResourceId: string;
14
14
 
15
+ @IsUUID()
16
+ machinePoolId: string;
17
+
15
18
  @IsOptional()
16
19
  @ValidateNestedType(() => AndroidMachineCreationPayload)
17
20
  machineCreationPayload?: MachineCreationPayload;
@@ -9,6 +9,9 @@ export class GameLudeocastCreationEndedPayload {
9
9
  @IsUUID()
10
10
  gameResourceId: string;
11
11
 
12
+ @IsUUID()
13
+ gamePoolId: string;
14
+
12
15
  @IsEnum(SiteOperationStatus)
13
16
  operationStatus: SiteOperationStatus;
14
17
 
@@ -0,0 +1,41 @@
1
+ import { LudeoEvent } from '../../../infra';
2
+ import { ValidateNestedType } from '../../../decorators';
3
+ import { IsEnum, IsOptional, IsString, IsUUID } from 'class-validator';
4
+ import { CloudResourceContext } from '../../contexts';
5
+ import { SiteOperationStatus } from '../../types/site-controller';
6
+ import { CloudResourceStatus } from '../../types/pools';
7
+
8
+ export class GameLudeocastTerminationEndedPayload {
9
+ @IsUUID()
10
+ gameResourceId: string;
11
+
12
+ @IsUUID()
13
+ gamePoolId: string;
14
+
15
+ @IsEnum(SiteOperationStatus)
16
+ operationStatus: SiteOperationStatus;
17
+
18
+ @IsEnum(CloudResourceStatus)
19
+ status: CloudResourceStatus;
20
+
21
+ @IsOptional()
22
+ @IsString()
23
+ reason?: string;
24
+ }
25
+
26
+ export class GameLudeocastTerminationEnded extends LudeoEvent {
27
+ static readonly EVENT_NAME = 'site-controller.game-ludeocast-termination-ended';
28
+
29
+ constructor(payload: GameLudeocastTerminationEndedPayload, context: CloudResourceContext) {
30
+ super(GameLudeocastTerminationEnded.EVENT_NAME);
31
+ this.payload = payload;
32
+ this.context = context;
33
+ }
34
+
35
+ @ValidateNestedType(() => GameLudeocastTerminationEndedPayload)
36
+ payload: GameLudeocastTerminationEndedPayload;
37
+
38
+ @ValidateNestedType(() => CloudResourceContext)
39
+ context: CloudResourceContext;
40
+ }
41
+
@@ -1,6 +1,8 @@
1
1
 
2
2
  export * from './machine-ludeocast-creation-ended';
3
3
  export * from './game-ludeocast-creation-ended';
4
+ export * from './game-ludeocast-termination-ended';
5
+ export * from './machine-ludeocast-termination-ended';
4
6
 
5
7
  export * from './snapshot-ludeocast-creation-ended';
6
8
  export * from './snapshot-ludeocast-termination-ended';
@@ -9,6 +9,9 @@ export class MachineLudeocastCreationEndedPayload {
9
9
  @IsUUID()
10
10
  machineResourceId: string;
11
11
 
12
+ @IsUUID()
13
+ machinePoolId: string;
14
+
12
15
  @IsEnum(SiteOperationStatus)
13
16
  operationStatus: SiteOperationStatus;
14
17
 
@@ -0,0 +1,41 @@
1
+ import { LudeoEvent } from '../../../infra';
2
+ import { ValidateNestedType } from '../../../decorators';
3
+ import { IsEnum, IsOptional, IsString, IsUUID } from 'class-validator';
4
+ import { CloudResourceContext } from '../../contexts';
5
+ import { SiteOperationStatus } from '../../types/site-controller';
6
+ import { CloudResourceStatus } from '../../types/pools';
7
+
8
+ export class MachineLudeocastTerminationEndedPayload {
9
+ @IsUUID()
10
+ machineResourceId: string;
11
+
12
+ @IsUUID()
13
+ machinePoolId: string;
14
+
15
+ @IsEnum(SiteOperationStatus)
16
+ operationStatus: SiteOperationStatus;
17
+
18
+ @IsEnum(CloudResourceStatus)
19
+ status: CloudResourceStatus;
20
+
21
+ @IsOptional()
22
+ @IsString()
23
+ reason?: string;
24
+ }
25
+
26
+ export class MachineLudeocastTerminationEnded extends LudeoEvent {
27
+ static readonly EVENT_NAME = 'site-controller.machine-ludeocast-termination-ended';
28
+
29
+ constructor(payload: MachineLudeocastTerminationEndedPayload, context: CloudResourceContext) {
30
+ super(MachineLudeocastTerminationEnded.EVENT_NAME);
31
+ this.payload = payload;
32
+ this.context = context;
33
+ }
34
+
35
+ @ValidateNestedType(() => MachineLudeocastTerminationEndedPayload)
36
+ payload: MachineLudeocastTerminationEndedPayload;
37
+
38
+ @ValidateNestedType(() => CloudResourceContext)
39
+ context: CloudResourceContext;
40
+ }
41
+