@ludeo/cloud-common 1.2.35 → 1.2.36-ygbeta2
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-termination-failed-response.d.ts +1 -0
- package/dist/v3/events/game-resource-termination-failed-response.js +5 -0
- package/dist/v3/events/game-resource-termination-failed-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/game-resource-termination-failed-response.d.ts +1 -0
- package/dist/v4/events/game-resource-termination-failed-response.js +5 -0
- package/dist/v4/events/game-resource-termination-failed-response.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/dist/v4/events/terminate-game-resource-request.d.ts +1 -0
- package/dist/v4/events/terminate-game-resource-request.js +5 -0
- package/dist/v4/events/terminate-game-resource-request.js.map +1 -1
- package/package.json +1 -1
- package/src/v3/events/game-resource-termination-failed-response.ts +11 -1
- package/src/v3/events/terminate-game-resource-request.ts +11 -1
- package/src/v4/events/game-resource-termination-failed-response.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
- package/src/v4/events/terminate-game-resource-request.ts +11 -1
|
@@ -5,6 +5,7 @@ export declare class GameResourceTerminationFailedResponsePayload {
|
|
|
5
5
|
gamePoolId: string;
|
|
6
6
|
shouldDeallocateMachineResource: boolean;
|
|
7
7
|
errorMessage: string;
|
|
8
|
+
attemptNumber?: number;
|
|
8
9
|
}
|
|
9
10
|
export declare class GameResourceTerminationFailedResponse extends LudeoEvent {
|
|
10
11
|
static readonly EVENT_NAME = "cloud-resources.game-resource-termination-failed-response";
|
|
@@ -33,6 +33,11 @@ __decorate([
|
|
|
33
33
|
(0, class_validator_1.IsString)(),
|
|
34
34
|
__metadata("design:type", String)
|
|
35
35
|
], GameResourceTerminationFailedResponsePayload.prototype, "errorMessage", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, class_validator_1.IsNumber)(),
|
|
38
|
+
(0, class_validator_1.IsOptional)(),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], GameResourceTerminationFailedResponsePayload.prototype, "attemptNumber", void 0);
|
|
36
41
|
class GameResourceTerminationFailedResponse extends ludeo_event_1.LudeoEvent {
|
|
37
42
|
constructor(payload, context) {
|
|
38
43
|
super(GameResourceTerminationFailedResponse.EVENT_NAME);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"game-resource-termination-failed-response.js","sourceRoot":"","sources":["../../../src/v3/events/game-resource-termination-failed-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"game-resource-termination-failed-response.js","sourceRoot":"","sources":["../../../src/v3/events/game-resource-termination-failed-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAMyB;AAEzB,0CAIqB;AACrB,yDAAqD;AACrD,oGAAqF;AAErF,MAAa,4CAA4C;CAgBxD;AAhBD,oGAgBC;AAdC;IADC,IAAA,wBAAM,GAAE;;oFACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;gFACU;AAGnB;IADC,IAAA,2BAAS,GAAE;;qGAC6B;AAGzC;IADC,IAAA,0BAAQ,GAAE;;kFACU;AAIrB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;mFACU;AAGzB,MAAa,qCAAsC,SAAQ,wBAAU;IAInE,YACE,OAAqD,EACrD,OAAmD;QAEnD,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,2DAA2D,CAAC;AAY9D;IADC,IAAA,mDAAkB,EAAC,8BAAmB,CAAC;;sEACY;AAGpD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4CAA4C,CAAC;8BAC9D,4CAA4C;sEAAC"}
|
|
@@ -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"}
|
|
@@ -5,6 +5,7 @@ export declare class GameResourceTerminationFailedResponsePayload {
|
|
|
5
5
|
gamePoolId: string;
|
|
6
6
|
shouldDeallocateMachineResource: boolean;
|
|
7
7
|
errorMessage: string;
|
|
8
|
+
attemptNumber?: number;
|
|
8
9
|
}
|
|
9
10
|
export declare class GameResourceTerminationFailedResponse extends LudeoEvent {
|
|
10
11
|
static readonly EVENT_NAME = "cloud-resources.game-resource-termination-failed-response";
|
|
@@ -33,6 +33,11 @@ __decorate([
|
|
|
33
33
|
(0, class_validator_1.IsString)(),
|
|
34
34
|
__metadata("design:type", String)
|
|
35
35
|
], GameResourceTerminationFailedResponsePayload.prototype, "errorMessage", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, class_validator_1.IsNumber)(),
|
|
38
|
+
(0, class_validator_1.IsOptional)(),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], GameResourceTerminationFailedResponsePayload.prototype, "attemptNumber", void 0);
|
|
36
41
|
class GameResourceTerminationFailedResponse extends ludeo_event_1.LudeoEvent {
|
|
37
42
|
constructor(payload, context) {
|
|
38
43
|
super(GameResourceTerminationFailedResponse.EVENT_NAME);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"game-resource-termination-failed-response.js","sourceRoot":"","sources":["../../../src/v4/events/game-resource-termination-failed-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"game-resource-termination-failed-response.js","sourceRoot":"","sources":["../../../src/v4/events/game-resource-termination-failed-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAMyB;AAEzB,0CAIqB;AACrB,yDAAqD;AACrD,oGAAqF;AAErF,MAAa,4CAA4C;CAgBxD;AAhBD,oGAgBC;AAdC;IADC,IAAA,wBAAM,GAAE;;oFACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;gFACU;AAGnB;IADC,IAAA,2BAAS,GAAE;;qGAC6B;AAGzC;IADC,IAAA,0BAAQ,GAAE;;kFACU;AAIrB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;mFACU;AAGzB,MAAa,qCAAsC,SAAQ,wBAAU;IAInE,YACE,OAAqD,EACrD,OAAmD;QAEnD,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,2DAA2D,CAAC;AAY9D;IADC,IAAA,mDAAkB,EAAC,8BAAmB,CAAC;;sEACY;AAGpD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4CAA4C,CAAC;8BAC9D,4CAA4C;sEAAC"}
|
|
@@ -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"}
|
|
@@ -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/v4/events/terminate-game-resource-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"terminate-game-resource-request.js","sourceRoot":"","sources":["../../../src/v4/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"}
|
package/package.json
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
IsUUID,
|
|
3
|
+
IsString,
|
|
4
|
+
IsBoolean,
|
|
5
|
+
IsNumber,
|
|
6
|
+
IsOptional,
|
|
7
|
+
} from "class-validator";
|
|
2
8
|
|
|
3
9
|
import {
|
|
4
10
|
CloudResourceContext,
|
|
@@ -20,6 +26,10 @@ export class GameResourceTerminationFailedResponsePayload {
|
|
|
20
26
|
|
|
21
27
|
@IsString()
|
|
22
28
|
errorMessage: string;
|
|
29
|
+
|
|
30
|
+
@IsNumber()
|
|
31
|
+
@IsOptional()
|
|
32
|
+
attemptNumber?: number;
|
|
23
33
|
}
|
|
24
34
|
|
|
25
35
|
export class GameResourceTerminationFailedResponse 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 {
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
IsUUID,
|
|
3
|
+
IsString,
|
|
4
|
+
IsBoolean,
|
|
5
|
+
IsNumber,
|
|
6
|
+
IsOptional,
|
|
7
|
+
} from "class-validator";
|
|
2
8
|
|
|
3
9
|
import {
|
|
4
10
|
CloudResourceContext,
|
|
@@ -20,6 +26,10 @@ export class GameResourceTerminationFailedResponsePayload {
|
|
|
20
26
|
|
|
21
27
|
@IsString()
|
|
22
28
|
errorMessage: string;
|
|
29
|
+
|
|
30
|
+
@IsNumber()
|
|
31
|
+
@IsOptional()
|
|
32
|
+
attemptNumber?: number;
|
|
23
33
|
}
|
|
24
34
|
|
|
25
35
|
export class GameResourceTerminationFailedResponse 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,
|
|
@@ -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 {
|