@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.
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/v3/events/machine-allocation-failed-response.d.ts +3 -3
- package/dist/v3/events/machine-allocation-failed-response.js +9 -9
- package/dist/v3/events/machine-allocation-failed-response.js.map +1 -1
- package/dist/v3/events/swap-cloud-user-request-failed.d.ts +1 -1
- package/dist/v3/events/swap-cloud-user-request-failed.js +1 -1
- package/dist/v3/events/swap-cloud-user-request-failed.js.map +1 -1
- package/package.json +1 -1
- package/src/v3/events/machine-allocation-failed-response.ts +4 -4
- package/src/v3/events/swap-cloud-user-request-failed.ts +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CloudResourceContext } from "../contexts";
|
|
2
2
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
3
|
-
export declare class
|
|
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:
|
|
11
|
+
constructor(payload: MachineAllocationFailedResponsePayload, context: CloudResourceContext);
|
|
12
12
|
context: CloudResourceContext;
|
|
13
|
-
payload:
|
|
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.
|
|
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
|
|
17
|
+
class MachineAllocationFailedResponsePayload {
|
|
18
18
|
}
|
|
19
|
-
exports.
|
|
19
|
+
exports.MachineAllocationFailedResponsePayload = MachineAllocationFailedResponsePayload;
|
|
20
20
|
__decorate([
|
|
21
21
|
(0, class_validator_1.IsUUID)(),
|
|
22
22
|
__metadata("design:type", String)
|
|
23
|
-
],
|
|
23
|
+
], MachineAllocationFailedResponsePayload.prototype, "gameResourceId", void 0);
|
|
24
24
|
__decorate([
|
|
25
25
|
(0, class_validator_1.IsUUID)(),
|
|
26
26
|
__metadata("design:type", String)
|
|
27
|
-
],
|
|
27
|
+
], MachineAllocationFailedResponsePayload.prototype, "machinePoolId", void 0);
|
|
28
28
|
__decorate([
|
|
29
29
|
(0, class_validator_1.IsUUID)(),
|
|
30
30
|
__metadata("design:type", String)
|
|
31
|
-
],
|
|
31
|
+
], MachineAllocationFailedResponsePayload.prototype, "gamePoolId", void 0);
|
|
32
32
|
__decorate([
|
|
33
33
|
(0, class_validator_1.IsString)(),
|
|
34
34
|
__metadata("design:type", String)
|
|
35
|
-
],
|
|
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)(() =>
|
|
51
|
-
__metadata("design:type",
|
|
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,
|
|
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
|
-
|
|
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, "
|
|
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;;
|
|
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
|
@@ -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
|
|
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:
|
|
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(() =>
|
|
38
|
-
payload:
|
|
37
|
+
@ValidateNestedType(() => MachineAllocationFailedResponsePayload)
|
|
38
|
+
payload: MachineAllocationFailedResponsePayload;
|
|
39
39
|
}
|