@ludeo/cloud-common 1.2.8 → 1.2.9

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.
@@ -1,7 +1,7 @@
1
1
  import { LudeoEvent } from "../../infra";
2
2
  import { CloudResourceContext } from "../contexts";
3
3
  import { CreateGameResourceRequestPayload } from "./create-game-resource-request";
4
- declare class CloudAuthReadyPayload {
4
+ export declare class CloudMachineAuthReadyPayload {
5
5
  authToken: string;
6
6
  sessionToken: string;
7
7
  resourceId: string;
@@ -9,8 +9,7 @@ declare class CloudAuthReadyPayload {
9
9
  }
10
10
  export declare class CloudMachineAuthReady extends LudeoEvent {
11
11
  static readonly EVENT_NAME = "authentication.cloud-machine-auth-ready";
12
- constructor(payload: CloudAuthReadyPayload, context: CloudResourceContext);
13
- payload: CloudAuthReadyPayload;
12
+ constructor(payload: CloudMachineAuthReadyPayload, context: CloudResourceContext);
13
+ payload: CloudMachineAuthReadyPayload;
14
14
  context: CloudResourceContext;
15
15
  }
16
- export {};
@@ -9,31 +9,32 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.CloudMachineAuthReady = void 0;
12
+ exports.CloudMachineAuthReady = exports.CloudMachineAuthReadyPayload = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
14
  const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
15
15
  const infra_1 = require("../../infra");
16
16
  const contexts_1 = require("../contexts");
17
17
  const create_game_resource_request_1 = require("./create-game-resource-request");
18
- class CloudAuthReadyPayload {
18
+ class CloudMachineAuthReadyPayload {
19
19
  }
20
+ exports.CloudMachineAuthReadyPayload = CloudMachineAuthReadyPayload;
20
21
  __decorate([
21
22
  (0, class_validator_1.IsUUID)(),
22
23
  __metadata("design:type", String)
23
- ], CloudAuthReadyPayload.prototype, "authToken", void 0);
24
+ ], CloudMachineAuthReadyPayload.prototype, "authToken", void 0);
24
25
  __decorate([
25
26
  (0, class_validator_1.IsString)(),
26
27
  __metadata("design:type", String)
27
- ], CloudAuthReadyPayload.prototype, "sessionToken", void 0);
28
+ ], CloudMachineAuthReadyPayload.prototype, "sessionToken", void 0);
28
29
  __decorate([
29
30
  (0, class_validator_1.IsUUID)(),
30
31
  __metadata("design:type", String)
31
- ], CloudAuthReadyPayload.prototype, "resourceId", void 0);
32
+ ], CloudMachineAuthReadyPayload.prototype, "resourceId", void 0);
32
33
  __decorate([
33
34
  (0, class_validator_1.IsOptional)(),
34
35
  (0, validate_nested_type_decorator_1.ValidateNestedType)(() => create_game_resource_request_1.CreateGameResourceRequestPayload),
35
36
  __metadata("design:type", create_game_resource_request_1.CreateGameResourceRequestPayload)
36
- ], CloudAuthReadyPayload.prototype, "gameResourceCreationPayload", void 0);
37
+ ], CloudMachineAuthReadyPayload.prototype, "gameResourceCreationPayload", void 0);
37
38
  class CloudMachineAuthReady extends infra_1.LudeoEvent {
38
39
  constructor(payload, context) {
39
40
  super(CloudMachineAuthReady.EVENT_NAME);
@@ -44,8 +45,8 @@ class CloudMachineAuthReady extends infra_1.LudeoEvent {
44
45
  exports.CloudMachineAuthReady = CloudMachineAuthReady;
45
46
  CloudMachineAuthReady.EVENT_NAME = "authentication.cloud-machine-auth-ready";
46
47
  __decorate([
47
- (0, validate_nested_type_decorator_1.ValidateNestedType)(() => CloudAuthReadyPayload),
48
- __metadata("design:type", CloudAuthReadyPayload)
48
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => CloudMachineAuthReadyPayload),
49
+ __metadata("design:type", CloudMachineAuthReadyPayload)
49
50
  ], CloudMachineAuthReady.prototype, "payload", void 0);
50
51
  __decorate([
51
52
  (0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.CloudResourceContext),
@@ -1 +1 @@
1
- {"version":3,"file":"cloud-machine-auth-ready.js","sourceRoot":"","sources":["../../../src/v4/events/cloud-machine-auth-ready.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAC/D,oGAAqF;AACrF,uCAAyC;AACzC,0CAAmD;AACnD,iFAAkF;AAElF,MAAM,qBAAqB;CAc1B;AAZC;IADC,IAAA,wBAAM,GAAE;;wDACS;AAGlB;IADC,IAAA,0BAAQ,GAAE;;2DACU;AAIrB;IADC,IAAA,wBAAM,GAAE;;yDACU;AAInB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+DAAgC,CAAC;8BAC7B,+DAAgC;0EAAC;AAGjE,MAAa,qBAAsB,SAAQ,kBAAU;IAGnD,YAAY,OAA8B,EAAE,OAA6B;QACvE,KAAK,CAAC,qBAAqB,CAAC,UAAU,CAAC,CAAC;QAExC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AARH,sDAeC;AAdiB,gCAAU,GAAG,yCAAyC,CAAC;AAUhE;IADN,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,qBAAqB,CAAC;8BAChC,qBAAqB;sDAAC;AAG/B;IADN,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BAC/B,+BAAoB;sDAAC"}
1
+ {"version":3,"file":"cloud-machine-auth-ready.js","sourceRoot":"","sources":["../../../src/v4/events/cloud-machine-auth-ready.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAC/D,oGAAqF;AACrF,uCAAyC;AACzC,0CAAmD;AACnD,iFAAkF;AAElF,MAAa,4BAA4B;CAcxC;AAdD,oEAcC;AAZC;IADC,IAAA,wBAAM,GAAE;;+DACS;AAGlB;IADC,IAAA,0BAAQ,GAAE;;kEACU;AAIrB;IADC,IAAA,wBAAM,GAAE;;gEACU;AAInB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+DAAgC,CAAC;8BAC7B,+DAAgC;iFAAC;AAGjE,MAAa,qBAAsB,SAAQ,kBAAU;IAGnD,YACE,OAAqC,EACrC,OAA6B;QAE7B,KAAK,CAAC,qBAAqB,CAAC,UAAU,CAAC,CAAC;QAExC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAXH,sDAkBC;AAjBiB,gCAAU,GAAG,yCAAyC,CAAC;AAahE;IADN,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAA4B,CAAC;8BACvC,4BAA4B;sDAAC;AAGtC;IADN,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BAC/B,+BAAoB;sDAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ludeo/cloud-common",
3
- "version": "1.2.8",
3
+ "version": "1.2.9",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "author": "Yahil Didi",
@@ -4,7 +4,7 @@ import { LudeoEvent } from "../../infra";
4
4
  import { CloudResourceContext } from "../contexts";
5
5
  import { CreateGameResourceRequestPayload } from "./create-game-resource-request";
6
6
 
7
- class CloudAuthReadyPayload {
7
+ export class CloudMachineAuthReadyPayload {
8
8
  @IsUUID()
9
9
  authToken: string;
10
10
 
@@ -23,15 +23,18 @@ class CloudAuthReadyPayload {
23
23
  export class CloudMachineAuthReady extends LudeoEvent {
24
24
  static readonly EVENT_NAME = "authentication.cloud-machine-auth-ready";
25
25
 
26
- constructor(payload: CloudAuthReadyPayload, context: CloudResourceContext) {
26
+ constructor(
27
+ payload: CloudMachineAuthReadyPayload,
28
+ context: CloudResourceContext
29
+ ) {
27
30
  super(CloudMachineAuthReady.EVENT_NAME);
28
31
 
29
32
  this.payload = payload;
30
33
  this.context = context;
31
34
  }
32
35
 
33
- @ValidateNestedType(() => CloudAuthReadyPayload)
34
- public payload: CloudAuthReadyPayload;
36
+ @ValidateNestedType(() => CloudMachineAuthReadyPayload)
37
+ public payload: CloudMachineAuthReadyPayload;
35
38
 
36
39
  @ValidateNestedType(() => CloudResourceContext)
37
40
  public context: CloudResourceContext;