@ludeo/cloud-common 1.2.85 → 1.2.86-ygarbage2
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/build-created.d.ts +2 -1
- package/dist/v4/events/build-created.js +4 -4
- package/dist/v4/events/build-created.js.map +1 -1
- package/dist/v4/events/build-creation-failed.d.ts +12 -0
- package/dist/v4/events/build-creation-failed.js +46 -0
- package/dist/v4/events/build-creation-failed.js.map +1 -0
- package/dist/v4/events/build-uploaded.d.ts +12 -0
- package/dist/v4/events/build-uploaded.js +45 -0
- package/dist/v4/events/build-uploaded.js.map +1 -0
- package/dist/v4/events/create-build.d.ts +15 -0
- package/dist/v4/events/create-build.js +51 -0
- package/dist/v4/events/create-build.js.map +1 -0
- package/dist/v4/events/index.d.ts +4 -0
- package/dist/v4/events/index.js +4 -0
- package/dist/v4/events/index.js.map +1 -1
- package/dist/v4/events/machine-resource-created-response.d.ts +3 -1
- package/dist/v4/events/machine-resource-created-response.js +4 -0
- package/dist/v4/events/machine-resource-created-response.js.map +1 -1
- package/dist/v4/events/machine-resource-termination-failed-response.d.ts +16 -0
- package/dist/v4/events/machine-resource-termination-failed-response.js +58 -0
- package/dist/v4/events/machine-resource-termination-failed-response.js.map +1 -0
- package/dist/v4/events/terminate-machine-resource-request.d.ts +3 -1
- package/dist/v4/events/terminate-machine-resource-request.js +4 -0
- package/dist/v4/events/terminate-machine-resource-request.js.map +1 -1
- package/dist/v4/types/build.d.ts +3 -3
- package/dist/v4/types/build.js +30 -0
- package/dist/v4/types/build.js.map +1 -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/machine-provider-settings.d.ts +2 -0
- package/dist/v4/types/cloud/machine-provider-settings.js +3 -0
- package/dist/v4/types/cloud/machine-provider-settings.js.map +1 -0
- package/dist/v4/types/cloud/mock/index.d.ts +1 -0
- package/dist/v4/types/cloud/mock/index.js +1 -0
- package/dist/v4/types/cloud/mock/index.js.map +1 -1
- package/dist/v4/types/cloud/mock/machine-provider-settings.d.ts +3 -0
- package/dist/v4/types/cloud/mock/machine-provider-settings.js +21 -0
- package/dist/v4/types/cloud/mock/machine-provider-settings.js.map +1 -0
- package/dist/v4/types/pools/resource/machine.d.ts +2 -0
- package/dist/v4/types/pools/resource/machine.js +4 -0
- package/dist/v4/types/pools/resource/machine.js.map +1 -1
- package/package.json +1 -1
- package/src/v4/events/build-created.ts +3 -3
- package/src/v4/events/build-creation-failed.ts +29 -0
- package/src/v4/events/build-uploaded.ts +28 -0
- package/src/v4/events/create-build.ts +33 -0
- package/src/v4/events/index.ts +4 -0
- package/src/v4/events/machine-resource-created-response.ts +8 -2
- package/src/v4/events/machine-resource-termination-failed-response.ts +47 -0
- package/src/v4/events/terminate-machine-resource-request.ts +7 -2
- package/src/v4/types/build.ts +15 -3
- package/src/v4/types/cloud/index.ts +1 -0
- package/src/v4/types/cloud/machine-provider-settings.ts +3 -0
- package/src/v4/types/cloud/mock/index.ts +1 -0
- package/src/v4/types/cloud/mock/machine-provider-settings.ts +6 -0
- package/src/v4/types/pools/resource/machine.ts +4 -0
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { BuildContext } from "../contexts/build-context";
|
|
2
2
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
3
|
+
import { CloudBuild } from "../types";
|
|
3
4
|
export declare class BuildCreatedPayload {
|
|
4
|
-
|
|
5
|
+
build: CloudBuild;
|
|
5
6
|
}
|
|
6
7
|
export declare class BuildCreated extends LudeoEvent {
|
|
7
8
|
static readonly EVENT_NAME = "cloud-builds.build-created";
|
|
@@ -10,17 +10,17 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.BuildCreated = exports.BuildCreatedPayload = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
13
|
const build_context_1 = require("../contexts/build-context");
|
|
15
14
|
const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
16
15
|
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
16
|
+
const types_1 = require("../types");
|
|
17
17
|
class BuildCreatedPayload {
|
|
18
18
|
}
|
|
19
19
|
exports.BuildCreatedPayload = BuildCreatedPayload;
|
|
20
20
|
__decorate([
|
|
21
|
-
(0,
|
|
22
|
-
__metadata("design:type",
|
|
23
|
-
], BuildCreatedPayload.prototype, "
|
|
21
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.CloudBuild),
|
|
22
|
+
__metadata("design:type", types_1.CloudBuild)
|
|
23
|
+
], BuildCreatedPayload.prototype, "build", void 0);
|
|
24
24
|
class BuildCreated extends ludeo_event_1.LudeoEvent {
|
|
25
25
|
constructor(payload, context) {
|
|
26
26
|
super(BuildCreated.EVENT_NAME);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-created.js","sourceRoot":"","sources":["../../../src/v4/events/build-created.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"build-created.js","sourceRoot":"","sources":["../../../src/v4/events/build-created.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6DAAyD;AACzD,oGAAqF;AACrF,yDAAqD;AACrD,oCAAsC;AAEtC,MAAa,mBAAmB;CAG/B;AAHD,kDAGC;AADC;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,kBAAU,CAAC;8BAC9B,kBAAU;kDAAC;AAGpB,MAAa,YAAa,SAAQ,wBAAU;IAG1C,YAAY,OAA4B,EAAE,OAAqB;QAC7D,KAAK,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC;QAC/B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,oCAcC;AAbiB,uBAAU,GAAG,4BAA4B,CAAC;AAS1D;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAAY,CAAC;8BAC9B,4BAAY;6CAAC;AAGtB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,mBAAmB,CAAC;8BACrC,mBAAmB;6CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BuildContext } from "../contexts/build-context";
|
|
2
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
3
|
+
export declare class BuildCreationFailedPayload {
|
|
4
|
+
buildId: string;
|
|
5
|
+
error?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare class BuildCreationFailed extends LudeoEvent {
|
|
8
|
+
static readonly EVENT_NAME = "cloud-builds.build-creation-failed";
|
|
9
|
+
constructor(payload: BuildCreationFailedPayload, context: BuildContext);
|
|
10
|
+
context: BuildContext;
|
|
11
|
+
payload: BuildCreationFailedPayload;
|
|
12
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
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.BuildCreationFailed = exports.BuildCreationFailedPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const build_context_1 = require("../contexts/build-context");
|
|
15
|
+
const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
16
|
+
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
17
|
+
class BuildCreationFailedPayload {
|
|
18
|
+
}
|
|
19
|
+
exports.BuildCreationFailedPayload = BuildCreationFailedPayload;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_validator_1.IsUUID)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], BuildCreationFailedPayload.prototype, "buildId", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsString)(),
|
|
26
|
+
(0, class_validator_1.IsOptional)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], BuildCreationFailedPayload.prototype, "error", void 0);
|
|
29
|
+
class BuildCreationFailed extends ludeo_event_1.LudeoEvent {
|
|
30
|
+
constructor(payload, context) {
|
|
31
|
+
super(BuildCreationFailed.EVENT_NAME);
|
|
32
|
+
this.payload = payload;
|
|
33
|
+
this.context = context;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.BuildCreationFailed = BuildCreationFailed;
|
|
37
|
+
BuildCreationFailed.EVENT_NAME = "cloud-builds.build-creation-failed";
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => build_context_1.BuildContext),
|
|
40
|
+
__metadata("design:type", build_context_1.BuildContext)
|
|
41
|
+
], BuildCreationFailed.prototype, "context", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => BuildCreationFailedPayload),
|
|
44
|
+
__metadata("design:type", BuildCreationFailedPayload)
|
|
45
|
+
], BuildCreationFailed.prototype, "payload", void 0);
|
|
46
|
+
//# sourceMappingURL=build-creation-failed.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build-creation-failed.js","sourceRoot":"","sources":["../../../src/v4/events/build-creation-failed.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAC/D,6DAAyD;AACzD,oGAAqF;AACrF,yDAAqD;AAErD,MAAa,0BAA0B;CAOtC;AAPD,gEAOC;AALC;IADC,IAAA,wBAAM,GAAE;;2DACO;AAIhB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;yDACE;AAGjB,MAAa,mBAAoB,SAAQ,wBAAU;IAGjD,YAAY,OAAmC,EAAE,OAAqB;QACpE,KAAK,CAAC,mBAAmB,CAAC,UAAU,CAAC,CAAC;QACtC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,kDAcC;AAbiB,8BAAU,GAAG,oCAAoC,CAAC;AASlE;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAAY,CAAC;8BAC9B,4BAAY;oDAAC;AAGtB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,0BAA0B,CAAC;8BAC5C,0BAA0B;oDAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BuildContext } from "../contexts/build-context";
|
|
2
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
3
|
+
export declare class BuildUploadedPayload {
|
|
4
|
+
buildId: string;
|
|
5
|
+
centralizedPath: string;
|
|
6
|
+
}
|
|
7
|
+
export declare class BuildUploaded extends LudeoEvent {
|
|
8
|
+
static readonly EVENT_NAME = "cloud-builds.build-uploaded";
|
|
9
|
+
constructor(payload: BuildUploadedPayload, context: BuildContext);
|
|
10
|
+
context: BuildContext;
|
|
11
|
+
payload: BuildUploadedPayload;
|
|
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.BuildUploaded = exports.BuildUploadedPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const build_context_1 = require("../contexts/build-context");
|
|
15
|
+
const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
16
|
+
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
17
|
+
class BuildUploadedPayload {
|
|
18
|
+
}
|
|
19
|
+
exports.BuildUploadedPayload = BuildUploadedPayload;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_validator_1.IsUUID)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], BuildUploadedPayload.prototype, "buildId", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsString)(),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], BuildUploadedPayload.prototype, "centralizedPath", void 0);
|
|
28
|
+
class BuildUploaded extends ludeo_event_1.LudeoEvent {
|
|
29
|
+
constructor(payload, context) {
|
|
30
|
+
super(BuildUploaded.EVENT_NAME);
|
|
31
|
+
this.payload = payload;
|
|
32
|
+
this.context = context;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
exports.BuildUploaded = BuildUploaded;
|
|
36
|
+
BuildUploaded.EVENT_NAME = "cloud-builds.build-uploaded";
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => build_context_1.BuildContext),
|
|
39
|
+
__metadata("design:type", build_context_1.BuildContext)
|
|
40
|
+
], BuildUploaded.prototype, "context", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => BuildUploadedPayload),
|
|
43
|
+
__metadata("design:type", BuildUploadedPayload)
|
|
44
|
+
], BuildUploaded.prototype, "payload", void 0);
|
|
45
|
+
//# sourceMappingURL=build-uploaded.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build-uploaded.js","sourceRoot":"","sources":["../../../src/v4/events/build-uploaded.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmD;AACnD,6DAAyD;AACzD,oGAAqF;AACrF,yDAAqD;AAErD,MAAa,oBAAoB;CAMhC;AAND,oDAMC;AAJC;IADC,IAAA,wBAAM,GAAE;;qDACO;AAGhB;IADC,IAAA,0BAAQ,GAAE;;6DACa;AAG1B,MAAa,aAAc,SAAQ,wBAAU;IAG3C,YAAY,OAA6B,EAAE,OAAqB;QAC9D,KAAK,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;QAChC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,sCAcC;AAbiB,wBAAU,GAAG,6BAA6B,CAAC;AAS3D;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAAY,CAAC;8BAC9B,4BAAY;8CAAC;AAGtB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,oBAAoB,CAAC;8BACtC,oBAAoB;8CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BuildContext } from "../contexts/build-context";
|
|
2
|
+
import { BuildMetadata } from "../types/build";
|
|
3
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
4
|
+
import { BuildCreationInput } from "../types/build";
|
|
5
|
+
export declare class CreateBuildPayload {
|
|
6
|
+
buildId: string;
|
|
7
|
+
meta: BuildMetadata;
|
|
8
|
+
creationInput: BuildCreationInput;
|
|
9
|
+
}
|
|
10
|
+
export declare class CreateBuild extends LudeoEvent {
|
|
11
|
+
static readonly EVENT_NAME = "cloud-builds.create-build";
|
|
12
|
+
constructor(payload: CreateBuildPayload, context: BuildContext);
|
|
13
|
+
context: BuildContext;
|
|
14
|
+
payload: CreateBuildPayload;
|
|
15
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
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.CreateBuild = exports.CreateBuildPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const build_context_1 = require("../contexts/build-context");
|
|
15
|
+
const build_1 = require("../types/build");
|
|
16
|
+
const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
17
|
+
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
18
|
+
const build_2 = require("../types/build");
|
|
19
|
+
class CreateBuildPayload {
|
|
20
|
+
}
|
|
21
|
+
exports.CreateBuildPayload = CreateBuildPayload;
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsString)(),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], CreateBuildPayload.prototype, "buildId", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => build_1.BuildMetadata),
|
|
28
|
+
__metadata("design:type", build_1.BuildMetadata)
|
|
29
|
+
], CreateBuildPayload.prototype, "meta", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => build_2.BuildCreationInput),
|
|
32
|
+
__metadata("design:type", build_2.BuildCreationInput)
|
|
33
|
+
], CreateBuildPayload.prototype, "creationInput", void 0);
|
|
34
|
+
class CreateBuild extends ludeo_event_1.LudeoEvent {
|
|
35
|
+
constructor(payload, context) {
|
|
36
|
+
super(CreateBuild.EVENT_NAME);
|
|
37
|
+
this.payload = payload;
|
|
38
|
+
this.context = context;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
exports.CreateBuild = CreateBuild;
|
|
42
|
+
CreateBuild.EVENT_NAME = "cloud-builds.create-build";
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => build_context_1.BuildContext),
|
|
45
|
+
__metadata("design:type", build_context_1.BuildContext)
|
|
46
|
+
], CreateBuild.prototype, "context", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => CreateBuildPayload),
|
|
49
|
+
__metadata("design:type", CreateBuildPayload)
|
|
50
|
+
], CreateBuild.prototype, "payload", void 0);
|
|
51
|
+
//# sourceMappingURL=create-build.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-build.js","sourceRoot":"","sources":["../../../src/v4/events/create-build.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA2C;AAC3C,6DAAyD;AACzD,0CAA+C;AAC/C,oGAAqF;AACrF,yDAAqD;AACrD,0CAAoD;AAEpD,MAAa,kBAAkB;CAS9B;AATD,gDASC;AAPC;IADC,IAAA,0BAAQ,GAAE;;mDACK;AAGhB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,qBAAa,CAAC;8BAClC,qBAAa;gDAAC;AAGpB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,0BAAkB,CAAC;8BAC9B,0BAAkB;yDAAC;AAGpC,MAAa,WAAY,SAAQ,wBAAU;IAGzC,YAAY,OAA2B,EAAE,OAAqB;QAC5D,KAAK,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;QAC9B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,kCAcC;AAbiB,sBAAU,GAAG,2BAA2B,CAAC;AASzD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAAY,CAAC;8BAC9B,4BAAY;4CAAC;AAGtB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,kBAAkB,CAAC;8BACpC,kBAAkB;4CAAC"}
|
|
@@ -116,5 +116,9 @@ 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 "./build-uploaded";
|
|
120
|
+
export * from "./create-build";
|
|
121
|
+
export * from "./build-creation-failed";
|
|
119
122
|
export * from "./pool-updated.event";
|
|
120
123
|
export * from "./pool-created.event";
|
|
124
|
+
export * from "./machine-resource-termination-failed-response";
|
package/dist/v4/events/index.js
CHANGED
|
@@ -132,6 +132,10 @@ __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("./build-uploaded"), exports);
|
|
136
|
+
__exportStar(require("./create-build"), exports);
|
|
137
|
+
__exportStar(require("./build-creation-failed"), exports);
|
|
135
138
|
__exportStar(require("./pool-updated.event"), exports);
|
|
136
139
|
__exportStar(require("./pool-created.event"), exports);
|
|
140
|
+
__exportStar(require("./machine-resource-termination-failed-response"), exports);
|
|
137
141
|
//# 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;AAC/C,uDAAqC;AACrC,uDAAqC"}
|
|
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,mDAAiC;AACjC,iDAA+B;AAC/B,0DAAwC;AACxC,uDAAqC;AACrC,uDAAqC;AACrC,iFAA+D"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { CloudResourceContext } from "../contexts";
|
|
2
2
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
3
|
-
|
|
3
|
+
import { MachineProviderSettings } from "../types/cloud/machine-provider-settings";
|
|
4
|
+
export declare class MachineResourceCreatedResponsePayload<T extends MachineProviderSettings = MachineProviderSettings> {
|
|
4
5
|
machineResourceId: string;
|
|
5
6
|
machinePoolId: string;
|
|
7
|
+
machineProviderSettings?: T;
|
|
6
8
|
}
|
|
7
9
|
export declare class MachineResourceCreatedResponse extends LudeoEvent {
|
|
8
10
|
static readonly EVENT_NAME = "cloud-resources.machine-resource-created-response";
|
|
@@ -25,6 +25,10 @@ __decorate([
|
|
|
25
25
|
(0, class_validator_1.IsUUID)(),
|
|
26
26
|
__metadata("design:type", String)
|
|
27
27
|
], MachineResourceCreatedResponsePayload.prototype, "machinePoolId", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_validator_1.IsOptional)(),
|
|
30
|
+
__metadata("design:type", Object)
|
|
31
|
+
], MachineResourceCreatedResponsePayload.prototype, "machineProviderSettings", void 0);
|
|
28
32
|
class MachineResourceCreatedResponse extends ludeo_event_1.LudeoEvent {
|
|
29
33
|
constructor(payload, context) {
|
|
30
34
|
super(MachineResourceCreatedResponse.EVENT_NAME);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"machine-resource-created-response.js","sourceRoot":"","sources":["../../../src/v4/events/machine-resource-created-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"machine-resource-created-response.js","sourceRoot":"","sources":["../../../src/v4/events/machine-resource-created-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAqD;AAErD,0CAAmD;AACnD,yDAAqD;AACrD,oGAAqF;AAGrF,MAAa,qCAAqC;CAWjD;AAXD,sFAWC;AAPC;IADC,IAAA,wBAAM,GAAE;;gFACiB;AAG1B;IADC,IAAA,wBAAM,GAAE;;4EACa;AAGtB;IADC,IAAA,4BAAU,GAAE;;sFACe;AAG9B,MAAa,8BAA+B,SAAQ,wBAAU;IAI5D,YACE,OAA8C,EAC9C,OAA6B;QAE7B,KAAK,CAAC,8BAA8B,CAAC,UAAU,CAAC,CAAC;QACjD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAXH,wEAkBC;AAjBiB,yCAAU,GACxB,mDAAmD,CAAC;AAYtD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;+DAAC;AAG9B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,qCAAqC,CAAC;8BACvD,qCAAqC;+DAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { CloudResourceContext } from "../contexts";
|
|
2
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
3
|
+
import { CloudProvider, CloudProviderSettings } from "../types";
|
|
4
|
+
export declare class MachineResourceTerminationFailedResponsePayload {
|
|
5
|
+
machineResourceId: string;
|
|
6
|
+
machinePoolId: string;
|
|
7
|
+
cloudProvider: CloudProvider;
|
|
8
|
+
cloudProviderSettings: CloudProviderSettings;
|
|
9
|
+
errorMessage: string;
|
|
10
|
+
}
|
|
11
|
+
export declare class MachineResourceTerminationFailedResponse extends LudeoEvent {
|
|
12
|
+
static readonly EVENT_NAME = "cloud-pools.machine-resource-termination-failed-response";
|
|
13
|
+
constructor(payload: MachineResourceTerminationFailedResponsePayload, context: CloudResourceContext);
|
|
14
|
+
context: CloudResourceContext;
|
|
15
|
+
payload: MachineResourceTerminationFailedResponsePayload;
|
|
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.MachineResourceTerminationFailedResponse = exports.MachineResourceTerminationFailedResponsePayload = 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 MachineResourceTerminationFailedResponsePayload {
|
|
19
|
+
}
|
|
20
|
+
exports.MachineResourceTerminationFailedResponsePayload = MachineResourceTerminationFailedResponsePayload;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsUUID)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], MachineResourceTerminationFailedResponsePayload.prototype, "machineResourceId", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsUUID)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], MachineResourceTerminationFailedResponsePayload.prototype, "machinePoolId", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_validator_1.IsEnum)(types_1.CloudProvider),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], MachineResourceTerminationFailedResponsePayload.prototype, "cloudProvider", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.AWSProviderSettings),
|
|
35
|
+
__metadata("design:type", Object)
|
|
36
|
+
], MachineResourceTerminationFailedResponsePayload.prototype, "cloudProviderSettings", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_validator_1.IsString)(),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], MachineResourceTerminationFailedResponsePayload.prototype, "errorMessage", void 0);
|
|
41
|
+
class MachineResourceTerminationFailedResponse extends ludeo_event_1.LudeoEvent {
|
|
42
|
+
constructor(payload, context) {
|
|
43
|
+
super(MachineResourceTerminationFailedResponse.EVENT_NAME);
|
|
44
|
+
this.payload = payload;
|
|
45
|
+
this.context = context;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
exports.MachineResourceTerminationFailedResponse = MachineResourceTerminationFailedResponse;
|
|
49
|
+
MachineResourceTerminationFailedResponse.EVENT_NAME = "cloud-pools.machine-resource-termination-failed-response";
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.CloudResourceContext),
|
|
52
|
+
__metadata("design:type", contexts_1.CloudResourceContext)
|
|
53
|
+
], MachineResourceTerminationFailedResponse.prototype, "context", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => MachineResourceTerminationFailedResponsePayload),
|
|
56
|
+
__metadata("design:type", MachineResourceTerminationFailedResponsePayload)
|
|
57
|
+
], MachineResourceTerminationFailedResponse.prototype, "payload", void 0);
|
|
58
|
+
//# sourceMappingURL=machine-resource-termination-failed-response.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"machine-resource-termination-failed-response.js","sourceRoot":"","sources":["../../../src/v4/events/machine-resource-termination-failed-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAoE;AAEpE,0CAAmD;AACnD,yDAAqD;AACrD,oGAAqF;AACrF,oCAIkB;AAElB,MAAa,+CAA+C;CAe3D;AAfD,0GAeC;AAbC;IADC,IAAA,wBAAM,GAAE;;0FACiB;AAG1B;IADC,IAAA,wBAAM,GAAE;;sFACa;AAGtB;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;sFACO;AAG7B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,2BAAmB,CAAC;;8FACD;AAG7C;IADC,IAAA,0BAAQ,GAAE;;qFACU;AAGvB,MAAa,wCAAyC,SAAQ,wBAAU;IAItE,YACE,OAAwD,EACxD,OAA6B;QAE7B,KAAK,CAAC,wCAAwC,CAAC,UAAU,CAAC,CAAC;QAC3D,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAXH,4FAkBC;AAjBiB,mDAAU,GACxB,0DAA0D,CAAC;AAY7D;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;yEAAC;AAG9B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+CAA+C,CAAC;8BACjE,+CAA+C;yEAAC"}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { CloudResourceContext } from "../contexts";
|
|
2
2
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
3
3
|
import { CloudProvider, CloudProviderSettings } from "../types";
|
|
4
|
-
|
|
4
|
+
import { MachineProviderSettings } from "../types/cloud/machine-provider-settings";
|
|
5
|
+
export declare class TerminateMachineResourceRequestPayload<T extends CloudProviderSettings = CloudProviderSettings, K extends MachineProviderSettings = MachineProviderSettings> {
|
|
5
6
|
machineResourceId: string;
|
|
6
7
|
machinePoolId: string;
|
|
7
8
|
cloudProvider: CloudProvider;
|
|
8
9
|
cloudProviderSettings: T;
|
|
10
|
+
providerSettings?: K;
|
|
9
11
|
}
|
|
10
12
|
export declare class TerminateMachineResourceRequest extends LudeoEvent {
|
|
11
13
|
static readonly EVENT_NAME = "cloud-pools.terminate-machine-resource-request";
|
|
@@ -34,6 +34,10 @@ __decorate([
|
|
|
34
34
|
(0, validate_nested_type_decorator_1.ValidateNestedType)(types_1.getProviderSettingsType),
|
|
35
35
|
__metadata("design:type", Object)
|
|
36
36
|
], TerminateMachineResourceRequestPayload.prototype, "cloudProviderSettings", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_validator_1.IsOptional)(),
|
|
39
|
+
__metadata("design:type", Object)
|
|
40
|
+
], TerminateMachineResourceRequestPayload.prototype, "providerSettings", void 0);
|
|
37
41
|
class TerminateMachineResourceRequest extends ludeo_event_1.LudeoEvent {
|
|
38
42
|
constructor(payload, context) {
|
|
39
43
|
super(TerminateMachineResourceRequest.EVENT_NAME);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"terminate-machine-resource-request.js","sourceRoot":"","sources":["../../../src/v4/events/terminate-machine-resource-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"terminate-machine-resource-request.js","sourceRoot":"","sources":["../../../src/v4/events/terminate-machine-resource-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA6D;AAE7D,0CAAmD;AACnD,yDAAqD;AACrD,oGAAqF;AACrF,oCAIkB;AAGlB,MAAa,sCAAsC;CAkBlD;AAlBD,wFAkBC;AAbC;IADC,IAAA,wBAAM,GAAE;;iFACiB;AAG1B;IADC,IAAA,wBAAM,GAAE;;6EACa;AAGtB;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;6EACO;AAG7B;IADC,IAAA,mDAAkB,EAAC,+BAAuB,CAAC;;qFACnB;AAGzB;IADC,IAAA,4BAAU,GAAE;;gFACQ;AAGvB,MAAa,+BAAgC,SAAQ,wBAAU;IAG7D,YACE,OAA+C,EAC/C,OAA6B;QAE7B,KAAK,CAAC,+BAA+B,CAAC,UAAU,CAAC,CAAC;QAClD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,0EAiBC;AAhBiB,0CAAU,GAAG,gDAAgD,CAAC;AAY9E;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;gEAAC;AAG9B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,sCAAsC,CAAC;8BACxD,sCAAsC;gEAAC"}
|
package/dist/v4/types/build.d.ts
CHANGED
|
@@ -19,9 +19,9 @@ export declare enum ArtifactStatus {
|
|
|
19
19
|
FAILED = "failed"
|
|
20
20
|
}
|
|
21
21
|
export declare class BuildMetadata {
|
|
22
|
-
studioId
|
|
23
|
-
gameId
|
|
24
|
-
versionId
|
|
22
|
+
studioId?: string;
|
|
23
|
+
gameId?: string;
|
|
24
|
+
versionId?: string;
|
|
25
25
|
friendlyName?: string;
|
|
26
26
|
}
|
|
27
27
|
export declare class AwsArtifactData {
|
package/dist/v4/types/build.js
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
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
|
+
};
|
|
2
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
12
|
exports.RuntimeEnvironment = exports.BuildCreationInput = exports.CloudBuild = exports.BuildProviderSettings = exports.AwsArtifacts = exports.AwsDistributions = exports.AwsDistributionData = exports.GamecastRuntimeEnvironment = exports.AwsArtifactData = exports.BuildMetadata = exports.ArtifactStatus = exports.DistributionStatus = exports.BuildStatus = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
4
14
|
const cloud_1 = require("./cloud");
|
|
5
15
|
var BuildStatus;
|
|
6
16
|
(function (BuildStatus) {
|
|
@@ -27,6 +37,26 @@ var ArtifactStatus;
|
|
|
27
37
|
class BuildMetadata {
|
|
28
38
|
}
|
|
29
39
|
exports.BuildMetadata = BuildMetadata;
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, class_validator_1.IsString)(),
|
|
42
|
+
(0, class_validator_1.IsOptional)(),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], BuildMetadata.prototype, "studioId", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, class_validator_1.IsString)(),
|
|
47
|
+
(0, class_validator_1.IsOptional)(),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], BuildMetadata.prototype, "gameId", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, class_validator_1.IsString)(),
|
|
52
|
+
(0, class_validator_1.IsOptional)(),
|
|
53
|
+
__metadata("design:type", String)
|
|
54
|
+
], BuildMetadata.prototype, "versionId", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, class_validator_1.IsString)(),
|
|
57
|
+
(0, class_validator_1.IsOptional)(),
|
|
58
|
+
__metadata("design:type", String)
|
|
59
|
+
], BuildMetadata.prototype, "friendlyName", void 0);
|
|
30
60
|
class AwsArtifactData {
|
|
31
61
|
}
|
|
32
62
|
exports.AwsArtifactData = AwsArtifactData;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build.js","sourceRoot":"","sources":["../../../src/v4/types/build.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"build.js","sourceRoot":"","sources":["../../../src/v4/types/build.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AACvD,mCAAwC;AAExC,IAAY,WASX;AATD,WAAY,WAAW;IACrB,8BAAe,CAAA;IACf,oCAAqB,CAAA;IACrB,4CAA6B,CAAA;IAC7B,0CAA2B,CAAA;IAC3B,gCAAiB,CAAA;IACjB,wDAAyC,CAAA;IACzC,sDAAuC,CAAA;IACvC,oCAAqB,CAAA;AACvB,CAAC,EATW,WAAW,2BAAX,WAAW,QAStB;AAED,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC5B,mDAA6B,CAAA;IAC7B,iDAA2B,CAAA;AAC7B,CAAC,EAHW,kBAAkB,kCAAlB,kBAAkB,QAG7B;AAED,IAAY,cAIX;AAJD,WAAY,cAAc;IACxB,iCAAe,CAAA;IACf,qCAAmB,CAAA;IACnB,mCAAiB,CAAA;AACnB,CAAC,EAJW,cAAc,8BAAd,cAAc,QAIzB;AAED,MAAa,aAAa;CAgBzB;AAhBD,sCAgBC;AAbC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;+CACK;AAIlB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;6CACG;AAIhB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;gDACM;AAInB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;mDACS;AAGxB,MAAa,eAAe;CAQ3B;AARD,0CAQC;AAED,MAAa,0BAA0B;CAGtC;AAHD,gEAGC;AAED,MAAa,mBAAmB;CAE/B;AAFD,kDAEC;AAED,MAAa,gBAAgB;CAE5B;AAFD,4CAEC;AAID,MAAa,YAAY;CAExB;AAFD,oCAEC;AAID,MAAa,qBAAqB;CAMjC;AAND,sDAMC;AALE,qBAAa,CAAC,GAAG;AAOpB,MAAa,UAAU;CAStB;AATD,gCASC;AAED,MAAa,kBAAkB;CAM9B;AAND,gDAMC;AAED,IAAY,kBAIX;AAJD,WAAY,kBAAkB;IAC5B,yCAAmB,CAAA;IACnB,kDAA4B,CAAA;IAC5B,gDAA0B,CAAA;AAC5B,CAAC,EAJW,kBAAkB,kCAAlB,kBAAkB,QAI7B"}
|
|
@@ -24,4 +24,5 @@ __exportStar(require("./provider"), exports);
|
|
|
24
24
|
__exportStar(require("./resource-provider-settings"), exports);
|
|
25
25
|
__exportStar(require("./session"), exports);
|
|
26
26
|
__exportStar(require("./mock"), exports);
|
|
27
|
+
__exportStar(require("./machine-provider-settings"), exports);
|
|
27
28
|
//# 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;AAC1B,yCAAuB"}
|
|
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;AACvB,8DAA4C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"machine-provider-settings.js","sourceRoot":"","sources":["../../../../src/v4/types/cloud/machine-provider-settings.ts"],"names":[],"mappings":""}
|
|
@@ -19,4 +19,5 @@ __exportStar(require("./provider-settings"), exports);
|
|
|
19
19
|
__exportStar(require("./request-data"), exports);
|
|
20
20
|
__exportStar(require("./game-creation-response"), exports);
|
|
21
21
|
__exportStar(require("./allocation-data"), exports);
|
|
22
|
+
__exportStar(require("./machine-provider-settings"), exports);
|
|
22
23
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +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"}
|
|
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;AAClC,8DAA4C"}
|
|
@@ -0,0 +1,21 @@
|
|
|
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.MockMachineProviderSettings = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class MockMachineProviderSettings {
|
|
15
|
+
}
|
|
16
|
+
exports.MockMachineProviderSettings = MockMachineProviderSettings;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsString)(),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], MockMachineProviderSettings.prototype, "machineId", void 0);
|
|
21
|
+
//# sourceMappingURL=machine-provider-settings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"machine-provider-settings.js","sourceRoot":"","sources":["../../../../../src/v4/types/cloud/mock/machine-provider-settings.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA2C;AAE3C,MAAa,2BAA2B;CAGvC;AAHD,kEAGC;AADC;IADC,IAAA,0BAAQ,GAAE;;8DACO"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { BaseCloudResource } from "./base";
|
|
2
|
+
import { MachineProviderSettings } from "../../cloud";
|
|
2
3
|
export declare class MachineCloudResource extends BaseCloudResource {
|
|
3
4
|
gameResourceId?: string;
|
|
4
5
|
gamePoolId?: string;
|
|
6
|
+
providerSettings?: MachineProviderSettings;
|
|
5
7
|
}
|
|
@@ -25,4 +25,8 @@ __decorate([
|
|
|
25
25
|
(0, class_validator_1.IsUUID)(),
|
|
26
26
|
__metadata("design:type", String)
|
|
27
27
|
], MachineCloudResource.prototype, "gamePoolId", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_validator_1.IsOptional)(),
|
|
30
|
+
__metadata("design:type", Object)
|
|
31
|
+
], MachineCloudResource.prototype, "providerSettings", void 0);
|
|
28
32
|
//# sourceMappingURL=machine.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"machine.js","sourceRoot":"","sources":["../../../../../src/v4/types/pools/resource/machine.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAqD;AACrD,iCAA2C;
|
|
1
|
+
{"version":3,"file":"machine.js","sourceRoot":"","sources":["../../../../../src/v4/types/pools/resource/machine.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAqD;AACrD,iCAA2C;AAG3C,MAAa,oBAAqB,SAAQ,wBAAiB;CAW1D;AAXD,oDAWC;AARC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;4DACe;AAIxB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;wDACW;AAGpB;IADC,IAAA,4BAAU,GAAE;;8DAC8B"}
|