@ludeo/cloud-common 1.1.126 → 1.1.127-beta1
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/events/aws-stream-session-active.d.ts +13 -0
- package/dist/v3/events/aws-stream-session-active.js +46 -0
- package/dist/v3/events/aws-stream-session-active.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/package.json +1 -1
- package/src/v3/events/aws-stream-session-active.ts +32 -0
- package/src/v3/events/index.ts +1 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { LudeoEvent } from "../../infra";
|
|
2
|
+
import { CreateGameResourceRequestPayload } from "./create-game-resource-request";
|
|
3
|
+
import { CloudResourceContext } from "../contexts";
|
|
4
|
+
export declare class AwsStreamSessionActivePayload {
|
|
5
|
+
creationPayload: CreateGameResourceRequestPayload;
|
|
6
|
+
streamSessionId: string;
|
|
7
|
+
}
|
|
8
|
+
export declare class AwsStreamSessionActive extends LudeoEvent {
|
|
9
|
+
static readonly EVENT_NAME = "cloud-resources.aws-stream-session-active";
|
|
10
|
+
constructor(payload: AwsStreamSessionActivePayload, context: CloudResourceContext);
|
|
11
|
+
context: CloudResourceContext;
|
|
12
|
+
payload: AwsStreamSessionActivePayload;
|
|
13
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
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.AwsStreamSessionActive = exports.AwsStreamSessionActivePayload = void 0;
|
|
13
|
+
const infra_1 = require("../../infra");
|
|
14
|
+
const decorators_1 = require("../../decorators");
|
|
15
|
+
const create_game_resource_request_1 = require("./create-game-resource-request");
|
|
16
|
+
const class_validator_1 = require("class-validator");
|
|
17
|
+
const contexts_1 = require("../contexts");
|
|
18
|
+
class AwsStreamSessionActivePayload {
|
|
19
|
+
}
|
|
20
|
+
exports.AwsStreamSessionActivePayload = AwsStreamSessionActivePayload;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, decorators_1.ValidateNestedType)(() => create_game_resource_request_1.CreateGameResourceRequestPayload),
|
|
23
|
+
__metadata("design:type", create_game_resource_request_1.CreateGameResourceRequestPayload)
|
|
24
|
+
], AwsStreamSessionActivePayload.prototype, "creationPayload", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsString)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], AwsStreamSessionActivePayload.prototype, "streamSessionId", void 0);
|
|
29
|
+
class AwsStreamSessionActive extends infra_1.LudeoEvent {
|
|
30
|
+
constructor(payload, context) {
|
|
31
|
+
super(AwsStreamSessionActive.EVENT_NAME);
|
|
32
|
+
this.payload = payload;
|
|
33
|
+
this.context = context;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.AwsStreamSessionActive = AwsStreamSessionActive;
|
|
37
|
+
AwsStreamSessionActive.EVENT_NAME = "cloud-resources.aws-stream-session-active";
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, decorators_1.ValidateNestedType)(() => contexts_1.CloudResourceContext),
|
|
40
|
+
__metadata("design:type", contexts_1.CloudResourceContext)
|
|
41
|
+
], AwsStreamSessionActive.prototype, "context", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, decorators_1.ValidateNestedType)(() => AwsStreamSessionActivePayload),
|
|
44
|
+
__metadata("design:type", AwsStreamSessionActivePayload)
|
|
45
|
+
], AwsStreamSessionActive.prototype, "payload", void 0);
|
|
46
|
+
//# sourceMappingURL=aws-stream-session-active.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aws-stream-session-active.js","sourceRoot":"","sources":["../../../src/v3/events/aws-stream-session-active.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uCAAyC;AACzC,iDAAsD;AACtD,iFAAkF;AAClF,qDAA2C;AAC3C,0CAAmD;AAEnD,MAAa,6BAA6B;CAMzC;AAND,sEAMC;AAJC;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,+DAAgC,CAAC;8BAC1C,+DAAgC;sEAAC;AAGlD;IADC,IAAA,0BAAQ,GAAE;;sEACa;AAG1B,MAAa,sBAAuB,SAAQ,kBAAU;IAGpD,YACE,OAAsC,EACtC,OAA6B;QAE7B,KAAK,CAAC,sBAAsB,CAAC,UAAU,CAAC,CAAC;QACzC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,wDAiBC;AAhBiB,iCAAU,GAAG,2CAA2C,CAAC;AAYzE;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;uDAAC;AAG9B;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,6BAA6B,CAAC;8BAC/C,6BAA6B;uDAAC"}
|
|
@@ -64,3 +64,4 @@ export * from "./game-resource-allocation-timeout-task";
|
|
|
64
64
|
export * from "./aws-poll-stream-session-task";
|
|
65
65
|
export * from "./game-resource-ready-for-creation";
|
|
66
66
|
export * from "./game-resource-ready-for-creation-failed";
|
|
67
|
+
export * from "./aws-stream-session-active";
|
package/dist/v3/events/index.js
CHANGED
|
@@ -80,4 +80,5 @@ __exportStar(require("./game-resource-allocation-timeout-task"), exports);
|
|
|
80
80
|
__exportStar(require("./aws-poll-stream-session-task"), exports);
|
|
81
81
|
__exportStar(require("./game-resource-ready-for-creation"), exports);
|
|
82
82
|
__exportStar(require("./game-resource-ready-for-creation-failed"), exports);
|
|
83
|
+
__exportStar(require("./aws-stream-session-active"), exports);
|
|
83
84
|
//# 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;AA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AoD;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,0EAAwD;AACxD,iEAA+C;AAC/C,qEAAmD;AACnD,4EAA0D;AAC1D,8DAA4C"}
|
package/package.json
CHANGED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { LudeoEvent } from "../../infra";
|
|
2
|
+
import { ValidateNestedType } from "../../decorators";
|
|
3
|
+
import { CreateGameResourceRequestPayload } from "./create-game-resource-request";
|
|
4
|
+
import { IsString } from "class-validator";
|
|
5
|
+
import { CloudResourceContext } from "../contexts";
|
|
6
|
+
|
|
7
|
+
export class AwsStreamSessionActivePayload {
|
|
8
|
+
@ValidateNestedType(() => CreateGameResourceRequestPayload)
|
|
9
|
+
creationPayload: CreateGameResourceRequestPayload;
|
|
10
|
+
|
|
11
|
+
@IsString()
|
|
12
|
+
streamSessionId: string;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export class AwsStreamSessionActive extends LudeoEvent {
|
|
16
|
+
static readonly EVENT_NAME = "cloud-resources.aws-stream-session-active";
|
|
17
|
+
|
|
18
|
+
constructor(
|
|
19
|
+
payload: AwsStreamSessionActivePayload,
|
|
20
|
+
context: CloudResourceContext,
|
|
21
|
+
) {
|
|
22
|
+
super(AwsStreamSessionActive.EVENT_NAME);
|
|
23
|
+
this.payload = payload;
|
|
24
|
+
this.context = context;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@ValidateNestedType(() => CloudResourceContext)
|
|
28
|
+
context: CloudResourceContext;
|
|
29
|
+
|
|
30
|
+
@ValidateNestedType(() => AwsStreamSessionActivePayload)
|
|
31
|
+
payload: AwsStreamSessionActivePayload;
|
|
32
|
+
}
|
package/src/v3/events/index.ts
CHANGED
|
@@ -64,3 +64,4 @@ export * from "./game-resource-allocation-timeout-task";
|
|
|
64
64
|
export * from "./aws-poll-stream-session-task";
|
|
65
65
|
export * from "./game-resource-ready-for-creation";
|
|
66
66
|
export * from "./game-resource-ready-for-creation-failed";
|
|
67
|
+
export * from "./aws-stream-session-active";
|