@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.
- package/es/api/resources/Account.d.ts +2 -1
- package/es/api/resources/Account.d.ts.map +1 -1
- package/es/api/resources/Account.js +3 -0
- package/es/api/resources/Account.js.map +1 -1
- package/es/api/resources/BankList.d.ts +6 -0
- package/es/api/resources/BankList.d.ts.map +1 -0
- package/es/api/resources/BankList.js +7 -0
- package/es/api/resources/BankList.js.map +1 -0
- package/es/api/resources.d.ts +4 -0
- package/es/api/resources.d.ts.map +1 -1
- package/es/api/resources.js +4 -0
- package/es/api/resources.js.map +1 -1
- package/es/types/Enum/Civility.d.ts +5 -0
- package/es/types/Enum/Civility.d.ts.map +1 -0
- package/es/types/Enum/Civility.js +6 -0
- package/es/types/Enum/Civility.js.map +1 -0
- package/es/types/Enum/Ged.d.ts +1 -0
- package/es/types/Enum/Ged.d.ts.map +1 -1
- package/es/types/Enum/Ged.js +1 -1
- package/es/types/Enum/Ged.js.map +1 -1
- package/es/types/Enum/MailAuto.d.ts +2 -1
- package/es/types/Enum/MailAuto.d.ts.map +1 -1
- package/es/types/Enum/MailAuto.js +1 -0
- package/es/types/Enum/MailAuto.js.map +1 -1
- package/es/types/Enum/VatDeclarationType.d.ts +3 -4
- package/es/types/Enum/VatDeclarationType.d.ts.map +1 -1
- package/es/types/Enum/VatDeclarationType.js +45 -59
- package/es/types/Enum/VatDeclarationType.js.map +1 -1
- package/es/types/Interface/api/amount/FormattedAmount.d.ts +9 -0
- package/es/types/Interface/api/amount/FormattedAmount.d.ts.map +1 -0
- package/es/types/Interface/api/amount/FormattedAmount.js +2 -0
- package/es/types/Interface/api/amount/FormattedAmount.js.map +1 -0
- package/es/types/Interface/api/customerActivity/CreateCustomerActivityReport.d.ts +6 -0
- package/es/types/Interface/api/customerActivity/CreateCustomerActivityReport.d.ts.map +1 -0
- package/es/types/Interface/api/customerActivity/CreateCustomerActivityReport.js +36 -0
- package/es/types/Interface/api/customerActivity/CreateCustomerActivityReport.js.map +1 -0
- package/es/types/Interface/api/notification/CreateNotification.d.ts.map +1 -1
- package/es/types/Interface/api/notification/CreateNotification.js +3 -0
- package/es/types/Interface/api/notification/CreateNotification.js.map +1 -1
- package/es/types/Interface/api/vatDeclaration/ReadVatVariousOperations.d.ts +2 -0
- package/es/types/Interface/api/vatDeclaration/ReadVatVariousOperations.d.ts.map +1 -1
- package/es/types/Interface/api/vatDeclaration/ReadVatVariousOperations.js.map +1 -1
- package/es/types/Interface/api/vatDeclaration/ResultFormatToEntries.d.ts +1 -0
- package/es/types/Interface/api/vatDeclaration/ResultFormatToEntries.d.ts.map +1 -1
- package/es/types/Interface/api/vatDeclaration/ResultFormatToEntries.js.map +1 -1
- package/es/types/Interface/models/IApiError.d.ts +2 -1
- package/es/types/Interface/models/IApiError.d.ts.map +1 -1
- package/es/types/Interface/models/IApiError.js +1 -0
- package/es/types/Interface/models/IApiError.js.map +1 -1
- package/es/types/Interface/models/ISociety.d.ts +2 -1
- package/es/types/Interface/models/ISociety.d.ts.map +1 -1
- package/es/types/Interface/models/ISociety.js.map +1 -1
- package/es/types/index.d.ts +3 -0
- package/es/types/index.d.ts.map +1 -1
- package/es/types/index.js +3 -0
- package/es/types/index.js.map +1 -1
- package/js/api/resources/Account.js +4 -0
- package/js/api/resources/Account.js.map +1 -1
- package/js/api/resources/BankList.js +18 -0
- package/js/api/resources/BankList.js.map +1 -0
- package/js/api/resources.js +7 -1
- package/js/api/resources.js.map +1 -1
- package/js/types/Enum/Civility.js +12 -0
- package/js/types/Enum/Civility.js.map +1 -0
- package/js/types/Enum/Ged.js +2 -2
- package/js/types/Enum/Ged.js.map +1 -1
- package/js/types/Enum/MailAuto.js +1 -0
- package/js/types/Enum/MailAuto.js.map +1 -1
- package/js/types/Enum/VatDeclarationType.js +188 -228
- package/js/types/Enum/VatDeclarationType.js.map +1 -1
- package/js/types/Interface/api/amount/FormattedAmount.js +6 -0
- package/js/types/Interface/api/amount/FormattedAmount.js.map +1 -0
- package/js/types/Interface/api/customerActivity/CreateCustomerActivityReport.js +39 -0
- package/js/types/Interface/api/customerActivity/CreateCustomerActivityReport.js.map +1 -0
- package/js/types/Interface/api/notification/CreateNotification.js +3 -1
- package/js/types/Interface/api/notification/CreateNotification.js.map +1 -1
- package/js/types/Interface/models/IApiError.js +1 -0
- package/js/types/Interface/models/IApiError.js.map +1 -1
- package/js/types/index.js +36 -0
- package/js/types/index.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/Account.ts +5 -1
- package/ts/api/resources/BankList.ts +8 -0
- package/ts/api/resources.ts +4 -0
- package/ts/types/Enum/Civility.ts +4 -0
- package/ts/types/Enum/Ged.ts +1 -1
- package/ts/types/Enum/MailAuto.ts +1 -0
- package/ts/types/Enum/VatDeclarationType.ts +46 -61
- package/ts/types/Interface/api/amount/FormattedAmount.ts +9 -0
- package/ts/types/Interface/api/customerActivity/CreateCustomerActivityReport.ts +25 -0
- package/ts/types/Interface/api/notification/CreateNotification.ts +3 -0
- package/ts/types/Interface/api/vatDeclaration/ReadVatVariousOperations.ts +2 -0
- package/ts/types/Interface/api/vatDeclaration/ResultFormatToEntries.ts +2 -1
- package/ts/types/Interface/models/IApiError.ts +1 -0
- package/ts/types/Interface/models/ISociety.ts +3 -2
- 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
|
|
4
|
-
|
|
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
|
-
|
|
11
|
+
{
|
|
24
12
|
number: 445705,
|
|
25
13
|
fields: ['ligne09Tva'],
|
|
26
14
|
fieldsToSubtract: [],
|
|
27
15
|
type: 'debit',
|
|
28
16
|
},
|
|
29
|
-
|
|
17
|
+
{
|
|
30
18
|
number: 445710,
|
|
31
19
|
fields: ['ligne9BTva'],
|
|
32
20
|
fieldsToSubtract: [],
|
|
33
21
|
type: 'debit',
|
|
34
22
|
},
|
|
35
|
-
|
|
23
|
+
{
|
|
36
24
|
number: 445785,
|
|
37
25
|
fields: ['ligne10Tva'],
|
|
38
26
|
fieldsToSubtract: [],
|
|
39
27
|
type: 'debit',
|
|
40
28
|
},
|
|
41
|
-
|
|
29
|
+
{
|
|
42
30
|
number: 445721,
|
|
43
31
|
fields: ['ligne11Tva'],
|
|
44
32
|
fieldsToSubtract: [],
|
|
45
33
|
type: 'debit',
|
|
46
34
|
},
|
|
47
|
-
|
|
35
|
+
{
|
|
48
36
|
number: 445820,
|
|
49
37
|
fields: ['ligne13', 'ligne14', 'ligne15', 'ligne5B'],
|
|
50
38
|
fieldsToSubtract: [],
|
|
51
39
|
type: 'debit',
|
|
52
40
|
},
|
|
53
|
-
|
|
41
|
+
{
|
|
54
42
|
number: 445200,
|
|
55
43
|
fields: ['ligne7C', 'ligne17'],
|
|
56
44
|
fieldsToSubtract: [],
|
|
57
45
|
type: 'debit',
|
|
58
46
|
},
|
|
59
|
-
|
|
47
|
+
{
|
|
60
48
|
number: 445662,
|
|
61
49
|
fields: ['ligne7C', 'ligne17'],
|
|
62
50
|
fieldsToSubtract: [],
|
|
63
51
|
type: 'credit',
|
|
64
52
|
},
|
|
65
|
-
|
|
53
|
+
{
|
|
66
54
|
number: 445620,
|
|
67
55
|
fields: ['ligne19'],
|
|
68
56
|
fieldsToSubtract: [],
|
|
69
57
|
type: 'credit',
|
|
70
58
|
},
|
|
71
|
-
|
|
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
|
-
|
|
66
|
+
{
|
|
78
67
|
number: 445840,
|
|
79
68
|
fields: ['ligne21'],
|
|
80
69
|
fieldsToSubtract: [],
|
|
81
70
|
type: 'credit',
|
|
82
71
|
},
|
|
83
|
-
|
|
72
|
+
{
|
|
84
73
|
number: 445670,
|
|
85
74
|
fields: ['ligne22'],
|
|
86
75
|
fieldsToSubtract: [],
|
|
87
76
|
type: 'credit',
|
|
88
77
|
},
|
|
89
|
-
|
|
78
|
+
{
|
|
90
79
|
number: 445830,
|
|
91
80
|
fields: ['ligne26'],
|
|
92
81
|
fieldsToSubtract: [],
|
|
93
82
|
type: 'debit',
|
|
94
83
|
},
|
|
95
|
-
|
|
84
|
+
{
|
|
96
85
|
number: 445670,
|
|
97
86
|
fields: ['ligne27'],
|
|
98
87
|
fieldsToSubtract: [],
|
|
99
88
|
type: 'debit',
|
|
100
89
|
},
|
|
101
|
-
|
|
102
|
-
number: 445810,
|
|
103
|
-
fields: ['A100224_0'],
|
|
104
|
-
fieldsToSubtract: [],
|
|
105
|
-
type: 'debit',
|
|
106
|
-
},
|
|
107
|
-
445680: {
|
|
90
|
+
{
|
|
108
91
|
number: 445680,
|
|
109
|
-
fields: ['
|
|
92
|
+
fields: ['ligne29'],
|
|
110
93
|
fieldsToSubtract: [],
|
|
111
94
|
type: 'credit',
|
|
112
95
|
},
|
|
113
|
-
|
|
96
|
+
{
|
|
114
97
|
number: 445510,
|
|
115
|
-
fields: ['
|
|
98
|
+
fields: ['ligne32'],
|
|
116
99
|
fieldsToSubtract: [],
|
|
117
100
|
type: 'credit',
|
|
118
101
|
},
|
|
119
|
-
|
|
102
|
+
];
|
|
120
103
|
|
|
121
|
-
export const accountInfo3517:
|
|
122
|
-
|
|
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
|
-
|
|
111
|
+
{
|
|
129
112
|
number: 445705,
|
|
130
113
|
fields: ['A100140_0'],
|
|
131
114
|
fieldsToSubtract: [],
|
|
132
115
|
type: 'debit',
|
|
133
116
|
},
|
|
134
|
-
|
|
117
|
+
{
|
|
135
118
|
number: 445710,
|
|
136
119
|
fields: ['A904074_0'],
|
|
137
120
|
fieldsToSubtract: [],
|
|
138
121
|
type: 'debit',
|
|
139
122
|
},
|
|
140
|
-
|
|
123
|
+
{
|
|
141
124
|
number: 445785,
|
|
142
125
|
fields: ['A100168_0'],
|
|
143
126
|
fieldsToSubtract: [],
|
|
144
127
|
type: 'debit',
|
|
145
128
|
},
|
|
146
|
-
|
|
129
|
+
{
|
|
147
130
|
number: 445721,
|
|
148
131
|
fields: ['A100166_0'],
|
|
149
132
|
fieldsToSubtract: [],
|
|
150
133
|
type: 'debit',
|
|
151
134
|
},
|
|
152
|
-
|
|
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
|
-
|
|
141
|
+
{
|
|
159
142
|
number: 445820,
|
|
160
143
|
fields: ['A100197_0', 'A100087_0', 'A905878_0'],
|
|
161
144
|
fieldsToSubtract: [],
|
|
162
145
|
type: 'debit',
|
|
163
146
|
},
|
|
164
|
-
|
|
147
|
+
{
|
|
165
148
|
number: 445200,
|
|
166
149
|
fields: ['A900775_0', 'A100150_0'],
|
|
167
150
|
fieldsToSubtract: [],
|
|
168
151
|
type: 'debit',
|
|
169
152
|
},
|
|
170
|
-
|
|
153
|
+
{
|
|
171
154
|
number: 445662,
|
|
172
155
|
fields: ['A900775_0', 'A100150_0'],
|
|
173
156
|
fieldsToSubtract: [],
|
|
174
157
|
type: 'credit',
|
|
175
158
|
},
|
|
176
|
-
|
|
159
|
+
{
|
|
177
160
|
number: 445620,
|
|
178
161
|
fields: ['A100090_0'],
|
|
179
162
|
fieldsToSubtract: [],
|
|
180
163
|
type: 'credit',
|
|
181
164
|
},
|
|
182
|
-
|
|
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
|
-
|
|
172
|
+
{
|
|
189
173
|
number: 445840,
|
|
190
174
|
fields: ['A100092_0'],
|
|
191
175
|
fieldsToSubtract: [],
|
|
192
176
|
type: 'credit',
|
|
193
177
|
},
|
|
194
|
-
|
|
178
|
+
{
|
|
195
179
|
number: 445820,
|
|
196
180
|
fields: ['A905879_0'],
|
|
197
181
|
fieldsToSubtract: [],
|
|
198
182
|
type: 'credit',
|
|
199
183
|
},
|
|
200
|
-
|
|
184
|
+
{
|
|
201
185
|
number: 445810,
|
|
202
186
|
fields: ['A100194_0'],
|
|
203
187
|
fieldsToSubtract: [],
|
|
204
188
|
type: 'credit',
|
|
205
189
|
},
|
|
206
|
-
|
|
190
|
+
{
|
|
207
191
|
number: 445670,
|
|
208
192
|
fields: ['A100151_0'],
|
|
209
193
|
fieldsToSubtract: [],
|
|
210
194
|
type: 'credit',
|
|
211
195
|
},
|
|
212
|
-
|
|
196
|
+
{
|
|
213
197
|
number: 445830,
|
|
214
198
|
fields: ['A100097_0'],
|
|
215
199
|
fieldsToSubtract: [],
|
|
216
200
|
type: 'debit',
|
|
217
201
|
},
|
|
218
|
-
|
|
202
|
+
{
|
|
219
203
|
number: 445670,
|
|
220
204
|
fields: ['A100098_0'],
|
|
221
205
|
fieldsToSubtract: [],
|
|
222
206
|
type: 'debit',
|
|
223
207
|
},
|
|
224
|
-
|
|
208
|
+
{
|
|
225
209
|
number: 445810,
|
|
226
210
|
fields: ['A100224_0'],
|
|
227
211
|
fieldsToSubtract: [],
|
|
228
212
|
type: 'debit',
|
|
229
213
|
},
|
|
230
|
-
|
|
214
|
+
{
|
|
231
215
|
number: 445680,
|
|
232
216
|
fields: ['A100204_0'],
|
|
233
217
|
fieldsToSubtract: [],
|
|
234
218
|
type: 'credit',
|
|
235
219
|
},
|
|
236
|
-
|
|
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,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()
|
|
@@ -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';
|