@ludeo/cloud-common 1.1.66 → 1.1.67

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.
@@ -1,4 +1,4 @@
1
1
  import { TypeHelpOptions } from "class-transformer";
2
2
  import { CloudPoolContext } from "./cloud-pool-context";
3
3
  import { CloudResourceContext } from "./cloud-resource-context";
4
- export declare const getCloudContextType: ({ object }: TypeHelpOptions) => typeof CloudPoolContext | typeof CloudResourceContext;
4
+ export declare const getCloudContextType: ({ object }: TypeHelpOptions) => typeof CloudResourceContext | typeof CloudPoolContext;
@@ -3,6 +3,7 @@ import { LudeoEvent } from "../../infra/ludeo-event";
3
3
  export declare class GameResourceTerminatedResponsePayload {
4
4
  gameResourceId: string;
5
5
  gamePoolId: string;
6
+ shouldDeallocateMachineResource: boolean;
6
7
  }
7
8
  export declare class GameResourceTerminatedResponse extends LudeoEvent {
8
9
  static readonly EVENT_NAME = "cloud-resources.game-resource-terminated-response";
@@ -25,6 +25,10 @@ __decorate([
25
25
  (0, class_validator_1.IsUUID)(),
26
26
  __metadata("design:type", String)
27
27
  ], GameResourceTerminatedResponsePayload.prototype, "gamePoolId", void 0);
28
+ __decorate([
29
+ (0, class_validator_1.IsBoolean)(),
30
+ __metadata("design:type", Boolean)
31
+ ], GameResourceTerminatedResponsePayload.prototype, "shouldDeallocateMachineResource", void 0);
28
32
  class GameResourceTerminatedResponse extends ludeo_event_1.LudeoEvent {
29
33
  constructor(payload, context) {
30
34
  super(GameResourceTerminatedResponse.EVENT_NAME);
@@ -1 +1 @@
1
- {"version":3,"file":"game-resource-terminated-response.js","sourceRoot":"","sources":["../../../src/v3/events/game-resource-terminated-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyC;AAEzC,0CAIqB;AACrB,yDAAqD;AACrD,oGAAqF;AAErF,MAAa,qCAAqC;CAMjD;AAND,sFAMC;AAJC;IADC,IAAA,wBAAM,GAAE;;6EACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;yEACU;AAGrB,MAAa,8BAA+B,SAAQ,wBAAU;IAI5D,YACE,OAA8C,EAC9C,OAAmD;QAEnD,KAAK,CAAC,8BAA8B,CAAC,UAAU,CAAC,CAAC;QACjD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAXH,wEAkBC;AAjBiB,yCAAU,GACxB,mDAAmD,CAAC;AAYtD;IADC,IAAA,mDAAkB,EAAC,8BAAmB,CAAC;;+DACY;AAGpD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,qCAAqC,CAAC;8BACvD,qCAAqC;+DAAC"}
1
+ {"version":3,"file":"game-resource-terminated-response.js","sourceRoot":"","sources":["../../../src/v3/events/game-resource-terminated-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAoD;AAEpD,0CAIqB;AACrB,yDAAqD;AACrD,oGAAqF;AAErF,MAAa,qCAAqC;CASjD;AATD,sFASC;AAPC;IADC,IAAA,wBAAM,GAAE;;6EACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;yEACU;AAGnB;IADC,IAAA,2BAAS,GAAE;;8FAC6B;AAG3C,MAAa,8BAA+B,SAAQ,wBAAU;IAI5D,YACE,OAA8C,EAC9C,OAAmD;QAEnD,KAAK,CAAC,8BAA8B,CAAC,UAAU,CAAC,CAAC;QACjD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAXH,wEAkBC;AAjBiB,yCAAU,GACxB,mDAAmD,CAAC;AAYtD;IADC,IAAA,mDAAkB,EAAC,8BAAmB,CAAC;;+DACY;AAGpD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,qCAAqC,CAAC;8BACvD,qCAAqC;+DAAC"}
@@ -3,6 +3,7 @@ import { LudeoEvent } from "../../infra/ludeo-event";
3
3
  export declare class GameResourceTerminationFailedResponsePayload {
4
4
  gameResourceId: string;
5
5
  gamePoolId: string;
6
+ shouldDeallocateMachineResource: boolean;
6
7
  errorMessage: string;
7
8
  }
8
9
  export declare class GameResourceTerminationFailedResponse extends LudeoEvent {
@@ -25,6 +25,10 @@ __decorate([
25
25
  (0, class_validator_1.IsUUID)(),
26
26
  __metadata("design:type", String)
27
27
  ], GameResourceTerminationFailedResponsePayload.prototype, "gamePoolId", void 0);
28
+ __decorate([
29
+ (0, class_validator_1.IsBoolean)(),
30
+ __metadata("design:type", Boolean)
31
+ ], GameResourceTerminationFailedResponsePayload.prototype, "shouldDeallocateMachineResource", void 0);
28
32
  __decorate([
29
33
  (0, class_validator_1.IsString)(),
30
34
  __metadata("design:type", String)
@@ -1 +1 @@
1
- {"version":3,"file":"game-resource-termination-failed-response.js","sourceRoot":"","sources":["../../../src/v3/events/game-resource-termination-failed-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmD;AAEnD,0CAIqB;AACrB,yDAAqD;AACrD,oGAAqF;AAErF,MAAa,4CAA4C;CASxD;AATD,oGASC;AAPC;IADC,IAAA,wBAAM,GAAE;;oFACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;gFACU;AAGnB;IADC,IAAA,0BAAQ,GAAE;;kFACU;AAGvB,MAAa,qCAAsC,SAAQ,wBAAU;IAInE,YACE,OAAqD,EACrD,OAAmD;QAEnD,KAAK,CAAC,qCAAqC,CAAC,UAAU,CAAC,CAAC;QACxD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAXH,sFAkBC;AAjBiB,gDAAU,GACxB,2DAA2D,CAAC;AAY9D;IADC,IAAA,mDAAkB,EAAC,8BAAmB,CAAC;;sEACY;AAGpD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4CAA4C,CAAC;8BAC9D,4CAA4C;sEAAC"}
1
+ {"version":3,"file":"game-resource-termination-failed-response.js","sourceRoot":"","sources":["../../../src/v3/events/game-resource-termination-failed-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA8D;AAE9D,0CAIqB;AACrB,yDAAqD;AACrD,oGAAqF;AAErF,MAAa,4CAA4C;CAYxD;AAZD,oGAYC;AAVC;IADC,IAAA,wBAAM,GAAE;;oFACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;gFACU;AAGnB;IADC,IAAA,2BAAS,GAAE;;qGAC6B;AAGzC;IADC,IAAA,0BAAQ,GAAE;;kFACU;AAGvB,MAAa,qCAAsC,SAAQ,wBAAU;IAInE,YACE,OAAqD,EACrD,OAAmD;QAEnD,KAAK,CAAC,qCAAqC,CAAC,UAAU,CAAC,CAAC;QACxD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAXH,sFAkBC;AAjBiB,gDAAU,GACxB,2DAA2D,CAAC;AAY9D;IADC,IAAA,mDAAkB,EAAC,8BAAmB,CAAC;;sEACY;AAGpD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4CAA4C,CAAC;8BAC9D,4CAA4C;sEAAC"}
@@ -0,0 +1,16 @@
1
+ import { LudeoEvent } from "../../infra/ludeo-event";
2
+ import { CloudResourceContext } from "../contexts/cloud-resource-context";
3
+ import { AWSResourceProviderSettings, CloudResourceStatus } from "../types";
4
+ export declare class GameStatusChangedEventPayload {
5
+ gameResourceId: string;
6
+ gamePoolId: string;
7
+ providerSettings: AWSResourceProviderSettings;
8
+ status: CloudResourceStatus;
9
+ error?: string;
10
+ }
11
+ export declare class GameStatusChangedEvent extends LudeoEvent {
12
+ static readonly EVENT_NAME = "cloud-resource-monitor.game-status-changed";
13
+ constructor(payload: GameStatusChangedEventPayload, context: CloudResourceContext);
14
+ context: CloudResourceContext;
15
+ payload: GameStatusChangedEventPayload;
16
+ }
@@ -0,0 +1,59 @@
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.GameStatusChangedEvent = exports.GameStatusChangedEventPayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const ludeo_event_1 = require("../../infra/ludeo-event");
15
+ const cloud_resource_context_1 = require("../contexts/cloud-resource-context");
16
+ const types_1 = require("../types");
17
+ const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
18
+ class GameStatusChangedEventPayload {
19
+ }
20
+ exports.GameStatusChangedEventPayload = GameStatusChangedEventPayload;
21
+ __decorate([
22
+ (0, class_validator_1.IsUUID)(),
23
+ __metadata("design:type", String)
24
+ ], GameStatusChangedEventPayload.prototype, "gameResourceId", void 0);
25
+ __decorate([
26
+ (0, class_validator_1.IsUUID)(),
27
+ __metadata("design:type", String)
28
+ ], GameStatusChangedEventPayload.prototype, "gamePoolId", void 0);
29
+ __decorate([
30
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.AWSResourceProviderSettings),
31
+ __metadata("design:type", types_1.AWSResourceProviderSettings)
32
+ ], GameStatusChangedEventPayload.prototype, "providerSettings", void 0);
33
+ __decorate([
34
+ (0, class_validator_1.IsString)(),
35
+ __metadata("design:type", String)
36
+ ], GameStatusChangedEventPayload.prototype, "status", void 0);
37
+ __decorate([
38
+ (0, class_validator_1.IsOptional)(),
39
+ (0, class_validator_1.IsString)(),
40
+ __metadata("design:type", String)
41
+ ], GameStatusChangedEventPayload.prototype, "error", void 0);
42
+ class GameStatusChangedEvent extends ludeo_event_1.LudeoEvent {
43
+ constructor(payload, context) {
44
+ super(GameStatusChangedEvent.EVENT_NAME);
45
+ this.payload = payload;
46
+ this.context = context;
47
+ }
48
+ }
49
+ exports.GameStatusChangedEvent = GameStatusChangedEvent;
50
+ GameStatusChangedEvent.EVENT_NAME = "cloud-resource-monitor.game-status-changed";
51
+ __decorate([
52
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => cloud_resource_context_1.CloudResourceContext),
53
+ __metadata("design:type", cloud_resource_context_1.CloudResourceContext)
54
+ ], GameStatusChangedEvent.prototype, "context", void 0);
55
+ __decorate([
56
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => GameStatusChangedEventPayload),
57
+ __metadata("design:type", GameStatusChangedEventPayload)
58
+ ], GameStatusChangedEvent.prototype, "payload", void 0);
59
+ //# sourceMappingURL=game-status-changed.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"game-status-changed.js","sourceRoot":"","sources":["../../../src/v3/events/game-status-changed.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAC/D,yDAAqD;AACrD,+EAA0E;AAC1E,oCAA4E;AAC5E,oGAAqF;AAErF,MAAa,6BAA6B;CAgBzC;AAhBD,sEAgBC;AAdC;IADC,IAAA,wBAAM,GAAE;;qEACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;iEACU;AAGnB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,mCAA2B,CAAC;8BACpC,mCAA2B;uEAAC;AAG9C;IADC,IAAA,0BAAQ,GAAE;;6DACiB;AAI5B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;4DACI;AAGjB,MAAa,sBAAuB,SAAQ,wBAAU;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,4CAA4C,CAAC;AAY1E;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,6CAAoB,CAAC;8BACtC,6CAAoB;uDAAC;AAG9B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,6BAA6B,CAAC;8BAC/C,6BAA6B;uDAAC"}
@@ -0,0 +1,14 @@
1
+ import { LudeoEvent } from "../../infra/ludeo-event";
2
+ import { AWSResourceProviderSettings, CloudProvider } from "../types";
3
+ export declare class MonitorGameTaskEventPayload {
4
+ gameResourceId: string;
5
+ gamePoolId: string;
6
+ providerSettings: AWSResourceProviderSettings;
7
+ cloudProvider: CloudProvider;
8
+ }
9
+ export declare class MonitorGameTaskEvent extends LudeoEvent {
10
+ static readonly EVENT_NAME = "cloud-resources.monitor-game-task";
11
+ constructor(payload: MonitorGameTaskEventPayload);
12
+ context: never;
13
+ payload: MonitorGameTaskEventPayload;
14
+ }
@@ -0,0 +1,48 @@
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.MonitorGameTaskEvent = exports.MonitorGameTaskEventPayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const ludeo_event_1 = require("../../infra/ludeo-event");
15
+ const types_1 = require("../types");
16
+ const decorators_1 = require("../../decorators");
17
+ class MonitorGameTaskEventPayload {
18
+ }
19
+ exports.MonitorGameTaskEventPayload = MonitorGameTaskEventPayload;
20
+ __decorate([
21
+ (0, class_validator_1.IsUUID)(),
22
+ __metadata("design:type", String)
23
+ ], MonitorGameTaskEventPayload.prototype, "gameResourceId", void 0);
24
+ __decorate([
25
+ (0, class_validator_1.IsUUID)(),
26
+ __metadata("design:type", String)
27
+ ], MonitorGameTaskEventPayload.prototype, "gamePoolId", void 0);
28
+ __decorate([
29
+ (0, decorators_1.ValidateNestedType)(() => types_1.AWSResourceProviderSettings),
30
+ __metadata("design:type", types_1.AWSResourceProviderSettings)
31
+ ], MonitorGameTaskEventPayload.prototype, "providerSettings", void 0);
32
+ __decorate([
33
+ (0, class_validator_1.IsEnum)(types_1.CloudProvider),
34
+ __metadata("design:type", String)
35
+ ], MonitorGameTaskEventPayload.prototype, "cloudProvider", void 0);
36
+ class MonitorGameTaskEvent extends ludeo_event_1.LudeoEvent {
37
+ constructor(payload) {
38
+ super(MonitorGameTaskEvent.EVENT_NAME);
39
+ this.payload = payload;
40
+ }
41
+ }
42
+ exports.MonitorGameTaskEvent = MonitorGameTaskEvent;
43
+ MonitorGameTaskEvent.EVENT_NAME = "cloud-resources.monitor-game-task";
44
+ __decorate([
45
+ (0, decorators_1.ValidateNestedType)(() => MonitorGameTaskEventPayload),
46
+ __metadata("design:type", MonitorGameTaskEventPayload)
47
+ ], MonitorGameTaskEvent.prototype, "payload", void 0);
48
+ //# sourceMappingURL=monitor-game-task.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"monitor-game-task.js","sourceRoot":"","sources":["../../../src/v3/events/monitor-game-task.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiD;AACjD,yDAAqD;AACrD,oCAAsE;AACtE,iDAAsD;AAEtD,MAAa,2BAA2B;CAYvC;AAZD,kEAYC;AAVC;IADC,IAAA,wBAAM,GAAE;;mEACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;+DACU;AAGnB;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,mCAA2B,CAAC;8BACpC,mCAA2B;qEAAC;AAG9C;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;kEACO;AAG/B,MAAa,oBAAqB,SAAQ,wBAAU;IAGlD,YAAY,OAAoC;QAC9C,KAAK,CAAC,oBAAoB,CAAC,UAAU,CAAC,CAAC;QACvC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AANH,oDAYC;AAXiB,+BAAU,GAAG,mCAAmC,CAAC;AAUjE;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,2BAA2B,CAAC;8BAC7C,2BAA2B;qDAAC"}
@@ -8,6 +8,7 @@ export declare class TerminateGameResourceRequestPayload {
8
8
  cloudProvider: CloudProvider;
9
9
  providerSettings: CloudProviderSettings;
10
10
  resourceProviderSettings: CloudResourceProviderSettings;
11
+ shouldDeallocateMachineResource: boolean;
11
12
  }
12
13
  export declare class TerminateGameResourceRequest extends LudeoEvent {
13
14
  static readonly EVENT_NAME = "cloud-pools.terminate-game-resource-request";
@@ -43,6 +43,10 @@ __decorate([
43
43
  (0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.AWSResourceProviderSettings),
44
44
  __metadata("design:type", Object)
45
45
  ], TerminateGameResourceRequestPayload.prototype, "resourceProviderSettings", void 0);
46
+ __decorate([
47
+ (0, class_validator_1.IsBoolean)(),
48
+ __metadata("design:type", Boolean)
49
+ ], TerminateGameResourceRequestPayload.prototype, "shouldDeallocateMachineResource", void 0);
46
50
  class TerminateGameResourceRequest extends ludeo_event_1.LudeoEvent {
47
51
  constructor(payload, context) {
48
52
  super(TerminateGameResourceRequest.EVENT_NAME);
@@ -1 +1 @@
1
- {"version":3,"file":"terminate-game-resource-request.js","sourceRoot":"","sources":["../../../src/v3/events/terminate-game-resource-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAwE;AAExE,0CAIqB;AACrB,yDAAqD;AACrD,oGAAqF;AACrF,oCAMkB;AAElB,MAAa,mCAAmC;CAmB/C;AAnBD,kFAmBC;AAjBC;IADC,IAAA,wBAAM,GAAE;;2EACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;uEACU;AAInB;IAFC,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;uEACQ;AAGrB;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;0EACO;AAG7B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,2BAAmB,CAAC;;6EACN;AAGxC;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,mCAA2B,CAAC;;qFACE;AAG1D,MAAa,4BAA6B,SAAQ,wBAAU;IAG1D,YACE,OAA4C,EAC5C,OAAmD;QAEnD,KAAK,CAAC,4BAA4B,CAAC,UAAU,CAAC,CAAC;QAC/C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,oEAiBC;AAhBiB,uCAAU,GAAG,6CAA6C,CAAC;AAY3E;IADC,IAAA,mDAAkB,EAAC,8BAAmB,CAAC;;6DACY;AAGpD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,mCAAmC,CAAC;8BACrD,mCAAmC;6DAAC"}
1
+ {"version":3,"file":"terminate-game-resource-request.js","sourceRoot":"","sources":["../../../src/v3/events/terminate-game-resource-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAwE;AAExE,0CAIqB;AACrB,yDAAqD;AACrD,oGAAqF;AACrF,oCAMkB;AAElB,MAAa,mCAAmC;CAsB/C;AAtBD,kFAsBC;AApBC;IADC,IAAA,wBAAM,GAAE;;2EACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;uEACU;AAInB;IAFC,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;uEACQ;AAGrB;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;0EACO;AAG7B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,2BAAmB,CAAC;;6EACN;AAGxC;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,mCAA2B,CAAC;;qFACE;AAGxD;IADC,IAAA,2BAAS,GAAE;;4FAC6B;AAG3C,MAAa,4BAA6B,SAAQ,wBAAU;IAG1D,YACE,OAA4C,EAC5C,OAAmD;QAEnD,KAAK,CAAC,4BAA4B,CAAC,UAAU,CAAC,CAAC;QAC/C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,oEAiBC;AAhBiB,uCAAU,GAAG,6CAA6C,CAAC;AAY3E;IADC,IAAA,mDAAkB,EAAC,8BAAmB,CAAC;;6DACY;AAGpD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,mCAAmC,CAAC;8BACrD,mCAAmC;6DAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ludeo/cloud-common",
3
- "version": "1.1.66",
3
+ "version": "1.1.67",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "author": "Yahil Didi",
@@ -1,4 +1,4 @@
1
- import { IsUUID } from "class-validator";
1
+ import { IsUUID, IsBoolean } from "class-validator";
2
2
 
3
3
  import {
4
4
  CloudResourceContext,
@@ -14,6 +14,9 @@ export class GameResourceTerminatedResponsePayload {
14
14
 
15
15
  @IsUUID()
16
16
  gamePoolId: string;
17
+
18
+ @IsBoolean()
19
+ shouldDeallocateMachineResource: boolean;
17
20
  }
18
21
 
19
22
  export class GameResourceTerminatedResponse extends LudeoEvent {
@@ -1,4 +1,4 @@
1
- import { IsUUID, IsString } from "class-validator";
1
+ import { IsUUID, IsString, IsBoolean } from "class-validator";
2
2
 
3
3
  import {
4
4
  CloudResourceContext,
@@ -15,6 +15,9 @@ export class GameResourceTerminationFailedResponsePayload {
15
15
  @IsUUID()
16
16
  gamePoolId: string;
17
17
 
18
+ @IsBoolean()
19
+ shouldDeallocateMachineResource: boolean;
20
+
18
21
  @IsString()
19
22
  errorMessage: string;
20
23
  }
@@ -34,6 +34,9 @@ export class TerminateGameResourceRequestPayload {
34
34
 
35
35
  @ValidateNestedType(() => AWSResourceProviderSettings)
36
36
  resourceProviderSettings: CloudResourceProviderSettings;
37
+
38
+ @IsBoolean()
39
+ shouldDeallocateMachineResource: boolean;
37
40
  }
38
41
 
39
42
  export class TerminateGameResourceRequest extends LudeoEvent {