@ludeo/cloud-common 1.2.187 → 1.2.188-beta-yahil-1
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/create-snapshot-request.d.ts +2 -2
- package/dist/v4/events/cloud-builds/create-snapshot-request.js +2 -0
- package/dist/v4/events/cloud-builds/create-snapshot-request.js.map +1 -1
- package/dist/v4/types/site-controller/create-snapshot.dto.d.ts +2 -0
- package/dist/v4/types/site-controller/create-snapshot.dto.js +9 -0
- package/dist/v4/types/site-controller/create-snapshot.dto.js.map +1 -1
- package/package.json +1 -1
- package/src/v4/events/cloud-builds/create-snapshot-request.ts +5 -3
- package/src/v4/types/site-controller/create-snapshot.dto.ts +8 -1
|
@@ -3,8 +3,8 @@ import { SiteControllerContext } from '../../contexts';
|
|
|
3
3
|
export declare class CreateSnapshotRequestPayload {
|
|
4
4
|
buildId: string;
|
|
5
5
|
downloadURL: string;
|
|
6
|
-
site
|
|
7
|
-
region
|
|
6
|
+
site?: string;
|
|
7
|
+
region?: string;
|
|
8
8
|
}
|
|
9
9
|
export declare class CreateSnapshotRequest extends LudeoEvent {
|
|
10
10
|
static readonly EVENT_NAME = "cloud-builds.create-snapshot-request";
|
|
@@ -26,10 +26,12 @@ __decorate([
|
|
|
26
26
|
__metadata("design:type", String)
|
|
27
27
|
], CreateSnapshotRequestPayload.prototype, "downloadURL", void 0);
|
|
28
28
|
__decorate([
|
|
29
|
+
(0, class_validator_1.IsOptional)(),
|
|
29
30
|
(0, class_validator_1.IsString)(),
|
|
30
31
|
__metadata("design:type", String)
|
|
31
32
|
], CreateSnapshotRequestPayload.prototype, "site", void 0);
|
|
32
33
|
__decorate([
|
|
34
|
+
(0, class_validator_1.IsOptional)(),
|
|
33
35
|
(0, class_validator_1.IsString)(),
|
|
34
36
|
__metadata("design:type", String)
|
|
35
37
|
], CreateSnapshotRequestPayload.prototype, "region", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-snapshot-request.js","sourceRoot":"","sources":["../../../../src/v4/events/cloud-builds/create-snapshot-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAC5C,oDAAyD;AACzD,
|
|
1
|
+
{"version":3,"file":"create-snapshot-request.js","sourceRoot":"","sources":["../../../../src/v4/events/cloud-builds/create-snapshot-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAC5C,oDAAyD;AACzD,qDAAuD;AACvD,6CAAuD;AAEvD,MAAa,4BAA4B;CAcxC;AAdD,oEAcC;AAZC;IADC,IAAA,0BAAQ,GAAE;;6DACK;AAGhB;IADC,IAAA,0BAAQ,GAAE;;iEACS;AAIpB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;0DACG;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;4DACK;AAGlB,MAAa,qBAAsB,SAAQ,kBAAU;IAGnD,YAAY,OAAqC,EAAE,OAA8B;QAC/E,KAAK,CAAC,qBAAqB,CAAC,UAAU,CAAC,CAAC;QACxC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,sDAcC;AAbiB,gCAAU,GAAG,sCAAsC,CAAC;AASpE;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,4BAA4B,CAAC;8BAC9C,4BAA4B;sDAAC;AAGtC;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,gCAAqB,CAAC;8BACvC,gCAAqB;sDAAC"}
|
|
@@ -18,6 +18,10 @@ __decorate([
|
|
|
18
18
|
(0, class_validator_1.IsString)(),
|
|
19
19
|
__metadata("design:type", String)
|
|
20
20
|
], CreateSnapshotRequestDto.prototype, "downloadURL", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsString)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], CreateSnapshotRequestDto.prototype, "buildId", void 0);
|
|
21
25
|
class CreateSnapshotResponseDto {
|
|
22
26
|
}
|
|
23
27
|
exports.CreateSnapshotResponseDto = CreateSnapshotResponseDto;
|
|
@@ -26,4 +30,9 @@ __decorate([
|
|
|
26
30
|
(0, class_validator_1.IsString)(),
|
|
27
31
|
__metadata("design:type", String)
|
|
28
32
|
], CreateSnapshotResponseDto.prototype, "message", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_validator_1.IsOptional)(),
|
|
35
|
+
(0, class_validator_1.IsString)(),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], CreateSnapshotResponseDto.prototype, "snapshotName", void 0);
|
|
29
38
|
//# sourceMappingURL=create-snapshot.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-snapshot.dto.js","sourceRoot":"","sources":["../../../../src/v4/types/site-controller/create-snapshot.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AAEvD,MAAa,wBAAwB;
|
|
1
|
+
{"version":3,"file":"create-snapshot.dto.js","sourceRoot":"","sources":["../../../../src/v4/types/site-controller/create-snapshot.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AAEvD,MAAa,wBAAwB;CAMpC;AAND,4DAMC;AAJC;IADC,IAAA,0BAAQ,GAAE;;6DACS;AAGpB;IADC,IAAA,0BAAQ,GAAE;;yDACK;AAGlB,MAAa,yBAAyB;CAUrC;AAVD,8DAUC;AALC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;0DACM;AAIjB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;+DACW"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LudeoEvent } from '../../../infra';
|
|
2
2
|
import { ValidateNestedType } from '../../../decorators';
|
|
3
|
-
import { IsString } from 'class-validator';
|
|
3
|
+
import { IsString, IsOptional } from 'class-validator';
|
|
4
4
|
import { SiteControllerContext } from '../../contexts';
|
|
5
5
|
|
|
6
6
|
export class CreateSnapshotRequestPayload {
|
|
@@ -10,11 +10,13 @@ export class CreateSnapshotRequestPayload {
|
|
|
10
10
|
@IsString()
|
|
11
11
|
downloadURL: string;
|
|
12
12
|
|
|
13
|
+
@IsOptional()
|
|
13
14
|
@IsString()
|
|
14
|
-
site
|
|
15
|
+
site?: string;
|
|
15
16
|
|
|
17
|
+
@IsOptional()
|
|
16
18
|
@IsString()
|
|
17
|
-
region
|
|
19
|
+
region?: string;
|
|
18
20
|
}
|
|
19
21
|
|
|
20
22
|
export class CreateSnapshotRequest extends LudeoEvent {
|
|
@@ -2,7 +2,10 @@ import { IsOptional, IsString } from 'class-validator';
|
|
|
2
2
|
|
|
3
3
|
export class CreateSnapshotRequestDto {
|
|
4
4
|
@IsString()
|
|
5
|
-
downloadURL: string;
|
|
5
|
+
downloadURL: string; // S3 URL (e.g., s3://bucket/path)
|
|
6
|
+
|
|
7
|
+
@IsString()
|
|
8
|
+
buildId: string; // Build ID for snapshot naming (e.g., 'build-{buildId}')
|
|
6
9
|
}
|
|
7
10
|
|
|
8
11
|
export class CreateSnapshotResponseDto {
|
|
@@ -11,5 +14,9 @@ export class CreateSnapshotResponseDto {
|
|
|
11
14
|
@IsOptional()
|
|
12
15
|
@IsString()
|
|
13
16
|
message?: string;
|
|
17
|
+
|
|
18
|
+
@IsOptional()
|
|
19
|
+
@IsString()
|
|
20
|
+
snapshotName?: string; // Name of the created snapshot
|
|
14
21
|
}
|
|
15
22
|
|