@ludeo/cloud-common 1.2.63 → 1.2.65
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/game-resource-creation-failed-response.d.ts +2 -0
- package/dist/v4/events/game-resource-creation-failed-response.js +6 -0
- package/dist/v4/events/game-resource-creation-failed-response.js.map +1 -1
- package/dist/v4/events/game-resource-ready-for-creation-failed.d.ts +2 -0
- package/dist/v4/events/game-resource-ready-for-creation-failed.js +6 -0
- package/dist/v4/events/game-resource-ready-for-creation-failed.js.map +1 -1
- package/dist/v4/events/index.d.ts +1 -0
- package/dist/v4/events/index.js +1 -0
- package/dist/v4/events/index.js.map +1 -1
- package/dist/v4/events/ludeo-allocation-timeout-task.d.ts +10 -0
- package/dist/v4/events/ludeo-allocation-timeout-task.js +36 -0
- package/dist/v4/events/ludeo-allocation-timeout-task.js.map +1 -0
- package/dist/v4/types/pools/resource/game.js +3 -0
- package/dist/v4/types/pools/resource/game.js.map +1 -1
- package/package.json +1 -1
- package/src/v4/events/game-resource-creation-failed-response.ts +6 -1
- package/src/v4/events/game-resource-ready-for-creation-failed.ts +7 -2
- package/src/v4/events/index.ts +1 -0
- package/src/v4/events/ludeo-allocation-timeout-task.ts +26 -0
- package/src/v4/types/pools/resource/game.ts +3 -0
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { CloudResourceContext } from "../contexts";
|
|
2
2
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
3
|
+
import { GameResourceSettings } from "../types";
|
|
3
4
|
export declare class GameResourceCreationFailedResponsePayload {
|
|
4
5
|
gameResourceId: string;
|
|
5
6
|
gamePoolId: string;
|
|
6
7
|
errorMessage: string;
|
|
8
|
+
gameResourceSettings: GameResourceSettings;
|
|
7
9
|
}
|
|
8
10
|
export declare class GameResourceCreationFailedResponse extends LudeoEvent {
|
|
9
11
|
static readonly EVENT_NAME = "cloud-resources.game-resource-creation-failed-response";
|
|
@@ -14,6 +14,7 @@ const class_validator_1 = require("class-validator");
|
|
|
14
14
|
const contexts_1 = require("../contexts");
|
|
15
15
|
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
16
16
|
const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
17
|
+
const types_1 = require("../types");
|
|
17
18
|
class GameResourceCreationFailedResponsePayload {
|
|
18
19
|
}
|
|
19
20
|
exports.GameResourceCreationFailedResponsePayload = GameResourceCreationFailedResponsePayload;
|
|
@@ -29,6 +30,11 @@ __decorate([
|
|
|
29
30
|
(0, class_validator_1.IsString)(),
|
|
30
31
|
__metadata("design:type", String)
|
|
31
32
|
], GameResourceCreationFailedResponsePayload.prototype, "errorMessage", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_validator_1.IsOptional)(),
|
|
35
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.GameResourceSettings),
|
|
36
|
+
__metadata("design:type", types_1.GameResourceSettings)
|
|
37
|
+
], GameResourceCreationFailedResponsePayload.prototype, "gameResourceSettings", void 0);
|
|
32
38
|
class GameResourceCreationFailedResponse extends ludeo_event_1.LudeoEvent {
|
|
33
39
|
constructor(payload, context) {
|
|
34
40
|
super(GameResourceCreationFailedResponse.EVENT_NAME);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"game-resource-creation-failed-response.js","sourceRoot":"","sources":["../../../src/v4/events/game-resource-creation-failed-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"game-resource-creation-failed-response.js","sourceRoot":"","sources":["../../../src/v4/events/game-resource-creation-failed-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAE/D,0CAAmD;AACnD,yDAAqD;AACrD,oGAAqF;AACrF,oCAAgD;AAEhD,MAAa,yCAAyC;CAarD;AAbD,8FAaC;AAXC;IADC,IAAA,wBAAM,GAAE;;iFACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;6EACU;AAGnB;IADC,IAAA,0BAAQ,GAAE;;+EACU;AAIrB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAAoB,CAAC;8BACzB,4BAAoB;uFAAC;AAG7C,MAAa,kCAAmC,SAAQ,wBAAU;IAIhE,YACE,OAAkD,EAClD,OAA6B;QAE7B,KAAK,CAAC,kCAAkC,CAAC,UAAU,CAAC,CAAC;QACrD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAXH,gFAkBC;AAjBiB,6CAAU,GACxB,wDAAwD,CAAC;AAY3D;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;mEAAC;AAG9B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,yCAAyC,CAAC;8BAC3D,yCAAyC;mEAAC"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { LudeoEvent } from "../../infra";
|
|
2
2
|
import { CloudResourceContext } from "../contexts";
|
|
3
|
+
import { GameResourceSettings } from "../types";
|
|
3
4
|
export declare class GameResourceReadyForCreationFailedPayload {
|
|
4
5
|
gamePoolId: string;
|
|
5
6
|
gameResourceId: string;
|
|
6
7
|
errorMessage: string;
|
|
8
|
+
gameResourceSettings: GameResourceSettings;
|
|
7
9
|
}
|
|
8
10
|
export declare class GameResourceReadyForCreationFailed extends LudeoEvent {
|
|
9
11
|
static readonly EVENT_NAME = "cloud-resources.game-resource-ready-for-creation-failed";
|
|
@@ -14,6 +14,7 @@ const infra_1 = require("../../infra");
|
|
|
14
14
|
const class_validator_1 = require("class-validator");
|
|
15
15
|
const decorators_1 = require("../../decorators");
|
|
16
16
|
const contexts_1 = require("../contexts");
|
|
17
|
+
const types_1 = require("../types");
|
|
17
18
|
class GameResourceReadyForCreationFailedPayload {
|
|
18
19
|
}
|
|
19
20
|
exports.GameResourceReadyForCreationFailedPayload = GameResourceReadyForCreationFailedPayload;
|
|
@@ -29,6 +30,11 @@ __decorate([
|
|
|
29
30
|
(0, class_validator_1.IsString)(),
|
|
30
31
|
__metadata("design:type", String)
|
|
31
32
|
], GameResourceReadyForCreationFailedPayload.prototype, "errorMessage", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_validator_1.IsOptional)(),
|
|
35
|
+
(0, decorators_1.ValidateNestedType)(() => types_1.GameResourceSettings),
|
|
36
|
+
__metadata("design:type", types_1.GameResourceSettings)
|
|
37
|
+
], GameResourceReadyForCreationFailedPayload.prototype, "gameResourceSettings", void 0);
|
|
32
38
|
class GameResourceReadyForCreationFailed extends infra_1.LudeoEvent {
|
|
33
39
|
constructor(payload, context) {
|
|
34
40
|
super(GameResourceReadyForCreationFailed.EVENT_NAME);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"game-resource-ready-for-creation-failed.js","sourceRoot":"","sources":["../../../src/v4/events/game-resource-ready-for-creation-failed.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uCAAyC;AACzC,
|
|
1
|
+
{"version":3,"file":"game-resource-ready-for-creation-failed.js","sourceRoot":"","sources":["../../../src/v4/events/game-resource-ready-for-creation-failed.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uCAAyC;AACzC,qDAA+D;AAC/D,iDAAsD;AACtD,0CAAmD;AACnD,oCAAgD;AAEhD,MAAa,yCAAyC;CAarD;AAbD,8FAaC;AAXC;IADC,IAAA,wBAAM,GAAE;;6EACU;AAGnB;IADC,IAAA,wBAAM,GAAE;;iFACc;AAGvB;IADC,IAAA,0BAAQ,GAAE;;+EACU;AAIrB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,4BAAoB,CAAC;8BACzB,4BAAoB;uFAAC;AAG7C,MAAa,kCAAmC,SAAQ,kBAAU;IAIhE,YACE,OAAkD,EAClD,OAA6B;QAE7B,KAAK,CAAC,kCAAkC,CAAC,UAAU,CAAC,CAAC;QACrD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAXH,gFAkBC;AAjBiB,6CAAU,GACxB,yDAAyD,CAAC;AAY5D;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;mEAAC;AAG9B;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,yCAAyC,CAAC;8BAC3D,yCAAyC;mEAAC"}
|
package/dist/v4/events/index.js
CHANGED
|
@@ -117,4 +117,5 @@ __exportStar(require("./game-deallocated-response"), exports);
|
|
|
117
117
|
__exportStar(require("./game-deallocation-failed-response"), exports);
|
|
118
118
|
__exportStar(require("./terminate-stale-ludeos"), exports);
|
|
119
119
|
__exportStar(require("./terminate-ludeo-request"), exports);
|
|
120
|
+
__exportStar(require("./ludeo-allocation-timeout-task"), exports);
|
|
120
121
|
//# 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,yEAAuD;AACvD,+DAA6C;AAC7C,wEAAsD;AACtD,+DAA6C;AAC7C,wDAAsC;AACtC,gEAA8C;AAC9C,oEAAkD;AAClD,qEAAmD;AACnD,4EAA0D;AAC1D,4DAA0C;AAC1C,oDAAkC;AAClC,kEAAgD;AAChD,8DAA4C;AAC5C,sEAAoD;AACpD,2DAAyC;AACzC,4DAA0C"}
|
|
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;AAChD,8DAA4C;AAC5C,sEAAoD;AACpD,2DAAyC;AACzC,4DAA0C;AAC1C,kEAAgD"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
2
|
+
export declare class LudeoAllocationTimeoutEventTaskEventPayload {
|
|
3
|
+
ludeoResourceId: string;
|
|
4
|
+
}
|
|
5
|
+
export declare class LudeoAllocationTimeoutTask extends LudeoEvent {
|
|
6
|
+
static readonly EVENT_NAME = "cloud-resources.ludeo-allocation-timeout-task";
|
|
7
|
+
constructor(payload: LudeoAllocationTimeoutEventTaskEventPayload, context: never);
|
|
8
|
+
context: never;
|
|
9
|
+
payload: LudeoAllocationTimeoutEventTaskEventPayload;
|
|
10
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
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.LudeoAllocationTimeoutTask = exports.LudeoAllocationTimeoutEventTaskEventPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
15
|
+
const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
16
|
+
class LudeoAllocationTimeoutEventTaskEventPayload {
|
|
17
|
+
}
|
|
18
|
+
exports.LudeoAllocationTimeoutEventTaskEventPayload = LudeoAllocationTimeoutEventTaskEventPayload;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_validator_1.IsUUID)(),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], LudeoAllocationTimeoutEventTaskEventPayload.prototype, "ludeoResourceId", void 0);
|
|
23
|
+
class LudeoAllocationTimeoutTask extends ludeo_event_1.LudeoEvent {
|
|
24
|
+
constructor(payload, context) {
|
|
25
|
+
super(LudeoAllocationTimeoutTask.EVENT_NAME);
|
|
26
|
+
this.payload = payload;
|
|
27
|
+
this.context = context;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.LudeoAllocationTimeoutTask = LudeoAllocationTimeoutTask;
|
|
31
|
+
LudeoAllocationTimeoutTask.EVENT_NAME = "cloud-resources.ludeo-allocation-timeout-task";
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => LudeoAllocationTimeoutEventTaskEventPayload),
|
|
34
|
+
__metadata("design:type", LudeoAllocationTimeoutEventTaskEventPayload)
|
|
35
|
+
], LudeoAllocationTimeoutTask.prototype, "payload", void 0);
|
|
36
|
+
//# sourceMappingURL=ludeo-allocation-timeout-task.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ludeo-allocation-timeout-task.js","sourceRoot":"","sources":["../../../src/v4/events/ludeo-allocation-timeout-task.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyC;AACzC,yDAAqD;AACrD,oGAAqF;AAErF,MAAa,2CAA2C;CAGvD;AAHD,kGAGC;AADC;IADC,IAAA,wBAAM,GAAE;;oFACe;AAG1B,MAAa,0BAA2B,SAAQ,wBAAU;IAGxD,YACE,OAAoD,EACpD,OAAc;QAEd,KAAK,CAAC,0BAA0B,CAAC,UAAU,CAAC,CAAC;QAC7C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,gEAgBC;AAfiB,qCAAU,GAAG,+CAA+C,CAAC;AAc7E;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,2CAA2C,CAAC;8BAC7D,2CAA2C;2DAAC"}
|
|
@@ -18,14 +18,17 @@ class GameResourceSettings {
|
|
|
18
18
|
}
|
|
19
19
|
exports.GameResourceSettings = GameResourceSettings;
|
|
20
20
|
__decorate([
|
|
21
|
+
(0, class_validator_1.IsOptional)(),
|
|
21
22
|
(0, decorators_1.ValidateNestedType)(() => cloud_1.AWSResourceProviderSettings),
|
|
22
23
|
__metadata("design:type", Object)
|
|
23
24
|
], GameResourceSettings.prototype, "provider", void 0);
|
|
24
25
|
__decorate([
|
|
26
|
+
(0, class_validator_1.IsOptional)(),
|
|
25
27
|
(0, class_validator_1.IsUUID)(),
|
|
26
28
|
__metadata("design:type", String)
|
|
27
29
|
], GameResourceSettings.prototype, "connectionId", void 0);
|
|
28
30
|
__decorate([
|
|
31
|
+
(0, class_validator_1.IsOptional)(),
|
|
29
32
|
(0, class_validator_1.IsString)(),
|
|
30
33
|
__metadata("design:type", String)
|
|
31
34
|
], GameResourceSettings.prototype, "sessionToken", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"game.js","sourceRoot":"","sources":["../../../../../src/v4/types/pools/resource/game.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAE/D,iCAA2C;AAC3C,uDAA4D;AAC5D,uCAGqB;AAErB,MAAa,oBAAoB;
|
|
1
|
+
{"version":3,"file":"game.js","sourceRoot":"","sources":["../../../../../src/v4/types/pools/resource/game.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAE/D,iCAA2C;AAC3C,uDAA4D;AAC5D,uCAGqB;AAErB,MAAa,oBAAoB;CAYhC;AAZD,oDAYC;AATC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,mCAA2B,CAAC;;sDACb;AAIzC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;0DACa;AAItB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;0DACW;AAGxB,MAAa,iBAAkB,SAAQ,wBAAiB;CAevD;AAfD,8CAeC;AAZC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;4DACc;AAI3B;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;0DACY;AAIzB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;sDACQ;AAGrB;IADC,IAAA,4BAAU,GAAE;8BACF,oBAAoB;mDAAC"}
|
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { IsUUID, IsString } from "class-validator";
|
|
1
|
+
import { IsUUID, IsString, IsOptional } from "class-validator";
|
|
2
2
|
|
|
3
3
|
import { CloudResourceContext } from "../contexts";
|
|
4
4
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
5
5
|
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
6
|
+
import { GameResourceSettings } from "../types";
|
|
6
7
|
|
|
7
8
|
export class GameResourceCreationFailedResponsePayload {
|
|
8
9
|
@IsUUID()
|
|
@@ -13,6 +14,10 @@ export class GameResourceCreationFailedResponsePayload {
|
|
|
13
14
|
|
|
14
15
|
@IsString()
|
|
15
16
|
errorMessage: string;
|
|
17
|
+
|
|
18
|
+
@IsOptional()
|
|
19
|
+
@ValidateNestedType(() => GameResourceSettings)
|
|
20
|
+
gameResourceSettings: GameResourceSettings;
|
|
16
21
|
}
|
|
17
22
|
|
|
18
23
|
export class GameResourceCreationFailedResponse extends LudeoEvent {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { LudeoEvent } from "../../infra";
|
|
2
|
-
import { IsString, IsUUID } from "class-validator";
|
|
2
|
+
import { IsOptional, IsString, IsUUID } from "class-validator";
|
|
3
3
|
import { ValidateNestedType } from "../../decorators";
|
|
4
4
|
import { CloudResourceContext } from "../contexts";
|
|
5
|
+
import { GameResourceSettings } from "../types";
|
|
5
6
|
|
|
6
7
|
export class GameResourceReadyForCreationFailedPayload {
|
|
7
8
|
@IsUUID()
|
|
@@ -12,6 +13,10 @@ export class GameResourceReadyForCreationFailedPayload {
|
|
|
12
13
|
|
|
13
14
|
@IsString()
|
|
14
15
|
errorMessage: string;
|
|
16
|
+
|
|
17
|
+
@IsOptional()
|
|
18
|
+
@ValidateNestedType(() => GameResourceSettings)
|
|
19
|
+
gameResourceSettings: GameResourceSettings;
|
|
15
20
|
}
|
|
16
21
|
|
|
17
22
|
export class GameResourceReadyForCreationFailed extends LudeoEvent {
|
|
@@ -20,7 +25,7 @@ export class GameResourceReadyForCreationFailed extends LudeoEvent {
|
|
|
20
25
|
|
|
21
26
|
constructor(
|
|
22
27
|
payload: GameResourceReadyForCreationFailedPayload,
|
|
23
|
-
context: CloudResourceContext
|
|
28
|
+
context: CloudResourceContext
|
|
24
29
|
) {
|
|
25
30
|
super(GameResourceReadyForCreationFailed.EVENT_NAME);
|
|
26
31
|
this.payload = payload;
|
package/src/v4/events/index.ts
CHANGED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { IsUUID } from "class-validator";
|
|
2
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
3
|
+
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
4
|
+
|
|
5
|
+
export class LudeoAllocationTimeoutEventTaskEventPayload {
|
|
6
|
+
@IsUUID()
|
|
7
|
+
ludeoResourceId: string;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export class LudeoAllocationTimeoutTask extends LudeoEvent {
|
|
11
|
+
static readonly EVENT_NAME = "cloud-resources.ludeo-allocation-timeout-task";
|
|
12
|
+
|
|
13
|
+
constructor(
|
|
14
|
+
payload: LudeoAllocationTimeoutEventTaskEventPayload,
|
|
15
|
+
context: never
|
|
16
|
+
) {
|
|
17
|
+
super(LudeoAllocationTimeoutTask.EVENT_NAME);
|
|
18
|
+
this.payload = payload;
|
|
19
|
+
this.context = context;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
context: never;
|
|
23
|
+
|
|
24
|
+
@ValidateNestedType(() => LudeoAllocationTimeoutEventTaskEventPayload)
|
|
25
|
+
payload: LudeoAllocationTimeoutEventTaskEventPayload;
|
|
26
|
+
}
|
|
@@ -8,12 +8,15 @@ import {
|
|
|
8
8
|
} from "../../cloud";
|
|
9
9
|
|
|
10
10
|
export class GameResourceSettings {
|
|
11
|
+
@IsOptional()
|
|
11
12
|
@ValidateNestedType(() => AWSResourceProviderSettings)
|
|
12
13
|
provider?: CloudResourceProviderSettings;
|
|
13
14
|
|
|
15
|
+
@IsOptional()
|
|
14
16
|
@IsUUID()
|
|
15
17
|
connectionId?: string;
|
|
16
18
|
|
|
19
|
+
@IsOptional()
|
|
17
20
|
@IsString()
|
|
18
21
|
sessionToken?: string;
|
|
19
22
|
}
|