@ludeo/cloud-common 1.2.76 → 1.2.77-ygarbage

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.
@@ -106,3 +106,4 @@ export * from "./monitor-stream-groups-task";
106
106
  export * from "./build-distributed-successfully";
107
107
  export * from "./build-distribution-failed-response";
108
108
  export * from "./distribute-build-request";
109
+ export * from "./post-game-creation-delay-task";
@@ -122,4 +122,5 @@ __exportStar(require("./monitor-stream-groups-task"), exports);
122
122
  __exportStar(require("./build-distributed-successfully"), exports);
123
123
  __exportStar(require("./build-distribution-failed-response"), exports);
124
124
  __exportStar(require("./distribute-build-request"), exports);
125
+ __exportStar(require("./post-game-creation-delay-task"), exports);
125
126
  //# 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;AAChD,8DAA4C;AAC5C,sEAAoD;AACpD,2DAAyC;AACzC,4DAA0C;AAC1C,kEAAgD;AAChD,+DAA6C;AAC7C,mEAAiD;AACjD,uEAAqD;AACrD,6DAA2C"}
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;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D,qEAAmD;AACnD,4EAA0D;AAC1D,4DAA0C;AAC1C,oDAAkC;AAClC,kEAAgD;AAChD,8DAA4C;AAC5C,sEAAoD;AACpD,2DAAyC;AACzC,4DAA0C;AAC1C,kEAAgD;AAChD,+DAA6C;AAC7C,mEAAiD;AACjD,uEAAqD;AACrD,6DAA2C;AAC3C,kEAAgD"}
@@ -0,0 +1,11 @@
1
+ import { LudeoEvent } from "../../infra/ludeo-event";
2
+ export declare class PostGameCreationDelayTaskPayload {
3
+ gamePoolId: string;
4
+ gameResourceId: string;
5
+ }
6
+ export declare class PostGameCreationDelayTask extends LudeoEvent {
7
+ static readonly EVENT_NAME = "cloud-pools.post-game-creation-delay-task";
8
+ constructor(payload: PostGameCreationDelayTaskPayload, context: never);
9
+ context: never;
10
+ payload: PostGameCreationDelayTaskPayload;
11
+ }
@@ -0,0 +1,40 @@
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.PostGameCreationDelayTask = exports.PostGameCreationDelayTaskPayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const ludeo_event_1 = require("../../infra/ludeo-event");
15
+ const decorators_1 = require("../../decorators");
16
+ class PostGameCreationDelayTaskPayload {
17
+ }
18
+ exports.PostGameCreationDelayTaskPayload = PostGameCreationDelayTaskPayload;
19
+ __decorate([
20
+ (0, class_validator_1.IsUUID)(),
21
+ __metadata("design:type", String)
22
+ ], PostGameCreationDelayTaskPayload.prototype, "gamePoolId", void 0);
23
+ __decorate([
24
+ (0, class_validator_1.IsUUID)(),
25
+ __metadata("design:type", String)
26
+ ], PostGameCreationDelayTaskPayload.prototype, "gameResourceId", void 0);
27
+ class PostGameCreationDelayTask extends ludeo_event_1.LudeoEvent {
28
+ constructor(payload, context) {
29
+ super(PostGameCreationDelayTask.EVENT_NAME);
30
+ this.payload = payload;
31
+ this.context = context;
32
+ }
33
+ }
34
+ exports.PostGameCreationDelayTask = PostGameCreationDelayTask;
35
+ PostGameCreationDelayTask.EVENT_NAME = "cloud-pools.post-game-creation-delay-task";
36
+ __decorate([
37
+ (0, decorators_1.ValidateNestedType)(() => PostGameCreationDelayTaskPayload),
38
+ __metadata("design:type", PostGameCreationDelayTaskPayload)
39
+ ], PostGameCreationDelayTask.prototype, "payload", void 0);
40
+ //# sourceMappingURL=post-game-creation-delay-task.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"post-game-creation-delay-task.js","sourceRoot":"","sources":["../../../src/v4/events/post-game-creation-delay-task.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyC;AACzC,yDAAqD;AACrD,iDAAsD;AAEtD,MAAa,gCAAgC;CAM5C;AAND,4EAMC;AAJC;IADC,IAAA,wBAAM,GAAE;;oEACU;AAGnB;IADC,IAAA,wBAAM,GAAE;;wEACc;AAGzB,MAAa,yBAA0B,SAAQ,wBAAU;IAIvD,YAAY,OAAyC,EAAE,OAAc;QACnE,KAAK,CAAC,yBAAyB,CAAC,UAAU,CAAC,CAAC;QAC5C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AARH,8DAcC;AAbwB,oCAAU,GAC/B,2CAA2C,CAAC;AAWvC;IADN,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,gCAAgC,CAAC;8BAC3C,gCAAgC;0DAAC"}
@@ -6,4 +6,5 @@ export declare class GamePoolConfiguration extends BaseCloudPoolConfiguration {
6
6
  gameId: string;
7
7
  machinePoolId: string;
8
8
  attributes: GamePoolAttributes;
9
+ postCreationDelay?: number;
9
10
  }
@@ -34,4 +34,9 @@ __decorate([
34
34
  (0, decorators_1.ValidateNestedType)(() => attributes_1.GamePoolAttributes),
35
35
  __metadata("design:type", attributes_1.GamePoolAttributes)
36
36
  ], GamePoolConfiguration.prototype, "attributes", void 0);
37
+ __decorate([
38
+ (0, class_validator_1.IsOptional)(),
39
+ (0, class_validator_1.IsNumber)(),
40
+ __metadata("design:type", Number)
41
+ ], GamePoolConfiguration.prototype, "postCreationDelay", void 0);
37
42
  //# sourceMappingURL=game.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"game.js","sourceRoot":"","sources":["../../../../../src/v4/types/pools/configuration/game.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiD;AAEjD,kCAAwC;AACxC,6CAAkD;AAClD,iCAAoD;AACpD,uDAA4D;AAE5D,MAAa,qBAAsB,SAAQ,iCAA0B;CAYpE;AAZD,sDAYC;AAVC;IADC,IAAA,wBAAM,EAAC,oBAAa,CAAC;;mDACG;AAGzB;IADC,IAAA,wBAAM,GAAE;;qDACM;AAGf;IADC,IAAA,wBAAM,GAAE;;4DACa;AAGtB;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,+BAAkB,CAAC;8BACjC,+BAAkB;yDAAC"}
1
+ {"version":3,"file":"game.js","sourceRoot":"","sources":["../../../../../src/v4/types/pools/configuration/game.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuE;AAEvE,kCAAwC;AACxC,6CAAkD;AAClD,iCAAoD;AACpD,uDAA4D;AAE5D,MAAa,qBAAsB,SAAQ,iCAA0B;CAoBpE;AApBD,sDAoBC;AAlBC;IADC,IAAA,wBAAM,EAAC,oBAAa,CAAC;;mDACG;AAGzB;IADC,IAAA,wBAAM,GAAE;;qDACM;AAGf;IADC,IAAA,wBAAM,GAAE;;4DACa;AAGtB;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,+BAAkB,CAAC;8BACjC,+BAAkB;yDAAC;AAQ/B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;gEACgB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ludeo/cloud-common",
3
- "version": "1.2.76",
3
+ "version": "1.2.77-ygarbage",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "author": "Yahil Didi",
@@ -106,3 +106,4 @@ export * from "./monitor-stream-groups-task";
106
106
  export * from "./build-distributed-successfully";
107
107
  export * from "./build-distribution-failed-response";
108
108
  export * from "./distribute-build-request";
109
+ export * from "./post-game-creation-delay-task";
@@ -0,0 +1,27 @@
1
+ import { IsUUID } from "class-validator";
2
+ import { LudeoEvent } from "../../infra/ludeo-event";
3
+ import { ValidateNestedType } from "../../decorators";
4
+
5
+ export class PostGameCreationDelayTaskPayload {
6
+ @IsUUID()
7
+ gamePoolId: string;
8
+
9
+ @IsUUID()
10
+ gameResourceId: string;
11
+ }
12
+
13
+ export class PostGameCreationDelayTask extends LudeoEvent {
14
+ public static readonly EVENT_NAME =
15
+ "cloud-pools.post-game-creation-delay-task";
16
+
17
+ constructor(payload: PostGameCreationDelayTaskPayload, context: never) {
18
+ super(PostGameCreationDelayTask.EVENT_NAME);
19
+ this.payload = payload;
20
+ this.context = context;
21
+ }
22
+
23
+ public context: never;
24
+
25
+ @ValidateNestedType(() => PostGameCreationDelayTaskPayload)
26
+ public payload: PostGameCreationDelayTaskPayload;
27
+ }
@@ -1,4 +1,4 @@
1
- import { IsEnum, IsUUID } from "class-validator";
1
+ import { IsEnum, IsNumber, IsOptional, IsUUID } from "class-validator";
2
2
 
3
3
  import { CloudPoolType } from "../type";
4
4
  import { GamePoolAttributes } from "./attributes";
@@ -17,4 +17,12 @@ export class GamePoolConfiguration extends BaseCloudPoolConfiguration {
17
17
 
18
18
  @ValidateNestedType(() => GamePoolAttributes)
19
19
  attributes: GamePoolAttributes;
20
+
21
+ /**
22
+ * Before loading the ludeo for the first time we need to wait for the game to start up.
23
+ * for more info see ticket 8218832706
24
+ */
25
+ @IsOptional()
26
+ @IsNumber()
27
+ postCreationDelay?: number;
20
28
  }