@silexpert/core 2.0.30 → 2.0.31

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.
@@ -7,4 +7,13 @@ export declare class CreateAttachmentParamsForTask {
7
7
  idTask: number;
8
8
  files?: TFile[];
9
9
  }
10
+ export declare class PostAttachmentEmailFromLambdaParams {
11
+ token: string;
12
+ mime: string;
13
+ idSociety?: number;
14
+ filename: string;
15
+ }
16
+ export declare class CreateAttachmentWebmail extends PostAttachmentEmailFromLambdaParams {
17
+ idMail: number;
18
+ }
10
19
  //# sourceMappingURL=PostAttachmentEmailFromLambdaParams.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PostAttachmentEmailFromLambdaParams.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/webmail/PostAttachmentEmailFromLambdaParams.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAE9C,qBAAa,sBAAsB;IAGjC,MAAM,EAAE,MAAM,CAAC;IAKf,KAAK,CAAC,EAAE,KAAK,EAAE,CAAC;CACjB;AACD,qBAAa,6BAA6B;IAGxC,MAAM,EAAE,MAAM,CAAC;IAKf,KAAK,CAAC,EAAE,KAAK,EAAE,CAAC;CACjB"}
1
+ {"version":3,"file":"PostAttachmentEmailFromLambdaParams.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/webmail/PostAttachmentEmailFromLambdaParams.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAE9C,qBAAa,sBAAsB;IAGjC,MAAM,EAAE,MAAM,CAAC;IAKf,KAAK,CAAC,EAAE,KAAK,EAAE,CAAC;CACjB;AACD,qBAAa,6BAA6B;IAGxC,MAAM,EAAE,MAAM,CAAC;IAKf,KAAK,CAAC,EAAE,KAAK,EAAE,CAAC;CACjB;AAED,qBAAa,mCAAmC;IAG9C,KAAK,EAAE,MAAM,CAAC;IAId,IAAI,EAAE,MAAM,CAAC;IAKb,SAAS,CAAC,EAAE,MAAM,CAAC;IAInB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,qBAAa,uBAAwB,SAAQ,mCAAmC;IAG9E,MAAM,EAAE,MAAM,CAAC;CAChB"}
@@ -7,7 +7,7 @@ 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 { IsArray, IsNumber, IsOptional } from 'class-validator';
10
+ import { IsArray, IsNumber, IsOptional, IsString } from 'class-validator';
11
11
  import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
12
12
  export class CreateAttachmentParams {
13
13
  idMail;
@@ -39,4 +39,39 @@ __decorate([
39
39
  IsArray(),
40
40
  __metadata("design:type", Array)
41
41
  ], CreateAttachmentParamsForTask.prototype, "files", void 0);
42
+ export class PostAttachmentEmailFromLambdaParams {
43
+ token;
44
+ mime;
45
+ idSociety;
46
+ filename;
47
+ }
48
+ __decorate([
49
+ ApiProperty(),
50
+ IsString(),
51
+ __metadata("design:type", String)
52
+ ], PostAttachmentEmailFromLambdaParams.prototype, "token", void 0);
53
+ __decorate([
54
+ ApiProperty(),
55
+ IsString(),
56
+ __metadata("design:type", String)
57
+ ], PostAttachmentEmailFromLambdaParams.prototype, "mime", void 0);
58
+ __decorate([
59
+ ApiPropertyOptional(),
60
+ IsOptional(),
61
+ IsNumber(),
62
+ __metadata("design:type", Number)
63
+ ], PostAttachmentEmailFromLambdaParams.prototype, "idSociety", void 0);
64
+ __decorate([
65
+ ApiProperty(),
66
+ IsString(),
67
+ __metadata("design:type", String)
68
+ ], PostAttachmentEmailFromLambdaParams.prototype, "filename", void 0);
69
+ export class CreateAttachmentWebmail extends PostAttachmentEmailFromLambdaParams {
70
+ idMail;
71
+ }
72
+ __decorate([
73
+ ApiProperty(),
74
+ IsNumber(),
75
+ __metadata("design:type", Number)
76
+ ], CreateAttachmentWebmail.prototype, "idMail", void 0);
42
77
  //# sourceMappingURL=PostAttachmentEmailFromLambdaParams.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PostAttachmentEmailFromLambdaParams.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/webmail/PostAttachmentEmailFromLambdaParams.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAGnE,MAAM,OAAO,sBAAsB;IAGjC,MAAM,CAAS;IAKf,KAAK,CAAW;CACjB;AANC;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;sDACI;AAKf;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,OAAO,EAAE;;qDACM;AAElB,MAAM,OAAO,6BAA6B;IAGxC,MAAM,CAAS;IAKf,KAAK,CAAW;CACjB;AANC;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;6DACI;AAKf;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,OAAO,EAAE;;4DACM","sourcesContent":["import { IsArray, IsNumber, IsOptional } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';\nimport { type TFile } from '../file/TFile.js';\n\nexport class CreateAttachmentParams {\n @ApiProperty()\n @IsNumber()\n idMail: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsArray()\n files?: TFile[];\n}\nexport class CreateAttachmentParamsForTask {\n @ApiProperty()\n @IsNumber()\n idTask: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsArray()\n files?: TFile[];\n}\n"]}
1
+ {"version":3,"file":"PostAttachmentEmailFromLambdaParams.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/webmail/PostAttachmentEmailFromLambdaParams.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC1E,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAGnE,MAAM,OAAO,sBAAsB;IAGjC,MAAM,CAAS;IAKf,KAAK,CAAW;CACjB;AANC;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;sDACI;AAKf;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,OAAO,EAAE;;qDACM;AAElB,MAAM,OAAO,6BAA6B;IAGxC,MAAM,CAAS;IAKf,KAAK,CAAW;CACjB;AANC;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;6DACI;AAKf;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,OAAO,EAAE;;4DACM;AAGlB,MAAM,OAAO,mCAAmC;IAG9C,KAAK,CAAS;IAId,IAAI,CAAS;IAKb,SAAS,CAAU;IAInB,QAAQ,CAAS;CAClB;AAdC;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;kEACG;AAId;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;iEACE;AAKb;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;sEACQ;AAInB;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;qEACM;AAGnB,MAAM,OAAO,uBAAwB,SAAQ,mCAAmC;IAG9E,MAAM,CAAS;CAChB;AADC;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;uDACI","sourcesContent":["import { IsArray, IsNumber, IsOptional, IsString } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';\nimport { type TFile } from '../file/TFile.js';\n\nexport class CreateAttachmentParams {\n @ApiProperty()\n @IsNumber()\n idMail: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsArray()\n files?: TFile[];\n}\nexport class CreateAttachmentParamsForTask {\n @ApiProperty()\n @IsNumber()\n idTask: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsArray()\n files?: TFile[];\n}\n\nexport class PostAttachmentEmailFromLambdaParams {\n @ApiProperty()\n @IsString()\n token: string;\n\n @ApiProperty()\n @IsString()\n mime: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n idSociety?: number;\n\n @ApiProperty()\n @IsString()\n filename: string;\n}\n\nexport class CreateAttachmentWebmail extends PostAttachmentEmailFromLambdaParams {\n @ApiProperty()\n @IsNumber()\n idMail: number;\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@silexpert/core",
3
- "version": "2.0.30",
3
+ "version": "2.0.31",
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
  "type": "module",
@@ -1,4 +1,4 @@
1
- import { IsArray, IsNumber, IsOptional } from 'class-validator';
1
+ import { IsArray, IsNumber, IsOptional, IsString } from 'class-validator';
2
2
  import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
3
3
  import { type TFile } from '../file/TFile.js';
4
4
 
@@ -22,3 +22,28 @@ export class CreateAttachmentParamsForTask {
22
22
  @IsArray()
23
23
  files?: TFile[];
24
24
  }
25
+
26
+ export class PostAttachmentEmailFromLambdaParams {
27
+ @ApiProperty()
28
+ @IsString()
29
+ token: string;
30
+
31
+ @ApiProperty()
32
+ @IsString()
33
+ mime: string;
34
+
35
+ @ApiPropertyOptional()
36
+ @IsOptional()
37
+ @IsNumber()
38
+ idSociety?: number;
39
+
40
+ @ApiProperty()
41
+ @IsString()
42
+ filename: string;
43
+ }
44
+
45
+ export class CreateAttachmentWebmail extends PostAttachmentEmailFromLambdaParams {
46
+ @ApiProperty()
47
+ @IsNumber()
48
+ idMail: number;
49
+ }