@ludeo/cloud-common 1.1.16 → 1.1.17

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,6 +1,6 @@
1
1
  import { CloudResourceContext } from "../contexts";
2
2
  import { LudeoEvent } from "../../infra/ludeo-event";
3
- export declare class MachineAllocatedFailedResponsePayload {
3
+ export declare class MachineAllocationFailedResponsePayload {
4
4
  gameResourceId: string;
5
5
  machinePoolId: string;
6
6
  gamePoolId: string;
@@ -8,7 +8,7 @@ export declare class MachineAllocatedFailedResponsePayload {
8
8
  }
9
9
  export declare class MachineAllocationFailedResponse extends LudeoEvent {
10
10
  static readonly EVENT_NAME = "cloud-resources.machine-allocation-failed-response";
11
- constructor(payload: MachineAllocatedFailedResponsePayload, context: CloudResourceContext);
11
+ constructor(payload: MachineAllocationFailedResponsePayload, context: CloudResourceContext);
12
12
  context: CloudResourceContext;
13
- payload: MachineAllocatedFailedResponsePayload;
13
+ payload: MachineAllocationFailedResponsePayload;
14
14
  }
@@ -9,30 +9,30 @@ 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.MachineAllocationFailedResponse = exports.MachineAllocatedFailedResponsePayload = void 0;
12
+ exports.MachineAllocationFailedResponse = exports.MachineAllocationFailedResponsePayload = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
14
  const contexts_1 = require("../contexts");
15
15
  const ludeo_event_1 = require("../../infra/ludeo-event");
16
16
  const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
17
- class MachineAllocatedFailedResponsePayload {
17
+ class MachineAllocationFailedResponsePayload {
18
18
  }
19
- exports.MachineAllocatedFailedResponsePayload = MachineAllocatedFailedResponsePayload;
19
+ exports.MachineAllocationFailedResponsePayload = MachineAllocationFailedResponsePayload;
20
20
  __decorate([
21
21
  (0, class_validator_1.IsUUID)(),
22
22
  __metadata("design:type", String)
23
- ], MachineAllocatedFailedResponsePayload.prototype, "gameResourceId", void 0);
23
+ ], MachineAllocationFailedResponsePayload.prototype, "gameResourceId", void 0);
24
24
  __decorate([
25
25
  (0, class_validator_1.IsUUID)(),
26
26
  __metadata("design:type", String)
27
- ], MachineAllocatedFailedResponsePayload.prototype, "machinePoolId", void 0);
27
+ ], MachineAllocationFailedResponsePayload.prototype, "machinePoolId", void 0);
28
28
  __decorate([
29
29
  (0, class_validator_1.IsUUID)(),
30
30
  __metadata("design:type", String)
31
- ], MachineAllocatedFailedResponsePayload.prototype, "gamePoolId", void 0);
31
+ ], MachineAllocationFailedResponsePayload.prototype, "gamePoolId", void 0);
32
32
  __decorate([
33
33
  (0, class_validator_1.IsString)(),
34
34
  __metadata("design:type", String)
35
- ], MachineAllocatedFailedResponsePayload.prototype, "errorMessage", void 0);
35
+ ], MachineAllocationFailedResponsePayload.prototype, "errorMessage", void 0);
36
36
  class MachineAllocationFailedResponse extends ludeo_event_1.LudeoEvent {
37
37
  constructor(payload, context) {
38
38
  super(MachineAllocationFailedResponse.EVENT_NAME);
@@ -47,7 +47,7 @@ __decorate([
47
47
  __metadata("design:type", contexts_1.CloudResourceContext)
48
48
  ], MachineAllocationFailedResponse.prototype, "context", void 0);
49
49
  __decorate([
50
- (0, validate_nested_type_decorator_1.ValidateNestedType)(() => MachineAllocatedFailedResponsePayload),
51
- __metadata("design:type", MachineAllocatedFailedResponsePayload)
50
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => MachineAllocationFailedResponsePayload),
51
+ __metadata("design:type", MachineAllocationFailedResponsePayload)
52
52
  ], MachineAllocationFailedResponse.prototype, "payload", void 0);
53
53
  //# sourceMappingURL=machine-allocation-failed-response.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"machine-allocation-failed-response.js","sourceRoot":"","sources":["../../../src/v3/events/machine-allocation-failed-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmD;AAEnD,0CAAmD;AACnD,yDAAqD;AACrD,oGAAqF;AAErF,MAAa,qCAAqC;CAYjD;AAZD,sFAYC;AAVC;IADC,IAAA,wBAAM,GAAE;;6EACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;4EACa;AAGtB;IADC,IAAA,wBAAM,GAAE;;yEACU;AAGnB;IADC,IAAA,0BAAQ,GAAE;;2EACU;AAGvB,MAAa,+BAAgC,SAAQ,wBAAU;IAI7D,YACE,OAA8C,EAC9C,OAA6B;QAE7B,KAAK,CAAC,+BAA+B,CAAC,UAAU,CAAC,CAAC;QAClD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAXH,0EAkBC;AAjBiB,0CAAU,GACxB,oDAAoD,CAAC;AAYvD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;gEAAC;AAG9B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,qCAAqC,CAAC;8BACvD,qCAAqC;gEAAC"}
1
+ {"version":3,"file":"machine-allocation-failed-response.js","sourceRoot":"","sources":["../../../src/v3/events/machine-allocation-failed-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmD;AAEnD,0CAAmD;AACnD,yDAAqD;AACrD,oGAAqF;AAErF,MAAa,sCAAsC;CAYlD;AAZD,wFAYC;AAVC;IADC,IAAA,wBAAM,GAAE;;8EACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;6EACa;AAGtB;IADC,IAAA,wBAAM,GAAE;;0EACU;AAGnB;IADC,IAAA,0BAAQ,GAAE;;4EACU;AAGvB,MAAa,+BAAgC,SAAQ,wBAAU;IAI7D,YACE,OAA+C,EAC/C,OAA6B;QAE7B,KAAK,CAAC,+BAA+B,CAAC,UAAU,CAAC,CAAC;QAClD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAXH,0EAkBC;AAjBiB,0CAAU,GACxB,oDAAoD,CAAC;AAYvD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;gEAAC;AAG9B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,sCAAsC,CAAC;8BACxD,sCAAsC;gEAAC"}
@@ -4,7 +4,7 @@ export declare class SwapCloudUserRequestFailedPayload {
4
4
  connectionId: string;
5
5
  defaultUserSessionToken: string;
6
6
  actualUserSessionToken: string;
7
- error: string;
7
+ errorMessage: string;
8
8
  sourceService: string;
9
9
  }
10
10
  export declare class SwapCloudUserRequestFailed extends LudeoEvent {
@@ -32,7 +32,7 @@ __decorate([
32
32
  __decorate([
33
33
  (0, class_validator_1.IsString)(),
34
34
  __metadata("design:type", String)
35
- ], SwapCloudUserRequestFailedPayload.prototype, "error", void 0);
35
+ ], SwapCloudUserRequestFailedPayload.prototype, "errorMessage", void 0);
36
36
  __decorate([
37
37
  (0, class_validator_1.IsString)(),
38
38
  __metadata("design:type", String)
@@ -1 +1 @@
1
- {"version":3,"file":"swap-cloud-user-request-failed.js","sourceRoot":"","sources":["../../../src/v3/events/swap-cloud-user-request-failed.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmD;AAEnD,0CAAkD;AAClD,yDAAqD;AACrD,oGAAqF;AAErF,MAAa,iCAAiC;CAe7C;AAfD,8EAeC;AAbC;IADC,IAAA,wBAAM,GAAE;;uEACY;AAGrB;IADC,IAAA,0BAAQ,GAAE;;kFACqB;AAGhC;IADC,IAAA,0BAAQ,GAAE;;iFACoB;AAG/B;IADC,IAAA,0BAAQ,GAAE;;gEACG;AAGd;IADC,IAAA,0BAAQ,GAAE;;wEACW;AAGxB,MAAa,0BAA2B,SAAQ,wBAAU;IAGxD,YACE,OAA0C,EAC1C,OAA4B;QAE5B,KAAK,CAAC,0BAA0B,CAAC,UAAU,CAAC,CAAC;QAC7C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,gEAiBC;AAhBiB,qCAAU,GAAG,+CAA+C,CAAC;AAY7E;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,8BAAmB,CAAC;8BACrC,8BAAmB;2DAAC;AAG7B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,0BAA0B,CAAC;8BAC5C,iCAAiC;2DAAC"}
1
+ {"version":3,"file":"swap-cloud-user-request-failed.js","sourceRoot":"","sources":["../../../src/v3/events/swap-cloud-user-request-failed.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmD;AAEnD,0CAAkD;AAClD,yDAAqD;AACrD,oGAAqF;AAErF,MAAa,iCAAiC;CAe7C;AAfD,8EAeC;AAbC;IADC,IAAA,wBAAM,GAAE;;uEACY;AAGrB;IADC,IAAA,0BAAQ,GAAE;;kFACqB;AAGhC;IADC,IAAA,0BAAQ,GAAE;;iFACoB;AAG/B;IADC,IAAA,0BAAQ,GAAE;;uEACU;AAGrB;IADC,IAAA,0BAAQ,GAAE;;wEACW;AAGxB,MAAa,0BAA2B,SAAQ,wBAAU;IAGxD,YACE,OAA0C,EAC1C,OAA4B;QAE5B,KAAK,CAAC,0BAA0B,CAAC,UAAU,CAAC,CAAC;QAC7C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,gEAiBC;AAhBiB,qCAAU,GAAG,+CAA+C,CAAC;AAY7E;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,8BAAmB,CAAC;8BACrC,8BAAmB;2DAAC;AAG7B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,0BAA0B,CAAC;8BAC5C,iCAAiC;2DAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ludeo/cloud-common",
3
- "version": "1.1.16",
3
+ "version": "1.1.17",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "author": "Yahil Didi",
@@ -4,7 +4,7 @@ import { CloudResourceContext } from "../contexts";
4
4
  import { LudeoEvent } from "../../infra/ludeo-event";
5
5
  import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
6
6
 
7
- export class MachineAllocatedFailedResponsePayload {
7
+ export class MachineAllocationFailedResponsePayload {
8
8
  @IsUUID()
9
9
  gameResourceId: string;
10
10
 
@@ -23,7 +23,7 @@ export class MachineAllocationFailedResponse extends LudeoEvent {
23
23
  "cloud-resources.machine-allocation-failed-response";
24
24
 
25
25
  constructor(
26
- payload: MachineAllocatedFailedResponsePayload,
26
+ payload: MachineAllocationFailedResponsePayload,
27
27
  context: CloudResourceContext
28
28
  ) {
29
29
  super(MachineAllocationFailedResponse.EVENT_NAME);
@@ -34,6 +34,6 @@ export class MachineAllocationFailedResponse extends LudeoEvent {
34
34
  @ValidateNestedType(() => CloudResourceContext)
35
35
  context: CloudResourceContext;
36
36
 
37
- @ValidateNestedType(() => MachineAllocatedFailedResponsePayload)
38
- payload: MachineAllocatedFailedResponsePayload;
37
+ @ValidateNestedType(() => MachineAllocationFailedResponsePayload)
38
+ payload: MachineAllocationFailedResponsePayload;
39
39
  }
@@ -15,7 +15,7 @@ export class SwapCloudUserRequestFailedPayload {
15
15
  actualUserSessionToken: string;
16
16
 
17
17
  @IsString()
18
- error: string;
18
+ errorMessage: string;
19
19
 
20
20
  @IsString()
21
21
  sourceService: string;