@ludeo/cloud-common 1.1.7 → 1.1.8

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 (77) hide show
  1. package/dist/decorators/validate-nested-type.decorator.d.ts +2 -1
  2. package/dist/decorators/validate-nested-type.decorator.js.map +1 -1
  3. package/dist/tsconfig.tsbuildinfo +1 -1
  4. package/dist/v3/contexts/cloud-pool-context.d.ts +6 -0
  5. package/dist/v3/contexts/cloud-pool-context.js +31 -0
  6. package/dist/v3/contexts/cloud-pool-context.js.map +1 -0
  7. package/dist/v3/contexts/cloud-session-context.d.ts +14 -0
  8. package/dist/v3/contexts/cloud-session-context.js +71 -0
  9. package/dist/v3/contexts/cloud-session-context.js.map +1 -0
  10. package/dist/v3/contexts/getCloudContextType.d.ts +4 -0
  11. package/dist/v3/contexts/getCloudContextType.js +17 -0
  12. package/dist/v3/contexts/getCloudContextType.js.map +1 -0
  13. package/dist/v3/contexts/getCloudContextType.spec.d.ts +1 -0
  14. package/dist/v3/contexts/getCloudContextType.spec.js +95 -0
  15. package/dist/v3/contexts/getCloudContextType.spec.js.map +1 -0
  16. package/dist/v3/contexts/index.d.ts +3 -0
  17. package/dist/v3/contexts/index.js +3 -0
  18. package/dist/v3/contexts/index.js.map +1 -1
  19. package/dist/v3/events/deallocate-machine-request.d.ts +15 -0
  20. package/dist/v3/events/deallocate-machine-request.js +53 -0
  21. package/dist/v3/events/deallocate-machine-request.js.map +1 -0
  22. package/dist/v3/events/game-resource-allocated-response.d.ts +14 -0
  23. package/dist/v3/events/game-resource-allocated-response.js +50 -0
  24. package/dist/v3/events/game-resource-allocated-response.js.map +1 -0
  25. package/dist/v3/events/game-resource-allocation-failed-response.d.ts +13 -0
  26. package/dist/v3/events/game-resource-allocation-failed-response.js +49 -0
  27. package/dist/v3/events/game-resource-allocation-failed-response.js.map +1 -0
  28. package/dist/v3/events/game-resource-created-response.d.ts +15 -0
  29. package/dist/v3/events/game-resource-created-response.js +54 -0
  30. package/dist/v3/events/game-resource-created-response.js.map +1 -0
  31. package/dist/v3/events/game-resource-creation-failed-response.d.ts +13 -0
  32. package/dist/v3/events/game-resource-creation-failed-response.js +49 -0
  33. package/dist/v3/events/game-resource-creation-failed-response.js.map +1 -0
  34. package/dist/v3/events/game-resource-terminated-response.d.ts +12 -0
  35. package/dist/v3/events/game-resource-terminated-response.js +45 -0
  36. package/dist/v3/events/game-resource-terminated-response.js.map +1 -0
  37. package/dist/v3/events/game-resource-termination-failed-response.d.ts +13 -0
  38. package/dist/v3/events/game-resource-termination-failed-response.js +49 -0
  39. package/dist/v3/events/game-resource-termination-failed-response.js.map +1 -0
  40. package/dist/v3/events/index.d.ts +12 -4
  41. package/dist/v3/events/index.js +12 -4
  42. package/dist/v3/events/index.js.map +1 -1
  43. package/dist/v3/events/machine-allocation-failed-response.d.ts +14 -0
  44. package/dist/v3/events/machine-allocation-failed-response.js +53 -0
  45. package/dist/v3/events/machine-allocation-failed-response.js.map +1 -0
  46. package/dist/v3/events/machine-deallocated-response.d.ts +15 -0
  47. package/dist/v3/events/machine-deallocated-response.js +53 -0
  48. package/dist/v3/events/machine-deallocated-response.js.map +1 -0
  49. package/dist/v3/events/machine-deallocation-failed-response.d.ts +16 -0
  50. package/dist/v3/events/machine-deallocation-failed-response.js +57 -0
  51. package/dist/v3/events/machine-deallocation-failed-response.js.map +1 -0
  52. package/dist/v3/events/machine-resource-created-response.d.ts +12 -0
  53. package/dist/v3/events/machine-resource-created-response.js +45 -0
  54. package/dist/v3/events/machine-resource-created-response.js.map +1 -0
  55. package/dist/v3/events/machine-resource-creation-failed-response.d.ts +13 -0
  56. package/dist/v3/events/machine-resource-creation-failed-response.js +49 -0
  57. package/dist/v3/events/machine-resource-creation-failed-response.js.map +1 -0
  58. package/package.json +1 -1
  59. package/src/decorators/validate-nested-type.decorator.ts +4 -2
  60. package/src/v3/contexts/cloud-pool-context.ts +14 -0
  61. package/src/v3/contexts/cloud-session-context.ts +46 -0
  62. package/src/v3/contexts/getCloudContextType.spec.ts +102 -0
  63. package/src/v3/contexts/getCloudContextType.ts +16 -0
  64. package/src/v3/contexts/index.ts +3 -0
  65. package/src/v3/events/deallocate-machine-request.ts +41 -0
  66. package/src/v3/events/{game-allocated-response.ts → game-resource-allocated-response.ts} +4 -3
  67. package/src/v3/events/game-resource-allocation-failed-response.ts +36 -0
  68. package/src/v3/events/{game-created-response.ts → game-resource-created-response.ts} +3 -3
  69. package/src/v3/events/game-resource-creation-failed-response.ts +36 -0
  70. package/src/v3/events/{game-terminated-response.ts → game-resource-terminated-response.ts} +4 -3
  71. package/src/v3/events/game-resource-termination-failed-response.ts +36 -0
  72. package/src/v3/events/index.ts +12 -4
  73. package/src/v3/events/machine-allocation-failed-response.ts +39 -0
  74. package/src/v3/events/machine-deallocated-response.ts +39 -0
  75. package/src/v3/events/machine-deallocation-failed-response.ts +43 -0
  76. package/src/v3/events/{machine-created-response.ts → machine-resource-created-response.ts} +8 -7
  77. package/src/v3/events/machine-resource-creation-failed-response.ts +36 -0
@@ -0,0 +1,49 @@
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.GameResourceCreationFailedResponse = exports.GameResourceCreationFailedResponsePayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const contexts_1 = require("../contexts");
15
+ const ludeo_event_1 = require("../../infra/ludeo-event");
16
+ const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
17
+ class GameResourceCreationFailedResponsePayload {
18
+ }
19
+ exports.GameResourceCreationFailedResponsePayload = GameResourceCreationFailedResponsePayload;
20
+ __decorate([
21
+ (0, class_validator_1.IsUUID)(),
22
+ __metadata("design:type", String)
23
+ ], GameResourceCreationFailedResponsePayload.prototype, "gameResourceId", void 0);
24
+ __decorate([
25
+ (0, class_validator_1.IsUUID)(),
26
+ __metadata("design:type", String)
27
+ ], GameResourceCreationFailedResponsePayload.prototype, "gamePoolId", void 0);
28
+ __decorate([
29
+ (0, class_validator_1.IsString)(),
30
+ __metadata("design:type", String)
31
+ ], GameResourceCreationFailedResponsePayload.prototype, "errorMessage", void 0);
32
+ class GameResourceCreationFailedResponse extends ludeo_event_1.LudeoEvent {
33
+ constructor(payload, context) {
34
+ super(GameResourceCreationFailedResponse.EVENT_NAME);
35
+ this.payload = payload;
36
+ this.context = context;
37
+ }
38
+ }
39
+ exports.GameResourceCreationFailedResponse = GameResourceCreationFailedResponse;
40
+ GameResourceCreationFailedResponse.EVENT_NAME = "cloud-resources.game-resource-creation-failed-response";
41
+ __decorate([
42
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.CloudResourceContext),
43
+ __metadata("design:type", contexts_1.CloudResourceContext)
44
+ ], GameResourceCreationFailedResponse.prototype, "context", void 0);
45
+ __decorate([
46
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => GameResourceCreationFailedResponsePayload),
47
+ __metadata("design:type", GameResourceCreationFailedResponsePayload)
48
+ ], GameResourceCreationFailedResponse.prototype, "payload", void 0);
49
+ //# sourceMappingURL=game-resource-creation-failed-response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"game-resource-creation-failed-response.js","sourceRoot":"","sources":["../../../src/v3/events/game-resource-creation-failed-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmD;AAEnD,0CAAmD;AACnD,yDAAqD;AACrD,oGAAqF;AAErF,MAAa,yCAAyC;CASrD;AATD,8FASC;AAPC;IADC,IAAA,wBAAM,GAAE;;iFACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;6EACU;AAGnB;IADC,IAAA,0BAAQ,GAAE;;+EACU;AAGvB,MAAa,kCAAmC,SAAQ,wBAAU;IAIhE,YACE,OAAkD,EAClD,OAA6B;QAE7B,KAAK,CAAC,kCAAkC,CAAC,UAAU,CAAC,CAAC;QACrD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAXH,gFAkBC;AAjBiB,6CAAU,GACxB,wDAAwD,CAAC;AAY3D;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;mEAAC;AAG9B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,yCAAyC,CAAC;8BAC3D,yCAAyC;mEAAC"}
@@ -0,0 +1,12 @@
1
+ import { CloudResourceContext } from "../contexts";
2
+ import { LudeoEvent } from "../../infra/ludeo-event";
3
+ export declare class GameTerminatedResponsePayload {
4
+ gameResourceId: string;
5
+ gamePoolId: string;
6
+ }
7
+ export declare class GameResourceTerminatedResponse extends LudeoEvent {
8
+ static readonly EVENT_NAME = "cloud-resources.game-resource-terminated-response";
9
+ constructor(payload: GameTerminatedResponsePayload, context: CloudResourceContext);
10
+ context: CloudResourceContext;
11
+ payload: GameTerminatedResponsePayload;
12
+ }
@@ -0,0 +1,45 @@
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.GameResourceTerminatedResponse = exports.GameTerminatedResponsePayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const contexts_1 = require("../contexts");
15
+ const ludeo_event_1 = require("../../infra/ludeo-event");
16
+ const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
17
+ class GameTerminatedResponsePayload {
18
+ }
19
+ exports.GameTerminatedResponsePayload = GameTerminatedResponsePayload;
20
+ __decorate([
21
+ (0, class_validator_1.IsUUID)(),
22
+ __metadata("design:type", String)
23
+ ], GameTerminatedResponsePayload.prototype, "gameResourceId", void 0);
24
+ __decorate([
25
+ (0, class_validator_1.IsUUID)(),
26
+ __metadata("design:type", String)
27
+ ], GameTerminatedResponsePayload.prototype, "gamePoolId", void 0);
28
+ class GameResourceTerminatedResponse extends ludeo_event_1.LudeoEvent {
29
+ constructor(payload, context) {
30
+ super(GameResourceTerminatedResponse.EVENT_NAME);
31
+ this.payload = payload;
32
+ this.context = context;
33
+ }
34
+ }
35
+ exports.GameResourceTerminatedResponse = GameResourceTerminatedResponse;
36
+ GameResourceTerminatedResponse.EVENT_NAME = "cloud-resources.game-resource-terminated-response";
37
+ __decorate([
38
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.CloudResourceContext),
39
+ __metadata("design:type", contexts_1.CloudResourceContext)
40
+ ], GameResourceTerminatedResponse.prototype, "context", void 0);
41
+ __decorate([
42
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => GameTerminatedResponsePayload),
43
+ __metadata("design:type", GameTerminatedResponsePayload)
44
+ ], GameResourceTerminatedResponse.prototype, "payload", void 0);
45
+ //# sourceMappingURL=game-resource-terminated-response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"game-resource-terminated-response.js","sourceRoot":"","sources":["../../../src/v3/events/game-resource-terminated-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyC;AAEzC,0CAAmD;AACnD,yDAAqD;AACrD,oGAAqF;AAErF,MAAa,6BAA6B;CAMzC;AAND,sEAMC;AAJC;IADC,IAAA,wBAAM,GAAE;;qEACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;iEACU;AAGrB,MAAa,8BAA+B,SAAQ,wBAAU;IAI5D,YACE,OAAsC,EACtC,OAA6B;QAE7B,KAAK,CAAC,8BAA8B,CAAC,UAAU,CAAC,CAAC;QACjD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAXH,wEAkBC;AAjBiB,yCAAU,GACxB,mDAAmD,CAAC;AAYtD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;+DAAC;AAG9B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,6BAA6B,CAAC;8BAC/C,6BAA6B;+DAAC"}
@@ -0,0 +1,13 @@
1
+ import { CloudResourceContext } from "../contexts";
2
+ import { LudeoEvent } from "../../infra/ludeo-event";
3
+ export declare class GameResourceTerminationFailedResponsePayload {
4
+ gameResourceId: string;
5
+ gamePoolId: string;
6
+ errorMessage: string;
7
+ }
8
+ export declare class GameResourceTerminationFailedResponse extends LudeoEvent {
9
+ static readonly EVENT_NAME = "cloud-resources.game-resource-termination-failed-response";
10
+ constructor(payload: GameResourceTerminationFailedResponsePayload, context: CloudResourceContext);
11
+ context: CloudResourceContext;
12
+ payload: GameResourceTerminationFailedResponsePayload;
13
+ }
@@ -0,0 +1,49 @@
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.GameResourceTerminationFailedResponse = exports.GameResourceTerminationFailedResponsePayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const contexts_1 = require("../contexts");
15
+ const ludeo_event_1 = require("../../infra/ludeo-event");
16
+ const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
17
+ class GameResourceTerminationFailedResponsePayload {
18
+ }
19
+ exports.GameResourceTerminationFailedResponsePayload = GameResourceTerminationFailedResponsePayload;
20
+ __decorate([
21
+ (0, class_validator_1.IsUUID)(),
22
+ __metadata("design:type", String)
23
+ ], GameResourceTerminationFailedResponsePayload.prototype, "gameResourceId", void 0);
24
+ __decorate([
25
+ (0, class_validator_1.IsUUID)(),
26
+ __metadata("design:type", String)
27
+ ], GameResourceTerminationFailedResponsePayload.prototype, "gamePoolId", void 0);
28
+ __decorate([
29
+ (0, class_validator_1.IsString)(),
30
+ __metadata("design:type", String)
31
+ ], GameResourceTerminationFailedResponsePayload.prototype, "errorMessage", void 0);
32
+ class GameResourceTerminationFailedResponse extends ludeo_event_1.LudeoEvent {
33
+ constructor(payload, context) {
34
+ super(GameResourceTerminationFailedResponse.EVENT_NAME);
35
+ this.payload = payload;
36
+ this.context = context;
37
+ }
38
+ }
39
+ exports.GameResourceTerminationFailedResponse = GameResourceTerminationFailedResponse;
40
+ GameResourceTerminationFailedResponse.EVENT_NAME = "cloud-resources.game-resource-termination-failed-response";
41
+ __decorate([
42
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.CloudResourceContext),
43
+ __metadata("design:type", contexts_1.CloudResourceContext)
44
+ ], GameResourceTerminationFailedResponse.prototype, "context", void 0);
45
+ __decorate([
46
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => GameResourceTerminationFailedResponsePayload),
47
+ __metadata("design:type", GameResourceTerminationFailedResponsePayload)
48
+ ], GameResourceTerminationFailedResponse.prototype, "payload", void 0);
49
+ //# sourceMappingURL=game-resource-termination-failed-response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"game-resource-termination-failed-response.js","sourceRoot":"","sources":["../../../src/v3/events/game-resource-termination-failed-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmD;AAEnD,0CAAmD;AACnD,yDAAqD;AACrD,oGAAqF;AAErF,MAAa,4CAA4C;CASxD;AATD,oGASC;AAPC;IADC,IAAA,wBAAM,GAAE;;oFACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;gFACU;AAGnB;IADC,IAAA,0BAAQ,GAAE;;kFACU;AAGvB,MAAa,qCAAsC,SAAQ,wBAAU;IAInE,YACE,OAAqD,EACrD,OAA6B;QAE7B,KAAK,CAAC,qCAAqC,CAAC,UAAU,CAAC,CAAC;QACxD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAXH,sFAkBC;AAjBiB,gDAAU,GACxB,2DAA2D,CAAC;AAY9D;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;sEAAC;AAG9B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4CAA4C,CAAC;8BAC9D,4CAA4C;sEAAC"}
@@ -5,11 +5,19 @@ export * from "./create-game-resource-request";
5
5
  export * from "./create-games-request";
6
6
  export * from "./create-machine-resource-batch-request";
7
7
  export * from "./create-machines-request";
8
- export * from "./game-allocated-response";
9
- export * from "./game-created-response";
10
- export * from "./game-terminated-response";
8
+ export * from "./deallocate-machine-request";
9
+ export * from "./game-resource-allocated-response";
10
+ export * from "./game-resource-allocation-failed-response";
11
+ export * from "./game-resource-created-response";
12
+ export * from "./game-resource-creation-failed-response";
13
+ export * from "./game-resource-terminated-response";
14
+ export * from "./game-resource-termination-failed-response";
11
15
  export * from "./machine-allocated-response";
12
- export * from "./machine-created-response";
16
+ export * from "./machine-allocation-failed-response";
17
+ export * from "./machine-deallocated-response";
18
+ export * from "./machine-deallocation-failed-response";
19
+ export * from "./machine-resource-created-response";
20
+ export * from "./machine-resource-creation-failed-response";
13
21
  export * from "./set-pool.event";
14
22
  export * from "./terminate-game-resource-request";
15
23
  export * from "./terminate-games-request";
@@ -21,11 +21,19 @@ __exportStar(require("./create-game-resource-request"), exports);
21
21
  __exportStar(require("./create-games-request"), exports);
22
22
  __exportStar(require("./create-machine-resource-batch-request"), exports);
23
23
  __exportStar(require("./create-machines-request"), exports);
24
- __exportStar(require("./game-allocated-response"), exports);
25
- __exportStar(require("./game-created-response"), exports);
26
- __exportStar(require("./game-terminated-response"), exports);
24
+ __exportStar(require("./deallocate-machine-request"), exports);
25
+ __exportStar(require("./game-resource-allocated-response"), exports);
26
+ __exportStar(require("./game-resource-allocation-failed-response"), exports);
27
+ __exportStar(require("./game-resource-created-response"), exports);
28
+ __exportStar(require("./game-resource-creation-failed-response"), exports);
29
+ __exportStar(require("./game-resource-terminated-response"), exports);
30
+ __exportStar(require("./game-resource-termination-failed-response"), exports);
27
31
  __exportStar(require("./machine-allocated-response"), exports);
28
- __exportStar(require("./machine-created-response"), exports);
32
+ __exportStar(require("./machine-allocation-failed-response"), exports);
33
+ __exportStar(require("./machine-deallocated-response"), exports);
34
+ __exportStar(require("./machine-deallocation-failed-response"), exports);
35
+ __exportStar(require("./machine-resource-created-response"), exports);
36
+ __exportStar(require("./machine-resource-creation-failed-response"), exports);
29
37
  __exportStar(require("./set-pool.event"), exports);
30
38
  __exportStar(require("./terminate-game-resource-request"), exports);
31
39
  __exportStar(require("./terminate-games-request"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v3/events/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,mEAAiD;AACjD,6DAA2C;AAC3C,iEAA+C;AAC/C,yDAAuC;AACvC,0EAAwD;AACxD,4DAA0C;AAC1C,4DAA0C;AAC1C,0DAAwC;AACxC,6DAA2C;AAC3C,+DAA6C;AAC7C,6DAA2C;AAC3C,mDAAiC;AACjC,oEAAkD;AAClD,4DAA0C;AAC1C,6EAA2D;AAC3D,+DAA6C;AAC7C,4DAA0C;AAC1C,mEAAiD"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v3/events/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,mEAAiD;AACjD,6DAA2C;AAC3C,iEAA+C;AAC/C,yDAAuC;AACvC,0EAAwD;AACxD,4DAA0C;AAC1C,+DAA6C;AAC7C,qEAAmD;AACnD,6EAA2D;AAC3D,mEAAiD;AACjD,2EAAyD;AACzD,sEAAoD;AACpD,8EAA4D;AAC5D,+DAA6C;AAC7C,uEAAqD;AACrD,iEAA+C;AAC/C,yEAAuD;AACvD,sEAAoD;AACpD,8EAA4D;AAC5D,mDAAiC;AACjC,oEAAkD;AAClD,4DAA0C;AAC1C,6EAA2D;AAC3D,+DAA6C;AAC7C,4DAA0C;AAC1C,mEAAiD"}
@@ -0,0 +1,14 @@
1
+ import { CloudResourceContext } from "../contexts";
2
+ import { LudeoEvent } from "../../infra/ludeo-event";
3
+ export declare class MachineAllocatedFailedResponsePayload {
4
+ gameResourceId: string;
5
+ machinePoolId: string;
6
+ gamePoolId: string;
7
+ errorMessage: string;
8
+ }
9
+ export declare class MachineAllocationFailedResponse extends LudeoEvent {
10
+ static readonly EVENT_NAME = "cloud-resources.machine-allocation-failed-response";
11
+ constructor(payload: MachineAllocatedFailedResponsePayload, context: CloudResourceContext);
12
+ context: CloudResourceContext;
13
+ payload: MachineAllocatedFailedResponsePayload;
14
+ }
@@ -0,0 +1,53 @@
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.MachineAllocationFailedResponse = exports.MachineAllocatedFailedResponsePayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const contexts_1 = require("../contexts");
15
+ const ludeo_event_1 = require("../../infra/ludeo-event");
16
+ const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
17
+ class MachineAllocatedFailedResponsePayload {
18
+ }
19
+ exports.MachineAllocatedFailedResponsePayload = MachineAllocatedFailedResponsePayload;
20
+ __decorate([
21
+ (0, class_validator_1.IsUUID)(),
22
+ __metadata("design:type", String)
23
+ ], MachineAllocatedFailedResponsePayload.prototype, "gameResourceId", void 0);
24
+ __decorate([
25
+ (0, class_validator_1.IsUUID)(),
26
+ __metadata("design:type", String)
27
+ ], MachineAllocatedFailedResponsePayload.prototype, "machinePoolId", void 0);
28
+ __decorate([
29
+ (0, class_validator_1.IsUUID)(),
30
+ __metadata("design:type", String)
31
+ ], MachineAllocatedFailedResponsePayload.prototype, "gamePoolId", void 0);
32
+ __decorate([
33
+ (0, class_validator_1.IsString)(),
34
+ __metadata("design:type", String)
35
+ ], MachineAllocatedFailedResponsePayload.prototype, "errorMessage", void 0);
36
+ class MachineAllocationFailedResponse extends ludeo_event_1.LudeoEvent {
37
+ constructor(payload, context) {
38
+ super(MachineAllocationFailedResponse.EVENT_NAME);
39
+ this.payload = payload;
40
+ this.context = context;
41
+ }
42
+ }
43
+ exports.MachineAllocationFailedResponse = MachineAllocationFailedResponse;
44
+ MachineAllocationFailedResponse.EVENT_NAME = "cloud-resources.machine-allocation-failed-response";
45
+ __decorate([
46
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.CloudResourceContext),
47
+ __metadata("design:type", contexts_1.CloudResourceContext)
48
+ ], MachineAllocationFailedResponse.prototype, "context", void 0);
49
+ __decorate([
50
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => MachineAllocatedFailedResponsePayload),
51
+ __metadata("design:type", MachineAllocatedFailedResponsePayload)
52
+ ], MachineAllocationFailedResponse.prototype, "payload", void 0);
53
+ //# sourceMappingURL=machine-allocation-failed-response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"machine-allocation-failed-response.js","sourceRoot":"","sources":["../../../src/v3/events/machine-allocation-failed-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmD;AAEnD,0CAAmD;AACnD,yDAAqD;AACrD,oGAAqF;AAErF,MAAa,qCAAqC;CAYjD;AAZD,sFAYC;AAVC;IADC,IAAA,wBAAM,GAAE;;6EACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;4EACa;AAGtB;IADC,IAAA,wBAAM,GAAE;;yEACU;AAGnB;IADC,IAAA,0BAAQ,GAAE;;2EACU;AAGvB,MAAa,+BAAgC,SAAQ,wBAAU;IAI7D,YACE,OAA8C,EAC9C,OAA6B;QAE7B,KAAK,CAAC,+BAA+B,CAAC,UAAU,CAAC,CAAC;QAClD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAXH,0EAkBC;AAjBiB,0CAAU,GACxB,oDAAoD,CAAC;AAYvD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;gEAAC;AAG9B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,qCAAqC,CAAC;8BACvD,qCAAqC;gEAAC"}
@@ -0,0 +1,15 @@
1
+ import { LudeoEvent } from "../../infra/ludeo-event";
2
+ import { CloudSessionContext } from "../../v2/contexts";
3
+ import { CloudPoolContext } from "../contexts";
4
+ export declare class MachineDeallocatedResponsePayload {
5
+ machinePoolId: string;
6
+ machineResourceId: string;
7
+ gamePoolId: string;
8
+ gameResourceId: string;
9
+ }
10
+ export declare class MachineDeallocatedResponse extends LudeoEvent {
11
+ static readonly EVENT_NAME = "cloud-pools.machine-deallocated-response";
12
+ constructor(payload: MachineDeallocatedResponsePayload, context: CloudSessionContext);
13
+ context: CloudSessionContext | CloudPoolContext;
14
+ payload: MachineDeallocatedResponsePayload;
15
+ }
@@ -0,0 +1,53 @@
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.MachineDeallocatedResponse = exports.MachineDeallocatedResponsePayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const ludeo_event_1 = require("../../infra/ludeo-event");
15
+ const contexts_1 = require("../contexts");
16
+ const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
17
+ class MachineDeallocatedResponsePayload {
18
+ }
19
+ exports.MachineDeallocatedResponsePayload = MachineDeallocatedResponsePayload;
20
+ __decorate([
21
+ (0, class_validator_1.IsUUID)(),
22
+ __metadata("design:type", String)
23
+ ], MachineDeallocatedResponsePayload.prototype, "machinePoolId", void 0);
24
+ __decorate([
25
+ (0, class_validator_1.IsUUID)(),
26
+ __metadata("design:type", String)
27
+ ], MachineDeallocatedResponsePayload.prototype, "machineResourceId", void 0);
28
+ __decorate([
29
+ (0, class_validator_1.IsUUID)(),
30
+ __metadata("design:type", String)
31
+ ], MachineDeallocatedResponsePayload.prototype, "gamePoolId", void 0);
32
+ __decorate([
33
+ (0, class_validator_1.IsUUID)(),
34
+ __metadata("design:type", String)
35
+ ], MachineDeallocatedResponsePayload.prototype, "gameResourceId", void 0);
36
+ class MachineDeallocatedResponse extends ludeo_event_1.LudeoEvent {
37
+ constructor(payload, context) {
38
+ super(MachineDeallocatedResponse.EVENT_NAME);
39
+ this.payload = payload;
40
+ this.context = context;
41
+ }
42
+ }
43
+ exports.MachineDeallocatedResponse = MachineDeallocatedResponse;
44
+ MachineDeallocatedResponse.EVENT_NAME = "cloud-pools.machine-deallocated-response";
45
+ __decorate([
46
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(contexts_1.getCloudContextType),
47
+ __metadata("design:type", Object)
48
+ ], MachineDeallocatedResponse.prototype, "context", void 0);
49
+ __decorate([
50
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => MachineDeallocatedResponsePayload),
51
+ __metadata("design:type", MachineDeallocatedResponsePayload)
52
+ ], MachineDeallocatedResponse.prototype, "payload", void 0);
53
+ //# sourceMappingURL=machine-deallocated-response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"machine-deallocated-response.js","sourceRoot":"","sources":["../../../src/v3/events/machine-deallocated-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyC;AAEzC,yDAAqD;AAErD,0CAAoE;AACpE,oGAAqF;AAErF,MAAa,iCAAiC;CAY7C;AAZD,8EAYC;AAVC;IADC,IAAA,wBAAM,GAAE;;wEACa;AAGtB;IADC,IAAA,wBAAM,GAAE;;4EACiB;AAG1B;IADC,IAAA,wBAAM,GAAE;;qEACU;AAGnB;IADC,IAAA,wBAAM,GAAE;;yEACc;AAGzB,MAAa,0BAA2B,SAAQ,wBAAU;IAGxD,YACE,OAA0C,EAC1C,OAA4B;QAE5B,KAAK,CAAC,0BAA0B,CAAC,UAAU,CAAC,CAAC;QAC7C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,gEAiBC;AAhBiB,qCAAU,GAAG,0CAA0C,CAAC;AAYxE;IADC,IAAA,mDAAkB,EAAC,8BAAmB,CAAC;;2DACQ;AAGhD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,iCAAiC,CAAC;8BACnD,iCAAiC;2DAAC"}
@@ -0,0 +1,16 @@
1
+ import { LudeoEvent } from "../../infra/ludeo-event";
2
+ import { CloudSessionContext } from "../../v2/contexts";
3
+ import { CloudPoolContext } from "../contexts";
4
+ export declare class MachineDeallocatedFailedResponsePayload {
5
+ machinePoolId: string;
6
+ machineResourceId: string;
7
+ gamePoolId: string;
8
+ gameResourceId: string;
9
+ errorMessage: string;
10
+ }
11
+ export declare class MachineDeallocationFailedResponse extends LudeoEvent {
12
+ static readonly EVENT_NAME = "cloud-pools.machine-deallocation-failed-response";
13
+ constructor(payload: MachineDeallocatedFailedResponsePayload, context: CloudSessionContext);
14
+ context: CloudSessionContext | CloudPoolContext;
15
+ payload: MachineDeallocatedFailedResponsePayload;
16
+ }
@@ -0,0 +1,57 @@
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.MachineDeallocationFailedResponse = exports.MachineDeallocatedFailedResponsePayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const ludeo_event_1 = require("../../infra/ludeo-event");
15
+ const contexts_1 = require("../contexts");
16
+ const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
17
+ class MachineDeallocatedFailedResponsePayload {
18
+ }
19
+ exports.MachineDeallocatedFailedResponsePayload = MachineDeallocatedFailedResponsePayload;
20
+ __decorate([
21
+ (0, class_validator_1.IsUUID)(),
22
+ __metadata("design:type", String)
23
+ ], MachineDeallocatedFailedResponsePayload.prototype, "machinePoolId", void 0);
24
+ __decorate([
25
+ (0, class_validator_1.IsUUID)(),
26
+ __metadata("design:type", String)
27
+ ], MachineDeallocatedFailedResponsePayload.prototype, "machineResourceId", void 0);
28
+ __decorate([
29
+ (0, class_validator_1.IsUUID)(),
30
+ __metadata("design:type", String)
31
+ ], MachineDeallocatedFailedResponsePayload.prototype, "gamePoolId", void 0);
32
+ __decorate([
33
+ (0, class_validator_1.IsUUID)(),
34
+ __metadata("design:type", String)
35
+ ], MachineDeallocatedFailedResponsePayload.prototype, "gameResourceId", void 0);
36
+ __decorate([
37
+ (0, class_validator_1.IsString)(),
38
+ __metadata("design:type", String)
39
+ ], MachineDeallocatedFailedResponsePayload.prototype, "errorMessage", void 0);
40
+ class MachineDeallocationFailedResponse extends ludeo_event_1.LudeoEvent {
41
+ constructor(payload, context) {
42
+ super(MachineDeallocationFailedResponse.EVENT_NAME);
43
+ this.payload = payload;
44
+ this.context = context;
45
+ }
46
+ }
47
+ exports.MachineDeallocationFailedResponse = MachineDeallocationFailedResponse;
48
+ MachineDeallocationFailedResponse.EVENT_NAME = "cloud-pools.machine-deallocation-failed-response";
49
+ __decorate([
50
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(contexts_1.getCloudContextType),
51
+ __metadata("design:type", Object)
52
+ ], MachineDeallocationFailedResponse.prototype, "context", void 0);
53
+ __decorate([
54
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => MachineDeallocatedFailedResponsePayload),
55
+ __metadata("design:type", MachineDeallocatedFailedResponsePayload)
56
+ ], MachineDeallocationFailedResponse.prototype, "payload", void 0);
57
+ //# sourceMappingURL=machine-deallocation-failed-response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"machine-deallocation-failed-response.js","sourceRoot":"","sources":["../../../src/v3/events/machine-deallocation-failed-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmD;AAEnD,yDAAqD;AAErD,0CAAoE;AACpE,oGAAqF;AAErF,MAAa,uCAAuC;CAenD;AAfD,0FAeC;AAbC;IADC,IAAA,wBAAM,GAAE;;8EACa;AAGtB;IADC,IAAA,wBAAM,GAAE;;kFACiB;AAG1B;IADC,IAAA,wBAAM,GAAE;;2EACU;AAGnB;IADC,IAAA,wBAAM,GAAE;;+EACc;AAGvB;IADC,IAAA,0BAAQ,GAAE;;6EACU;AAGvB,MAAa,iCAAkC,SAAQ,wBAAU;IAI/D,YACE,OAAgD,EAChD,OAA4B;QAE5B,KAAK,CAAC,iCAAiC,CAAC,UAAU,CAAC,CAAC;QACpD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAXH,8EAkBC;AAjBiB,4CAAU,GACxB,kDAAkD,CAAC;AAYrD;IADC,IAAA,mDAAkB,EAAC,8BAAmB,CAAC;;kEACQ;AAGhD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,uCAAuC,CAAC;8BACzD,uCAAuC;kEAAC"}
@@ -0,0 +1,12 @@
1
+ import { CloudResourceContext } from "../contexts";
2
+ import { LudeoEvent } from "../../infra/ludeo-event";
3
+ export declare class MachineResourceCreatedResponsePayload {
4
+ machineResourceId: string;
5
+ machinePoolId: string;
6
+ }
7
+ export declare class MachineResourceCreatedResponse extends LudeoEvent {
8
+ static readonly EVENT_NAME = "cloud-resources.machine-resource-created-response";
9
+ constructor(payload: MachineResourceCreatedResponsePayload, context: CloudResourceContext);
10
+ context: CloudResourceContext;
11
+ payload: MachineResourceCreatedResponsePayload;
12
+ }
@@ -0,0 +1,45 @@
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.MachineResourceCreatedResponse = exports.MachineResourceCreatedResponsePayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const contexts_1 = require("../contexts");
15
+ const ludeo_event_1 = require("../../infra/ludeo-event");
16
+ const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
17
+ class MachineResourceCreatedResponsePayload {
18
+ }
19
+ exports.MachineResourceCreatedResponsePayload = MachineResourceCreatedResponsePayload;
20
+ __decorate([
21
+ (0, class_validator_1.IsUUID)(),
22
+ __metadata("design:type", String)
23
+ ], MachineResourceCreatedResponsePayload.prototype, "machineResourceId", void 0);
24
+ __decorate([
25
+ (0, class_validator_1.IsUUID)(),
26
+ __metadata("design:type", String)
27
+ ], MachineResourceCreatedResponsePayload.prototype, "machinePoolId", void 0);
28
+ class MachineResourceCreatedResponse extends ludeo_event_1.LudeoEvent {
29
+ constructor(payload, context) {
30
+ super(MachineResourceCreatedResponse.EVENT_NAME);
31
+ this.payload = payload;
32
+ this.context = context;
33
+ }
34
+ }
35
+ exports.MachineResourceCreatedResponse = MachineResourceCreatedResponse;
36
+ MachineResourceCreatedResponse.EVENT_NAME = "cloud-resources.machine-resource-created-response";
37
+ __decorate([
38
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.CloudResourceContext),
39
+ __metadata("design:type", contexts_1.CloudResourceContext)
40
+ ], MachineResourceCreatedResponse.prototype, "context", void 0);
41
+ __decorate([
42
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => MachineResourceCreatedResponsePayload),
43
+ __metadata("design:type", MachineResourceCreatedResponsePayload)
44
+ ], MachineResourceCreatedResponse.prototype, "payload", void 0);
45
+ //# sourceMappingURL=machine-resource-created-response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"machine-resource-created-response.js","sourceRoot":"","sources":["../../../src/v3/events/machine-resource-created-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyC;AAEzC,0CAAmD;AACnD,yDAAqD;AACrD,oGAAqF;AAErF,MAAa,qCAAqC;CAMjD;AAND,sFAMC;AAJC;IADC,IAAA,wBAAM,GAAE;;gFACiB;AAG1B;IADC,IAAA,wBAAM,GAAE;;4EACa;AAGxB,MAAa,8BAA+B,SAAQ,wBAAU;IAI5D,YACE,OAA8C,EAC9C,OAA6B;QAE7B,KAAK,CAAC,8BAA8B,CAAC,UAAU,CAAC,CAAC;QACjD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAXH,wEAkBC;AAjBiB,yCAAU,GACxB,mDAAmD,CAAC;AAYtD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;+DAAC;AAG9B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,qCAAqC,CAAC;8BACvD,qCAAqC;+DAAC"}
@@ -0,0 +1,13 @@
1
+ import { CloudResourceContext } from "../contexts";
2
+ import { LudeoEvent } from "../../infra/ludeo-event";
3
+ export declare class MachineResourceCreationFailedResponsePayload {
4
+ machineResourceId: string;
5
+ machinePoolId: string;
6
+ errorMessage: string;
7
+ }
8
+ export declare class MachineResourceCreationFailedResponse extends LudeoEvent {
9
+ static readonly EVENT_NAME = "cloud-resources.machine-resource-creation-failed-response";
10
+ constructor(payload: MachineResourceCreationFailedResponsePayload, context: CloudResourceContext);
11
+ context: CloudResourceContext;
12
+ payload: MachineResourceCreationFailedResponsePayload;
13
+ }
@@ -0,0 +1,49 @@
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.MachineResourceCreationFailedResponse = exports.MachineResourceCreationFailedResponsePayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const contexts_1 = require("../contexts");
15
+ const ludeo_event_1 = require("../../infra/ludeo-event");
16
+ const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
17
+ class MachineResourceCreationFailedResponsePayload {
18
+ }
19
+ exports.MachineResourceCreationFailedResponsePayload = MachineResourceCreationFailedResponsePayload;
20
+ __decorate([
21
+ (0, class_validator_1.IsUUID)(),
22
+ __metadata("design:type", String)
23
+ ], MachineResourceCreationFailedResponsePayload.prototype, "machineResourceId", void 0);
24
+ __decorate([
25
+ (0, class_validator_1.IsUUID)(),
26
+ __metadata("design:type", String)
27
+ ], MachineResourceCreationFailedResponsePayload.prototype, "machinePoolId", void 0);
28
+ __decorate([
29
+ (0, class_validator_1.IsString)(),
30
+ __metadata("design:type", String)
31
+ ], MachineResourceCreationFailedResponsePayload.prototype, "errorMessage", void 0);
32
+ class MachineResourceCreationFailedResponse extends ludeo_event_1.LudeoEvent {
33
+ constructor(payload, context) {
34
+ super(MachineResourceCreationFailedResponse.EVENT_NAME);
35
+ this.payload = payload;
36
+ this.context = context;
37
+ }
38
+ }
39
+ exports.MachineResourceCreationFailedResponse = MachineResourceCreationFailedResponse;
40
+ MachineResourceCreationFailedResponse.EVENT_NAME = "cloud-resources.machine-resource-creation-failed-response";
41
+ __decorate([
42
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.CloudResourceContext),
43
+ __metadata("design:type", contexts_1.CloudResourceContext)
44
+ ], MachineResourceCreationFailedResponse.prototype, "context", void 0);
45
+ __decorate([
46
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => MachineResourceCreationFailedResponsePayload),
47
+ __metadata("design:type", MachineResourceCreationFailedResponsePayload)
48
+ ], MachineResourceCreationFailedResponse.prototype, "payload", void 0);
49
+ //# sourceMappingURL=machine-resource-creation-failed-response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"machine-resource-creation-failed-response.js","sourceRoot":"","sources":["../../../src/v3/events/machine-resource-creation-failed-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmD;AAEnD,0CAAmD;AACnD,yDAAqD;AACrD,oGAAqF;AAErF,MAAa,4CAA4C;CASxD;AATD,oGASC;AAPC;IADC,IAAA,wBAAM,GAAE;;uFACiB;AAG1B;IADC,IAAA,wBAAM,GAAE;;mFACa;AAGtB;IADC,IAAA,0BAAQ,GAAE;;kFACU;AAGvB,MAAa,qCAAsC,SAAQ,wBAAU;IAInE,YACE,OAAqD,EACrD,OAA6B;QAE7B,KAAK,CAAC,qCAAqC,CAAC,UAAU,CAAC,CAAC;QACxD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAXH,sFAkBC;AAjBiB,gDAAU,GACxB,2DAA2D,CAAC;AAY9D;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;sEAAC;AAG9B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4CAA4C,CAAC;8BAC9D,4CAA4C;sEAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ludeo/cloud-common",
3
- "version": "1.1.7",
3
+ "version": "1.1.8",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "author": "Yahil Didi",