@ludeo/cloud-common 1.1.121-beta5 → 1.1.121-beta7

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.
@@ -37,4 +37,8 @@ class AwsPollStreamSessionTask extends infra_1.LudeoEvent {
37
37
  }
38
38
  exports.AwsPollStreamSessionTask = AwsPollStreamSessionTask;
39
39
  AwsPollStreamSessionTask.EVENT_NAME = "cloud-resources.aws-poll-stream-session-task";
40
+ __decorate([
41
+ (0, decorators_1.ValidateNestedType)(() => AwsPollStreamSessionTaskPayload),
42
+ __metadata("design:type", AwsPollStreamSessionTaskPayload)
43
+ ], AwsPollStreamSessionTask.prototype, "payload", void 0);
40
44
  //# sourceMappingURL=aws-poll-stream-session-task.js.map
@@ -1 +1 @@
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,MAAM,+BAA+B;CASpC;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,4DAWC;AAViB,mCAAU,GAAG,8CAA8C,CAAC"}
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,MAAM,+BAA+B;CASpC;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"}
@@ -0,0 +1,13 @@
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
+ }
@@ -0,0 +1,49 @@
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
@@ -0,0 +1 @@
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"}
@@ -62,3 +62,4 @@ export * from "./cloud-session-ended";
62
62
  export * from "./invalid-game-resource";
63
63
  export * from "./aws-poll-stream-session-task";
64
64
  export * from "./game-resource-ready-for-creation";
65
+ export * from "./game-resource-ready-for-creation-failed";
@@ -78,4 +78,5 @@ __exportStar(require("./cloud-session-ended"), exports);
78
78
  __exportStar(require("./invalid-game-resource"), exports);
79
79
  __exportStar(require("./aws-poll-stream-session-task"), exports);
80
80
  __exportStar(require("./game-resource-ready-for-creation"), exports);
81
+ __exportStar(require("./game-resource-ready-for-creation-failed"), exports);
81
82
  //# 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"}
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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ludeo/cloud-common",
3
- "version": "1.1.121-beta5",
3
+ "version": "1.1.121-beta7",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "author": "Yahil Didi",
@@ -25,5 +25,6 @@ export class AwsPollStreamSessionTask extends LudeoEvent {
25
25
 
26
26
  context: never;
27
27
 
28
+ @ValidateNestedType(() => AwsPollStreamSessionTaskPayload)
28
29
  payload: AwsPollStreamSessionTaskPayload;
29
30
  }
@@ -0,0 +1,35 @@
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
+ }
@@ -62,3 +62,4 @@ export * from "./cloud-session-ended";
62
62
  export * from "./invalid-game-resource";
63
63
  export * from "./aws-poll-stream-session-task";
64
64
  export * from "./game-resource-ready-for-creation";
65
+ export * from "./game-resource-ready-for-creation-failed";