@ludeo/cloud-common 1.2.180-beta-yahil-4 → 1.2.180-beta-yahil-5

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.
@@ -0,0 +1,16 @@
1
+ export declare class CreateGameRequestDto {
2
+ gameResourceId: string;
3
+ machineResourceId: string;
4
+ region: string;
5
+ sourceSnapshot: string;
6
+ machineMode?: string;
7
+ machineType?: string;
8
+ additionalEnvironmentVariables?: Record<string, string>;
9
+ metadata?: Record<string, string>;
10
+ }
11
+ export declare class CreateGameResponseDto {
12
+ status: 'accepted' | 'success' | 'error';
13
+ message?: string;
14
+ instanceName?: string;
15
+ selfLink?: string;
16
+ }
@@ -0,0 +1,52 @@
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.CreateGameResponseDto = exports.CreateGameRequestDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ class CreateGameRequestDto {
15
+ }
16
+ exports.CreateGameRequestDto = CreateGameRequestDto;
17
+ __decorate([
18
+ (0, class_validator_1.IsString)(),
19
+ __metadata("design:type", String)
20
+ ], CreateGameRequestDto.prototype, "gameResourceId", void 0);
21
+ __decorate([
22
+ (0, class_validator_1.IsString)(),
23
+ __metadata("design:type", String)
24
+ ], CreateGameRequestDto.prototype, "machineResourceId", void 0);
25
+ __decorate([
26
+ (0, class_validator_1.IsString)(),
27
+ __metadata("design:type", String)
28
+ ], CreateGameRequestDto.prototype, "region", void 0);
29
+ __decorate([
30
+ (0, class_validator_1.IsString)(),
31
+ __metadata("design:type", String)
32
+ ], CreateGameRequestDto.prototype, "sourceSnapshot", void 0);
33
+ __decorate([
34
+ (0, class_validator_1.IsOptional)(),
35
+ __metadata("design:type", String)
36
+ ], CreateGameRequestDto.prototype, "machineMode", void 0);
37
+ __decorate([
38
+ (0, class_validator_1.IsOptional)(),
39
+ __metadata("design:type", String)
40
+ ], CreateGameRequestDto.prototype, "machineType", void 0);
41
+ __decorate([
42
+ (0, class_validator_1.IsOptional)(),
43
+ __metadata("design:type", Object)
44
+ ], CreateGameRequestDto.prototype, "additionalEnvironmentVariables", void 0);
45
+ __decorate([
46
+ (0, class_validator_1.IsOptional)(),
47
+ __metadata("design:type", Object)
48
+ ], CreateGameRequestDto.prototype, "metadata", void 0);
49
+ class CreateGameResponseDto {
50
+ }
51
+ exports.CreateGameResponseDto = CreateGameResponseDto;
52
+ //# sourceMappingURL=create-game.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-game.dto.js","sourceRoot":"","sources":["../../../../src/v4/types/site-controller/create-game.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AAEvD,MAAa,oBAAoB;CAwBhC;AAxBD,oDAwBC;AAtBC;IADC,IAAA,0BAAQ,GAAE;;4DACY;AAGvB;IADC,IAAA,0BAAQ,GAAE;;+DACe;AAG1B;IADC,IAAA,0BAAQ,GAAE;;oDACI;AAGf;IADC,IAAA,0BAAQ,GAAE;;4DACY;AAGvB;IADC,IAAA,4BAAU,GAAE;;yDACQ;AAGrB;IADC,IAAA,4BAAU,GAAE;;yDACQ;AAGrB;IADC,IAAA,4BAAU,GAAE;;4EAC2C;AAGxD;IADC,IAAA,4BAAU,GAAE;;sDACqB;AAGpC,MAAa,qBAAqB;CAQjC;AARD,sDAQC"}
@@ -0,0 +1,15 @@
1
+ import { MachineMode } from './types';
2
+ export declare class CreateMachineRequestDto {
3
+ machineResourceId: string;
4
+ region: string;
5
+ machineMode: MachineMode;
6
+ machineType: string;
7
+ metadata?: Record<string, string>;
8
+ }
9
+ export declare class CreateMachineResponseDto {
10
+ status: 'accepted' | 'success' | 'error';
11
+ message?: string;
12
+ instanceName?: string;
13
+ selfLink?: string;
14
+ zone?: string;
15
+ }
@@ -0,0 +1,41 @@
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.CreateMachineResponseDto = exports.CreateMachineRequestDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const types_1 = require("./types");
15
+ class CreateMachineRequestDto {
16
+ }
17
+ exports.CreateMachineRequestDto = CreateMachineRequestDto;
18
+ __decorate([
19
+ (0, class_validator_1.IsString)(),
20
+ __metadata("design:type", String)
21
+ ], CreateMachineRequestDto.prototype, "machineResourceId", void 0);
22
+ __decorate([
23
+ (0, class_validator_1.IsString)(),
24
+ __metadata("design:type", String)
25
+ ], CreateMachineRequestDto.prototype, "region", void 0);
26
+ __decorate([
27
+ (0, class_validator_1.IsEnum)(types_1.MachineMode),
28
+ __metadata("design:type", String)
29
+ ], CreateMachineRequestDto.prototype, "machineMode", void 0);
30
+ __decorate([
31
+ (0, class_validator_1.IsString)(),
32
+ __metadata("design:type", String)
33
+ ], CreateMachineRequestDto.prototype, "machineType", void 0);
34
+ __decorate([
35
+ (0, class_validator_1.IsOptional)(),
36
+ __metadata("design:type", Object)
37
+ ], CreateMachineRequestDto.prototype, "metadata", void 0);
38
+ class CreateMachineResponseDto {
39
+ }
40
+ exports.CreateMachineResponseDto = CreateMachineResponseDto;
41
+ //# sourceMappingURL=create-machine.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-machine.dto.js","sourceRoot":"","sources":["../../../../src/v4/types/site-controller/create-machine.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAE/D,mCAAsC;AAEtC,MAAa,uBAAuB;CAenC;AAfD,0DAeC;AAbC;IADC,IAAA,0BAAQ,GAAE;;kEACe;AAG1B;IADC,IAAA,0BAAQ,GAAE;;uDACI;AAGf;IADC,IAAA,wBAAM,EAAC,mBAAW,CAAC;;4DACK;AAGzB;IADC,IAAA,0BAAQ,GAAE;;4DACS;AAGpB;IADC,IAAA,4BAAU,GAAE;;yDACqB;AAGpC,MAAa,wBAAwB;CAUpC;AAVD,4DAUC"}
@@ -1 +1,3 @@
1
1
  export * from "./types";
2
+ export * from "./create-machine.dto";
3
+ export * from "./create-game.dto";
@@ -15,4 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./types"), exports);
18
+ __exportStar(require("./create-machine.dto"), exports);
19
+ __exportStar(require("./create-game.dto"), exports);
18
20
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/v4/types/site-controller/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/v4/types/site-controller/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,uDAAqC;AACrC,oDAAkC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ludeo/cloud-common",
3
- "version": "1.2.180-beta-yahil-4",
3
+ "version": "1.2.180-beta-yahil-5",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "author": "Yahil Didi",
@@ -0,0 +1,38 @@
1
+ import { IsOptional, IsString } from 'class-validator';
2
+
3
+ export class CreateGameRequestDto {
4
+ @IsString()
5
+ gameResourceId: string;
6
+
7
+ @IsString()
8
+ machineResourceId: string;
9
+
10
+ @IsString()
11
+ region: string;
12
+
13
+ @IsString()
14
+ sourceSnapshot: string;
15
+
16
+ @IsOptional()
17
+ machineMode?: string;
18
+
19
+ @IsOptional()
20
+ machineType?: string;
21
+
22
+ @IsOptional()
23
+ additionalEnvironmentVariables?: Record<string, string>;
24
+
25
+ @IsOptional()
26
+ metadata?: Record<string, string>;
27
+ }
28
+
29
+ export class CreateGameResponseDto {
30
+ status: 'accepted' | 'success' | 'error';
31
+
32
+ message?: string;
33
+
34
+ instanceName?: string;
35
+
36
+ selfLink?: string;
37
+ }
38
+
@@ -0,0 +1,33 @@
1
+ import { IsEnum, IsOptional, IsString } from 'class-validator';
2
+
3
+ import { MachineMode } from './types';
4
+
5
+ export class CreateMachineRequestDto {
6
+ @IsString()
7
+ machineResourceId: string;
8
+
9
+ @IsString()
10
+ region: string;
11
+
12
+ @IsEnum(MachineMode)
13
+ machineMode: MachineMode;
14
+
15
+ @IsString()
16
+ machineType: string;
17
+
18
+ @IsOptional()
19
+ metadata?: Record<string, string>;
20
+ }
21
+
22
+ export class CreateMachineResponseDto {
23
+ status: 'accepted' | 'success' | 'error';
24
+
25
+ message?: string;
26
+
27
+ instanceName?: string;
28
+
29
+ selfLink?: string;
30
+
31
+ zone?: string;
32
+ }
33
+
@@ -1 +1,3 @@
1
- export * from "./types";
1
+ export * from "./types";
2
+ export * from "./create-machine.dto";
3
+ export * from "./create-game.dto";