@ludeo/cloud-common 1.2.166-beta-yahil-1 → 1.2.166-beta-yahil-2
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-deleted.d.ts +11 -0
- package/dist/v4/events/build-deleted.js +41 -0
- package/dist/v4/events/build-deleted.js.map +1 -0
- package/dist/v4/events/build-deletion-failed.d.ts +13 -0
- package/dist/v4/events/build-deletion-failed.js +50 -0
- package/dist/v4/events/build-deletion-failed.js.map +1 -0
- 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/package.json +1 -1
- package/src/v4/events/build-deleted.ts +25 -0
- package/src/v4/events/build-deletion-failed.ts +32 -0
- package/src/v4/events/index.ts +2 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
2
|
+
import { BuildContext } from "../contexts/build-context";
|
|
3
|
+
export declare class BuildDeletedPayload {
|
|
4
|
+
buildId: string;
|
|
5
|
+
}
|
|
6
|
+
export declare class BuildDeleted extends LudeoEvent {
|
|
7
|
+
static readonly EVENT_NAME = "cloud-builds.build-deleted";
|
|
8
|
+
constructor(payload: BuildDeletedPayload, context: BuildContext);
|
|
9
|
+
context: BuildContext;
|
|
10
|
+
payload: BuildDeletedPayload;
|
|
11
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.BuildDeleted = exports.BuildDeletedPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
15
|
+
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
16
|
+
const build_context_1 = require("../contexts/build-context");
|
|
17
|
+
class BuildDeletedPayload {
|
|
18
|
+
}
|
|
19
|
+
exports.BuildDeletedPayload = BuildDeletedPayload;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_validator_1.IsString)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], BuildDeletedPayload.prototype, "buildId", void 0);
|
|
24
|
+
class BuildDeleted extends ludeo_event_1.LudeoEvent {
|
|
25
|
+
constructor(payload, context) {
|
|
26
|
+
super(BuildDeleted.EVENT_NAME);
|
|
27
|
+
this.payload = payload;
|
|
28
|
+
this.context = context;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
exports.BuildDeleted = BuildDeleted;
|
|
32
|
+
BuildDeleted.EVENT_NAME = "cloud-builds.build-deleted";
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => build_context_1.BuildContext),
|
|
35
|
+
__metadata("design:type", build_context_1.BuildContext)
|
|
36
|
+
], BuildDeleted.prototype, "context", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => BuildDeletedPayload),
|
|
39
|
+
__metadata("design:type", BuildDeletedPayload)
|
|
40
|
+
], BuildDeleted.prototype, "payload", void 0);
|
|
41
|
+
//# sourceMappingURL=build-deleted.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build-deleted.js","sourceRoot":"","sources":["../../../src/v4/events/build-deleted.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA2C;AAC3C,oGAAqF;AACrF,yDAAqD;AACrD,6DAAyD;AAEzD,MAAa,mBAAmB;CAG/B;AAHD,kDAGC;AADC;IADC,IAAA,0BAAQ,GAAE;;oDACK;AAGlB,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,13 @@
|
|
|
1
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
2
|
+
import { BuildContext } from "../contexts/build-context";
|
|
3
|
+
export declare class BuildDeletionFailedPayload {
|
|
4
|
+
buildId: string;
|
|
5
|
+
errorMessage: string;
|
|
6
|
+
status?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare class BuildDeletionFailed extends LudeoEvent {
|
|
9
|
+
static readonly EVENT_NAME = "cloud-builds.build-deletion-failed";
|
|
10
|
+
constructor(payload: BuildDeletionFailedPayload, context: BuildContext);
|
|
11
|
+
context: BuildContext;
|
|
12
|
+
payload: BuildDeletionFailedPayload;
|
|
13
|
+
}
|
|
@@ -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.BuildDeletionFailed = exports.BuildDeletionFailedPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
15
|
+
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
16
|
+
const build_context_1 = require("../contexts/build-context");
|
|
17
|
+
class BuildDeletionFailedPayload {
|
|
18
|
+
}
|
|
19
|
+
exports.BuildDeletionFailedPayload = BuildDeletionFailedPayload;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_validator_1.IsString)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], BuildDeletionFailedPayload.prototype, "buildId", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsString)(),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], BuildDeletionFailedPayload.prototype, "errorMessage", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_validator_1.IsOptional)(),
|
|
30
|
+
(0, class_validator_1.IsString)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], BuildDeletionFailedPayload.prototype, "status", void 0);
|
|
33
|
+
class BuildDeletionFailed extends ludeo_event_1.LudeoEvent {
|
|
34
|
+
constructor(payload, context) {
|
|
35
|
+
super(BuildDeletionFailed.EVENT_NAME);
|
|
36
|
+
this.payload = payload;
|
|
37
|
+
this.context = context;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
exports.BuildDeletionFailed = BuildDeletionFailed;
|
|
41
|
+
BuildDeletionFailed.EVENT_NAME = "cloud-builds.build-deletion-failed";
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => build_context_1.BuildContext),
|
|
44
|
+
__metadata("design:type", build_context_1.BuildContext)
|
|
45
|
+
], BuildDeletionFailed.prototype, "context", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => BuildDeletionFailedPayload),
|
|
48
|
+
__metadata("design:type", BuildDeletionFailedPayload)
|
|
49
|
+
], BuildDeletionFailed.prototype, "payload", void 0);
|
|
50
|
+
//# sourceMappingURL=build-deletion-failed.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build-deletion-failed.js","sourceRoot":"","sources":["../../../src/v4/events/build-deletion-failed.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AACvD,oGAAqF;AACrF,yDAAqD;AACrD,6DAAyD;AAEzD,MAAa,0BAA0B;CAUtC;AAVD,gEAUC;AARC;IADC,IAAA,0BAAQ,GAAE;;2DACK;AAGhB;IADC,IAAA,0BAAQ,GAAE;;gEACU;AAIrB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;0DACK;AAGlB,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"}
|
|
@@ -161,3 +161,5 @@ export * from "./monitor-pools-retention-task";
|
|
|
161
161
|
export * from "./game-session-activated";
|
|
162
162
|
export * from "./game-session-activation-failed";
|
|
163
163
|
export * from "./delete-build";
|
|
164
|
+
export * from "./build-deleted";
|
|
165
|
+
export * from "./build-deletion-failed";
|
package/dist/v4/events/index.js
CHANGED
|
@@ -177,4 +177,6 @@ __exportStar(require("./monitor-pools-retention-task"), exports);
|
|
|
177
177
|
__exportStar(require("./game-session-activated"), exports);
|
|
178
178
|
__exportStar(require("./game-session-activation-failed"), exports);
|
|
179
179
|
__exportStar(require("./delete-build"), exports);
|
|
180
|
+
__exportStar(require("./build-deleted"), exports);
|
|
181
|
+
__exportStar(require("./build-deletion-failed"), exports);
|
|
180
182
|
//# 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;AAC3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A6C;AAC7C,oEAAkD;AAClD,kEAAgD;AAChD,yDAAuC;AACvC,+DAA6C;AAC7C,iEAA+C;AAC/C,+DAA6C;AAC7C,sDAAoC;AACpC,kDAAgC;AAChC,wDAAsC;AACtC,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;AAC/D,iDAA+B;AAC/B,2EAAyD;AACzD,iFAA+D;AAC/D,yEAAuD;AACvD,sFAAoE;AACpE,6DAA2C;AAC3C,qEAAmD;AACnD,mDAAiC;AACjC,oEAAkD;AAClD,kEAAgD;AAChD,4DAA0C;AAC1C,8EAA4D;AAC5D,wDAAsC;AACtC,iEAA+C;AAC/C,8EAA4D;AAC5D,iEAA+C;AAC/C,0EAAwD;AACxD,wEAAsD;AACtD,yDAAuC;AACvC,2DAAyC;AACzC,wDAAsC;AACtC,mDAAiC;AACjC,4EAA0D;AAC1D,+EAA6D;AAC7D,uDAAqC;AACrC,4DAA0C;AAC1C,iDAA+B;AAC/B,kDAAgC;AAChC,4DAA0C;AAC1C,sEAAoD;AACpD,oEAAkD;AAClD,+DAA6C;AAC7C,gEAA8C;AAC9C,iEAA+C;AAC/C,2DAAyC;AACzC,mEAAiD;AACjD,iDAA+B"}
|
|
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,mEA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AC5C,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,wDAAsC;AACtC,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;AAC/D,iDAA+B;AAC/B,2EAAyD;AACzD,iFAA+D;AAC/D,yEAAuD;AACvD,sFAAoE;AACpE,6DAA2C;AAC3C,qEAAmD;AACnD,mDAAiC;AACjC,oEAAkD;AAClD,kEAAgD;AAChD,4DAA0C;AAC1C,8EAA4D;AAC5D,wDAAsC;AACtC,iEAA+C;AAC/C,8EAA4D;AAC5D,iEAA+C;AAC/C,0EAAwD;AACxD,wEAAsD;AACtD,yDAAuC;AACvC,2DAAyC;AACzC,wDAAsC;AACtC,mDAAiC;AACjC,4EAA0D;AAC1D,+EAA6D;AAC7D,uDAAqC;AACrC,4DAA0C;AAC1C,iDAA+B;AAC/B,kDAAgC;AAChC,4DAA0C;AAC1C,sEAAoD;AACpD,oEAAkD;AAClD,+DAA6C;AAC7C,gEAA8C;AAC9C,iEAA+C;AAC/C,2DAAyC;AACzC,mEAAiD;AACjD,iDAA+B;AAC/B,kDAAgC;AAChC,0DAAwC"}
|
package/package.json
CHANGED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { IsString } from "class-validator";
|
|
2
|
+
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
3
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
4
|
+
import { BuildContext } from "../contexts/build-context";
|
|
5
|
+
|
|
6
|
+
export class BuildDeletedPayload {
|
|
7
|
+
@IsString()
|
|
8
|
+
buildId: string;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export class BuildDeleted extends LudeoEvent {
|
|
12
|
+
static readonly EVENT_NAME = "cloud-builds.build-deleted";
|
|
13
|
+
|
|
14
|
+
constructor(payload: BuildDeletedPayload, context: BuildContext) {
|
|
15
|
+
super(BuildDeleted.EVENT_NAME);
|
|
16
|
+
this.payload = payload;
|
|
17
|
+
this.context = context;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@ValidateNestedType(() => BuildContext)
|
|
21
|
+
context: BuildContext;
|
|
22
|
+
|
|
23
|
+
@ValidateNestedType(() => BuildDeletedPayload)
|
|
24
|
+
payload: BuildDeletedPayload;
|
|
25
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { IsOptional, IsString } from "class-validator";
|
|
2
|
+
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
3
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
4
|
+
import { BuildContext } from "../contexts/build-context";
|
|
5
|
+
|
|
6
|
+
export class BuildDeletionFailedPayload {
|
|
7
|
+
@IsString()
|
|
8
|
+
buildId: string;
|
|
9
|
+
|
|
10
|
+
@IsString()
|
|
11
|
+
errorMessage: string;
|
|
12
|
+
|
|
13
|
+
@IsOptional()
|
|
14
|
+
@IsString()
|
|
15
|
+
status?: string;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export class BuildDeletionFailed extends LudeoEvent {
|
|
19
|
+
static readonly EVENT_NAME = "cloud-builds.build-deletion-failed";
|
|
20
|
+
|
|
21
|
+
constructor(payload: BuildDeletionFailedPayload, context: BuildContext) {
|
|
22
|
+
super(BuildDeletionFailed.EVENT_NAME);
|
|
23
|
+
this.payload = payload;
|
|
24
|
+
this.context = context;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@ValidateNestedType(() => BuildContext)
|
|
28
|
+
context: BuildContext;
|
|
29
|
+
|
|
30
|
+
@ValidateNestedType(() => BuildDeletionFailedPayload)
|
|
31
|
+
payload: BuildDeletionFailedPayload;
|
|
32
|
+
}
|
package/src/v4/events/index.ts
CHANGED
|
@@ -161,3 +161,5 @@ export * from "./monitor-pools-retention-task";
|
|
|
161
161
|
export * from "./game-session-activated";
|
|
162
162
|
export * from "./game-session-activation-failed";
|
|
163
163
|
export * from "./delete-build";
|
|
164
|
+
export * from "./build-deleted";
|
|
165
|
+
export * from "./build-deletion-failed";
|