@ludeo/cloud-common 1.2.83 → 1.2.84
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.
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/v4/events/index.d.ts +2 -0
- package/dist/v4/events/index.js +2 -0
- package/dist/v4/events/index.js.map +1 -1
- package/dist/v4/events/pool-created.event.d.ts +9 -0
- package/dist/v4/events/pool-created.event.js +34 -0
- package/dist/v4/events/pool-created.event.js.map +1 -0
- package/dist/v4/events/pool-status.d.ts +1 -2
- package/dist/v4/events/pool-status.js.map +1 -1
- package/dist/v4/events/pool-updated.event.d.ts +9 -0
- package/dist/v4/events/pool-updated.event.js +34 -0
- package/dist/v4/events/pool-updated.event.js.map +1 -0
- package/dist/v4/types/cloud/allocation-data.d.ts +2 -1
- package/dist/v4/types/cloud/aws/resource-provider-settings.d.ts +1 -1
- package/dist/v4/types/cloud/aws/resource-provider-settings.js +2 -2
- package/dist/v4/types/cloud/aws/resource-provider-settings.js.map +1 -1
- package/dist/v4/types/cloud/game-creation-response.d.ts +2 -1
- package/dist/v4/types/cloud/index.d.ts +1 -0
- package/dist/v4/types/cloud/index.js +1 -0
- package/dist/v4/types/cloud/index.js.map +1 -1
- package/dist/v4/types/cloud/mock/allocation-data.d.ts +5 -0
- package/dist/v4/types/cloud/mock/allocation-data.js +29 -0
- package/dist/v4/types/cloud/mock/allocation-data.js.map +1 -0
- package/dist/v4/types/cloud/mock/game-creation-response.d.ts +3 -0
- package/dist/v4/types/cloud/mock/game-creation-response.js +22 -0
- package/dist/v4/types/cloud/mock/game-creation-response.js.map +1 -0
- package/dist/v4/types/cloud/mock/index.d.ts +5 -0
- package/dist/v4/types/cloud/mock/index.js +22 -0
- package/dist/v4/types/cloud/mock/index.js.map +1 -0
- package/dist/v4/types/cloud/mock/provider-settings.d.ts +4 -0
- package/dist/v4/types/cloud/mock/provider-settings.js +7 -0
- package/dist/v4/types/cloud/mock/provider-settings.js.map +1 -0
- package/dist/v4/types/cloud/mock/request-data.d.ts +3 -0
- package/dist/v4/types/cloud/mock/request-data.js +22 -0
- package/dist/v4/types/cloud/mock/request-data.js.map +1 -0
- package/dist/v4/types/cloud/mock/resource-provider-settings.d.ts +6 -0
- package/dist/v4/types/cloud/mock/resource-provider-settings.js +33 -0
- package/dist/v4/types/cloud/mock/resource-provider-settings.js.map +1 -0
- package/dist/v4/types/cloud/provider-request.d.ts +2 -1
- package/dist/v4/types/cloud/provider-settings.d.ts +2 -1
- package/dist/v4/types/cloud/provider.d.ts +2 -1
- package/dist/v4/types/cloud/provider.js +1 -0
- package/dist/v4/types/cloud/provider.js.map +1 -1
- package/dist/v4/types/cloud/resource-provider-settings.d.ts +2 -1
- package/package.json +1 -1
- package/src/v4/events/index.ts +2 -0
- package/src/v4/events/pool-created.event.ts +20 -0
- package/src/v4/events/pool-status.ts +2 -2
- package/src/v4/events/pool-updated.event.ts +20 -0
- package/src/v4/types/cloud/allocation-data.ts +4 -1
- package/src/v4/types/cloud/aws/resource-provider-settings.ts +1 -1
- package/src/v4/types/cloud/game-creation-response.ts +4 -1
- package/src/v4/types/cloud/index.ts +1 -0
- package/src/v4/types/cloud/mock/allocation-data.ts +12 -0
- package/src/v4/types/cloud/mock/game-creation-response.ts +7 -0
- package/src/v4/types/cloud/mock/index.ts +5 -0
- package/src/v4/types/cloud/mock/provider-settings.ts +4 -0
- package/src/v4/types/cloud/mock/request-data.ts +7 -0
- package/src/v4/types/cloud/mock/resource-provider-settings.ts +16 -0
- package/src/v4/types/cloud/provider-request.ts +2 -1
- package/src/v4/types/cloud/provider-settings.ts +2 -1
- package/src/v4/types/cloud/provider.ts +1 -0
- package/src/v4/types/cloud/resource-provider-settings.ts +4 -1
|
@@ -116,3 +116,5 @@ export * from "./monitor-aws-artifacts-status-task";
|
|
|
116
116
|
export * from "./build-artifacts-ready-for-creation";
|
|
117
117
|
export * from "./token-activated";
|
|
118
118
|
export * from "./cloud-session-sent-to-client";
|
|
119
|
+
export * from "./pool-updated.event";
|
|
120
|
+
export * from "./pool-created.event";
|
package/dist/v4/events/index.js
CHANGED
|
@@ -132,4 +132,6 @@ __exportStar(require("./monitor-aws-artifacts-status-task"), exports);
|
|
|
132
132
|
__exportStar(require("./build-artifacts-ready-for-creation"), exports);
|
|
133
133
|
__exportStar(require("./token-activated"), exports);
|
|
134
134
|
__exportStar(require("./cloud-session-sent-to-client"), exports);
|
|
135
|
+
__exportStar(require("./pool-updated.event"), exports);
|
|
136
|
+
__exportStar(require("./pool-created.event"), exports);
|
|
135
137
|
//# 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,oEAAkD;AAClD,kEAAgD;AAChD,yDAAuC;AACvC,+DAA6C;AAC7C,iEAA+C;AAC/C,+DAA6C;AAC7C,sDAAoC;AACpC,kDAAgC;AAChC,kEAAgD;AAChD,sEAAoD;AACpD,uEAAqD;AACrD,oDAAkC;AAClC,iEAA+C"}
|
|
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,oEAAkD;AAClD,kEAAgD;AAChD,yDAAuC;AACvC,+DAA6C;AAC7C,iEAA+C;AAC/C,+DAA6C;AAC7C,sDAAoC;AACpC,kDAAgC;AAChC,kEAAgD;AAChD,sEAAoD;AACpD,uEAAqD;AACrD,oDAAkC;AAClC,iEAA+C;AAC/C,uDAAqC;AACrC,uDAAqC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
2
|
+
import { CloudPoolContext } from "../contexts/cloud-pool-context";
|
|
3
|
+
import { CloudPool } from "../types/pools";
|
|
4
|
+
export declare class PoolCreatedEvent extends LudeoEvent {
|
|
5
|
+
static readonly EVENT_NAME = "cloud-pools.pool-created";
|
|
6
|
+
constructor(payload: CloudPool, context: CloudPoolContext);
|
|
7
|
+
context: CloudPoolContext;
|
|
8
|
+
payload: CloudPool;
|
|
9
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
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.PoolCreatedEvent = 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 pools_1 = require("../types/pools");
|
|
17
|
+
class PoolCreatedEvent extends ludeo_event_1.LudeoEvent {
|
|
18
|
+
constructor(payload, context) {
|
|
19
|
+
super(PoolCreatedEvent.EVENT_NAME);
|
|
20
|
+
this.payload = payload;
|
|
21
|
+
this.context = context;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.PoolCreatedEvent = PoolCreatedEvent;
|
|
25
|
+
PoolCreatedEvent.EVENT_NAME = "cloud-pools.pool-created";
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => cloud_pool_context_1.CloudPoolContext),
|
|
28
|
+
__metadata("design:type", cloud_pool_context_1.CloudPoolContext)
|
|
29
|
+
], PoolCreatedEvent.prototype, "context", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => pools_1.CloudPool),
|
|
32
|
+
__metadata("design:type", pools_1.CloudPool)
|
|
33
|
+
], PoolCreatedEvent.prototype, "payload", void 0);
|
|
34
|
+
//# sourceMappingURL=pool-created.event.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pool-created.event.js","sourceRoot":"","sources":["../../../src/v4/events/pool-created.event.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAqD;AACrD,uEAAkE;AAClE,oGAAqF;AACrF,0CAA2C;AAE3C,MAAa,gBAAiB,SAAQ,wBAAU;IAG9C,YAAY,OAAkB,EAAE,OAAyB;QACvD,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,iBAAS,CAAC;8BAC3B,iBAAS;iDAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
2
|
-
import { CloudResourcesStatusMap, BasePoolAttributes, LudeoPoolAttributes, MachinePoolAttributes, CloudProviderSettings } from "../types";
|
|
3
|
-
import { GamePoolAttributes } from "../../v3/types";
|
|
2
|
+
import { CloudResourcesStatusMap, BasePoolAttributes, LudeoPoolAttributes, MachinePoolAttributes, CloudProviderSettings, GamePoolAttributes } from "../types";
|
|
4
3
|
export declare class PoolStatusEventBasePool<T extends BasePoolAttributes = BasePoolAttributes> {
|
|
5
4
|
attributes: T;
|
|
6
5
|
statusMap: CloudResourcesStatusMap;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pool-status.js","sourceRoot":"","sources":["../../../src/v4/events/pool-status.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAqD;AAErD,yDAAqD;AACrD,
|
|
1
|
+
{"version":3,"file":"pool-status.js","sourceRoot":"","sources":["../../../src/v4/events/pool-status.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAqD;AAErD,yDAAqD;AACrD,oCAQkB;AAClB,oGAAqF;AACrF,4FAA4E;AAE5E,MAAa,uBAAuB;CAUnC;AAVD,0DAUC;AANC;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,0BAAkB,CAAC;;2DAC/B;AAKd;IADC,IAAA,wBAAM,GAAE;;uDACM;AAGjB,MAAa,wBAAyB,SAAQ,uBAA4C;CAOzF;AAPD,4DAOC;AALC;IADC,IAAA,wBAAM,GAAE;;4DACU;AAInB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0CAAa,GAAE;;yDACC;AAGnB,MAAa,uBAAwB,SAAQ,uBAA2C;CAKvF;AALD,0DAKC;AAHC;IADC,IAAA,wBAAM,GAAE;;8DACa;AAKxB,MAAa,0BAA2B,SAAQ,uBAA8C;CAK7F;AALD,gEAKC;AADC;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,2BAAmB,CAAC;;oEACG;AAGnD,MAAa,sBAAsB;CAKlC;AALD,wDAKC;AADC;IADC,IAAA,wBAAM,GAAE;;yDACS;AAGpB,MAAa,eAAgB,SAAQ,wBAAU;IAG7C,YAAY,OAA+B;QACzC,KAAK,CAAC,eAAe,CAAC,UAAU,CAAC,CAAC;QAClC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AANH,0CAUC;AATiB,0BAAU,GAAG,yBAAyB,CAAC;AAQvD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,sBAAsB,CAAC;8BACxC,sBAAsB;gDAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
2
|
+
import { CloudPool } from "../types/pools";
|
|
3
|
+
import { CloudPoolContext } from "../contexts/cloud-pool-context";
|
|
4
|
+
export declare class PoolUpdatedEvent extends LudeoEvent {
|
|
5
|
+
static readonly EVENT_NAME = "cloud-pools.pool-updated";
|
|
6
|
+
constructor(payload: CloudPool, context: CloudPoolContext);
|
|
7
|
+
context: CloudPoolContext;
|
|
8
|
+
payload: CloudPool;
|
|
9
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
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.PoolUpdatedEvent = void 0;
|
|
13
|
+
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
14
|
+
const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
15
|
+
const pools_1 = require("../types/pools");
|
|
16
|
+
const cloud_pool_context_1 = require("../contexts/cloud-pool-context");
|
|
17
|
+
class PoolUpdatedEvent extends ludeo_event_1.LudeoEvent {
|
|
18
|
+
constructor(payload, context) {
|
|
19
|
+
super(PoolUpdatedEvent.EVENT_NAME);
|
|
20
|
+
this.payload = payload;
|
|
21
|
+
this.context = context;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.PoolUpdatedEvent = PoolUpdatedEvent;
|
|
25
|
+
PoolUpdatedEvent.EVENT_NAME = "cloud-pools.pool-updated";
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => cloud_pool_context_1.CloudPoolContext),
|
|
28
|
+
__metadata("design:type", cloud_pool_context_1.CloudPoolContext)
|
|
29
|
+
], PoolUpdatedEvent.prototype, "context", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => pools_1.CloudPool),
|
|
32
|
+
__metadata("design:type", pools_1.CloudPool)
|
|
33
|
+
], PoolUpdatedEvent.prototype, "payload", void 0);
|
|
34
|
+
//# sourceMappingURL=pool-updated.event.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pool-updated.event.js","sourceRoot":"","sources":["../../../src/v4/events/pool-updated.event.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAqD;AACrD,oGAAqF;AACrF,0CAA2C;AAC3C,uEAAkE;AAElE,MAAa,gBAAiB,SAAQ,wBAAU;IAG9C,YAAY,OAAkB,EAAE,OAAyB;QACvD,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,iBAAS,CAAC;8BAC3B,iBAAS;iDAAC"}
|
|
@@ -11,7 +11,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.AWSResourceProviderSettings = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
|
-
const
|
|
14
|
+
const provider_1 = require("../../cloud/provider");
|
|
15
15
|
class AWSResourceProviderSettings {
|
|
16
16
|
}
|
|
17
17
|
exports.AWSResourceProviderSettings = AWSResourceProviderSettings;
|
|
@@ -26,7 +26,7 @@ __decorate([
|
|
|
26
26
|
__metadata("design:type", String)
|
|
27
27
|
], AWSResourceProviderSettings.prototype, "streamGroupId", void 0);
|
|
28
28
|
__decorate([
|
|
29
|
-
(0, class_validator_1.IsEnum)(
|
|
29
|
+
(0, class_validator_1.IsEnum)(provider_1.CloudProvider),
|
|
30
30
|
(0, class_validator_1.IsOptional)(),
|
|
31
31
|
__metadata("design:type", String)
|
|
32
32
|
], AWSResourceProviderSettings.prototype, "cloudProvider", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resource-provider-settings.js","sourceRoot":"","sources":["../../../../../src/v4/types/cloud/aws/resource-provider-settings.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAC/D,
|
|
1
|
+
{"version":3,"file":"resource-provider-settings.js","sourceRoot":"","sources":["../../../../../src/v4/types/cloud/aws/resource-provider-settings.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAC/D,mDAAqD;AAErD,MAAa,2BAA2B;CAgBvC;AAhBD,kEAgBC;AAbC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;oEACc;AAIzB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;kEACY;AAIvB;IAFC,IAAA,wBAAM,EAAC,wBAAa,CAAC;IACrB,IAAA,4BAAU,GAAE;;kEACiB;AAI9B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;2DACK"}
|
|
@@ -23,4 +23,5 @@ __exportStar(require("./provider-settings"), exports);
|
|
|
23
23
|
__exportStar(require("./provider"), exports);
|
|
24
24
|
__exportStar(require("./resource-provider-settings"), exports);
|
|
25
25
|
__exportStar(require("./session"), exports);
|
|
26
|
+
__exportStar(require("./mock"), exports);
|
|
26
27
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/v4/types/cloud/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,uDAAqC;AACrC,wCAAsB;AACtB,2DAAyC;AACzC,qDAAmC;AACnC,sDAAoC;AACpC,6CAA2B;AAC3B,+DAA6C;AAC7C,4CAA0B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/v4/types/cloud/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,uDAAqC;AACrC,wCAAsB;AACtB,2DAAyC;AACzC,qDAAmC;AACnC,sDAAoC;AACpC,6CAA2B;AAC3B,+DAA6C;AAC7C,4CAA0B;AAC1B,yCAAuB"}
|
|
@@ -0,0 +1,29 @@
|
|
|
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.MockAllocationData = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class MockAllocationData {
|
|
15
|
+
}
|
|
16
|
+
exports.MockAllocationData = MockAllocationData;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsString)(),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], MockAllocationData.prototype, "machineId", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsString)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], MockAllocationData.prototype, "streamId", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsString)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], MockAllocationData.prototype, "signalResponse", void 0);
|
|
29
|
+
//# sourceMappingURL=allocation-data.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"allocation-data.js","sourceRoot":"","sources":["../../../../../src/v4/types/cloud/mock/allocation-data.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA2C;AAE3C,MAAa,kBAAkB;CAS9B;AATD,gDASC;AAPC;IADC,IAAA,0BAAQ,GAAE;;qDACO;AAGlB;IADC,IAAA,0BAAQ,GAAE;;oDACM;AAGjB;IADC,IAAA,0BAAQ,GAAE;;0DACY"}
|
|
@@ -0,0 +1,22 @@
|
|
|
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.MockGameCreationResponse = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class MockGameCreationResponse {
|
|
15
|
+
}
|
|
16
|
+
exports.MockGameCreationResponse = MockGameCreationResponse;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsString)(),
|
|
19
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], MockGameCreationResponse.prototype, "streamId", void 0);
|
|
22
|
+
//# sourceMappingURL=game-creation-response.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"game-creation-response.js","sourceRoot":"","sources":["../../../../../src/v4/types/cloud/mock/game-creation-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AAEvD,MAAa,wBAAwB;CAIpC;AAJD,4DAIC;AADC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;0DACI"}
|
|
@@ -0,0 +1,22 @@
|
|
|
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("./resource-provider-settings"), exports);
|
|
18
|
+
__exportStar(require("./provider-settings"), exports);
|
|
19
|
+
__exportStar(require("./request-data"), exports);
|
|
20
|
+
__exportStar(require("./game-creation-response"), exports);
|
|
21
|
+
__exportStar(require("./allocation-data"), exports);
|
|
22
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/v4/types/cloud/mock/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+DAA6C;AAC7C,sDAAoC;AACpC,iDAA+B;AAC/B,2DAAyC;AACzC,oDAAkC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provider-settings.js","sourceRoot":"","sources":["../../../../../src/v4/types/cloud/mock/provider-settings.ts"],"names":[],"mappings":";;;AAAA,MAAa,oBAAoB;CAGhC;AAHD,oDAGC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
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.MockRequestData = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class MockRequestData {
|
|
15
|
+
}
|
|
16
|
+
exports.MockRequestData = MockRequestData;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsString)(),
|
|
19
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], MockRequestData.prototype, "signalRequest", void 0);
|
|
22
|
+
//# sourceMappingURL=request-data.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"request-data.js","sourceRoot":"","sources":["../../../../../src/v4/types/cloud/mock/request-data.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AAEvD,MAAa,eAAe;CAI3B;AAJD,0CAIC;AADC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;sDACS"}
|
|
@@ -0,0 +1,33 @@
|
|
|
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.MockResourceProviderSettings = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const provider_1 = require("../../cloud/provider");
|
|
15
|
+
class MockResourceProviderSettings {
|
|
16
|
+
}
|
|
17
|
+
exports.MockResourceProviderSettings = MockResourceProviderSettings;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsOptional)(),
|
|
20
|
+
(0, class_validator_1.IsString)(),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], MockResourceProviderSettings.prototype, "streamId", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_validator_1.IsEnum)(provider_1.CloudProvider),
|
|
25
|
+
(0, class_validator_1.IsOptional)(),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], MockResourceProviderSettings.prototype, "cloudProvider", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_validator_1.IsOptional)(),
|
|
30
|
+
(0, class_validator_1.IsString)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], MockResourceProviderSettings.prototype, "region", void 0);
|
|
33
|
+
//# sourceMappingURL=resource-provider-settings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resource-provider-settings.js","sourceRoot":"","sources":["../../../../../src/v4/types/cloud/mock/resource-provider-settings.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAC/D,mDAAqD;AAErD,MAAa,4BAA4B;CAYxC;AAZD,oEAYC;AATC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;8DACO;AAIlB;IAFC,IAAA,wBAAM,EAAC,wBAAa,CAAC;IACrB,IAAA,4BAAU,GAAE;;mEACiB;AAI9B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;4DACK"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider.js","sourceRoot":"","sources":["../../../../src/v4/types/cloud/provider.ts"],"names":[],"mappings":";;;AAAA,IAAY,
|
|
1
|
+
{"version":3,"file":"provider.js","sourceRoot":"","sources":["../../../../src/v4/types/cloud/provider.ts"],"names":[],"mappings":";;;AAAA,IAAY,aAIX;AAJD,WAAY,aAAa;IACvB,4BAAW,CAAA;IACX,kCAAiB,CAAA;IACjB,8BAAa,CAAA;AACf,CAAC,EAJW,aAAa,6BAAb,aAAa,QAIxB"}
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import { AWSResourceProviderSettings } from "./aws";
|
|
2
|
-
|
|
2
|
+
import { MockResourceProviderSettings } from "./mock";
|
|
3
|
+
export type CloudResourceProviderSettings = AWSResourceProviderSettings | MockResourceProviderSettings;
|
package/package.json
CHANGED
package/src/v4/events/index.ts
CHANGED
|
@@ -116,3 +116,5 @@ export * from "./monitor-aws-artifacts-status-task";
|
|
|
116
116
|
export * from "./build-artifacts-ready-for-creation";
|
|
117
117
|
export * from "./token-activated";
|
|
118
118
|
export * from "./cloud-session-sent-to-client";
|
|
119
|
+
export * from "./pool-updated.event";
|
|
120
|
+
export * from "./pool-created.event";
|
|
@@ -0,0 +1,20 @@
|
|
|
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 { CloudPool } from "../types/pools";
|
|
5
|
+
|
|
6
|
+
export class PoolCreatedEvent extends LudeoEvent {
|
|
7
|
+
static readonly EVENT_NAME = "cloud-pools.pool-created";
|
|
8
|
+
|
|
9
|
+
constructor(payload: CloudPool, context: CloudPoolContext) {
|
|
10
|
+
super(PoolCreatedEvent.EVENT_NAME);
|
|
11
|
+
this.payload = payload;
|
|
12
|
+
this.context = context;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@ValidateNestedType(() => CloudPoolContext)
|
|
16
|
+
context: CloudPoolContext;
|
|
17
|
+
|
|
18
|
+
@ValidateNestedType(() => CloudPool)
|
|
19
|
+
payload: CloudPool;
|
|
20
|
+
}
|
|
@@ -8,13 +8,13 @@ import {
|
|
|
8
8
|
MachinePoolAttributes,
|
|
9
9
|
AWSProviderSettings,
|
|
10
10
|
CloudProviderSettings,
|
|
11
|
+
GamePoolAttributes,
|
|
11
12
|
} from "../types";
|
|
12
13
|
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
13
|
-
import { GamePoolAttributes } from "../../v3/types";
|
|
14
14
|
import { IsUUIDOrEmpty } from "../../decorators/is-uuid-or-empty.decorator";
|
|
15
15
|
|
|
16
16
|
export class PoolStatusEventBasePool<
|
|
17
|
-
T extends BasePoolAttributes = BasePoolAttributes
|
|
17
|
+
T extends BasePoolAttributes = BasePoolAttributes
|
|
18
18
|
> {
|
|
19
19
|
@ValidateNestedType(() => BasePoolAttributes)
|
|
20
20
|
attributes: T;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
2
|
+
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
3
|
+
import { CloudPool } from "../types/pools";
|
|
4
|
+
import { CloudPoolContext } from "../contexts/cloud-pool-context";
|
|
5
|
+
|
|
6
|
+
export class PoolUpdatedEvent extends LudeoEvent {
|
|
7
|
+
static readonly EVENT_NAME = "cloud-pools.pool-updated";
|
|
8
|
+
|
|
9
|
+
constructor(payload: CloudPool, context: CloudPoolContext) {
|
|
10
|
+
super(PoolUpdatedEvent.EVENT_NAME);
|
|
11
|
+
this.payload = payload;
|
|
12
|
+
this.context = context;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@ValidateNestedType(() => CloudPoolContext)
|
|
16
|
+
context: CloudPoolContext;
|
|
17
|
+
|
|
18
|
+
@ValidateNestedType(() => CloudPool)
|
|
19
|
+
payload: CloudPool;
|
|
20
|
+
}
|