@ludeo/cloud-common 1.1.101-beta1 → 1.1.102

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"}
@@ -43,13 +43,12 @@ export * from "./terminate-games-request";
43
43
  export * from "./terminate-machine-resource-request";
44
44
  export * from "./terminate-machine-resource-batch-request";
45
45
  export * from "./terminate-machines-request";
46
- export * from "./terminate-stale-games";
47
- export * from "./terminate-stale-machines";
48
46
  export * from "./prepare-cloud-machine-auth";
49
47
  export * from "./prepare-cloud-machine-auth-failed";
50
48
  export * from "./token-required.event";
51
49
  export * from "./cloud-machine-auth-ready";
52
50
  export * from "./allocate-cloud-session-failed";
51
+ export * from "./allocate-cloud-session-request";
53
52
  export * from "./cloud-session-timeout-task";
54
53
  export * from "./ludeo-obtained-timeout-task";
55
54
  export * from "./terminate-cloud-session-request";
@@ -59,13 +59,12 @@ __exportStar(require("./terminate-games-request"), exports);
59
59
  __exportStar(require("./terminate-machine-resource-request"), exports);
60
60
  __exportStar(require("./terminate-machine-resource-batch-request"), exports);
61
61
  __exportStar(require("./terminate-machines-request"), exports);
62
- __exportStar(require("./terminate-stale-games"), exports);
63
- __exportStar(require("./terminate-stale-machines"), exports);
64
62
  __exportStar(require("./prepare-cloud-machine-auth"), exports);
65
63
  __exportStar(require("./prepare-cloud-machine-auth-failed"), exports);
66
64
  __exportStar(require("./token-required.event"), exports);
67
65
  __exportStar(require("./cloud-machine-auth-ready"), exports);
68
66
  __exportStar(require("./allocate-cloud-session-failed"), exports);
67
+ __exportStar(require("./allocate-cloud-session-request"), exports);
69
68
  __exportStar(require("./cloud-session-timeout-task"), exports);
70
69
  __exportStar(require("./ludeo-obtained-timeout-task"), exports);
71
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":";;;;;;;;;;;;;;;;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ACnD,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;AACzC,oEAAkD;AAClD,4DAA0C;AAC1C,uEAAqD;AACrD,6EAA2D;AAC3D,+DAA6C;AAC7C,+DAA6C;AAC7C,sEAAoD;AACpD,yDAAuC;AACvC,6DAA2C;AAC3C,kEAAgD;AAChD,mEAAiD;AACjD,+DAA6C;AAC7C,gEAA8C;AAC9C,oEAAkD;AAClD,0DAAwC;AACxC,4DAA0C"}
@@ -60,4 +60,5 @@ export declare class CloudSession {
60
60
  allocationData?: CloudProviderAllocationData;
61
61
  clientRequestId: string;
62
62
  sessionToken?: string;
63
+ resourceId: string;
63
64
  }
@@ -149,4 +149,9 @@ __decorate([
149
149
  (0, class_validator_1.IsString)(),
150
150
  __metadata("design:type", String)
151
151
  ], CloudSession.prototype, "sessionToken", void 0);
152
+ __decorate([
153
+ (0, class_validator_1.IsOptional)(),
154
+ (0, class_validator_1.IsString)(),
155
+ __metadata("design:type", String)
156
+ ], CloudSession.prototype, "resourceId", void 0);
152
157
  //# sourceMappingURL=cloud.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"cloud.js","sourceRoot":"","sources":["../../../src/v3/types/cloud.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,qDAQyB;AACzB,iDAAsD;AAEtD,MAAa,cAAc;CAI1B;AAJD,wCAIC;AADC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;qDACS;AAKxB,IAAY,aAEX;AAFD,WAAY,aAAa;IACvB,4BAAW,CAAA;AACb,CAAC,E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wBAAM,GAAE;;qDACe;AAIxB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;kDACW;AAKtB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;gDACQ"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ludeo/cloud-common",
3
- "version": "1.1.101-beta1",
3
+ "version": "1.1.102",
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
+ }
@@ -43,13 +43,12 @@ export * from "./terminate-games-request";
43
43
  export * from "./terminate-machine-resource-request";
44
44
  export * from "./terminate-machine-resource-batch-request";
45
45
  export * from "./terminate-machines-request";
46
- export * from "./terminate-stale-games";
47
- export * from "./terminate-stale-machines";
48
46
  export * from "./prepare-cloud-machine-auth";
49
47
  export * from "./prepare-cloud-machine-auth-failed";
50
48
  export * from "./token-required.event";
51
49
  export * from "./cloud-machine-auth-ready";
52
50
  export * from "./allocate-cloud-session-failed";
51
+ export * from "./allocate-cloud-session-request";
53
52
  export * from "./cloud-session-timeout-task";
54
53
  export * from "./ludeo-obtained-timeout-task";
55
54
  export * from "./terminate-cloud-session-request";
@@ -134,4 +134,9 @@ export class CloudSession {
134
134
  @IsOptional()
135
135
  @IsString()
136
136
  sessionToken?: string;
137
+
138
+ // For backwards compatability
139
+ @IsOptional()
140
+ @IsString()
141
+ resourceId: string;
137
142
  }
@@ -1,11 +0,0 @@
1
- import { LudeoEvent } from "../../infra/ludeo-event";
2
- import { CloudPoolContext } from "../contexts";
3
- export declare class TerminateStaleGamesRequestPayload {
4
- poolId: string;
5
- }
6
- export declare class TerminateStaleGames extends LudeoEvent {
7
- static readonly EVENT_NAME = "cloud-pools.terminate-stale-games";
8
- constructor(payload: TerminateStaleGamesRequestPayload, context: CloudPoolContext);
9
- context: CloudPoolContext;
10
- payload: TerminateStaleGamesRequestPayload;
11
- }
@@ -1,41 +0,0 @@
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.TerminateStaleGames = exports.TerminateStaleGamesRequestPayload = void 0;
13
- const class_validator_1 = require("class-validator");
14
- const ludeo_event_1 = require("../../infra/ludeo-event");
15
- const contexts_1 = require("../contexts");
16
- const decorators_1 = require("../../decorators");
17
- class TerminateStaleGamesRequestPayload {
18
- }
19
- exports.TerminateStaleGamesRequestPayload = TerminateStaleGamesRequestPayload;
20
- __decorate([
21
- (0, class_validator_1.IsString)(),
22
- __metadata("design:type", String)
23
- ], TerminateStaleGamesRequestPayload.prototype, "poolId", void 0);
24
- class TerminateStaleGames extends ludeo_event_1.LudeoEvent {
25
- constructor(payload, context) {
26
- super(TerminateStaleGames.EVENT_NAME);
27
- this.payload = payload;
28
- this.context = context;
29
- }
30
- }
31
- exports.TerminateStaleGames = TerminateStaleGames;
32
- TerminateStaleGames.EVENT_NAME = "cloud-pools.terminate-stale-games";
33
- __decorate([
34
- (0, decorators_1.ValidateNestedType)(() => contexts_1.CloudPoolContext),
35
- __metadata("design:type", contexts_1.CloudPoolContext)
36
- ], TerminateStaleGames.prototype, "context", void 0);
37
- __decorate([
38
- (0, decorators_1.ValidateNestedType)(() => TerminateStaleGamesRequestPayload),
39
- __metadata("design:type", TerminateStaleGamesRequestPayload)
40
- ], TerminateStaleGames.prototype, "payload", void 0);
41
- //# sourceMappingURL=terminate-stale-games.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"terminate-stale-games.js","sourceRoot":"","sources":["../../../src/v3/events/terminate-stale-games.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA2C;AAC3C,yDAAqD;AACrD,0CAA+C;AAC/C,iDAAsD;AAEtD,MAAa,iCAAiC;CAG7C;AAHD,8EAGC;AADC;IADC,IAAA,0BAAQ,GAAE;;iEACI;AAGjB,MAAa,mBAAoB,SAAQ,wBAAU;IAGjD,YACE,OAA0C,EAC1C,OAAyB;QAEzB,KAAK,CAAC,mBAAmB,CAAC,UAAU,CAAC,CAAC;QACtC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,kDAiBC;AAhBiB,8BAAU,GAAG,mCAAmC,CAAC;AAYjE;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,2BAAgB,CAAC;8BAClC,2BAAgB;oDAAC;AAG1B;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,iCAAiC,CAAC;8BACnD,iCAAiC;oDAAC"}
@@ -1,11 +0,0 @@
1
- import { LudeoEvent } from "../../infra/ludeo-event";
2
- import { CloudPoolContext } from "../contexts";
3
- export declare class TerminateStaleMachinesRequestPayload {
4
- poolId: string;
5
- }
6
- export declare class TerminateStaleMachines extends LudeoEvent {
7
- static readonly EVENT_NAME = "cloud-pools.terminate-stale-machines";
8
- constructor(payload: TerminateStaleMachinesRequestPayload, context: CloudPoolContext);
9
- context: CloudPoolContext;
10
- payload: TerminateStaleMachinesRequestPayload;
11
- }
@@ -1,41 +0,0 @@
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.TerminateStaleMachines = exports.TerminateStaleMachinesRequestPayload = void 0;
13
- const class_validator_1 = require("class-validator");
14
- const ludeo_event_1 = require("../../infra/ludeo-event");
15
- const contexts_1 = require("../contexts");
16
- const decorators_1 = require("../../decorators");
17
- class TerminateStaleMachinesRequestPayload {
18
- }
19
- exports.TerminateStaleMachinesRequestPayload = TerminateStaleMachinesRequestPayload;
20
- __decorate([
21
- (0, class_validator_1.IsString)(),
22
- __metadata("design:type", String)
23
- ], TerminateStaleMachinesRequestPayload.prototype, "poolId", void 0);
24
- class TerminateStaleMachines extends ludeo_event_1.LudeoEvent {
25
- constructor(payload, context) {
26
- super(TerminateStaleMachines.EVENT_NAME);
27
- this.payload = payload;
28
- this.context = context;
29
- }
30
- }
31
- exports.TerminateStaleMachines = TerminateStaleMachines;
32
- TerminateStaleMachines.EVENT_NAME = "cloud-pools.terminate-stale-machines";
33
- __decorate([
34
- (0, decorators_1.ValidateNestedType)(() => contexts_1.CloudPoolContext),
35
- __metadata("design:type", contexts_1.CloudPoolContext)
36
- ], TerminateStaleMachines.prototype, "context", void 0);
37
- __decorate([
38
- (0, decorators_1.ValidateNestedType)(() => TerminateStaleMachinesRequestPayload),
39
- __metadata("design:type", TerminateStaleMachinesRequestPayload)
40
- ], TerminateStaleMachines.prototype, "payload", void 0);
41
- //# sourceMappingURL=terminate-stale-machines.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"terminate-stale-machines.js","sourceRoot":"","sources":["../../../src/v3/events/terminate-stale-machines.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA2C;AAC3C,yDAAqD;AACrD,0CAA+C;AAC/C,iDAAsD;AAEtD,MAAa,oCAAoC;CAGhD;AAHD,oFAGC;AADC;IADC,IAAA,0BAAQ,GAAE;;oEACI;AAGjB,MAAa,sBAAuB,SAAQ,wBAAU;IAGpD,YACE,OAA6C,EAC7C,OAAyB;QAEzB,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,sCAAsC,CAAC;AAYpE;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,2BAAgB,CAAC;8BAClC,2BAAgB;uDAAC;AAG1B;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,oCAAoC,CAAC;8BACtD,oCAAoC;uDAAC"}
@@ -1,28 +0,0 @@
1
- import { IsString } from "class-validator";
2
- import { LudeoEvent } from "../../infra/ludeo-event";
3
- import { CloudPoolContext } from "../contexts";
4
- import { ValidateNestedType } from "../../decorators";
5
-
6
- export class TerminateStaleGamesRequestPayload {
7
- @IsString()
8
- poolId: string;
9
- }
10
-
11
- export class TerminateStaleGames extends LudeoEvent {
12
- static readonly EVENT_NAME = "cloud-pools.terminate-stale-games";
13
-
14
- constructor(
15
- payload: TerminateStaleGamesRequestPayload,
16
- context: CloudPoolContext
17
- ) {
18
- super(TerminateStaleGames.EVENT_NAME);
19
- this.payload = payload;
20
- this.context = context;
21
- }
22
-
23
- @ValidateNestedType(() => CloudPoolContext)
24
- context: CloudPoolContext;
25
-
26
- @ValidateNestedType(() => TerminateStaleGamesRequestPayload)
27
- payload: TerminateStaleGamesRequestPayload;
28
- }
@@ -1,28 +0,0 @@
1
- import { IsString } from "class-validator";
2
- import { LudeoEvent } from "../../infra/ludeo-event";
3
- import { CloudPoolContext } from "../contexts";
4
- import { ValidateNestedType } from "../../decorators";
5
-
6
- export class TerminateStaleMachinesRequestPayload {
7
- @IsString()
8
- poolId: string;
9
- }
10
-
11
- export class TerminateStaleMachines extends LudeoEvent {
12
- static readonly EVENT_NAME = "cloud-pools.terminate-stale-machines";
13
-
14
- constructor(
15
- payload: TerminateStaleMachinesRequestPayload,
16
- context: CloudPoolContext
17
- ) {
18
- super(TerminateStaleMachines.EVENT_NAME);
19
- this.payload = payload;
20
- this.context = context;
21
- }
22
-
23
- @ValidateNestedType(() => CloudPoolContext)
24
- context: CloudPoolContext;
25
-
26
- @ValidateNestedType(() => TerminateStaleMachinesRequestPayload)
27
- payload: TerminateStaleMachinesRequestPayload;
28
- }