@silexpert/core 1.2.72 → 1.2.73

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.
@@ -3,6 +3,7 @@ export declare class CreateFile {
3
3
  file: TFile;
4
4
  folder: string;
5
5
  name: string;
6
+ convertImage?: boolean;
6
7
  }
7
8
  export type ResizeIfTooLargePayload = {
8
9
  imageLink: string;
@@ -1 +1 @@
1
- {"version":3,"file":"Create.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/file/Create.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,qBAAa,UAAU;IAErB,IAAI,EAAE,KAAK,CAAC;IAIZ,MAAM,EAAE,MAAM,CAAC;IAIf,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,MAAM,uBAAuB,GAAG;IACpC,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,mBAAmB,EAAE;QACnB,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,MAAM,CAAC;QACf,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;IACF,OAAO,EAAE;QACP,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;CACH,CAAC"}
1
+ {"version":3,"file":"Create.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/file/Create.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAGhC,qBAAa,UAAU;IAErB,IAAI,EAAE,KAAK,CAAC;IAIZ,MAAM,EAAE,MAAM,CAAC;IAIf,IAAI,EAAE,MAAM,CAAC;IAMb,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,MAAM,MAAM,uBAAuB,GAAG;IACpC,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,mBAAmB,EAAE;QACnB,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,MAAM,CAAC;QACf,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;IACF,OAAO,EAAE;QACP,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;CACH,CAAC"}
@@ -12,6 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.CreateFile = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
14
  const utils_1 = require("../../../../utils");
15
+ const boolean_transform_1 = require("../../../../utils/transforms/boolean.transform");
15
16
  class CreateFile {
16
17
  }
17
18
  exports.CreateFile = CreateFile;
@@ -29,4 +30,11 @@ __decorate([
29
30
  (0, class_validator_1.IsString)(),
30
31
  __metadata("design:type", String)
31
32
  ], CreateFile.prototype, "name", void 0);
33
+ __decorate([
34
+ (0, utils_1.ApiPropertyOptional)(),
35
+ (0, class_validator_1.IsBoolean)(),
36
+ (0, boolean_transform_1.ToBoolean)(),
37
+ (0, class_validator_1.IsOptional)(),
38
+ __metadata("design:type", Boolean)
39
+ ], CreateFile.prototype, "convertImage", void 0);
32
40
  //# sourceMappingURL=Create.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Create.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/file/Create.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA2C;AAC3C,6CAAgD;AAGhD,MAAa,UAAU;CAWtB;AAXD,gCAWC;AATC;IADC,IAAA,mBAAW,GAAE;;wCACF;AAIZ;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;0CACI;AAIf;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;wCACE","sourcesContent":["import { IsString } from 'class-validator';\nimport { ApiProperty } from '../../../../utils';\nimport { TFile } from './TFile';\n\nexport class CreateFile {\n @ApiProperty()\n file: TFile;\n\n @ApiProperty()\n @IsString()\n folder: string;\n\n @ApiProperty()\n @IsString()\n name: string;\n}\n\nexport type ResizeIfTooLargePayload = {\n imageLink: string;\n path: string;\n resizeIfGreaterThan: {\n size: number;\n height: number;\n width: number;\n };\n newFile: {\n height?: number;\n width?: number;\n name: string;\n };\n};\n"]}
1
+ {"version":3,"file":"Create.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/file/Create.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAkE;AAClE,6CAAqE;AAErE,sFAA2E;AAE3E,MAAa,UAAU;CAiBtB;AAjBD,gCAiBC;AAfC;IADC,IAAA,mBAAW,GAAE;;wCACF;AAIZ;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;0CACI;AAIf;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;wCACE;AAMb;IAJC,IAAA,2BAAmB,GAAE;IACrB,IAAA,2BAAS,GAAE;IACX,IAAA,6BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;gDACU","sourcesContent":["import { IsBoolean, IsOptional, IsString } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { TFile } from './TFile';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\n\nexport class CreateFile {\n @ApiProperty()\n file: TFile;\n\n @ApiProperty()\n @IsString()\n folder: string;\n\n @ApiProperty()\n @IsString()\n name: string;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n convertImage?: boolean;\n}\n\nexport type ResizeIfTooLargePayload = {\n imageLink: string;\n path: string;\n resizeIfGreaterThan: {\n size: number;\n height: number;\n width: number;\n };\n newFile: {\n height?: number;\n width?: number;\n name: string;\n };\n};\n"]}
@@ -3,6 +3,7 @@ export declare class CreateFile {
3
3
  file: TFile;
4
4
  folder: string;
5
5
  name: string;
6
+ convertImage?: boolean;
6
7
  }
7
8
  export type ResizeIfTooLargePayload = {
8
9
  imageLink: string;
@@ -1 +1 @@
1
- {"version":3,"file":"Create.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/file/Create.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,qBAAa,UAAU;IAErB,IAAI,EAAE,KAAK,CAAC;IAIZ,MAAM,EAAE,MAAM,CAAC;IAIf,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,MAAM,uBAAuB,GAAG;IACpC,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,mBAAmB,EAAE;QACnB,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,MAAM,CAAC;QACf,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;IACF,OAAO,EAAE;QACP,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;CACH,CAAC"}
1
+ {"version":3,"file":"Create.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/file/Create.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAGhC,qBAAa,UAAU;IAErB,IAAI,EAAE,KAAK,CAAC;IAIZ,MAAM,EAAE,MAAM,CAAC;IAIf,IAAI,EAAE,MAAM,CAAC;IAMb,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,MAAM,MAAM,uBAAuB,GAAG;IACpC,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,mBAAmB,EAAE;QACnB,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,MAAM,CAAC;QACf,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;IACF,OAAO,EAAE;QACP,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;CACH,CAAC"}
@@ -7,12 +7,14 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
7
7
  var __metadata = (this && this.__metadata) || function (k, v) {
8
8
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
9
  };
10
- import { IsString } from 'class-validator';
11
- import { ApiProperty } from '../../../../utils';
10
+ import { IsBoolean, IsOptional, IsString } from 'class-validator';
11
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
12
+ import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
12
13
  export class CreateFile {
13
14
  file;
14
15
  folder;
15
16
  name;
17
+ convertImage;
16
18
  }
17
19
  __decorate([
18
20
  ApiProperty(),
@@ -28,4 +30,11 @@ __decorate([
28
30
  IsString(),
29
31
  __metadata("design:type", String)
30
32
  ], CreateFile.prototype, "name", void 0);
33
+ __decorate([
34
+ ApiPropertyOptional(),
35
+ IsBoolean(),
36
+ ToBoolean(),
37
+ IsOptional(),
38
+ __metadata("design:type", Boolean)
39
+ ], CreateFile.prototype, "convertImage", void 0);
31
40
  //# sourceMappingURL=Create.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Create.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/file/Create.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAGhD,MAAM,OAAO,UAAU;IAErB,IAAI,CAAQ;IAIZ,MAAM,CAAS;IAIf,IAAI,CAAS;CACd;AATC;IADC,WAAW,EAAE;;wCACF;AAIZ;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;0CACI;AAIf;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;wCACE","sourcesContent":["import { IsString } from 'class-validator';\nimport { ApiProperty } from '../../../../utils';\nimport { TFile } from './TFile';\n\nexport class CreateFile {\n @ApiProperty()\n file: TFile;\n\n @ApiProperty()\n @IsString()\n folder: string;\n\n @ApiProperty()\n @IsString()\n name: string;\n}\n\nexport type ResizeIfTooLargePayload = {\n imageLink: string;\n path: string;\n resizeIfGreaterThan: {\n size: number;\n height: number;\n width: number;\n };\n newFile: {\n height?: number;\n width?: number;\n name: string;\n };\n};\n"]}
1
+ {"version":3,"file":"Create.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/file/Create.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAClE,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAErE,OAAO,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAE3E,MAAM,OAAO,UAAU;IAErB,IAAI,CAAQ;IAIZ,MAAM,CAAS;IAIf,IAAI,CAAS;IAMb,YAAY,CAAW;CACxB;AAfC;IADC,WAAW,EAAE;;wCACF;AAIZ;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;0CACI;AAIf;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;wCACE;AAMb;IAJC,mBAAmB,EAAE;IACrB,SAAS,EAAE;IACX,SAAS,EAAE;IACX,UAAU,EAAE;;gDACU","sourcesContent":["import { IsBoolean, IsOptional, IsString } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { TFile } from './TFile';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\n\nexport class CreateFile {\n @ApiProperty()\n file: TFile;\n\n @ApiProperty()\n @IsString()\n folder: string;\n\n @ApiProperty()\n @IsString()\n name: string;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n convertImage?: boolean;\n}\n\nexport type ResizeIfTooLargePayload = {\n imageLink: string;\n path: string;\n resizeIfGreaterThan: {\n size: number;\n height: number;\n width: number;\n };\n newFile: {\n height?: number;\n width?: number;\n name: string;\n };\n};\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@silexpert/core",
3
- "version": "1.2.72",
3
+ "version": "1.2.73",
4
4
  "description": "Silex Core perform HTTP Request and object binding. Silex core helps developers to retrieve and return formatted object",
5
5
  "homepage": "https://gitlab.compta-clementine.fr/dev/silex-api",
6
6
  "main": "dist/cjs/index.js",
@@ -1,6 +1,7 @@
1
- import { IsString } from 'class-validator';
2
- import { ApiProperty } from '../../../../utils';
1
+ import { IsBoolean, IsOptional, IsString } from 'class-validator';
2
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
3
3
  import { TFile } from './TFile';
4
+ import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
4
5
 
5
6
  export class CreateFile {
6
7
  @ApiProperty()
@@ -13,6 +14,12 @@ export class CreateFile {
13
14
  @ApiProperty()
14
15
  @IsString()
15
16
  name: string;
17
+
18
+ @ApiPropertyOptional()
19
+ @IsBoolean()
20
+ @ToBoolean()
21
+ @IsOptional()
22
+ convertImage?: boolean;
16
23
  }
17
24
 
18
25
  export type ResizeIfTooLargePayload = {