@ludeo/cloud-common 1.2.8 → 1.2.10
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/events/cloud-machine-auth-ready.d.ts +3 -4
- package/dist/v4/events/cloud-machine-auth-ready.js +9 -8
- package/dist/v4/events/cloud-machine-auth-ready.js.map +1 -1
- package/dist/v4/events/ludeo-resource-allocation-failed.d.ts +3 -3
- package/dist/v4/events/ludeo-resource-allocation-failed.js +2 -2
- package/dist/v4/events/ludeo-resource-allocation-failed.js.map +1 -1
- package/package.json +1 -1
- package/src/v4/events/cloud-machine-auth-ready.ts +7 -4
- package/src/v4/events/ludeo-resource-allocation-failed.ts +4 -4
|
@@ -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
|
|
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:
|
|
13
|
-
payload:
|
|
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
|
|
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
|
-
],
|
|
24
|
+
], CloudMachineAuthReadyPayload.prototype, "authToken", void 0);
|
|
24
25
|
__decorate([
|
|
25
26
|
(0, class_validator_1.IsString)(),
|
|
26
27
|
__metadata("design:type", String)
|
|
27
|
-
],
|
|
28
|
+
], CloudMachineAuthReadyPayload.prototype, "sessionToken", void 0);
|
|
28
29
|
__decorate([
|
|
29
30
|
(0, class_validator_1.IsUUID)(),
|
|
30
31
|
__metadata("design:type", String)
|
|
31
|
-
],
|
|
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
|
-
],
|
|
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)(() =>
|
|
48
|
-
__metadata("design:type",
|
|
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,
|
|
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"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
2
|
-
import {
|
|
2
|
+
import { CloudSessionContext } from "../contexts";
|
|
3
3
|
import { AllocationRequestData } from "../types";
|
|
4
4
|
export declare class LudeoResourceAllocationFailedPayload {
|
|
5
5
|
ludeoResourceId: string;
|
|
@@ -9,7 +9,7 @@ export declare class LudeoResourceAllocationFailedPayload {
|
|
|
9
9
|
}
|
|
10
10
|
export declare class LudeoResourceAllocationFailedResponse extends LudeoEvent {
|
|
11
11
|
static readonly EVENT_NAME = "cloud-resources.ludeo-resource-allocation-failed";
|
|
12
|
-
constructor(payload: LudeoResourceAllocationFailedPayload, context:
|
|
13
|
-
context:
|
|
12
|
+
constructor(payload: LudeoResourceAllocationFailedPayload, context: CloudSessionContext);
|
|
13
|
+
context: CloudSessionContext;
|
|
14
14
|
payload: LudeoResourceAllocationFailedPayload;
|
|
15
15
|
}
|
|
@@ -44,8 +44,8 @@ class LudeoResourceAllocationFailedResponse extends ludeo_event_1.LudeoEvent {
|
|
|
44
44
|
exports.LudeoResourceAllocationFailedResponse = LudeoResourceAllocationFailedResponse;
|
|
45
45
|
LudeoResourceAllocationFailedResponse.EVENT_NAME = "cloud-resources.ludeo-resource-allocation-failed";
|
|
46
46
|
__decorate([
|
|
47
|
-
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.
|
|
48
|
-
__metadata("design:type", contexts_1.
|
|
47
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.CloudSessionContext),
|
|
48
|
+
__metadata("design:type", contexts_1.CloudSessionContext)
|
|
49
49
|
], LudeoResourceAllocationFailedResponse.prototype, "context", void 0);
|
|
50
50
|
__decorate([
|
|
51
51
|
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => LudeoResourceAllocationFailedPayload),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ludeo-resource-allocation-failed.js","sourceRoot":"","sources":["../../../src/v4/events/ludeo-resource-allocation-failed.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmD;AACnD,yDAAqD;AACrD,oGAAqF;AACrF,
|
|
1
|
+
{"version":3,"file":"ludeo-resource-allocation-failed.js","sourceRoot":"","sources":["../../../src/v4/events/ludeo-resource-allocation-failed.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmD;AACnD,yDAAqD;AACrD,oGAAqF;AACrF,0CAAkD;AAClD,oCAAiD;AAEjD,MAAa,oCAAoC;CAYhD;AAZD,oFAYC;AAVC;IADC,IAAA,wBAAM,GAAE;;6EACe;AAGxB;IADC,IAAA,wBAAM,GAAE;;yEACW;AAGpB;IADC,IAAA,0BAAQ,GAAE;;0EACU;AAGrB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,6BAAqB,CAAC;8BACnC,6BAAqB;yEAAC;AAGrC,MAAa,qCAAsC,SAAQ,wBAAU;IAInE,YACE,OAA6C,EAC7C,OAA4B;QAE5B,KAAK,CAAC,qCAAqC,CAAC,UAAU,CAAC,CAAC;QACxD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAXH,sFAkBC;AAjBiB,gDAAU,GACxB,kDAAkD,CAAC;AAYrD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,8BAAmB,CAAC;8BACrC,8BAAmB;sEAAC;AAG7B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,oCAAoC,CAAC;8BACtD,oCAAoC;sEAAC"}
|
package/package.json
CHANGED
|
@@ -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
|
|
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(
|
|
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(() =>
|
|
34
|
-
public payload:
|
|
36
|
+
@ValidateNestedType(() => CloudMachineAuthReadyPayload)
|
|
37
|
+
public payload: CloudMachineAuthReadyPayload;
|
|
35
38
|
|
|
36
39
|
@ValidateNestedType(() => CloudResourceContext)
|
|
37
40
|
public context: CloudResourceContext;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IsString, IsUUID } from "class-validator";
|
|
2
2
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
3
3
|
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
4
|
-
import {
|
|
4
|
+
import { CloudSessionContext } from "../contexts";
|
|
5
5
|
import { AllocationRequestData } from "../types";
|
|
6
6
|
|
|
7
7
|
export class LudeoResourceAllocationFailedPayload {
|
|
@@ -24,15 +24,15 @@ export class LudeoResourceAllocationFailedResponse extends LudeoEvent {
|
|
|
24
24
|
|
|
25
25
|
constructor(
|
|
26
26
|
payload: LudeoResourceAllocationFailedPayload,
|
|
27
|
-
context:
|
|
27
|
+
context: CloudSessionContext
|
|
28
28
|
) {
|
|
29
29
|
super(LudeoResourceAllocationFailedResponse.EVENT_NAME);
|
|
30
30
|
this.payload = payload;
|
|
31
31
|
this.context = context;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
@ValidateNestedType(() =>
|
|
35
|
-
context:
|
|
34
|
+
@ValidateNestedType(() => CloudSessionContext)
|
|
35
|
+
context: CloudSessionContext;
|
|
36
36
|
|
|
37
37
|
@ValidateNestedType(() => LudeoResourceAllocationFailedPayload)
|
|
38
38
|
payload: LudeoResourceAllocationFailedPayload;
|