@silexpert/core 1.1.95 → 1.1.96

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 (81) hide show
  1. package/es/api/resources/Payment.d.ts +2 -1
  2. package/es/api/resources/Payment.d.ts.map +1 -1
  3. package/es/api/resources/Payment.js +3 -0
  4. package/es/api/resources/Payment.js.map +1 -1
  5. package/es/types/Enum/Country.d.ts +1 -1
  6. package/es/types/Enum/Country.d.ts.map +1 -1
  7. package/es/types/Enum/Country.js +3 -3
  8. package/es/types/Enum/Country.js.map +1 -1
  9. package/es/types/Enum/GeneralThirdParty.d.ts +1 -0
  10. package/es/types/Enum/GeneralThirdParty.d.ts.map +1 -1
  11. package/es/types/Enum/GeneralThirdParty.js +4804 -624
  12. package/es/types/Enum/GeneralThirdParty.js.map +1 -1
  13. package/es/types/Interface/api/inpi/inpi.d.ts +496 -0
  14. package/es/types/Interface/api/inpi/inpi.d.ts.map +1 -0
  15. package/es/types/Interface/api/inpi/inpi.js +2 -0
  16. package/es/types/Interface/api/inpi/inpi.js.map +1 -0
  17. package/es/types/Interface/api/internalInvoicing/CreateInternalInvoicing.d.ts +1 -1
  18. package/es/types/Interface/api/internalInvoicing/CreateInternalInvoicing.d.ts.map +1 -1
  19. package/es/types/Interface/api/internalInvoicing/CreateInternalInvoicing.js.map +1 -1
  20. package/es/types/Interface/api/payment/CreateNotifyCustomer.d.ts +5 -0
  21. package/es/types/Interface/api/payment/CreateNotifyCustomer.d.ts.map +1 -0
  22. package/es/types/Interface/api/payment/CreateNotifyCustomer.js +26 -0
  23. package/es/types/Interface/api/payment/CreateNotifyCustomer.js.map +1 -0
  24. package/es/types/Interface/api/payment/ReadPayment.d.ts +6 -0
  25. package/es/types/Interface/api/payment/ReadPayment.d.ts.map +1 -0
  26. package/es/types/Interface/api/payment/ReadPayment.js +2 -0
  27. package/es/types/Interface/api/payment/ReadPayment.js.map +1 -0
  28. package/es/types/Interface/api/user/CreateUser.d.ts +0 -1
  29. package/es/types/Interface/api/user/CreateUser.d.ts.map +1 -1
  30. package/es/types/Interface/api/user/CreateUser.js +0 -9
  31. package/es/types/Interface/api/user/CreateUser.js.map +1 -1
  32. package/es/types/Interface/models/INafCode.d.ts +3 -0
  33. package/es/types/Interface/models/INafCode.d.ts.map +1 -1
  34. package/es/types/Interface/models/INafCode.js.map +1 -1
  35. package/es/types/index.d.ts +4 -1
  36. package/es/types/index.d.ts.map +1 -1
  37. package/es/types/index.js +4 -1
  38. package/es/types/index.js.map +1 -1
  39. package/es/utils/payment.d.ts +18 -0
  40. package/es/utils/payment.d.ts.map +1 -0
  41. package/es/utils/payment.js +32 -0
  42. package/es/utils/payment.js.map +1 -0
  43. package/js/api/resources/Payment.js +3 -0
  44. package/js/api/resources/Payment.js.map +1 -1
  45. package/js/types/Enum/Country.js +3 -3
  46. package/js/types/Enum/Country.js.map +1 -1
  47. package/js/types/Enum/GeneralThirdParty.js +18245 -901
  48. package/js/types/Enum/GeneralThirdParty.js.map +1 -1
  49. package/js/types/Interface/api/inpi/inpi.js +6 -0
  50. package/js/types/Interface/api/inpi/inpi.js.map +1 -0
  51. package/js/types/Interface/api/internalInvoicing/CreateInternalInvoicing.js.map +1 -1
  52. package/js/types/Interface/api/payment/CreateNotifyCustomer.js +23 -0
  53. package/js/types/Interface/api/payment/CreateNotifyCustomer.js.map +1 -0
  54. package/js/types/Interface/api/payment/ReadPayment.js +6 -0
  55. package/js/types/Interface/api/payment/ReadPayment.js.map +1 -0
  56. package/js/types/Interface/api/user/CreateUser.js +0 -3
  57. package/js/types/Interface/api/user/CreateUser.js.map +1 -1
  58. package/js/types/Interface/models/INafCode.js.map +1 -1
  59. package/js/types/index.js +40 -10
  60. package/js/types/index.js.map +1 -1
  61. package/js/utils/payment.js +61 -0
  62. package/js/utils/payment.js.map +1 -0
  63. package/package.json +1 -1
  64. package/ts/api/resources/Payment.ts +5 -1
  65. package/ts/types/Enum/Country.ts +3 -3
  66. package/ts/types/Enum/GeneralThirdParty.ts +4805 -624
  67. package/ts/types/Interface/api/inpi/inpi.ts +562 -0
  68. package/ts/types/Interface/api/internalInvoicing/CreateInternalInvoicing.ts +1 -1
  69. package/ts/types/Interface/api/payment/CreateNotifyCustomer.ts +14 -0
  70. package/ts/types/Interface/api/payment/ReadPayment.ts +5 -0
  71. package/ts/types/Interface/api/user/CreateUser.ts +0 -8
  72. package/ts/types/Interface/models/INafCode.ts +3 -0
  73. package/ts/types/index.ts +4 -1
  74. package/ts/utils/payment.ts +58 -0
  75. package/es/types/Enum/SendInBlueList.d.ts +0 -11
  76. package/es/types/Enum/SendInBlueList.d.ts.map +0 -1
  77. package/es/types/Enum/SendInBlueList.js +0 -12
  78. package/es/types/Enum/SendInBlueList.js.map +0 -1
  79. package/js/types/Enum/SendInBlueList.js +0 -17
  80. package/js/types/Enum/SendInBlueList.js.map +0 -1
  81. package/ts/types/Enum/SendInBlueList.ts +0 -10
@@ -0,0 +1,562 @@
1
+ export type InpiResults = InpiResult[];
2
+
3
+ export interface InpiResult {
4
+ updatedAt: string
5
+ id: string
6
+ formality: Formality
7
+ siren: string
8
+ }
9
+
10
+ interface Formality {
11
+ siren: string
12
+ content: Content
13
+ typePersonne: string
14
+ diffusionCommerciale: boolean
15
+ formeJuridique: string
16
+ }
17
+
18
+ interface Content {
19
+ formeExerciceActivitePrincipale?: string
20
+ natureCreation: NatureCreation
21
+ personneMorale?: PersonneMorale
22
+ registreAnterieur: RegistreAnterieur3
23
+ natureCessation?: string
24
+ personnePhysique?: PersonnePhysique
25
+ }
26
+
27
+ interface NatureCreation {
28
+ dateCreation: string
29
+ societeEtrangere: boolean
30
+ formeJuridique: string
31
+ microEntreprise: boolean
32
+ etablieEnFrance: boolean
33
+ salarieEnFrance: boolean
34
+ relieeEntrepriseAgricole: boolean
35
+ entrepriseAgricole: boolean
36
+ eirl: boolean
37
+ }
38
+
39
+ interface PersonneMorale {
40
+ adresseEntreprise: AdresseEntreprise
41
+ etablissementPrincipal: EtablissementPrincipal
42
+ autresEtablissements?: AutresEtablissement[]
43
+ observations?: Observations
44
+ identite: Identite
45
+ composition: Composition
46
+ structureEntreprise: StructureEntreprise
47
+ detailCessationEntreprise?: DetailCessationEntreprise
48
+ beneficiairesEffectifs?: BeneficiairesEffectif[]
49
+ }
50
+
51
+ interface AdresseEntreprise {
52
+ adresse: Adresse
53
+ caracteristiques?: Caracteristiques2
54
+ }
55
+
56
+ interface Adresse {
57
+ pays: string
58
+ codePays: string
59
+ codePostal: string
60
+ commune: string
61
+ codeInseeCommune: string
62
+ typeVoie: string
63
+ voie: string
64
+ complementLocalisation?: string
65
+ numVoie?: string
66
+ indiceRepetition?: string
67
+ caracteristiques?: Caracteristiques
68
+ }
69
+
70
+ interface Caracteristiques {
71
+ ambulant: boolean
72
+ }
73
+
74
+ interface Caracteristiques2 {
75
+ ambulant: boolean
76
+ }
77
+
78
+ interface EtablissementPrincipal {
79
+ descriptionEtablissement: DescriptionEtablissement
80
+ adresse: Adresse2
81
+ activites: Activite[]
82
+ registreAnterieur: RegistreAnterieur
83
+ }
84
+
85
+ interface DescriptionEtablissement {
86
+ rolePourEntreprise: string
87
+ pays: string
88
+ codePays: string
89
+ siret: string
90
+ activiteNonSedentaire: boolean
91
+ nomCommercial?: string
92
+ indicateurEtablissementPrincipal: boolean
93
+ enseigne?: string
94
+ dateEffetFermeture?: string
95
+ }
96
+
97
+ interface Adresse2 {
98
+ pays: string
99
+ codePays: string
100
+ codePostal: string
101
+ commune: string
102
+ codeInseeCommune: string
103
+ typeVoie: string
104
+ voie: string
105
+ complementLocalisation?: string
106
+ caracteristiques: Caracteristiques3
107
+ numVoie?: string
108
+ indiceRepetition?: string
109
+ }
110
+
111
+ interface Caracteristiques3 {
112
+ ambulant: boolean
113
+ }
114
+
115
+ interface Activite {
116
+ categoryCode?: string
117
+ indicateurPrincipal: boolean
118
+ indicateurProlongement: boolean
119
+ dateDebut: string
120
+ indicateurNonSedentaire?: boolean
121
+ formeExercice?: string
122
+ categorisationActivite1?: string
123
+ categorisationActivite2?: string
124
+ categorisationActivite3?: string
125
+ categorisationActivite4?: string
126
+ descriptionDetaillee: string
127
+ indicateurActiviteeApe: boolean
128
+ indicateurArtisteAuteur?: boolean
129
+ indicateurMarinProfessionnel?: boolean
130
+ rolePrincipalPourEntreprise: boolean
131
+ codeApe: string
132
+ activiteRattacheeEirl: boolean
133
+ dateFin?: string
134
+ }
135
+
136
+ interface RegistreAnterieur {
137
+ raa: Raa
138
+ rnm: Rnm
139
+ rncs: Rncs
140
+ }
141
+
142
+ interface Raa {
143
+ estPresent: boolean
144
+ }
145
+
146
+ interface Rnm {
147
+ estPresent: boolean
148
+ }
149
+
150
+ interface Rncs {
151
+ estPresent: boolean
152
+ dateDebut: string
153
+ }
154
+
155
+ interface AutresEtablissement {
156
+ descriptionEtablissement: DescriptionEtablissement2
157
+ adresse: Adresse3
158
+ activites: Activite2[]
159
+ registreAnterieur?: RegistreAnterieur2
160
+ }
161
+
162
+ interface DescriptionEtablissement2 {
163
+ rolePourEntreprise: string
164
+ siret: string
165
+ indicateurEtablissementPrincipal: boolean
166
+ dateEffetFermeture?: string
167
+ pays?: string
168
+ codePays?: string
169
+ activiteNonSedentaire?: boolean
170
+ enseigne?: string
171
+ }
172
+
173
+ interface Adresse3 {
174
+ pays: string
175
+ codePays: string
176
+ codePostal: string
177
+ commune: string
178
+ codeInseeCommune: string
179
+ typeVoie: string
180
+ voie: string
181
+ numVoie?: string
182
+ indiceRepetition?: string
183
+ complementLocalisation?: string
184
+ caracteristiques?: Caracteristiques4
185
+ }
186
+
187
+ interface Caracteristiques4 {
188
+ ambulant: boolean
189
+ }
190
+
191
+ interface Activite2 {
192
+ indicateurPrincipal: boolean
193
+ indicateurProlongement: boolean
194
+ dateDebut: string
195
+ dateFin?: string
196
+ descriptionDetaillee: string
197
+ indicateurActiviteeApe: boolean
198
+ rolePrincipalPourEntreprise: boolean
199
+ codeApe: string
200
+ activiteRattacheeEirl: boolean
201
+ categoryCode?: string
202
+ formeExercice?: string
203
+ categorisationActivite1?: string
204
+ categorisationActivite2?: string
205
+ categorisationActivite3?: string
206
+ categorisationActivite4?: string
207
+ indicateurNonSedentaire?: boolean
208
+ indicateurArtisteAuteur?: boolean
209
+ indicateurMarinProfessionnel?: boolean
210
+ }
211
+
212
+ interface RegistreAnterieur2 {
213
+ raa: Raa2
214
+ rnm: Rnm2
215
+ rncs: Rncs2
216
+ }
217
+
218
+ interface Raa2 {
219
+ estPresent: boolean
220
+ }
221
+
222
+ interface Rnm2 {
223
+ estPresent: boolean
224
+ }
225
+
226
+ interface Rncs2 {
227
+ estPresent?: boolean
228
+ dateDebut?: string
229
+ }
230
+
231
+ interface Observations {
232
+ rcs?: Rc[]
233
+ }
234
+
235
+ interface Rc {
236
+ idObservation?: number
237
+ numObservation?: string
238
+ dateAjout?: string
239
+ texte?: string
240
+ dateGreffe?: string
241
+ etatObs?: string
242
+ dateDerModif?: string
243
+ dateDesactivation?: string
244
+ }
245
+
246
+ interface Identite {
247
+ entreprise: Entreprise
248
+ description: Description
249
+ }
250
+
251
+ interface Entreprise {
252
+ siren: string
253
+ denomination: string
254
+ formeJuridique: string
255
+ nicSiege: string
256
+ codeApe: string
257
+ indicateurAssocieUnique: boolean
258
+ dateImmat: string
259
+ }
260
+
261
+ interface Description {
262
+ objet: string
263
+ duree: number
264
+ ess: boolean
265
+ capitalVariable: boolean
266
+ montantCapital: number
267
+ deviseCapital: string
268
+ indicateurOrigineFusionScission: boolean
269
+ indicateurAssocieUnique?: boolean
270
+ indicateurAssocieUniqueDirigeant: boolean
271
+ sigle?: string
272
+ datePremiereCloture?: string
273
+ }
274
+
275
+ interface Composition {
276
+ pouvoirs: Pouvoir[]
277
+ }
278
+
279
+ interface Pouvoir {
280
+ typeDePersonne: string
281
+ individu?: Individu
282
+ indicateurActifAgricole: boolean
283
+ entreprise?: Entreprise2
284
+ adresseEntreprise?: AdresseEntreprise2
285
+ representant?: Representant
286
+ }
287
+
288
+ interface Individu {
289
+ descriptionPersonne: DescriptionPersonne
290
+ adresseDomicile: AdresseDomicile
291
+ indicateurActifAgricole: boolean
292
+ }
293
+
294
+ interface DescriptionPersonne {
295
+ dateDeNaissance?: string
296
+ role: string
297
+ nom: string
298
+ prenoms: string[]
299
+ nationalite?: string
300
+ situationMatrimoniale: string
301
+ }
302
+
303
+ interface AdresseDomicile {
304
+ pays: string
305
+ codePays: string
306
+ codePostal?: string
307
+ commune?: string
308
+ codeInseeCommune?: string
309
+ }
310
+
311
+ interface Entreprise2 {
312
+ roleEntreprise?: string
313
+ siren?: string
314
+ denomination: string
315
+ formeJuridique?: string
316
+ }
317
+
318
+ interface AdresseEntreprise2 {
319
+ pays: string
320
+ codePays: string
321
+ codePostal: string
322
+ commune: string
323
+ codeInseeCommune: string
324
+ voie: string
325
+ complementLocalisation?: string
326
+ }
327
+
328
+ interface Representant {
329
+ indicateurActifAgricole: boolean
330
+ }
331
+
332
+ interface StructureEntreprise {
333
+ indicateurPrincipalIdemSiege: boolean
334
+ aucuneActivite: boolean
335
+ }
336
+
337
+ interface DetailCessationEntreprise {
338
+ dateEffet: string
339
+ dateRadiation: string
340
+ }
341
+
342
+ interface BeneficiairesEffectif {
343
+ beneficiaire: Beneficiaire
344
+ modalite: Modalite
345
+ }
346
+
347
+ interface Beneficiaire {
348
+ descriptionPersonne: DescriptionPersonne2
349
+ adresseDomicile: AdresseDomicile2
350
+ indicateurActifAgricole: boolean
351
+ }
352
+
353
+ interface DescriptionPersonne2 {
354
+ dateDeNaissance: string
355
+ nom: string
356
+ prenoms: string[]
357
+ nationalite: string
358
+ }
359
+
360
+ interface AdresseDomicile2 {
361
+ pays: string
362
+ }
363
+
364
+ interface Modalite {
365
+ detentionPartDirecte: boolean
366
+ detentionPartDirecteRdd: number
367
+ partsDirectesPleinePropriete: number
368
+ partsDirectesNuePropriete: number
369
+ detentionPartIndirecte: boolean
370
+ detentionPartIndirecteRdd: number
371
+ partsIndirectesIndivision: number
372
+ partsIndirectesIndivisionPleinePropriete: number
373
+ partsIndirectesIndivisionNuePropriete: number
374
+ partsIndirectesPersonnesMorales: number
375
+ partsIndirectesPmoralesPleinePropriete: number
376
+ partsIndirectesPmoralesNuePropriete: number
377
+ detentionPartTotale: number
378
+ detentionVoteDirecte: boolean
379
+ detentionVoteDirecteRdd: number
380
+ voteDirectePleinePropriete: number
381
+ voteDirecteNuePropriete: number
382
+ voteDirecteUsufruit: number
383
+ detentionVoteIndirecte: boolean
384
+ detentionVoteIndirecteRdd: number
385
+ voteIndirecteIndivision: number
386
+ voteIndirecteIndivisionPleinePropriete: number
387
+ voteIndirecteIndivisionNuePropriete: number
388
+ voteIndirecteIndivisionUsufruit: number
389
+ voteIndirectePersonnesMorales: number
390
+ voteIndirectePmoralesPleinePropriete: number
391
+ voteIndirectePmoralesNuePropriete: number
392
+ voteIndirectePmoralesUsufruit: number
393
+ vocationTitulaireDirectePleineProprieteRdd: boolean
394
+ vocationTitulaireDirectePleinePropriete: number
395
+ vocationTitulaireDirecteNuePropriete: number
396
+ vocationTitulaireIndirecteIndivision: number
397
+ vocationTitulaireIndirectePleineProprieteRdd: boolean
398
+ vocationTitulaireIndirectePleinePropriete: number
399
+ vocationTitulaireIndirecteNuePropriete: number
400
+ vocationTitulaireIndirectePersonnesMorales: number
401
+ vocationTitulaireIndirectePmoralesPleinePropriete: number
402
+ vocationTitulaireIndirectePmoralesNuePropriete: number
403
+ detentionVoteTotal: number
404
+ detentionPouvoirDecisionAG: boolean
405
+ detentionPouvoirNommageMembresConseilAdmin: boolean
406
+ detentionAutresMoyensControle: boolean
407
+ beneficiaireRepresentantLegal: boolean
408
+ representantLegalPlacementSansGestionDelegue: boolean
409
+ }
410
+
411
+ interface RegistreAnterieur3 {
412
+ raa: Raa3
413
+ rnm: Rnm3
414
+ rncs: Rncs3
415
+ }
416
+
417
+ interface Raa3 {
418
+ estPresent: boolean
419
+ }
420
+
421
+ interface Rnm3 {
422
+ estPresent: boolean
423
+ }
424
+
425
+ interface Rncs3 {
426
+ estPresent: boolean
427
+ dateImmatriculation: string
428
+ dateRadiation?: string
429
+ }
430
+
431
+ interface PersonnePhysique {
432
+ adresseEntreprise: AdresseEntreprise3
433
+ etablissementPrincipal: EtablissementPrincipal2
434
+ identite: Identite2
435
+ }
436
+
437
+ interface AdresseEntreprise3 {
438
+ adresse: Adresse4
439
+ }
440
+
441
+ interface Adresse4 {
442
+ pays: string
443
+ codePays: string
444
+ codePostal: string
445
+ commune: string
446
+ codeInseeCommune: string
447
+ typeVoie: string
448
+ voie: string
449
+ numVoie: string
450
+ indiceRepetition: string
451
+ complementLocalisation: string
452
+ }
453
+
454
+ interface EtablissementPrincipal2 {
455
+ descriptionEtablissement: DescriptionEtablissement3
456
+ adresse: Adresse5
457
+ activites: Activite3[]
458
+ registreAnterieur: RegistreAnterieur4
459
+ }
460
+
461
+ interface DescriptionEtablissement3 {
462
+ rolePourEntreprise: string
463
+ pays: string
464
+ codePays: string
465
+ siret: string
466
+ activiteNonSedentaire: boolean
467
+ enseigne: string
468
+ nomCommercial: string
469
+ indicateurEtablissementPrincipal: boolean
470
+ }
471
+
472
+ interface Adresse5 {
473
+ pays: string
474
+ codePays: string
475
+ codePostal: string
476
+ commune: string
477
+ codeInseeCommune: string
478
+ typeVoie: string
479
+ voie: string
480
+ numVoie: string
481
+ indiceRepetition: string
482
+ complementLocalisation: string
483
+ caracteristiques: Caracteristiques5
484
+ }
485
+
486
+ interface Caracteristiques5 {
487
+ ambulant: boolean
488
+ }
489
+
490
+ interface Activite3 {
491
+ categoryCode: string
492
+ indicateurPrincipal: boolean
493
+ indicateurProlongement: boolean
494
+ dateDebut: string
495
+ dateFin: string
496
+ indicateurNonSedentaire: boolean
497
+ formeExercice: string
498
+ categorisationActivite1: string
499
+ categorisationActivite2: string
500
+ categorisationActivite3: string
501
+ categorisationActivite4: string
502
+ descriptionDetaillee: string
503
+ indicateurActiviteeApe: boolean
504
+ indicateurArtisteAuteur: boolean
505
+ indicateurMarinProfessionnel: boolean
506
+ rolePrincipalPourEntreprise: boolean
507
+ codeApe: string
508
+ activiteRattacheeEirl: boolean
509
+ }
510
+
511
+ interface RegistreAnterieur4 {
512
+ raa: Raa4
513
+ rnm: Rnm4
514
+ rncs: Rncs4
515
+ }
516
+
517
+ interface Raa4 {
518
+ estPresent: boolean
519
+ }
520
+
521
+ interface Rnm4 {
522
+ estPresent: boolean
523
+ }
524
+
525
+ interface Rncs4 {
526
+ estPresent: boolean
527
+ dateDebut: string
528
+ }
529
+
530
+ interface Identite2 {
531
+ entreprise: Entreprise3
532
+ entrepreneur: Entrepreneur
533
+ }
534
+
535
+ interface Entreprise3 {
536
+ siren: string
537
+ formeJuridique: string
538
+ nicSiege: string
539
+ codeApe: string
540
+ dateImmat: string
541
+ }
542
+
543
+ interface Entrepreneur {
544
+ descriptionPersonne: DescriptionPersonne3
545
+ adresseDomicile: AdresseDomicile3
546
+ indicateurActifAgricole: boolean
547
+ }
548
+
549
+ interface DescriptionPersonne3 {
550
+ dateDeNaissance: string
551
+ nom: string
552
+ prenoms: string[]
553
+ nationalite: string
554
+ situationMatrimoniale: string
555
+ siren: string
556
+ }
557
+
558
+ interface AdresseDomicile3 {
559
+ codePostal: string
560
+ commune: string
561
+ codeInseeCommune: string
562
+ }
@@ -16,7 +16,7 @@ export class CreateInternalInvoicing {
16
16
  @ApiProperty()
17
17
  @IsArray()
18
18
  @ArrayNotEmpty()
19
- types: Array<string>;
19
+ types: Array<'isSocial' | 'isComptable' | 'isJuridique' | 'isOther'>;
20
20
 
21
21
  @ApiProperty()
22
22
  @IsNumber()
@@ -0,0 +1,14 @@
1
+ import { IsDefined, IsInt } from 'class-validator';
2
+ import { ApiProperty } from '../../../../utils';
3
+
4
+ export class CreateNotifyCustomer {
5
+ @IsDefined()
6
+ @ApiProperty()
7
+ @IsInt()
8
+ month: number;
9
+
10
+ @IsDefined()
11
+ @ApiProperty()
12
+ @IsInt()
13
+ year: number;
14
+ }
@@ -0,0 +1,5 @@
1
+ export interface ReadNotifyCustomer {
2
+ mailSentForSocieties: number,
3
+ smsSentForSocieties: number,
4
+ errorForSocieties: number[]
5
+ }
@@ -1,6 +1,4 @@
1
- import { IsBoolean, IsOptional } from 'class-validator';
2
1
  import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
3
- import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
4
2
 
5
3
  export class CreateUser {
6
4
  @ApiProperty()
@@ -21,12 +19,6 @@ export class CreateUser {
21
19
  @ApiPropertyOptional()
22
20
  prefix?: string;
23
21
 
24
- @ApiPropertyOptional()
25
- @IsBoolean()
26
- @IsOptional()
27
- @ToBoolean()
28
- disableTracking?: boolean;
29
-
30
22
  @ApiPropertyOptional()
31
23
  affiliateTrackingId?: number;
32
24
  }
@@ -1,3 +1,4 @@
1
+ import { IAccount } from './IAccount';
1
2
  import { IBusinessLine } from './IBusinessLine';
2
3
 
3
4
  export interface INafCode {
@@ -5,8 +6,10 @@ export interface INafCode {
5
6
  idBusinessLine: number;
6
7
  nafCode: string;
7
8
  activity?: string;
9
+ idAccount?: number | null;
8
10
  createdAt?: Date | null;
9
11
  updatedAt?: Date | null;
10
12
 
11
13
  businessLine: IBusinessLine;
14
+ account?: IAccount;
12
15
  }
package/ts/types/index.ts CHANGED
@@ -374,7 +374,6 @@ export * from './Enum/LetterState';
374
374
  export * from './Enum/LetterRecoveryState';
375
375
  export * from './Enum/SponsorshipState';
376
376
  export * from './Enum/Ged';
377
- export * from './Enum/SendInBlueList';
378
377
  export * from './Enum/TypeBankConnection';
379
378
  export * from './Enum/GlobalRegime';
380
379
  export * from './Enum/TaxSystem';
@@ -498,6 +497,8 @@ export * from './Interface/api/immobilization/ReadFormattedImmobilization';
498
497
  export * from './Interface/api/immobilization/CreateImmobilization';
499
498
  export * from './Interface/api/payment/QueryMonthlyPayment';
500
499
  export * from './Interface/api/payment/QueryPayment';
500
+ export * from './Interface/api/payment/ReadPayment';
501
+ export * from './Interface/api/payment/CreateNotifyCustomer';
501
502
  export * from './Interface/api/firstStep/Create';
502
503
  export * from './Interface/api/registration/QueryRegistration';
503
504
  export * from './Interface/api/paymentExpectationCustomer/ReadPaymentExpectationCustomer';
@@ -667,6 +668,7 @@ export * from './Interface/api/textMessage/Create';
667
668
  export * from './Interface/api/textMessage/Update';
668
669
  export * from './Interface/api/textMessage/Query';
669
670
  export * from './Interface/api/companeo/CompaneoReturn';
671
+ export * from './Interface/api/inpi/inpi';
670
672
  export * from './Interface/api/team/QueryCreate';
671
673
  export * from './Interface/api/team/QueryGetAllWithIncludes';
672
674
  export * from './Interface/api/team/QueryUpdate';
@@ -942,6 +944,7 @@ export * from './Interface/enum/Date';
942
944
 
943
945
  export * from '../utils/cerfa';
944
946
  export * from '../utils/phone';
947
+ export * from '../utils/payment';
945
948
  export * from '../utils/checklist';
946
949
  export * from '../utils/date';
947
950
  export * from '../utils/vat';
@@ -0,0 +1,58 @@
1
+ import { IPayment } from '../types';
2
+
3
+ interface PaymentsWithList extends IPayment {
4
+ type: 'isComptable' | 'isJuridique' | 'isSocial' | 'isOther',
5
+ listPayments: IPayment[]
6
+ }
7
+
8
+ /**
9
+ * A partir d'une liste de payment (avec include jusqu'à prestationList,
10
+ * avec en attributs 'isComptable' | 'isJuridique' | 'isSocial' | 'isOther')
11
+ * permet de récupérer uniquement le premier paiement de chaque type
12
+ * et les autres payments dans listPayments
13
+ * avec possibilité de filtrer avec le tableau de filtres
14
+ * @param payments
15
+ * @param types
16
+ * @returns
17
+ */
18
+ const groupPaymentsByServiceType = (payments: IPayment[], types: ('isComptable' | 'isJuridique' | 'isSocial' | 'isOther')[] = ['isComptable', 'isJuridique', 'isSocial', 'isOther']): PaymentsWithList[] => {
19
+ const prestaComptable = payments.filter((el) => el?.paymentsPrestations?.prestationsList?.isComptable ?? false);
20
+ const prestaSocial = payments.filter((el) => !el?.paymentsPrestations?.prestationsList?.isComptable && el?.paymentsPrestations?.prestationsList?.isSocial);
21
+ const prestaJuridique = payments.filter((el) => !el?.paymentsPrestations?.prestationsList?.isComptable && el?.paymentsPrestations?.prestationsList?.isJuridique);
22
+ const prestaOther = payments.filter((el) => !el?.paymentsPrestations?.prestationsList?.isComptable && !el?.paymentsPrestations?.prestationsList?.isJuridique && !el?.paymentsPrestations?.prestationsList?.isSocial);
23
+
24
+ const societyPayment: PaymentsWithList[] = [];
25
+ if (prestaComptable.length && types.includes('isComptable')) {
26
+ societyPayment.push({
27
+ ...prestaComptable[0], // Données de base
28
+ type: 'isComptable',
29
+ listPayments: prestaComptable,
30
+ });
31
+ }
32
+ if (prestaSocial.length && types.includes('isSocial')) {
33
+ societyPayment.push({
34
+ ...prestaSocial[0], // Données de base
35
+ type: 'isSocial',
36
+ listPayments: prestaSocial,
37
+ });
38
+ }
39
+ if (prestaJuridique.length && types.includes('isJuridique')) {
40
+ societyPayment.push({
41
+ ...prestaJuridique[0], // Données de base
42
+ type: 'isJuridique',
43
+ listPayments: prestaJuridique,
44
+ });
45
+ }
46
+ if (prestaOther.length && types.includes('isOther')) {
47
+ societyPayment.push({
48
+ ...prestaOther[0], // Données de base
49
+ type: 'isOther',
50
+ listPayments: prestaOther,
51
+ });
52
+ }
53
+ return societyPayment;
54
+ };
55
+
56
+ export {
57
+ groupPaymentsByServiceType,
58
+ };