@ludeo/cloud-common 1.2.214 → 1.2.215-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/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/v4/events/forecast/allocate-cloud-session-requested.d.ts +13 -0
- package/dist/v4/events/forecast/allocate-cloud-session-requested.js +47 -0
- package/dist/v4/events/forecast/allocate-cloud-session-requested.js.map +1 -0
- package/dist/v4/events/forecast/index.d.ts +1 -0
- package/dist/v4/events/forecast/index.js +1 -0
- package/dist/v4/events/forecast/index.js.map +1 -1
- package/package.json +1 -1
- package/src/v4/events/forecast/allocate-cloud-session-requested.ts +33 -0
- package/src/v4/events/forecast/index.ts +1 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { LudeoEvent } from "../../../infra";
|
|
2
|
+
import { CloudSessionContext } from "../../contexts";
|
|
3
|
+
import { AllocationRequestData } from "../../types";
|
|
4
|
+
export declare class AllocateCloudSessionRequestedPayload {
|
|
5
|
+
requestData: AllocationRequestData;
|
|
6
|
+
buildVersion?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare class AllocateCloudSessionRequested extends LudeoEvent {
|
|
9
|
+
static readonly EVENT_NAME = "cloud-session-allocator.allocate-cloud-session-requested";
|
|
10
|
+
constructor(payload: AllocateCloudSessionRequestedPayload, context: CloudSessionContext);
|
|
11
|
+
payload: AllocateCloudSessionRequestedPayload;
|
|
12
|
+
context: CloudSessionContext;
|
|
13
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
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.AllocateCloudSessionRequested = exports.AllocateCloudSessionRequestedPayload = void 0;
|
|
13
|
+
const infra_1 = require("../../../infra");
|
|
14
|
+
const decorators_1 = require("../../../decorators");
|
|
15
|
+
const contexts_1 = require("../../contexts");
|
|
16
|
+
const types_1 = require("../../types");
|
|
17
|
+
const class_validator_1 = require("class-validator");
|
|
18
|
+
class AllocateCloudSessionRequestedPayload {
|
|
19
|
+
}
|
|
20
|
+
exports.AllocateCloudSessionRequestedPayload = AllocateCloudSessionRequestedPayload;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, decorators_1.ValidateNestedType)(() => types_1.AllocationRequestData),
|
|
23
|
+
__metadata("design:type", types_1.AllocationRequestData)
|
|
24
|
+
], AllocateCloudSessionRequestedPayload.prototype, "requestData", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsOptional)(),
|
|
27
|
+
(0, class_validator_1.IsString)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], AllocateCloudSessionRequestedPayload.prototype, "buildVersion", void 0);
|
|
30
|
+
class AllocateCloudSessionRequested extends infra_1.LudeoEvent {
|
|
31
|
+
constructor(payload, context) {
|
|
32
|
+
super(AllocateCloudSessionRequested.EVENT_NAME);
|
|
33
|
+
this.payload = payload;
|
|
34
|
+
this.context = context;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
exports.AllocateCloudSessionRequested = AllocateCloudSessionRequested;
|
|
38
|
+
AllocateCloudSessionRequested.EVENT_NAME = "cloud-session-allocator.allocate-cloud-session-requested";
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, decorators_1.ValidateNestedType)(() => AllocateCloudSessionRequestedPayload),
|
|
41
|
+
__metadata("design:type", AllocateCloudSessionRequestedPayload)
|
|
42
|
+
], AllocateCloudSessionRequested.prototype, "payload", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, decorators_1.ValidateNestedType)(() => contexts_1.CloudSessionContext),
|
|
45
|
+
__metadata("design:type", contexts_1.CloudSessionContext)
|
|
46
|
+
], AllocateCloudSessionRequested.prototype, "context", void 0);
|
|
47
|
+
//# sourceMappingURL=allocate-cloud-session-requested.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"allocate-cloud-session-requested.js","sourceRoot":"","sources":["../../../../src/v4/events/forecast/allocate-cloud-session-requested.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAC5C,oDAAyD;AACzD,6CAAqD;AACrD,uCAAoD;AACpD,qDAAuD;AAEvD,MAAa,oCAAoC;CAOhD;AAPD,oFAOC;AALC;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,6BAAqB,CAAC;8BACnC,6BAAqB;yEAAC;AAInC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;0EACW;AAGxB,MAAa,6BAA8B,SAAQ,kBAAU;IAG3D,YACE,OAA6C,EAC7C,OAA4B;QAE5B,KAAK,CAAC,6BAA6B,CAAC,UAAU,CAAC,CAAC;QAChD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,sEAiBC;AAhBiB,wCAAU,GAAG,0DAA0D,CAAC;AAYxF;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,oCAAoC,CAAC;8BACtD,oCAAoC;8DAAC;AAG9C;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,8BAAmB,CAAC;8BACrC,8BAAmB;8DAAC"}
|
|
@@ -15,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./forecast-ended"), exports);
|
|
18
|
+
__exportStar(require("./allocate-cloud-session-requested"), exports);
|
|
18
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/v4/events/forecast/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/v4/events/forecast/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,qEAAmD"}
|
package/package.json
CHANGED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { LudeoEvent } from "../../../infra";
|
|
2
|
+
import { ValidateNestedType } from "../../../decorators";
|
|
3
|
+
import { CloudSessionContext } from "../../contexts";
|
|
4
|
+
import { AllocationRequestData } from "../../types";
|
|
5
|
+
import { IsOptional, IsString } from "class-validator";
|
|
6
|
+
|
|
7
|
+
export class AllocateCloudSessionRequestedPayload {
|
|
8
|
+
@ValidateNestedType(() => AllocationRequestData)
|
|
9
|
+
requestData: AllocationRequestData;
|
|
10
|
+
|
|
11
|
+
@IsOptional()
|
|
12
|
+
@IsString()
|
|
13
|
+
buildVersion?: string;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export class AllocateCloudSessionRequested extends LudeoEvent {
|
|
17
|
+
static readonly EVENT_NAME = "cloud-session-allocator.allocate-cloud-session-requested";
|
|
18
|
+
|
|
19
|
+
constructor(
|
|
20
|
+
payload: AllocateCloudSessionRequestedPayload,
|
|
21
|
+
context: CloudSessionContext,
|
|
22
|
+
) {
|
|
23
|
+
super(AllocateCloudSessionRequested.EVENT_NAME);
|
|
24
|
+
this.payload = payload;
|
|
25
|
+
this.context = context;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
@ValidateNestedType(() => AllocateCloudSessionRequestedPayload)
|
|
29
|
+
payload: AllocateCloudSessionRequestedPayload;
|
|
30
|
+
|
|
31
|
+
@ValidateNestedType(() => CloudSessionContext)
|
|
32
|
+
context: CloudSessionContext;
|
|
33
|
+
}
|