@ludeo/cloud-common 1.2.184-beta-yahil-2 → 1.2.184-beta-yahil-3
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-resources/create-ludeocast-machine-request.d.ts +2 -5
- package/dist/v4/events/cloud-resources/create-ludeocast-machine-request.js +4 -16
- 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 +2 -2
- package/dist/v4/events/cloud-resources/terminate-ludeocast-machine-request.js +4 -7
- package/dist/v4/events/cloud-resources/terminate-ludeocast-machine-request.js.map +1 -1
- package/package.json +1 -1
- package/src/v4/events/cloud-resources/create-ludeocast-machine-request.ts +4 -13
- package/src/v4/events/cloud-resources/terminate-ludeocast-machine-request.ts +4 -6
|
@@ -1,16 +1,13 @@
|
|
|
1
1
|
import { LudeoEvent } from '../../../infra';
|
|
2
|
-
import { MachineMode } from '../../types/site-controller';
|
|
3
2
|
import { CloudResourceContext } from '../../contexts';
|
|
3
|
+
import { LudeoCastV2ProviderSettings } from '../../types';
|
|
4
4
|
export declare class AndroidMachineCreationPayload {
|
|
5
5
|
}
|
|
6
6
|
export type MachineCreationPayload = AndroidMachineCreationPayload;
|
|
7
7
|
export declare class CreateLudeocastMachineRequestPayload {
|
|
8
8
|
machineResourceId: string;
|
|
9
|
-
mode: MachineMode;
|
|
10
9
|
machineCreationPayload?: MachineCreationPayload;
|
|
11
|
-
|
|
12
|
-
region: string;
|
|
13
|
-
machineType: string;
|
|
10
|
+
providerSettings: LudeoCastV2ProviderSettings;
|
|
14
11
|
}
|
|
15
12
|
export declare class CreateLudeocastMachineRequest extends LudeoEvent {
|
|
16
13
|
static readonly EVENT_NAME = "cloud-resources.create-ludeocast-machine-request";
|
|
@@ -13,8 +13,8 @@ exports.CreateLudeocastMachineRequest = exports.CreateLudeocastMachineRequestPay
|
|
|
13
13
|
const infra_1 = require("../../../infra");
|
|
14
14
|
const decorators_1 = require("../../../decorators");
|
|
15
15
|
const class_validator_1 = require("class-validator");
|
|
16
|
-
const site_controller_1 = require("../../types/site-controller");
|
|
17
16
|
const contexts_1 = require("../../contexts");
|
|
17
|
+
const types_1 = require("../../types");
|
|
18
18
|
class AndroidMachineCreationPayload {
|
|
19
19
|
}
|
|
20
20
|
exports.AndroidMachineCreationPayload = AndroidMachineCreationPayload;
|
|
@@ -25,27 +25,15 @@ __decorate([
|
|
|
25
25
|
(0, class_validator_1.IsUUID)(),
|
|
26
26
|
__metadata("design:type", String)
|
|
27
27
|
], CreateLudeocastMachineRequestPayload.prototype, "machineResourceId", void 0);
|
|
28
|
-
__decorate([
|
|
29
|
-
(0, class_validator_1.IsEnum)(site_controller_1.MachineMode),
|
|
30
|
-
__metadata("design:type", String)
|
|
31
|
-
], CreateLudeocastMachineRequestPayload.prototype, "mode", void 0);
|
|
32
28
|
__decorate([
|
|
33
29
|
(0, class_validator_1.IsOptional)(),
|
|
34
30
|
(0, decorators_1.ValidateNestedType)(() => AndroidMachineCreationPayload),
|
|
35
31
|
__metadata("design:type", Object)
|
|
36
32
|
], CreateLudeocastMachineRequestPayload.prototype, "machineCreationPayload", void 0);
|
|
37
33
|
__decorate([
|
|
38
|
-
(0,
|
|
39
|
-
__metadata("design:type",
|
|
40
|
-
], CreateLudeocastMachineRequestPayload.prototype, "
|
|
41
|
-
__decorate([
|
|
42
|
-
(0, class_validator_1.IsString)(),
|
|
43
|
-
__metadata("design:type", String)
|
|
44
|
-
], CreateLudeocastMachineRequestPayload.prototype, "region", void 0);
|
|
45
|
-
__decorate([
|
|
46
|
-
(0, class_validator_1.IsString)(),
|
|
47
|
-
__metadata("design:type", String)
|
|
48
|
-
], CreateLudeocastMachineRequestPayload.prototype, "machineType", void 0);
|
|
34
|
+
(0, decorators_1.ValidateNestedType)(() => types_1.LudeoCastV2ProviderSettings),
|
|
35
|
+
__metadata("design:type", types_1.LudeoCastV2ProviderSettings)
|
|
36
|
+
], CreateLudeocastMachineRequestPayload.prototype, "providerSettings", void 0);
|
|
49
37
|
class CreateLudeocastMachineRequest extends infra_1.LudeoEvent {
|
|
50
38
|
constructor(payload, context) {
|
|
51
39
|
super(CreateLudeocastMachineRequest.EVENT_NAME);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-ludeocast-machine-request.js","sourceRoot":"","sources":["../../../../src/v4/events/cloud-resources/create-ludeocast-machine-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAC5C,oDAAyD;AACzD,
|
|
1
|
+
{"version":3,"file":"create-ludeocast-machine-request.js","sourceRoot":"","sources":["../../../../src/v4/events/cloud-resources/create-ludeocast-machine-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAC5C,oDAAyD;AACzD,qDAAqD;AACrD,6CAAsD;AACtD,uCAA0D;AAE1D,MAAa,6BAA6B;CAAG;AAA7C,sEAA6C;AAI7C,MAAa,oCAAoC;CAUhD;AAVD,oFAUC;AARC;IADC,IAAA,wBAAM,GAAE;;+EACiB;AAI1B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,6BAA6B,CAAC;;oFACR;AAGhD;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,mCAA2B,CAAC;8BACpC,mCAA2B;8EAAC;AAGhD,MAAa,6BAA8B,SAAQ,kBAAU;IAG3D,YAAY,OAA6C,EAAE,OAA6B;QACtF,KAAK,CAAC,6BAA6B,CAAC,UAAU,CAAC,CAAC;QAChD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,sEAcC;AAbiB,wCAAU,GAAG,kDAAkD,CAAC;AAShF;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,oCAAoC,CAAC;8BACtD,oCAAoC;8DAAC;AAG9C;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;8DAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { LudeoEvent } from '../../../infra';
|
|
2
2
|
import { CloudResourceContext } from '../../contexts';
|
|
3
|
+
import { LudeoCastV2ProviderSettings } from '../../types';
|
|
3
4
|
export declare class TerminateLudeocastMachineRequestPayload {
|
|
4
5
|
machineResourceId: string;
|
|
5
|
-
|
|
6
|
-
region: string;
|
|
6
|
+
providerSettings: LudeoCastV2ProviderSettings;
|
|
7
7
|
}
|
|
8
8
|
export declare class TerminateLudeocastMachineRequest extends LudeoEvent {
|
|
9
9
|
static readonly EVENT_NAME = "cloud-resources.terminate-ludeocast-machine-request";
|
|
@@ -14,6 +14,7 @@ const infra_1 = require("../../../infra");
|
|
|
14
14
|
const decorators_1 = require("../../../decorators");
|
|
15
15
|
const class_validator_1 = require("class-validator");
|
|
16
16
|
const contexts_1 = require("../../contexts");
|
|
17
|
+
const types_1 = require("../../types");
|
|
17
18
|
class TerminateLudeocastMachineRequestPayload {
|
|
18
19
|
}
|
|
19
20
|
exports.TerminateLudeocastMachineRequestPayload = TerminateLudeocastMachineRequestPayload;
|
|
@@ -22,13 +23,9 @@ __decorate([
|
|
|
22
23
|
__metadata("design:type", String)
|
|
23
24
|
], TerminateLudeocastMachineRequestPayload.prototype, "machineResourceId", void 0);
|
|
24
25
|
__decorate([
|
|
25
|
-
(0,
|
|
26
|
-
__metadata("design:type",
|
|
27
|
-
], TerminateLudeocastMachineRequestPayload.prototype, "
|
|
28
|
-
__decorate([
|
|
29
|
-
(0, class_validator_1.IsString)(),
|
|
30
|
-
__metadata("design:type", String)
|
|
31
|
-
], TerminateLudeocastMachineRequestPayload.prototype, "region", void 0);
|
|
26
|
+
(0, decorators_1.ValidateNestedType)(() => types_1.LudeoCastV2ProviderSettings),
|
|
27
|
+
__metadata("design:type", types_1.LudeoCastV2ProviderSettings)
|
|
28
|
+
], TerminateLudeocastMachineRequestPayload.prototype, "providerSettings", void 0);
|
|
32
29
|
class TerminateLudeocastMachineRequest extends infra_1.LudeoEvent {
|
|
33
30
|
constructor(payload, context) {
|
|
34
31
|
super(TerminateLudeocastMachineRequest.EVENT_NAME);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"terminate-ludeocast-machine-request.js","sourceRoot":"","sources":["../../../../src/v4/events/cloud-resources/terminate-ludeocast-machine-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAC5C,oDAAyD;AACzD,
|
|
1
|
+
{"version":3,"file":"terminate-ludeocast-machine-request.js","sourceRoot":"","sources":["../../../../src/v4/events/cloud-resources/terminate-ludeocast-machine-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAC5C,oDAAyD;AACzD,qDAAyC;AACzC,6CAAsD;AACtD,uCAA0D;AAE1D,MAAa,uCAAuC;CAMnD;AAND,0FAMC;AAJC;IADC,IAAA,wBAAM,GAAE;;kFACiB;AAG1B;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,mCAA2B,CAAC;8BACpC,mCAA2B;iFAAC;AAGhD,MAAa,gCAAiC,SAAQ,kBAAU;IAG9D,YAAY,OAAgD,EAAE,OAA6B;QACzF,KAAK,CAAC,gCAAgC,CAAC,UAAU,CAAC,CAAC;QACnD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,4EAcC;AAbiB,2CAAU,GAAG,qDAAqD,CAAC;AASnF;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,uCAAuC,CAAC;8BACzD,uCAAuC;iEAAC;AAGjD;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;iEAAC"}
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { LudeoEvent } from '../../../infra';
|
|
2
2
|
import { ValidateNestedType } from '../../../decorators';
|
|
3
|
-
import {
|
|
4
|
-
import { MachineMode } from '../../types/site-controller';
|
|
3
|
+
import { IsOptional, IsUUID } from 'class-validator';
|
|
5
4
|
import { CloudResourceContext } from '../../contexts';
|
|
5
|
+
import { LudeoCastV2ProviderSettings } from '../../types';
|
|
6
6
|
|
|
7
7
|
export class AndroidMachineCreationPayload {}
|
|
8
8
|
|
|
@@ -12,21 +12,12 @@ export class CreateLudeocastMachineRequestPayload {
|
|
|
12
12
|
@IsUUID()
|
|
13
13
|
machineResourceId: string;
|
|
14
14
|
|
|
15
|
-
@IsEnum(MachineMode)
|
|
16
|
-
mode: MachineMode;
|
|
17
|
-
|
|
18
15
|
@IsOptional()
|
|
19
16
|
@ValidateNestedType(() => AndroidMachineCreationPayload)
|
|
20
17
|
machineCreationPayload?: MachineCreationPayload;
|
|
21
18
|
|
|
22
|
-
@
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
@IsString()
|
|
26
|
-
region: string;
|
|
27
|
-
|
|
28
|
-
@IsString()
|
|
29
|
-
machineType: string;
|
|
19
|
+
@ValidateNestedType(() => LudeoCastV2ProviderSettings)
|
|
20
|
+
providerSettings: LudeoCastV2ProviderSettings;
|
|
30
21
|
}
|
|
31
22
|
|
|
32
23
|
export class CreateLudeocastMachineRequest extends LudeoEvent {
|
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
import { LudeoEvent } from '../../../infra';
|
|
2
2
|
import { ValidateNestedType } from '../../../decorators';
|
|
3
|
-
import {
|
|
3
|
+
import { IsUUID } from 'class-validator';
|
|
4
4
|
import { CloudResourceContext } from '../../contexts';
|
|
5
|
+
import { LudeoCastV2ProviderSettings } from '../../types';
|
|
5
6
|
|
|
6
7
|
export class TerminateLudeocastMachineRequestPayload {
|
|
7
8
|
@IsUUID()
|
|
8
9
|
machineResourceId: string;
|
|
9
10
|
|
|
10
|
-
@
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
@IsString()
|
|
14
|
-
region: string;
|
|
11
|
+
@ValidateNestedType(() => LudeoCastV2ProviderSettings)
|
|
12
|
+
providerSettings: LudeoCastV2ProviderSettings;
|
|
15
13
|
}
|
|
16
14
|
|
|
17
15
|
export class TerminateLudeocastMachineRequest extends LudeoEvent {
|