@ludeo/cloud-common 1.2.94-beta-yahil-14 → 1.2.95-dodofmine
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 +0 -9
- package/dist/v4/events/index.js +0 -9
- package/dist/v4/events/index.js.map +1 -1
- package/dist/v4/types/build.d.ts +1 -57
- package/dist/v4/types/build.js +1 -66
- package/dist/v4/types/build.js.map +1 -1
- package/dist/v4/types/pools/configuration/base.d.ts +1 -2
- package/dist/v4/types/pools/configuration/base.js +0 -5
- package/dist/v4/types/pools/configuration/base.js.map +1 -1
- package/dist/v4/types/pools/configuration/game.d.ts +3 -1
- package/dist/v4/types/pools/configuration/game.js +6 -0
- package/dist/v4/types/pools/configuration/game.js.map +1 -1
- package/dist/v4/types/pools/configuration/machine.d.ts +3 -1
- package/dist/v4/types/pools/configuration/machine.js +6 -0
- package/dist/v4/types/pools/configuration/machine.js.map +1 -1
- package/dist/v4/types/pools/configuration/type.d.ts +2 -1
- package/package.json +1 -1
- package/src/v4/events/index.ts +0 -9
- package/src/v4/types/build.ts +2 -78
- package/src/v4/types/pools/configuration/base.ts +0 -4
- package/src/v4/types/pools/configuration/game.ts +8 -1
- package/src/v4/types/pools/configuration/machine.ts +9 -2
- package/src/v4/types/pools/configuration/type.ts +9 -7
- package/dist/v4/events/assign-build.d.ts +0 -12
- package/dist/v4/events/assign-build.js +0 -45
- package/dist/v4/events/assign-build.js.map +0 -1
- package/dist/v4/events/build-assigned.d.ts +0 -12
- package/dist/v4/events/build-assigned.js +0 -45
- package/dist/v4/events/build-assigned.js.map +0 -1
- package/dist/v4/events/build-assignment-settings-job-finished.d.ts +0 -16
- package/dist/v4/events/build-assignment-settings-job-finished.js +0 -55
- package/dist/v4/events/build-assignment-settings-job-finished.js.map +0 -1
- package/dist/v4/events/build-assignment-settings-ready-for-creation.d.ts +0 -16
- package/dist/v4/events/build-assignment-settings-ready-for-creation.js +0 -55
- package/dist/v4/events/build-assignment-settings-ready-for-creation.js.map +0 -1
- package/dist/v4/events/build-assignment-settings-ready.d.ts +0 -12
- package/dist/v4/events/build-assignment-settings-ready.js +0 -45
- package/dist/v4/events/build-assignment-settings-ready.js.map +0 -1
- package/dist/v4/events/build-assignment-started.d.ts +0 -18
- package/dist/v4/events/build-assignment-started.js +0 -68
- package/dist/v4/events/build-assignment-started.js.map +0 -1
- package/dist/v4/events/create-build-assignment-settings-job.d.ts +0 -15
- package/dist/v4/events/create-build-assignment-settings-job.js +0 -51
- package/dist/v4/events/create-build-assignment-settings-job.js.map +0 -1
- package/dist/v4/events/monitor-aws-build-assignment-settings-status-task.d.ts +0 -13
- package/dist/v4/events/monitor-aws-build-assignment-settings-status-task.js +0 -44
- package/dist/v4/events/monitor-aws-build-assignment-settings-status-task.js.map +0 -1
- package/dist/v4/events/pools-ready-for-build-assignment.d.ts +0 -12
- package/dist/v4/events/pools-ready-for-build-assignment.js +0 -45
- package/dist/v4/events/pools-ready-for-build-assignment.js.map +0 -1
- package/src/v4/events/assign-build.ts +0 -28
- package/src/v4/events/build-assigned.ts +0 -28
- package/src/v4/events/build-assignment-settings-job-finished.ts +0 -43
- package/src/v4/events/build-assignment-settings-ready-for-creation.ts +0 -43
- package/src/v4/events/build-assignment-settings-ready.ts +0 -31
- package/src/v4/events/build-assignment-started.ts +0 -52
- package/src/v4/events/create-build-assignment-settings-job.ts +0 -37
- package/src/v4/events/monitor-aws-build-assignment-settings-status-task.ts +0 -33
- package/src/v4/events/pools-ready-for-build-assignment.ts +0 -31
|
@@ -1,43 +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
|
-
import {
|
|
7
|
-
BuildAssignmentProviderSettings,
|
|
8
|
-
AwsBuildAssignmentSettings,
|
|
9
|
-
} from "../types/build";
|
|
10
|
-
|
|
11
|
-
export class BuildAssignmentSettingsJobFinishedPayload {
|
|
12
|
-
@IsUUID()
|
|
13
|
-
envId: string;
|
|
14
|
-
|
|
15
|
-
@IsUUID()
|
|
16
|
-
buildId: string;
|
|
17
|
-
|
|
18
|
-
@IsEnum(CloudProvider)
|
|
19
|
-
cloudProvider: CloudProvider;
|
|
20
|
-
|
|
21
|
-
@ValidateNestedType(() => AwsBuildAssignmentSettings)
|
|
22
|
-
assignmentProviderSettings: BuildAssignmentProviderSettings;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export class BuildAssignmentSettingsJobFinished extends LudeoEvent {
|
|
26
|
-
static readonly EVENT_NAME =
|
|
27
|
-
"cloud-builds.build-assignment-settings-job-finished";
|
|
28
|
-
|
|
29
|
-
constructor(
|
|
30
|
-
payload: BuildAssignmentSettingsJobFinishedPayload,
|
|
31
|
-
context: BuildContext
|
|
32
|
-
) {
|
|
33
|
-
super(BuildAssignmentSettingsJobFinished.EVENT_NAME);
|
|
34
|
-
this.payload = payload;
|
|
35
|
-
this.context = context;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
@ValidateNestedType(() => BuildContext)
|
|
39
|
-
context: BuildContext;
|
|
40
|
-
|
|
41
|
-
@ValidateNestedType(() => BuildAssignmentSettingsJobFinishedPayload)
|
|
42
|
-
payload: BuildAssignmentSettingsJobFinishedPayload;
|
|
43
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { IsEnum, IsUUID } from "class-validator";
|
|
2
|
-
import { CloudProvider } from "../types";
|
|
3
|
-
import { BuildContext } from "../contexts/build-context";
|
|
4
|
-
import {
|
|
5
|
-
AwsBuildAssignmentSettings,
|
|
6
|
-
BuildAssignmentProviderSettings,
|
|
7
|
-
} from "../types/build";
|
|
8
|
-
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
9
|
-
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
10
|
-
|
|
11
|
-
export class BuildAssignmentSettingsReadyForCreationPayload {
|
|
12
|
-
@IsUUID()
|
|
13
|
-
buildId: string;
|
|
14
|
-
|
|
15
|
-
@IsUUID()
|
|
16
|
-
envId: string;
|
|
17
|
-
|
|
18
|
-
@ValidateNestedType(() => AwsBuildAssignmentSettings)
|
|
19
|
-
assignmentProviderSettings: BuildAssignmentProviderSettings;
|
|
20
|
-
|
|
21
|
-
@IsEnum(CloudProvider)
|
|
22
|
-
cloudProvider: CloudProvider;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export class BuildAssignmentSettingsReadyForCreation extends LudeoEvent {
|
|
26
|
-
static readonly EVENT_NAME =
|
|
27
|
-
"cloud-builds.build-assignment-settings-ready-for-creation";
|
|
28
|
-
|
|
29
|
-
constructor(
|
|
30
|
-
payload: BuildAssignmentSettingsReadyForCreationPayload,
|
|
31
|
-
context: BuildContext
|
|
32
|
-
) {
|
|
33
|
-
super(BuildAssignmentSettingsReadyForCreation.EVENT_NAME);
|
|
34
|
-
this.payload = payload;
|
|
35
|
-
this.context = context;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
@ValidateNestedType(() => BuildContext)
|
|
39
|
-
context: BuildContext;
|
|
40
|
-
|
|
41
|
-
@ValidateNestedType(() => BuildAssignmentSettingsReadyForCreationPayload)
|
|
42
|
-
payload: BuildAssignmentSettingsReadyForCreationPayload;
|
|
43
|
-
}
|
|
@@ -1,31 +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 BuildAssignmentSettingsReadyPayload {
|
|
7
|
-
@IsUUID()
|
|
8
|
-
envId: string;
|
|
9
|
-
|
|
10
|
-
@IsUUID()
|
|
11
|
-
buildId: string;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export class BuildAssignmentSettingsReady extends LudeoEvent {
|
|
15
|
-
static readonly EVENT_NAME = "cloud-builds.build-assignment-settings-ready";
|
|
16
|
-
|
|
17
|
-
constructor(
|
|
18
|
-
payload: BuildAssignmentSettingsReadyPayload,
|
|
19
|
-
context: BuildContext
|
|
20
|
-
) {
|
|
21
|
-
super(BuildAssignmentSettingsReady.EVENT_NAME);
|
|
22
|
-
this.payload = payload;
|
|
23
|
-
this.context = context;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
@ValidateNestedType(() => BuildContext)
|
|
27
|
-
context: BuildContext;
|
|
28
|
-
|
|
29
|
-
@ValidateNestedType(() => BuildAssignmentSettingsReadyPayload)
|
|
30
|
-
payload: BuildAssignmentSettingsReadyPayload;
|
|
31
|
-
}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { IsEnum, IsOptional, 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 {
|
|
6
|
-
BuildAssignmentProviderSettings,
|
|
7
|
-
AwsBuildAssignmentSettings,
|
|
8
|
-
BuildVersionMeta,
|
|
9
|
-
RolloutConfig,
|
|
10
|
-
BuildAssignmentCase,
|
|
11
|
-
} from "../types/build";
|
|
12
|
-
|
|
13
|
-
export class BuildAssignmentStartedPayload {
|
|
14
|
-
@IsUUID()
|
|
15
|
-
envId: string;
|
|
16
|
-
|
|
17
|
-
@ValidateNestedType(() => BuildVersionMeta)
|
|
18
|
-
targetBuild: BuildVersionMeta;
|
|
19
|
-
|
|
20
|
-
@IsOptional()
|
|
21
|
-
@ValidateNestedType(() => BuildVersionMeta)
|
|
22
|
-
previousBuild?: BuildVersionMeta;
|
|
23
|
-
|
|
24
|
-
@ValidateNestedType(() => RolloutConfig)
|
|
25
|
-
rolloutConfigTargetBuild: RolloutConfig;
|
|
26
|
-
|
|
27
|
-
@IsOptional()
|
|
28
|
-
@ValidateNestedType(() => RolloutConfig)
|
|
29
|
-
rolloutConfigPreviousBuild?: RolloutConfig;
|
|
30
|
-
|
|
31
|
-
@ValidateNestedType(() => AwsBuildAssignmentSettings)
|
|
32
|
-
assignmentProviderSettings: BuildAssignmentProviderSettings;
|
|
33
|
-
|
|
34
|
-
@IsEnum(BuildAssignmentCase)
|
|
35
|
-
buildAssignmentCase: BuildAssignmentCase;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export class BuildAssignmentStarted extends LudeoEvent {
|
|
39
|
-
static readonly EVENT_NAME = "cloud-builds.build-assignment-started";
|
|
40
|
-
|
|
41
|
-
constructor(payload: BuildAssignmentStartedPayload, context: BuildContext) {
|
|
42
|
-
super(BuildAssignmentStarted.EVENT_NAME);
|
|
43
|
-
this.payload = payload;
|
|
44
|
-
this.context = context;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
@ValidateNestedType(() => BuildContext)
|
|
48
|
-
context: BuildContext;
|
|
49
|
-
|
|
50
|
-
@ValidateNestedType(() => BuildAssignmentStartedPayload)
|
|
51
|
-
payload: BuildAssignmentStartedPayload;
|
|
52
|
-
}
|
|
@@ -1,37 +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
|
-
import { CloudBuild } from "../types/build";
|
|
7
|
-
|
|
8
|
-
export class CreateBuildAssignmentSettingsJobPayload {
|
|
9
|
-
@IsUUID()
|
|
10
|
-
envId: string;
|
|
11
|
-
|
|
12
|
-
@ValidateNestedType(() => CloudBuild)
|
|
13
|
-
build: CloudBuild;
|
|
14
|
-
|
|
15
|
-
@IsEnum(CloudProvider)
|
|
16
|
-
cloudProvider: CloudProvider;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export class CreateBuildAssignmentSettingsJob extends LudeoEvent {
|
|
20
|
-
static readonly EVENT_NAME =
|
|
21
|
-
"cloud-builds.create-build-assignment-settings-job";
|
|
22
|
-
|
|
23
|
-
constructor(
|
|
24
|
-
payload: CreateBuildAssignmentSettingsJobPayload,
|
|
25
|
-
context: BuildContext
|
|
26
|
-
) {
|
|
27
|
-
super(CreateBuildAssignmentSettingsJob.EVENT_NAME);
|
|
28
|
-
this.payload = payload;
|
|
29
|
-
this.context = context;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
@ValidateNestedType(() => BuildContext)
|
|
33
|
-
context: BuildContext;
|
|
34
|
-
|
|
35
|
-
@ValidateNestedType(() => CreateBuildAssignmentSettingsJobPayload)
|
|
36
|
-
payload: CreateBuildAssignmentSettingsJobPayload;
|
|
37
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { IsUUID } from "class-validator";
|
|
2
|
-
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
3
|
-
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
4
|
-
import {
|
|
5
|
-
AwsBuildAssignmentSettings,
|
|
6
|
-
BuildAssignmentProviderSettings,
|
|
7
|
-
} from "../types/build";
|
|
8
|
-
|
|
9
|
-
export class MonitorAwsBuildAssignmentSettingsStatusTaskPayload {
|
|
10
|
-
@ValidateNestedType(() => AwsBuildAssignmentSettings)
|
|
11
|
-
assignmentProviderSettings: BuildAssignmentProviderSettings;
|
|
12
|
-
|
|
13
|
-
@IsUUID()
|
|
14
|
-
buildId: string;
|
|
15
|
-
|
|
16
|
-
@IsUUID()
|
|
17
|
-
envId: string;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export class MonitorAwsBuildAssignmentSettingsStatusTask extends LudeoEvent {
|
|
21
|
-
static readonly EVENT_NAME =
|
|
22
|
-
"cloud-builds.monitor-aws-build-assignment-settings-status-task";
|
|
23
|
-
|
|
24
|
-
constructor(payload: MonitorAwsBuildAssignmentSettingsStatusTaskPayload) {
|
|
25
|
-
super(MonitorAwsBuildAssignmentSettingsStatusTask.EVENT_NAME);
|
|
26
|
-
this.payload = payload;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
context: never;
|
|
30
|
-
|
|
31
|
-
@ValidateNestedType(() => MonitorAwsBuildAssignmentSettingsStatusTaskPayload)
|
|
32
|
-
payload: MonitorAwsBuildAssignmentSettingsStatusTaskPayload;
|
|
33
|
-
}
|
|
@@ -1,31 +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 PoolsReadyForBuildAssignmentPayload {
|
|
7
|
-
@IsUUID()
|
|
8
|
-
envId: string;
|
|
9
|
-
|
|
10
|
-
@IsUUID()
|
|
11
|
-
buildId: string;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export class PoolsReadyForBuildAssignment extends LudeoEvent {
|
|
15
|
-
static readonly EVENT_NAME = "cloud-pools.pools-ready-for-build-assignment";
|
|
16
|
-
|
|
17
|
-
constructor(
|
|
18
|
-
payload: PoolsReadyForBuildAssignmentPayload,
|
|
19
|
-
context: BuildContext
|
|
20
|
-
) {
|
|
21
|
-
super(PoolsReadyForBuildAssignment.EVENT_NAME);
|
|
22
|
-
this.payload = payload;
|
|
23
|
-
this.context = context;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
@ValidateNestedType(() => BuildContext)
|
|
27
|
-
context: BuildContext;
|
|
28
|
-
|
|
29
|
-
@ValidateNestedType(() => PoolsReadyForBuildAssignmentPayload)
|
|
30
|
-
payload: PoolsReadyForBuildAssignmentPayload;
|
|
31
|
-
}
|