@ludeo/cloud-common 1.1.121-beta8 → 1.1.121

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.
@@ -60,6 +60,3 @@ export * from "./cloud-session-allocated";
60
60
  export * from "./terminate-stale-resources-task";
61
61
  export * from "./cloud-session-ended";
62
62
  export * from "./invalid-game-resource";
63
- export * from "./aws-poll-stream-session-task";
64
- export * from "./game-resource-ready-for-creation";
65
- export * from "./game-resource-ready-for-creation-failed";
@@ -76,7 +76,4 @@ __exportStar(require("./cloud-session-allocated"), exports);
76
76
  __exportStar(require("./terminate-stale-resources-task"), exports);
77
77
  __exportStar(require("./cloud-session-ended"), exports);
78
78
  __exportStar(require("./invalid-game-resource"), exports);
79
- __exportStar(require("./aws-poll-stream-session-task"), exports);
80
- __exportStar(require("./game-resource-ready-for-creation"), exports);
81
- __exportStar(require("./game-resource-ready-for-creation-failed"), exports);
82
79
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v3/events/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,mEAAiD;AACjD,6DAA2C;AAC3C,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;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,iEAA+C;AAC/C,qEAAmD;AACnD,4EAA0D"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v3/events/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,mEAAiD;AACjD,6DAA2C;AAC3C,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;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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ludeo/cloud-common",
3
- "version": "1.1.121-beta8",
3
+ "version": "1.1.121",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "author": "Yahil Didi",
@@ -60,6 +60,3 @@ export * from "./cloud-session-allocated";
60
60
  export * from "./terminate-stale-resources-task";
61
61
  export * from "./cloud-session-ended";
62
62
  export * from "./invalid-game-resource";
63
- export * from "./aws-poll-stream-session-task";
64
- export * from "./game-resource-ready-for-creation";
65
- export * from "./game-resource-ready-for-creation-failed";
@@ -1,12 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <module type="WEB_MODULE" version="4">
3
- <component name="NewModuleRootManager">
4
- <content url="file://$MODULE_DIR$">
5
- <excludeFolder url="file://$MODULE_DIR$/.tmp" />
6
- <excludeFolder url="file://$MODULE_DIR$/temp" />
7
- <excludeFolder url="file://$MODULE_DIR$/tmp" />
8
- </content>
9
- <orderEntry type="inheritedJdk" />
10
- <orderEntry type="sourceFolder" forTests="false" />
11
- </component>
12
- </module>
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="GitToolBoxBlameSettings">
4
- <option name="version" value="2" />
5
- </component>
6
- </project>
@@ -1,15 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="GitToolBoxProjectSettings">
4
- <option name="commitMessageIssueKeyValidationOverride">
5
- <BoolValueOverride>
6
- <option name="enabled" value="true" />
7
- </BoolValueOverride>
8
- </option>
9
- <option name="commitMessageValidationEnabledOverride">
10
- <BoolValueOverride>
11
- <option name="enabled" value="true" />
12
- </BoolValueOverride>
13
- </option>
14
- </component>
15
- </project>
package/.idea/modules.xml DELETED
@@ -1,8 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ProjectModuleManager">
4
- <modules>
5
- <module fileurl="file://$PROJECT_DIR$/.idea/cloud-common.iml" filepath="$PROJECT_DIR$/.idea/cloud-common.iml" />
6
- </modules>
7
- </component>
8
- </project>
package/.idea/vcs.xml DELETED
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="VcsDirectoryMappings">
4
- <mapping directory="" vcs="Git" />
5
- </component>
6
- </project>
@@ -1,14 +0,0 @@
1
- import { LudeoEvent } from "../../infra";
2
- import { CloudResourceContext } from "../contexts";
3
- import { CreateGameResourceRequestPayload } from "./create-game-resource-request";
4
- export declare class AwsPollStreamSessionTaskPayload {
5
- resourceContext: CloudResourceContext;
6
- creationPayload: CreateGameResourceRequestPayload;
7
- streamSessionId: string;
8
- }
9
- export declare class AwsPollStreamSessionTask extends LudeoEvent {
10
- static readonly EVENT_NAME = "cloud-resources.aws-poll-stream-session-task";
11
- constructor(payload: AwsPollStreamSessionTaskPayload);
12
- context: never;
13
- payload: AwsPollStreamSessionTaskPayload;
14
- }
@@ -1,45 +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.AwsPollStreamSessionTask = exports.AwsPollStreamSessionTaskPayload = void 0;
13
- const infra_1 = require("../../infra");
14
- const decorators_1 = require("../../decorators");
15
- const contexts_1 = require("../contexts");
16
- const class_validator_1 = require("class-validator");
17
- const create_game_resource_request_1 = require("./create-game-resource-request");
18
- class AwsPollStreamSessionTaskPayload {
19
- }
20
- exports.AwsPollStreamSessionTaskPayload = AwsPollStreamSessionTaskPayload;
21
- __decorate([
22
- (0, decorators_1.ValidateNestedType)(() => contexts_1.CloudResourceContext),
23
- __metadata("design:type", contexts_1.CloudResourceContext)
24
- ], AwsPollStreamSessionTaskPayload.prototype, "resourceContext", void 0);
25
- __decorate([
26
- (0, decorators_1.ValidateNestedType)(() => create_game_resource_request_1.CreateGameResourceRequestPayload),
27
- __metadata("design:type", create_game_resource_request_1.CreateGameResourceRequestPayload)
28
- ], AwsPollStreamSessionTaskPayload.prototype, "creationPayload", void 0);
29
- __decorate([
30
- (0, class_validator_1.IsString)(),
31
- __metadata("design:type", String)
32
- ], AwsPollStreamSessionTaskPayload.prototype, "streamSessionId", void 0);
33
- class AwsPollStreamSessionTask extends infra_1.LudeoEvent {
34
- constructor(payload) {
35
- super(AwsPollStreamSessionTask.EVENT_NAME);
36
- this.payload = payload;
37
- }
38
- }
39
- exports.AwsPollStreamSessionTask = AwsPollStreamSessionTask;
40
- AwsPollStreamSessionTask.EVENT_NAME = "cloud-resources.aws-poll-stream-session-task";
41
- __decorate([
42
- (0, decorators_1.ValidateNestedType)(() => AwsPollStreamSessionTaskPayload),
43
- __metadata("design:type", AwsPollStreamSessionTaskPayload)
44
- ], AwsPollStreamSessionTask.prototype, "payload", void 0);
45
- //# sourceMappingURL=aws-poll-stream-session-task.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"aws-poll-stream-session-task.js","sourceRoot":"","sources":["../../../src/v3/events/aws-poll-stream-session-task.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uCAAyC;AACzC,iDAAsD;AACtD,0CAAmD;AACnD,qDAA2C;AAC3C,iFAAkF;AAElF,MAAa,+BAA+B;CAS3C;AATD,0EASC;AAPC;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BAC9B,+BAAoB;wEAAC;AAGtC;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,+DAAgC,CAAC;8BAC1C,+DAAgC;wEAAC;AAGlD;IADC,IAAA,0BAAQ,GAAE;;wEACa;AAG1B,MAAa,wBAAyB,SAAQ,kBAAU;IAGtD,YAAY,OAAwC;QAClD,KAAK,CAAC,wBAAwB,CAAC,UAAU,CAAC,CAAC;QAC3C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AANH,4DAYC;AAXiB,mCAAU,GAAG,8CAA8C,CAAC;AAU5E;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,+BAA+B,CAAC;8BACjD,+BAA+B;yDAAC"}
@@ -1,13 +0,0 @@
1
- import { LudeoEvent } from "../../infra";
2
- import { CloudResourceContext } from "../contexts";
3
- export declare class GameResourceReadyForCreationFailedPayload {
4
- gamePoolId: string;
5
- gameResourceId: string;
6
- errorMessage: string;
7
- }
8
- export declare class GameResourceReadyForCreationFailed extends LudeoEvent {
9
- static readonly EVENT_NAME = "cloud-resources.game-resource-ready-for-creation-failed";
10
- constructor(payload: GameResourceReadyForCreationFailedPayload, context: CloudResourceContext);
11
- context: CloudResourceContext;
12
- payload: GameResourceReadyForCreationFailedPayload;
13
- }
@@ -1,49 +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.GameResourceReadyForCreationFailed = exports.GameResourceReadyForCreationFailedPayload = void 0;
13
- const infra_1 = require("../../infra");
14
- const class_validator_1 = require("class-validator");
15
- const decorators_1 = require("../../decorators");
16
- const contexts_1 = require("../contexts");
17
- class GameResourceReadyForCreationFailedPayload {
18
- }
19
- exports.GameResourceReadyForCreationFailedPayload = GameResourceReadyForCreationFailedPayload;
20
- __decorate([
21
- (0, class_validator_1.IsUUID)(),
22
- __metadata("design:type", String)
23
- ], GameResourceReadyForCreationFailedPayload.prototype, "gamePoolId", void 0);
24
- __decorate([
25
- (0, class_validator_1.IsUUID)(),
26
- __metadata("design:type", String)
27
- ], GameResourceReadyForCreationFailedPayload.prototype, "gameResourceId", void 0);
28
- __decorate([
29
- (0, class_validator_1.IsString)(),
30
- __metadata("design:type", String)
31
- ], GameResourceReadyForCreationFailedPayload.prototype, "errorMessage", void 0);
32
- class GameResourceReadyForCreationFailed extends infra_1.LudeoEvent {
33
- constructor(payload, context) {
34
- super(GameResourceReadyForCreationFailed.EVENT_NAME);
35
- this.payload = payload;
36
- this.context = context;
37
- }
38
- }
39
- exports.GameResourceReadyForCreationFailed = GameResourceReadyForCreationFailed;
40
- GameResourceReadyForCreationFailed.EVENT_NAME = "cloud-resources.game-resource-ready-for-creation-failed";
41
- __decorate([
42
- (0, decorators_1.ValidateNestedType)(() => contexts_1.CloudResourceContext),
43
- __metadata("design:type", contexts_1.CloudResourceContext)
44
- ], GameResourceReadyForCreationFailed.prototype, "context", void 0);
45
- __decorate([
46
- (0, decorators_1.ValidateNestedType)(() => GameResourceReadyForCreationFailedPayload),
47
- __metadata("design:type", GameResourceReadyForCreationFailedPayload)
48
- ], GameResourceReadyForCreationFailed.prototype, "payload", void 0);
49
- //# sourceMappingURL=game-resource-ready-for-creation-failed.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"game-resource-ready-for-creation-failed.js","sourceRoot":"","sources":["../../../src/v3/events/game-resource-ready-for-creation-failed.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uCAAyC;AACzC,qDAAmD;AACnD,iDAAsD;AACtD,0CAAmD;AAEnD,MAAa,yCAAyC;CASrD;AATD,8FASC;AAPC;IADC,IAAA,wBAAM,GAAE;;6EACU;AAGnB;IADC,IAAA,wBAAM,GAAE;;iFACc;AAGvB;IADC,IAAA,0BAAQ,GAAE;;+EACU;AAGvB,MAAa,kCAAmC,SAAQ,kBAAU;IAIhE,YACE,OAAkD,EAClD,OAA6B;QAE7B,KAAK,CAAC,kCAAkC,CAAC,UAAU,CAAC,CAAC;QACrD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAXH,gFAkBC;AAjBiB,6CAAU,GACxB,yDAAyD,CAAC;AAY5D;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;mEAAC;AAG9B;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,yCAAyC,CAAC;8BAC3D,yCAAyC;mEAAC"}
@@ -1,14 +0,0 @@
1
- import { LudeoEvent } from "../../infra";
2
- import { CloudResourceContext } from "../contexts";
3
- import { CloudResourceProviderSettings } from "../types";
4
- import { CreateGameResourceRequestPayload } from "./create-game-resource-request";
5
- export declare class GameResourceReadyForCreationPayload {
6
- providerSettings: CloudResourceProviderSettings;
7
- creationPayload: CreateGameResourceRequestPayload;
8
- }
9
- export declare class GameResourceReadyForCreation extends LudeoEvent {
10
- static readonly EVENT_NAME = "cloud-resources.game-resource-ready-for-creation";
11
- constructor(payload: GameResourceReadyForCreationPayload, context: CloudResourceContext);
12
- payload: GameResourceReadyForCreationPayload;
13
- context: CloudResourceContext;
14
- }
@@ -1,46 +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.GameResourceReadyForCreation = exports.GameResourceReadyForCreationPayload = 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 create_game_resource_request_1 = require("./create-game-resource-request");
18
- class GameResourceReadyForCreationPayload {
19
- }
20
- exports.GameResourceReadyForCreationPayload = GameResourceReadyForCreationPayload;
21
- __decorate([
22
- (0, decorators_1.ValidateNestedType)(() => types_1.AWSResourceProviderSettings),
23
- __metadata("design:type", Object)
24
- ], GameResourceReadyForCreationPayload.prototype, "providerSettings", void 0);
25
- __decorate([
26
- (0, decorators_1.ValidateNestedType)(() => create_game_resource_request_1.CreateGameResourceRequestPayload),
27
- __metadata("design:type", create_game_resource_request_1.CreateGameResourceRequestPayload)
28
- ], GameResourceReadyForCreationPayload.prototype, "creationPayload", void 0);
29
- class GameResourceReadyForCreation extends infra_1.LudeoEvent {
30
- constructor(payload, context) {
31
- super(GameResourceReadyForCreation.EVENT_NAME);
32
- this.payload = payload;
33
- this.context = context;
34
- }
35
- }
36
- exports.GameResourceReadyForCreation = GameResourceReadyForCreation;
37
- GameResourceReadyForCreation.EVENT_NAME = "cloud-resources.game-resource-ready-for-creation";
38
- __decorate([
39
- (0, decorators_1.ValidateNestedType)(() => GameResourceReadyForCreationPayload),
40
- __metadata("design:type", GameResourceReadyForCreationPayload)
41
- ], GameResourceReadyForCreation.prototype, "payload", void 0);
42
- __decorate([
43
- (0, decorators_1.ValidateNestedType)(() => contexts_1.CloudResourceContext),
44
- __metadata("design:type", contexts_1.CloudResourceContext)
45
- ], GameResourceReadyForCreation.prototype, "context", void 0);
46
- //# sourceMappingURL=game-resource-ready-for-creation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"game-resource-ready-for-creation.js","sourceRoot":"","sources":["../../../src/v3/events/game-resource-ready-for-creation.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uCAAyC;AACzC,iDAAsD;AACtD,0CAAmD;AACnD,oCAIkB;AAClB,iFAAkF;AAElF,MAAa,mCAAmC;CAM/C;AAND,kFAMC;AAJC;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,mCAA2B,CAAC;;6EACN;AAGhD;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,+DAAgC,CAAC;8BAC1C,+DAAgC;4EAAC;AAGpD,MAAa,4BAA6B,SAAQ,kBAAU;IAI1D,YACE,OAA4C,EAC5C,OAA6B;QAE7B,KAAK,CAAC,4BAA4B,CAAC,UAAU,CAAC,CAAC;QAC/C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAXH,oEAkBC;AAjBiB,uCAAU,GACxB,kDAAkD,CAAC;AAYrD;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,mCAAmC,CAAC;8BACrD,mCAAmC;6DAAC;AAG7C;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;6DAAC"}
@@ -1,30 +0,0 @@
1
- import { LudeoEvent } from "../../infra";
2
- import { ValidateNestedType } from "../../decorators";
3
- import { CloudResourceContext } from "../contexts";
4
- import { IsString } from "class-validator";
5
- import { CreateGameResourceRequestPayload } from "./create-game-resource-request";
6
-
7
- export class AwsPollStreamSessionTaskPayload {
8
- @ValidateNestedType(() => CloudResourceContext)
9
- resourceContext: CloudResourceContext;
10
-
11
- @ValidateNestedType(() => CreateGameResourceRequestPayload)
12
- creationPayload: CreateGameResourceRequestPayload;
13
-
14
- @IsString()
15
- streamSessionId: string;
16
- }
17
-
18
- export class AwsPollStreamSessionTask extends LudeoEvent {
19
- static readonly EVENT_NAME = "cloud-resources.aws-poll-stream-session-task";
20
-
21
- constructor(payload: AwsPollStreamSessionTaskPayload) {
22
- super(AwsPollStreamSessionTask.EVENT_NAME);
23
- this.payload = payload;
24
- }
25
-
26
- context: never;
27
-
28
- @ValidateNestedType(() => AwsPollStreamSessionTaskPayload)
29
- payload: AwsPollStreamSessionTaskPayload;
30
- }
@@ -1,35 +0,0 @@
1
- import { LudeoEvent } from "../../infra";
2
- import { IsString, IsUUID } from "class-validator";
3
- import { ValidateNestedType } from "../../decorators";
4
- import { CloudResourceContext } from "../contexts";
5
-
6
- export class GameResourceReadyForCreationFailedPayload {
7
- @IsUUID()
8
- gamePoolId: string;
9
-
10
- @IsUUID()
11
- gameResourceId: string;
12
-
13
- @IsString()
14
- errorMessage: string;
15
- }
16
-
17
- export class GameResourceReadyForCreationFailed extends LudeoEvent {
18
- static readonly EVENT_NAME =
19
- "cloud-resources.game-resource-ready-for-creation-failed";
20
-
21
- constructor(
22
- payload: GameResourceReadyForCreationFailedPayload,
23
- context: CloudResourceContext,
24
- ) {
25
- super(GameResourceReadyForCreationFailed.EVENT_NAME);
26
- this.payload = payload;
27
- this.context = context;
28
- }
29
-
30
- @ValidateNestedType(() => CloudResourceContext)
31
- context: CloudResourceContext;
32
-
33
- @ValidateNestedType(() => GameResourceReadyForCreationFailedPayload)
34
- payload: GameResourceReadyForCreationFailedPayload;
35
- }
@@ -1,37 +0,0 @@
1
- import { LudeoEvent } from "../../infra";
2
- import { ValidateNestedType } from "../../decorators";
3
- import { CloudResourceContext } from "../contexts";
4
- import {
5
- AWSResourceProviderSettings,
6
- CloudProviderSettings,
7
- CloudResourceProviderSettings,
8
- } from "../types";
9
- import { CreateGameResourceRequestPayload } from "./create-game-resource-request";
10
-
11
- export class GameResourceReadyForCreationPayload {
12
- @ValidateNestedType(() => AWSResourceProviderSettings)
13
- providerSettings: CloudResourceProviderSettings;
14
-
15
- @ValidateNestedType(() => CreateGameResourceRequestPayload)
16
- creationPayload: CreateGameResourceRequestPayload;
17
- }
18
-
19
- export class GameResourceReadyForCreation extends LudeoEvent {
20
- static readonly EVENT_NAME =
21
- "cloud-resources.game-resource-ready-for-creation";
22
-
23
- constructor(
24
- payload: GameResourceReadyForCreationPayload,
25
- context: CloudResourceContext,
26
- ) {
27
- super(GameResourceReadyForCreation.EVENT_NAME);
28
- this.payload = payload;
29
- this.context = context;
30
- }
31
-
32
- @ValidateNestedType(() => GameResourceReadyForCreationPayload)
33
- payload: GameResourceReadyForCreationPayload;
34
-
35
- @ValidateNestedType(() => CloudResourceContext)
36
- context: CloudResourceContext;
37
- }