@ludeo/cloud-common 1.2.184-beta-yahil-4 → 1.2.184-beta-yahil-6
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.
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/v4/contexts/cloud-resource-context.d.ts +1 -0
- package/dist/v4/contexts/cloud-resource-context.js +5 -0
- package/dist/v4/contexts/cloud-resource-context.js.map +1 -1
- package/dist/v4/events/site-controller/start-game.command.d.ts +1 -0
- package/dist/v4/events/site-controller/start-game.command.js +4 -0
- package/dist/v4/events/site-controller/start-game.command.js.map +1 -1
- package/package.json +1 -1
- package/src/v4/contexts/cloud-resource-context.ts +4 -0
- package/src/v4/events/base/base.ts +1 -1
- package/src/v4/events/site-controller/start-game.command.ts +4 -1
|
@@ -79,4 +79,9 @@ __decorate([
|
|
|
79
79
|
(0, class_validator_1.IsUUID)(),
|
|
80
80
|
__metadata("design:type", String)
|
|
81
81
|
], CloudResourceContext.prototype, "ludeoPoolId", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, class_validator_1.IsOptional)(),
|
|
84
|
+
(0, class_validator_1.IsUUID)(),
|
|
85
|
+
__metadata("design:type", String)
|
|
86
|
+
], CloudResourceContext.prototype, "gameId", void 0);
|
|
82
87
|
//# sourceMappingURL=cloud-resource-context.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cloud-resource-context.js","sourceRoot":"","sources":["../../../src/v4/contexts/cloud-resource-context.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuE;AACvE,0CAA+C;AAE/C,MAAa,oBAAoB;
|
|
1
|
+
{"version":3,"file":"cloud-resource-context.js","sourceRoot":"","sources":["../../../src/v4/contexts/cloud-resource-context.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuE;AACvE,0CAA+C;AAE/C,MAAa,oBAAoB;CAyDhC;AAzDD,oDAyDC;AAtDC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;2DACY;AAIvB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;6DACc;AAGzB;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;2DACO;AAK7B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;wDACS;AAKpB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;oDACK;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;wDACW;AAIpB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;4DACe;AAIxB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;2DACc;AAIvB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;+DACkB;AAI3B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;kEACqB;AAI9B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;qEACwB;AAIjC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;6DACgB;AAIzB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;yDACY;AAIrB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;oDACO"}
|
|
@@ -2,6 +2,7 @@ import { BaseCommand, BaseCommandPayload } from '../base/base';
|
|
|
2
2
|
import { GameCreationPayload, MachineMode } from '../../types/site-controller';
|
|
3
3
|
export declare class StartGameCommandPayload extends BaseCommandPayload {
|
|
4
4
|
payload: GameCreationPayload;
|
|
5
|
+
gameResourceId: string;
|
|
5
6
|
machineMode: MachineMode;
|
|
6
7
|
}
|
|
7
8
|
export declare class StartGameCommand extends BaseCommand<StartGameCommandPayload> {
|
|
@@ -17,6 +17,10 @@ const class_validator_1 = require("class-validator");
|
|
|
17
17
|
class StartGameCommandPayload extends base_1.BaseCommandPayload {
|
|
18
18
|
}
|
|
19
19
|
exports.StartGameCommandPayload = StartGameCommandPayload;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_validator_1.IsString)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], StartGameCommandPayload.prototype, "gameResourceId", void 0);
|
|
20
24
|
__decorate([
|
|
21
25
|
(0, class_validator_1.IsEnum)(site_controller_1.MachineMode),
|
|
22
26
|
__metadata("design:type", String)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"start-game.command.js","sourceRoot":"","sources":["../../../../src/v4/events/site-controller/start-game.command.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uCAA+D;AAC/D,iEAA+E;AAC/E,oDAAyD;AACzD,
|
|
1
|
+
{"version":3,"file":"start-game.command.js","sourceRoot":"","sources":["../../../../src/v4/events/site-controller/start-game.command.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uCAA+D;AAC/D,iEAA+E;AAC/E,oDAAyD;AACzD,qDAAmD;AAGnD,MAAa,uBAAwB,SAAQ,yBAAkB;CAQ9D;AARD,0DAQC;AAJC;IADC,IAAA,0BAAQ,GAAE;;+DACY;AAGvB;IADC,IAAA,wBAAM,EAAC,6BAAW,CAAC;;4DACK;AAG3B,MAAa,gBAAiB,SAAQ,kBAAoC;IAIxE,YAAY,OAAgC;QAC1C,KAAK,CAAC,OAAO,CAAC,iBAAiB,EAAE,YAAY,EAAE,OAAO,CAAC,CAAC;IAC1D,CAAC;CACF;AAPD,4CAOC;AALC;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,uBAAuB,CAAC;8BACzC,uBAAuB;iDAAC"}
|
package/package.json
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { BaseCommand, BaseCommandPayload } from '../base/base';
|
|
2
2
|
import { GameCreationPayload, MachineMode } from '../../types/site-controller';
|
|
3
3
|
import { ValidateNestedType } from '../../../decorators';
|
|
4
|
-
import { IsEnum } from 'class-validator';
|
|
4
|
+
import { IsEnum, IsString } from 'class-validator';
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
export class StartGameCommandPayload extends BaseCommandPayload {
|
|
8
8
|
payload: GameCreationPayload;
|
|
9
9
|
|
|
10
|
+
@IsString()
|
|
11
|
+
gameResourceId: string;
|
|
12
|
+
|
|
10
13
|
@IsEnum(MachineMode)
|
|
11
14
|
machineMode: MachineMode;
|
|
12
15
|
}
|