@ludeo/cloud-common 1.2.79-beta-yahil-2 → 1.2.79-beta-yahil-3

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.
@@ -0,0 +1,15 @@
1
+ import { CloudProvider } from "../types";
2
+ import { BuildContext } from "../contexts/build-context";
3
+ import { Artifacts } from "../types/build";
4
+ import { LudeoEvent } from "../../infra/ludeo-event";
5
+ export declare class BuildArtifactsReadyForCreationPayload {
6
+ buildId: string;
7
+ artifacts: Artifacts;
8
+ cloudProvider: CloudProvider;
9
+ }
10
+ export declare class BuildArtifactsReadyForCreation extends LudeoEvent {
11
+ static readonly EVENT_NAME = "cloud-builds.build-artifacts-ready-for-creation";
12
+ constructor(payload: BuildArtifactsReadyForCreationPayload, context: BuildContext);
13
+ context: BuildContext;
14
+ payload: BuildArtifactsReadyForCreationPayload;
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.BuildArtifactsReadyForCreation = exports.BuildArtifactsReadyForCreationPayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const types_1 = require("../types");
15
+ const build_context_1 = require("../contexts/build-context");
16
+ const build_1 = require("../types/build");
17
+ const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
18
+ const ludeo_event_1 = require("../../infra/ludeo-event");
19
+ class BuildArtifactsReadyForCreationPayload {
20
+ }
21
+ exports.BuildArtifactsReadyForCreationPayload = BuildArtifactsReadyForCreationPayload;
22
+ __decorate([
23
+ (0, class_validator_1.IsUUID)(),
24
+ __metadata("design:type", String)
25
+ ], BuildArtifactsReadyForCreationPayload.prototype, "buildId", void 0);
26
+ __decorate([
27
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => build_1.AwsArtifacts),
28
+ __metadata("design:type", Object)
29
+ ], BuildArtifactsReadyForCreationPayload.prototype, "artifacts", void 0);
30
+ __decorate([
31
+ (0, class_validator_1.IsEnum)(types_1.CloudProvider),
32
+ __metadata("design:type", String)
33
+ ], BuildArtifactsReadyForCreationPayload.prototype, "cloudProvider", void 0);
34
+ class BuildArtifactsReadyForCreation extends ludeo_event_1.LudeoEvent {
35
+ constructor(payload, context) {
36
+ super(BuildArtifactsReadyForCreation.EVENT_NAME);
37
+ this.payload = payload;
38
+ this.context = context;
39
+ }
40
+ }
41
+ exports.BuildArtifactsReadyForCreation = BuildArtifactsReadyForCreation;
42
+ BuildArtifactsReadyForCreation.EVENT_NAME = "cloud-builds.build-artifacts-ready-for-creation";
43
+ __decorate([
44
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => build_context_1.BuildContext),
45
+ __metadata("design:type", build_context_1.BuildContext)
46
+ ], BuildArtifactsReadyForCreation.prototype, "context", void 0);
47
+ __decorate([
48
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => BuildArtifactsReadyForCreationPayload),
49
+ __metadata("design:type", BuildArtifactsReadyForCreationPayload)
50
+ ], BuildArtifactsReadyForCreation.prototype, "payload", void 0);
51
+ //# sourceMappingURL=build-artifacts-ready-for-creation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"build-artifacts-ready-for-creation.js","sourceRoot":"","sources":["../../../src/v4/events/build-artifacts-ready-for-creation.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiD;AACjD,oCAAyC;AACzC,6DAAyD;AACzD,0CAAyD;AACzD,oGAAqF;AACrF,yDAAqD;AAErD,MAAa,qCAAqC;CASjD;AATD,sFASC;AAPC;IADC,IAAA,wBAAM,GAAE;;sEACO;AAGhB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,oBAAY,CAAC;;wEAClB;AAGrB;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;4EACO;AAG/B,MAAa,8BAA+B,SAAQ,wBAAU;IAI5D,YACE,OAA8C,EAC9C,OAAqB;QAErB,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,iDAAiD,CAAC;AAYpD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAAY,CAAC;8BAC9B,4BAAY;+DAAC;AAGtB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,qCAAqC,CAAC;8BACvD,qCAAqC;+DAAC"}
@@ -113,3 +113,4 @@ export * from "./build-distributed";
113
113
  export * from "./build-created";
114
114
  export * from "./post-game-creation-delay-task";
115
115
  export * from "./monitor-aws-artifacts-status-task";
116
+ export * from "./build-artifacts-ready-for-creation";
@@ -129,4 +129,5 @@ __exportStar(require("./build-distributed"), exports);
129
129
  __exportStar(require("./build-created"), exports);
130
130
  __exportStar(require("./post-game-creation-delay-task"), exports);
131
131
  __exportStar(require("./monitor-aws-artifacts-status-task"), exports);
132
+ __exportStar(require("./build-artifacts-ready-for-creation"), exports);
132
133
  //# 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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AAyC;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"}
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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ludeo/cloud-common",
3
- "version": "1.2.79-beta-yahil-2",
3
+ "version": "1.2.79-beta-yahil-3",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "author": "Yahil Didi",
@@ -0,0 +1,37 @@
1
+ import { IsEnum, IsUUID } from "class-validator";
2
+ import { CloudProvider } from "../types";
3
+ import { BuildContext } from "../contexts/build-context";
4
+ import { Artifacts, AwsArtifacts } from "../types/build";
5
+ import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
6
+ import { LudeoEvent } from "../../infra/ludeo-event";
7
+
8
+ export class BuildArtifactsReadyForCreationPayload {
9
+ @IsUUID()
10
+ buildId: string;
11
+
12
+ @ValidateNestedType(() => AwsArtifacts)
13
+ artifacts: Artifacts;
14
+
15
+ @IsEnum(CloudProvider)
16
+ cloudProvider: CloudProvider;
17
+ }
18
+
19
+ export class BuildArtifactsReadyForCreation extends LudeoEvent {
20
+ static readonly EVENT_NAME =
21
+ "cloud-builds.build-artifacts-ready-for-creation";
22
+
23
+ constructor(
24
+ payload: BuildArtifactsReadyForCreationPayload,
25
+ context: BuildContext
26
+ ) {
27
+ super(BuildArtifactsReadyForCreation.EVENT_NAME);
28
+ this.payload = payload;
29
+ this.context = context;
30
+ }
31
+
32
+ @ValidateNestedType(() => BuildContext)
33
+ context: BuildContext;
34
+
35
+ @ValidateNestedType(() => BuildArtifactsReadyForCreationPayload)
36
+ payload: BuildArtifactsReadyForCreationPayload;
37
+ }
@@ -113,3 +113,4 @@ export * from "./build-distributed";
113
113
  export * from "./build-created";
114
114
  export * from "./post-game-creation-delay-task";
115
115
  export * from "./monitor-aws-artifacts-status-task";
116
+ export * from "./build-artifacts-ready-for-creation";