@ludeo/cloud-common 1.1.107 → 1.1.109
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/cloud-session-ended.d.ts +8 -0
- package/dist/v3/events/cloud-session-ended.js +29 -0
- package/dist/v3/events/cloud-session-ended.js.map +1 -0
- package/dist/v3/events/index.d.ts +2 -0
- package/dist/v3/events/index.js +2 -0
- package/dist/v3/events/index.js.map +1 -1
- package/dist/v3/events/terminate-stale-resources-task.d.ts +9 -0
- package/dist/v3/events/terminate-stale-resources-task.js +16 -0
- package/dist/v3/events/terminate-stale-resources-task.js.map +1 -0
- package/package.json +1 -1
- package/src/v3/events/cloud-session-ended.ts +18 -0
- package/src/v3/events/index.ts +2 -0
- package/src/v3/events/terminate-stale-resources-task.ts +16 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
2
|
+
import { CloudSessionContext } from "../contexts";
|
|
3
|
+
export declare class CloudSessionEnded extends LudeoEvent {
|
|
4
|
+
static readonly EVENT_NAME = "cloud-sessions.cloud-session-ended";
|
|
5
|
+
constructor(payload: {}, context: CloudSessionContext);
|
|
6
|
+
context: CloudSessionContext;
|
|
7
|
+
payload: {};
|
|
8
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
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.CloudSessionEnded = void 0;
|
|
13
|
+
const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
14
|
+
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
15
|
+
const contexts_1 = require("../contexts");
|
|
16
|
+
class CloudSessionEnded extends ludeo_event_1.LudeoEvent {
|
|
17
|
+
constructor(payload, context) {
|
|
18
|
+
super(CloudSessionEnded.EVENT_NAME);
|
|
19
|
+
this.context = context;
|
|
20
|
+
this.payload = payload;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.CloudSessionEnded = CloudSessionEnded;
|
|
24
|
+
CloudSessionEnded.EVENT_NAME = "cloud-sessions.cloud-session-ended";
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.CloudSessionContext),
|
|
27
|
+
__metadata("design:type", contexts_1.CloudSessionContext)
|
|
28
|
+
], CloudSessionEnded.prototype, "context", void 0);
|
|
29
|
+
//# sourceMappingURL=cloud-session-ended.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cloud-session-ended.js","sourceRoot":"","sources":["../../../src/v3/events/cloud-session-ended.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oGAAqF;AACrF,yDAAqD;AACrD,0CAAkD;AAElD,MAAa,iBAAkB,SAAQ,wBAAU;IAG/C,YAAY,OAAW,EAAE,OAA4B;QACnD,KAAK,CAAC,iBAAiB,CAAC,UAAU,CAAC,CAAC;QACpC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,8CAaC;AAZiB,4BAAU,GAAG,oCAAoC,CAAC;AASlE;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,8BAAmB,CAAC;8BACrC,8BAAmB;kDAAC"}
|
|
@@ -56,3 +56,5 @@ export * from "./ludeo-obtained-timeout-task";
|
|
|
56
56
|
export * from "./terminate-cloud-session-request";
|
|
57
57
|
export * from "./cloud-session-created";
|
|
58
58
|
export * from "./cloud-session-allocated";
|
|
59
|
+
export * from "./terminate-stale-resources-task";
|
|
60
|
+
export * from "./cloud-session-ended";
|
package/dist/v3/events/index.js
CHANGED
|
@@ -72,4 +72,6 @@ __exportStar(require("./ludeo-obtained-timeout-task"), exports);
|
|
|
72
72
|
__exportStar(require("./terminate-cloud-session-request"), exports);
|
|
73
73
|
__exportStar(require("./cloud-session-created"), exports);
|
|
74
74
|
__exportStar(require("./cloud-session-allocated"), exports);
|
|
75
|
+
__exportStar(require("./terminate-stale-resources-task"), exports);
|
|
76
|
+
__exportStar(require("./cloud-session-ended"), exports);
|
|
75
77
|
//# 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,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,yEAAu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3C,+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"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { LudeoEvent } from "../../infra";
|
|
2
|
+
export declare class TerminateStaleResourcesTaskPayload {
|
|
3
|
+
}
|
|
4
|
+
export declare class TerminateStaleResourcesTask extends LudeoEvent {
|
|
5
|
+
static readonly EVENT_NAME = "cloud-pools.terminate-stale-resources-task";
|
|
6
|
+
constructor(payload: TerminateStaleResourcesTaskPayload, context: never);
|
|
7
|
+
context: never;
|
|
8
|
+
payload: TerminateStaleResourcesTaskPayload;
|
|
9
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TerminateStaleResourcesTask = exports.TerminateStaleResourcesTaskPayload = void 0;
|
|
4
|
+
const infra_1 = require("../../infra");
|
|
5
|
+
class TerminateStaleResourcesTaskPayload {
|
|
6
|
+
}
|
|
7
|
+
exports.TerminateStaleResourcesTaskPayload = TerminateStaleResourcesTaskPayload;
|
|
8
|
+
class TerminateStaleResourcesTask extends infra_1.LudeoEvent {
|
|
9
|
+
constructor(payload, context) {
|
|
10
|
+
super(TerminateStaleResourcesTask.EVENT_NAME);
|
|
11
|
+
this.payload = payload;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.TerminateStaleResourcesTask = TerminateStaleResourcesTask;
|
|
15
|
+
TerminateStaleResourcesTask.EVENT_NAME = "cloud-pools.terminate-stale-resources-task";
|
|
16
|
+
//# sourceMappingURL=terminate-stale-resources-task.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"terminate-stale-resources-task.js","sourceRoot":"","sources":["../../../src/v3/events/terminate-stale-resources-task.ts"],"names":[],"mappings":";;;AAAA,uCAAyC;AAEzC,MAAa,kCAAkC;CAAG;AAAlD,gFAAkD;AAElD,MAAa,2BAA4B,SAAQ,kBAAU;IAGzD,YAAY,OAA2C,EAAE,OAAc;QACrE,KAAK,CAAC,2BAA2B,CAAC,UAAU,CAAC,CAAC;QAC9C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AANH,kEAWC;AAViB,sCAAU,GAAG,4CAA4C,CAAC"}
|
package/package.json
CHANGED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
2
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
3
|
+
import { CloudSessionContext } from "../contexts";
|
|
4
|
+
|
|
5
|
+
export class CloudSessionEnded extends LudeoEvent {
|
|
6
|
+
static readonly EVENT_NAME = "cloud-sessions.cloud-session-ended";
|
|
7
|
+
|
|
8
|
+
constructor(payload: {}, context: CloudSessionContext) {
|
|
9
|
+
super(CloudSessionEnded.EVENT_NAME);
|
|
10
|
+
this.context = context;
|
|
11
|
+
this.payload = payload;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@ValidateNestedType(() => CloudSessionContext)
|
|
15
|
+
context: CloudSessionContext;
|
|
16
|
+
|
|
17
|
+
payload: {};
|
|
18
|
+
}
|
package/src/v3/events/index.ts
CHANGED
|
@@ -56,3 +56,5 @@ export * from "./ludeo-obtained-timeout-task";
|
|
|
56
56
|
export * from "./terminate-cloud-session-request";
|
|
57
57
|
export * from "./cloud-session-created";
|
|
58
58
|
export * from "./cloud-session-allocated";
|
|
59
|
+
export * from "./terminate-stale-resources-task";
|
|
60
|
+
export * from "./cloud-session-ended";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { LudeoEvent } from "../../infra";
|
|
2
|
+
|
|
3
|
+
export class TerminateStaleResourcesTaskPayload {}
|
|
4
|
+
|
|
5
|
+
export class TerminateStaleResourcesTask extends LudeoEvent {
|
|
6
|
+
static readonly EVENT_NAME = "cloud-pools.terminate-stale-resources-task";
|
|
7
|
+
|
|
8
|
+
constructor(payload: TerminateStaleResourcesTaskPayload, context: never) {
|
|
9
|
+
super(TerminateStaleResourcesTask.EVENT_NAME);
|
|
10
|
+
this.payload = payload;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
context: never;
|
|
14
|
+
|
|
15
|
+
payload: TerminateStaleResourcesTaskPayload;
|
|
16
|
+
}
|