@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.
@@ -13,4 +13,5 @@ export declare class CloudResourceContext {
13
13
  platformStatusRequestId?: string;
14
14
  ludeoResourceId?: string;
15
15
  ludeoPoolId?: string;
16
+ gameId?: string;
16
17
  }
@@ -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;CAqDhC;AArDD,oDAqDC;AAlDC;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;;2D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FC,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,qDAAyC;AAGzC,MAAa,uBAAwB,SAAQ,yBAAkB;CAK9D;AALD,0DAKC;AADC;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"}
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,6 +1,6 @@
1
1
  {
2
2
  "name": "@ludeo/cloud-common",
3
- "version": "1.2.184-beta-yahil-4",
3
+ "version": "1.2.184-beta-yahil-6",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "author": "Yahil Didi",
@@ -54,4 +54,8 @@ export class CloudResourceContext {
54
54
  @IsOptional()
55
55
  @IsUUID()
56
56
  ludeoPoolId?: string;
57
+
58
+ @IsOptional()
59
+ @IsUUID()
60
+ gameId?: string;
57
61
  }
@@ -20,4 +20,4 @@ export class BaseCommand<T extends BaseCommandPayload> {
20
20
  getTopic(): string {
21
21
  return `${AGENT_STRING}/${this.machineResourceId}/${COMMAND_STRING}/${this.commandName}`;
22
22
  }
23
- }
23
+ }
@@ -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
  }