@ludeo/cloud-common 1.2.126 → 1.2.127-beta-yahil-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/v4/events/index.d.ts +1 -0
- package/dist/v4/events/index.js +1 -0
- package/dist/v4/events/index.js.map +1 -1
- package/dist/v4/events/rollout-change.d.ts +16 -0
- package/dist/v4/events/rollout-change.js +58 -0
- package/dist/v4/events/rollout-change.js.map +1 -0
- package/package.json +1 -1
- package/src/v4/events/index.ts +1 -0
- package/src/v4/events/rollout-change.ts +38 -0
package/dist/v4/events/index.js
CHANGED
|
@@ -160,4 +160,5 @@ __exportStar(require("./build-files-verification-job-failed"), exports);
|
|
|
160
160
|
__exportStar(require("./build-files-verified"), exports);
|
|
161
161
|
__exportStar(require("./check-predictor-status"), exports);
|
|
162
162
|
__exportStar(require("./cloud-ludeo-updated"), exports);
|
|
163
|
+
__exportStar(require("./rollout-change"), exports);
|
|
163
164
|
//# 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;AAC7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AoC;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;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"}
|
|
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,mE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,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"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { BuildContext } from "../contexts/build-context";
|
|
2
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
3
|
+
import { BuildVersionMeta } from "../types/build";
|
|
4
|
+
export declare class RolloutChangePayload {
|
|
5
|
+
envId: string;
|
|
6
|
+
targetBuild: BuildVersionMeta;
|
|
7
|
+
latestBuild: BuildVersionMeta;
|
|
8
|
+
targetBuildRolloutValue: number;
|
|
9
|
+
latestBuildRolloutValue: number;
|
|
10
|
+
}
|
|
11
|
+
export declare class RolloutChange extends LudeoEvent {
|
|
12
|
+
static readonly EVENT_NAME = "cloud-pools.rollout-change";
|
|
13
|
+
constructor(payload: RolloutChangePayload, context: BuildContext);
|
|
14
|
+
context: BuildContext;
|
|
15
|
+
payload: RolloutChangePayload;
|
|
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.RolloutChange = exports.RolloutChangePayload = 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
|
+
const build_1 = require("../types/build");
|
|
18
|
+
class RolloutChangePayload {
|
|
19
|
+
}
|
|
20
|
+
exports.RolloutChangePayload = RolloutChangePayload;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsUUID)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], RolloutChangePayload.prototype, "envId", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => build_1.BuildVersionMeta),
|
|
27
|
+
__metadata("design:type", build_1.BuildVersionMeta)
|
|
28
|
+
], RolloutChangePayload.prototype, "targetBuild", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => build_1.BuildVersionMeta),
|
|
31
|
+
__metadata("design:type", build_1.BuildVersionMeta)
|
|
32
|
+
], RolloutChangePayload.prototype, "latestBuild", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_validator_1.IsNumber)(),
|
|
35
|
+
__metadata("design:type", Number)
|
|
36
|
+
], RolloutChangePayload.prototype, "targetBuildRolloutValue", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_validator_1.IsNumber)(),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], RolloutChangePayload.prototype, "latestBuildRolloutValue", void 0);
|
|
41
|
+
class RolloutChange extends ludeo_event_1.LudeoEvent {
|
|
42
|
+
constructor(payload, context) {
|
|
43
|
+
super(RolloutChange.EVENT_NAME);
|
|
44
|
+
this.payload = payload;
|
|
45
|
+
this.context = context;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
exports.RolloutChange = RolloutChange;
|
|
49
|
+
RolloutChange.EVENT_NAME = "cloud-pools.rollout-change";
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => build_context_1.BuildContext),
|
|
52
|
+
__metadata("design:type", build_context_1.BuildContext)
|
|
53
|
+
], RolloutChange.prototype, "context", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => RolloutChangePayload),
|
|
56
|
+
__metadata("design:type", RolloutChangePayload)
|
|
57
|
+
], RolloutChange.prototype, "payload", void 0);
|
|
58
|
+
//# sourceMappingURL=rollout-change.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rollout-change.js","sourceRoot":"","sources":["../../../src/v4/events/rollout-change.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA6D;AAC7D,6DAAyD;AACzD,oGAAqF;AACrF,yDAAqD;AACrD,0CAAkD;AAElD,MAAa,oBAAoB;CAehC;AAfD,oDAeC;AAbC;IADC,IAAA,wBAAM,GAAE;;mDACK;AAGd;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,wBAAgB,CAAC;8BAC9B,wBAAgB;yDAAC;AAG9B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,wBAAgB,CAAC;8BAC9B,wBAAgB;yDAAC;AAG9B;IADC,IAAA,0BAAQ,GAAE;;qEACqB;AAGhC;IADC,IAAA,0BAAQ,GAAE;;qEACqB;AAGlC,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,4BAA4B,CAAC;AAS1D;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"}
|
package/package.json
CHANGED
package/src/v4/events/index.ts
CHANGED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { IsNumber, IsString, IsUUID } from "class-validator";
|
|
2
|
+
import { BuildContext } from "../contexts/build-context";
|
|
3
|
+
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
4
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
5
|
+
import { BuildVersionMeta } from "../types/build";
|
|
6
|
+
|
|
7
|
+
export class RolloutChangePayload {
|
|
8
|
+
@IsUUID()
|
|
9
|
+
envId: string;
|
|
10
|
+
|
|
11
|
+
@ValidateNestedType(() => BuildVersionMeta)
|
|
12
|
+
targetBuild: BuildVersionMeta;
|
|
13
|
+
|
|
14
|
+
@ValidateNestedType(() => BuildVersionMeta)
|
|
15
|
+
latestBuild: BuildVersionMeta;
|
|
16
|
+
|
|
17
|
+
@IsNumber()
|
|
18
|
+
targetBuildRolloutValue: number;
|
|
19
|
+
|
|
20
|
+
@IsNumber()
|
|
21
|
+
latestBuildRolloutValue: number;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export class RolloutChange extends LudeoEvent {
|
|
25
|
+
static readonly EVENT_NAME = "cloud-pools.rollout-change";
|
|
26
|
+
|
|
27
|
+
constructor(payload: RolloutChangePayload, context: BuildContext) {
|
|
28
|
+
super(RolloutChange.EVENT_NAME);
|
|
29
|
+
this.payload = payload;
|
|
30
|
+
this.context = context;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@ValidateNestedType(() => BuildContext)
|
|
34
|
+
context: BuildContext;
|
|
35
|
+
|
|
36
|
+
@ValidateNestedType(() => RolloutChangePayload)
|
|
37
|
+
payload: RolloutChangePayload;
|
|
38
|
+
}
|