@ludeo/cloud-common 1.1.113 → 1.1.115
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/index.d.ts +1 -0
- package/dist/v3/events/index.js +1 -0
- package/dist/v3/events/index.js.map +1 -1
- package/dist/v3/events/invalid-game-resource.d.ts +12 -0
- package/dist/v3/events/invalid-game-resource.js +44 -0
- package/dist/v3/events/invalid-game-resource.js.map +1 -0
- package/dist/v3/types/pools/resource/base.d.ts +1 -0
- package/dist/v3/types/pools/resource/base.js +4 -0
- package/dist/v3/types/pools/resource/base.js.map +1 -1
- package/package.json +1 -1
- package/src/v3/events/index.ts +1 -0
- package/src/v3/events/invalid-game-resource.ts +29 -0
- package/src/v3/types/pools/resource/base.ts +3 -0
package/dist/v3/events/index.js
CHANGED
|
@@ -75,4 +75,5 @@ __exportStar(require("./cloud-session-created"), exports);
|
|
|
75
75
|
__exportStar(require("./cloud-session-allocated"), exports);
|
|
76
76
|
__exportStar(require("./terminate-stale-resources-task"), exports);
|
|
77
77
|
__exportStar(require("./cloud-session-ended"), exports);
|
|
78
|
+
__exportStar(require("./invalid-game-resource"), exports);
|
|
78
79
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v3/events/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,mEAAiD;AACjD,6DAA2C;AAC3C,6DAA2C;AAC3C,iEAA+C;AAC/C,yDAAuC;AACvC,0EAAwD;AACxD,oEAAkD;AAClD,4DAA0C;AAC1C,+DAA6C;AAC7C,4DAA0C;AAC1C,oEAAkD;AAClD,qEAAmD;AACnD,6EAA2D;AAC3D,mEAAiD;AACjD,2EAAyD;AACzD,sEAAoD;AACpD,8EAA4D;AAC5D,6DAA2C;AAC3C,qEAAmD;AACnD,iEAA+C;A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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"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
2
|
+
export declare class InvalidGameResourcePayload {
|
|
3
|
+
gamePoolId: any;
|
|
4
|
+
gameResourceId: any;
|
|
5
|
+
errorMessage: any;
|
|
6
|
+
}
|
|
7
|
+
export declare class InvalidGameResourceEvent extends LudeoEvent {
|
|
8
|
+
static readonly EVENT_NAME = "cloud-resource-monitor.invalid-game-resource";
|
|
9
|
+
constructor(payload: InvalidGameResourcePayload, context: never);
|
|
10
|
+
context: never;
|
|
11
|
+
payload: InvalidGameResourcePayload;
|
|
12
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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.InvalidGameResourceEvent = exports.InvalidGameResourcePayload = 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 InvalidGameResourcePayload {
|
|
17
|
+
}
|
|
18
|
+
exports.InvalidGameResourcePayload = InvalidGameResourcePayload;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_validator_1.IsUUID)(),
|
|
21
|
+
__metadata("design:type", Object)
|
|
22
|
+
], InvalidGameResourcePayload.prototype, "gamePoolId", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_validator_1.IsUUID)(),
|
|
25
|
+
__metadata("design:type", Object)
|
|
26
|
+
], InvalidGameResourcePayload.prototype, "gameResourceId", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_validator_1.IsString)(),
|
|
29
|
+
__metadata("design:type", Object)
|
|
30
|
+
], InvalidGameResourcePayload.prototype, "errorMessage", void 0);
|
|
31
|
+
class InvalidGameResourceEvent extends ludeo_event_1.LudeoEvent {
|
|
32
|
+
constructor(payload, context) {
|
|
33
|
+
super(InvalidGameResourceEvent.EVENT_NAME);
|
|
34
|
+
this.payload = payload;
|
|
35
|
+
this.context = context;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
exports.InvalidGameResourceEvent = InvalidGameResourceEvent;
|
|
39
|
+
InvalidGameResourceEvent.EVENT_NAME = "cloud-resource-monitor.invalid-game-resource";
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => InvalidGameResourcePayload),
|
|
42
|
+
__metadata("design:type", InvalidGameResourcePayload)
|
|
43
|
+
], InvalidGameResourceEvent.prototype, "payload", void 0);
|
|
44
|
+
//# sourceMappingURL=invalid-game-resource.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invalid-game-resource.js","sourceRoot":"","sources":["../../../src/v3/events/invalid-game-resource.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmD;AACnD,yDAAqD;AACrD,oGAAqF;AAErF,MAAa,0BAA0B;CAStC;AATD,gEASC;AAPC;IADC,IAAA,wBAAM,GAAE;;8DACE;AAGX;IADC,IAAA,wBAAM,GAAE;;kEACM;AAGf;IADC,IAAA,0BAAQ,GAAE;;gEACE;AAGf,MAAa,wBAAyB,SAAQ,wBAAU;IAGtD,YAAY,OAAmC,EAAE,OAAc;QAC7D,KAAK,CAAC,wBAAwB,CAAC,UAAU,CAAC,CAAC;QAC3C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,4DAaC;AAZiB,mCAAU,GAAG,8CAA8C,CAAC;AAW5E;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,0BAA0B,CAAC;8BAC5C,0BAA0B;yDAAC"}
|
|
@@ -29,6 +29,10 @@ __decorate([
|
|
|
29
29
|
(0, class_validator_1.IsNumber)(),
|
|
30
30
|
__metadata("design:type", Number)
|
|
31
31
|
], BaseCloudResource.prototype, "createdAt", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsUUID)(),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], BaseCloudResource.prototype, "poolId", void 0);
|
|
32
36
|
__decorate([
|
|
33
37
|
(0, class_validator_1.IsNumber)(),
|
|
34
38
|
(0, class_validator_1.IsOptional)(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.js","sourceRoot":"","sources":["../../../../../src/v3/types/pools/resource/base.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuE;AAEvE,qCAA+C;AAC/C,uCAA0D;AAC1D,uDAA4D;AAE5D,MAAa,iBAAiB;
|
|
1
|
+
{"version":3,"file":"base.js","sourceRoot":"","sources":["../../../../../src/v3/types/pools/resource/base.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuE;AAEvE,qCAA+C;AAC/C,uCAA0D;AAC1D,uDAA4D;AAE5D,MAAa,iBAAiB;CAmB7B;AAnBD,8CAmBC;AAjBC;IADC,IAAA,wBAAM,GAAE;;6CACE;AAGX;IADC,IAAA,wBAAM,EAAC,4BAAmB,CAAC;;iDACA;AAG5B;IADC,IAAA,0BAAQ,GAAE;;oDACO;AAGlB;IADC,IAAA,wBAAM,GAAE;;iDACM;AAIf;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;oDACM;AAGnB;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,mCAA2B,CAAC;8BAC3C,mCAA2B;mDAAC"}
|
package/package.json
CHANGED
package/src/v3/events/index.ts
CHANGED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { IsString, IsUUID } from "class-validator";
|
|
2
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
3
|
+
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
4
|
+
|
|
5
|
+
export class InvalidGameResourcePayload {
|
|
6
|
+
@IsUUID()
|
|
7
|
+
gamePoolId;
|
|
8
|
+
|
|
9
|
+
@IsUUID()
|
|
10
|
+
gameResourceId;
|
|
11
|
+
|
|
12
|
+
@IsString()
|
|
13
|
+
errorMessage;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export class InvalidGameResourceEvent extends LudeoEvent {
|
|
17
|
+
static readonly EVENT_NAME = "cloud-resource-monitor.invalid-game-resource";
|
|
18
|
+
|
|
19
|
+
constructor(payload: InvalidGameResourcePayload, context: never) {
|
|
20
|
+
super(InvalidGameResourceEvent.EVENT_NAME);
|
|
21
|
+
this.payload = payload;
|
|
22
|
+
this.context = context;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
context: never;
|
|
26
|
+
|
|
27
|
+
@ValidateNestedType(() => InvalidGameResourcePayload)
|
|
28
|
+
payload: InvalidGameResourcePayload;
|
|
29
|
+
}
|