@ludeo/cloud-common 1.1.119 → 1.1.121-beta
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/.idea/cloud-common.iml +12 -0
- package/.idea/git_toolbox_blame.xml +6 -0
- package/.idea/git_toolbox_prj.xml +15 -0
- package/.idea/modules.xml +8 -0
- package/.idea/vcs.xml +6 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/v3/contexts/cloud-session-context.d.ts +1 -0
- package/dist/v3/contexts/cloud-session-context.js +5 -0
- package/dist/v3/contexts/cloud-session-context.js.map +1 -1
- package/dist/v3/events/aws-poll-stream-session-task.d.ts +14 -0
- package/dist/v3/events/aws-poll-stream-session-task.js +35 -0
- package/dist/v3/events/aws-poll-stream-session-task.js.map +1 -0
- 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/terminate-game-request.d.ts +1 -0
- package/dist/v3/events/terminate-game-request.js +5 -0
- package/dist/v3/events/terminate-game-request.js.map +1 -1
- package/package.json +1 -1
- package/src/v3/contexts/cloud-session-context.ts +4 -0
- package/src/v3/events/aws-poll-stream-session-task.ts +26 -0
- package/src/v3/events/index.ts +1 -0
- package/src/v3/events/terminate-game-request.ts +5 -1
|
@@ -88,4 +88,9 @@ __decorate([
|
|
|
88
88
|
(0, class_validator_1.IsUUID)(),
|
|
89
89
|
__metadata("design:type", String)
|
|
90
90
|
], CloudSessionContext.prototype, "resourceId", void 0);
|
|
91
|
+
__decorate([
|
|
92
|
+
(0, class_validator_1.IsOptional)(),
|
|
93
|
+
(0, class_validator_1.IsUUID)(),
|
|
94
|
+
__metadata("design:type", String)
|
|
95
|
+
], CloudSessionContext.prototype, "tabSessionId", void 0);
|
|
91
96
|
//# sourceMappingURL=cloud-session-context.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cloud-session-context.js","sourceRoot":"","sources":["../../../src/v3/contexts/cloud-session-context.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuE;AACvE,oCAAyC;AAEzC,MAAa,mBAAmB;
|
|
1
|
+
{"version":3,"file":"cloud-session-context.js","sourceRoot":"","sources":["../../../src/v3/contexts/cloud-session-context.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuE;AACvE,oCAAyC;AAEzC,MAAa,mBAAmB;CA+D/B;AA/DD,kDA+DC;AA5DC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;gEACoB;AAI7B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;4DACgB;AAGzB;IADC,IAAA,wBAAM,GAAE;;2DACc;AAIvB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;mDACO;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;mDACO;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;oDACQ;AAGjB;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;0DACO;AAI7B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;uDACW;AAIpB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;2DACe;AAIxB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;0DACc;AAIvB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;8DACkB;AAI3B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;0DACY;AAIvB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;4DACc;AAKzB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;mDACO;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;uDACW;AAIpB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;yDACa"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { LudeoEvent } from "../../infra";
|
|
2
|
+
import { CloudResourceContext } from "../contexts";
|
|
3
|
+
import { CreateGameResourceRequestPayload } from "./create-game-resource-request";
|
|
4
|
+
declare class AwsPollStreamSessionTaskPayload {
|
|
5
|
+
resourceContext: CloudResourceContext;
|
|
6
|
+
creationPayload: CreateGameResourceRequestPayload;
|
|
7
|
+
}
|
|
8
|
+
export declare class AwsPollStreamSessionTask extends LudeoEvent {
|
|
9
|
+
static readonly EVENT_NAME = "cloud-resources.aws-poll-stream-session-task";
|
|
10
|
+
constructor(payload: AwsPollStreamSessionTaskPayload);
|
|
11
|
+
context: never;
|
|
12
|
+
payload: AwsPollStreamSessionTaskPayload;
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
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.AwsPollStreamSessionTask = void 0;
|
|
13
|
+
const infra_1 = require("../../infra");
|
|
14
|
+
const decorators_1 = require("../../decorators");
|
|
15
|
+
const contexts_1 = require("../contexts");
|
|
16
|
+
const create_game_resource_request_1 = require("./create-game-resource-request");
|
|
17
|
+
class AwsPollStreamSessionTaskPayload {
|
|
18
|
+
}
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, decorators_1.ValidateNestedType)(() => contexts_1.CloudResourceContext),
|
|
21
|
+
__metadata("design:type", contexts_1.CloudResourceContext)
|
|
22
|
+
], AwsPollStreamSessionTaskPayload.prototype, "resourceContext", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, decorators_1.ValidateNestedType)(() => create_game_resource_request_1.CreateGameResourceRequestPayload),
|
|
25
|
+
__metadata("design:type", create_game_resource_request_1.CreateGameResourceRequestPayload)
|
|
26
|
+
], AwsPollStreamSessionTaskPayload.prototype, "creationPayload", void 0);
|
|
27
|
+
class AwsPollStreamSessionTask extends infra_1.LudeoEvent {
|
|
28
|
+
constructor(payload) {
|
|
29
|
+
super(AwsPollStreamSessionTask.EVENT_NAME);
|
|
30
|
+
this.payload = payload;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
exports.AwsPollStreamSessionTask = AwsPollStreamSessionTask;
|
|
34
|
+
AwsPollStreamSessionTask.EVENT_NAME = "cloud-resources.aws-poll-stream-session-task";
|
|
35
|
+
//# sourceMappingURL=aws-poll-stream-session-task.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aws-poll-stream-session-task.js","sourceRoot":"","sources":["../../../src/v3/events/aws-poll-stream-session-task.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uCAAyC;AACzC,iDAAsD;AACtD,0CAAmD;AAEnD,iFAAkF;AAElF,MAAM,+BAA+B;CAMpC;AAJC;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BAC9B,+BAAoB;wEAAC;AAGtC;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,+DAAgC,CAAC;8BAC1C,+DAAgC;wEAAC;AAGpD,MAAa,wBAAyB,SAAQ,kBAAU;IAGtD,YAAY,OAAwC;QAClD,KAAK,CAAC,wBAAwB,CAAC,UAAU,CAAC,CAAC;QAC3C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AANH,4DAWC;AAViB,mCAAU,GAAG,8CAA8C,CAAC"}
|
package/dist/v3/events/index.js
CHANGED
|
@@ -76,4 +76,5 @@ __exportStar(require("./cloud-session-allocated"), exports);
|
|
|
76
76
|
__exportStar(require("./terminate-stale-resources-task"), exports);
|
|
77
77
|
__exportStar(require("./cloud-session-ended"), exports);
|
|
78
78
|
__exportStar(require("./invalid-game-resource"), exports);
|
|
79
|
+
__exportStar(require("./aws-poll-stream-session-task"), exports);
|
|
79
80
|
//# 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;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;AAC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6C;AAC7C,gEAA8C;AAC9C,oEAAkD;AAClD,0DAAwC;AACxC,4DAA0C;AAC1C,mEAAiD;AACjD,wDAAsC;AACtC,0DAAwC;AACxC,iEAA+C"}
|
|
@@ -3,6 +3,7 @@ import { LudeoEvent } from "../../infra/ludeo-event";
|
|
|
3
3
|
export declare class TerminateGameRequestPayload {
|
|
4
4
|
gamePoolId: string;
|
|
5
5
|
gameResourceId: string;
|
|
6
|
+
uploadLogs?: boolean;
|
|
6
7
|
}
|
|
7
8
|
export declare class TerminateGameRequest extends LudeoEvent {
|
|
8
9
|
static readonly EVENT_NAME = "cloud-session-allocator.terminate-game-request";
|
|
@@ -25,6 +25,11 @@ __decorate([
|
|
|
25
25
|
(0, class_validator_1.IsUUID)(),
|
|
26
26
|
__metadata("design:type", String)
|
|
27
27
|
], TerminateGameRequestPayload.prototype, "gameResourceId", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_validator_1.IsBoolean)(),
|
|
30
|
+
(0, class_validator_1.IsOptional)(),
|
|
31
|
+
__metadata("design:type", Boolean)
|
|
32
|
+
], TerminateGameRequestPayload.prototype, "uploadLogs", void 0);
|
|
28
33
|
class TerminateGameRequest extends ludeo_event_1.LudeoEvent {
|
|
29
34
|
constructor(payload, context) {
|
|
30
35
|
super(TerminateGameRequest.EVENT_NAME);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"terminate-game-request.js","sourceRoot":"","sources":["../../../src/v3/events/terminate-game-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"terminate-game-request.js","sourceRoot":"","sources":["../../../src/v3/events/terminate-game-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAgE;AAEhE,0CAIqB;AACrB,yDAAqD;AACrD,oGAAqF;AAErF,MAAa,2BAA2B;CAUvC;AAVD,kEAUC;AARC;IADC,IAAA,wBAAM,GAAE;;+DACU;AAGnB;IADC,IAAA,wBAAM,GAAE;;mEACc;AAIvB;IAFC,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;+DACQ;AAGvB,MAAa,oBAAqB,SAAQ,wBAAU;IAGlD,YACE,OAAoC,EACpC,OAAmD;QAEnD,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,gDAAgD,CAAC;AAY9E;IADC,IAAA,mDAAkB,EAAC,8BAAmB,CAAC;;qDACY;AAGpD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,2BAA2B,CAAC;8BAC7C,2BAA2B;qDAAC"}
|
package/package.json
CHANGED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { LudeoEvent } from "../../infra";
|
|
2
|
+
import { ValidateNestedType } from "../../decorators";
|
|
3
|
+
import { CloudResourceContext } from "../contexts";
|
|
4
|
+
import { IsString } from "class-validator";
|
|
5
|
+
import { CreateGameResourceRequestPayload } from "./create-game-resource-request";
|
|
6
|
+
|
|
7
|
+
class AwsPollStreamSessionTaskPayload {
|
|
8
|
+
@ValidateNestedType(() => CloudResourceContext)
|
|
9
|
+
resourceContext: CloudResourceContext;
|
|
10
|
+
|
|
11
|
+
@ValidateNestedType(() => CreateGameResourceRequestPayload)
|
|
12
|
+
creationPayload: CreateGameResourceRequestPayload;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export class AwsPollStreamSessionTask extends LudeoEvent {
|
|
16
|
+
static readonly EVENT_NAME = "cloud-resources.aws-poll-stream-session-task";
|
|
17
|
+
|
|
18
|
+
constructor(payload: AwsPollStreamSessionTaskPayload) {
|
|
19
|
+
super(AwsPollStreamSessionTask.EVENT_NAME);
|
|
20
|
+
this.payload = payload;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
context: never;
|
|
24
|
+
|
|
25
|
+
payload: AwsPollStreamSessionTaskPayload;
|
|
26
|
+
}
|
package/src/v3/events/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IsUUID } from "class-validator";
|
|
1
|
+
import { IsBoolean, IsOptional, IsUUID } from "class-validator";
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
4
|
CloudResourceContext,
|
|
@@ -14,6 +14,10 @@ export class TerminateGameRequestPayload {
|
|
|
14
14
|
|
|
15
15
|
@IsUUID()
|
|
16
16
|
gameResourceId: string;
|
|
17
|
+
|
|
18
|
+
@IsBoolean()
|
|
19
|
+
@IsOptional()
|
|
20
|
+
uploadLogs?: boolean;
|
|
17
21
|
}
|
|
18
22
|
|
|
19
23
|
export class TerminateGameRequest extends LudeoEvent {
|