@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.
- package/dist/cjs/types/Interface/api/file/Create.d.ts +1 -0
- package/dist/cjs/types/Interface/api/file/Create.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/file/Create.js +8 -0
- package/dist/cjs/types/Interface/api/file/Create.js.map +1 -1
- package/dist/mjs/types/Interface/api/file/Create.d.ts +1 -0
- package/dist/mjs/types/Interface/api/file/Create.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/file/Create.js +11 -2
- package/dist/mjs/types/Interface/api/file/Create.js.map +1 -1
- package/package.json +1 -1
- package/ts/types/Interface/api/file/Create.ts +9 -2
|
@@ -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;
|
|
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,
|
|
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"]}
|
|
@@ -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;
|
|
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;
|
|
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.
|
|
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 = {
|