@ludeo/cloud-common 1.2.51 → 1.2.52-beta-yahil-2

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,14 @@
1
+ import { LudeoEvent } from "../../infra/ludeo-event";
2
+ import { CloudResourceContext, CloudSessionContext } from "../contexts";
3
+ export declare class GameDeallocatedResponsePayload {
4
+ gamePoolId: string;
5
+ gameResourceId: string;
6
+ ludeoPoolId: string;
7
+ ludeoResourceId: string;
8
+ }
9
+ export declare class GameDeallocatedResponse extends LudeoEvent {
10
+ static readonly EVENT_NAME = "cloud-pools.game-deallocated-response";
11
+ constructor(payload: GameDeallocatedResponsePayload, context: CloudSessionContext | CloudResourceContext);
12
+ context: CloudSessionContext | CloudResourceContext;
13
+ payload: GameDeallocatedResponsePayload;
14
+ }
@@ -0,0 +1,53 @@
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.GameDeallocatedResponse = exports.GameDeallocatedResponsePayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const ludeo_event_1 = require("../../infra/ludeo-event");
15
+ const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
16
+ const contexts_1 = require("../contexts");
17
+ class GameDeallocatedResponsePayload {
18
+ }
19
+ exports.GameDeallocatedResponsePayload = GameDeallocatedResponsePayload;
20
+ __decorate([
21
+ (0, class_validator_1.IsUUID)(),
22
+ __metadata("design:type", String)
23
+ ], GameDeallocatedResponsePayload.prototype, "gamePoolId", void 0);
24
+ __decorate([
25
+ (0, class_validator_1.IsUUID)(),
26
+ __metadata("design:type", String)
27
+ ], GameDeallocatedResponsePayload.prototype, "gameResourceId", void 0);
28
+ __decorate([
29
+ (0, class_validator_1.IsUUID)(),
30
+ __metadata("design:type", String)
31
+ ], GameDeallocatedResponsePayload.prototype, "ludeoPoolId", void 0);
32
+ __decorate([
33
+ (0, class_validator_1.IsUUID)(),
34
+ __metadata("design:type", String)
35
+ ], GameDeallocatedResponsePayload.prototype, "ludeoResourceId", void 0);
36
+ class GameDeallocatedResponse extends ludeo_event_1.LudeoEvent {
37
+ constructor(payload, context) {
38
+ super(GameDeallocatedResponse.EVENT_NAME);
39
+ this.payload = payload;
40
+ this.context = context;
41
+ }
42
+ }
43
+ exports.GameDeallocatedResponse = GameDeallocatedResponse;
44
+ GameDeallocatedResponse.EVENT_NAME = "cloud-pools.game-deallocated-response";
45
+ __decorate([
46
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(contexts_1.getCloudContextType),
47
+ __metadata("design:type", Object)
48
+ ], GameDeallocatedResponse.prototype, "context", void 0);
49
+ __decorate([
50
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => GameDeallocatedResponsePayload),
51
+ __metadata("design:type", GameDeallocatedResponsePayload)
52
+ ], GameDeallocatedResponse.prototype, "payload", void 0);
53
+ //# sourceMappingURL=game-deallocated-response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"game-deallocated-response.js","sourceRoot":"","sources":["../../../src/v4/events/game-deallocated-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyC;AAEzC,yDAAqD;AACrD,oGAAqF;AACrF,0CAIqB;AAErB,MAAa,8BAA8B;CAY1C;AAZD,wEAYC;AAVC;IADC,IAAA,wBAAM,GAAE;;kEACU;AAGnB;IADC,IAAA,wBAAM,GAAE;;sEACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;mEACW;AAGpB;IADC,IAAA,wBAAM,GAAE;;uEACe;AAG1B,MAAa,uBAAwB,SAAQ,wBAAU;IAGrD,YACE,OAAuC,EACvC,OAAmD;QAEnD,KAAK,CAAC,uBAAuB,CAAC,UAAU,CAAC,CAAC;QAC1C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,0DAiBC;AAhBiB,kCAAU,GAAG,uCAAuC,CAAC;AAYrE;IADC,IAAA,mDAAkB,EAAC,8BAAmB,CAAC;;wDACY;AAGpD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,8BAA8B,CAAC;8BAChD,8BAA8B;wDAAC"}
@@ -0,0 +1,15 @@
1
+ import { LudeoEvent } from "../../infra/ludeo-event";
2
+ import { CloudResourceContext, CloudSessionContext } from "../contexts";
3
+ export declare class GameDeallocationFailedResponsePayload {
4
+ gamePoolId: string;
5
+ gameResourceId: string;
6
+ ludeoPoolId: string;
7
+ ludeoResourceId: string;
8
+ errorMessage: string;
9
+ }
10
+ export declare class GameDeallocationFailedResponse extends LudeoEvent {
11
+ static readonly EVENT_NAME = "cloud-pools.game-deallocation-failed-response";
12
+ constructor(payload: GameDeallocationFailedResponsePayload, context: CloudSessionContext | CloudResourceContext);
13
+ context: CloudSessionContext | CloudResourceContext;
14
+ payload: GameDeallocationFailedResponsePayload;
15
+ }
@@ -0,0 +1,57 @@
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.GameDeallocationFailedResponse = exports.GameDeallocationFailedResponsePayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const ludeo_event_1 = require("../../infra/ludeo-event");
15
+ const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
16
+ const contexts_1 = require("../contexts");
17
+ class GameDeallocationFailedResponsePayload {
18
+ }
19
+ exports.GameDeallocationFailedResponsePayload = GameDeallocationFailedResponsePayload;
20
+ __decorate([
21
+ (0, class_validator_1.IsUUID)(),
22
+ __metadata("design:type", String)
23
+ ], GameDeallocationFailedResponsePayload.prototype, "gamePoolId", void 0);
24
+ __decorate([
25
+ (0, class_validator_1.IsUUID)(),
26
+ __metadata("design:type", String)
27
+ ], GameDeallocationFailedResponsePayload.prototype, "gameResourceId", void 0);
28
+ __decorate([
29
+ (0, class_validator_1.IsUUID)(),
30
+ __metadata("design:type", String)
31
+ ], GameDeallocationFailedResponsePayload.prototype, "ludeoPoolId", void 0);
32
+ __decorate([
33
+ (0, class_validator_1.IsUUID)(),
34
+ __metadata("design:type", String)
35
+ ], GameDeallocationFailedResponsePayload.prototype, "ludeoResourceId", void 0);
36
+ __decorate([
37
+ (0, class_validator_1.IsString)(),
38
+ __metadata("design:type", String)
39
+ ], GameDeallocationFailedResponsePayload.prototype, "errorMessage", void 0);
40
+ class GameDeallocationFailedResponse extends ludeo_event_1.LudeoEvent {
41
+ constructor(payload, context) {
42
+ super(GameDeallocationFailedResponse.EVENT_NAME);
43
+ this.payload = payload;
44
+ this.context = context;
45
+ }
46
+ }
47
+ exports.GameDeallocationFailedResponse = GameDeallocationFailedResponse;
48
+ GameDeallocationFailedResponse.EVENT_NAME = "cloud-pools.game-deallocation-failed-response";
49
+ __decorate([
50
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(contexts_1.getCloudContextType),
51
+ __metadata("design:type", Object)
52
+ ], GameDeallocationFailedResponse.prototype, "context", void 0);
53
+ __decorate([
54
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => GameDeallocationFailedResponsePayload),
55
+ __metadata("design:type", GameDeallocationFailedResponsePayload)
56
+ ], GameDeallocationFailedResponse.prototype, "payload", void 0);
57
+ //# sourceMappingURL=game-deallocation-failed-response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"game-deallocation-failed-response.js","sourceRoot":"","sources":["../../../src/v4/events/game-deallocation-failed-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmD;AAEnD,yDAAqD;AACrD,oGAAqF;AACrF,0CAIqB;AAErB,MAAa,qCAAqC;CAejD;AAfD,sFAeC;AAbC;IADC,IAAA,wBAAM,GAAE;;yEACU;AAGnB;IADC,IAAA,wBAAM,GAAE;;6EACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;0EACW;AAGpB;IADC,IAAA,wBAAM,GAAE;;8EACe;AAGxB;IADC,IAAA,0BAAQ,GAAE;;2EACU;AAGvB,MAAa,8BAA+B,SAAQ,wBAAU;IAG5D,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;;AAVH,wEAiBC;AAhBiB,yCAAU,GAAG,+CAA+C,CAAC;AAY7E;IADC,IAAA,mDAAkB,EAAC,8BAAmB,CAAC;;+DACY;AAGpD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,qCAAqC,CAAC;8BACvD,qCAAqC;+DAAC"}
@@ -97,3 +97,6 @@ export * from "./swap-cloud-user-gameplay-request-failed";
97
97
  export * from "./deallocate-game-request";
98
98
  export * from "./ludeo-available";
99
99
  export * from "./ludeo-resource-status-changed";
100
+ export * from "./game-deallocated-response";
101
+ export * from "./game-deallocation-failed-response";
102
+ export * from "./terminate-ludeo-request";
@@ -113,4 +113,7 @@ __exportStar(require("./swap-cloud-user-gameplay-request-failed"), exports);
113
113
  __exportStar(require("./deallocate-game-request"), exports);
114
114
  __exportStar(require("./ludeo-available"), exports);
115
115
  __exportStar(require("./ludeo-resource-status-changed"), exports);
116
+ __exportStar(require("./game-deallocated-response"), exports);
117
+ __exportStar(require("./game-deallocation-failed-response"), exports);
118
+ __exportStar(require("./terminate-ludeo-request"), exports);
116
119
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v4/events/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,mEAAiD;AACjD,6DAA2C;AAC3C,uEAAqD;AACrD,4EAA0D;AAC1D,6DAA2C;AAC3C,qEAAmD;AACnD,iEAA+C;AAC/C,yDAAuC;AACvC,0EAAwD;AACxD,oEAAkD;AAClD,4DAA0C;AAC1C,+DAA6C;AAC7C,mDAAiC;AACjC,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,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,0DAAwC;AACxC,6DAA2C;AAC3C,+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;AACtC,0DAAwC;AACxC,2EAAyD;AACzD,iEAA+C;AAC/C,qEAAmD;AACnD,4EAA0D;AAC1D,8DAA4C;AAC5C,0EAAwD;AACxD,0DAAwC;AACxC,oEAAkD;AAClD,8DAA4C;AAC5C,wDAAsC;AACtC,6DAA2C;AAC3C,4DAA0C;AAC1C,sEAAoD;AACpD,qEAAmD;AACnD,0DAAwC;AACxC,kEAAgD;AAChD,yDAAuC;AACvC,mEAAiD;AACjD,2DAAyC;AACzC,oEAAkD;AAClD,6DAA2C;AAC3C,yEAAuD;AACvD,+DAA6C;AAC7C,wEAAsD;AACtD,+DAA6C;AAC7C,wDAAsC;AACtC,gEAA8C;AAC9C,oEAAkD;AAClD,qEAAmD;AACnD,4EAA0D;AAC1D,4DAA0C;AAC1C,oDAAkC;AAClC,kEAAgD"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v4/events/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,mEAAiD;AACjD,6DAA2C;AAC3C,uEAAqD;AACrD,4EAA0D;AAC1D,6DAA2C;AAC3C,qEAAmD;AACnD,iEAA+C;AAC/C,yDAAuC;AACvC,0EAAwD;AACxD,oEAAkD;AAClD,4DAA0C;AAC1C,+DAA6C;AAC7C,mDAAiC;AACjC,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,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,0DAAwC;AACxC,6DAA2C;AAC3C,+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;AACtC,0DAAwC;AACxC,2EAAyD;AACzD,iEAA+C;AAC/C,qEAAmD;AACnD,4EAA0D;AAC1D,8DAA4C;AAC5C,0EAAwD;AACxD,0DAAwC;AACxC,oEAAkD;AAClD,8DAA4C;AAC5C,wDAAsC;AACtC,6DAA2C;AAC3C,4DAA0C;AAC1C,sEAAoD;AACpD,qEAAmD;AACnD,0DAAwC;AACxC,kEAAgD;AAChD,yDAAuC;AACvC,mEAAiD;AACjD,2DAAyC;AACzC,oEAAkD;AAClD,6DAA2C;AAC3C,yEAAuD;AACvD,+DAA6C;AAC7C,wEAAsD;AACtD,+DAA6C;AAC7C,wDAAsC;AACtC,gEAA8C;AAC9C,oEAAkD;AAClD,qEAAmD;AACnD,4EAA0D;AAC1D,4DAA0C;AAC1C,oDAAkC;AAClC,kEAAgD;AAChD,8DAA4C;AAC5C,sEAAoD;AACpD,4DAA0C"}
@@ -0,0 +1,13 @@
1
+ import { CloudResourceContext, CloudSessionContext } from "../contexts";
2
+ import { LudeoEvent } from "../../infra/ludeo-event";
3
+ export declare class TerminateLudeoRequestPayload {
4
+ ludeoPoolId: string;
5
+ ludeoResourceId: string;
6
+ reason?: string;
7
+ }
8
+ export declare class TerminateLudeoRequest extends LudeoEvent {
9
+ static readonly EVENT_NAME = "cloud-pools.terminate-ludeo-request";
10
+ constructor(payload: TerminateLudeoRequestPayload, context: CloudSessionContext | CloudResourceContext);
11
+ context: CloudSessionContext | CloudResourceContext;
12
+ payload: TerminateLudeoRequestPayload;
13
+ }
@@ -0,0 +1,50 @@
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.TerminateLudeoRequest = exports.TerminateLudeoRequestPayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const contexts_1 = require("../contexts");
15
+ const ludeo_event_1 = require("../../infra/ludeo-event");
16
+ const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
17
+ class TerminateLudeoRequestPayload {
18
+ }
19
+ exports.TerminateLudeoRequestPayload = TerminateLudeoRequestPayload;
20
+ __decorate([
21
+ (0, class_validator_1.IsUUID)(),
22
+ __metadata("design:type", String)
23
+ ], TerminateLudeoRequestPayload.prototype, "ludeoPoolId", void 0);
24
+ __decorate([
25
+ (0, class_validator_1.IsUUID)(),
26
+ __metadata("design:type", String)
27
+ ], TerminateLudeoRequestPayload.prototype, "ludeoResourceId", void 0);
28
+ __decorate([
29
+ (0, class_validator_1.IsString)(),
30
+ (0, class_validator_1.IsOptional)(),
31
+ __metadata("design:type", String)
32
+ ], TerminateLudeoRequestPayload.prototype, "reason", void 0);
33
+ class TerminateLudeoRequest extends ludeo_event_1.LudeoEvent {
34
+ constructor(payload, context) {
35
+ super(TerminateLudeoRequest.EVENT_NAME);
36
+ this.payload = payload;
37
+ this.context = context;
38
+ }
39
+ }
40
+ exports.TerminateLudeoRequest = TerminateLudeoRequest;
41
+ TerminateLudeoRequest.EVENT_NAME = "cloud-pools.terminate-ludeo-request";
42
+ __decorate([
43
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(contexts_1.getCloudContextType),
44
+ __metadata("design:type", Object)
45
+ ], TerminateLudeoRequest.prototype, "context", void 0);
46
+ __decorate([
47
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => TerminateLudeoRequestPayload),
48
+ __metadata("design:type", TerminateLudeoRequestPayload)
49
+ ], TerminateLudeoRequest.prototype, "payload", void 0);
50
+ //# sourceMappingURL=terminate-ludeo-request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"terminate-ludeo-request.js","sourceRoot":"","sources":["../../../src/v4/events/terminate-ludeo-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA0E;AAE1E,0CAIqB;AACrB,yDAAqD;AACrD,oGAAqF;AAErF,MAAa,4BAA4B;CAUxC;AAVD,oEAUC;AARC;IADC,IAAA,wBAAM,GAAE;;iEACW;AAGpB;IADC,IAAA,wBAAM,GAAE;;qEACe;AAIxB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;4DACG;AAGlB,MAAa,qBAAsB,SAAQ,wBAAU;IAGnD,YACE,OAAqC,EACrC,OAAmD;QAEnD,KAAK,CAAC,qBAAqB,CAAC,UAAU,CAAC,CAAC;QACxC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,sDAiBC;AAhBiB,gCAAU,GAAG,qCAAqC,CAAC;AAYnE;IADC,IAAA,mDAAkB,EAAC,8BAAmB,CAAC;;sDACY;AAGpD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAA4B,CAAC;8BAC9C,4BAA4B;sDAAC"}
@@ -0,0 +1,12 @@
1
+ import { CloudResourceContext, CloudSessionContext } from "../contexts";
2
+ import { LudeoEvent } from "../../infra/ludeo-event";
3
+ export declare class TerminateLudeoResourceRequestPayload {
4
+ ludeoResourceId: string;
5
+ ludeoPoolId: string;
6
+ }
7
+ export declare class TerminateLudeoResourceRequest extends LudeoEvent {
8
+ static readonly EVENT_NAME = "cloud-pools.terminate-ludeo-resource-request";
9
+ constructor(payload: TerminateLudeoResourceRequestPayload, context: CloudSessionContext | CloudResourceContext);
10
+ context: CloudSessionContext | CloudResourceContext;
11
+ payload: TerminateLudeoResourceRequestPayload;
12
+ }
@@ -0,0 +1,45 @@
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.TerminateLudeoResourceRequest = exports.TerminateLudeoResourceRequestPayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const contexts_1 = require("../contexts");
15
+ const ludeo_event_1 = require("../../infra/ludeo-event");
16
+ const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
17
+ class TerminateLudeoResourceRequestPayload {
18
+ }
19
+ exports.TerminateLudeoResourceRequestPayload = TerminateLudeoResourceRequestPayload;
20
+ __decorate([
21
+ (0, class_validator_1.IsUUID)(),
22
+ __metadata("design:type", String)
23
+ ], TerminateLudeoResourceRequestPayload.prototype, "ludeoResourceId", void 0);
24
+ __decorate([
25
+ (0, class_validator_1.IsUUID)(),
26
+ __metadata("design:type", String)
27
+ ], TerminateLudeoResourceRequestPayload.prototype, "ludeoPoolId", void 0);
28
+ class TerminateLudeoResourceRequest extends ludeo_event_1.LudeoEvent {
29
+ constructor(payload, context) {
30
+ super(TerminateLudeoResourceRequest.EVENT_NAME);
31
+ this.payload = payload;
32
+ this.context = context;
33
+ }
34
+ }
35
+ exports.TerminateLudeoResourceRequest = TerminateLudeoResourceRequest;
36
+ TerminateLudeoResourceRequest.EVENT_NAME = "cloud-pools.terminate-ludeo-resource-request";
37
+ __decorate([
38
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(contexts_1.getCloudContextType),
39
+ __metadata("design:type", Object)
40
+ ], TerminateLudeoResourceRequest.prototype, "context", void 0);
41
+ __decorate([
42
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => TerminateLudeoResourceRequestPayload),
43
+ __metadata("design:type", TerminateLudeoResourceRequestPayload)
44
+ ], TerminateLudeoResourceRequest.prototype, "payload", void 0);
45
+ //# sourceMappingURL=terminate-ludeo-resource-request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"terminate-ludeo-resource-request.js","sourceRoot":"","sources":["../../../src/v4/events/terminate-ludeo-resource-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyC;AAEzC,0CAIqB;AACrB,yDAAqD;AACrD,oGAAqF;AAErF,MAAa,oCAAoC;CAMhD;AAND,oFAMC;AAJC;IADC,IAAA,wBAAM,GAAE;;6EACe;AAGxB;IADC,IAAA,wBAAM,GAAE;;yEACW;AAGtB,MAAa,6BAA8B,SAAQ,wBAAU;IAG3D,YACE,OAA6C,EAC7C,OAAmD;QAEnD,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,8CAA8C,CAAC;AAY5E;IADC,IAAA,mDAAkB,EAAC,8BAAmB,CAAC;;8DACY;AAGpD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,oCAAoC,CAAC;8BACtD,oCAAoC;8DAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ludeo/cloud-common",
3
- "version": "1.2.51",
3
+ "version": "1.2.52-beta-yahil-2",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "author": "Yahil Didi",
@@ -0,0 +1,42 @@
1
+ import { IsUUID } from "class-validator";
2
+
3
+ import { LudeoEvent } from "../../infra/ludeo-event";
4
+ import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
5
+ import {
6
+ CloudResourceContext,
7
+ CloudSessionContext,
8
+ getCloudContextType,
9
+ } from "../contexts";
10
+
11
+ export class GameDeallocatedResponsePayload {
12
+ @IsUUID()
13
+ gamePoolId: string;
14
+
15
+ @IsUUID()
16
+ gameResourceId: string;
17
+
18
+ @IsUUID()
19
+ ludeoPoolId: string;
20
+
21
+ @IsUUID()
22
+ ludeoResourceId: string;
23
+ }
24
+
25
+ export class GameDeallocatedResponse extends LudeoEvent {
26
+ static readonly EVENT_NAME = "cloud-pools.game-deallocated-response";
27
+
28
+ constructor(
29
+ payload: GameDeallocatedResponsePayload,
30
+ context: CloudSessionContext | CloudResourceContext
31
+ ) {
32
+ super(GameDeallocatedResponse.EVENT_NAME);
33
+ this.payload = payload;
34
+ this.context = context;
35
+ }
36
+
37
+ @ValidateNestedType(getCloudContextType)
38
+ context: CloudSessionContext | CloudResourceContext;
39
+
40
+ @ValidateNestedType(() => GameDeallocatedResponsePayload)
41
+ payload: GameDeallocatedResponsePayload;
42
+ }
@@ -0,0 +1,45 @@
1
+ import { IsString, IsUUID } from "class-validator";
2
+
3
+ import { LudeoEvent } from "../../infra/ludeo-event";
4
+ import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
5
+ import {
6
+ CloudResourceContext,
7
+ CloudSessionContext,
8
+ getCloudContextType,
9
+ } from "../contexts";
10
+
11
+ export class GameDeallocationFailedResponsePayload {
12
+ @IsUUID()
13
+ gamePoolId: string;
14
+
15
+ @IsUUID()
16
+ gameResourceId: string;
17
+
18
+ @IsUUID()
19
+ ludeoPoolId: string;
20
+
21
+ @IsUUID()
22
+ ludeoResourceId: string;
23
+
24
+ @IsString()
25
+ errorMessage: string;
26
+ }
27
+
28
+ export class GameDeallocationFailedResponse extends LudeoEvent {
29
+ static readonly EVENT_NAME = "cloud-pools.game-deallocation-failed-response";
30
+
31
+ constructor(
32
+ payload: GameDeallocationFailedResponsePayload,
33
+ context: CloudSessionContext | CloudResourceContext
34
+ ) {
35
+ super(GameDeallocationFailedResponse.EVENT_NAME);
36
+ this.payload = payload;
37
+ this.context = context;
38
+ }
39
+
40
+ @ValidateNestedType(getCloudContextType)
41
+ context: CloudSessionContext | CloudResourceContext;
42
+
43
+ @ValidateNestedType(() => GameDeallocationFailedResponsePayload)
44
+ payload: GameDeallocationFailedResponsePayload;
45
+ }
@@ -97,3 +97,6 @@ export * from "./swap-cloud-user-gameplay-request-failed";
97
97
  export * from "./deallocate-game-request";
98
98
  export * from "./ludeo-available";
99
99
  export * from "./ludeo-resource-status-changed";
100
+ export * from "./game-deallocated-response";
101
+ export * from "./game-deallocation-failed-response";
102
+ export * from "./terminate-ludeo-request";
@@ -0,0 +1,40 @@
1
+ import { IsBoolean, IsOptional, IsString, IsUUID } from "class-validator";
2
+
3
+ import {
4
+ CloudResourceContext,
5
+ CloudSessionContext,
6
+ getCloudContextType,
7
+ } from "../contexts";
8
+ import { LudeoEvent } from "../../infra/ludeo-event";
9
+ import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
10
+
11
+ export class TerminateLudeoRequestPayload {
12
+ @IsUUID()
13
+ ludeoPoolId: string;
14
+
15
+ @IsUUID()
16
+ ludeoResourceId: string;
17
+
18
+ @IsString()
19
+ @IsOptional()
20
+ reason?: string;
21
+ }
22
+
23
+ export class TerminateLudeoRequest extends LudeoEvent {
24
+ static readonly EVENT_NAME = "cloud-pools.terminate-ludeo-request";
25
+
26
+ constructor(
27
+ payload: TerminateLudeoRequestPayload,
28
+ context: CloudSessionContext | CloudResourceContext
29
+ ) {
30
+ super(TerminateLudeoRequest.EVENT_NAME);
31
+ this.payload = payload;
32
+ this.context = context;
33
+ }
34
+
35
+ @ValidateNestedType(getCloudContextType)
36
+ context: CloudSessionContext | CloudResourceContext;
37
+
38
+ @ValidateNestedType(() => TerminateLudeoRequestPayload)
39
+ payload: TerminateLudeoRequestPayload;
40
+ }
@@ -0,0 +1,36 @@
1
+ import { IsUUID } from "class-validator";
2
+
3
+ import {
4
+ CloudResourceContext,
5
+ CloudSessionContext,
6
+ getCloudContextType,
7
+ } from "../contexts";
8
+ import { LudeoEvent } from "../../infra/ludeo-event";
9
+ import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
10
+
11
+ export class TerminateLudeoResourceRequestPayload {
12
+ @IsUUID()
13
+ ludeoResourceId: string;
14
+
15
+ @IsUUID()
16
+ ludeoPoolId: string;
17
+ }
18
+
19
+ export class TerminateLudeoResourceRequest extends LudeoEvent {
20
+ static readonly EVENT_NAME = "cloud-pools.terminate-ludeo-resource-request";
21
+
22
+ constructor(
23
+ payload: TerminateLudeoResourceRequestPayload,
24
+ context: CloudSessionContext | CloudResourceContext
25
+ ) {
26
+ super(TerminateLudeoResourceRequest.EVENT_NAME);
27
+ this.payload = payload;
28
+ this.context = context;
29
+ }
30
+
31
+ @ValidateNestedType(getCloudContextType)
32
+ context: CloudSessionContext | CloudResourceContext;
33
+
34
+ @ValidateNestedType(() => TerminateLudeoResourceRequestPayload)
35
+ payload: TerminateLudeoResourceRequestPayload;
36
+ }