@ludeo/cloud-common 1.0.32 → 1.0.33
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/index.d.ts +1 -0
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/v3/contexts/cloud-resource-context.d.ts +8 -0
- package/dist/v3/contexts/cloud-resource-context.js +40 -0
- package/dist/v3/contexts/cloud-resource-context.js.map +1 -0
- package/dist/v3/contexts/index.d.ts +1 -0
- package/dist/v3/contexts/index.js +18 -0
- package/dist/v3/contexts/index.js.map +1 -0
- package/dist/v3/events/allocate-game-request.d.ts +14 -0
- package/dist/v3/events/allocate-game-request.js +50 -0
- package/dist/v3/events/allocate-game-request.js.map +1 -0
- package/dist/v3/events/allocate-game-resource-request.d.ts +17 -0
- package/dist/v3/events/allocate-game-resource-request.js +62 -0
- package/dist/v3/events/allocate-game-resource-request.js.map +1 -0
- package/dist/v3/events/allocate-machine-request.d.ts +13 -0
- package/dist/v3/events/allocate-machine-request.js +49 -0
- package/dist/v3/events/allocate-machine-request.js.map +1 -0
- package/dist/v3/events/create-game-resource-request.d.ts +16 -0
- package/dist/v3/events/create-game-resource-request.js +58 -0
- package/dist/v3/events/create-game-resource-request.js.map +1 -0
- package/dist/v3/events/create-games-request.d.ts +12 -0
- package/dist/v3/events/create-games-request.js +45 -0
- package/dist/v3/events/create-games-request.js.map +1 -0
- package/dist/v3/events/create-machine-resource-batch-request.d.ts +15 -0
- package/dist/v3/events/create-machine-resource-batch-request.js +54 -0
- package/dist/v3/events/create-machine-resource-batch-request.js.map +1 -0
- package/dist/v3/events/create-machine-resource-request.d.ts +15 -0
- package/dist/v3/events/create-machine-resource-request.js +54 -0
- package/dist/v3/events/create-machine-resource-request.js.map +1 -0
- package/dist/v3/events/create-machines-request.d.ts +12 -0
- package/dist/v3/events/create-machines-request.js +45 -0
- package/dist/v3/events/create-machines-request.js.map +1 -0
- package/dist/v3/events/game-allocated-response.d.ts +14 -0
- package/dist/v3/events/game-allocated-response.js +50 -0
- package/dist/v3/events/game-allocated-response.js.map +1 -0
- package/dist/v3/events/game-created-response.d.ts +15 -0
- package/dist/v3/events/game-created-response.js +54 -0
- package/dist/v3/events/game-created-response.js.map +1 -0
- package/dist/v3/events/game-terminated-response.d.ts +12 -0
- package/dist/v3/events/game-terminated-response.js +45 -0
- package/dist/v3/events/game-terminated-response.js.map +1 -0
- package/dist/v3/events/index.d.ts +17 -0
- package/dist/v3/events/index.js +34 -0
- package/dist/v3/events/index.js.map +1 -0
- package/dist/v3/events/machine-allocated-response.d.ts +17 -0
- package/dist/v3/events/machine-allocated-response.js +62 -0
- package/dist/v3/events/machine-allocated-response.js.map +1 -0
- package/dist/v3/events/machine-created-response.d.ts +12 -0
- package/dist/v3/events/machine-created-response.js +45 -0
- package/dist/v3/events/machine-created-response.js.map +1 -0
- package/dist/v3/events/set-pool.event.d.ts +9 -0
- package/dist/v3/events/set-pool.event.js +34 -0
- package/dist/v3/events/set-pool.event.js.map +1 -0
- package/dist/v3/events/terminate-game-resource-request.d.ts +15 -0
- package/dist/v3/events/terminate-game-resource-request.js +54 -0
- package/dist/v3/events/terminate-game-resource-request.js.map +1 -0
- package/dist/v3/events/terminate-games-request.d.ts +12 -0
- package/dist/v3/events/terminate-games-request.js +45 -0
- package/dist/v3/events/terminate-games-request.js.map +1 -0
- package/dist/v3/events/terminate-machine-resource-batch-request.d.ts +15 -0
- package/dist/v3/events/terminate-machine-resource-batch-request.js +54 -0
- package/dist/v3/events/terminate-machine-resource-batch-request.js.map +1 -0
- package/dist/v3/events/terminate-machines-request.d.ts +12 -0
- package/dist/v3/events/terminate-machines-request.js +45 -0
- package/dist/v3/events/terminate-machines-request.js.map +1 -0
- package/dist/v3/index.d.ts +2 -0
- package/dist/v3/index.js +6 -0
- package/dist/v3/index.js.map +1 -0
- package/dist/v3/types/cloud.d.ts +39 -0
- package/dist/v3/types/cloud.js +88 -0
- package/dist/v3/types/cloud.js.map +1 -0
- package/dist/v3/types/index.d.ts +2 -0
- package/dist/v3/types/index.js +19 -0
- package/dist/v3/types/index.js.map +1 -0
- package/dist/v3/types/pools.d.ts +59 -0
- package/dist/v3/types/pools.js +88 -0
- package/dist/v3/types/pools.js.map +1 -0
- package/package.json +1 -1
- package/src/index.ts +1 -0
- package/src/v3/contexts/cloud-resource-context.ts +21 -0
- package/src/v3/contexts/index.ts +1 -0
- package/src/v3/events/allocate-game-request.ts +36 -0
- package/src/v3/events/allocate-game-resource-request.ts +50 -0
- package/src/v3/events/allocate-machine-request.ts +35 -0
- package/src/v3/events/create-game-resource-request.ts +46 -0
- package/src/v3/events/create-games-request.ts +29 -0
- package/src/v3/events/create-machine-resource-batch-request.ts +44 -0
- package/src/v3/events/create-machine-resource-request.ts +43 -0
- package/src/v3/events/create-machines-request.ts +29 -0
- package/src/v3/events/game-allocated-response.ts +36 -0
- package/src/v3/events/game-created-response.ts +43 -0
- package/src/v3/events/game-terminated-response.ts +32 -0
- package/src/v3/events/index.ts +17 -0
- package/src/v3/events/machine-allocated-response.ts +49 -0
- package/src/v3/events/machine-created-response.ts +32 -0
- package/src/v3/events/set-pool.event.ts +23 -0
- package/src/v3/events/terminate-game-resource-request.ts +43 -0
- package/src/v3/events/terminate-games-request.ts +29 -0
- package/src/v3/events/terminate-machine-resource-batch-request.ts +44 -0
- package/src/v3/events/terminate-machines-request.ts +29 -0
- package/src/v3/index.ts +2 -0
- package/src/v3/types/cloud.ts +84 -0
- package/src/v3/types/index.ts +2 -0
- package/src/v3/types/pools.ts +90 -0
|
@@ -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.CloudResourceContext = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const cloud_1 = require("../types/cloud");
|
|
15
|
+
class CloudResourceContext {
|
|
16
|
+
}
|
|
17
|
+
exports.CloudResourceContext = CloudResourceContext;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsUUID)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], CloudResourceContext.prototype, "resourceId", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsUUID)(),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], CloudResourceContext.prototype, "poolId", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_validator_1.IsString)(),
|
|
28
|
+
(0, class_validator_1.IsOptional)(),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], CloudResourceContext.prototype, "streamGroupId", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, class_validator_1.IsString)(),
|
|
33
|
+
(0, class_validator_1.IsOptional)(),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], CloudResourceContext.prototype, "streamSessionId", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, class_validator_1.IsEnum)(cloud_1.CloudProvider),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], CloudResourceContext.prototype, "cloudProvider", void 0);
|
|
40
|
+
//# sourceMappingURL=cloud-resource-context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cloud-resource-context.js","sourceRoot":"","sources":["../../../src/v3/contexts/cloud-resource-context.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuE;AACvE,0CAA+C;AAE/C,MAAa,oBAAoB;CAiBhC;AAjBD,oDAiBC;AAfC;IADC,IAAA,wBAAM,GAAE;;wDACU;AAGnB;IADC,IAAA,wBAAM,GAAE;;oDACM;AAIf;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;2DACU;AAIvB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;6DACY;AAGzB;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;2DACO"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./cloud-resource-context";
|
|
@@ -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("./cloud-resource-context"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v3/contexts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AllocationRequestData } from "../types";
|
|
2
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
3
|
+
import { CloudSessionContext } from "../../v2/contexts";
|
|
4
|
+
export declare class AllocateGameRequestPayload {
|
|
5
|
+
gameResourceId: string;
|
|
6
|
+
gamePoolId: string;
|
|
7
|
+
requestData: AllocationRequestData;
|
|
8
|
+
}
|
|
9
|
+
export declare class AllocateGameRequest extends LudeoEvent {
|
|
10
|
+
static readonly EVENT_NAME = "cloud-session-allocator.allocate-game-request";
|
|
11
|
+
constructor(payload: AllocateGameRequestPayload, context: CloudSessionContext);
|
|
12
|
+
context: CloudSessionContext;
|
|
13
|
+
payload: AllocateGameRequestPayload;
|
|
14
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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.AllocateGameRequest = exports.AllocateGameRequestPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const types_1 = require("../types");
|
|
15
|
+
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
16
|
+
const contexts_1 = require("../../v2/contexts");
|
|
17
|
+
const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
18
|
+
class AllocateGameRequestPayload {
|
|
19
|
+
}
|
|
20
|
+
exports.AllocateGameRequestPayload = AllocateGameRequestPayload;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsUUID)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], AllocateGameRequestPayload.prototype, "gameResourceId", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsUUID)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], AllocateGameRequestPayload.prototype, "gamePoolId", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.AllocationRequestData),
|
|
31
|
+
__metadata("design:type", types_1.AllocationRequestData)
|
|
32
|
+
], AllocateGameRequestPayload.prototype, "requestData", void 0);
|
|
33
|
+
class AllocateGameRequest extends ludeo_event_1.LudeoEvent {
|
|
34
|
+
constructor(payload, context) {
|
|
35
|
+
super(AllocateGameRequest.EVENT_NAME);
|
|
36
|
+
this.payload = payload;
|
|
37
|
+
this.context = context;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
exports.AllocateGameRequest = AllocateGameRequest;
|
|
41
|
+
AllocateGameRequest.EVENT_NAME = "cloud-session-allocator.allocate-game-request";
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.CloudSessionContext),
|
|
44
|
+
__metadata("design:type", contexts_1.CloudSessionContext)
|
|
45
|
+
], AllocateGameRequest.prototype, "context", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => AllocateGameRequestPayload),
|
|
48
|
+
__metadata("design:type", AllocateGameRequestPayload)
|
|
49
|
+
], AllocateGameRequest.prototype, "payload", void 0);
|
|
50
|
+
//# sourceMappingURL=allocate-game-request.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"allocate-game-request.js","sourceRoot":"","sources":["../../../src/v3/events/allocate-game-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyC;AAEzC,oCAAiD;AACjD,yDAAqD;AACrD,gDAAwD;AACxD,oGAAqF;AAErF,MAAa,0BAA0B;CAStC;AATD,gEASC;AAPC;IADC,IAAA,wBAAM,GAAE;;kEACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;8DACU;AAGnB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,6BAAqB,CAAC;8BACnC,6BAAqB;+DAAC;AAGrC,MAAa,mBAAoB,SAAQ,wBAAU;IAGjD,YACE,OAAmC,EACnC,OAA4B;QAE5B,KAAK,CAAC,mBAAmB,CAAC,UAAU,CAAC,CAAC;QACtC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,kDAiBC;AAhBiB,8BAAU,GAAG,+CAA+C,CAAC;AAY7E;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,8BAAmB,CAAC;8BACrC,8BAAmB;oDAAC;AAG7B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,0BAA0B,CAAC;8BAC5C,0BAA0B;oDAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
2
|
+
import { CloudSessionContext } from "../../v2/contexts";
|
|
3
|
+
import { CloudProviderSettings, CloudProvider, AllocationRequestData } from "../types";
|
|
4
|
+
export declare class AllocateGameResourceRequestPayload {
|
|
5
|
+
gameResourceId: string;
|
|
6
|
+
gamePoolId: string;
|
|
7
|
+
providerSettings: CloudProviderSettings;
|
|
8
|
+
cloudProvider: CloudProvider;
|
|
9
|
+
cloudToken: string;
|
|
10
|
+
requestData: AllocationRequestData;
|
|
11
|
+
}
|
|
12
|
+
export declare class AllocateGameResourceRequest extends LudeoEvent {
|
|
13
|
+
static readonly EVENT_NAME = "cloud-pools.allocate-game-resource-request";
|
|
14
|
+
constructor(payload: AllocateGameResourceRequestPayload, context: CloudSessionContext);
|
|
15
|
+
context: CloudSessionContext;
|
|
16
|
+
payload: AllocateGameResourceRequestPayload;
|
|
17
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
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.AllocateGameResourceRequest = exports.AllocateGameResourceRequestPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
15
|
+
const contexts_1 = require("../../v2/contexts");
|
|
16
|
+
const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
17
|
+
const types_1 = require("../types");
|
|
18
|
+
class AllocateGameResourceRequestPayload {
|
|
19
|
+
}
|
|
20
|
+
exports.AllocateGameResourceRequestPayload = AllocateGameResourceRequestPayload;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsUUID)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], AllocateGameResourceRequestPayload.prototype, "gameResourceId", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsUUID)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], AllocateGameResourceRequestPayload.prototype, "gamePoolId", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.AWSProviderSettings),
|
|
31
|
+
__metadata("design:type", Object)
|
|
32
|
+
], AllocateGameResourceRequestPayload.prototype, "providerSettings", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_validator_1.IsEnum)(types_1.CloudProvider),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], AllocateGameResourceRequestPayload.prototype, "cloudProvider", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_validator_1.IsUUID)(),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], AllocateGameResourceRequestPayload.prototype, "cloudToken", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.AllocationRequestData),
|
|
43
|
+
__metadata("design:type", types_1.AllocationRequestData)
|
|
44
|
+
], AllocateGameResourceRequestPayload.prototype, "requestData", void 0);
|
|
45
|
+
class AllocateGameResourceRequest extends ludeo_event_1.LudeoEvent {
|
|
46
|
+
constructor(payload, context) {
|
|
47
|
+
super(AllocateGameResourceRequest.EVENT_NAME);
|
|
48
|
+
this.payload = payload;
|
|
49
|
+
this.context = context;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
exports.AllocateGameResourceRequest = AllocateGameResourceRequest;
|
|
53
|
+
AllocateGameResourceRequest.EVENT_NAME = "cloud-pools.allocate-game-resource-request";
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.CloudSessionContext),
|
|
56
|
+
__metadata("design:type", contexts_1.CloudSessionContext)
|
|
57
|
+
], AllocateGameResourceRequest.prototype, "context", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => AllocateGameResourceRequestPayload),
|
|
60
|
+
__metadata("design:type", AllocateGameResourceRequestPayload)
|
|
61
|
+
], AllocateGameResourceRequest.prototype, "payload", void 0);
|
|
62
|
+
//# sourceMappingURL=allocate-game-resource-request.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"allocate-game-resource-request.js","sourceRoot":"","sources":["../../../src/v3/events/allocate-game-resource-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiD;AAEjD,yDAAqD;AACrD,gDAAwD;AACxD,oGAAqF;AACrF,oCAKkB;AAElB,MAAa,kCAAkC;CAkB9C;AAlBD,gFAkBC;AAhBC;IADC,IAAA,wBAAM,GAAE;;0EACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;sEACU;AAGnB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,2BAAmB,CAAC;;4EACN;AAGxC;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;yEACO;AAG7B;IADC,IAAA,wBAAM,GAAE;;sEACU;AAGnB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,6BAAqB,CAAC;8BACnC,6BAAqB;uEAAC;AAGrC,MAAa,2BAA4B,SAAQ,wBAAU;IAGzD,YACE,OAA2C,EAC3C,OAA4B;QAE5B,KAAK,CAAC,2BAA2B,CAAC,UAAU,CAAC,CAAC;QAC9C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,kEAiBC;AAhBiB,sCAAU,GAAG,4CAA4C,CAAC;AAY1E;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,8BAAmB,CAAC;8BACrC,8BAAmB;4DAAC;AAG7B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,kCAAkC,CAAC;8BACpD,kCAAkC;4DAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { CloudResourceContext } from "../contexts";
|
|
2
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
3
|
+
export declare class AllocateMachineRequestPayload {
|
|
4
|
+
gameResourceId: string;
|
|
5
|
+
machinePoolId: string;
|
|
6
|
+
gamePoolId: string;
|
|
7
|
+
}
|
|
8
|
+
export declare class AllocateMachineRequest extends LudeoEvent {
|
|
9
|
+
static readonly EVENT_NAME = "cloud-pools.allocate-machine-request";
|
|
10
|
+
constructor(payload: AllocateMachineRequestPayload, context: CloudResourceContext);
|
|
11
|
+
context: CloudResourceContext;
|
|
12
|
+
payload: AllocateMachineRequestPayload;
|
|
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.AllocateMachineRequest = exports.AllocateMachineRequestPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const contexts_1 = require("../contexts");
|
|
15
|
+
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
16
|
+
const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
17
|
+
class AllocateMachineRequestPayload {
|
|
18
|
+
}
|
|
19
|
+
exports.AllocateMachineRequestPayload = AllocateMachineRequestPayload;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_validator_1.IsUUID)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], AllocateMachineRequestPayload.prototype, "gameResourceId", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsUUID)(),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], AllocateMachineRequestPayload.prototype, "machinePoolId", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_validator_1.IsUUID)(),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], AllocateMachineRequestPayload.prototype, "gamePoolId", void 0);
|
|
32
|
+
class AllocateMachineRequest extends ludeo_event_1.LudeoEvent {
|
|
33
|
+
constructor(payload, context) {
|
|
34
|
+
super(AllocateMachineRequest.EVENT_NAME);
|
|
35
|
+
this.payload = payload;
|
|
36
|
+
this.context = context;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
exports.AllocateMachineRequest = AllocateMachineRequest;
|
|
40
|
+
AllocateMachineRequest.EVENT_NAME = "cloud-pools.allocate-machine-request";
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.CloudResourceContext),
|
|
43
|
+
__metadata("design:type", contexts_1.CloudResourceContext)
|
|
44
|
+
], AllocateMachineRequest.prototype, "context", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => AllocateMachineRequestPayload),
|
|
47
|
+
__metadata("design:type", AllocateMachineRequestPayload)
|
|
48
|
+
], AllocateMachineRequest.prototype, "payload", void 0);
|
|
49
|
+
//# sourceMappingURL=allocate-machine-request.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"allocate-machine-request.js","sourceRoot":"","sources":["../../../src/v3/events/allocate-machine-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyC;AAEzC,0CAAmD;AACnD,yDAAqD;AACrD,oGAAqF;AAErF,MAAa,6BAA6B;CASzC;AATD,sEASC;AAPC;IADC,IAAA,wBAAM,GAAE;;qEACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;oEACa;AAGtB;IADC,IAAA,wBAAM,GAAE;;iEACU;AAGrB,MAAa,sBAAuB,SAAQ,wBAAU;IAGpD,YACE,OAAsC,EACtC,OAA6B;QAE7B,KAAK,CAAC,sBAAsB,CAAC,UAAU,CAAC,CAAC;QACzC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,wDAiBC;AAhBiB,iCAAU,GAAG,sCAAsC,CAAC;AAYpE;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;uDAAC;AAG9B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,6BAA6B,CAAC;8BAC/C,6BAA6B;uDAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { CloudResourceContext } from "../contexts";
|
|
2
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
3
|
+
import { CloudProviderSettings, CloudProvider } from "../types";
|
|
4
|
+
export declare class CreateGameResourceRequestPayload {
|
|
5
|
+
gameResourceId: string;
|
|
6
|
+
gamePoolId: string;
|
|
7
|
+
providerSettings: CloudProviderSettings;
|
|
8
|
+
cloudProvider: CloudProvider;
|
|
9
|
+
cloudToken: string;
|
|
10
|
+
}
|
|
11
|
+
export declare class CreateGameResourceRequest extends LudeoEvent {
|
|
12
|
+
static readonly EVENT_NAME = "cloud-pools.create-game-resource-request";
|
|
13
|
+
constructor(payload: CreateGameResourceRequestPayload, context: CloudResourceContext);
|
|
14
|
+
context: CloudResourceContext;
|
|
15
|
+
payload: CreateGameResourceRequestPayload;
|
|
16
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
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.CreateGameResourceRequest = exports.CreateGameResourceRequestPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const contexts_1 = require("../contexts");
|
|
15
|
+
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
16
|
+
const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
17
|
+
const types_1 = require("../types");
|
|
18
|
+
class CreateGameResourceRequestPayload {
|
|
19
|
+
}
|
|
20
|
+
exports.CreateGameResourceRequestPayload = CreateGameResourceRequestPayload;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsUUID)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], CreateGameResourceRequestPayload.prototype, "gameResourceId", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsUUID)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], CreateGameResourceRequestPayload.prototype, "gamePoolId", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.AWSProviderSettings),
|
|
31
|
+
__metadata("design:type", Object)
|
|
32
|
+
], CreateGameResourceRequestPayload.prototype, "providerSettings", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_validator_1.IsEnum)(types_1.CloudProvider),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], CreateGameResourceRequestPayload.prototype, "cloudProvider", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_validator_1.IsUUID)(),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], CreateGameResourceRequestPayload.prototype, "cloudToken", void 0);
|
|
41
|
+
class CreateGameResourceRequest extends ludeo_event_1.LudeoEvent {
|
|
42
|
+
constructor(payload, context) {
|
|
43
|
+
super(CreateGameResourceRequest.EVENT_NAME);
|
|
44
|
+
this.payload = payload;
|
|
45
|
+
this.context = context;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
exports.CreateGameResourceRequest = CreateGameResourceRequest;
|
|
49
|
+
CreateGameResourceRequest.EVENT_NAME = "cloud-pools.create-game-resource-request";
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.CloudResourceContext),
|
|
52
|
+
__metadata("design:type", contexts_1.CloudResourceContext)
|
|
53
|
+
], CreateGameResourceRequest.prototype, "context", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => CreateGameResourceRequestPayload),
|
|
56
|
+
__metadata("design:type", CreateGameResourceRequestPayload)
|
|
57
|
+
], CreateGameResourceRequest.prototype, "payload", void 0);
|
|
58
|
+
//# sourceMappingURL=create-game-resource-request.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-game-resource-request.js","sourceRoot":"","sources":["../../../src/v3/events/create-game-resource-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiD;AAEjD,0CAAmD;AACnD,yDAAqD;AACrD,oGAAqF;AACrF,oCAIkB;AAElB,MAAa,gCAAgC;CAe5C;AAfD,4EAeC;AAbC;IADC,IAAA,wBAAM,GAAE;;wEACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;oEACU;AAGnB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,2BAAmB,CAAC;;0EACN;AAGxC;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;uEACO;AAG7B;IADC,IAAA,wBAAM,GAAE;;oEACU;AAGrB,MAAa,yBAA0B,SAAQ,wBAAU;IAGvD,YACE,OAAyC,EACzC,OAA6B;QAE7B,KAAK,CAAC,yBAAyB,CAAC,UAAU,CAAC,CAAC;QAC5C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,8DAiBC;AAhBiB,oCAAU,GAAG,0CAA0C,CAAC;AAYxE;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;0DAAC;AAG9B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,gCAAgC,CAAC;8BAClD,gCAAgC;0DAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { PoolContext } from "../../v2/contexts";
|
|
2
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
3
|
+
export declare class CreateGamesRequestPayload {
|
|
4
|
+
poolId: string;
|
|
5
|
+
quantity: number;
|
|
6
|
+
}
|
|
7
|
+
export declare class CreateGamesRequest extends LudeoEvent {
|
|
8
|
+
static readonly EVENT_NAME = "cloud-pools.create-games-request";
|
|
9
|
+
constructor(payload: CreateGamesRequestPayload, context: PoolContext);
|
|
10
|
+
context: PoolContext;
|
|
11
|
+
payload: CreateGamesRequestPayload;
|
|
12
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
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.CreateGamesRequest = exports.CreateGamesRequestPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const contexts_1 = require("../../v2/contexts");
|
|
15
|
+
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
16
|
+
const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
17
|
+
class CreateGamesRequestPayload {
|
|
18
|
+
}
|
|
19
|
+
exports.CreateGamesRequestPayload = CreateGamesRequestPayload;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_validator_1.IsUUID)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], CreateGamesRequestPayload.prototype, "poolId", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsNumber)(),
|
|
26
|
+
__metadata("design:type", Number)
|
|
27
|
+
], CreateGamesRequestPayload.prototype, "quantity", void 0);
|
|
28
|
+
class CreateGamesRequest extends ludeo_event_1.LudeoEvent {
|
|
29
|
+
constructor(payload, context) {
|
|
30
|
+
super(CreateGamesRequest.EVENT_NAME);
|
|
31
|
+
this.payload = payload;
|
|
32
|
+
this.context = context;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
exports.CreateGamesRequest = CreateGamesRequest;
|
|
36
|
+
CreateGamesRequest.EVENT_NAME = "cloud-pools.create-games-request";
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.PoolContext),
|
|
39
|
+
__metadata("design:type", contexts_1.PoolContext)
|
|
40
|
+
], CreateGamesRequest.prototype, "context", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => CreateGamesRequestPayload),
|
|
43
|
+
__metadata("design:type", CreateGamesRequestPayload)
|
|
44
|
+
], CreateGamesRequest.prototype, "payload", void 0);
|
|
45
|
+
//# sourceMappingURL=create-games-request.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-games-request.js","sourceRoot":"","sources":["../../../src/v3/events/create-games-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmD;AAEnD,gDAAgD;AAChD,yDAAqD;AACrD,oGAAqF;AAErF,MAAa,yBAAyB;CAMrC;AAND,8DAMC;AAJC;IADC,IAAA,wBAAM,GAAE;;yDACM;AAGf;IADC,IAAA,0BAAQ,GAAE;;2DACM;AAGnB,MAAa,kBAAmB,SAAQ,wBAAU;IAGhD,YAAY,OAAkC,EAAE,OAAoB;QAClE,KAAK,CAAC,kBAAkB,CAAC,UAAU,CAAC,CAAC;QACrC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,gDAcC;AAbiB,6BAAU,GAAG,kCAAkC,CAAC;AAShE;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,sBAAW,CAAC;8BAC7B,sBAAW;mDAAC;AAGrB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,yBAAyB,CAAC;8BAC3C,yBAAyB;mDAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { CloudResourceContext } from "../contexts";
|
|
2
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
3
|
+
import { CloudProvider, CloudProviderSettings } from "../types";
|
|
4
|
+
export declare class CreateMachineResourceBatchRequestPayload {
|
|
5
|
+
machineResourceIds: string[];
|
|
6
|
+
machinePoolId: string;
|
|
7
|
+
cloudProvider: CloudProvider;
|
|
8
|
+
cloudProviderSettings: CloudProviderSettings;
|
|
9
|
+
}
|
|
10
|
+
export declare class CreateMachineResourceBatchRequest extends LudeoEvent {
|
|
11
|
+
static readonly EVENT_NAME = "cloud-pools.create-machine-resource-batch-request";
|
|
12
|
+
constructor(payload: CreateMachineResourceBatchRequestPayload, context: CloudResourceContext);
|
|
13
|
+
context: CloudResourceContext;
|
|
14
|
+
payload: CreateMachineResourceBatchRequestPayload;
|
|
15
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
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.CreateMachineResourceBatchRequest = exports.CreateMachineResourceBatchRequestPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const contexts_1 = require("../contexts");
|
|
15
|
+
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
16
|
+
const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
17
|
+
const types_1 = require("../types");
|
|
18
|
+
class CreateMachineResourceBatchRequestPayload {
|
|
19
|
+
}
|
|
20
|
+
exports.CreateMachineResourceBatchRequestPayload = CreateMachineResourceBatchRequestPayload;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsArray)(),
|
|
23
|
+
__metadata("design:type", Array)
|
|
24
|
+
], CreateMachineResourceBatchRequestPayload.prototype, "machineResourceIds", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsUUID)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], CreateMachineResourceBatchRequestPayload.prototype, "machinePoolId", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_validator_1.IsEnum)(types_1.CloudProvider),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], CreateMachineResourceBatchRequestPayload.prototype, "cloudProvider", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.AWSProviderSettings),
|
|
35
|
+
__metadata("design:type", Object)
|
|
36
|
+
], CreateMachineResourceBatchRequestPayload.prototype, "cloudProviderSettings", void 0);
|
|
37
|
+
class CreateMachineResourceBatchRequest extends ludeo_event_1.LudeoEvent {
|
|
38
|
+
constructor(payload, context) {
|
|
39
|
+
super(CreateMachineResourceBatchRequest.EVENT_NAME);
|
|
40
|
+
this.payload = payload;
|
|
41
|
+
this.context = context;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.CreateMachineResourceBatchRequest = CreateMachineResourceBatchRequest;
|
|
45
|
+
CreateMachineResourceBatchRequest.EVENT_NAME = "cloud-pools.create-machine-resource-batch-request";
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.CloudResourceContext),
|
|
48
|
+
__metadata("design:type", contexts_1.CloudResourceContext)
|
|
49
|
+
], CreateMachineResourceBatchRequest.prototype, "context", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => CreateMachineResourceBatchRequestPayload),
|
|
52
|
+
__metadata("design:type", CreateMachineResourceBatchRequestPayload)
|
|
53
|
+
], CreateMachineResourceBatchRequest.prototype, "payload", void 0);
|
|
54
|
+
//# sourceMappingURL=create-machine-resource-batch-request.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-machine-resource-batch-request.js","sourceRoot":"","sources":["../../../src/v3/events/create-machine-resource-batch-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA0D;AAE1D,0CAAmD;AACnD,yDAAqD;AACrD,oGAAqF;AACrF,oCAIkB;AAElB,MAAa,wCAAwC;CAYpD;AAZD,4FAYC;AAVC;IADC,IAAA,yBAAO,GAAE;;oFACmB;AAG7B;IADC,IAAA,wBAAM,GAAE;;+EACa;AAGtB;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;+EACO;AAG7B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,2BAAmB,CAAC;;uFACD;AAG/C,MAAa,iCAAkC,SAAQ,wBAAU;IAI/D,YACE,OAAiD,EACjD,OAA6B;QAE7B,KAAK,CAAC,iCAAiC,CAAC,UAAU,CAAC,CAAC;QACpD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAXH,8EAkBC;AAjBiB,4CAAU,GACxB,mDAAmD,CAAC;AAYtD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;kEAAC;AAG9B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,wCAAwC,CAAC;8BAC1D,wCAAwC;kEAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { CloudResourceContext } from "../contexts";
|
|
2
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
3
|
+
import { CloudProvider, CloudProviderSettings } from "../types";
|
|
4
|
+
export declare class CreateMachineResourceRequestPayload {
|
|
5
|
+
machineResourceId: string;
|
|
6
|
+
machinePoolId: string;
|
|
7
|
+
cloudProvider: CloudProvider;
|
|
8
|
+
cloudProviderSettings: CloudProviderSettings;
|
|
9
|
+
}
|
|
10
|
+
export declare class CreateMachineResourceRequest extends LudeoEvent {
|
|
11
|
+
static readonly EVENT_NAME = "cloud-pools.create-machine-resource-request";
|
|
12
|
+
constructor(payload: CreateMachineResourceRequestPayload, context: CloudResourceContext);
|
|
13
|
+
context: CloudResourceContext;
|
|
14
|
+
payload: CreateMachineResourceRequestPayload;
|
|
15
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
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.CreateMachineResourceRequest = exports.CreateMachineResourceRequestPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const contexts_1 = require("../contexts");
|
|
15
|
+
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
16
|
+
const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
17
|
+
const types_1 = require("../types");
|
|
18
|
+
class CreateMachineResourceRequestPayload {
|
|
19
|
+
}
|
|
20
|
+
exports.CreateMachineResourceRequestPayload = CreateMachineResourceRequestPayload;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsUUID)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], CreateMachineResourceRequestPayload.prototype, "machineResourceId", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsUUID)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], CreateMachineResourceRequestPayload.prototype, "machinePoolId", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_validator_1.IsEnum)(types_1.CloudProvider),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], CreateMachineResourceRequestPayload.prototype, "cloudProvider", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.AWSProviderSettings),
|
|
35
|
+
__metadata("design:type", Object)
|
|
36
|
+
], CreateMachineResourceRequestPayload.prototype, "cloudProviderSettings", void 0);
|
|
37
|
+
class CreateMachineResourceRequest extends ludeo_event_1.LudeoEvent {
|
|
38
|
+
constructor(payload, context) {
|
|
39
|
+
super(CreateMachineResourceRequest.EVENT_NAME);
|
|
40
|
+
this.payload = payload;
|
|
41
|
+
this.context = context;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.CreateMachineResourceRequest = CreateMachineResourceRequest;
|
|
45
|
+
CreateMachineResourceRequest.EVENT_NAME = "cloud-pools.create-machine-resource-request";
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.CloudResourceContext),
|
|
48
|
+
__metadata("design:type", contexts_1.CloudResourceContext)
|
|
49
|
+
], CreateMachineResourceRequest.prototype, "context", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => CreateMachineResourceRequestPayload),
|
|
52
|
+
__metadata("design:type", CreateMachineResourceRequestPayload)
|
|
53
|
+
], CreateMachineResourceRequest.prototype, "payload", void 0);
|
|
54
|
+
//# sourceMappingURL=create-machine-resource-request.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-machine-resource-request.js","sourceRoot":"","sources":["../../../src/v3/events/create-machine-resource-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiD;AAEjD,0CAAmD;AACnD,yDAAqD;AACrD,oGAAqF;AACrF,oCAIkB;AAElB,MAAa,mCAAmC;CAY/C;AAZD,kFAYC;AAVC;IADC,IAAA,wBAAM,GAAE;;8EACiB;AAG1B;IADC,IAAA,wBAAM,GAAE;;0EACa;AAGtB;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;0EACO;AAG7B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,2BAAmB,CAAC;;kFACD;AAG/C,MAAa,4BAA6B,SAAQ,wBAAU;IAG1D,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;;AAVH,oEAiBC;AAhBiB,uCAAU,GAAG,6CAA6C,CAAC;AAY3E;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;6DAAC;AAG9B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,mCAAmC,CAAC;8BACrD,mCAAmC;6DAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { PoolContext } from "../../v2/contexts";
|
|
2
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
3
|
+
export declare class CreateMachinesRequestPayload {
|
|
4
|
+
poolId: string;
|
|
5
|
+
quantity: number;
|
|
6
|
+
}
|
|
7
|
+
export declare class CreateMachinesRequest extends LudeoEvent {
|
|
8
|
+
static readonly EVENT_NAME = "cloud-pools.create-machines-request";
|
|
9
|
+
constructor(payload: CreateMachinesRequestPayload, context: PoolContext);
|
|
10
|
+
context: PoolContext;
|
|
11
|
+
payload: CreateMachinesRequestPayload;
|
|
12
|
+
}
|