@ludeo/cloud-common 1.2.35 → 1.2.36-ygbeta1
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/game-resource-terminated-response.d.ts +1 -0
- package/dist/v3/events/game-resource-terminated-response.js +5 -0
- package/dist/v3/events/game-resource-terminated-response.js.map +1 -1
- package/dist/v3/events/terminate-game-resource-request.d.ts +1 -0
- package/dist/v3/events/terminate-game-resource-request.js +5 -0
- package/dist/v3/events/terminate-game-resource-request.js.map +1 -1
- package/dist/v4/events/swap-cloud-user-request-failed.d.ts +2 -1
- package/dist/v4/events/swap-cloud-user-request-failed.js +5 -1
- package/dist/v4/events/swap-cloud-user-request-failed.js.map +1 -1
- package/dist/v4/events/swap-cloud-user-request.d.ts +3 -1
- package/dist/v4/events/swap-cloud-user-request.js +9 -1
- package/dist/v4/events/swap-cloud-user-request.js.map +1 -1
- package/package.json +1 -1
- package/src/v3/events/game-resource-terminated-response.ts +5 -1
- package/src/v3/events/terminate-game-resource-request.ts +11 -1
- package/src/v4/events/swap-cloud-user-request-failed.ts +4 -1
- package/src/v4/events/swap-cloud-user-request.ts +7 -1
|
@@ -4,6 +4,7 @@ export declare class GameResourceTerminatedResponsePayload {
|
|
|
4
4
|
gameResourceId: string;
|
|
5
5
|
gamePoolId: string;
|
|
6
6
|
shouldDeallocateMachineResource: boolean;
|
|
7
|
+
attemptNumber?: number;
|
|
7
8
|
}
|
|
8
9
|
export declare class GameResourceTerminatedResponse extends LudeoEvent {
|
|
9
10
|
static readonly EVENT_NAME = "cloud-resources.game-resource-terminated-response";
|
|
@@ -29,6 +29,11 @@ __decorate([
|
|
|
29
29
|
(0, class_validator_1.IsBoolean)(),
|
|
30
30
|
__metadata("design:type", Boolean)
|
|
31
31
|
], GameResourceTerminatedResponsePayload.prototype, "shouldDeallocateMachineResource", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsNumber)(),
|
|
34
|
+
(0, class_validator_1.IsOptional)(),
|
|
35
|
+
__metadata("design:type", Number)
|
|
36
|
+
], GameResourceTerminatedResponsePayload.prototype, "attemptNumber", void 0);
|
|
32
37
|
class GameResourceTerminatedResponse extends ludeo_event_1.LudeoEvent {
|
|
33
38
|
constructor(payload, context) {
|
|
34
39
|
super(GameResourceTerminatedResponse.EVENT_NAME);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"game-resource-terminated-response.js","sourceRoot":"","sources":["../../../src/v3/events/game-resource-terminated-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"game-resource-terminated-response.js","sourceRoot":"","sources":["../../../src/v3/events/game-resource-terminated-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA0E;AAE1E,0CAIqB;AACrB,yDAAqD;AACrD,oGAAqF;AAErF,MAAa,qCAAqC;CAajD;AAbD,sFAaC;AAXC;IADC,IAAA,wBAAM,GAAE;;6EACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;yEACU;AAGnB;IADC,IAAA,2BAAS,GAAE;;8FAC6B;AAIzC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;4EACU;AAGzB,MAAa,8BAA+B,SAAQ,wBAAU;IAI5D,YACE,OAA8C,EAC9C,OAAmD;QAEnD,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,mDAAmD,CAAC;AAYtD;IADC,IAAA,mDAAkB,EAAC,8BAAmB,CAAC;;+DACY;AAGpD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,qCAAqC,CAAC;8BACvD,qCAAqC;+DAAC"}
|
|
@@ -9,6 +9,7 @@ export declare class TerminateGameResourceRequestPayload {
|
|
|
9
9
|
providerSettings: CloudProviderSettings;
|
|
10
10
|
resourceProviderSettings: CloudResourceProviderSettings;
|
|
11
11
|
shouldDeallocateMachineResource: boolean;
|
|
12
|
+
attemptNumber?: number;
|
|
12
13
|
}
|
|
13
14
|
export declare class TerminateGameResourceRequest extends LudeoEvent {
|
|
14
15
|
static readonly EVENT_NAME = "cloud-pools.terminate-game-resource-request";
|
|
@@ -47,6 +47,11 @@ __decorate([
|
|
|
47
47
|
(0, class_validator_1.IsBoolean)(),
|
|
48
48
|
__metadata("design:type", Boolean)
|
|
49
49
|
], TerminateGameResourceRequestPayload.prototype, "shouldDeallocateMachineResource", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, class_validator_1.IsNumber)(),
|
|
52
|
+
(0, class_validator_1.IsOptional)(),
|
|
53
|
+
__metadata("design:type", Number)
|
|
54
|
+
], TerminateGameResourceRequestPayload.prototype, "attemptNumber", void 0);
|
|
50
55
|
class TerminateGameResourceRequest extends ludeo_event_1.LudeoEvent {
|
|
51
56
|
constructor(payload, context) {
|
|
52
57
|
super(TerminateGameResourceRequest.EVENT_NAME);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"terminate-game-resource-request.js","sourceRoot":"","sources":["../../../src/v3/events/terminate-game-resource-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"terminate-game-resource-request.js","sourceRoot":"","sources":["../../../src/v3/events/terminate-game-resource-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAMyB;AAEzB,0CAIqB;AACrB,yDAAqD;AACrD,oGAAqF;AACrF,oCAMkB;AAElB,MAAa,mCAAmC;CA0B/C;AA1BD,kFA0BC;AAxBC;IADC,IAAA,wBAAM,GAAE;;2EACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;uEACU;AAInB;IAFC,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;uEACQ;AAGrB;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;0EACO;AAG7B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,2BAAmB,CAAC;;6EACN;AAGxC;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,mCAA2B,CAAC;;qFACE;AAGxD;IADC,IAAA,2BAAS,GAAE;;4FAC6B;AAIzC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;0EACU;AAGzB,MAAa,4BAA6B,SAAQ,wBAAU;IAG1D,YACE,OAA4C,EAC5C,OAAmD;QAEnD,KAAK,CAAC,4BAA4B,CAAC,UAAU,CAAC,CAAC;QAC/C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,oEAiBC;AAhBiB,uCAAU,GAAG,6CAA6C,CAAC;AAY3E;IADC,IAAA,mDAAkB,EAAC,8BAAmB,CAAC;;6DACY;AAGpD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,mCAAmC,CAAC;8BACrD,mCAAmC;6DAAC"}
|
|
@@ -4,11 +4,12 @@ export declare class SwapCloudUserRequestFailedPayload {
|
|
|
4
4
|
connectionId: string;
|
|
5
5
|
defaultUserSessionToken: string;
|
|
6
6
|
actualUserSessionToken?: string;
|
|
7
|
+
ludeoResourceId: string;
|
|
7
8
|
errorMessage: string;
|
|
8
9
|
sourceService: string;
|
|
9
10
|
}
|
|
10
11
|
export declare class SwapCloudUserRequestFailed extends LudeoEvent {
|
|
11
|
-
static readonly EVENT_NAME = "cloud-
|
|
12
|
+
static readonly EVENT_NAME = "cloud-resources.swap-cloud-user-request-failed";
|
|
12
13
|
constructor(payload: SwapCloudUserRequestFailedPayload, context: CloudSessionContext);
|
|
13
14
|
context: CloudSessionContext;
|
|
14
15
|
payload: SwapCloudUserRequestFailedPayload;
|
|
@@ -30,6 +30,10 @@ __decorate([
|
|
|
30
30
|
(0, class_validator_1.IsOptional)(),
|
|
31
31
|
__metadata("design:type", String)
|
|
32
32
|
], SwapCloudUserRequestFailedPayload.prototype, "actualUserSessionToken", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_validator_1.IsUUID)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], SwapCloudUserRequestFailedPayload.prototype, "ludeoResourceId", void 0);
|
|
33
37
|
__decorate([
|
|
34
38
|
(0, class_validator_1.IsString)(),
|
|
35
39
|
__metadata("design:type", String)
|
|
@@ -46,7 +50,7 @@ class SwapCloudUserRequestFailed extends ludeo_event_1.LudeoEvent {
|
|
|
46
50
|
}
|
|
47
51
|
}
|
|
48
52
|
exports.SwapCloudUserRequestFailed = SwapCloudUserRequestFailed;
|
|
49
|
-
SwapCloudUserRequestFailed.EVENT_NAME = "cloud-
|
|
53
|
+
SwapCloudUserRequestFailed.EVENT_NAME = "cloud-resources.swap-cloud-user-request-failed";
|
|
50
54
|
__decorate([
|
|
51
55
|
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.CloudSessionContext),
|
|
52
56
|
__metadata("design:type", contexts_1.CloudSessionContext)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"swap-cloud-user-request-failed.js","sourceRoot":"","sources":["../../../src/v4/events/swap-cloud-user-request-failed.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAE/D,0CAAkD;AAClD,yDAAqD;AACrD,oGAAqF;AAErF,MAAa,iCAAiC;
|
|
1
|
+
{"version":3,"file":"swap-cloud-user-request-failed.js","sourceRoot":"","sources":["../../../src/v4/events/swap-cloud-user-request-failed.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAE/D,0CAAkD;AAClD,yDAAqD;AACrD,oGAAqF;AAErF,MAAa,iCAAiC;CAmB7C;AAnBD,8EAmBC;AAjBC;IADC,IAAA,wBAAM,GAAE;;uEACY;AAGrB;IADC,IAAA,0BAAQ,GAAE;;kFACqB;AAIhC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;iFACmB;AAGhC;IADC,IAAA,wBAAM,GAAE;;0EACe;AAGxB;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,gDAAgD,CAAC;AAY9E;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"}
|
|
@@ -4,9 +4,11 @@ export declare class SwapCloudUserRequestPayload {
|
|
|
4
4
|
connectionId: string;
|
|
5
5
|
defaultUserSessionToken: string;
|
|
6
6
|
actualUserSessionToken?: string;
|
|
7
|
+
ludeoResourceId: string;
|
|
8
|
+
gameplayId: string;
|
|
7
9
|
}
|
|
8
10
|
export declare class SwapCloudUserRequest extends LudeoEvent {
|
|
9
|
-
static readonly EVENT_NAME = "cloud-
|
|
11
|
+
static readonly EVENT_NAME = "cloud-resources.swap-cloud-user-request";
|
|
10
12
|
constructor(payload: SwapCloudUserRequestPayload, context: CloudSessionContext);
|
|
11
13
|
context: CloudSessionContext;
|
|
12
14
|
payload: SwapCloudUserRequestPayload;
|
|
@@ -30,6 +30,14 @@ __decorate([
|
|
|
30
30
|
(0, class_validator_1.IsString)(),
|
|
31
31
|
__metadata("design:type", String)
|
|
32
32
|
], SwapCloudUserRequestPayload.prototype, "actualUserSessionToken", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_validator_1.IsUUID)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], SwapCloudUserRequestPayload.prototype, "ludeoResourceId", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_validator_1.IsUUID)(),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], SwapCloudUserRequestPayload.prototype, "gameplayId", void 0);
|
|
33
41
|
class SwapCloudUserRequest extends ludeo_event_1.LudeoEvent {
|
|
34
42
|
constructor(payload, context) {
|
|
35
43
|
super(SwapCloudUserRequest.EVENT_NAME);
|
|
@@ -38,7 +46,7 @@ class SwapCloudUserRequest extends ludeo_event_1.LudeoEvent {
|
|
|
38
46
|
}
|
|
39
47
|
}
|
|
40
48
|
exports.SwapCloudUserRequest = SwapCloudUserRequest;
|
|
41
|
-
SwapCloudUserRequest.EVENT_NAME = "cloud-
|
|
49
|
+
SwapCloudUserRequest.EVENT_NAME = "cloud-resources.swap-cloud-user-request";
|
|
42
50
|
__decorate([
|
|
43
51
|
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.CloudSessionContext),
|
|
44
52
|
__metadata("design:type", contexts_1.CloudSessionContext)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"swap-cloud-user-request.js","sourceRoot":"","sources":["../../../src/v4/events/swap-cloud-user-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAE/D,0CAAkD;AAClD,yDAAqD;AACrD,oGAAqF;AAErF,MAAa,2BAA2B;
|
|
1
|
+
{"version":3,"file":"swap-cloud-user-request.js","sourceRoot":"","sources":["../../../src/v4/events/swap-cloud-user-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAE/D,0CAAkD;AAClD,yDAAqD;AACrD,oGAAqF;AAErF,MAAa,2BAA2B;CAgBvC;AAhBD,kEAgBC;AAdC;IADC,IAAA,wBAAM,GAAE;;iEACY;AAGrB;IADC,IAAA,0BAAQ,GAAE;;4EACqB;AAIhC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;2EACqB;AAGhC;IADC,IAAA,wBAAM,GAAE;;oEACe;AAGxB;IADC,IAAA,wBAAM,GAAE;;+DACU;AAGrB,MAAa,oBAAqB,SAAQ,wBAAU;IAGlD,YACE,OAAoC,EACpC,OAA4B;QAE5B,KAAK,CAAC,oBAAoB,CAAC,UAAU,CAAC,CAAC;QACvC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,oDAiBC;AAhBiB,+BAAU,GAAG,yCAAyC,CAAC;AAYvE;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,8BAAmB,CAAC;8BACrC,8BAAmB;qDAAC;AAG7B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,2BAA2B,CAAC;8BAC7C,2BAA2B;qDAAC"}
|
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IsUUID, IsBoolean } from "class-validator";
|
|
1
|
+
import { IsUUID, IsBoolean, IsNumber, IsOptional } from "class-validator";
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
4
|
CloudResourceContext,
|
|
@@ -17,6 +17,10 @@ export class GameResourceTerminatedResponsePayload {
|
|
|
17
17
|
|
|
18
18
|
@IsBoolean()
|
|
19
19
|
shouldDeallocateMachineResource: boolean;
|
|
20
|
+
|
|
21
|
+
@IsNumber()
|
|
22
|
+
@IsOptional()
|
|
23
|
+
attemptNumber?: number;
|
|
20
24
|
}
|
|
21
25
|
|
|
22
26
|
export class GameResourceTerminatedResponse extends LudeoEvent {
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
IsUUID,
|
|
3
|
+
IsBoolean,
|
|
4
|
+
IsOptional,
|
|
5
|
+
IsEnum,
|
|
6
|
+
IsNumber,
|
|
7
|
+
} from "class-validator";
|
|
2
8
|
|
|
3
9
|
import {
|
|
4
10
|
CloudResourceContext,
|
|
@@ -37,6 +43,10 @@ export class TerminateGameResourceRequestPayload {
|
|
|
37
43
|
|
|
38
44
|
@IsBoolean()
|
|
39
45
|
shouldDeallocateMachineResource: boolean;
|
|
46
|
+
|
|
47
|
+
@IsNumber()
|
|
48
|
+
@IsOptional()
|
|
49
|
+
attemptNumber?: number;
|
|
40
50
|
}
|
|
41
51
|
|
|
42
52
|
export class TerminateGameResourceRequest extends LudeoEvent {
|
|
@@ -15,6 +15,9 @@ export class SwapCloudUserRequestFailedPayload {
|
|
|
15
15
|
@IsOptional()
|
|
16
16
|
actualUserSessionToken?: string;
|
|
17
17
|
|
|
18
|
+
@IsUUID()
|
|
19
|
+
ludeoResourceId: string;
|
|
20
|
+
|
|
18
21
|
@IsString()
|
|
19
22
|
errorMessage: string;
|
|
20
23
|
|
|
@@ -23,7 +26,7 @@ export class SwapCloudUserRequestFailedPayload {
|
|
|
23
26
|
}
|
|
24
27
|
|
|
25
28
|
export class SwapCloudUserRequestFailed extends LudeoEvent {
|
|
26
|
-
static readonly EVENT_NAME = "cloud-
|
|
29
|
+
static readonly EVENT_NAME = "cloud-resources.swap-cloud-user-request-failed";
|
|
27
30
|
|
|
28
31
|
constructor(
|
|
29
32
|
payload: SwapCloudUserRequestFailedPayload,
|
|
@@ -14,10 +14,16 @@ export class SwapCloudUserRequestPayload {
|
|
|
14
14
|
@IsOptional()
|
|
15
15
|
@IsString()
|
|
16
16
|
actualUserSessionToken?: string;
|
|
17
|
+
|
|
18
|
+
@IsUUID()
|
|
19
|
+
ludeoResourceId: string;
|
|
20
|
+
|
|
21
|
+
@IsUUID()
|
|
22
|
+
gameplayId: string;
|
|
17
23
|
}
|
|
18
24
|
|
|
19
25
|
export class SwapCloudUserRequest extends LudeoEvent {
|
|
20
|
-
static readonly EVENT_NAME = "cloud-
|
|
26
|
+
static readonly EVENT_NAME = "cloud-resources.swap-cloud-user-request";
|
|
21
27
|
|
|
22
28
|
constructor(
|
|
23
29
|
payload: SwapCloudUserRequestPayload,
|