@silexpert/core 1.1.49 → 1.1.51

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 (116) hide show
  1. package/es/api/resources/AccountsSectors.d.ts +2 -1
  2. package/es/api/resources/AccountsSectors.d.ts.map +1 -1
  3. package/es/api/resources/AccountsSectors.js +3 -0
  4. package/es/api/resources/AccountsSectors.js.map +1 -1
  5. package/es/api/resources/BusinessSector.d.ts +8 -0
  6. package/es/api/resources/BusinessSector.d.ts.map +1 -0
  7. package/es/api/resources/BusinessSector.js +13 -0
  8. package/es/api/resources/BusinessSector.js.map +1 -0
  9. package/es/api/resources/Library.d.ts +4 -1
  10. package/es/api/resources/Library.d.ts.map +1 -1
  11. package/es/api/resources/Library.js +9 -0
  12. package/es/api/resources/Library.js.map +1 -1
  13. package/es/api/resources/Payment.d.ts +2 -1
  14. package/es/api/resources/Payment.d.ts.map +1 -1
  15. package/es/api/resources/Payment.js +9 -0
  16. package/es/api/resources/Payment.js.map +1 -1
  17. package/es/api/resources.d.ts +2 -0
  18. package/es/api/resources.d.ts.map +1 -1
  19. package/es/api/resources.js +2 -0
  20. package/es/api/resources.js.map +1 -1
  21. package/es/types/Enum/Sector.d.ts +33 -3
  22. package/es/types/Enum/Sector.d.ts.map +1 -1
  23. package/es/types/Enum/Sector.js +288 -3
  24. package/es/types/Enum/Sector.js.map +1 -1
  25. package/es/types/Interface/api/account/QueryAccounts.d.ts +3 -0
  26. package/es/types/Interface/api/account/QueryAccounts.d.ts.map +1 -1
  27. package/es/types/Interface/api/account/QueryAccounts.js +12 -0
  28. package/es/types/Interface/api/account/QueryAccounts.js.map +1 -1
  29. package/es/types/Interface/api/accountsSectors/Query.d.ts +4 -0
  30. package/es/types/Interface/api/accountsSectors/Query.d.ts.map +1 -0
  31. package/es/types/Interface/api/accountsSectors/Query.js +19 -0
  32. package/es/types/Interface/api/accountsSectors/Query.js.map +1 -0
  33. package/es/types/Interface/api/businessSector/Create.d.ts +4 -0
  34. package/es/types/Interface/api/businessSector/Create.d.ts.map +1 -0
  35. package/es/types/Interface/api/businessSector/Create.js +17 -0
  36. package/es/types/Interface/api/businessSector/Create.js.map +1 -0
  37. package/es/types/Interface/api/businessSector/Delete.d.ts +4 -0
  38. package/es/types/Interface/api/businessSector/Delete.d.ts.map +1 -0
  39. package/es/types/Interface/api/businessSector/Delete.js +17 -0
  40. package/es/types/Interface/api/businessSector/Delete.js.map +1 -0
  41. package/es/types/Interface/api/businessSector/Query.d.ts +4 -0
  42. package/es/types/Interface/api/businessSector/Query.d.ts.map +1 -0
  43. package/es/types/Interface/api/businessSector/Query.js +17 -0
  44. package/es/types/Interface/api/businessSector/Query.js.map +1 -0
  45. package/es/types/Interface/api/library/QueryLibrary.d.ts +2 -0
  46. package/es/types/Interface/api/library/QueryLibrary.d.ts.map +1 -1
  47. package/es/types/Interface/api/library/QueryLibrary.js +12 -0
  48. package/es/types/Interface/api/library/QueryLibrary.js.map +1 -1
  49. package/es/types/Interface/api/payment/QueryPayment.d.ts +5 -0
  50. package/es/types/Interface/api/payment/QueryPayment.d.ts.map +1 -0
  51. package/es/types/Interface/api/payment/QueryPayment.js +34 -0
  52. package/es/types/Interface/api/payment/QueryPayment.js.map +1 -0
  53. package/es/types/Interface/models/IBusinessPartner.d.ts +2 -0
  54. package/es/types/Interface/models/IBusinessPartner.d.ts.map +1 -1
  55. package/es/types/Interface/models/IBusinessPartner.js.map +1 -1
  56. package/es/types/Interface/models/IBusinessSector.d.ts +10 -0
  57. package/es/types/Interface/models/IBusinessSector.d.ts.map +1 -0
  58. package/es/types/Interface/models/IBusinessSector.js +2 -0
  59. package/es/types/Interface/models/IBusinessSector.js.map +1 -0
  60. package/es/types/Interface/models/ISocietyDetail.d.ts +4 -0
  61. package/es/types/Interface/models/ISocietyDetail.d.ts.map +1 -1
  62. package/es/types/Interface/models/ISocietyDetail.js.map +1 -1
  63. package/es/types/index.d.ts +6 -0
  64. package/es/types/index.d.ts.map +1 -1
  65. package/es/types/index.js +6 -0
  66. package/es/types/index.js.map +1 -1
  67. package/js/api/resources/AccountsSectors.js +5 -0
  68. package/js/api/resources/AccountsSectors.js.map +1 -1
  69. package/js/api/resources/BusinessSector.js +24 -0
  70. package/js/api/resources/BusinessSector.js.map +1 -0
  71. package/js/api/resources/Library.js +13 -0
  72. package/js/api/resources/Library.js.map +1 -1
  73. package/js/api/resources/Payment.js +9 -0
  74. package/js/api/resources/Payment.js.map +1 -1
  75. package/js/api/resources.js +3 -1
  76. package/js/api/resources.js.map +1 -1
  77. package/js/types/Enum/Sector.js +244 -3
  78. package/js/types/Enum/Sector.js.map +1 -1
  79. package/js/types/Interface/api/account/QueryAccounts.js +3 -0
  80. package/js/types/Interface/api/account/QueryAccounts.js.map +1 -1
  81. package/js/types/Interface/api/accountsSectors/Query.js +22 -0
  82. package/js/types/Interface/api/accountsSectors/Query.js.map +1 -0
  83. package/js/types/Interface/api/businessSector/Create.js +21 -0
  84. package/js/types/Interface/api/businessSector/Create.js.map +1 -0
  85. package/js/types/Interface/api/businessSector/Delete.js +21 -0
  86. package/js/types/Interface/api/businessSector/Delete.js.map +1 -0
  87. package/js/types/Interface/api/businessSector/Query.js +21 -0
  88. package/js/types/Interface/api/businessSector/Query.js.map +1 -0
  89. package/js/types/Interface/api/library/QueryLibrary.js +2 -0
  90. package/js/types/Interface/api/library/QueryLibrary.js.map +1 -1
  91. package/js/types/Interface/api/payment/QueryPayment.js +33 -0
  92. package/js/types/Interface/api/payment/QueryPayment.js.map +1 -0
  93. package/js/types/Interface/models/IBusinessPartner.js.map +1 -1
  94. package/js/types/Interface/models/IBusinessSector.js +6 -0
  95. package/js/types/Interface/models/IBusinessSector.js.map +1 -0
  96. package/js/types/Interface/models/ISocietyDetail.js.map +1 -1
  97. package/js/types/index.js +60 -0
  98. package/js/types/index.js.map +1 -1
  99. package/package.json +1 -1
  100. package/ts/api/resources/AccountsSectors.ts +7 -1
  101. package/ts/api/resources/BusinessSector.ts +17 -0
  102. package/ts/api/resources/Library.ts +13 -1
  103. package/ts/api/resources/Payment.ts +11 -1
  104. package/ts/api/resources.ts +2 -0
  105. package/ts/types/Enum/Sector.ts +308 -4
  106. package/ts/types/Interface/api/account/QueryAccounts.ts +9 -0
  107. package/ts/types/Interface/api/accountsSectors/Query.ts +8 -0
  108. package/ts/types/Interface/api/businessSector/Create.ts +6 -0
  109. package/ts/types/Interface/api/businessSector/Delete.ts +6 -0
  110. package/ts/types/Interface/api/businessSector/Query.ts +6 -0
  111. package/ts/types/Interface/api/library/QueryLibrary.ts +10 -0
  112. package/ts/types/Interface/api/payment/QueryPayment.ts +22 -0
  113. package/ts/types/Interface/models/IBusinessPartner.ts +3 -0
  114. package/ts/types/Interface/models/IBusinessSector.ts +12 -0
  115. package/ts/types/Interface/models/ISocietyDetail.ts +4 -0
  116. package/ts/types/index.ts +6 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@silexpert/core",
3
- "version": "1.1.49",
3
+ "version": "1.1.51",
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": "js/index.js",
@@ -1,4 +1,6 @@
1
- import { IAccountsSectors, UpdateOrCreateMultipleAccounts, CreateMultipleAccountsSectors } from '../..';
1
+ import {
2
+ IAccountsSectors, UpdateOrCreateMultipleAccounts, CreateMultipleAccountsSectors, QueryAccountsSectors,
3
+ } from '../..';
2
4
  import { Resource } from '../Resource';
3
5
 
4
6
  export class AccountsSector extends Resource {
@@ -6,6 +8,10 @@ export class AccountsSector extends Resource {
6
8
  return this.axios.$get(`/sectors/${idAccount}`);
7
9
  }
8
10
 
11
+ getBySector(params: QueryAccountsSectors): Promise<IAccountsSectors[]> {
12
+ return this.axios.$get('/sectors', { params });
13
+ }
14
+
9
15
  create(idAccount: number, payload: UpdateOrCreateMultipleAccounts): Promise<IAccountsSectors[]> {
10
16
  return this.axios.$post(`/sectors/${idAccount}`, payload);
11
17
  }
@@ -0,0 +1,17 @@
1
+ import {
2
+ IBusinessSector, QueryGetAllForSociety, CreateBusinessSector, DeleteBusinessSector,
3
+ } from '../../types';
4
+ import { Resource } from '../Resource';
5
+
6
+ export class BusinessSector extends Resource {
7
+ get(idSociety: number, params: QueryGetAllForSociety): Promise<IBusinessSector[]> {
8
+ return this.axios.$get(`/societies/${idSociety}/business-sectors`, { params });
9
+ }
10
+
11
+ create(idSociety: number, payload: CreateBusinessSector): Promise<IBusinessSector[]> {
12
+ return this.axios.$post(`societies/${idSociety}/business-sectors`, payload);
13
+ }
14
+ delete(idSociety: number, payload: DeleteBusinessSector): Promise<number> {
15
+ return this.axios.$delete(`societies/${idSociety}/business-sectors`, { params: payload });
16
+ }
17
+ }
@@ -1,6 +1,6 @@
1
1
  import { Resource } from '../Resource';
2
2
  import {
3
- QueryLibraryFile, UpdateOrCreateGedFile, IGedFile, QueryDownloadFile,
3
+ QueryLibraryFile, UpdateOrCreateGedFile, IGedFile, QueryDownloadFile, UpdateGedFile,
4
4
  } from '../../types';
5
5
 
6
6
  export class Library extends Resource {
@@ -16,10 +16,22 @@ export class Library extends Resource {
16
16
  return this.axios.$get('/library/files', { params });
17
17
  }
18
18
 
19
+ getAllForLibrary(params: QueryLibraryFile): Promise<IGedFile[]> {
20
+ return this.axios.$get('/library/files-for-library', { params });
21
+ }
22
+
23
+ countAll(params: QueryLibraryFile): Promise<Array<object>> {
24
+ return this.axios.$get('/library/count-for-library', { params });
25
+ }
26
+
19
27
  updateOrCreate(idFile: number, params: UpdateOrCreateGedFile): Promise<IGedFile> {
20
28
  return this.axios.$post(`/library/file/${idFile}`, params);
21
29
  }
22
30
 
31
+ update(idFile: number, params: UpdateGedFile): Promise<IGedFile> {
32
+ return this.axios.$put(`/library/file/${idFile}`, params);
33
+ }
34
+
23
35
  download(idSociety: number, params: QueryDownloadFile, isPdfFile = false): Promise<Buffer> {
24
36
  return this.axios.$get(`/library/${idSociety}/file/download`,
25
37
  {
@@ -1,5 +1,5 @@
1
1
  import { Resource } from '../Resource';
2
- import { QueryMonthlyPayment } from '../../types';
2
+ import { QueryMonthlyPayment, QueryPaymentCsv } from '../../types';
3
3
 
4
4
  export class Payment extends Resource {
5
5
  getMonthlyCsv(query: QueryMonthlyPayment): Promise<void> {
@@ -11,4 +11,14 @@ export class Payment extends Resource {
11
11
  },
12
12
  });
13
13
  }
14
+
15
+ getInternalPaymentCsv(query: QueryPaymentCsv): Promise<void> {
16
+ return this.axios.$get('payment/internal-payment/csv', {
17
+ params: query,
18
+ responseType: 'arraybuffer',
19
+ headers: {
20
+ Accept: 'application/csv',
21
+ },
22
+ });
23
+ }
14
24
  }
@@ -127,6 +127,7 @@ import { Team } from './resources/Team';
127
127
  import { CashAndExpense } from './resources/CashAndExpense';
128
128
  import { Archive } from './resources/Archive';
129
129
  import { AccountsSector } from './resources/AccountsSectors';
130
+ import { BusinessSector } from './resources/BusinessSector';
130
131
 
131
132
  export const resources = {
132
133
  simulation: Simulation,
@@ -258,4 +259,5 @@ export const resources = {
258
259
  cashAndExpense: CashAndExpense,
259
260
  archive: Archive,
260
261
  accountsSector: AccountsSector,
262
+ businessSector: BusinessSector,
261
263
  };
@@ -1,6 +1,310 @@
1
1
  export enum Sector {
2
2
  DEFAULT = 1,
3
- AUTO_ENTREPRENEUR_SERVICE = 2,
4
- AUTO_ENTREPRENEUR_MERCHANDISE = 3,
5
- AUTO_ENTREPRENEUR_SERVICE_MERCHANDISE = 4,
6
- }
3
+ ECOMMERCE = 2,
4
+ BNC_LIBERAL = 3,
5
+ SCI = 4,
6
+ BTP = 5,
7
+ CHR = 6,
8
+ AGRICOLE = 7,
9
+ ASSOCATION = 8,
10
+ TAXI_VTC = 9,
11
+ ESPECES = 10,
12
+ VAT = 11,
13
+ SERVICE = 12,
14
+ PRODUITS = 13,
15
+ MARCHANDISES = 14,
16
+ VEHICULE = 15,
17
+ IS = 16,
18
+ GERANCE_MAJORITAIRE = 17,
19
+ }
20
+
21
+ export type BusinessSectorDescription = {
22
+ activated: boolean;
23
+ label: string;
24
+ };
25
+
26
+ export type BusinessSectorTypeContent = {
27
+ name: string;
28
+ id: number;
29
+ type: 'add' | 'subtract';
30
+ tag: string;
31
+ module: boolean,
32
+ description?: BusinessSectorDescription[],
33
+ icon?: string;
34
+ };
35
+ export type BusinessSectorType = {
36
+ [key: string]: BusinessSectorTypeContent
37
+ };
38
+
39
+ export const businessSectors: BusinessSectorType = {
40
+ DEFAULT: {
41
+ id: Sector.DEFAULT,
42
+ name: 'Autre',
43
+ tag: 'AUT',
44
+ type: 'add',
45
+ module: false,
46
+ icon: 'work',
47
+ description: [
48
+ {
49
+ activated: true,
50
+ label: 'Base plan comptable : Autre',
51
+ },
52
+ ],
53
+ },
54
+ ECOMMERCE: {
55
+ id: Sector.ECOMMERCE,
56
+ name: 'E-commerce',
57
+ type: 'add',
58
+ tag: 'ECO',
59
+ icon: 'language',
60
+ module: false,
61
+ description: [
62
+ {
63
+ activated: true,
64
+ label: 'Base plan comptable : E-commerce',
65
+ },
66
+ ],
67
+ },
68
+ BNC_LIBERAL: {
69
+ id: Sector.BNC_LIBERAL,
70
+ name: 'Profession libéral',
71
+ type: 'add',
72
+ tag: 'BNC',
73
+ icon: 'person',
74
+ module: false,
75
+ description: [
76
+ {
77
+ activated: true,
78
+ label: 'Base plan comptable : BNC et libéral',
79
+ },
80
+ ],
81
+ },
82
+ SCI: {
83
+ id: Sector.SCI,
84
+ name: 'SCI',
85
+ type: 'add',
86
+ tag: 'SCI',
87
+ icon: 'home',
88
+ module: false,
89
+ description: [
90
+ {
91
+ activated: true,
92
+ label: 'Base plan comptable : SCI',
93
+ },
94
+ ],
95
+ },
96
+ BTP: {
97
+ id: Sector.BTP,
98
+ name: 'BTP',
99
+ type: 'add',
100
+ tag: 'BTP',
101
+ icon: 'construction',
102
+ module: false,
103
+ description: [
104
+ {
105
+ activated: true,
106
+ label: 'Base plan comptable : BTP',
107
+ },
108
+ ],
109
+ },
110
+ CHR: {
111
+ id: Sector.CHR,
112
+ name: 'Café, hôtel ou restaurant',
113
+ type: 'add',
114
+ tag: 'CHR',
115
+ icon: 'coffee',
116
+ module: false,
117
+ description: [
118
+ {
119
+ activated: true,
120
+ label: 'Base plan comptable : Café, hôtel ou restaurant',
121
+ },
122
+ ],
123
+ },
124
+ AGRICOLE: {
125
+ id: Sector.AGRICOLE,
126
+ name: 'Agricole',
127
+ type: 'add',
128
+ tag: 'AGR',
129
+ icon: 'florist',
130
+ module: false,
131
+ description: [
132
+ {
133
+ activated: true,
134
+ label: 'Base plan comptable : Agricole',
135
+ },
136
+ ],
137
+ },
138
+ ASSOCATION: {
139
+ id: Sector.ASSOCATION,
140
+ name: 'Association',
141
+ type: 'add',
142
+ tag: 'ASS',
143
+ icon: 'favorite',
144
+ module: false,
145
+ description: [
146
+ {
147
+ activated: true,
148
+ label: 'Base plan comptable : Association',
149
+ },
150
+ ],
151
+ },
152
+ TAXI_VTC: {
153
+ id: Sector.TAXI_VTC,
154
+ name: 'Taxis ou VTC',
155
+ type: 'add',
156
+ tag: 'VTC',
157
+ icon: 'taxi',
158
+ module: false,
159
+ description: [
160
+ {
161
+ activated: true,
162
+ label: 'Base plan comptable : Taxi ou VTC',
163
+ },
164
+ ],
165
+ },
166
+ ESPECES: {
167
+ id: Sector.ESPECES,
168
+ name: 'Espèces',
169
+ type: 'add',
170
+ tag: 'ESP',
171
+ module: true,
172
+ description: [
173
+ {
174
+ activated: false,
175
+ label: 'Désactivation de la catégorie de dépôt de liquidités',
176
+ },
177
+ {
178
+ activated: false,
179
+ label: 'Désactivation de la catégorie de dépôt de liquidités',
180
+ },
181
+ {
182
+ activated: true,
183
+ label: 'Ajout de la catégorie de dépôt de liquidités',
184
+ },
185
+ {
186
+ activated: true,
187
+ label: 'Ajout de la catégorie Dons et pourboires',
188
+ },
189
+ ],
190
+ },
191
+ TVA: {
192
+ id: Sector.VAT,
193
+ name: 'Sans TVA',
194
+ type: 'subtract',
195
+ tag: 'TVA',
196
+ description: [
197
+ {
198
+ activated: false,
199
+ label: 'Désactivation des catégories liées à la TVA',
200
+ },
201
+ {
202
+ activated: true,
203
+ label: 'Ajout des catégories liées à la TVA',
204
+ },
205
+ ],
206
+ module: true,
207
+ },
208
+ SERVICE: {
209
+ id: Sector.SERVICE,
210
+ name: 'Prestation de services',
211
+ type: 'add',
212
+ tag: 'SER',
213
+ description: [
214
+ {
215
+ activated: false,
216
+ label: 'Désactivation des catégories liées à la prestation de services',
217
+ },
218
+ {
219
+ activated: true,
220
+ label: 'Ajout de la catégorie Vente de prestation de services',
221
+ },
222
+ ],
223
+ module: true,
224
+ },
225
+ PRODUITS: {
226
+ id: Sector.PRODUITS,
227
+ name: 'Produits',
228
+ type: 'add',
229
+ tag: 'PRO',
230
+ module: true,
231
+ description: [
232
+ {
233
+ activated: false,
234
+ label: 'Désactivation des catégories liées à la vente de produits',
235
+ },
236
+ {
237
+ activated: true,
238
+ label: 'Ajout des catégories liées à la vente de produits',
239
+ },
240
+ ],
241
+ },
242
+ MARCHANDISES: {
243
+ id: Sector.MARCHANDISES,
244
+ name: 'Marchandises',
245
+ type: 'add',
246
+ module: true,
247
+ tag: 'MAR',
248
+ description: [
249
+ {
250
+ activated: false,
251
+ label: 'Désactivation des catégories liées à la vente de marchandises',
252
+ },
253
+ {
254
+ activated: true,
255
+ label: 'Ajout des catégories liées à la vente de marchandises',
256
+ },
257
+ ],
258
+ },
259
+ VEHICULE: {
260
+ id: Sector.VEHICULE,
261
+ name: 'Véhicule',
262
+ type: 'add',
263
+ tag: 'VEH',
264
+ module: true,
265
+ description: [
266
+ {
267
+ activated: false,
268
+ label: 'Désactivation des catégories véhicule',
269
+ },
270
+ {
271
+ activated: true,
272
+ label: 'Ajout des catégories véhicule',
273
+ },
274
+ ],
275
+ },
276
+ IS: {
277
+ id: Sector.IS,
278
+ name: 'Impôt sur les sociétés (IS)',
279
+ type: 'add',
280
+ tag: 'IS',
281
+ module: true,
282
+ description: [
283
+ {
284
+ activated: false,
285
+ label: 'Désactivationde la catégorie Impôt sur les sociétés (IS)',
286
+ },
287
+ {
288
+ activated: true,
289
+ label: 'Ajout de la catégorie Impôt sur les sociétés (IS)',
290
+ },
291
+ ],
292
+ },
293
+ GERANCE_MAJORITAIRE: {
294
+ id: Sector.GERANCE_MAJORITAIRE,
295
+ name: 'Gérance majoritaire',
296
+ type: 'add',
297
+ tag: 'GEM',
298
+ module: true,
299
+ description: [
300
+ {
301
+ activated: false,
302
+ label: 'Désactivation des catégories liées à la gérance majoritaire',
303
+ },
304
+ {
305
+ activated: true,
306
+ label: 'Ajout des catégories liées à la gérance majoritaire',
307
+ },
308
+ ],
309
+ },
310
+ };
@@ -20,4 +20,13 @@ export class QueryAccounts {
20
20
 
21
21
  @ApiPropertyOptional()
22
22
  includeDeletedAccount?: boolean;
23
+
24
+ @ApiPropertyOptional()
25
+ onlyGeneric?: boolean;
26
+
27
+ @ApiPropertyOptional()
28
+ filteredByPersonilizedBusiness?: boolean;
29
+
30
+ @ApiPropertyOptional()
31
+ newVersion?: boolean;
23
32
  }
@@ -0,0 +1,8 @@
1
+ import { IsArray } from 'class-validator';
2
+ import { ApiProperty } from '../../../../utils';
3
+
4
+ export class QueryAccountsSectors {
5
+ @ApiProperty()
6
+ @IsArray()
7
+ idSectors: number[];
8
+ }
@@ -0,0 +1,6 @@
1
+ import { ApiProperty } from '../../../../utils';
2
+
3
+ export class CreateBusinessSector {
4
+ @ApiProperty()
5
+ idSector: number[];
6
+ }
@@ -0,0 +1,6 @@
1
+ import { ApiProperty } from '../../../../utils';
2
+
3
+ export class DeleteBusinessSector {
4
+ @ApiProperty()
5
+ idSector: number[];
6
+ }
@@ -0,0 +1,6 @@
1
+ import { ApiPropertyOptional } from '../../../../utils';
2
+
3
+ export class QueryGetAllForSociety {
4
+ @ApiPropertyOptional()
5
+ idSector?: number[];
6
+ }
@@ -43,6 +43,16 @@ export class QueryLibraryFile {
43
43
  })
44
44
  attributes?: string[];
45
45
 
46
+ @ApiPropertyOptional()
47
+ @IsNumber()
48
+ @IsOptional()
49
+ page?: number;
50
+
51
+ @ApiPropertyOptional()
52
+ @IsNumber()
53
+ @IsOptional()
54
+ limit?: number;
55
+
46
56
  @ApiPropertyOptional()
47
57
  @IsOptional()
48
58
  @IsString({
@@ -0,0 +1,22 @@
1
+ import { IsDefined } from 'class-validator';
2
+ import { ApiProperty } from '../../../../utils';
3
+
4
+ export class QueryPaymentCsv {
5
+ @IsDefined()
6
+ @ApiProperty({
7
+ description: 'start date',
8
+ required: true,
9
+ type: Date,
10
+ example: '2022-03-01',
11
+ })
12
+ startDate: Date;
13
+
14
+ @IsDefined()
15
+ @ApiProperty({
16
+ description: 'end date',
17
+ required: true,
18
+ type: Date,
19
+ example: '2022-03-31',
20
+ })
21
+ endDate: Date;
22
+ }
@@ -10,6 +10,7 @@ export interface IBusinessPartner {
10
10
  isPhysical: boolean;
11
11
  address: string | null;
12
12
  zipCodeBirth: string | null;
13
+ // @deprecated
13
14
  birthPlace: string | null;
14
15
  departmentBirth: string | null;
15
16
  idCountryBirth: number | null;
@@ -23,12 +24,14 @@ export interface IBusinessPartner {
23
24
  identityDocument: string | null;
24
25
  otherActivities: string | null;
25
26
  activityBefore: string | null;
27
+ maritalStatus: string | null;
26
28
  idGedFileKbis: number | null;
27
29
  idGedFileIC: number | null;
28
30
  idGedFileStatus: number | null;
29
31
  idSociety: number | null;
30
32
  idUser: number | null;
31
33
  idSocietyParent: number;
34
+ idMaritalStatus: number;
32
35
  createdAt?: Date | null;
33
36
  updatedAt?: Date | null;
34
37
 
@@ -0,0 +1,12 @@
1
+ import { ISociety } from './ISociety';
2
+
3
+ export interface IBusinessSector {
4
+ id?: number;
5
+ idSector: number;
6
+ idSociety: number;
7
+ createdAt?: Date | null;
8
+ updatedAt?: Date | null;
9
+
10
+ // Associations
11
+ society: ISociety
12
+ }
@@ -97,6 +97,10 @@ export interface ISocietyDetail {
97
97
  bankSynchronisationState?: number | null;
98
98
  platformExplanation?:number | null;
99
99
  mobileAppInstallationProposal?:number | null;
100
+ notaryOfficeName?:string | null;
101
+ notaryOfficeAddress?:string | null;
102
+ notaryOfficeZipCode?:string | null;
103
+ notaryOfficeCity?:string | null;
100
104
  verifiedDocuments?: boolean | null;
101
105
  createdAt?: Date | null;
102
106
  updatedAt?: Date | null;
package/ts/types/index.ts CHANGED
@@ -304,6 +304,7 @@ export * from './Interface/models/IVatRegimeHistory';
304
304
  export * from './Interface/models/ICustomerAcceptance';
305
305
  export * from './Interface/models/IUnpaidCallHistory';
306
306
  export * from './Interface/models/IAppNotification';
307
+ export * from './Interface/models/IBusinessSector';
307
308
 
308
309
  // Schemas
309
310
  export * from './Interface/schemas/IRegistrationDetail';
@@ -490,6 +491,7 @@ export * from './Interface/api/accountingEntry/CreateManualEntry';
490
491
  export * from './Interface/api/immobilization/ReadFormattedImmobilization';
491
492
  export * from './Interface/api/immobilization/CreateImmobilization';
492
493
  export * from './Interface/api/payment/QueryMonthlyPayment';
494
+ export * from './Interface/api/payment/QueryPayment';
493
495
  export * from './Interface/api/firstStep/Create';
494
496
  export * from './Interface/api/registration/QueryRegistration';
495
497
  export * from './Interface/api/paymentExpectationCustomer/ReadPaymentExpectationCustomer';
@@ -915,6 +917,10 @@ export * from './Interface/api/commercialImport/Query';
915
917
  export * from './Interface/api/commercialImport/Create';
916
918
  export * from './Interface/api/cashAndExpense/Create';
917
919
  export * from './Interface/api/accountsSectors/Create';
920
+ export * from './Interface/api/businessSector/Create';
921
+ export * from './Interface/api/businessSector/Query';
922
+ export * from './Interface/api/businessSector/Delete';
923
+ export * from './Interface/api/accountsSectors/Query';
918
924
  // Enums types
919
925
  export * from './Interface/enum/Util';
920
926
  export * from './Interface/enum/Date';