@ludeo/cloud-common 1.2.50 → 1.2.51
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/index.d.ts +2 -1
- package/dist/v4/events/index.js +2 -1
- package/dist/v4/events/index.js.map +1 -1
- package/dist/v4/events/ludeo-resource-status-changed.d.ts +2 -8
- package/dist/v4/events/ludeo-resource-status-changed.js +1 -25
- package/dist/v4/events/ludeo-resource-status-changed.js.map +1 -1
- package/dist/v4/events/update-ludeo-resource-status-request.d.ts +21 -0
- package/dist/v4/events/update-ludeo-resource-status-request.js +79 -0
- package/dist/v4/events/update-ludeo-resource-status-request.js.map +1 -0
- package/package.json +1 -1
- package/src/v4/events/index.ts +2 -1
- package/src/v4/events/ludeo-resource-status-changed.ts +3 -27
- package/src/v4/events/update-ludeo-resource-status-request.ts +64 -0
|
@@ -85,7 +85,7 @@ export * from "./swap-to-default-user-completed";
|
|
|
85
85
|
export * from "./allocate-ludeo-request";
|
|
86
86
|
export * from "./allocate-ludeo-resource-request";
|
|
87
87
|
export * from "./terminate-ludeos-request";
|
|
88
|
-
export * from "./ludeo-resource-status-
|
|
88
|
+
export * from "./update-ludeo-resource-status-request";
|
|
89
89
|
export * from "./connection-id-timeout-task";
|
|
90
90
|
export * from "./swap-to-default-user-request-failed";
|
|
91
91
|
export * from "./cloud-session-stats-report";
|
|
@@ -96,3 +96,4 @@ export * from "./swap-cloud-user-gameplay-request";
|
|
|
96
96
|
export * from "./swap-cloud-user-gameplay-request-failed";
|
|
97
97
|
export * from "./deallocate-game-request";
|
|
98
98
|
export * from "./ludeo-available";
|
|
99
|
+
export * from "./ludeo-resource-status-changed";
|
package/dist/v4/events/index.js
CHANGED
|
@@ -101,7 +101,7 @@ __exportStar(require("./swap-to-default-user-completed"), exports);
|
|
|
101
101
|
__exportStar(require("./allocate-ludeo-request"), exports);
|
|
102
102
|
__exportStar(require("./allocate-ludeo-resource-request"), exports);
|
|
103
103
|
__exportStar(require("./terminate-ludeos-request"), exports);
|
|
104
|
-
__exportStar(require("./ludeo-resource-status-
|
|
104
|
+
__exportStar(require("./update-ludeo-resource-status-request"), exports);
|
|
105
105
|
__exportStar(require("./connection-id-timeout-task"), exports);
|
|
106
106
|
__exportStar(require("./swap-to-default-user-request-failed"), exports);
|
|
107
107
|
__exportStar(require("./cloud-session-stats-report"), exports);
|
|
@@ -112,4 +112,5 @@ __exportStar(require("./swap-cloud-user-gameplay-request"), exports);
|
|
|
112
112
|
__exportStar(require("./swap-cloud-user-gameplay-request-failed"), exports);
|
|
113
113
|
__exportStar(require("./deallocate-game-request"), exports);
|
|
114
114
|
__exportStar(require("./ludeo-available"), exports);
|
|
115
|
+
__exportStar(require("./ludeo-resource-status-changed"), exports);
|
|
115
116
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v4/events/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,mEAAiD;AACjD,6DAA2C;AAC3C,uEAAqD;AACrD,4EAA0D;AAC1D,6DAA2C;AAC3C,qEAAmD;AACnD,iEAA+C;AAC/C,yDAAuC;AACvC,0EAAwD;AACxD,oEAAkD;AAClD,4DAA0C;AAC1C,+DAA6C;AAC7C,mDAAiC;AACjC,4DAA0C;AAC1C,oEAAkD;AAClD,qEAAmD;AACnD,6EAA2D;AAC3D,mEAAiD;AACjD,2EAAyD;AACzD,sEAAoD;AACpD,8EAA4D;AAC5D,6DAA2C;AAC3C,qEAAmD;AACnD,iEAA+C;AAC/C,+DAA6C;AAC7C,uEAAqD;AACrD,iEAA+C;AAC/C,yEAAuD;AACvD,+DAA6C;AAC7C,oFAAkE;AAClE,uFAAqE;AACrE,sEAAoD;AACpD,8EAA4D;AAC5D,yEAAuD;AACvD,6DAA2C;AAC3C,+DAA6C;AAC7C,gDAA8B;AAC9B,4DAA0C;AAC1C,6CAA2B;AAC3B,oDAAkC;AAClC,8DAA4C;AAC5C,mEAAiD;AACjD,4DAA0C;AAC1C,2DAAyC;AACzC,oEAAkD;AAClD,4DAA0C;AAC1C,uEAAqD;AACrD,6EAA2D;AAC3D,+DAA6C;AAC7C,0DAAwC;AACxC,6DAA2C;AAC3C,+DAA6C;AAC7C,sEAAoD;AACpD,yDAAuC;AACvC,6DAA2C;AAC3C,kEAAgD;AAChD,mEAAiD;AACjD,+DAA6C;AAC7C,gEAA8C;AAC9C,oEAAkD;AAClD,0DAAwC;AACxC,4DAA0C;AAC1C,mEAAiD;AACjD,wDAAsC;AACtC,0DAAwC;AACxC,2EAAyD;AACzD,iEAA+C;AAC/C,qEAAmD;AACnD,4EAA0D;AAC1D,8DAA4C;AAC5C,0EAAwD;AACxD,0DAAwC;AACxC,oEAAkD;AAClD,8DAA4C;AAC5C,wDAAsC;AACtC,6DAA2C;AAC3C,4DAA0C;AAC1C,sEAAoD;AACpD,qEAAmD;AACnD,0DAAwC;AACxC,kEAAgD;AAChD,yDAAuC;AACvC,mEAAiD;AACjD,2DAAyC;AACzC,oEAAkD;AAClD,6DAA2C;AAC3C,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v4/events/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,mEAAiD;AACjD,6DAA2C;AAC3C,uEAAqD;AACrD,4EAA0D;AAC1D,6DAA2C;AAC3C,qEAAmD;AACnD,iEAA+C;AAC/C,yDAAuC;AACvC,0EAAwD;AACxD,oEAAkD;AAClD,4DAA0C;AAC1C,+DAA6C;AAC7C,mDAAiC;AACjC,4DAA0C;AAC1C,oEAAkD;AAClD,qEAAmD;AACnD,6EAA2D;AAC3D,mEAAiD;AACjD,2EAAyD;AACzD,sEAAoD;AACpD,8EAA4D;AAC5D,6DAA2C;AAC3C,qEAAmD;AACnD,iEAA+C;AAC/C,+DAA6C;AAC7C,uEAAqD;AACrD,iEAA+C;AAC/C,yEAAuD;AACvD,+DAA6C;AAC7C,oFAAkE;AAClE,uFAAqE;AACrE,sEAAoD;AACpD,8EAA4D;AAC5D,yEAAuD;AACvD,6DAA2C;AAC3C,+DAA6C;AAC7C,gDAA8B;AAC9B,4DAA0C;AAC1C,6CAA2B;AAC3B,oDAAkC;AAClC,8DAA4C;AAC5C,mEAAiD;AACjD,4DAA0C;AAC1C,2DAAyC;AACzC,oEAAkD;AAClD,4DAA0C;AAC1C,uEAAqD;AACrD,6EAA2D;AAC3D,+DAA6C;AAC7C,0DAAwC;AACxC,6DAA2C;AAC3C,+DAA6C;AAC7C,sEAAoD;AACpD,yDAAuC;AACvC,6DAA2C;AAC3C,kEAAgD;AAChD,mEAAiD;AACjD,+DAA6C;AAC7C,gEAA8C;AAC9C,oEAAkD;AAClD,0DAAwC;AACxC,4DAA0C;AAC1C,mEAAiD;AACjD,wDAAsC;AACtC,0DAAwC;AACxC,2EAAyD;AACzD,iEAA+C;AAC/C,qEAAmD;AACnD,4EAA0D;AAC1D,8DAA4C;AAC5C,0EAAwD;AACxD,0DAAwC;AACxC,oEAAkD;AAClD,8DAA4C;AAC5C,wDAAsC;AACtC,6DAA2C;AAC3C,4DAA0C;AAC1C,sEAAoD;AACpD,qEAAmD;AACnD,0DAAwC;AACxC,kEAAgD;AAChD,yDAAuC;AACvC,mEAAiD;AACjD,2DAAyC;AACzC,oEAAkD;AAClD,6DAA2C;AAC3C,yEAAuD;AACvD,+DAA6C;AAC7C,wEAAsD;AACtD,+DAA6C;AAC7C,wDAAsC;AACtC,gEAA8C;AAC9C,oEAAkD;AAClD,qEAAmD;AACnD,4EAA0D;AAC1D,4DAA0C;AAC1C,oDAAkC;AAClC,kEAAgD"}
|
|
@@ -1,17 +1,11 @@
|
|
|
1
1
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
2
2
|
import { CloudResourceContext } from "../contexts/cloud-resource-context";
|
|
3
|
-
import {
|
|
3
|
+
import { CloudResourceStatus } from "../types";
|
|
4
4
|
export declare class LudeoResourceStatusChangedPayload {
|
|
5
5
|
ludeoResourceId: string;
|
|
6
6
|
ludeoPoolId: string;
|
|
7
7
|
status: CloudResourceStatus;
|
|
8
|
-
|
|
9
|
-
gameResourceId: string;
|
|
10
|
-
gamePoolId: string;
|
|
11
|
-
gameId: string;
|
|
12
|
-
cloudProvider: CloudProvider;
|
|
13
|
-
providerSettings: CloudProviderSettings;
|
|
14
|
-
gameResourceSettings: GameResourceSettings;
|
|
8
|
+
previousStatus?: CloudResourceStatus;
|
|
15
9
|
}
|
|
16
10
|
export declare class LudeoResourceStatusChanged extends LudeoEvent {
|
|
17
11
|
static readonly EVENT_NAME = "cloud-pools.ludeo-resource-status-changed";
|
|
@@ -34,31 +34,7 @@ __decorate([
|
|
|
34
34
|
(0, class_validator_1.IsString)(),
|
|
35
35
|
(0, class_validator_1.IsOptional)(),
|
|
36
36
|
__metadata("design:type", String)
|
|
37
|
-
], LudeoResourceStatusChangedPayload.prototype, "
|
|
38
|
-
__decorate([
|
|
39
|
-
(0, class_validator_1.IsUUID)(),
|
|
40
|
-
__metadata("design:type", String)
|
|
41
|
-
], LudeoResourceStatusChangedPayload.prototype, "gameResourceId", void 0);
|
|
42
|
-
__decorate([
|
|
43
|
-
(0, class_validator_1.IsUUID)(),
|
|
44
|
-
__metadata("design:type", String)
|
|
45
|
-
], LudeoResourceStatusChangedPayload.prototype, "gamePoolId", void 0);
|
|
46
|
-
__decorate([
|
|
47
|
-
(0, class_validator_1.IsUUID)(),
|
|
48
|
-
__metadata("design:type", String)
|
|
49
|
-
], LudeoResourceStatusChangedPayload.prototype, "gameId", void 0);
|
|
50
|
-
__decorate([
|
|
51
|
-
(0, class_validator_1.IsEnum)(types_1.CloudProvider),
|
|
52
|
-
__metadata("design:type", String)
|
|
53
|
-
], LudeoResourceStatusChangedPayload.prototype, "cloudProvider", void 0);
|
|
54
|
-
__decorate([
|
|
55
|
-
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.AWSProviderSettings),
|
|
56
|
-
__metadata("design:type", Object)
|
|
57
|
-
], LudeoResourceStatusChangedPayload.prototype, "providerSettings", void 0);
|
|
58
|
-
__decorate([
|
|
59
|
-
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.GameResourceSettings),
|
|
60
|
-
__metadata("design:type", types_1.GameResourceSettings)
|
|
61
|
-
], LudeoResourceStatusChangedPayload.prototype, "gameResourceSettings", void 0);
|
|
37
|
+
], LudeoResourceStatusChangedPayload.prototype, "previousStatus", void 0);
|
|
62
38
|
class LudeoResourceStatusChanged extends ludeo_event_1.LudeoEvent {
|
|
63
39
|
constructor(payload, context) {
|
|
64
40
|
super(LudeoResourceStatusChanged.EVENT_NAME);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ludeo-resource-status-changed.js","sourceRoot":"","sources":["../../../src/v4/events/ludeo-resource-status-changed.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"ludeo-resource-status-changed.js","sourceRoot":"","sources":["../../../src/v4/events/ludeo-resource-status-changed.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAC/D,yDAAqD;AACrD,+EAA0E;AAC1E,oCAA+C;AAC/C,oGAAqF;AAErF,MAAa,iCAAiC;CAa7C;AAbD,8EAaC;AAXC;IADC,IAAA,wBAAM,GAAE;;0EACe;AAGxB;IADC,IAAA,wBAAM,GAAE;;sEACW;AAGpB;IADC,IAAA,0BAAQ,GAAE;;iEACiB;AAI5B;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;yEACwB;AAGvC,MAAa,0BAA2B,SAAQ,wBAAU;IAGxD,YACE,OAA0C,EAC1C,OAA6B;QAE7B,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,2CAA2C,CAAC;AAYzE;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,6CAAoB,CAAC;8BACtC,6CAAoB;2DAAC;AAG9B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,iCAAiC,CAAC;8BACnD,iCAAiC;2DAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
2
|
+
import { CloudResourceContext } from "../contexts/cloud-resource-context";
|
|
3
|
+
import { CloudProvider, CloudProviderSettings, CloudResourceStatus, GameResourceSettings } from "../types";
|
|
4
|
+
export declare class UpdateLudeoResourceStatusRequestPayload {
|
|
5
|
+
ludeoResourceId: string;
|
|
6
|
+
ludeoPoolId: string;
|
|
7
|
+
gameStatus: CloudResourceStatus;
|
|
8
|
+
previousGameStatus?: CloudResourceStatus;
|
|
9
|
+
gameResourceId: string;
|
|
10
|
+
gamePoolId: string;
|
|
11
|
+
gameId: string;
|
|
12
|
+
cloudProvider: CloudProvider;
|
|
13
|
+
providerSettings: CloudProviderSettings;
|
|
14
|
+
gameResourceSettings: GameResourceSettings;
|
|
15
|
+
}
|
|
16
|
+
export declare class UpdateLudeoResourceStatusRequest extends LudeoEvent {
|
|
17
|
+
static readonly EVENT_NAME = "cloud-pools.update-ludeo-resource-status-request";
|
|
18
|
+
constructor(payload: UpdateLudeoResourceStatusRequestPayload, context: CloudResourceContext);
|
|
19
|
+
context: CloudResourceContext;
|
|
20
|
+
payload: UpdateLudeoResourceStatusRequestPayload;
|
|
21
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.UpdateLudeoResourceStatusRequest = exports.UpdateLudeoResourceStatusRequestPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
15
|
+
const cloud_resource_context_1 = require("../contexts/cloud-resource-context");
|
|
16
|
+
const types_1 = require("../types");
|
|
17
|
+
const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
18
|
+
class UpdateLudeoResourceStatusRequestPayload {
|
|
19
|
+
}
|
|
20
|
+
exports.UpdateLudeoResourceStatusRequestPayload = UpdateLudeoResourceStatusRequestPayload;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsUUID)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], UpdateLudeoResourceStatusRequestPayload.prototype, "ludeoResourceId", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsUUID)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], UpdateLudeoResourceStatusRequestPayload.prototype, "ludeoPoolId", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_validator_1.IsString)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], UpdateLudeoResourceStatusRequestPayload.prototype, "gameStatus", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_validator_1.IsString)(),
|
|
35
|
+
(0, class_validator_1.IsOptional)(),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], UpdateLudeoResourceStatusRequestPayload.prototype, "previousGameStatus", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, class_validator_1.IsUUID)(),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], UpdateLudeoResourceStatusRequestPayload.prototype, "gameResourceId", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, class_validator_1.IsUUID)(),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], UpdateLudeoResourceStatusRequestPayload.prototype, "gamePoolId", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, class_validator_1.IsUUID)(),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], UpdateLudeoResourceStatusRequestPayload.prototype, "gameId", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, class_validator_1.IsEnum)(types_1.CloudProvider),
|
|
52
|
+
__metadata("design:type", String)
|
|
53
|
+
], UpdateLudeoResourceStatusRequestPayload.prototype, "cloudProvider", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.AWSProviderSettings),
|
|
56
|
+
__metadata("design:type", Object)
|
|
57
|
+
], UpdateLudeoResourceStatusRequestPayload.prototype, "providerSettings", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.GameResourceSettings),
|
|
60
|
+
__metadata("design:type", types_1.GameResourceSettings)
|
|
61
|
+
], UpdateLudeoResourceStatusRequestPayload.prototype, "gameResourceSettings", void 0);
|
|
62
|
+
class UpdateLudeoResourceStatusRequest extends ludeo_event_1.LudeoEvent {
|
|
63
|
+
constructor(payload, context) {
|
|
64
|
+
super(UpdateLudeoResourceStatusRequest.EVENT_NAME);
|
|
65
|
+
this.payload = payload;
|
|
66
|
+
this.context = context;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
exports.UpdateLudeoResourceStatusRequest = UpdateLudeoResourceStatusRequest;
|
|
70
|
+
UpdateLudeoResourceStatusRequest.EVENT_NAME = "cloud-pools.update-ludeo-resource-status-request";
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => cloud_resource_context_1.CloudResourceContext),
|
|
73
|
+
__metadata("design:type", cloud_resource_context_1.CloudResourceContext)
|
|
74
|
+
], UpdateLudeoResourceStatusRequest.prototype, "context", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => UpdateLudeoResourceStatusRequestPayload),
|
|
77
|
+
__metadata("design:type", UpdateLudeoResourceStatusRequestPayload)
|
|
78
|
+
], UpdateLudeoResourceStatusRequest.prototype, "payload", void 0);
|
|
79
|
+
//# sourceMappingURL=update-ludeo-resource-status-request.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-ludeo-resource-status-request.js","sourceRoot":"","sources":["../../../src/v4/events/update-ludeo-resource-status-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuE;AACvE,yDAAqD;AACrD,+EAA0E;AAC1E,oCAMkB;AAClB,oGAAqF;AAErF,MAAa,uCAAuC;CA+BnD;AA/BD,0FA+BC;AA7BC;IADC,IAAA,wBAAM,GAAE;;gFACe;AAGxB;IADC,IAAA,wBAAM,GAAE;;4EACW;AAGpB;IADC,IAAA,0BAAQ,GAAE;;2EACqB;AAIhC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;mFAC4B;AAGzC;IADC,IAAA,wBAAM,GAAE;;+EACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;2EACU;AAGnB;IADC,IAAA,wBAAM,GAAE;;uEACM;AAGf;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;8EACO;AAG7B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,2BAAmB,CAAC;;iFACN;AAGxC;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAAoB,CAAC;8BACzB,4BAAoB;qFAAC;AAG7C,MAAa,gCAAiC,SAAQ,wBAAU;IAI9D,YACE,OAAgD,EAChD,OAA6B;QAE7B,KAAK,CAAC,gCAAgC,CAAC,UAAU,CAAC,CAAC;QACnD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAXH,4EAkBC;AAjBiB,2CAAU,GACxB,kDAAkD,CAAC;AAYrD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,6CAAoB,CAAC;8BACtC,6CAAoB;iEAAC;AAG9B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,uCAAuC,CAAC;8BACzD,uCAAuC;iEAAC"}
|
package/package.json
CHANGED
package/src/v4/events/index.ts
CHANGED
|
@@ -85,7 +85,7 @@ export * from "./swap-to-default-user-completed";
|
|
|
85
85
|
export * from "./allocate-ludeo-request";
|
|
86
86
|
export * from "./allocate-ludeo-resource-request";
|
|
87
87
|
export * from "./terminate-ludeos-request";
|
|
88
|
-
export * from "./ludeo-resource-status-
|
|
88
|
+
export * from "./update-ludeo-resource-status-request";
|
|
89
89
|
export * from "./connection-id-timeout-task";
|
|
90
90
|
export * from "./swap-to-default-user-request-failed";
|
|
91
91
|
export * from "./cloud-session-stats-report";
|
|
@@ -96,3 +96,4 @@ export * from "./swap-cloud-user-gameplay-request";
|
|
|
96
96
|
export * from "./swap-cloud-user-gameplay-request-failed";
|
|
97
97
|
export * from "./deallocate-game-request";
|
|
98
98
|
export * from "./ludeo-available";
|
|
99
|
+
export * from "./ludeo-resource-status-changed";
|
|
@@ -1,13 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IsOptional, IsString, IsUUID } from "class-validator";
|
|
2
2
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
3
3
|
import { CloudResourceContext } from "../contexts/cloud-resource-context";
|
|
4
|
-
import {
|
|
5
|
-
AWSProviderSettings,
|
|
6
|
-
CloudProvider,
|
|
7
|
-
CloudProviderSettings,
|
|
8
|
-
CloudResourceStatus,
|
|
9
|
-
GameResourceSettings,
|
|
10
|
-
} from "../types";
|
|
4
|
+
import { CloudResourceStatus } from "../types";
|
|
11
5
|
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
12
6
|
|
|
13
7
|
export class LudeoResourceStatusChangedPayload {
|
|
@@ -22,25 +16,7 @@ export class LudeoResourceStatusChangedPayload {
|
|
|
22
16
|
|
|
23
17
|
@IsString()
|
|
24
18
|
@IsOptional()
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
@IsUUID()
|
|
28
|
-
gameResourceId: string;
|
|
29
|
-
|
|
30
|
-
@IsUUID()
|
|
31
|
-
gamePoolId: string;
|
|
32
|
-
|
|
33
|
-
@IsUUID()
|
|
34
|
-
gameId: string;
|
|
35
|
-
|
|
36
|
-
@IsEnum(CloudProvider)
|
|
37
|
-
cloudProvider: CloudProvider;
|
|
38
|
-
|
|
39
|
-
@ValidateNestedType(() => AWSProviderSettings)
|
|
40
|
-
providerSettings: CloudProviderSettings;
|
|
41
|
-
|
|
42
|
-
@ValidateNestedType(() => GameResourceSettings)
|
|
43
|
-
gameResourceSettings: GameResourceSettings;
|
|
19
|
+
previousStatus?: CloudResourceStatus;
|
|
44
20
|
}
|
|
45
21
|
|
|
46
22
|
export class LudeoResourceStatusChanged extends LudeoEvent {
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { IsEnum, IsOptional, IsString, IsUUID } from "class-validator";
|
|
2
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
3
|
+
import { CloudResourceContext } from "../contexts/cloud-resource-context";
|
|
4
|
+
import {
|
|
5
|
+
AWSProviderSettings,
|
|
6
|
+
CloudProvider,
|
|
7
|
+
CloudProviderSettings,
|
|
8
|
+
CloudResourceStatus,
|
|
9
|
+
GameResourceSettings,
|
|
10
|
+
} from "../types";
|
|
11
|
+
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
12
|
+
|
|
13
|
+
export class UpdateLudeoResourceStatusRequestPayload {
|
|
14
|
+
@IsUUID()
|
|
15
|
+
ludeoResourceId: string;
|
|
16
|
+
|
|
17
|
+
@IsUUID()
|
|
18
|
+
ludeoPoolId: string;
|
|
19
|
+
|
|
20
|
+
@IsString()
|
|
21
|
+
gameStatus: CloudResourceStatus;
|
|
22
|
+
|
|
23
|
+
@IsString()
|
|
24
|
+
@IsOptional()
|
|
25
|
+
previousGameStatus?: CloudResourceStatus;
|
|
26
|
+
|
|
27
|
+
@IsUUID()
|
|
28
|
+
gameResourceId: string;
|
|
29
|
+
|
|
30
|
+
@IsUUID()
|
|
31
|
+
gamePoolId: string;
|
|
32
|
+
|
|
33
|
+
@IsUUID()
|
|
34
|
+
gameId: string;
|
|
35
|
+
|
|
36
|
+
@IsEnum(CloudProvider)
|
|
37
|
+
cloudProvider: CloudProvider;
|
|
38
|
+
|
|
39
|
+
@ValidateNestedType(() => AWSProviderSettings)
|
|
40
|
+
providerSettings: CloudProviderSettings;
|
|
41
|
+
|
|
42
|
+
@ValidateNestedType(() => GameResourceSettings)
|
|
43
|
+
gameResourceSettings: GameResourceSettings;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export class UpdateLudeoResourceStatusRequest extends LudeoEvent {
|
|
47
|
+
static readonly EVENT_NAME =
|
|
48
|
+
"cloud-pools.update-ludeo-resource-status-request";
|
|
49
|
+
|
|
50
|
+
constructor(
|
|
51
|
+
payload: UpdateLudeoResourceStatusRequestPayload,
|
|
52
|
+
context: CloudResourceContext
|
|
53
|
+
) {
|
|
54
|
+
super(UpdateLudeoResourceStatusRequest.EVENT_NAME);
|
|
55
|
+
this.payload = payload;
|
|
56
|
+
this.context = context;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
@ValidateNestedType(() => CloudResourceContext)
|
|
60
|
+
context: CloudResourceContext;
|
|
61
|
+
|
|
62
|
+
@ValidateNestedType(() => UpdateLudeoResourceStatusRequestPayload)
|
|
63
|
+
payload: UpdateLudeoResourceStatusRequestPayload;
|
|
64
|
+
}
|