@ludeo/cloud-common 1.2.76-beta-yahil-3 → 1.2.77-ygarbage
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-distributed-successfully.d.ts +15 -0
- package/dist/v4/events/{build-artifacts-job-finished.js → build-distributed-successfully.js} +16 -16
- package/dist/v4/events/build-distributed-successfully.js.map +1 -0
- package/dist/v4/events/{build-distribution-job-failed.d.ts → build-distribution-failed-response.d.ts} +5 -5
- package/dist/v4/events/{build-artifacts-job-failed.js → build-distribution-failed-response.js} +14 -14
- package/dist/v4/events/build-distribution-failed-response.js.map +1 -0
- package/dist/v4/events/{distribute-build-job.d.ts → distribute-build-request.d.ts} +5 -5
- package/dist/v4/events/{distribute-build-job.js → distribute-build-request.js} +14 -14
- package/dist/v4/events/distribute-build-request.js.map +1 -0
- package/dist/v4/events/index.d.ts +4 -8
- package/dist/v4/events/index.js +4 -8
- package/dist/v4/events/index.js.map +1 -1
- package/dist/v4/events/post-game-creation-delay-task.d.ts +11 -0
- package/dist/v4/events/{build-created.js → post-game-creation-delay-task.js} +17 -18
- package/dist/v4/events/post-game-creation-delay-task.js.map +1 -0
- package/dist/v4/types/build.d.ts +23 -38
- package/dist/v4/types/build.js +5 -34
- package/dist/v4/types/build.js.map +1 -1
- package/dist/v4/types/pools/configuration/game.d.ts +1 -0
- package/dist/v4/types/pools/configuration/game.js +5 -0
- package/dist/v4/types/pools/configuration/game.js.map +1 -1
- package/package.json +1 -1
- package/src/v4/events/build-distributed-successfully.ts +36 -0
- package/src/v4/events/{build-distribution-job-failed.ts → build-distribution-failed-response.ts} +8 -7
- package/src/v4/events/{distribute-build-job.ts → distribute-build-request.ts} +7 -7
- package/src/v4/events/index.ts +4 -8
- package/src/v4/events/post-game-creation-delay-task.ts +27 -0
- package/src/v4/types/build.ts +24 -41
- package/src/v4/types/pools/configuration/game.ts +9 -1
- package/dist/v4/events/build-artifacts-job-failed.d.ts +0 -13
- package/dist/v4/events/build-artifacts-job-failed.js.map +0 -1
- package/dist/v4/events/build-artifacts-job-finished.d.ts +0 -15
- package/dist/v4/events/build-artifacts-job-finished.js.map +0 -1
- package/dist/v4/events/build-created.d.ts +0 -11
- package/dist/v4/events/build-created.js.map +0 -1
- package/dist/v4/events/build-distributed.d.ts +0 -11
- package/dist/v4/events/build-distributed.js +0 -41
- package/dist/v4/events/build-distributed.js.map +0 -1
- package/dist/v4/events/build-distribution-job-failed.js +0 -46
- package/dist/v4/events/build-distribution-job-failed.js.map +0 -1
- package/dist/v4/events/build-distribution-job-finished.d.ts +0 -14
- package/dist/v4/events/build-distribution-job-finished.js +0 -50
- package/dist/v4/events/build-distribution-job-finished.js.map +0 -1
- package/dist/v4/events/create-build-artifacts-job.d.ts +0 -14
- package/dist/v4/events/create-build-artifacts-job.js +0 -47
- package/dist/v4/events/create-build-artifacts-job.js.map +0 -1
- package/dist/v4/events/distribute-build-job.js.map +0 -1
- package/src/v4/events/build-artifacts-job-failed.ts +0 -29
- package/src/v4/events/build-artifacts-job-finished.ts +0 -36
- package/src/v4/events/build-created.ts +0 -25
- package/src/v4/events/build-distributed.ts +0 -25
- package/src/v4/events/build-distribution-job-finished.ts +0 -35
- package/src/v4/events/create-build-artifacts-job.ts +0 -30
|
@@ -5,7 +5,7 @@ import { CloudBuild } from "../types/build";
|
|
|
5
5
|
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
6
6
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
7
7
|
|
|
8
|
-
export class
|
|
8
|
+
export class DistributeBuildRequestPayload {
|
|
9
9
|
@ValidateNestedType(() => CloudBuild)
|
|
10
10
|
build: CloudBuild;
|
|
11
11
|
|
|
@@ -13,11 +13,11 @@ export class DistributeBuildJobPayload {
|
|
|
13
13
|
cloudProvider: CloudProvider;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
export class
|
|
17
|
-
static readonly EVENT_NAME = "cloud-builds.distribute-build-
|
|
16
|
+
export class DistributeBuildRequest extends LudeoEvent {
|
|
17
|
+
static readonly EVENT_NAME = "cloud-builds.distribute-build-request";
|
|
18
18
|
|
|
19
|
-
constructor(payload:
|
|
20
|
-
super(
|
|
19
|
+
constructor(payload: DistributeBuildRequestPayload, context: BuildContext) {
|
|
20
|
+
super(DistributeBuildRequest.EVENT_NAME);
|
|
21
21
|
this.payload = payload;
|
|
22
22
|
this.context = context;
|
|
23
23
|
}
|
|
@@ -25,6 +25,6 @@ export class DistributeBuildJob extends LudeoEvent {
|
|
|
25
25
|
@ValidateNestedType(() => BuildContext)
|
|
26
26
|
context: BuildContext;
|
|
27
27
|
|
|
28
|
-
@ValidateNestedType(() =>
|
|
29
|
-
payload:
|
|
28
|
+
@ValidateNestedType(() => DistributeBuildRequestPayload)
|
|
29
|
+
payload: DistributeBuildRequestPayload;
|
|
30
30
|
}
|
package/src/v4/events/index.ts
CHANGED
|
@@ -103,11 +103,7 @@ export * from "./terminate-stale-ludeos";
|
|
|
103
103
|
export * from "./terminate-ludeo-request";
|
|
104
104
|
export * from "./ludeo-allocation-timeout-task";
|
|
105
105
|
export * from "./monitor-stream-groups-task";
|
|
106
|
-
export * from "./build-
|
|
107
|
-
export * from "./build-distribution-
|
|
108
|
-
export * from "./distribute-build-
|
|
109
|
-
export * from "./
|
|
110
|
-
export * from "./build-artifacts-job-finished";
|
|
111
|
-
export * from "./build-artifacts-job-failed";
|
|
112
|
-
export * from "./build-distributed";
|
|
113
|
-
export * from "./build-created";
|
|
106
|
+
export * from "./build-distributed-successfully";
|
|
107
|
+
export * from "./build-distribution-failed-response";
|
|
108
|
+
export * from "./distribute-build-request";
|
|
109
|
+
export * from "./post-game-creation-delay-task";
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { IsUUID } from "class-validator";
|
|
2
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
3
|
+
import { ValidateNestedType } from "../../decorators";
|
|
4
|
+
|
|
5
|
+
export class PostGameCreationDelayTaskPayload {
|
|
6
|
+
@IsUUID()
|
|
7
|
+
gamePoolId: string;
|
|
8
|
+
|
|
9
|
+
@IsUUID()
|
|
10
|
+
gameResourceId: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export class PostGameCreationDelayTask extends LudeoEvent {
|
|
14
|
+
public static readonly EVENT_NAME =
|
|
15
|
+
"cloud-pools.post-game-creation-delay-task";
|
|
16
|
+
|
|
17
|
+
constructor(payload: PostGameCreationDelayTaskPayload, context: never) {
|
|
18
|
+
super(PostGameCreationDelayTask.EVENT_NAME);
|
|
19
|
+
this.payload = payload;
|
|
20
|
+
this.context = context;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
public context: never;
|
|
24
|
+
|
|
25
|
+
@ValidateNestedType(() => PostGameCreationDelayTaskPayload)
|
|
26
|
+
public payload: PostGameCreationDelayTaskPayload;
|
|
27
|
+
}
|
package/src/v4/types/build.ts
CHANGED
|
@@ -6,9 +6,8 @@ export enum BuildStatus {
|
|
|
6
6
|
DISTRIBUTING = "distributing",
|
|
7
7
|
DISTRIBUTED = "distributed",
|
|
8
8
|
FAILED = "failed",
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
ASSIGNED = "assigned",
|
|
9
|
+
CREATING = "creating",
|
|
10
|
+
CREATED = "created",
|
|
12
11
|
}
|
|
13
12
|
|
|
14
13
|
export enum DistributionStatus {
|
|
@@ -21,45 +20,50 @@ export enum ArtifactStatus {
|
|
|
21
20
|
CREATED = "created",
|
|
22
21
|
}
|
|
23
22
|
|
|
24
|
-
export
|
|
23
|
+
export type BuildMetadata = {
|
|
25
24
|
studioId: string;
|
|
26
25
|
gameId: string;
|
|
27
26
|
versionId: string;
|
|
28
27
|
friendlyName?: string;
|
|
29
|
-
}
|
|
28
|
+
};
|
|
30
29
|
|
|
31
|
-
export
|
|
30
|
+
export type AwsArtifactData = {
|
|
32
31
|
basePath: string;
|
|
33
32
|
executeableLaunchPath: string;
|
|
34
33
|
runtimeEnvironment: string;
|
|
35
34
|
applicationName: string;
|
|
36
35
|
applicationIdentifier?: string;
|
|
37
36
|
status?: ArtifactStatus;
|
|
38
|
-
}
|
|
37
|
+
};
|
|
39
38
|
|
|
40
|
-
export
|
|
39
|
+
export type AwsDistributionData = {
|
|
41
40
|
path: string; // URL or path to the build in the specific region
|
|
42
|
-
|
|
41
|
+
status?: DistributionStatus;
|
|
42
|
+
};
|
|
43
43
|
|
|
44
|
-
export
|
|
44
|
+
export type AwsDistributions = {
|
|
45
45
|
[region: string]: AwsDistributionData;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
export type Distributions = AwsDistributions;
|
|
46
|
+
};
|
|
49
47
|
|
|
50
|
-
export
|
|
48
|
+
export type AwsArtifacts = {
|
|
51
49
|
[region: string]: AwsArtifactData;
|
|
52
|
-
}
|
|
50
|
+
};
|
|
53
51
|
|
|
54
|
-
export type Artifacts =
|
|
52
|
+
export type Artifacts = {
|
|
53
|
+
[CloudProvider.AWS]: AwsArtifacts;
|
|
54
|
+
};
|
|
55
55
|
|
|
56
|
-
export
|
|
56
|
+
export type Distributions = {
|
|
57
|
+
[CloudProvider.AWS]: AwsDistributions;
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
export type BuildProviderSettings = {
|
|
57
61
|
[CloudProvider.AWS]: {
|
|
58
62
|
status?: BuildStatus;
|
|
59
63
|
artifacts?: AwsArtifacts;
|
|
60
64
|
distributions?: AwsDistributions;
|
|
61
65
|
};
|
|
62
|
-
}
|
|
66
|
+
};
|
|
63
67
|
|
|
64
68
|
export class CloudBuild {
|
|
65
69
|
id: string;
|
|
@@ -68,32 +72,11 @@ export class CloudBuild {
|
|
|
68
72
|
status: BuildStatus;
|
|
69
73
|
centralizedPath?: string;
|
|
70
74
|
meta?: BuildMetadata;
|
|
71
|
-
creationInput?: BuildCreationInput;
|
|
72
75
|
providers?: Partial<BuildProviderSettings>;
|
|
73
76
|
}
|
|
74
77
|
|
|
75
|
-
export class
|
|
78
|
+
export class AwsDistributorResponse {
|
|
76
79
|
distributions: AwsDistributions;
|
|
77
80
|
}
|
|
78
81
|
|
|
79
|
-
export
|
|
80
|
-
applicationName: string;
|
|
81
|
-
basePath: string;
|
|
82
|
-
executeableLaunchPath: string;
|
|
83
|
-
runtimeEnvironment: RuntimeEnvironment;
|
|
84
|
-
logPath?: string;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
export enum RuntimeEnvironment {
|
|
88
|
-
WINDOWS = "windows",
|
|
89
|
-
NVIDIA_ULTRA = "nvidiaUltra",
|
|
90
|
-
NVIDIA_HIGH = "nvidiaHigh",
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
export interface RuntimeEnvironmentConfigurationMap {
|
|
94
|
-
streamClass: string;
|
|
95
|
-
runtimeEnvironment: {
|
|
96
|
-
Type: string;
|
|
97
|
-
Version: string;
|
|
98
|
-
};
|
|
99
|
-
}
|
|
82
|
+
export type DistributorResponse = AwsDistributorResponse;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IsEnum, IsUUID } from "class-validator";
|
|
1
|
+
import { IsEnum, IsNumber, IsOptional, IsUUID } from "class-validator";
|
|
2
2
|
|
|
3
3
|
import { CloudPoolType } from "../type";
|
|
4
4
|
import { GamePoolAttributes } from "./attributes";
|
|
@@ -17,4 +17,12 @@ export class GamePoolConfiguration extends BaseCloudPoolConfiguration {
|
|
|
17
17
|
|
|
18
18
|
@ValidateNestedType(() => GamePoolAttributes)
|
|
19
19
|
attributes: GamePoolAttributes;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Before loading the ludeo for the first time we need to wait for the game to start up.
|
|
23
|
+
* for more info see ticket 8218832706
|
|
24
|
+
*/
|
|
25
|
+
@IsOptional()
|
|
26
|
+
@IsNumber()
|
|
27
|
+
postCreationDelay?: number;
|
|
20
28
|
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { CloudProvider } from "../types";
|
|
2
|
-
import { BuildContext } from "../contexts/build-context";
|
|
3
|
-
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
4
|
-
export declare class BuildArtifactsJobFailedPayload {
|
|
5
|
-
cloudProvider: CloudProvider;
|
|
6
|
-
buildId: string;
|
|
7
|
-
}
|
|
8
|
-
export declare class BuildArtifactsJobFailed extends LudeoEvent {
|
|
9
|
-
static readonly EVENT_NAME = "cloud-builds.build-artifacts-job-failed";
|
|
10
|
-
constructor(payload: BuildArtifactsJobFailedPayload, context: BuildContext);
|
|
11
|
-
context: BuildContext;
|
|
12
|
-
payload: BuildArtifactsJobFailedPayload;
|
|
13
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"build-artifacts-job-failed.js","sourceRoot":"","sources":["../../../src/v4/events/build-artifacts-job-failed.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiD;AACjD,oCAAyC;AACzC,6DAAyD;AACzD,oGAAqF;AACrF,yDAAqD;AAErD,MAAa,8BAA8B;CAM1C;AAND,wEAMC;AAJC;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;qEACO;AAG7B;IADC,IAAA,wBAAM,GAAE;;+DACO;AAGlB,MAAa,uBAAwB,SAAQ,wBAAU;IAGrD,YAAY,OAAuC,EAAE,OAAqB;QACxE,KAAK,CAAC,uBAAuB,CAAC,UAAU,CAAC,CAAC;QAC1C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,0DAcC;AAbiB,kCAAU,GAAG,yCAAyC,CAAC;AASvE;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAAY,CAAC;8BAC9B,4BAAY;wDAAC;AAGtB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,8BAA8B,CAAC;8BAChD,8BAA8B;wDAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { BuildContext } from "../contexts/build-context";
|
|
2
|
-
import { CloudProvider } from "../types";
|
|
3
|
-
import { Artifacts } from "../types/build";
|
|
4
|
-
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
5
|
-
export declare class BuildArtifactsJobFinishedPayload {
|
|
6
|
-
cloudProvider: CloudProvider;
|
|
7
|
-
artifacts: Artifacts;
|
|
8
|
-
buildId: string;
|
|
9
|
-
}
|
|
10
|
-
export declare class BuildArtifactsJobFinished extends LudeoEvent {
|
|
11
|
-
static readonly EVENT_NAME = "cloud-builds.build-artifacts-job-finished";
|
|
12
|
-
constructor(payload: BuildArtifactsJobFinishedPayload, context: BuildContext);
|
|
13
|
-
context: BuildContext;
|
|
14
|
-
payload: BuildArtifactsJobFinishedPayload;
|
|
15
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"build-artifacts-job-finished.js","sourceRoot":"","sources":["../../../src/v4/events/build-artifacts-job-finished.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiD;AACjD,6DAAyD;AACzD,oCAAyC;AACzC,0CAAyD;AACzD,oGAAqF;AACrF,yDAAqD;AAErD,MAAa,gCAAgC;CAS5C;AATD,4EASC;AAPC;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;uEACO;AAG7B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,oBAAY,CAAC;;mEAClB;AAGrB;IADC,IAAA,wBAAM,GAAE;;iEACO;AAGlB,MAAa,yBAA0B,SAAQ,wBAAU;IAGvD,YACE,OAAyC,EACzC,OAAqB;QAErB,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,2CAA2C,CAAC;AAYzE;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAAY,CAAC;8BAC9B,4BAAY;0DAAC;AAGtB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,gCAAgC,CAAC;8BAClD,gCAAgC;0DAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { BuildContext } from "../contexts/build-context";
|
|
2
|
-
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
3
|
-
export declare class BuildCreatedPayload {
|
|
4
|
-
buildId: string;
|
|
5
|
-
}
|
|
6
|
-
export declare class BuildCreated extends LudeoEvent {
|
|
7
|
-
static readonly EVENT_NAME = "cloud-builds.build-created";
|
|
8
|
-
constructor(payload: BuildCreatedPayload, context: BuildContext);
|
|
9
|
-
context: BuildContext;
|
|
10
|
-
payload: BuildCreatedPayload;
|
|
11
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"build-created.js","sourceRoot":"","sources":["../../../src/v4/events/build-created.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyC;AACzC,6DAAyD;AACzD,oGAAqF;AACrF,yDAAqD;AAErD,MAAa,mBAAmB;CAG/B;AAHD,kDAGC;AADC;IADC,IAAA,wBAAM,GAAE;;oDACO;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"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { BuildContext } from "../contexts/build-context";
|
|
2
|
-
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
3
|
-
export declare class BuildDistributedPayload {
|
|
4
|
-
buildId: string;
|
|
5
|
-
}
|
|
6
|
-
export declare class BuildDistributed extends LudeoEvent {
|
|
7
|
-
static readonly EVENT_NAME = "cloud-builds.build-distributed";
|
|
8
|
-
constructor(payload: BuildDistributedPayload, context: BuildContext);
|
|
9
|
-
context: BuildContext;
|
|
10
|
-
payload: BuildDistributedPayload;
|
|
11
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
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.BuildDistributed = exports.BuildDistributedPayload = 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 BuildDistributedPayload {
|
|
18
|
-
}
|
|
19
|
-
exports.BuildDistributedPayload = BuildDistributedPayload;
|
|
20
|
-
__decorate([
|
|
21
|
-
(0, class_validator_1.IsUUID)(),
|
|
22
|
-
__metadata("design:type", String)
|
|
23
|
-
], BuildDistributedPayload.prototype, "buildId", void 0);
|
|
24
|
-
class BuildDistributed extends ludeo_event_1.LudeoEvent {
|
|
25
|
-
constructor(payload, context) {
|
|
26
|
-
super(BuildDistributed.EVENT_NAME);
|
|
27
|
-
this.payload = payload;
|
|
28
|
-
this.context = context;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
exports.BuildDistributed = BuildDistributed;
|
|
32
|
-
BuildDistributed.EVENT_NAME = "cloud-builds.build-distributed";
|
|
33
|
-
__decorate([
|
|
34
|
-
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => build_context_1.BuildContext),
|
|
35
|
-
__metadata("design:type", build_context_1.BuildContext)
|
|
36
|
-
], BuildDistributed.prototype, "context", void 0);
|
|
37
|
-
__decorate([
|
|
38
|
-
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => BuildDistributedPayload),
|
|
39
|
-
__metadata("design:type", BuildDistributedPayload)
|
|
40
|
-
], BuildDistributed.prototype, "payload", void 0);
|
|
41
|
-
//# sourceMappingURL=build-distributed.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"build-distributed.js","sourceRoot":"","sources":["../../../src/v4/events/build-distributed.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyC;AACzC,6DAAyD;AACzD,oGAAqF;AACrF,yDAAqD;AAErD,MAAa,uBAAuB;CAGnC;AAHD,0DAGC;AADC;IADC,IAAA,wBAAM,GAAE;;wDACO;AAGlB,MAAa,gBAAiB,SAAQ,wBAAU;IAG9C,YAAY,OAAgC,EAAE,OAAqB;QACjE,KAAK,CAAC,gBAAgB,CAAC,UAAU,CAAC,CAAC;QACnC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,4CAcC;AAbiB,2BAAU,GAAG,gCAAgC,CAAC;AAS9D;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAAY,CAAC;8BAC9B,4BAAY;iDAAC;AAGtB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,uBAAuB,CAAC;8BACzC,uBAAuB;iDAAC"}
|
|
@@ -1,46 +0,0 @@
|
|
|
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.BuildDistributionJobFailed = exports.BuildDistributionJobFailedPayload = 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 validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
17
|
-
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
18
|
-
class BuildDistributionJobFailedPayload {
|
|
19
|
-
}
|
|
20
|
-
exports.BuildDistributionJobFailedPayload = BuildDistributionJobFailedPayload;
|
|
21
|
-
__decorate([
|
|
22
|
-
(0, class_validator_1.IsEnum)(types_1.CloudProvider),
|
|
23
|
-
__metadata("design:type", String)
|
|
24
|
-
], BuildDistributionJobFailedPayload.prototype, "cloudProvider", void 0);
|
|
25
|
-
__decorate([
|
|
26
|
-
(0, class_validator_1.IsUUID)(),
|
|
27
|
-
__metadata("design:type", String)
|
|
28
|
-
], BuildDistributionJobFailedPayload.prototype, "buildId", void 0);
|
|
29
|
-
class BuildDistributionJobFailed extends ludeo_event_1.LudeoEvent {
|
|
30
|
-
constructor(payload, context) {
|
|
31
|
-
super(BuildDistributionJobFailed.EVENT_NAME);
|
|
32
|
-
this.payload = payload;
|
|
33
|
-
this.context = context;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
exports.BuildDistributionJobFailed = BuildDistributionJobFailed;
|
|
37
|
-
BuildDistributionJobFailed.EVENT_NAME = "cloud-builds.build-distribution-job-failed";
|
|
38
|
-
__decorate([
|
|
39
|
-
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => build_context_1.BuildContext),
|
|
40
|
-
__metadata("design:type", build_context_1.BuildContext)
|
|
41
|
-
], BuildDistributionJobFailed.prototype, "context", void 0);
|
|
42
|
-
__decorate([
|
|
43
|
-
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => BuildDistributionJobFailedPayload),
|
|
44
|
-
__metadata("design:type", BuildDistributionJobFailedPayload)
|
|
45
|
-
], BuildDistributionJobFailed.prototype, "payload", void 0);
|
|
46
|
-
//# sourceMappingURL=build-distribution-job-failed.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"build-distribution-job-failed.js","sourceRoot":"","sources":["../../../src/v4/events/build-distribution-job-failed.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiD;AACjD,oCAAyC;AACzC,6DAAyD;AACzD,oGAAqF;AACrF,yDAAqD;AAErD,MAAa,iCAAiC;CAM7C;AAND,8EAMC;AAJC;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;wEACO;AAG7B;IADC,IAAA,wBAAM,GAAE;;kEACO;AAGlB,MAAa,0BAA2B,SAAQ,wBAAU;IAGxD,YACE,OAA0C,EAC1C,OAAqB;QAErB,KAAK,CAAC,0BAA0B,CAAC,UAAU,CAAC,CAAC;QAC7C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,gEAiBC;AAhBiB,qCAAU,GAAG,4CAA4C,CAAC;AAY1E;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAAY,CAAC;8BAC9B,4BAAY;2DAAC;AAGtB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,iCAAiC,CAAC;8BACnD,iCAAiC;2DAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { BuildContext } from "../contexts/build-context";
|
|
2
|
-
import { CloudProvider, Distributions } from "../types";
|
|
3
|
-
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
4
|
-
export declare class BuildDistributionJobFinishedPayload {
|
|
5
|
-
cloudProvider: CloudProvider;
|
|
6
|
-
distributions: Distributions;
|
|
7
|
-
buildId: string;
|
|
8
|
-
}
|
|
9
|
-
export declare class BuildDistributionJobFinished extends LudeoEvent {
|
|
10
|
-
static readonly EVENT_NAME = "cloud-builds.build-distribution-job-finished";
|
|
11
|
-
constructor(payload: BuildDistributionJobFinishedPayload, context: BuildContext);
|
|
12
|
-
context: BuildContext;
|
|
13
|
-
payload: BuildDistributionJobFinishedPayload;
|
|
14
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
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.BuildDistributionJobFinished = exports.BuildDistributionJobFinishedPayload = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
const build_context_1 = require("../contexts/build-context");
|
|
15
|
-
const types_1 = require("../types");
|
|
16
|
-
const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
17
|
-
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
18
|
-
class BuildDistributionJobFinishedPayload {
|
|
19
|
-
}
|
|
20
|
-
exports.BuildDistributionJobFinishedPayload = BuildDistributionJobFinishedPayload;
|
|
21
|
-
__decorate([
|
|
22
|
-
(0, class_validator_1.IsEnum)(types_1.CloudProvider),
|
|
23
|
-
__metadata("design:type", String)
|
|
24
|
-
], BuildDistributionJobFinishedPayload.prototype, "cloudProvider", void 0);
|
|
25
|
-
__decorate([
|
|
26
|
-
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.AwsDistributions),
|
|
27
|
-
__metadata("design:type", Object)
|
|
28
|
-
], BuildDistributionJobFinishedPayload.prototype, "distributions", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, class_validator_1.IsUUID)(),
|
|
31
|
-
__metadata("design:type", String)
|
|
32
|
-
], BuildDistributionJobFinishedPayload.prototype, "buildId", void 0);
|
|
33
|
-
class BuildDistributionJobFinished extends ludeo_event_1.LudeoEvent {
|
|
34
|
-
constructor(payload, context) {
|
|
35
|
-
super(BuildDistributionJobFinished.EVENT_NAME);
|
|
36
|
-
this.payload = payload;
|
|
37
|
-
this.context = context;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
exports.BuildDistributionJobFinished = BuildDistributionJobFinished;
|
|
41
|
-
BuildDistributionJobFinished.EVENT_NAME = "cloud-builds.build-distribution-job-finished";
|
|
42
|
-
__decorate([
|
|
43
|
-
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => build_context_1.BuildContext),
|
|
44
|
-
__metadata("design:type", build_context_1.BuildContext)
|
|
45
|
-
], BuildDistributionJobFinished.prototype, "context", void 0);
|
|
46
|
-
__decorate([
|
|
47
|
-
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => BuildDistributionJobFinishedPayload),
|
|
48
|
-
__metadata("design:type", BuildDistributionJobFinishedPayload)
|
|
49
|
-
], BuildDistributionJobFinished.prototype, "payload", void 0);
|
|
50
|
-
//# sourceMappingURL=build-distribution-job-finished.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"build-distribution-job-finished.js","sourceRoot":"","sources":["../../../src/v4/events/build-distribution-job-finished.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiD;AACjD,6DAAyD;AACzD,oCAA0E;AAC1E,oGAAqF;AACrF,yDAAqD;AAErD,MAAa,mCAAmC;CAS/C;AATD,kFASC;AAPC;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;0EACO;AAG7B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,wBAAgB,CAAC;;0EACd;AAG7B;IADC,IAAA,wBAAM,GAAE;;oEACO;AAGlB,MAAa,4BAA6B,SAAQ,wBAAU;IAG1D,YACE,OAA4C,EAC5C,OAAqB;QAErB,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,8CAA8C,CAAC;AAY5E;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAAY,CAAC;8BAC9B,4BAAY;6DAAC;AAGtB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,mCAAmC,CAAC;8BACrD,mCAAmC;6DAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { CloudProvider } from "../types";
|
|
2
|
-
import { BuildContext } from "../contexts/build-context";
|
|
3
|
-
import { CloudBuild } from "../types/build";
|
|
4
|
-
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
5
|
-
export declare class CreateBuildArtifactsJobPayload {
|
|
6
|
-
build: CloudBuild;
|
|
7
|
-
cloudProvider: CloudProvider;
|
|
8
|
-
}
|
|
9
|
-
export declare class CreateBuildArtifactsJob extends LudeoEvent {
|
|
10
|
-
static readonly EVENT_NAME = "cloud-builds.create-build-artifacts-job";
|
|
11
|
-
constructor(payload: CreateBuildArtifactsJobPayload, context: BuildContext);
|
|
12
|
-
context: BuildContext;
|
|
13
|
-
payload: CreateBuildArtifactsJobPayload;
|
|
14
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
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.CreateBuildArtifactsJob = exports.CreateBuildArtifactsJobPayload = 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 CreateBuildArtifactsJobPayload {
|
|
20
|
-
}
|
|
21
|
-
exports.CreateBuildArtifactsJobPayload = CreateBuildArtifactsJobPayload;
|
|
22
|
-
__decorate([
|
|
23
|
-
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => build_1.CloudBuild),
|
|
24
|
-
__metadata("design:type", build_1.CloudBuild)
|
|
25
|
-
], CreateBuildArtifactsJobPayload.prototype, "build", void 0);
|
|
26
|
-
__decorate([
|
|
27
|
-
(0, class_validator_1.IsEnum)(types_1.CloudProvider),
|
|
28
|
-
__metadata("design:type", String)
|
|
29
|
-
], CreateBuildArtifactsJobPayload.prototype, "cloudProvider", void 0);
|
|
30
|
-
class CreateBuildArtifactsJob extends ludeo_event_1.LudeoEvent {
|
|
31
|
-
constructor(payload, context) {
|
|
32
|
-
super(CreateBuildArtifactsJob.EVENT_NAME);
|
|
33
|
-
this.payload = payload;
|
|
34
|
-
this.context = context;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
exports.CreateBuildArtifactsJob = CreateBuildArtifactsJob;
|
|
38
|
-
CreateBuildArtifactsJob.EVENT_NAME = "cloud-builds.create-build-artifacts-job";
|
|
39
|
-
__decorate([
|
|
40
|
-
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => build_context_1.BuildContext),
|
|
41
|
-
__metadata("design:type", build_context_1.BuildContext)
|
|
42
|
-
], CreateBuildArtifactsJob.prototype, "context", void 0);
|
|
43
|
-
__decorate([
|
|
44
|
-
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => CreateBuildArtifactsJobPayload),
|
|
45
|
-
__metadata("design:type", CreateBuildArtifactsJobPayload)
|
|
46
|
-
], CreateBuildArtifactsJob.prototype, "payload", void 0);
|
|
47
|
-
//# sourceMappingURL=create-build-artifacts-job.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-build-artifacts-job.js","sourceRoot":"","sources":["../../../src/v4/events/create-build-artifacts-job.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyC;AACzC,oCAAyC;AACzC,6DAAyD;AACzD,0CAA4C;AAC5C,oGAAqF;AACrF,yDAAqD;AAErD,MAAa,8BAA8B;CAM1C;AAND,wEAMC;AAJC;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,kBAAU,CAAC;8BAC9B,kBAAU;6DAAC;AAGlB;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;qEACO;AAG/B,MAAa,uBAAwB,SAAQ,wBAAU;IAGrD,YAAY,OAAuC,EAAE,OAAqB;QACxE,KAAK,CAAC,uBAAuB,CAAC,UAAU,CAAC,CAAC;QAC1C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,0DAcC;AAbiB,kCAAU,GAAG,yCAAyC,CAAC;AASvE;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAAY,CAAC;8BAC9B,4BAAY;wDAAC;AAGtB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,8BAA8B,CAAC;8BAChD,8BAA8B;wDAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"distribute-build-job.js","sourceRoot":"","sources":["../../../src/v4/events/distribute-build-job.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyC;AACzC,oCAAyC;AACzC,6DAAyD;AACzD,0CAA4C;AAC5C,oGAAqF;AACrF,yDAAqD;AAErD,MAAa,yBAAyB;CAMrC;AAND,8DAMC;AAJC;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,kBAAU,CAAC;8BAC9B,kBAAU;wDAAC;AAGlB;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;gEACO;AAG/B,MAAa,kBAAmB,SAAQ,wBAAU;IAGhD,YAAY,OAAkC,EAAE,OAAqB;QACnE,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,mCAAmC,CAAC;AASjE;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAAY,CAAC;8BAC9B,4BAAY;mDAAC;AAGtB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,yBAAyB,CAAC;8BAC3C,yBAAyB;mDAAC"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { IsEnum, IsUUID } from "class-validator";
|
|
2
|
-
import { CloudProvider } from "../types";
|
|
3
|
-
import { BuildContext } from "../contexts/build-context";
|
|
4
|
-
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
5
|
-
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
6
|
-
|
|
7
|
-
export class BuildArtifactsJobFailedPayload {
|
|
8
|
-
@IsEnum(CloudProvider)
|
|
9
|
-
cloudProvider: CloudProvider;
|
|
10
|
-
|
|
11
|
-
@IsUUID()
|
|
12
|
-
buildId: string;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export class BuildArtifactsJobFailed extends LudeoEvent {
|
|
16
|
-
static readonly EVENT_NAME = "cloud-builds.build-artifacts-job-failed";
|
|
17
|
-
|
|
18
|
-
constructor(payload: BuildArtifactsJobFailedPayload, context: BuildContext) {
|
|
19
|
-
super(BuildArtifactsJobFailed.EVENT_NAME);
|
|
20
|
-
this.payload = payload;
|
|
21
|
-
this.context = context;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
@ValidateNestedType(() => BuildContext)
|
|
25
|
-
context: BuildContext;
|
|
26
|
-
|
|
27
|
-
@ValidateNestedType(() => BuildArtifactsJobFailedPayload)
|
|
28
|
-
payload: BuildArtifactsJobFailedPayload;
|
|
29
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { IsEnum, IsUUID } from "class-validator";
|
|
2
|
-
import { BuildContext } from "../contexts/build-context";
|
|
3
|
-
import { CloudProvider } from "../types";
|
|
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 BuildArtifactsJobFinishedPayload {
|
|
9
|
-
@IsEnum(CloudProvider)
|
|
10
|
-
cloudProvider: CloudProvider;
|
|
11
|
-
|
|
12
|
-
@ValidateNestedType(() => AwsArtifacts)
|
|
13
|
-
artifacts: Artifacts;
|
|
14
|
-
|
|
15
|
-
@IsUUID()
|
|
16
|
-
buildId: string;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export class BuildArtifactsJobFinished extends LudeoEvent {
|
|
20
|
-
static readonly EVENT_NAME = "cloud-builds.build-artifacts-job-finished";
|
|
21
|
-
|
|
22
|
-
constructor(
|
|
23
|
-
payload: BuildArtifactsJobFinishedPayload,
|
|
24
|
-
context: BuildContext
|
|
25
|
-
) {
|
|
26
|
-
super(BuildArtifactsJobFinished.EVENT_NAME);
|
|
27
|
-
this.payload = payload;
|
|
28
|
-
this.context = context;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
@ValidateNestedType(() => BuildContext)
|
|
32
|
-
context: BuildContext;
|
|
33
|
-
|
|
34
|
-
@ValidateNestedType(() => BuildArtifactsJobFinishedPayload)
|
|
35
|
-
payload: BuildArtifactsJobFinishedPayload;
|
|
36
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { 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
|
-
|
|
6
|
-
export class BuildCreatedPayload {
|
|
7
|
-
@IsUUID()
|
|
8
|
-
buildId: string;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export class BuildCreated extends LudeoEvent {
|
|
12
|
-
static readonly EVENT_NAME = "cloud-builds.build-created";
|
|
13
|
-
|
|
14
|
-
constructor(payload: BuildCreatedPayload, context: BuildContext) {
|
|
15
|
-
super(BuildCreated.EVENT_NAME);
|
|
16
|
-
this.payload = payload;
|
|
17
|
-
this.context = context;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
@ValidateNestedType(() => BuildContext)
|
|
21
|
-
context: BuildContext;
|
|
22
|
-
|
|
23
|
-
@ValidateNestedType(() => BuildCreatedPayload)
|
|
24
|
-
payload: BuildCreatedPayload;
|
|
25
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { 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
|
-
|
|
6
|
-
export class BuildDistributedPayload {
|
|
7
|
-
@IsUUID()
|
|
8
|
-
buildId: string;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export class BuildDistributed extends LudeoEvent {
|
|
12
|
-
static readonly EVENT_NAME = "cloud-builds.build-distributed";
|
|
13
|
-
|
|
14
|
-
constructor(payload: BuildDistributedPayload, context: BuildContext) {
|
|
15
|
-
super(BuildDistributed.EVENT_NAME);
|
|
16
|
-
this.payload = payload;
|
|
17
|
-
this.context = context;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
@ValidateNestedType(() => BuildContext)
|
|
21
|
-
context: BuildContext;
|
|
22
|
-
|
|
23
|
-
@ValidateNestedType(() => BuildDistributedPayload)
|
|
24
|
-
payload: BuildDistributedPayload;
|
|
25
|
-
}
|