@ludeo/cloud-common 1.2.77-ygarbage → 1.2.78
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-artifacts-job-failed.d.ts +13 -0
- package/dist/v4/events/{build-distribution-failed-response.js → build-artifacts-job-failed.js} +14 -14
- package/dist/v4/events/build-artifacts-job-failed.js.map +1 -0
- package/dist/v4/events/build-artifacts-job-finished.d.ts +15 -0
- package/dist/v4/events/{build-distributed-successfully.js → build-artifacts-job-finished.js} +16 -16
- package/dist/v4/events/build-artifacts-job-finished.js.map +1 -0
- package/dist/v4/events/build-created.d.ts +11 -0
- package/dist/v4/events/{post-game-creation-delay-task.js → build-created.js} +18 -17
- package/dist/v4/events/build-created.js.map +1 -0
- package/dist/v4/events/build-distributed.d.ts +11 -0
- package/dist/v4/events/build-distributed.js +41 -0
- package/dist/v4/events/build-distributed.js.map +1 -0
- package/dist/v4/events/{build-distribution-failed-response.d.ts → build-distribution-job-failed.d.ts} +5 -5
- package/dist/v4/events/build-distribution-job-failed.js +46 -0
- package/dist/v4/events/build-distribution-job-failed.js.map +1 -0
- package/dist/v4/events/build-distribution-job-finished.d.ts +14 -0
- package/dist/v4/events/build-distribution-job-finished.js +50 -0
- package/dist/v4/events/build-distribution-job-finished.js.map +1 -0
- package/dist/v4/events/create-build-artifacts-job.d.ts +14 -0
- package/dist/v4/events/create-build-artifacts-job.js +47 -0
- package/dist/v4/events/create-build-artifacts-job.js.map +1 -0
- package/dist/v4/events/{distribute-build-request.d.ts → distribute-build-job.d.ts} +5 -5
- package/dist/v4/events/{distribute-build-request.js → distribute-build-job.js} +14 -14
- package/dist/v4/events/distribute-build-job.js.map +1 -0
- package/dist/v4/events/index.d.ts +8 -4
- package/dist/v4/events/index.js +8 -4
- package/dist/v4/events/index.js.map +1 -1
- package/dist/v4/types/build.d.ts +36 -24
- package/dist/v4/types/build.js +31 -5
- package/dist/v4/types/build.js.map +1 -1
- package/dist/v4/types/pools/configuration/game.d.ts +1 -1
- package/dist/v4/types/pools/configuration/game.js +1 -1
- package/dist/v4/types/pools/configuration/game.js.map +1 -1
- package/package.json +1 -1
- package/src/v4/events/build-artifacts-job-failed.ts +29 -0
- package/src/v4/events/build-artifacts-job-finished.ts +36 -0
- package/src/v4/events/build-created.ts +25 -0
- package/src/v4/events/build-distributed.ts +25 -0
- package/src/v4/events/{build-distribution-failed-response.ts → build-distribution-job-failed.ts} +7 -8
- package/src/v4/events/build-distribution-job-finished.ts +35 -0
- package/src/v4/events/create-build-artifacts-job.ts +30 -0
- package/src/v4/events/{distribute-build-request.ts → distribute-build-job.ts} +7 -7
- package/src/v4/events/index.ts +8 -4
- package/src/v4/types/build.ts +38 -25
- package/src/v4/types/pools/configuration/game.ts +1 -1
- package/dist/v4/events/build-distributed-successfully.d.ts +0 -15
- package/dist/v4/events/build-distributed-successfully.js.map +0 -1
- package/dist/v4/events/build-distribution-failed-response.js.map +0 -1
- package/dist/v4/events/distribute-build-request.js.map +0 -1
- package/dist/v4/events/post-game-creation-delay-task.d.ts +0 -11
- package/dist/v4/events/post-game-creation-delay-task.js.map +0 -1
- package/src/v4/events/build-distributed-successfully.ts +0 -36
- package/src/v4/events/post-game-creation-delay-task.ts +0 -27
|
@@ -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 { AwsDistributorResponse, DistributorResponse } from "../types/build";
|
|
5
|
-
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
6
|
-
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
7
|
-
|
|
8
|
-
export class BuildDistributedSuccessfullyPayload {
|
|
9
|
-
@IsEnum(CloudProvider)
|
|
10
|
-
cloudProvider: CloudProvider;
|
|
11
|
-
|
|
12
|
-
@ValidateNestedType(() => AwsDistributorResponse)
|
|
13
|
-
distributorResponse: DistributorResponse;
|
|
14
|
-
|
|
15
|
-
@IsUUID()
|
|
16
|
-
buildId: string;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export class BuildDistributedSuccessfully extends LudeoEvent {
|
|
20
|
-
static readonly EVENT_NAME = "cloud-builds.build-distributed-successfully";
|
|
21
|
-
|
|
22
|
-
constructor(
|
|
23
|
-
payload: BuildDistributedSuccessfullyPayload,
|
|
24
|
-
context: BuildContext
|
|
25
|
-
) {
|
|
26
|
-
super(BuildDistributedSuccessfully.EVENT_NAME);
|
|
27
|
-
this.payload = payload;
|
|
28
|
-
this.context = context;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
@ValidateNestedType(() => BuildContext)
|
|
32
|
-
context: BuildContext;
|
|
33
|
-
|
|
34
|
-
@ValidateNestedType(() => BuildDistributedSuccessfullyPayload)
|
|
35
|
-
payload: BuildDistributedSuccessfullyPayload;
|
|
36
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
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
|
-
}
|