@silexpert/core 0.4.224 → 0.4.225

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 (96) hide show
  1. package/es/api/resources/Account.d.ts +2 -1
  2. package/es/api/resources/Account.d.ts.map +1 -1
  3. package/es/api/resources/Account.js +3 -0
  4. package/es/api/resources/Account.js.map +1 -1
  5. package/es/api/resources/BankList.d.ts +6 -0
  6. package/es/api/resources/BankList.d.ts.map +1 -0
  7. package/es/api/resources/BankList.js +7 -0
  8. package/es/api/resources/BankList.js.map +1 -0
  9. package/es/api/resources.d.ts +4 -0
  10. package/es/api/resources.d.ts.map +1 -1
  11. package/es/api/resources.js +4 -0
  12. package/es/api/resources.js.map +1 -1
  13. package/es/types/Enum/Civility.d.ts +5 -0
  14. package/es/types/Enum/Civility.d.ts.map +1 -0
  15. package/es/types/Enum/Civility.js +6 -0
  16. package/es/types/Enum/Civility.js.map +1 -0
  17. package/es/types/Enum/Ged.d.ts +1 -0
  18. package/es/types/Enum/Ged.d.ts.map +1 -1
  19. package/es/types/Enum/Ged.js +1 -1
  20. package/es/types/Enum/Ged.js.map +1 -1
  21. package/es/types/Enum/MailAuto.d.ts +2 -1
  22. package/es/types/Enum/MailAuto.d.ts.map +1 -1
  23. package/es/types/Enum/MailAuto.js +1 -0
  24. package/es/types/Enum/MailAuto.js.map +1 -1
  25. package/es/types/Enum/VatDeclarationType.d.ts +3 -4
  26. package/es/types/Enum/VatDeclarationType.d.ts.map +1 -1
  27. package/es/types/Enum/VatDeclarationType.js +45 -59
  28. package/es/types/Enum/VatDeclarationType.js.map +1 -1
  29. package/es/types/Interface/api/amount/FormattedAmount.d.ts +9 -0
  30. package/es/types/Interface/api/amount/FormattedAmount.d.ts.map +1 -0
  31. package/es/types/Interface/api/amount/FormattedAmount.js +2 -0
  32. package/es/types/Interface/api/amount/FormattedAmount.js.map +1 -0
  33. package/es/types/Interface/api/customerActivity/CreateCustomerActivityReport.d.ts +6 -0
  34. package/es/types/Interface/api/customerActivity/CreateCustomerActivityReport.d.ts.map +1 -0
  35. package/es/types/Interface/api/customerActivity/CreateCustomerActivityReport.js +36 -0
  36. package/es/types/Interface/api/customerActivity/CreateCustomerActivityReport.js.map +1 -0
  37. package/es/types/Interface/api/notification/CreateNotification.d.ts.map +1 -1
  38. package/es/types/Interface/api/notification/CreateNotification.js +3 -0
  39. package/es/types/Interface/api/notification/CreateNotification.js.map +1 -1
  40. package/es/types/Interface/api/vatDeclaration/ReadVatVariousOperations.d.ts +2 -0
  41. package/es/types/Interface/api/vatDeclaration/ReadVatVariousOperations.d.ts.map +1 -1
  42. package/es/types/Interface/api/vatDeclaration/ReadVatVariousOperations.js.map +1 -1
  43. package/es/types/Interface/api/vatDeclaration/ResultFormatToEntries.d.ts +1 -0
  44. package/es/types/Interface/api/vatDeclaration/ResultFormatToEntries.d.ts.map +1 -1
  45. package/es/types/Interface/api/vatDeclaration/ResultFormatToEntries.js.map +1 -1
  46. package/es/types/Interface/models/IApiError.d.ts +2 -1
  47. package/es/types/Interface/models/IApiError.d.ts.map +1 -1
  48. package/es/types/Interface/models/IApiError.js +1 -0
  49. package/es/types/Interface/models/IApiError.js.map +1 -1
  50. package/es/types/Interface/models/ISociety.d.ts +2 -1
  51. package/es/types/Interface/models/ISociety.d.ts.map +1 -1
  52. package/es/types/Interface/models/ISociety.js.map +1 -1
  53. package/es/types/index.d.ts +3 -0
  54. package/es/types/index.d.ts.map +1 -1
  55. package/es/types/index.js +3 -0
  56. package/es/types/index.js.map +1 -1
  57. package/js/api/resources/Account.js +4 -0
  58. package/js/api/resources/Account.js.map +1 -1
  59. package/js/api/resources/BankList.js +18 -0
  60. package/js/api/resources/BankList.js.map +1 -0
  61. package/js/api/resources.js +7 -1
  62. package/js/api/resources.js.map +1 -1
  63. package/js/types/Enum/Civility.js +12 -0
  64. package/js/types/Enum/Civility.js.map +1 -0
  65. package/js/types/Enum/Ged.js +2 -2
  66. package/js/types/Enum/Ged.js.map +1 -1
  67. package/js/types/Enum/MailAuto.js +1 -0
  68. package/js/types/Enum/MailAuto.js.map +1 -1
  69. package/js/types/Enum/VatDeclarationType.js +188 -228
  70. package/js/types/Enum/VatDeclarationType.js.map +1 -1
  71. package/js/types/Interface/api/amount/FormattedAmount.js +6 -0
  72. package/js/types/Interface/api/amount/FormattedAmount.js.map +1 -0
  73. package/js/types/Interface/api/customerActivity/CreateCustomerActivityReport.js +39 -0
  74. package/js/types/Interface/api/customerActivity/CreateCustomerActivityReport.js.map +1 -0
  75. package/js/types/Interface/api/notification/CreateNotification.js +3 -1
  76. package/js/types/Interface/api/notification/CreateNotification.js.map +1 -1
  77. package/js/types/Interface/models/IApiError.js +1 -0
  78. package/js/types/Interface/models/IApiError.js.map +1 -1
  79. package/js/types/index.js +36 -0
  80. package/js/types/index.js.map +1 -1
  81. package/package.json +1 -1
  82. package/ts/api/resources/Account.ts +5 -1
  83. package/ts/api/resources/BankList.ts +8 -0
  84. package/ts/api/resources.ts +4 -0
  85. package/ts/types/Enum/Civility.ts +4 -0
  86. package/ts/types/Enum/Ged.ts +1 -1
  87. package/ts/types/Enum/MailAuto.ts +1 -0
  88. package/ts/types/Enum/VatDeclarationType.ts +46 -61
  89. package/ts/types/Interface/api/amount/FormattedAmount.ts +9 -0
  90. package/ts/types/Interface/api/customerActivity/CreateCustomerActivityReport.ts +25 -0
  91. package/ts/types/Interface/api/notification/CreateNotification.ts +3 -0
  92. package/ts/types/Interface/api/vatDeclaration/ReadVatVariousOperations.ts +2 -0
  93. package/ts/types/Interface/api/vatDeclaration/ResultFormatToEntries.ts +2 -1
  94. package/ts/types/Interface/models/IApiError.ts +1 -0
  95. package/ts/types/Interface/models/ISociety.ts +3 -2
  96. package/ts/types/index.ts +3 -0
@@ -1,245 +1,229 @@
1
1
  import { IAccount } from '../Interface/models/IAccount';
2
+ import { Vat } from './Vat';
2
3
 
3
- export const accountList3310: Array<number> = [
4
- 445720, 445705, 445710, 445785, 445721, 445820,
5
- 445200, 445662, 445620, 445660, 445840, 445670_1,
6
- 445830, 445670_2, 445680, 445510,
7
- ];
8
-
9
- export const accountList3517: Array<number> = [
10
- 445720, 445705, 445710, 445785, 445721, 445700,
11
- 445820, 445200, 445662, 445620, 445660, 445840,
12
- 445820, 445810, 445670, 445830, 445670, 445810,
13
- 445680, 445510,
14
- ];
15
-
16
- export const accountInfo3310: Record<number, AccountInfo> = {
17
- 445720: {
4
+ export const accountInfo3310: AccountInfo[] = [
5
+ {
18
6
  number: 445720,
19
7
  fields: ['ligne08Tva'],
20
8
  fieldsToSubtract: ['ligne17'],
21
9
  type: 'debit',
22
10
  },
23
- 445705: {
11
+ {
24
12
  number: 445705,
25
13
  fields: ['ligne09Tva'],
26
14
  fieldsToSubtract: [],
27
15
  type: 'debit',
28
16
  },
29
- 445710: {
17
+ {
30
18
  number: 445710,
31
19
  fields: ['ligne9BTva'],
32
20
  fieldsToSubtract: [],
33
21
  type: 'debit',
34
22
  },
35
- 445785: {
23
+ {
36
24
  number: 445785,
37
25
  fields: ['ligne10Tva'],
38
26
  fieldsToSubtract: [],
39
27
  type: 'debit',
40
28
  },
41
- 445721: {
29
+ {
42
30
  number: 445721,
43
31
  fields: ['ligne11Tva'],
44
32
  fieldsToSubtract: [],
45
33
  type: 'debit',
46
34
  },
47
- 445820: {
35
+ {
48
36
  number: 445820,
49
37
  fields: ['ligne13', 'ligne14', 'ligne15', 'ligne5B'],
50
38
  fieldsToSubtract: [],
51
39
  type: 'debit',
52
40
  },
53
- 445200: {
41
+ {
54
42
  number: 445200,
55
43
  fields: ['ligne7C', 'ligne17'],
56
44
  fieldsToSubtract: [],
57
45
  type: 'debit',
58
46
  },
59
- 445662: {
47
+ {
60
48
  number: 445662,
61
49
  fields: ['ligne7C', 'ligne17'],
62
50
  fieldsToSubtract: [],
63
51
  type: 'credit',
64
52
  },
65
- 445620: {
53
+ {
66
54
  number: 445620,
67
55
  fields: ['ligne19'],
68
56
  fieldsToSubtract: [],
69
57
  type: 'credit',
70
58
  },
71
- 445660: {
59
+ {
72
60
  number: 445660,
73
61
  fields: ['ligne20'],
74
62
  fieldsToSubtract: ['ligne7C', 'ligne17'],
75
63
  type: 'credit',
64
+ idVat: Vat.TX_20.id,
76
65
  },
77
- 445840: {
66
+ {
78
67
  number: 445840,
79
68
  fields: ['ligne21'],
80
69
  fieldsToSubtract: [],
81
70
  type: 'credit',
82
71
  },
83
- 445670_1: {
72
+ {
84
73
  number: 445670,
85
74
  fields: ['ligne22'],
86
75
  fieldsToSubtract: [],
87
76
  type: 'credit',
88
77
  },
89
- 445830: {
78
+ {
90
79
  number: 445830,
91
80
  fields: ['ligne26'],
92
81
  fieldsToSubtract: [],
93
82
  type: 'debit',
94
83
  },
95
- 445670_2: {
84
+ {
96
85
  number: 445670,
97
86
  fields: ['ligne27'],
98
87
  fieldsToSubtract: [],
99
88
  type: 'debit',
100
89
  },
101
- 445810: {
102
- number: 445810,
103
- fields: ['A100224_0'],
104
- fieldsToSubtract: [],
105
- type: 'debit',
106
- },
107
- 445680: {
90
+ {
108
91
  number: 445680,
109
- fields: ['A100204_0'],
92
+ fields: ['ligne29'],
110
93
  fieldsToSubtract: [],
111
94
  type: 'credit',
112
95
  },
113
- 445510: {
96
+ {
114
97
  number: 445510,
115
- fields: ['A100103_0'],
98
+ fields: ['ligne32'],
116
99
  fieldsToSubtract: [],
117
100
  type: 'credit',
118
101
  },
119
- };
102
+ ];
120
103
 
121
- export const accountInfo3517: Record<number, AccountInfo> = {
122
- 445720: {
104
+ export const accountInfo3517: AccountInfo[] = [
105
+ {
123
106
  number: 445720,
124
107
  fields: ['A904072_0', 'A100147_0', 'A100149_0', 'A100161_0'],
125
108
  fieldsToSubtract: [],
126
109
  type: 'debit',
127
110
  },
128
- 445705: {
111
+ {
129
112
  number: 445705,
130
113
  fields: ['A100140_0'],
131
114
  fieldsToSubtract: [],
132
115
  type: 'debit',
133
116
  },
134
- 445710: {
117
+ {
135
118
  number: 445710,
136
119
  fields: ['A904074_0'],
137
120
  fieldsToSubtract: [],
138
121
  type: 'debit',
139
122
  },
140
- 445785: {
123
+ {
141
124
  number: 445785,
142
125
  fields: ['A100168_0'],
143
126
  fieldsToSubtract: [],
144
127
  type: 'debit',
145
128
  },
146
- 445721: {
129
+ {
147
130
  number: 445721,
148
131
  fields: ['A100166_0'],
149
132
  fieldsToSubtract: [],
150
133
  type: 'debit',
151
134
  },
152
- 445700: {
135
+ {
153
136
  number: 445700,
154
137
  fields: ['A100083_0', 'A100145_0', 'A100185_0', 'A107009_0'],
155
138
  fieldsToSubtract: [],
156
139
  type: 'debit',
157
140
  },
158
- 445820_1: {
141
+ {
159
142
  number: 445820,
160
143
  fields: ['A100197_0', 'A100087_0', 'A905878_0'],
161
144
  fieldsToSubtract: [],
162
145
  type: 'debit',
163
146
  },
164
- 445200: {
147
+ {
165
148
  number: 445200,
166
149
  fields: ['A900775_0', 'A100150_0'],
167
150
  fieldsToSubtract: [],
168
151
  type: 'debit',
169
152
  },
170
- 445662: {
153
+ {
171
154
  number: 445662,
172
155
  fields: ['A900775_0', 'A100150_0'],
173
156
  fieldsToSubtract: [],
174
157
  type: 'credit',
175
158
  },
176
- 445620: {
159
+ {
177
160
  number: 445620,
178
161
  fields: ['A100090_0'],
179
162
  fieldsToSubtract: [],
180
163
  type: 'credit',
181
164
  },
182
- 445660: {
165
+ {
183
166
  number: 445660,
184
167
  fields: ['A100091_0', 'A100192_0'],
185
168
  fieldsToSubtract: ['A900775_0', 'A100150_0'],
186
169
  type: 'credit',
170
+ idVat: Vat.TX_20.id,
187
171
  },
188
- 445840: {
172
+ {
189
173
  number: 445840,
190
174
  fields: ['A100092_0'],
191
175
  fieldsToSubtract: [],
192
176
  type: 'credit',
193
177
  },
194
- 445820_2: {
178
+ {
195
179
  number: 445820,
196
180
  fields: ['A905879_0'],
197
181
  fieldsToSubtract: [],
198
182
  type: 'credit',
199
183
  },
200
- 445810_1: {
184
+ {
201
185
  number: 445810,
202
186
  fields: ['A100194_0'],
203
187
  fieldsToSubtract: [],
204
188
  type: 'credit',
205
189
  },
206
- 445670_1: {
190
+ {
207
191
  number: 445670,
208
192
  fields: ['A100151_0'],
209
193
  fieldsToSubtract: [],
210
194
  type: 'credit',
211
195
  },
212
- 445830: {
196
+ {
213
197
  number: 445830,
214
198
  fields: ['A100097_0'],
215
199
  fieldsToSubtract: [],
216
200
  type: 'debit',
217
201
  },
218
- 445670_2: {
202
+ {
219
203
  number: 445670,
220
204
  fields: ['A100098_0'],
221
205
  fieldsToSubtract: [],
222
206
  type: 'debit',
223
207
  },
224
- 445810_2: {
208
+ {
225
209
  number: 445810,
226
210
  fields: ['A100224_0'],
227
211
  fieldsToSubtract: [],
228
212
  type: 'debit',
229
213
  },
230
- 445680: {
214
+ {
231
215
  number: 445680,
232
216
  fields: ['A100204_0'],
233
217
  fieldsToSubtract: [],
234
218
  type: 'credit',
235
219
  },
236
- 445510: {
220
+ {
237
221
  number: 445510,
238
222
  fields: ['A100103_0'],
239
223
  fieldsToSubtract: [],
240
224
  type: 'credit',
241
225
  },
242
- };
226
+ ];
243
227
 
244
228
  export interface EntriesListField {
245
229
  fields: Array<string>,
@@ -250,4 +234,5 @@ export interface EntriesListField {
250
234
 
251
235
  export interface AccountInfo extends Pick<EntriesListField, 'fields' | 'fieldsToSubtract' | 'type'> {
252
236
  number: number;
237
+ idVat?: number;
253
238
  }
@@ -0,0 +1,9 @@
1
+ import { MathematicalSign } from '../../../Enum/Util';
2
+
3
+ export interface FormattedAmount {
4
+ value: number;
5
+ sign: MathematicalSign;
6
+ integerValue: string;
7
+ centValue: string;
8
+ formattedValue: string;
9
+ }
@@ -0,0 +1,25 @@
1
+ import {
2
+ ArrayUnique, IsBoolean, IsInt, IsOptional, IsPositive,
3
+ } from 'class-validator';
4
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
5
+ import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
6
+
7
+ export class CreateCustomerActivityReport {
8
+ @ApiPropertyOptional()
9
+ @IsOptional()
10
+ @ArrayUnique()
11
+ @IsInt({ each: true })
12
+ @IsPositive({ each: true })
13
+ idSociety: number[];
14
+
15
+ @ApiProperty()
16
+ @IsInt()
17
+ @IsPositive()
18
+ limit: number;
19
+
20
+ @ApiPropertyOptional()
21
+ @IsOptional()
22
+ @IsBoolean()
23
+ @ToBoolean()
24
+ isTest: boolean;
25
+ }
@@ -1,8 +1,11 @@
1
+ import { IsEnum, IsInt } from 'class-validator';
1
2
  import { ApiProperty } from '../../../../utils';
2
3
  import { NotificationType } from '../../../Enum/NotificationType';
3
4
 
4
5
  export class CreateNotification {
5
6
  @ApiProperty()
7
+ @IsInt()
8
+ @IsEnum(NotificationType)
6
9
  notificationType: NotificationType;
7
10
 
8
11
  @ApiProperty()
@@ -6,4 +6,6 @@ export interface ReadVatVariousOperations {
6
6
  dateValue: Date,
7
7
  idAccount?: number,
8
8
  idThirdParty?: number,
9
+ number?: number,
10
+ name?: string;
9
11
  }
@@ -1,5 +1,6 @@
1
1
  export interface ResultFormatToEntries {
2
2
  name: string,
3
3
  number: number,
4
- amount: number
4
+ amount: number,
5
+ type: 'credit' | 'debit'
5
6
  }
@@ -165,6 +165,7 @@ export enum Code {
165
165
  CAN_NOT_EDIT_COMPLETED_ISSUE = 'can_not_edit_completed_issue',
166
166
  CAN_NOT_CONFIRM_CHECKLIST = 'can_not_confirm_checklist',
167
167
  CHECKLIST_ALREADY_EXIST = 'checklist_already_exist',
168
+ INVALID_BRAND = 'invalid_brand',
168
169
  }
169
170
 
170
171
  export interface IApiError {
@@ -48,7 +48,7 @@ import { ISms } from './ISms';
48
48
  import { IUser } from './IUser';
49
49
  import { ISocietyEvent } from './ISocietyEvent';
50
50
  import {
51
- ComptaType, Country, INafCode, IPartneredAccountantCompanyService, Sector, UnpaidDetail, IPartneredAccountantToSociety, IMail,
51
+ ComptaType, Country, INafCode, IPartneredAccountantCompanyService, Sector, UnpaidDetail, IPartneredAccountantToSociety, IMail, IAccountingTransaction,
52
52
  } from '../..';
53
53
  import { IBrandType } from './IBrandType';
54
54
 
@@ -203,4 +203,5 @@ export interface ISociety {
203
203
  partneredAccountantRelated: IPartneredAccountantToSociety;
204
204
  events: ISocietyEvent[];
205
205
  mails: IMail[];
206
- }
206
+ transactions: IAccountingTransaction[];
207
+ }
package/ts/types/index.ts CHANGED
@@ -313,6 +313,7 @@ export * from './Form/FormAuthenticate';
313
313
  export * from './Form/FormConnector';
314
314
 
315
315
  // Enums
316
+ export * from './Enum/Civility';
316
317
  export * from './Enum/Registration';
317
318
  export * from './Enum/Aspone';
318
319
  export * from './Enum/ProfitsType';
@@ -728,6 +729,8 @@ export * from './Interface/api/task/QueryStatsByTaskTypeInCsv';
728
729
  export * from './Interface/api/3cx/Query3cxSearch';
729
730
  export * from './Interface/api/3cx/Read3cxSearch';
730
731
  export * from './Interface/api/3cx/Create3cxLog';
732
+ export * from './Interface/api/amount/FormattedAmount';
733
+ export * from './Interface/api/customerActivity/CreateCustomerActivityReport';
731
734
 
732
735
  // Enums types
733
736
  export * from './Interface/enum/Util';