@ludeo/cloud-common 1.1.72 → 1.1.74

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 (44) hide show
  1. package/dist/tsconfig.tsbuildinfo +1 -1
  2. package/dist/v3/types/pools/configuration/attributes/game.d.ts +4 -0
  3. package/dist/v3/types/pools/configuration/attributes/game.js +22 -0
  4. package/dist/v3/types/pools/configuration/attributes/game.js.map +1 -0
  5. package/dist/v3/types/pools/configuration/attributes/index.d.ts +2 -0
  6. package/dist/v3/types/pools/configuration/attributes/index.js +19 -0
  7. package/dist/v3/types/pools/configuration/attributes/index.js.map +1 -0
  8. package/dist/v3/types/pools/configuration/attributes/machine.d.ts +3 -0
  9. package/dist/v3/types/pools/configuration/attributes/machine.js +21 -0
  10. package/dist/v3/types/pools/configuration/attributes/machine.js.map +1 -0
  11. package/dist/v3/types/pools/configuration/game.d.ts +2 -0
  12. package/dist/v3/types/pools/configuration/game.js +6 -0
  13. package/dist/v3/types/pools/configuration/game.js.map +1 -1
  14. package/dist/v3/types/pools/configuration/index.d.ts +1 -0
  15. package/dist/v3/types/pools/configuration/index.js +1 -0
  16. package/dist/v3/types/pools/configuration/index.js.map +1 -1
  17. package/dist/v3/types/pools/configuration/machine.d.ts +2 -0
  18. package/dist/v3/types/pools/configuration/machine.js +6 -0
  19. package/dist/v3/types/pools/configuration/machine.js.map +1 -1
  20. package/package.json +2 -2
  21. package/src/v3/types/pools/configuration/attributes/game.ts +7 -0
  22. package/src/v3/types/pools/configuration/attributes/index.ts +2 -0
  23. package/src/v3/types/pools/configuration/attributes/machine.ts +6 -0
  24. package/src/v3/types/pools/configuration/game.ts +5 -0
  25. package/src/v3/types/pools/configuration/index.ts +1 -0
  26. package/src/v3/types/pools/configuration/machine.ts +5 -0
  27. package/dist/v2/events/cloud-session-ended.event.d.ts +0 -8
  28. package/dist/v2/events/cloud-session-ended.event.js +0 -28
  29. package/dist/v2/events/cloud-session-ended.event.js.map +0 -1
  30. package/dist/v3/events/game-created-response.d.ts +0 -15
  31. package/dist/v3/events/game-created-response.js +0 -54
  32. package/dist/v3/events/game-created-response.js.map +0 -1
  33. package/dist/v3/events/game-status-changed.d.ts +0 -16
  34. package/dist/v3/events/game-status-changed.js +0 -59
  35. package/dist/v3/events/game-status-changed.js.map +0 -1
  36. package/dist/v3/events/machine-created-response.d.ts +0 -12
  37. package/dist/v3/events/machine-created-response.js +0 -45
  38. package/dist/v3/events/machine-created-response.js.map +0 -1
  39. package/dist/v3/events/monitor-game-task.d.ts +0 -14
  40. package/dist/v3/events/monitor-game-task.js +0 -48
  41. package/dist/v3/events/monitor-game-task.js.map +0 -1
  42. package/dist/v3/types/pools.d.ts +0 -63
  43. package/dist/v3/types/pools.js +0 -125
  44. package/dist/v3/types/pools.js.map +0 -1
@@ -0,0 +1,4 @@
1
+ import { MachinePoolAttributes } from "./machine";
2
+ export declare class GamePoolAttributes extends MachinePoolAttributes {
3
+ gameId: string;
4
+ }
@@ -0,0 +1,22 @@
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.GamePoolAttributes = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const machine_1 = require("./machine");
15
+ class GamePoolAttributes extends machine_1.MachinePoolAttributes {
16
+ }
17
+ exports.GamePoolAttributes = GamePoolAttributes;
18
+ __decorate([
19
+ (0, class_validator_1.IsString)(),
20
+ __metadata("design:type", String)
21
+ ], GamePoolAttributes.prototype, "gameId", void 0);
22
+ //# sourceMappingURL=game.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"game.js","sourceRoot":"","sources":["../../../../../../src/v3/types/pools/configuration/attributes/game.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA2C;AAC3C,uCAAkD;AAElD,MAAa,kBAAmB,SAAQ,+BAAqB;CAG5D;AAHD,gDAGC;AADC;IADC,IAAA,0BAAQ,GAAE;;kDACI"}
@@ -0,0 +1,2 @@
1
+ export * from "./game";
2
+ export * from "./machine";
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./game"), exports);
18
+ __exportStar(require("./machine"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/v3/types/pools/configuration/attributes/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,4CAA0B"}
@@ -0,0 +1,3 @@
1
+ export declare class MachinePoolAttributes {
2
+ machineClass: string;
3
+ }
@@ -0,0 +1,21 @@
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.MachinePoolAttributes = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ class MachinePoolAttributes {
15
+ }
16
+ exports.MachinePoolAttributes = MachinePoolAttributes;
17
+ __decorate([
18
+ (0, class_validator_1.IsString)(),
19
+ __metadata("design:type", String)
20
+ ], MachinePoolAttributes.prototype, "machineClass", void 0);
21
+ //# sourceMappingURL=machine.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"machine.js","sourceRoot":"","sources":["../../../../../../src/v3/types/pools/configuration/attributes/machine.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA2C;AAE3C,MAAa,qBAAqB;CAGjC;AAHD,sDAGC;AADC;IADC,IAAA,0BAAQ,GAAE;;2DACU"}
@@ -1,7 +1,9 @@
1
1
  import { CloudPoolType } from "..";
2
+ import { GamePoolAttributes } from "./attributes";
2
3
  import { BaseCloudPoolConfiguration } from "./base";
3
4
  export declare class GamePoolConfiguration extends BaseCloudPoolConfiguration {
4
5
  type: CloudPoolType.GAME;
5
6
  gameId: string;
6
7
  machinePoolId: string;
8
+ attributes: GamePoolAttributes;
7
9
  }
@@ -12,7 +12,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.GamePoolConfiguration = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
14
  const __1 = require("..");
15
+ const attributes_1 = require("./attributes");
15
16
  const base_1 = require("./base");
17
+ const decorators_1 = require("../../../../decorators");
16
18
  class GamePoolConfiguration extends base_1.BaseCloudPoolConfiguration {
17
19
  }
18
20
  exports.GamePoolConfiguration = GamePoolConfiguration;
@@ -28,4 +30,8 @@ __decorate([
28
30
  (0, class_validator_1.IsUUID)(),
29
31
  __metadata("design:type", String)
30
32
  ], GamePoolConfiguration.prototype, "machinePoolId", void 0);
33
+ __decorate([
34
+ (0, decorators_1.ValidateNestedType)(() => attributes_1.GamePoolAttributes),
35
+ __metadata("design:type", attributes_1.GamePoolAttributes)
36
+ ], GamePoolConfiguration.prototype, "attributes", void 0);
31
37
  //# sourceMappingURL=game.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"game.js","sourceRoot":"","sources":["../../../../../src/v3/types/pools/configuration/game.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiD;AAEjD,0BAAmC;AACnC,iCAAoD;AAEpD,MAAa,qBAAsB,SAAQ,iCAA0B;CASpE;AATD,sDASC;AAPC;IADC,IAAA,wBAAM,EAAC,iBAAa,CAAC;;mDACG;AAGzB;IADC,IAAA,wBAAM,GAAE;;qDACM;AAGf;IADC,IAAA,wBAAM,GAAE;;4DACa"}
1
+ {"version":3,"file":"game.js","sourceRoot":"","sources":["../../../../../src/v3/types/pools/configuration/game.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiD;AAEjD,0BAAmC;AACnC,6CAAkD;AAClD,iCAAoD;AACpD,uDAA4D;AAE5D,MAAa,qBAAsB,SAAQ,iCAA0B;CAYpE;AAZD,sDAYC;AAVC;IADC,IAAA,wBAAM,EAAC,iBAAa,CAAC;;mDACG;AAGzB;IADC,IAAA,wBAAM,GAAE;;qDACM;AAGf;IADC,IAAA,wBAAM,GAAE;;4DACa;AAGtB;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,+BAAkB,CAAC;8BACjC,+BAAkB;yDAAC"}
@@ -2,3 +2,4 @@ export * from "./base";
2
2
  export * from "./game";
3
3
  export * from "./machine";
4
4
  export * from "./type";
5
+ export * from "./attributes";
@@ -18,4 +18,5 @@ __exportStar(require("./base"), exports);
18
18
  __exportStar(require("./game"), exports);
19
19
  __exportStar(require("./machine"), exports);
20
20
  __exportStar(require("./type"), exports);
21
+ __exportStar(require("./attributes"), exports);
21
22
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/v3/types/pools/configuration/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,yCAAuB;AACvB,4CAA0B;AAC1B,yCAAuB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/v3/types/pools/configuration/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,yCAAuB;AACvB,4CAA0B;AAC1B,yCAAuB;AACvB,+CAA6B"}
@@ -1,5 +1,7 @@
1
1
  import { CloudPoolType } from "..";
2
2
  import { BaseCloudPoolConfiguration } from "./base";
3
+ import { MachinePoolAttributes } from "./attributes";
3
4
  export declare class MachinePoolConfiguration extends BaseCloudPoolConfiguration {
4
5
  type: CloudPoolType.MACHINE;
6
+ attributes: MachinePoolAttributes;
5
7
  }
@@ -13,6 +13,8 @@ exports.MachinePoolConfiguration = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
14
  const __1 = require("..");
15
15
  const base_1 = require("./base");
16
+ const attributes_1 = require("./attributes");
17
+ const decorators_1 = require("../../../../decorators");
16
18
  class MachinePoolConfiguration extends base_1.BaseCloudPoolConfiguration {
17
19
  }
18
20
  exports.MachinePoolConfiguration = MachinePoolConfiguration;
@@ -20,4 +22,8 @@ __decorate([
20
22
  (0, class_validator_1.IsEnum)(__1.CloudPoolType),
21
23
  __metadata("design:type", String)
22
24
  ], MachinePoolConfiguration.prototype, "type", void 0);
25
+ __decorate([
26
+ (0, decorators_1.ValidateNestedType)(() => attributes_1.MachinePoolAttributes),
27
+ __metadata("design:type", attributes_1.MachinePoolAttributes)
28
+ ], MachinePoolConfiguration.prototype, "attributes", void 0);
23
29
  //# sourceMappingURL=machine.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"machine.js","sourceRoot":"","sources":["../../../../../src/v3/types/pools/configuration/machine.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyC;AAEzC,0BAAmC;AACnC,iCAAoD;AAEpD,MAAa,wBAAyB,SAAQ,iCAA0B;CAGvE;AAHD,4DAGC;AADC;IADC,IAAA,wBAAM,EAAC,iBAAa,CAAC;;sDACM"}
1
+ {"version":3,"file":"machine.js","sourceRoot":"","sources":["../../../../../src/v3/types/pools/configuration/machine.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyC;AAEzC,0BAAmC;AACnC,iCAAoD;AACpD,6CAAqD;AACrD,uDAA4D;AAE5D,MAAa,wBAAyB,SAAQ,iCAA0B;CAMvE;AAND,4DAMC;AAJC;IADC,IAAA,wBAAM,EAAC,iBAAa,CAAC;;sDACM;AAG5B;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,kCAAqB,CAAC;8BACpC,kCAAqB;4DAAC"}
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@ludeo/cloud-common",
3
- "version": "1.1.72",
3
+ "version": "1.1.74",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "author": "Yahil Didi",
7
7
  "scripts": {
8
- "build": "tsc",
8
+ "build": "rm -rf dist && tsc",
9
9
  "test": "jest",
10
10
  "publish": "npm run build && npm publish"
11
11
  },
@@ -0,0 +1,7 @@
1
+ import { IsString } from "class-validator";
2
+ import { MachinePoolAttributes } from "./machine";
3
+
4
+ export class GamePoolAttributes extends MachinePoolAttributes {
5
+ @IsString()
6
+ gameId: string;
7
+ }
@@ -0,0 +1,2 @@
1
+ export * from "./game";
2
+ export * from "./machine";
@@ -0,0 +1,6 @@
1
+ import { IsString } from "class-validator";
2
+
3
+ export class MachinePoolAttributes {
4
+ @IsString()
5
+ machineClass: string;
6
+ }
@@ -1,7 +1,9 @@
1
1
  import { IsEnum, IsUUID } from "class-validator";
2
2
 
3
3
  import { CloudPoolType } from "..";
4
+ import { GamePoolAttributes } from "./attributes";
4
5
  import { BaseCloudPoolConfiguration } from "./base";
6
+ import { ValidateNestedType } from "../../../../decorators";
5
7
 
6
8
  export class GamePoolConfiguration extends BaseCloudPoolConfiguration {
7
9
  @IsEnum(CloudPoolType)
@@ -12,4 +14,7 @@ export class GamePoolConfiguration extends BaseCloudPoolConfiguration {
12
14
 
13
15
  @IsUUID()
14
16
  machinePoolId: string;
17
+
18
+ @ValidateNestedType(() => GamePoolAttributes)
19
+ attributes: GamePoolAttributes;
15
20
  }
@@ -2,3 +2,4 @@ export * from "./base";
2
2
  export * from "./game";
3
3
  export * from "./machine";
4
4
  export * from "./type";
5
+ export * from "./attributes";
@@ -2,8 +2,13 @@ import { IsEnum } from "class-validator";
2
2
 
3
3
  import { CloudPoolType } from "..";
4
4
  import { BaseCloudPoolConfiguration } from "./base";
5
+ import { MachinePoolAttributes } from "./attributes";
6
+ import { ValidateNestedType } from "../../../../decorators";
5
7
 
6
8
  export class MachinePoolConfiguration extends BaseCloudPoolConfiguration {
7
9
  @IsEnum(CloudPoolType)
8
10
  type: CloudPoolType.MACHINE;
11
+
12
+ @ValidateNestedType(() => MachinePoolAttributes)
13
+ attributes: MachinePoolAttributes;
9
14
  }
@@ -1,8 +0,0 @@
1
- import { CloudSessionContext } from "../contexts/cloud-session-context";
2
- import { LudeoEvent } from "../../infra/ludeo-event";
3
- export declare class CloudSessionTerminated extends LudeoEvent {
4
- static readonly EVENT_NAME = "cloud-sessions.cloud-session-terminated";
5
- constructor(context: CloudSessionContext);
6
- context: CloudSessionContext;
7
- payload: never;
8
- }
@@ -1,28 +0,0 @@
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.CloudSessionTerminated = void 0;
13
- const cloud_session_context_1 = require("../contexts/cloud-session-context");
14
- const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
15
- const ludeo_event_1 = require("../../infra/ludeo-event");
16
- class CloudSessionTerminated extends ludeo_event_1.LudeoEvent {
17
- constructor(context) {
18
- super(CloudSessionTerminated.EVENT_NAME);
19
- this.context = context;
20
- }
21
- }
22
- exports.CloudSessionTerminated = CloudSessionTerminated;
23
- CloudSessionTerminated.EVENT_NAME = "cloud-sessions.cloud-session-terminated";
24
- __decorate([
25
- (0, validate_nested_type_decorator_1.ValidateNestedType)(() => cloud_session_context_1.CloudSessionContext),
26
- __metadata("design:type", cloud_session_context_1.CloudSessionContext)
27
- ], CloudSessionTerminated.prototype, "context", void 0);
28
- //# sourceMappingURL=cloud-session-ended.event.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cloud-session-ended.event.js","sourceRoot":"","sources":["../../../src/v2/events/cloud-session-ended.event.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6EAAwE;AACxE,oGAAqF;AACrF,yDAAqD;AAErD,MAAa,sBAAuB,SAAQ,wBAAU;IAGpD,YAAY,OAA4B;QACtC,KAAK,CAAC,sBAAsB,CAAC,UAAU,CAAC,CAAC;QACzC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AANH,wDAYC;AAXiB,iCAAU,GAAG,yCAAyC,CAAC;AAQvE;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,2CAAmB,CAAC;8BACrC,2CAAmB;uDAAC"}
@@ -1,15 +0,0 @@
1
- import { CloudResourceContext } from "../contexts";
2
- import { LudeoEvent } from "../../infra/ludeo-event";
3
- import { CloudProviderSettings, CloudProvider } from "../types";
4
- export declare class GameCreatedResponsePayload {
5
- gameResourceId: string;
6
- gamePoolId: string;
7
- providerSettings: CloudProviderSettings;
8
- cloudProvider: CloudProvider;
9
- }
10
- export declare class GameCreatedResponse extends LudeoEvent {
11
- static readonly EVENT_NAME = "cloud-resources.game-created-response";
12
- constructor(payload: GameCreatedResponsePayload, context: CloudResourceContext);
13
- context: CloudResourceContext;
14
- payload: GameCreatedResponsePayload;
15
- }
@@ -1,54 +0,0 @@
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.GameCreatedResponse = exports.GameCreatedResponsePayload = 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
- const types_1 = require("../types");
18
- class GameCreatedResponsePayload {
19
- }
20
- exports.GameCreatedResponsePayload = GameCreatedResponsePayload;
21
- __decorate([
22
- (0, class_validator_1.IsUUID)(),
23
- __metadata("design:type", String)
24
- ], GameCreatedResponsePayload.prototype, "gameResourceId", void 0);
25
- __decorate([
26
- (0, class_validator_1.IsUUID)(),
27
- __metadata("design:type", String)
28
- ], GameCreatedResponsePayload.prototype, "gamePoolId", void 0);
29
- __decorate([
30
- (0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.AWSProviderSettings),
31
- __metadata("design:type", Object)
32
- ], GameCreatedResponsePayload.prototype, "providerSettings", void 0);
33
- __decorate([
34
- (0, class_validator_1.IsEnum)(types_1.CloudProvider),
35
- __metadata("design:type", String)
36
- ], GameCreatedResponsePayload.prototype, "cloudProvider", void 0);
37
- class GameCreatedResponse extends ludeo_event_1.LudeoEvent {
38
- constructor(payload, context) {
39
- super(GameCreatedResponse.EVENT_NAME);
40
- this.payload = payload;
41
- this.context = context;
42
- }
43
- }
44
- exports.GameCreatedResponse = GameCreatedResponse;
45
- GameCreatedResponse.EVENT_NAME = "cloud-resources.game-created-response";
46
- __decorate([
47
- (0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.CloudResourceContext),
48
- __metadata("design:type", contexts_1.CloudResourceContext)
49
- ], GameCreatedResponse.prototype, "context", void 0);
50
- __decorate([
51
- (0, validate_nested_type_decorator_1.ValidateNestedType)(() => GameCreatedResponsePayload),
52
- __metadata("design:type", GameCreatedResponsePayload)
53
- ], GameCreatedResponse.prototype, "payload", void 0);
54
- //# sourceMappingURL=game-created-response.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"game-created-response.js","sourceRoot":"","sources":["../../../src/v3/events/game-created-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiD;AAEjD,0CAAmD;AACnD,yDAAqD;AACrD,oGAAqF;AACrF,oCAIkB;AAElB,MAAa,0BAA0B;CAYtC;AAZD,gEAYC;AAVC;IADC,IAAA,wBAAM,GAAE;;kEACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;8DACU;AAGnB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,2BAAmB,CAAC;;oEACN;AAGxC;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;iEACO;AAG/B,MAAa,mBAAoB,SAAQ,wBAAU;IAGjD,YACE,OAAmC,EACnC,OAA6B;QAE7B,KAAK,CAAC,mBAAmB,CAAC,UAAU,CAAC,CAAC;QACtC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,kDAiBC;AAhBiB,8BAAU,GAAG,uCAAuC,CAAC;AAYrE;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;oDAAC;AAG9B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,0BAA0B,CAAC;8BAC5C,0BAA0B;oDAAC"}
@@ -1,16 +0,0 @@
1
- import { LudeoEvent } from "../../infra/ludeo-event";
2
- import { CloudResourceContext } from "../contexts/cloud-resource-context";
3
- import { AWSResourceProviderSettings, CloudResourceStatus } from "../types";
4
- export declare class GameStatusChangedEventPayload {
5
- gameResourceId: string;
6
- gamePoolId: string;
7
- providerSettings: AWSResourceProviderSettings;
8
- status: CloudResourceStatus;
9
- error?: string;
10
- }
11
- export declare class GameStatusChangedEvent extends LudeoEvent {
12
- static readonly EVENT_NAME = "cloud-resource-monitor.game-status-changed";
13
- constructor(payload: GameStatusChangedEventPayload, context: CloudResourceContext);
14
- context: CloudResourceContext;
15
- payload: GameStatusChangedEventPayload;
16
- }
@@ -1,59 +0,0 @@
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.GameStatusChangedEvent = exports.GameStatusChangedEventPayload = void 0;
13
- const class_validator_1 = require("class-validator");
14
- const ludeo_event_1 = require("../../infra/ludeo-event");
15
- const cloud_resource_context_1 = require("../contexts/cloud-resource-context");
16
- const types_1 = require("../types");
17
- const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
18
- class GameStatusChangedEventPayload {
19
- }
20
- exports.GameStatusChangedEventPayload = GameStatusChangedEventPayload;
21
- __decorate([
22
- (0, class_validator_1.IsUUID)(),
23
- __metadata("design:type", String)
24
- ], GameStatusChangedEventPayload.prototype, "gameResourceId", void 0);
25
- __decorate([
26
- (0, class_validator_1.IsUUID)(),
27
- __metadata("design:type", String)
28
- ], GameStatusChangedEventPayload.prototype, "gamePoolId", void 0);
29
- __decorate([
30
- (0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.AWSResourceProviderSettings),
31
- __metadata("design:type", types_1.AWSResourceProviderSettings)
32
- ], GameStatusChangedEventPayload.prototype, "providerSettings", void 0);
33
- __decorate([
34
- (0, class_validator_1.IsString)(),
35
- __metadata("design:type", String)
36
- ], GameStatusChangedEventPayload.prototype, "status", void 0);
37
- __decorate([
38
- (0, class_validator_1.IsOptional)(),
39
- (0, class_validator_1.IsString)(),
40
- __metadata("design:type", String)
41
- ], GameStatusChangedEventPayload.prototype, "error", void 0);
42
- class GameStatusChangedEvent extends ludeo_event_1.LudeoEvent {
43
- constructor(payload, context) {
44
- super(GameStatusChangedEvent.EVENT_NAME);
45
- this.payload = payload;
46
- this.context = context;
47
- }
48
- }
49
- exports.GameStatusChangedEvent = GameStatusChangedEvent;
50
- GameStatusChangedEvent.EVENT_NAME = "cloud-resource-monitor.game-status-changed";
51
- __decorate([
52
- (0, validate_nested_type_decorator_1.ValidateNestedType)(() => cloud_resource_context_1.CloudResourceContext),
53
- __metadata("design:type", cloud_resource_context_1.CloudResourceContext)
54
- ], GameStatusChangedEvent.prototype, "context", void 0);
55
- __decorate([
56
- (0, validate_nested_type_decorator_1.ValidateNestedType)(() => GameStatusChangedEventPayload),
57
- __metadata("design:type", GameStatusChangedEventPayload)
58
- ], GameStatusChangedEvent.prototype, "payload", void 0);
59
- //# sourceMappingURL=game-status-changed.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"game-status-changed.js","sourceRoot":"","sources":["../../../src/v3/events/game-status-changed.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAC/D,yDAAqD;AACrD,+EAA0E;AAC1E,oCAA4E;AAC5E,oGAAqF;AAErF,MAAa,6BAA6B;CAgBzC;AAhBD,sEAgBC;AAdC;IADC,IAAA,wBAAM,GAAE;;qEACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;iEACU;AAGnB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,mCAA2B,CAAC;8BACpC,mCAA2B;uEAAC;AAG9C;IADC,IAAA,0BAAQ,GAAE;;6DACiB;AAI5B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;4DACI;AAGjB,MAAa,sBAAuB,SAAQ,wBAAU;IAGpD,YACE,OAAsC,EACtC,OAA6B;QAE7B,KAAK,CAAC,sBAAsB,CAAC,UAAU,CAAC,CAAC;QACzC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,wDAiBC;AAhBiB,iCAAU,GAAG,4CAA4C,CAAC;AAY1E;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,6CAAoB,CAAC;8BACtC,6CAAoB;uDAAC;AAG9B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,6BAA6B,CAAC;8BAC/C,6BAA6B;uDAAC"}
@@ -1,12 +0,0 @@
1
- import { CloudResourceContext } from "../contexts";
2
- import { LudeoEvent } from "../../infra/ludeo-event";
3
- export declare class MachineCreatedResponsePayload {
4
- machineResourceId: string;
5
- machinePoolId: string;
6
- }
7
- export declare class MachineCreatedResponse extends LudeoEvent {
8
- static readonly EVENT_NAME = "cloud-resources.machine-created-response";
9
- constructor(payload: MachineCreatedResponsePayload, context: CloudResourceContext);
10
- context: CloudResourceContext;
11
- payload: MachineCreatedResponsePayload;
12
- }
@@ -1,45 +0,0 @@
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.MachineCreatedResponse = exports.MachineCreatedResponsePayload = 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 MachineCreatedResponsePayload {
18
- }
19
- exports.MachineCreatedResponsePayload = MachineCreatedResponsePayload;
20
- __decorate([
21
- (0, class_validator_1.IsUUID)(),
22
- __metadata("design:type", String)
23
- ], MachineCreatedResponsePayload.prototype, "machineResourceId", void 0);
24
- __decorate([
25
- (0, class_validator_1.IsUUID)(),
26
- __metadata("design:type", String)
27
- ], MachineCreatedResponsePayload.prototype, "machinePoolId", void 0);
28
- class MachineCreatedResponse extends ludeo_event_1.LudeoEvent {
29
- constructor(payload, context) {
30
- super(MachineCreatedResponse.EVENT_NAME);
31
- this.payload = payload;
32
- this.context = context;
33
- }
34
- }
35
- exports.MachineCreatedResponse = MachineCreatedResponse;
36
- MachineCreatedResponse.EVENT_NAME = "cloud-resources.machine-created-response";
37
- __decorate([
38
- (0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.CloudResourceContext),
39
- __metadata("design:type", contexts_1.CloudResourceContext)
40
- ], MachineCreatedResponse.prototype, "context", void 0);
41
- __decorate([
42
- (0, validate_nested_type_decorator_1.ValidateNestedType)(() => MachineCreatedResponsePayload),
43
- __metadata("design:type", MachineCreatedResponsePayload)
44
- ], MachineCreatedResponse.prototype, "payload", void 0);
45
- //# sourceMappingURL=machine-created-response.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"machine-created-response.js","sourceRoot":"","sources":["../../../src/v3/events/machine-created-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyC;AAEzC,0CAAmD;AACnD,yDAAqD;AACrD,oGAAqF;AAErF,MAAa,6BAA6B;CAMzC;AAND,sEAMC;AAJC;IADC,IAAA,wBAAM,GAAE;;wEACiB;AAG1B;IADC,IAAA,wBAAM,GAAE;;oEACa;AAGxB,MAAa,sBAAuB,SAAQ,wBAAU;IAGpD,YACE,OAAsC,EACtC,OAA6B;QAE7B,KAAK,CAAC,sBAAsB,CAAC,UAAU,CAAC,CAAC;QACzC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,wDAiBC;AAhBiB,iCAAU,GAAG,0CAA0C,CAAC;AAYxE;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;uDAAC;AAG9B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,6BAA6B,CAAC;8BAC/C,6BAA6B;uDAAC"}
@@ -1,14 +0,0 @@
1
- import { LudeoEvent } from "../../infra/ludeo-event";
2
- import { AWSResourceProviderSettings, CloudProvider } from "../types";
3
- export declare class MonitorGameTaskEventPayload {
4
- gameResourceId: string;
5
- gamePoolId: string;
6
- providerSettings: AWSResourceProviderSettings;
7
- cloudProvider: CloudProvider;
8
- }
9
- export declare class MonitorGameTaskEvent extends LudeoEvent {
10
- static readonly EVENT_NAME = "cloud-resources.monitor-game-task";
11
- constructor(payload: MonitorGameTaskEventPayload);
12
- context: never;
13
- payload: MonitorGameTaskEventPayload;
14
- }
@@ -1,48 +0,0 @@
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.MonitorGameTaskEvent = exports.MonitorGameTaskEventPayload = void 0;
13
- const class_validator_1 = require("class-validator");
14
- const ludeo_event_1 = require("../../infra/ludeo-event");
15
- const types_1 = require("../types");
16
- const decorators_1 = require("../../decorators");
17
- class MonitorGameTaskEventPayload {
18
- }
19
- exports.MonitorGameTaskEventPayload = MonitorGameTaskEventPayload;
20
- __decorate([
21
- (0, class_validator_1.IsUUID)(),
22
- __metadata("design:type", String)
23
- ], MonitorGameTaskEventPayload.prototype, "gameResourceId", void 0);
24
- __decorate([
25
- (0, class_validator_1.IsUUID)(),
26
- __metadata("design:type", String)
27
- ], MonitorGameTaskEventPayload.prototype, "gamePoolId", void 0);
28
- __decorate([
29
- (0, decorators_1.ValidateNestedType)(() => types_1.AWSResourceProviderSettings),
30
- __metadata("design:type", types_1.AWSResourceProviderSettings)
31
- ], MonitorGameTaskEventPayload.prototype, "providerSettings", void 0);
32
- __decorate([
33
- (0, class_validator_1.IsEnum)(types_1.CloudProvider),
34
- __metadata("design:type", String)
35
- ], MonitorGameTaskEventPayload.prototype, "cloudProvider", void 0);
36
- class MonitorGameTaskEvent extends ludeo_event_1.LudeoEvent {
37
- constructor(payload) {
38
- super(MonitorGameTaskEvent.EVENT_NAME);
39
- this.payload = payload;
40
- }
41
- }
42
- exports.MonitorGameTaskEvent = MonitorGameTaskEvent;
43
- MonitorGameTaskEvent.EVENT_NAME = "cloud-resources.monitor-game-task";
44
- __decorate([
45
- (0, decorators_1.ValidateNestedType)(() => MonitorGameTaskEventPayload),
46
- __metadata("design:type", MonitorGameTaskEventPayload)
47
- ], MonitorGameTaskEvent.prototype, "payload", void 0);
48
- //# sourceMappingURL=monitor-game-task.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"monitor-game-task.js","sourceRoot":"","sources":["../../../src/v3/events/monitor-game-task.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiD;AACjD,yDAAqD;AACrD,oCAAsE;AACtE,iDAAsD;AAEtD,MAAa,2BAA2B;CAYvC;AAZD,kEAYC;AAVC;IADC,IAAA,wBAAM,GAAE;;mEACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;+DACU;AAGnB;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,mCAA2B,CAAC;8BACpC,mCAA2B;qEAAC;AAG9C;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;kEACO;AAG/B,MAAa,oBAAqB,SAAQ,wBAAU;IAGlD,YAAY,OAAoC;QAC9C,KAAK,CAAC,oBAAoB,CAAC,UAAU,CAAC,CAAC;QACvC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AANH,oDAYC;AAXiB,+BAAU,GAAG,mCAAmC,CAAC;AAUjE;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,2BAA2B,CAAC;8BAC7C,2BAA2B;qDAAC"}