@ludeo/cloud-common 1.2.198 → 1.2.199-ygbeta0
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/cloud-builds/copy-ludeocast-build-distibution-request.d.ts +13 -0
- package/dist/v4/events/cloud-builds/copy-ludeocast-build-distibution-request.js +49 -0
- package/dist/v4/events/cloud-builds/copy-ludeocast-build-distibution-request.js.map +1 -0
- package/dist/v4/events/cloud-builds/create-ludeocast-build-distribution-request.d.ts +3 -3
- package/dist/v4/events/cloud-builds/create-ludeocast-build-distribution-request.js +1 -2
- package/dist/v4/events/cloud-builds/create-ludeocast-build-distribution-request.js.map +1 -1
- package/dist/v4/events/cloud-builds/terminate-ludeocast-build-distribution-request.d.ts +4 -4
- package/dist/v4/events/cloud-builds/terminate-ludeocast-build-distribution-request.js +1 -2
- package/dist/v4/events/cloud-builds/terminate-ludeocast-build-distribution-request.js.map +1 -1
- package/dist/v4/events/cloud-resources/create-ludeocast-game-request.d.ts +5 -4
- package/dist/v4/events/cloud-resources/create-ludeocast-game-request.js +5 -1
- package/dist/v4/events/cloud-resources/create-ludeocast-game-request.js.map +1 -1
- package/dist/v4/events/cloud-resources/create-ludeocast-machine-request.d.ts +4 -3
- package/dist/v4/events/cloud-resources/create-ludeocast-machine-request.js +5 -1
- package/dist/v4/events/cloud-resources/create-ludeocast-machine-request.js.map +1 -1
- package/dist/v4/events/cloud-resources/terminate-ludeocast-machine-request.d.ts +4 -3
- package/dist/v4/events/cloud-resources/terminate-ludeocast-machine-request.js +5 -1
- package/dist/v4/events/cloud-resources/terminate-ludeocast-machine-request.js.map +1 -1
- package/dist/v4/events/site-controller/ludeocast-build-distribution-copy-ended.d.ts +16 -0
- package/dist/v4/events/site-controller/ludeocast-build-distribution-copy-ended.js +61 -0
- package/dist/v4/events/site-controller/ludeocast-build-distribution-copy-ended.js.map +1 -0
- package/package.json +1 -1
- package/src/v4/events/cloud-builds/copy-ludeocast-build-distibution-request.ts +36 -0
- package/src/v4/events/cloud-builds/create-ludeocast-build-distribution-request.ts +11 -9
- package/src/v4/events/cloud-builds/terminate-ludeocast-build-distribution-request.ts +13 -11
- package/src/v4/events/cloud-resources/create-ludeocast-game-request.ts +14 -9
- package/src/v4/events/cloud-resources/create-ludeocast-machine-request.ts +14 -8
- package/src/v4/events/cloud-resources/terminate-ludeocast-machine-request.ts +14 -8
- package/src/v4/events/site-controller/ludeocast-build-distribution-copy-ended.ts +46 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { LudeoEvent } from
|
|
2
|
-
import { ValidateNestedType } from
|
|
3
|
-
import { IsUUID } from
|
|
4
|
-
import { CloudResourceContext } from
|
|
5
|
-
import { LudeoCastV2ProviderSettings } from
|
|
1
|
+
import { LudeoEvent } from "../../../infra";
|
|
2
|
+
import { ValidateNestedType } from "../../../decorators";
|
|
3
|
+
import { IsString, IsUUID } from "class-validator";
|
|
4
|
+
import { CloudResourceContext } from "../../contexts";
|
|
5
|
+
import { LudeoCastV2ProviderSettings } from "../../types";
|
|
6
6
|
|
|
7
7
|
export class TerminateLudeocastMachineRequestPayload {
|
|
8
8
|
@IsUUID()
|
|
@@ -10,12 +10,19 @@ export class TerminateLudeocastMachineRequestPayload {
|
|
|
10
10
|
|
|
11
11
|
@ValidateNestedType(() => LudeoCastV2ProviderSettings)
|
|
12
12
|
providerSettings: LudeoCastV2ProviderSettings;
|
|
13
|
+
|
|
14
|
+
@IsString()
|
|
15
|
+
site: string;
|
|
13
16
|
}
|
|
14
17
|
|
|
15
18
|
export class TerminateLudeocastMachineRequest extends LudeoEvent {
|
|
16
|
-
static readonly EVENT_NAME =
|
|
19
|
+
static readonly EVENT_NAME =
|
|
20
|
+
"cloud-resources.terminate-ludeocast-machine-request";
|
|
17
21
|
|
|
18
|
-
constructor(
|
|
22
|
+
constructor(
|
|
23
|
+
payload: TerminateLudeocastMachineRequestPayload,
|
|
24
|
+
context: CloudResourceContext
|
|
25
|
+
) {
|
|
19
26
|
super(TerminateLudeocastMachineRequest.EVENT_NAME);
|
|
20
27
|
this.payload = payload;
|
|
21
28
|
this.context = context;
|
|
@@ -27,4 +34,3 @@ export class TerminateLudeocastMachineRequest extends LudeoEvent {
|
|
|
27
34
|
@ValidateNestedType(() => CloudResourceContext)
|
|
28
35
|
context: CloudResourceContext;
|
|
29
36
|
}
|
|
30
|
-
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { IsEnum, IsOptional, IsString } from "class-validator";
|
|
2
|
+
|
|
3
|
+
import { ValidateNestedType } from "../../../decorators";
|
|
4
|
+
import { LudeoEvent } from "../../../infra";
|
|
5
|
+
import { BuildContext } from "../../contexts";
|
|
6
|
+
import { SiteOperationStatus } from "../../types";
|
|
7
|
+
|
|
8
|
+
export class LudeocastBuildDistributionCopyEndedPayload {
|
|
9
|
+
@IsString()
|
|
10
|
+
buildId: string;
|
|
11
|
+
|
|
12
|
+
@IsEnum(SiteOperationStatus)
|
|
13
|
+
status: SiteOperationStatus;
|
|
14
|
+
|
|
15
|
+
@IsOptional()
|
|
16
|
+
@IsString()
|
|
17
|
+
reason?: string;
|
|
18
|
+
|
|
19
|
+
@IsOptional()
|
|
20
|
+
@IsString()
|
|
21
|
+
imageName?: string;
|
|
22
|
+
|
|
23
|
+
@IsOptional()
|
|
24
|
+
@IsString()
|
|
25
|
+
region?: string;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export class LudeocastBuildDistributionCopyEnded extends LudeoEvent {
|
|
29
|
+
static readonly EVENT_NAME =
|
|
30
|
+
"site-controller.ludeocast-build-distribution-copy-ended";
|
|
31
|
+
|
|
32
|
+
constructor(
|
|
33
|
+
payload: LudeocastBuildDistributionCopyEndedPayload,
|
|
34
|
+
context: BuildContext
|
|
35
|
+
) {
|
|
36
|
+
super(LudeocastBuildDistributionCopyEnded.EVENT_NAME);
|
|
37
|
+
this.payload = payload;
|
|
38
|
+
this.context = context;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@ValidateNestedType(() => LudeocastBuildDistributionCopyEndedPayload)
|
|
42
|
+
payload: LudeocastBuildDistributionCopyEndedPayload;
|
|
43
|
+
|
|
44
|
+
@ValidateNestedType(() => BuildContext)
|
|
45
|
+
context: BuildContext;
|
|
46
|
+
}
|