@ludeo/cloud-common 1.1.100 → 1.1.101

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.
@@ -0,0 +1,12 @@
1
+ import { LudeoEvent } from "../../infra";
2
+ import { CloudSessionContext } from "../contexts";
3
+ import { AllocationRequestData } from "../types";
4
+ export declare class AllocateCloudSessionRequestData {
5
+ requestData: AllocationRequestData;
6
+ }
7
+ export declare class AllocateCloudSessionRequest extends LudeoEvent {
8
+ static readonly EVENT_NAME = "cloud-sessions.allocate-cloud-session-request";
9
+ constructor(payload: AllocateCloudSessionRequestData, context: CloudSessionContext);
10
+ payload: AllocateCloudSessionRequestData;
11
+ context: CloudSessionContext;
12
+ }
@@ -0,0 +1,41 @@
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.AllocateCloudSessionRequest = exports.AllocateCloudSessionRequestData = void 0;
13
+ const infra_1 = require("../../infra");
14
+ const contexts_1 = require("../contexts");
15
+ const decorators_1 = require("../../decorators");
16
+ const types_1 = require("../types");
17
+ class AllocateCloudSessionRequestData {
18
+ }
19
+ exports.AllocateCloudSessionRequestData = AllocateCloudSessionRequestData;
20
+ __decorate([
21
+ (0, decorators_1.ValidateNestedType)(() => types_1.AllocationRequestData),
22
+ __metadata("design:type", types_1.AllocationRequestData)
23
+ ], AllocateCloudSessionRequestData.prototype, "requestData", void 0);
24
+ class AllocateCloudSessionRequest extends infra_1.LudeoEvent {
25
+ constructor(payload, context) {
26
+ super(AllocateCloudSessionRequest.EVENT_NAME);
27
+ this.payload = payload;
28
+ this.context = context;
29
+ }
30
+ }
31
+ exports.AllocateCloudSessionRequest = AllocateCloudSessionRequest;
32
+ AllocateCloudSessionRequest.EVENT_NAME = "cloud-sessions.allocate-cloud-session-request";
33
+ __decorate([
34
+ (0, decorators_1.ValidateNestedType)(() => AllocateCloudSessionRequestData),
35
+ __metadata("design:type", AllocateCloudSessionRequestData)
36
+ ], AllocateCloudSessionRequest.prototype, "payload", void 0);
37
+ __decorate([
38
+ (0, decorators_1.ValidateNestedType)(() => contexts_1.CloudSessionContext),
39
+ __metadata("design:type", contexts_1.CloudSessionContext)
40
+ ], AllocateCloudSessionRequest.prototype, "context", void 0);
41
+ //# sourceMappingURL=allocate-cloud-session-request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"allocate-cloud-session-request.js","sourceRoot":"","sources":["../../../src/v3/events/allocate-cloud-session-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uCAAyC;AACzC,0CAAkD;AAClD,iDAAsD;AACtD,oCAAiD;AAEjD,MAAa,+BAA+B;CAG3C;AAHD,0EAGC;AADC;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,6BAAqB,CAAC;8BACnC,6BAAqB;oEAAC;AAGrC,MAAa,2BAA4B,SAAQ,kBAAU;IAGzD,YACE,OAAwC,EACxC,OAA4B;QAE5B,KAAK,CAAC,2BAA2B,CAAC,UAAU,CAAC,CAAC;QAC9C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,kEAiBC;AAhBiB,sCAAU,GAAG,+CAA+C,CAAC;AAY7E;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,+BAA+B,CAAC;8BACjD,+BAA+B;4DAAC;AAGzC;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,8BAAmB,CAAC;8BACrC,8BAAmB;4DAAC"}
@@ -48,6 +48,7 @@ export * from "./prepare-cloud-machine-auth-failed";
48
48
  export * from "./token-required.event";
49
49
  export * from "./cloud-machine-auth-ready";
50
50
  export * from "./allocate-cloud-session-failed";
51
+ export * from "./allocate-cloud-session-request";
51
52
  export * from "./cloud-session-timeout-task";
52
53
  export * from "./ludeo-obtained-timeout-task";
53
54
  export * from "./terminate-cloud-session-request";
@@ -64,6 +64,7 @@ __exportStar(require("./prepare-cloud-machine-auth-failed"), exports);
64
64
  __exportStar(require("./token-required.event"), exports);
65
65
  __exportStar(require("./cloud-machine-auth-ready"), exports);
66
66
  __exportStar(require("./allocate-cloud-session-failed"), exports);
67
+ __exportStar(require("./allocate-cloud-session-request"), exports);
67
68
  __exportStar(require("./cloud-session-timeout-task"), exports);
68
69
  __exportStar(require("./ludeo-obtained-timeout-task"), exports);
69
70
  __exportStar(require("./terminate-cloud-session-request"), exports);
@@ -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;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gD;AAChD,mEAAiD;AACjD,+DAA6C;AAC7C,gEAA8C;AAC9C,oEAAkD;AAClD,0DAAwC;AACxC,4DAA0C"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ludeo/cloud-common",
3
- "version": "1.1.100",
3
+ "version": "1.1.101",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "author": "Yahil Didi",
@@ -0,0 +1,28 @@
1
+ import { LudeoEvent } from "../../infra";
2
+ import { CloudSessionContext } from "../contexts";
3
+ import { ValidateNestedType } from "../../decorators";
4
+ import { AllocationRequestData } from "../types";
5
+
6
+ export class AllocateCloudSessionRequestData {
7
+ @ValidateNestedType(() => AllocationRequestData)
8
+ requestData: AllocationRequestData;
9
+ }
10
+
11
+ export class AllocateCloudSessionRequest extends LudeoEvent {
12
+ static readonly EVENT_NAME = "cloud-sessions.allocate-cloud-session-request";
13
+
14
+ constructor(
15
+ payload: AllocateCloudSessionRequestData,
16
+ context: CloudSessionContext,
17
+ ) {
18
+ super(AllocateCloudSessionRequest.EVENT_NAME);
19
+ this.payload = payload;
20
+ this.context = context;
21
+ }
22
+
23
+ @ValidateNestedType(() => AllocateCloudSessionRequestData)
24
+ payload: AllocateCloudSessionRequestData;
25
+
26
+ @ValidateNestedType(() => CloudSessionContext)
27
+ context: CloudSessionContext;
28
+ }
@@ -48,6 +48,7 @@ export * from "./prepare-cloud-machine-auth-failed";
48
48
  export * from "./token-required.event";
49
49
  export * from "./cloud-machine-auth-ready";
50
50
  export * from "./allocate-cloud-session-failed";
51
+ export * from "./allocate-cloud-session-request";
51
52
  export * from "./cloud-session-timeout-task";
52
53
  export * from "./ludeo-obtained-timeout-task";
53
54
  export * from "./terminate-cloud-session-request";