@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
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { IsEnum, IsUUID } from "class-validator";
|
|
2
|
-
import { BuildContext } from "../contexts/build-context";
|
|
3
|
-
import { AwsDistributions, CloudProvider, Distributions } from "../types";
|
|
4
|
-
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
5
|
-
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
6
|
-
|
|
7
|
-
export class BuildDistributionJobFinishedPayload {
|
|
8
|
-
@IsEnum(CloudProvider)
|
|
9
|
-
cloudProvider: CloudProvider;
|
|
10
|
-
|
|
11
|
-
@ValidateNestedType(() => AwsDistributions)
|
|
12
|
-
distributions: Distributions;
|
|
13
|
-
|
|
14
|
-
@IsUUID()
|
|
15
|
-
buildId: string;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export class BuildDistributionJobFinished extends LudeoEvent {
|
|
19
|
-
static readonly EVENT_NAME = "cloud-builds.build-distribution-job-finished";
|
|
20
|
-
|
|
21
|
-
constructor(
|
|
22
|
-
payload: BuildDistributionJobFinishedPayload,
|
|
23
|
-
context: BuildContext
|
|
24
|
-
) {
|
|
25
|
-
super(BuildDistributionJobFinished.EVENT_NAME);
|
|
26
|
-
this.payload = payload;
|
|
27
|
-
this.context = context;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
@ValidateNestedType(() => BuildContext)
|
|
31
|
-
context: BuildContext;
|
|
32
|
-
|
|
33
|
-
@ValidateNestedType(() => BuildDistributionJobFinishedPayload)
|
|
34
|
-
payload: BuildDistributionJobFinishedPayload;
|
|
35
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { IsEnum } from "class-validator";
|
|
2
|
-
import { CloudProvider } from "../types";
|
|
3
|
-
import { BuildContext } from "../contexts/build-context";
|
|
4
|
-
import { CloudBuild } from "../types/build";
|
|
5
|
-
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
6
|
-
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
7
|
-
|
|
8
|
-
export class CreateBuildArtifactsJobPayload {
|
|
9
|
-
@ValidateNestedType(() => CloudBuild)
|
|
10
|
-
build: CloudBuild;
|
|
11
|
-
|
|
12
|
-
@IsEnum(CloudProvider)
|
|
13
|
-
cloudProvider: CloudProvider;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export class CreateBuildArtifactsJob extends LudeoEvent {
|
|
17
|
-
static readonly EVENT_NAME = "cloud-builds.create-build-artifacts-job";
|
|
18
|
-
|
|
19
|
-
constructor(payload: CreateBuildArtifactsJobPayload, context: BuildContext) {
|
|
20
|
-
super(CreateBuildArtifactsJob.EVENT_NAME);
|
|
21
|
-
this.payload = payload;
|
|
22
|
-
this.context = context;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
@ValidateNestedType(() => BuildContext)
|
|
26
|
-
context: BuildContext;
|
|
27
|
-
|
|
28
|
-
@ValidateNestedType(() => CreateBuildArtifactsJobPayload)
|
|
29
|
-
payload: CreateBuildArtifactsJobPayload;
|
|
30
|
-
}
|