@ludeo/cloud-common 1.2.200-beta-yahil-1 → 1.2.200-beta-yahil-2

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.
@@ -1,7 +1,7 @@
1
- import { LudeocastV2DistributionData, LudeocastV2Distributions } from '../build';
1
+ import { LudeocastV2Distributions } from '../build';
2
2
  export declare class CreateBuildDistributionRequestDto {
3
3
  downloadURL: string;
4
- distributionData: LudeocastV2DistributionData;
4
+ sizeGB: number;
5
5
  buildId: string;
6
6
  regions: string[];
7
7
  }
@@ -12,7 +12,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.CreateBuildDistributionResponseDto = exports.CreateBuildDistributionRequestDto = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
14
  const build_1 = require("../build");
15
- const decorators_1 = require("../../../decorators");
16
15
  class CreateBuildDistributionRequestDto {
17
16
  }
18
17
  exports.CreateBuildDistributionRequestDto = CreateBuildDistributionRequestDto;
@@ -21,9 +20,9 @@ __decorate([
21
20
  __metadata("design:type", String)
22
21
  ], CreateBuildDistributionRequestDto.prototype, "downloadURL", void 0);
23
22
  __decorate([
24
- (0, decorators_1.ValidateNestedType)(() => build_1.LudeocastV2DistributionData),
25
- __metadata("design:type", build_1.LudeocastV2DistributionData)
26
- ], CreateBuildDistributionRequestDto.prototype, "distributionData", void 0);
23
+ (0, class_validator_1.IsNumber)(),
24
+ __metadata("design:type", Number)
25
+ ], CreateBuildDistributionRequestDto.prototype, "sizeGB", void 0);
27
26
  __decorate([
28
27
  (0, class_validator_1.IsString)(),
29
28
  __metadata("design:type", String)
@@ -1 +1 @@
1
- {"version":3,"file":"create-distribution.dto.js","sourceRoot":"","sources":["../../../../src/v4/types/site-controller/create-distribution.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAgE;AAChE,oCAAiF;AACjF,oDAAyD;AAEzD,MAAa,iCAAiC;CAa7C;AAbD,8EAaC;AAXC;IADC,IAAA,0BAAQ,GAAE;;sEACS;AAGpB;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,mCAA2B,CAAC;8BACpC,mCAA2B;2EAAC;AAG9C;IADC,IAAA,0BAAQ,GAAE;;kEACK;AAIhB;IAFC,IAAA,yBAAO,GAAE;IACT,IAAA,0BAAQ,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;kEACP;AAGpB,MAAa,kCAAkC;CAS9C;AATD,gFASC;AAJC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mEACM;AAGjB;IADC,IAAA,4BAAU,GAAE;8BACG,gCAAwB;yEAAC"}
1
+ {"version":3,"file":"create-distribution.dto.js","sourceRoot":"","sources":["../../../../src/v4/types/site-controller/create-distribution.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA0E;AAC1E,oCAAoD;AAEpD,MAAa,iCAAiC;CAa7C;AAbD,8EAaC;AAXC;IADC,IAAA,0BAAQ,GAAE;;sEACS;AAGpB;IADC,IAAA,0BAAQ,GAAE;;iEACI;AAGf;IADC,IAAA,0BAAQ,GAAE;;kEACK;AAIhB;IAFC,IAAA,yBAAO,GAAE;IACT,IAAA,0BAAQ,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;kEACP;AAGpB,MAAa,kCAAkC;CAS9C;AATD,gFASC;AAJC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mEACM;AAGjB;IADC,IAAA,4BAAU,GAAE;8BACG,gCAAwB;yEAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ludeo/cloud-common",
3
- "version": "1.2.200-beta-yahil-1",
3
+ "version": "1.2.200-beta-yahil-2",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "author": "Yahil Didi",
@@ -1,13 +1,12 @@
1
- import { IsArray, IsOptional, IsString } from 'class-validator';
2
- import { LudeocastV2DistributionData, LudeocastV2Distributions } from '../build';
3
- import { ValidateNestedType } from '../../../decorators';
1
+ import { IsArray, IsNumber, IsOptional, IsString } from 'class-validator';
2
+ import { LudeocastV2Distributions } from '../build';
4
3
 
5
4
  export class CreateBuildDistributionRequestDto {
6
5
  @IsString()
7
6
  downloadURL: string; // S3 URL (e.g., s3://bucket/path)
8
7
 
9
- @ValidateNestedType(() => LudeocastV2DistributionData)
10
- distributionData: LudeocastV2DistributionData;
8
+ @IsNumber()
9
+ sizeGB: number;
11
10
 
12
11
  @IsString()
13
12
  buildId: string; // Build ID for distribution naming (e.g., 'build-{buildId}')