@ludeo/cloud-common 1.2.204 → 1.2.205-ygbeta1

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.
@@ -125,6 +125,7 @@ export * from "./create-build";
125
125
  export * from "./build-creation-failed";
126
126
  export * from "./pool-updated.event";
127
127
  export * from "./pool-created.event";
128
+ export * from "./pool-deleted.event";
128
129
  export * from "./machine-resource-termination-failed-response";
129
130
  export * from "./assign-build";
130
131
  export * from "./build-assignment-settings-job-finished";
@@ -177,3 +178,4 @@ export * as SiteController from "./site-controller";
177
178
  export * as CloudResources from "./cloud-resources";
178
179
  export * as CloudBuilds from "./cloud-builds";
179
180
  export * as LudeocastAgent from "./ludeocast-agent";
181
+ export * as SonicServer from "./sonic-server";
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.LudeocastAgent = exports.CloudBuilds = exports.CloudResources = exports.SiteController = void 0;
17
+ exports.SonicServer = exports.LudeocastAgent = exports.CloudBuilds = exports.CloudResources = exports.SiteController = void 0;
18
18
  __exportStar(require("./allocate-game-request"), exports);
19
19
  __exportStar(require("./allocate-game-resource-request"), exports);
20
20
  __exportStar(require("./allocate-machine-request"), exports);
@@ -142,6 +142,7 @@ __exportStar(require("./create-build"), exports);
142
142
  __exportStar(require("./build-creation-failed"), exports);
143
143
  __exportStar(require("./pool-updated.event"), exports);
144
144
  __exportStar(require("./pool-created.event"), exports);
145
+ __exportStar(require("./pool-deleted.event"), exports);
145
146
  __exportStar(require("./machine-resource-termination-failed-response"), exports);
146
147
  __exportStar(require("./assign-build"), exports);
147
148
  __exportStar(require("./build-assignment-settings-job-finished"), exports);
@@ -194,4 +195,5 @@ exports.SiteController = require("./site-controller");
194
195
  exports.CloudResources = require("./cloud-resources");
195
196
  exports.CloudBuilds = require("./cloud-builds");
196
197
  exports.LudeocastAgent = require("./ludeocast-agent");
198
+ exports.SonicServer = require("./sonic-server");
197
199
  //# 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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+B;AAC/B,2EAAyD;AACzD,iFAA+D;AAC/D,yEAAuD;AACvD,sFAAoE;AACpE,6DAA2C;AAC3C,qEAAmD;AACnD,mDAAiC;AACjC,oEAAkD;AAClD,kEAAgD;AAChD,4DAA0C;AAC1C,8EAA4D;AAC5D,wDAAsC;AACtC,iEAA+C;AAC/C,8EAA4D;AAC5D,iEAA+C;AAC/C,0EAAwD;AACxD,wEAAsD;AACtD,yDAAuC;AACvC,2DAAyC;AACzC,wDAAsC;AACtC,mDAAiC;AACjC,4EAA0D;AAC1D,+EAA6D;AAC7D,uDAAqC;AACrC,4DAA0C;AAC1C,iDAA+B;AAC/B,kDAAgC;AAChC,4DAA0C;AAC1C,sEAAoD;AACpD,oEAAkD;AAClD,+DAA6C;AAC7C,gEAA8C;AAC9C,iEAA+C;AAC/C,2DAAyC;AACzC,mEAAiD;AACjD,iDAA+B;AAC/B,qDAAmC;AACnC,4DAA0C;AAC1C,8DAA4C;AAC5C,kDAAgC;AAChC,0DAAwC;AACxC,2DAAyC;AACzC,4DAA0C;AAC1C,oEAAkD;AAClD,2EAAyD;AACzD,kFAAgE;AAEhE,sDAAoD;AACpD,sDAAoD;AACpD,gDAA8C;AAC9C,sDAAoD;AACpD,gDAA8C"}
@@ -0,0 +1,11 @@
1
+ import { LudeoEvent } from "../../infra/ludeo-event";
2
+ import { CloudPoolContext } from "../contexts/cloud-pool-context";
3
+ export declare class PoolDeletedEventPayload {
4
+ poolId: string;
5
+ }
6
+ export declare class PoolDeletedEvent extends LudeoEvent {
7
+ static readonly EVENT_NAME = "cloud-pools.pool-deleted";
8
+ constructor(payload: PoolDeletedEventPayload, context: CloudPoolContext);
9
+ context: CloudPoolContext;
10
+ payload: PoolDeletedEventPayload;
11
+ }
@@ -0,0 +1,41 @@
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.PoolDeletedEvent = exports.PoolDeletedEventPayload = void 0;
13
+ const ludeo_event_1 = require("../../infra/ludeo-event");
14
+ const cloud_pool_context_1 = require("../contexts/cloud-pool-context");
15
+ const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
16
+ const class_validator_1 = require("class-validator");
17
+ class PoolDeletedEventPayload {
18
+ }
19
+ exports.PoolDeletedEventPayload = PoolDeletedEventPayload;
20
+ __decorate([
21
+ (0, class_validator_1.IsUUID)(),
22
+ __metadata("design:type", String)
23
+ ], PoolDeletedEventPayload.prototype, "poolId", void 0);
24
+ class PoolDeletedEvent extends ludeo_event_1.LudeoEvent {
25
+ constructor(payload, context) {
26
+ super(PoolDeletedEvent.EVENT_NAME);
27
+ this.payload = payload;
28
+ this.context = context;
29
+ }
30
+ }
31
+ exports.PoolDeletedEvent = PoolDeletedEvent;
32
+ PoolDeletedEvent.EVENT_NAME = "cloud-pools.pool-deleted";
33
+ __decorate([
34
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => cloud_pool_context_1.CloudPoolContext),
35
+ __metadata("design:type", cloud_pool_context_1.CloudPoolContext)
36
+ ], PoolDeletedEvent.prototype, "context", void 0);
37
+ __decorate([
38
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => PoolDeletedEventPayload),
39
+ __metadata("design:type", PoolDeletedEventPayload)
40
+ ], PoolDeletedEvent.prototype, "payload", void 0);
41
+ //# sourceMappingURL=pool-deleted.event.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pool-deleted.event.js","sourceRoot":"","sources":["../../../src/v4/events/pool-deleted.event.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAqD;AACrD,uEAAkE;AAClE,oGAAqF;AACrF,qDAAyC;AAEzC,MAAa,uBAAuB;CAGnC;AAHD,0DAGC;AADC;IADC,IAAA,wBAAM,GAAE;;uDACM;AAGjB,MAAa,gBAAiB,SAAQ,wBAAU;IAG9C,YAAY,OAAgC,EAAE,OAAyB;QACrE,KAAK,CAAC,gBAAgB,CAAC,UAAU,CAAC,CAAC;QACnC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,4CAcC;AAbiB,2BAAU,GAAG,0BAA0B,CAAC;AASxD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,qCAAgB,CAAC;8BAClC,qCAAgB;iDAAC;AAG1B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,uBAAuB,CAAC;8BACzC,uBAAuB;iDAAC"}
@@ -0,0 +1,10 @@
1
+ import { LudeoEvent } from "../../../infra";
2
+ export declare class GamePrioritiesChangedPayload {
3
+ priorities: Record<string, number>;
4
+ updatedAt: number;
5
+ }
6
+ export declare class GamePrioritiesChanged extends LudeoEvent {
7
+ static readonly EVENT_NAME = "sonic-server.game-priorities-changed";
8
+ constructor(payload: GamePrioritiesChangedPayload);
9
+ payload: GamePrioritiesChangedPayload;
10
+ }
@@ -0,0 +1,39 @@
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.GamePrioritiesChanged = exports.GamePrioritiesChangedPayload = void 0;
13
+ const infra_1 = require("../../../infra");
14
+ const decorators_1 = require("../../../decorators");
15
+ const class_validator_1 = require("class-validator");
16
+ class GamePrioritiesChangedPayload {
17
+ }
18
+ exports.GamePrioritiesChangedPayload = GamePrioritiesChangedPayload;
19
+ __decorate([
20
+ (0, class_validator_1.IsObject)(),
21
+ __metadata("design:type", Object)
22
+ ], GamePrioritiesChangedPayload.prototype, "priorities", void 0);
23
+ __decorate([
24
+ (0, class_validator_1.IsNumber)(),
25
+ __metadata("design:type", Number)
26
+ ], GamePrioritiesChangedPayload.prototype, "updatedAt", void 0);
27
+ class GamePrioritiesChanged extends infra_1.LudeoEvent {
28
+ constructor(payload) {
29
+ super(GamePrioritiesChanged.EVENT_NAME);
30
+ this.payload = payload;
31
+ }
32
+ }
33
+ exports.GamePrioritiesChanged = GamePrioritiesChanged;
34
+ GamePrioritiesChanged.EVENT_NAME = "sonic-server.game-priorities-changed";
35
+ __decorate([
36
+ (0, decorators_1.ValidateNestedType)(() => GamePrioritiesChangedPayload),
37
+ __metadata("design:type", GamePrioritiesChangedPayload)
38
+ ], GamePrioritiesChanged.prototype, "payload", void 0);
39
+ //# sourceMappingURL=game-priorities-changed.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"game-priorities-changed.js","sourceRoot":"","sources":["../../../../src/v4/events/sonic-server/game-priorities-changed.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAC5C,oDAAyD;AACzD,qDAAqD;AAErD,MAAa,4BAA4B;CAMxC;AAND,oEAMC;AAJC;IADC,IAAA,0BAAQ,GAAE;;gEACwB;AAGnC;IADC,IAAA,0BAAQ,GAAE;;+DACO;AAGpB,MAAa,qBAAsB,SAAQ,kBAAU;IAGnD,YAAY,OAAqC;QAC/C,KAAK,CAAC,qBAAqB,CAAC,UAAU,CAAC,CAAC;QACxC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AANH,sDAUC;AATiB,gCAAU,GAAG,sCAAsC,CAAC;AAQpE;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,4BAA4B,CAAC;8BAC9C,4BAA4B;sDAAC"}
@@ -0,0 +1 @@
1
+ export * from "./game-priorities-changed";
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./game-priorities-changed"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/v4/events/sonic-server/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ludeo/cloud-common",
3
- "version": "1.2.204",
3
+ "version": "1.2.205-ygbeta1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "author": "Yahil Didi",
@@ -125,6 +125,7 @@ export * from "./create-build";
125
125
  export * from "./build-creation-failed";
126
126
  export * from "./pool-updated.event";
127
127
  export * from "./pool-created.event";
128
+ export * from "./pool-deleted.event";
128
129
  export * from "./machine-resource-termination-failed-response";
129
130
  export * from "./assign-build";
130
131
  export * from "./build-assignment-settings-job-finished";
@@ -174,9 +175,8 @@ export * from "./pools-deletion-for-build-failed";
174
175
  export * from "./monitor-ludeocast-transfer-status-task";
175
176
  export * from "./ludeocast-machine-resource-error-timeout-task";
176
177
 
177
-
178
178
  export * as SiteController from "./site-controller";
179
179
  export * as CloudResources from "./cloud-resources";
180
180
  export * as CloudBuilds from "./cloud-builds";
181
181
  export * as LudeocastAgent from "./ludeocast-agent";
182
-
182
+ export * as SonicServer from "./sonic-server";
@@ -0,0 +1,25 @@
1
+ import { LudeoEvent } from "../../infra/ludeo-event";
2
+ import { CloudPoolContext } from "../contexts/cloud-pool-context";
3
+ import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
4
+ import { IsUUID } from "class-validator";
5
+
6
+ export class PoolDeletedEventPayload {
7
+ @IsUUID()
8
+ poolId: string;
9
+ }
10
+
11
+ export class PoolDeletedEvent extends LudeoEvent {
12
+ static readonly EVENT_NAME = "cloud-pools.pool-deleted";
13
+
14
+ constructor(payload: PoolDeletedEventPayload, context: CloudPoolContext) {
15
+ super(PoolDeletedEvent.EVENT_NAME);
16
+ this.payload = payload;
17
+ this.context = context;
18
+ }
19
+
20
+ @ValidateNestedType(() => CloudPoolContext)
21
+ context: CloudPoolContext;
22
+
23
+ @ValidateNestedType(() => PoolDeletedEventPayload)
24
+ payload: PoolDeletedEventPayload;
25
+ }
@@ -0,0 +1,23 @@
1
+ import { LudeoEvent } from "../../../infra";
2
+ import { ValidateNestedType } from "../../../decorators";
3
+ import { IsNumber, IsObject } from "class-validator";
4
+
5
+ export class GamePrioritiesChangedPayload {
6
+ @IsObject()
7
+ priorities: Record<string, number>; // gameEnvironmentId -> priority
8
+
9
+ @IsNumber()
10
+ updatedAt: number;
11
+ }
12
+
13
+ export class GamePrioritiesChanged extends LudeoEvent {
14
+ static readonly EVENT_NAME = "sonic-server.game-priorities-changed";
15
+
16
+ constructor(payload: GamePrioritiesChangedPayload) {
17
+ super(GamePrioritiesChanged.EVENT_NAME);
18
+ this.payload = payload;
19
+ }
20
+
21
+ @ValidateNestedType(() => GamePrioritiesChangedPayload)
22
+ payload: GamePrioritiesChangedPayload;
23
+ }
@@ -0,0 +1 @@
1
+ export * from "./game-priorities-changed";