@ludeo/cloud-common 1.2.16 → 1.2.18
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/load-ludeo-resource.d.ts +2 -0
- package/dist/v4/events/load-ludeo-resource.js +8 -0
- package/dist/v4/events/load-ludeo-resource.js.map +1 -1
- package/dist/v4/events/swap-to-default-user-request-failed.d.ts +3 -0
- package/dist/v4/events/swap-to-default-user-request-failed.js +12 -0
- package/dist/v4/events/swap-to-default-user-request-failed.js.map +1 -1
- package/dist/v4/events/swap-to-default-user.d.ts +2 -0
- package/dist/v4/events/swap-to-default-user.js +8 -0
- package/dist/v4/events/swap-to-default-user.js.map +1 -1
- package/package.json +1 -1
- package/src/v4/events/load-ludeo-resource.ts +7 -1
- package/src/v4/events/swap-to-default-user-request-failed.ts +9 -0
- package/src/v4/events/swap-to-default-user.ts +6 -0
|
@@ -7,6 +7,8 @@ export declare class LoadLudeoResourcePayload {
|
|
|
7
7
|
ludeoResourceId: string;
|
|
8
8
|
userId: string;
|
|
9
9
|
gameId: string;
|
|
10
|
+
connectionId: string;
|
|
11
|
+
defaultUserSessionToken: string;
|
|
10
12
|
ludeoPoolId: string;
|
|
11
13
|
providerSettings: CloudProviderSettings;
|
|
12
14
|
cloudProvider: CloudProvider;
|
|
@@ -38,6 +38,14 @@ __decorate([
|
|
|
38
38
|
(0, class_validator_1.IsUUID)(),
|
|
39
39
|
__metadata("design:type", String)
|
|
40
40
|
], LoadLudeoResourcePayload.prototype, "gameId", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, class_validator_1.IsUUID)(),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], LoadLudeoResourcePayload.prototype, "connectionId", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, class_validator_1.IsString)(),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], LoadLudeoResourcePayload.prototype, "defaultUserSessionToken", void 0);
|
|
41
49
|
__decorate([
|
|
42
50
|
(0, class_validator_1.IsUUID)(),
|
|
43
51
|
__metadata("design:type", String)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"load-ludeo-resource.js","sourceRoot":"","sources":["../../../src/v4/events/load-ludeo-resource.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"load-ludeo-resource.js","sourceRoot":"","sources":["../../../src/v4/events/load-ludeo-resource.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA2D;AAC3D,yDAAqD;AACrD,oGAAqF;AACrF,0CAAmD;AACnD,oCAIkB;AAElB,MAAa,wBAAwB;CA8BpC;AA9BD,4DA8BC;AA5BC;IADC,IAAA,wBAAM,GAAE;;gEACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;4DACU;AAGnB;IADC,IAAA,wBAAM,GAAE;;iEACe;AAGxB;IADC,IAAA,wBAAM,GAAE;;wDACM;AAGf;IADC,IAAA,wBAAM,GAAE;;wDACM;AAGf;IADC,IAAA,wBAAM,GAAE;;8DACY;AAGrB;IADC,IAAA,0BAAQ,GAAE;;yEACqB;AAGhC;IADC,IAAA,wBAAM,GAAE;;6DACW;AAGpB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,2BAAmB,CAAC;;kEACN;AAGxC;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;+DACO;AAG/B,MAAa,iBAAkB,SAAQ,wBAAU;IAG/C,YACE,OAAiC,EACjC,OAA6B;QAE7B,KAAK,CAAC,iBAAiB,CAAC,UAAU,CAAC,CAAC;QACpC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,8CAiBC;AAhBiB,4BAAU,GAAG,iCAAiC,CAAC;AAY/D;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;kDAAC;AAG9B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,wBAAwB,CAAC;8BAC1C,wBAAwB;kDAAC"}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
2
2
|
import { CloudResourceContext } from "../contexts";
|
|
3
3
|
export declare class SwapToDefaultUserRequestFailedPayload {
|
|
4
|
+
ludeoResourceId: string;
|
|
4
5
|
connectionId: string;
|
|
5
6
|
defaultUserSessionToken: string;
|
|
7
|
+
gameId: string;
|
|
8
|
+
userId: string;
|
|
6
9
|
errorMessage: string;
|
|
7
10
|
sourceService: string;
|
|
8
11
|
}
|
|
@@ -17,6 +17,10 @@ const contexts_1 = require("../contexts");
|
|
|
17
17
|
class SwapToDefaultUserRequestFailedPayload {
|
|
18
18
|
}
|
|
19
19
|
exports.SwapToDefaultUserRequestFailedPayload = SwapToDefaultUserRequestFailedPayload;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_validator_1.IsUUID)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], SwapToDefaultUserRequestFailedPayload.prototype, "ludeoResourceId", void 0);
|
|
20
24
|
__decorate([
|
|
21
25
|
(0, class_validator_1.IsUUID)(),
|
|
22
26
|
__metadata("design:type", String)
|
|
@@ -25,6 +29,14 @@ __decorate([
|
|
|
25
29
|
(0, class_validator_1.IsString)(),
|
|
26
30
|
__metadata("design:type", String)
|
|
27
31
|
], SwapToDefaultUserRequestFailedPayload.prototype, "defaultUserSessionToken", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsUUID)(),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], SwapToDefaultUserRequestFailedPayload.prototype, "gameId", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, class_validator_1.IsUUID)(),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], SwapToDefaultUserRequestFailedPayload.prototype, "userId", void 0);
|
|
28
40
|
__decorate([
|
|
29
41
|
(0, class_validator_1.IsString)(),
|
|
30
42
|
__metadata("design:type", String)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"swap-to-default-user-request-failed.js","sourceRoot":"","sources":["../../../src/v4/events/swap-to-default-user-request-failed.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmD;AAEnD,yDAAqD;AACrD,oGAAqF;AACrF,0CAAmD;AAEnD,MAAa,qCAAqC;
|
|
1
|
+
{"version":3,"file":"swap-to-default-user-request-failed.js","sourceRoot":"","sources":["../../../src/v4/events/swap-to-default-user-request-failed.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmD;AAEnD,yDAAqD;AACrD,oGAAqF;AACrF,0CAAmD;AAEnD,MAAa,qCAAqC;CAqBjD;AArBD,sFAqBC;AAnBC;IADC,IAAA,wBAAM,GAAE;;8EACe;AAGxB;IADC,IAAA,wBAAM,GAAE;;2EACY;AAGrB;IADC,IAAA,0BAAQ,GAAE;;sFACqB;AAGhC;IADC,IAAA,wBAAM,GAAE;;qEACM;AAGf;IADC,IAAA,wBAAM,GAAE;;qEACM;AAGf;IADC,IAAA,0BAAQ,GAAE;;2EACU;AAGrB;IADC,IAAA,0BAAQ,GAAE;;4EACW;AAGxB,MAAa,8BAA+B,SAAQ,wBAAU;IAI5D,YACE,OAA8C,EAC9C,OAA6B;QAE7B,KAAK,CAAC,8BAA8B,CAAC,UAAU,CAAC,CAAC;QACjD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAXH,wEAkBC;AAjBiB,yCAAU,GACxB,qDAAqD,CAAC;AAYxD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;+DAAC;AAG9B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,qCAAqC,CAAC;8BACvD,qCAAqC;+DAAC"}
|
|
@@ -3,6 +3,8 @@ import { CloudResourceContext } from "../contexts";
|
|
|
3
3
|
export declare class SwapToDefaultUserPayload {
|
|
4
4
|
ludeoResourceId: string;
|
|
5
5
|
connectionId: string;
|
|
6
|
+
gameId: string;
|
|
7
|
+
userId: string;
|
|
6
8
|
defaultUserSessionToken: string;
|
|
7
9
|
}
|
|
8
10
|
export declare class SwapToDefaultUser extends LudeoEvent {
|
|
@@ -25,6 +25,14 @@ __decorate([
|
|
|
25
25
|
(0, class_validator_1.IsUUID)(),
|
|
26
26
|
__metadata("design:type", String)
|
|
27
27
|
], SwapToDefaultUserPayload.prototype, "connectionId", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_validator_1.IsUUID)(),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], SwapToDefaultUserPayload.prototype, "gameId", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsUUID)(),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], SwapToDefaultUserPayload.prototype, "userId", void 0);
|
|
28
36
|
__decorate([
|
|
29
37
|
(0, class_validator_1.IsString)(),
|
|
30
38
|
__metadata("design:type", String)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"swap-to-default-user.js","sourceRoot":"","sources":["../../../src/v4/events/swap-to-default-user.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmD;AACnD,yDAAqD;AACrD,oGAAqF;AACrF,0CAAmD;AAEnD,MAAa,wBAAwB;
|
|
1
|
+
{"version":3,"file":"swap-to-default-user.js","sourceRoot":"","sources":["../../../src/v4/events/swap-to-default-user.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmD;AACnD,yDAAqD;AACrD,oGAAqF;AACrF,0CAAmD;AAEnD,MAAa,wBAAwB;CAepC;AAfD,4DAeC;AAbC;IADC,IAAA,wBAAM,GAAE;;iEACe;AAGxB;IADC,IAAA,wBAAM,GAAE;;8DACY;AAGrB;IADC,IAAA,wBAAM,GAAE;;wDACM;AAGf;IADC,IAAA,wBAAM,GAAE;;wDACM;AAGf;IADC,IAAA,0BAAQ,GAAE;;yEACqB;AAGlC,MAAa,iBAAkB,SAAQ,wBAAU;IAG/C,YACE,OAAiC,EACjC,OAA6B;QAE7B,KAAK,CAAC,iBAAiB,CAAC,UAAU,CAAC,CAAC;QACpC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,8CAiBC;AAhBiB,4BAAU,GAAG,sCAAsC,CAAC;AAYpE;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;kDAAC;AAG9B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,wBAAwB,CAAC;8BAC1C,wBAAwB;kDAAC"}
|
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IsEnum, IsUUID } from "class-validator";
|
|
1
|
+
import { IsEnum, IsString, IsUUID } from "class-validator";
|
|
2
2
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
3
3
|
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
4
4
|
import { CloudResourceContext } from "../contexts";
|
|
@@ -24,6 +24,12 @@ export class LoadLudeoResourcePayload {
|
|
|
24
24
|
@IsUUID()
|
|
25
25
|
gameId: string;
|
|
26
26
|
|
|
27
|
+
@IsUUID()
|
|
28
|
+
connectionId: string;
|
|
29
|
+
|
|
30
|
+
@IsString()
|
|
31
|
+
defaultUserSessionToken: string;
|
|
32
|
+
|
|
27
33
|
@IsUUID()
|
|
28
34
|
ludeoPoolId: string;
|
|
29
35
|
|
|
@@ -5,12 +5,21 @@ import { ValidateNestedType } from "../../decorators/validate-nested-type.decora
|
|
|
5
5
|
import { CloudResourceContext } from "../contexts";
|
|
6
6
|
|
|
7
7
|
export class SwapToDefaultUserRequestFailedPayload {
|
|
8
|
+
@IsUUID()
|
|
9
|
+
ludeoResourceId: string;
|
|
10
|
+
|
|
8
11
|
@IsUUID()
|
|
9
12
|
connectionId: string;
|
|
10
13
|
|
|
11
14
|
@IsString()
|
|
12
15
|
defaultUserSessionToken: string;
|
|
13
16
|
|
|
17
|
+
@IsUUID()
|
|
18
|
+
gameId: string;
|
|
19
|
+
|
|
20
|
+
@IsUUID()
|
|
21
|
+
userId: string;
|
|
22
|
+
|
|
14
23
|
@IsString()
|
|
15
24
|
errorMessage: string;
|
|
16
25
|
|