@ludeo/cloud-common 1.1.72 → 1.1.73

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 (26) 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 +1 -1
  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
@@ -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,6 +1,6 @@
1
1
  {
2
2
  "name": "@ludeo/cloud-common",
3
- "version": "1.1.72",
3
+ "version": "1.1.73",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "author": "Yahil Didi",
@@ -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
  }