@silexpert/core 0.4.157 → 0.4.160

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.
Files changed (70) hide show
  1. package/es/types/Enum/WebmailFlag.d.ts +9 -0
  2. package/es/types/Enum/WebmailFlag.d.ts.map +1 -0
  3. package/es/types/Enum/WebmailFlag.js +10 -0
  4. package/es/types/Enum/WebmailFlag.js.map +1 -0
  5. package/es/types/Enum/WebmailType.d.ts +11 -0
  6. package/es/types/Enum/WebmailType.d.ts.map +1 -0
  7. package/es/types/Enum/WebmailType.js +12 -0
  8. package/es/types/Enum/WebmailType.js.map +1 -0
  9. package/es/types/Interface/api/balanceSheetModule/PrepareModulesAndCompletions.d.ts +5 -0
  10. package/es/types/Interface/api/balanceSheetModule/PrepareModulesAndCompletions.d.ts.map +1 -0
  11. package/es/types/Interface/api/balanceSheetModule/PrepareModulesAndCompletions.js +21 -0
  12. package/es/types/Interface/api/balanceSheetModule/PrepareModulesAndCompletions.js.map +1 -0
  13. package/es/types/Interface/api/balanceSheetModule/ReadPrepareModulesAndCompletions.d.ts +8 -0
  14. package/es/types/Interface/api/balanceSheetModule/ReadPrepareModulesAndCompletions.d.ts.map +1 -0
  15. package/es/types/Interface/api/balanceSheetModule/ReadPrepareModulesAndCompletions.js +2 -0
  16. package/es/types/Interface/api/balanceSheetModule/ReadPrepareModulesAndCompletions.js.map +1 -0
  17. package/es/types/Interface/api/cerfa/2035.d.ts +0 -1
  18. package/es/types/Interface/api/cerfa/2035.d.ts.map +1 -1
  19. package/es/types/Interface/api/cerfa/2035.js.map +1 -1
  20. package/es/types/Interface/api/webmail/CreateWebmailFromLambda.d.ts +25 -0
  21. package/es/types/Interface/api/webmail/CreateWebmailFromLambda.d.ts.map +1 -0
  22. package/es/types/Interface/api/webmail/CreateWebmailFromLambda.js +109 -0
  23. package/es/types/Interface/api/webmail/CreateWebmailFromLambda.js.map +1 -0
  24. package/es/types/Interface/api/webmail/PostAttachmentEmailFromLambdaParams.d.ts +10 -0
  25. package/es/types/Interface/api/webmail/PostAttachmentEmailFromLambdaParams.d.ts.map +1 -0
  26. package/es/types/Interface/api/webmail/PostAttachmentEmailFromLambdaParams.js +43 -0
  27. package/es/types/Interface/api/webmail/PostAttachmentEmailFromLambdaParams.js.map +1 -0
  28. package/es/types/Interface/models/IApiError.d.ts +2 -0
  29. package/es/types/Interface/models/IApiError.d.ts.map +1 -1
  30. package/es/types/Interface/models/IApiError.js +2 -0
  31. package/es/types/Interface/models/IApiError.js.map +1 -1
  32. package/es/types/Interface/models/IVatDeclaration.d.ts +3 -0
  33. package/es/types/Interface/models/IVatDeclaration.d.ts.map +1 -1
  34. package/es/types/Interface/models/IVatDeclaration.js.map +1 -1
  35. package/es/types/Interface/models/IWebMail.d.ts +53 -53
  36. package/es/types/Interface/models/IWebMail.d.ts.map +1 -1
  37. package/es/types/Interface/models/IWebMail.js.map +1 -1
  38. package/es/types/index.d.ts +6 -0
  39. package/es/types/index.d.ts.map +1 -1
  40. package/es/types/index.js +6 -0
  41. package/es/types/index.js.map +1 -1
  42. package/js/types/Enum/WebmailFlag.js +16 -0
  43. package/js/types/Enum/WebmailFlag.js.map +1 -0
  44. package/js/types/Enum/WebmailType.js +18 -0
  45. package/js/types/Enum/WebmailType.js.map +1 -0
  46. package/js/types/Interface/api/balanceSheetModule/PrepareModulesAndCompletions.js +29 -0
  47. package/js/types/Interface/api/balanceSheetModule/PrepareModulesAndCompletions.js.map +1 -0
  48. package/js/types/Interface/api/balanceSheetModule/ReadPrepareModulesAndCompletions.js +6 -0
  49. package/js/types/Interface/api/balanceSheetModule/ReadPrepareModulesAndCompletions.js.map +1 -0
  50. package/js/types/Interface/api/cerfa/2035.js.map +1 -1
  51. package/js/types/Interface/api/webmail/CreateWebmailFromLambda.js +61 -0
  52. package/js/types/Interface/api/webmail/CreateWebmailFromLambda.js.map +1 -0
  53. package/js/types/Interface/api/webmail/PostAttachmentEmailFromLambdaParams.js +41 -0
  54. package/js/types/Interface/api/webmail/PostAttachmentEmailFromLambdaParams.js.map +1 -0
  55. package/js/types/Interface/models/IApiError.js +3 -1
  56. package/js/types/Interface/models/IApiError.js.map +1 -1
  57. package/js/types/index.js +72 -0
  58. package/js/types/index.js.map +1 -1
  59. package/package.json +2 -1
  60. package/ts/types/Enum/WebmailFlag.ts +8 -0
  61. package/ts/types/Enum/WebmailType.ts +10 -0
  62. package/ts/types/Interface/api/balanceSheetModule/PrepareModulesAndCompletions.ts +9 -0
  63. package/ts/types/Interface/api/balanceSheetModule/ReadPrepareModulesAndCompletions.ts +7 -0
  64. package/ts/types/Interface/api/cerfa/2035.ts +0 -1
  65. package/ts/types/Interface/api/webmail/CreateWebmailFromLambda.ts +87 -0
  66. package/ts/types/Interface/api/webmail/PostAttachmentEmailFromLambdaParams.ts +30 -0
  67. package/ts/types/Interface/models/IApiError.ts +2 -1
  68. package/ts/types/Interface/models/IVatDeclaration.ts +3 -0
  69. package/ts/types/Interface/models/IWebMail.ts +53 -53
  70. package/ts/types/index.ts +6 -0
@@ -288,7 +288,6 @@ export interface Cerfa2035WithSuites {
288
288
  accountant: Accountant;
289
289
  council: CouncilDetails
290
290
  certifiedAssociation: string;
291
- serviceProvider: number;
292
291
  ecf: EcfDetails;
293
292
  declarantSignature: string;
294
293
  signatureDate: string;
@@ -0,0 +1,87 @@
1
+ import {
2
+ IsArray, IsDate, IsIn, IsNotEmpty, IsObject, IsOptional, IsString,
3
+ } from 'class-validator';
4
+ import {
5
+ AddressObject, HeaderLines,
6
+ } from 'mailparser';
7
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
8
+
9
+ export class CreateWebmailFromLambda {
10
+ @ApiProperty()
11
+ @IsArray()
12
+ attachments: { [key: string]: any }[];
13
+
14
+ @ApiProperty()
15
+ @IsObject()
16
+ @IsNotEmpty()
17
+ headers: { [key: string]: any };
18
+
19
+ @ApiProperty()
20
+ @IsArray()
21
+ @IsNotEmpty()
22
+ headerLines: HeaderLines;
23
+
24
+ @ApiProperty()
25
+ html: string | false;
26
+
27
+ @ApiPropertyOptional()
28
+ @IsString()
29
+ @IsOptional()
30
+ text?: string;
31
+
32
+ @ApiPropertyOptional()
33
+ @IsString()
34
+ @IsOptional()
35
+ textAsHtml?: string;
36
+
37
+ @ApiPropertyOptional()
38
+ @IsString()
39
+ @IsOptional()
40
+ subject?: string;
41
+
42
+ @ApiPropertyOptional()
43
+ @IsOptional()
44
+ references?: string[] | string;
45
+
46
+ @ApiPropertyOptional()
47
+ @IsOptional()
48
+ @IsDate()
49
+ date?: Date;
50
+
51
+ @ApiPropertyOptional()
52
+ @IsOptional()
53
+ to?: AddressObject | AddressObject[];
54
+
55
+ @ApiPropertyOptional()
56
+ @IsObject()
57
+ @IsOptional()
58
+ from?: AddressObject;
59
+
60
+ @ApiPropertyOptional()
61
+ @IsOptional()
62
+ cc?: AddressObject | AddressObject[];
63
+
64
+ @ApiPropertyOptional()
65
+ @IsOptional()
66
+ bcc?: AddressObject | AddressObject[];
67
+
68
+ @ApiPropertyOptional()
69
+ @IsObject()
70
+ @IsOptional()
71
+ replyTo?: AddressObject;
72
+
73
+ @ApiPropertyOptional()
74
+ @IsString()
75
+ @IsOptional()
76
+ messageId?: string;
77
+
78
+ @ApiPropertyOptional()
79
+ @IsString()
80
+ @IsOptional()
81
+ inReplyTo?: string;
82
+
83
+ @ApiPropertyOptional()
84
+ @IsOptional()
85
+ @IsIn(['normal', 'low', 'high'])
86
+ priority?: 'normal' | 'low' | 'high';
87
+ }
@@ -0,0 +1,30 @@
1
+ import {
2
+ IsMimeType, IsNumber, IsOptional, IsString,
3
+ } from 'class-validator';
4
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
5
+
6
+ export class PostAttachmentEmailFromLambdaParams {
7
+ @ApiProperty()
8
+ @IsString()
9
+ token: string;
10
+
11
+ @ApiProperty()
12
+ @IsString()
13
+ @IsMimeType()
14
+ mime: string;
15
+
16
+ @ApiPropertyOptional()
17
+ @IsOptional()
18
+ @IsNumber()
19
+ idSociety?: number;
20
+
21
+ @ApiProperty()
22
+ @IsString()
23
+ filename: string;
24
+ }
25
+
26
+ export class CreateAttachmentOldWebmail extends PostAttachmentEmailFromLambdaParams {
27
+ @ApiProperty()
28
+ @IsNumber()
29
+ idMail: number;
30
+ }
@@ -9,6 +9,7 @@ export enum Code {
9
9
  tokenFailure = 'token_authentication_failure',
10
10
  authenticationFailure = 'authentication_credentials_failure',
11
11
  notFound = 'resource_not_found',
12
+ fileNotFound = 'file_not_found',
12
13
  validationError = 'resource_validation_error',
13
14
  constraintError = 'resource_constraint_error',
14
15
  outOfRange = 'resource_ofr',
@@ -17,6 +18,7 @@ export enum Code {
17
18
  serviceUnavailable = 'service_unavailable',
18
19
  notImplemented = 'not_implemented',
19
20
  unknown = 'unknown',
21
+ formatNotAuthorized = 'format_not_authorized',
20
22
 
21
23
  // Annotation Error
22
24
  failedCheckBalance = 'failed_check_balance',
@@ -157,7 +159,6 @@ export enum Code {
157
159
  ERR_INVALID_ARG_TYPE = 'ERR_INVALID_ARG_TYPE',
158
160
 
159
161
  // Society Vehicles
160
-
161
162
  MISSING_REGISTRATION_CARD = 'MISSING_REGISTRATION_CARD',
162
163
  }
163
164
 
@@ -4,6 +4,7 @@ import { ICerfaValue } from './ICerfaValue';
4
4
  import { IVatDeclarationCertificate } from './IVatDeclarationCertificate';
5
5
  import { IUser } from './IUser';
6
6
  import { ISociety } from './ISociety';
7
+ import { IAccountingTransaction } from '../..';
7
8
 
8
9
  // vatDeclaration
9
10
  export interface IVatDeclaration {
@@ -104,6 +105,7 @@ export interface IVatDeclaration {
104
105
  totalAPayer: number | null;
105
106
  lastCredit: number | null;
106
107
  idFile: number | null;
108
+ idAccountingTransaction: number | null;
107
109
  createdAt?: Date | null;
108
110
  updatedAt?: Date | null;
109
111
 
@@ -114,4 +116,5 @@ export interface IVatDeclaration {
114
116
  vatDeclarationCertificates: IVatDeclarationCertificate[];
115
117
  user: IUser;
116
118
  society: ISociety;
119
+ accountingTransaction: IAccountingTransaction;
117
120
  }
@@ -7,61 +7,61 @@ import { IAttachmentFile } from './IAttachmentFile';
7
7
  // webmailMails
8
8
  export interface IWebMail {
9
9
  id?: number;
10
- mailId: number | null;
11
- messageId: string | null;
10
+ mailId?: number | null;
11
+ messageId?: string | null;
12
12
  date: Date;
13
- subject: string | null;
14
- fromName: string | null;
15
- fromAddress: string | null;
16
- to: string | null;
17
- cc: string | null;
18
- bcc: string | null;
19
- replyTo: string | null;
20
- inReplyTo: string | null;
21
- listReferences: string | null;
22
- textPlain: string | null;
23
- textHtml: string | null;
24
- idAccountant: number | null;
25
- idAccountantBack: number | null;
26
- idExercice: number | null;
27
- idSociety: number | null;
28
- idRoom: number | null;
29
- stateTask: number | null;
30
- idUser: number | null;
31
- isSent: number;
32
- isRead: number | null;
33
- isDraft: number | null;
34
- isAnsweredByUserId: number | null;
35
- isForwarded: number | null;
36
- isDeleted: number | null;
37
- isImportant: number | null;
38
- isTodo: number | null;
39
- isFlagged: number | null;
40
- isFlaggedByUserId: number | null;
41
- isBlocked: number | null;
42
- isWithoutGpc: number | null;
43
- receiptAcknowledgement: Date | null;
13
+ subject?: string | null;
14
+ fromName?: string | null;
15
+ fromAddress?: string;
16
+ to?: string;
17
+ cc?: string | null;
18
+ bcc?: string | null;
19
+ replyTo?: string | null;
20
+ inReplyTo?: string | null;
21
+ listReferences?: string | null;
22
+ textPlain?: string | null;
23
+ textHtml?: string | null;
24
+ idAccountant?: number | null;
25
+ idAccountantBack?: number | null;
26
+ idExercice?: number | null;
27
+ idSociety?: number | null;
28
+ idRoom?: number | null;
29
+ stateTask?: number | null;
30
+ idUser?: number | null;
31
+ isSent: boolean;
32
+ isRead?: boolean;
33
+ isDraft?: boolean;
34
+ isAnsweredByUserId?: number;
35
+ isForwarded?: boolean;
36
+ isDeleted?: boolean;
37
+ isImportant?: boolean;
38
+ isTodo?: boolean;
39
+ isFlagged?: number;
40
+ isFlaggedByUserId?: number;
41
+ isBlocked?: boolean;
42
+ isWithoutGpc?: boolean;
43
+ receiptAcknowledgement?: Date | null;
44
44
  idType: number;
45
- idMailAuto: number | null;
46
- isTaskSupervised: number;
47
- deadlineCreationDate: Date | null;
48
- deadlineReminderDate: Date | null;
49
- deadlineDate: Date | null;
50
- deadlineStatus: number | null;
51
- isReminder: number | null;
52
- reminderDate: Date | null;
53
- reminderComment: string | null;
54
- processingDate: Date | null;
55
- responseAutoDate: Date | null;
56
- createdAt?: Date | null;
57
- updatedAt?: Date | null;
45
+ idMailAuto?: number | null;
46
+ isTaskSupervised?: boolean;
47
+ deadlineCreationDate?: Date | null;
48
+ deadlineReminderDate?: Date | null;
49
+ deadlineDate?: Date | null;
50
+ deadlineStatus?: number | null;
51
+ isReminder?: boolean;
52
+ reminderDate?: Date | null;
53
+ reminderComment?: string | null;
54
+ processingDate?: Date | null;
55
+ responseAutoDate?: Date | null;
56
+ createdAt?: Date;
57
+ updatedAt?: Date;
58
58
 
59
59
  // Associations
60
- webmailSocieties: ISociety;
61
- webmailAccountant: IUser;
62
- webmailSender: IUser;
63
- webmailFlagUser: IUser;
64
- webmailTypes: IWebMailType;
65
- room: IRoom;
66
- webmailAttachmentFile: IAttachmentFile[];
60
+ webmailSocieties?: ISociety;
61
+ webmailAccountant?: IUser;
62
+ webmailSender?: IUser;
63
+ webmailFlagUser?: IUser;
64
+ webmailTypes?: IWebMailType;
65
+ room?: IRoom;
66
+ webmailAttachmentFile?: IAttachmentFile[];
67
67
  }
package/ts/types/index.ts CHANGED
@@ -395,6 +395,8 @@ export * from './Enum/BalanceSheetStatus';
395
395
  export * from './Enum/FuelType';
396
396
  export * from './Enum/KilometricAllowanceScale';
397
397
  export * from './Enum/VatDeclarationType';
398
+ export * from './Enum/WebmailType';
399
+ export * from './Enum/WebmailFlag';
398
400
 
399
401
  // Interfaces API
400
402
  export * from './Interface/api/jeDeclare/ReadJeDeclare';
@@ -502,6 +504,8 @@ export * from './Interface/api/promoCode/QueryDefaultPromotion';
502
504
  export * from './Interface/api/promoCode/ReadDefaultPromotion';
503
505
  export * from './Interface/api/SocietyTransaction/QuerySocietyTransactionCount';
504
506
  export * from './Interface/api/SocietyTransaction/ReadSocietyTransactionCount';
507
+ export * from './Interface/api/webmail/CreateWebmailFromLambda';
508
+ export * from './Interface/api/webmail/PostAttachmentEmailFromLambdaParams';
505
509
  export * from './Interface/api/promoCode/CreateDefaultPromoCode';
506
510
  export * from './Interface/api/promoCode/ReadDefaultPaginationPromoCode';
507
511
  export * from './Interface/api/bankAccount/QueryBankAccount';
@@ -646,6 +650,8 @@ export * from './Interface/api/kilometricAllowance/CreateKilometricAllowanceVali
646
650
  export * from './Interface/api/thirdParty/CreateThirdPartyForm';
647
651
  export * from './Interface/api/thirdParty/UpdateThirdPartyForm';
648
652
  export * from './Interface/api/thirdParty/QueryThirdParty';
653
+ export * from './Interface/api/balanceSheetModule/PrepareModulesAndCompletions';
654
+ export * from './Interface/api/balanceSheetModule/ReadPrepareModulesAndCompletions';
649
655
 
650
656
  // Enums types
651
657
  export * from './Interface/enum/Util';