@ludeo/cloud-common 1.1.112 → 1.1.113-beta1
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/cloud-machine-auth-ready.d.ts +2 -0
- package/dist/v3/events/cloud-machine-auth-ready.js +5 -0
- package/dist/v3/events/cloud-machine-auth-ready.js.map +1 -1
- package/dist/v3/events/prepare-cloud-machine-auth-failed.d.ts +3 -1
- package/dist/v3/events/prepare-cloud-machine-auth-failed.js +5 -0
- package/dist/v3/events/prepare-cloud-machine-auth-failed.js.map +1 -1
- package/dist/v3/events/prepare-cloud-machine-auth.d.ts +2 -0
- package/dist/v3/events/prepare-cloud-machine-auth.js +5 -0
- package/dist/v3/events/prepare-cloud-machine-auth.js.map +1 -1
- package/package.json +1 -1
- package/src/v3/events/cloud-machine-auth-ready.ts +5 -0
- package/src/v3/events/prepare-cloud-machine-auth-failed.ts +5 -1
- package/src/v3/events/prepare-cloud-machine-auth.ts +6 -1
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { LudeoEvent } from "../../infra";
|
|
2
2
|
import { CloudResourceContext } from "../contexts";
|
|
3
|
+
import { CreateGameResourceRequestPayload } from "./create-game-resource-request";
|
|
3
4
|
declare class CloudAuthReadyPayload {
|
|
4
5
|
authToken: string;
|
|
5
6
|
sessionToken: string;
|
|
6
7
|
resourceId: string;
|
|
8
|
+
gameResourceCreationPayload: CreateGameResourceRequestPayload;
|
|
7
9
|
}
|
|
8
10
|
export declare class CloudMachineAuthReady extends LudeoEvent {
|
|
9
11
|
static readonly EVENT_NAME = "authentication.cloud-machine-auth-ready";
|
|
@@ -14,6 +14,7 @@ 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
|
+
const create_game_resource_request_1 = require("./create-game-resource-request");
|
|
17
18
|
class CloudAuthReadyPayload {
|
|
18
19
|
}
|
|
19
20
|
__decorate([
|
|
@@ -28,6 +29,10 @@ __decorate([
|
|
|
28
29
|
(0, class_validator_1.IsUUID)(),
|
|
29
30
|
__metadata("design:type", String)
|
|
30
31
|
], CloudAuthReadyPayload.prototype, "resourceId", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => create_game_resource_request_1.CreateGameResourceRequestPayload),
|
|
34
|
+
__metadata("design:type", create_game_resource_request_1.CreateGameResourceRequestPayload)
|
|
35
|
+
], CloudAuthReadyPayload.prototype, "gameResourceCreationPayload", void 0);
|
|
31
36
|
class CloudMachineAuthReady extends infra_1.LudeoEvent {
|
|
32
37
|
constructor(payload, context) {
|
|
33
38
|
super(CloudMachineAuthReady.EVENT_NAME);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cloud-machine-auth-ready.js","sourceRoot":"","sources":["../../../src/v3/events/cloud-machine-auth-ready.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmD;AACnD,oGAAqF;AACrF,uCAAyC;AACzC,0CAAmD;
|
|
1
|
+
{"version":3,"file":"cloud-machine-auth-ready.js","sourceRoot":"","sources":["../../../src/v3/events/cloud-machine-auth-ready.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmD;AACnD,oGAAqF;AACrF,uCAAyC;AACzC,0CAAmD;AACnD,iFAAkF;AAElF,MAAM,qBAAqB;CAa1B;AAXC;IADC,IAAA,wBAAM,GAAE;;wDACS;AAGlB;IADC,IAAA,0BAAQ,GAAE;;2DACU;AAIrB;IADC,IAAA,wBAAM,GAAE;;yDACU;AAGnB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+DAAgC,CAAC;8BAC9B,+DAAgC;0EAAC;AAGhE,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,7 +1,9 @@
|
|
|
1
1
|
import { LudeoEvent } from "../../infra";
|
|
2
2
|
import { CloudResourceContext } from "../contexts";
|
|
3
|
+
import { CreateGameResourceRequestPayload } from "./create-game-resource-request";
|
|
3
4
|
export declare class PrepareCloudMachineAuthFailedPayload {
|
|
4
|
-
errorMessage
|
|
5
|
+
errorMessage?: string;
|
|
6
|
+
gameResourceCreationPayload: CreateGameResourceRequestPayload;
|
|
5
7
|
}
|
|
6
8
|
export declare class PrepareCloudMachineAuthFailed extends LudeoEvent {
|
|
7
9
|
static readonly EVENT_NAME = "cloud-pools.prepare-cloud-machine-auth-failed";
|
|
@@ -14,6 +14,7 @@ const validate_nested_type_decorator_1 = require("../../decorators/validate-nest
|
|
|
14
14
|
const infra_1 = require("../../infra");
|
|
15
15
|
const contexts_1 = require("../contexts");
|
|
16
16
|
const class_validator_1 = require("class-validator");
|
|
17
|
+
const create_game_resource_request_1 = require("./create-game-resource-request");
|
|
17
18
|
class PrepareCloudMachineAuthFailedPayload {
|
|
18
19
|
}
|
|
19
20
|
exports.PrepareCloudMachineAuthFailedPayload = PrepareCloudMachineAuthFailedPayload;
|
|
@@ -22,6 +23,10 @@ __decorate([
|
|
|
22
23
|
(0, class_validator_1.IsOptional)(),
|
|
23
24
|
__metadata("design:type", String)
|
|
24
25
|
], PrepareCloudMachineAuthFailedPayload.prototype, "errorMessage", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => create_game_resource_request_1.CreateGameResourceRequestPayload),
|
|
28
|
+
__metadata("design:type", create_game_resource_request_1.CreateGameResourceRequestPayload)
|
|
29
|
+
], PrepareCloudMachineAuthFailedPayload.prototype, "gameResourceCreationPayload", void 0);
|
|
25
30
|
class PrepareCloudMachineAuthFailed extends infra_1.LudeoEvent {
|
|
26
31
|
constructor(payload, context) {
|
|
27
32
|
super(PrepareCloudMachineAuthFailed.EVENT_NAME);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prepare-cloud-machine-auth-failed.js","sourceRoot":"","sources":["../../../src/v3/events/prepare-cloud-machine-auth-failed.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oGAAqF;AACrF,uCAAyC;AACzC,0CAAmD;AACnD,qDAAuD;
|
|
1
|
+
{"version":3,"file":"prepare-cloud-machine-auth-failed.js","sourceRoot":"","sources":["../../../src/v3/events/prepare-cloud-machine-auth-failed.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oGAAqF;AACrF,uCAAyC;AACzC,0CAAmD;AACnD,qDAAuD;AACvD,iFAAkF;AAElF,MAAa,oCAAoC;CAOhD;AAPD,oFAOC;AAJC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;0EACS;AAGtB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+DAAgC,CAAC;8BAC9B,+DAAgC;yFAAC;AAGhE,MAAa,6BAA8B,SAAQ,kBAAU;IAG3D,YACE,OAA6C,EAC7C,OAA6B;QAE7B,KAAK,CAAC,6BAA6B,CAAC,UAAU,CAAC,CAAC;QAChD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,sEAiBC;AAhBiB,wCAAU,GAAG,+CAA+C,CAAC;AAY7E;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,oCAAoC,CAAC;8BACtD,oCAAoC;8DAAC;AAG9C;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;8DAAC"}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { LudeoEvent } from "../../infra";
|
|
2
2
|
import { CloudResourceContext } from "../contexts";
|
|
3
|
+
import { CreateGameResourceRequestPayload } from "./create-game-resource-request";
|
|
3
4
|
export declare class PrepareCloudMachineAuthPayload {
|
|
4
5
|
cloudUserId: string;
|
|
5
6
|
authTokenId: string;
|
|
6
7
|
resourceId: string;
|
|
7
8
|
gameId: string;
|
|
9
|
+
gameResourceCreationPayload: CreateGameResourceRequestPayload;
|
|
8
10
|
}
|
|
9
11
|
export declare class PrepareCloudMachineAuth extends LudeoEvent {
|
|
10
12
|
static readonly EVENT_NAME = "cloud-pools.prepare-cloud-machine-auth";
|
|
@@ -14,6 +14,7 @@ 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
|
+
const create_game_resource_request_1 = require("./create-game-resource-request");
|
|
17
18
|
class PrepareCloudMachineAuthPayload {
|
|
18
19
|
}
|
|
19
20
|
exports.PrepareCloudMachineAuthPayload = PrepareCloudMachineAuthPayload;
|
|
@@ -34,6 +35,10 @@ __decorate([
|
|
|
34
35
|
(0, class_validator_1.IsUUID)(),
|
|
35
36
|
__metadata("design:type", String)
|
|
36
37
|
], PrepareCloudMachineAuthPayload.prototype, "gameId", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => create_game_resource_request_1.CreateGameResourceRequestPayload),
|
|
40
|
+
__metadata("design:type", create_game_resource_request_1.CreateGameResourceRequestPayload)
|
|
41
|
+
], PrepareCloudMachineAuthPayload.prototype, "gameResourceCreationPayload", void 0);
|
|
37
42
|
class PrepareCloudMachineAuth extends infra_1.LudeoEvent {
|
|
38
43
|
constructor(payload, context) {
|
|
39
44
|
super(PrepareCloudMachineAuth.EVENT_NAME);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prepare-cloud-machine-auth.js","sourceRoot":"","sources":["../../../src/v3/events/prepare-cloud-machine-auth.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAqD;AACrD,oGAAqF;AACrF,uCAAyC;AACzC,0CAAmD;
|
|
1
|
+
{"version":3,"file":"prepare-cloud-machine-auth.js","sourceRoot":"","sources":["../../../src/v3/events/prepare-cloud-machine-auth.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAqD;AACrD,oGAAqF;AACrF,uCAAyC;AACzC,0CAAmD;AACnD,iFAAkF;AAElF,MAAa,8BAA8B;CAiB1C;AAjBD,wEAiBC;AAfC;IADC,IAAA,wBAAM,GAAE;;mEACW;AAGpB;IADC,IAAA,wBAAM,GAAE;;mEACW;AAIpB;IADC,IAAA,wBAAM,GAAE;;kEACU;AAInB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;8DACM;AAGf;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+DAAgC,CAAC;8BAC9B,+DAAgC;mFAAC;AAGhE,MAAa,uBAAwB,SAAQ,kBAAU;IAGrD,YACE,OAAuC,EACvC,OAA6B;QAE7B,KAAK,CAAC,uBAAuB,CAAC,UAAU,CAAC,CAAC;QAC1C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,0DAiBC;AAhBiB,kCAAU,GAAG,wCAAwC,CAAC;AAYtE;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,8BAA8B,CAAC;8BAChD,8BAA8B;wDAAC;AAGxC;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;wDAAC"}
|
package/package.json
CHANGED
|
@@ -2,6 +2,7 @@ import { IsString, IsUUID } from "class-validator";
|
|
|
2
2
|
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
3
3
|
import { LudeoEvent } from "../../infra";
|
|
4
4
|
import { CloudResourceContext } from "../contexts";
|
|
5
|
+
import { CreateGameResourceRequestPayload } from "./create-game-resource-request";
|
|
5
6
|
|
|
6
7
|
class CloudAuthReadyPayload {
|
|
7
8
|
@IsUUID()
|
|
@@ -10,8 +11,12 @@ class CloudAuthReadyPayload {
|
|
|
10
11
|
@IsString()
|
|
11
12
|
sessionToken: string;
|
|
12
13
|
|
|
14
|
+
// Backwards compatibility - remove once ticket is done
|
|
13
15
|
@IsUUID()
|
|
14
16
|
resourceId: string;
|
|
17
|
+
|
|
18
|
+
@ValidateNestedType(() => CreateGameResourceRequestPayload)
|
|
19
|
+
gameResourceCreationPayload: CreateGameResourceRequestPayload;
|
|
15
20
|
}
|
|
16
21
|
|
|
17
22
|
export class CloudMachineAuthReady extends LudeoEvent {
|
|
@@ -2,11 +2,15 @@ import { ValidateNestedType } from "../../decorators/validate-nested-type.decora
|
|
|
2
2
|
import { LudeoEvent } from "../../infra";
|
|
3
3
|
import { CloudResourceContext } from "../contexts";
|
|
4
4
|
import { IsOptional, IsString } from "class-validator";
|
|
5
|
+
import { CreateGameResourceRequestPayload } from "./create-game-resource-request";
|
|
5
6
|
|
|
6
7
|
export class PrepareCloudMachineAuthFailedPayload {
|
|
7
8
|
@IsString()
|
|
8
9
|
@IsOptional()
|
|
9
|
-
errorMessage
|
|
10
|
+
errorMessage?: string;
|
|
11
|
+
|
|
12
|
+
@ValidateNestedType(() => CreateGameResourceRequestPayload)
|
|
13
|
+
gameResourceCreationPayload: CreateGameResourceRequestPayload;
|
|
10
14
|
}
|
|
11
15
|
|
|
12
16
|
export class PrepareCloudMachineAuthFailed extends LudeoEvent {
|
|
@@ -2,6 +2,7 @@ import { IsOptional, IsUUID } from "class-validator";
|
|
|
2
2
|
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
3
3
|
import { LudeoEvent } from "../../infra";
|
|
4
4
|
import { CloudResourceContext } from "../contexts";
|
|
5
|
+
import { CreateGameResourceRequestPayload } from "./create-game-resource-request";
|
|
5
6
|
|
|
6
7
|
export class PrepareCloudMachineAuthPayload {
|
|
7
8
|
@IsUUID()
|
|
@@ -10,12 +11,16 @@ export class PrepareCloudMachineAuthPayload {
|
|
|
10
11
|
@IsUUID()
|
|
11
12
|
authTokenId: string;
|
|
12
13
|
|
|
14
|
+
// Backwards compatibility - remove once ticket is done
|
|
13
15
|
@IsUUID()
|
|
14
16
|
resourceId: string;
|
|
15
17
|
|
|
16
18
|
@IsOptional()
|
|
17
19
|
@IsUUID()
|
|
18
20
|
gameId: string;
|
|
21
|
+
|
|
22
|
+
@ValidateNestedType(() => CreateGameResourceRequestPayload)
|
|
23
|
+
gameResourceCreationPayload: CreateGameResourceRequestPayload;
|
|
19
24
|
}
|
|
20
25
|
|
|
21
26
|
export class PrepareCloudMachineAuth extends LudeoEvent {
|
|
@@ -23,7 +28,7 @@ export class PrepareCloudMachineAuth extends LudeoEvent {
|
|
|
23
28
|
|
|
24
29
|
constructor(
|
|
25
30
|
payload: PrepareCloudMachineAuthPayload,
|
|
26
|
-
context: CloudResourceContext
|
|
31
|
+
context: CloudResourceContext
|
|
27
32
|
) {
|
|
28
33
|
super(PrepareCloudMachineAuth.EVENT_NAME);
|
|
29
34
|
this.payload = payload;
|