@silexpert/core 2.0.56 → 2.0.57

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 (103) hide show
  1. package/dist/types/Enum/Annotation.d.ts +4 -0
  2. package/dist/types/Enum/Annotation.d.ts.map +1 -1
  3. package/dist/types/Enum/Annotation.js +2 -0
  4. package/dist/types/Enum/Annotation.js.map +1 -1
  5. package/dist/types/Enum/BalanceSheet.d.ts +1 -1
  6. package/dist/types/Enum/BalanceSheet.js +1 -1
  7. package/dist/types/Enum/BalanceSheet.js.map +1 -1
  8. package/dist/types/Enum/CustomerSignature.d.ts +2 -1
  9. package/dist/types/Enum/CustomerSignature.d.ts.map +1 -1
  10. package/dist/types/Enum/CustomerSignature.js +1 -0
  11. package/dist/types/Enum/CustomerSignature.js.map +1 -1
  12. package/dist/types/Enum/EInvoicingDirection.d.ts +5 -0
  13. package/dist/types/Enum/EInvoicingDirection.d.ts.map +1 -0
  14. package/dist/types/Enum/EInvoicingDirection.js +6 -0
  15. package/dist/types/Enum/EInvoicingDirection.js.map +1 -0
  16. package/dist/types/Enum/EInvoicingStatusCode.d.ts +15 -0
  17. package/dist/types/Enum/EInvoicingStatusCode.d.ts.map +1 -0
  18. package/dist/types/Enum/EInvoicingStatusCode.js +19 -0
  19. package/dist/types/Enum/EInvoicingStatusCode.js.map +1 -0
  20. package/dist/types/Enum/SalesContractBrandClementine.js +1 -1
  21. package/dist/types/Enum/SalesContractBrandClementine.js.map +1 -1
  22. package/dist/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.d.ts +1 -0
  23. package/dist/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.d.ts.map +1 -1
  24. package/dist/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.js.map +1 -1
  25. package/dist/types/Interface/api/commercialManagement/Read.d.ts +87 -0
  26. package/dist/types/Interface/api/commercialManagement/Read.d.ts.map +1 -1
  27. package/dist/types/Interface/api/commercialManagement/Read.js.map +1 -1
  28. package/dist/types/Interface/api/docoon/DocoonInvoice.d.ts +183 -0
  29. package/dist/types/Interface/api/docoon/DocoonInvoice.d.ts.map +1 -0
  30. package/dist/types/Interface/api/docoon/DocoonInvoice.js +2 -0
  31. package/dist/types/Interface/api/docoon/DocoonInvoice.js.map +1 -0
  32. package/dist/types/Interface/api/docoon/Query.js +1 -1
  33. package/dist/types/Interface/api/docoon/Query.js.map +1 -1
  34. package/dist/types/Interface/api/society/QueryUnpaid.d.ts +4 -0
  35. package/dist/types/Interface/api/society/QueryUnpaid.d.ts.map +1 -1
  36. package/dist/types/Interface/api/society/QueryUnpaid.js +27 -0
  37. package/dist/types/Interface/api/society/QueryUnpaid.js.map +1 -1
  38. package/dist/types/Interface/api/thirdParty/CreateThirdPartyForm.d.ts +2 -0
  39. package/dist/types/Interface/api/thirdParty/CreateThirdPartyForm.d.ts.map +1 -1
  40. package/dist/types/Interface/api/thirdParty/CreateThirdPartyForm.js +10 -0
  41. package/dist/types/Interface/api/thirdParty/CreateThirdPartyForm.js.map +1 -1
  42. package/dist/types/Interface/api/thirdParty/UpdateThirdPartyForm.d.ts +2 -0
  43. package/dist/types/Interface/api/thirdParty/UpdateThirdPartyForm.d.ts.map +1 -1
  44. package/dist/types/Interface/api/thirdParty/UpdateThirdPartyForm.js +12 -0
  45. package/dist/types/Interface/api/thirdParty/UpdateThirdPartyForm.js.map +1 -1
  46. package/dist/types/Interface/models/IAccountingFile.d.ts +6 -0
  47. package/dist/types/Interface/models/IAccountingFile.d.ts.map +1 -1
  48. package/dist/types/Interface/models/IAccountingFile.js +5 -0
  49. package/dist/types/Interface/models/IAccountingFile.js.map +1 -1
  50. package/dist/types/Interface/models/IAccountingTransaction.d.ts +3 -0
  51. package/dist/types/Interface/models/IAccountingTransaction.d.ts.map +1 -1
  52. package/dist/types/Interface/models/IAccountingTransaction.js +2 -0
  53. package/dist/types/Interface/models/IAccountingTransaction.js.map +1 -1
  54. package/dist/types/Interface/models/IEInvoicing.d.ts +12 -0
  55. package/dist/types/Interface/models/IEInvoicing.d.ts.map +1 -0
  56. package/dist/types/Interface/models/IEInvoicing.js +10 -0
  57. package/dist/types/Interface/models/IEInvoicing.js.map +1 -0
  58. package/dist/types/Interface/models/IEInvoicingStatus.d.ts +15 -0
  59. package/dist/types/Interface/models/IEInvoicingStatus.d.ts.map +1 -0
  60. package/dist/types/Interface/models/IEInvoicingStatus.js +12 -0
  61. package/dist/types/Interface/models/IEInvoicingStatus.js.map +1 -0
  62. package/dist/types/Interface/models/IPayment.d.ts +3 -0
  63. package/dist/types/Interface/models/IPayment.d.ts.map +1 -1
  64. package/dist/types/Interface/models/IPayment.js +2 -0
  65. package/dist/types/Interface/models/IPayment.js.map +1 -1
  66. package/dist/types/Interface/models/ISocietyDetail.d.ts +1 -0
  67. package/dist/types/Interface/models/ISocietyDetail.d.ts.map +1 -1
  68. package/dist/types/Interface/models/ISocietyDetail.js +1 -0
  69. package/dist/types/Interface/models/ISocietyDetail.js.map +1 -1
  70. package/dist/types/Interface/models/IThirdParty.d.ts +2 -0
  71. package/dist/types/Interface/models/IThirdParty.d.ts.map +1 -1
  72. package/dist/types/Interface/models/IThirdParty.js +2 -0
  73. package/dist/types/Interface/models/IThirdParty.js.map +1 -1
  74. package/dist/types/index.d.ts +9 -0
  75. package/dist/types/index.d.ts.map +1 -1
  76. package/dist/types/index.js +9 -0
  77. package/dist/types/index.js.map +1 -1
  78. package/dist/utils/prestation.d.ts.map +1 -1
  79. package/dist/utils/prestation.js +7 -3
  80. package/dist/utils/prestation.js.map +1 -1
  81. package/package.json +1 -1
  82. package/ts/types/Enum/Annotation.ts +3 -0
  83. package/ts/types/Enum/BalanceSheet.ts +1 -1
  84. package/ts/types/Enum/CustomerSignature.ts +2 -1
  85. package/ts/types/Enum/EInvoicingDirection.ts +4 -0
  86. package/ts/types/Enum/EInvoicingStatusCode.ts +17 -0
  87. package/ts/types/Enum/SalesContractBrandClementine.ts +1 -1
  88. package/ts/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.ts +1 -0
  89. package/ts/types/Interface/api/commercialManagement/Read.ts +85 -0
  90. package/ts/types/Interface/api/docoon/DocoonInvoice.ts +188 -0
  91. package/ts/types/Interface/api/docoon/Query.ts +1 -1
  92. package/ts/types/Interface/api/society/QueryUnpaid.ts +19 -0
  93. package/ts/types/Interface/api/thirdParty/CreateThirdPartyForm.ts +6 -0
  94. package/ts/types/Interface/api/thirdParty/UpdateThirdPartyForm.ts +8 -0
  95. package/ts/types/Interface/models/IAccountingFile.ts +6 -0
  96. package/ts/types/Interface/models/IAccountingTransaction.ts +3 -0
  97. package/ts/types/Interface/models/IEInvoicing.ts +15 -0
  98. package/ts/types/Interface/models/IEInvoicingStatus.ts +16 -0
  99. package/ts/types/Interface/models/IPayment.ts +3 -0
  100. package/ts/types/Interface/models/ISocietyDetail.ts +1 -0
  101. package/ts/types/Interface/models/IThirdParty.ts +2 -0
  102. package/ts/types/index.ts +9 -0
  103. package/ts/utils/prestation.ts +9 -3
@@ -47,6 +47,25 @@ export class QueryUnpaidSociety {
47
47
  @IsInt({ each: true })
48
48
  listIdPrestationList?: number[];
49
49
 
50
+ @ApiPropertyOptional()
51
+ @IsOptional()
52
+ @IsInt()
53
+ month?: number;
54
+
55
+ @ApiPropertyOptional()
56
+ @IsOptional()
57
+ @IsInt()
58
+ year?: number;
59
+
60
+ @ApiPropertyOptional()
61
+ @IsOptional()
62
+ @IsInt()
63
+ idPaymentMethod?: number;
64
+
65
+ @ApiPropertyOptional()
66
+ @IsOptional()
67
+ order?: [string, 'ASC' | 'DESC'];
68
+
50
69
  @ApiPropertyOptional({ default: 25 })
51
70
  @IsOptional()
52
71
  @IsInt()
@@ -33,6 +33,12 @@ export class CreateThirdPartyForm {
33
33
  @ApiPropertyOptional()
34
34
  nSiret?: string | null;
35
35
 
36
+ @ApiPropertyOptional()
37
+ isPrivateIndividual?: boolean | null;
38
+
39
+ @ApiPropertyOptional()
40
+ addressingIdentifier?: string | null;
41
+
36
42
  @ApiPropertyOptional()
37
43
  nTva?: string | null;
38
44
 
@@ -43,6 +43,14 @@ export class UpdateThirdPartyForm {
43
43
  @IsOptional()
44
44
  nSiret?: string | null;
45
45
 
46
+ @ApiPropertyOptional()
47
+ @IsOptional()
48
+ isPrivateIndividual?: boolean | null;
49
+
50
+ @ApiPropertyOptional()
51
+ @IsOptional()
52
+ addressingIdentifier?: string | null;
53
+
46
54
  @ApiPropertyOptional()
47
55
  @IsOptional()
48
56
  nTva?: string | null;
@@ -4,6 +4,7 @@ import { IFileType } from './IFileType.js';
4
4
  import { IFile } from './IFile.js';
5
5
  import { ISociety } from './ISociety.js';
6
6
  import { IAccountingFileType } from './IAccountingFileType.js';
7
+ import { IEInvoicing } from './IEInvoicing.js';
7
8
 
8
9
  // accountingFile
9
10
  export class IAccountingFile {
@@ -13,16 +14,20 @@ export class IAccountingFile {
13
14
  budgeaDocumentId?: number | null;
14
15
  bankFileId?: string | null;
15
16
  emissionDate?: Date | null;
17
+ totalTaxIncluded?: number | null;
18
+ totalTaxExcluded?: number | null;
16
19
  isMobile: boolean;
17
20
  idAccountingTransaction?: number | null;
18
21
  idEstimateInvoice?: number | null;
19
22
  idAccountingFileType: number;
20
23
  idSociety: number;
21
24
  idFile: number;
25
+ idEInvoicing?: number | null;
22
26
  createdAt?: Date | null;
23
27
  updatedAt?: Date | null;
24
28
  deletedAt?: Date | null;
25
29
  idFileType?: number | null;
30
+ isVerified?: boolean;
26
31
 
27
32
  // Associations
28
33
  accountingTransaction?: IAccountingTransaction;
@@ -31,4 +36,5 @@ export class IAccountingFile {
31
36
  fileType?: IFileType;
32
37
  file?: IFile;
33
38
  society?: ISociety;
39
+ eInvoicing?: IEInvoicing | null;
34
40
  }
@@ -14,6 +14,7 @@ import { IMachineLearningResult } from './IMachineLearningResult.js';
14
14
  import { ISocietyPartner } from './ISocietyPartner.js';
15
15
  import { ISocietyVehicle } from './ISocietyVehicle.js';
16
16
  import { IAccountingTransactionTracking } from './IAccountingTransactionTracking.js';
17
+ import { IEInvoicing } from './IEInvoicing.js';
17
18
 
18
19
  // accountingTransactions
19
20
  export class IAccountingTransaction {
@@ -53,6 +54,7 @@ export class IAccountingTransaction {
53
54
  idRegistration?: number | null;
54
55
  idFile?: number | null;
55
56
  classificationId?: string | null; // Id returned by the team system for the predictions of an accounting transaction, can be null if the transaction has not been classified by the team system
57
+ idEInvoicing?: number | null;
56
58
  createdAt?: Date | null;
57
59
  updatedAt?: Date | null;
58
60
  deletedAt?: Date | null;
@@ -76,4 +78,5 @@ export class IAccountingTransaction {
76
78
  societyPartner?: ISocietyPartner;
77
79
  vehicle?: ISocietyVehicle | null;
78
80
  trackings?: IAccountingTransactionTracking[];
81
+ eInvoicing?: IEInvoicing | null;
79
82
  }
@@ -0,0 +1,15 @@
1
+ import { IFile } from './IFile.js';
2
+ import { EInvoicingDirection } from '../../Enum/EInvoicingDirection.js';
3
+
4
+ export class IEInvoicing {
5
+ id?: number;
6
+
7
+ direction: EInvoicingDirection;
8
+ externalId: string;
9
+ idXmlFile: number;
10
+
11
+ createdAt?: Date | null;
12
+ updatedAt?: Date | null;
13
+
14
+ xmlFile?: IFile;
15
+ }
@@ -0,0 +1,16 @@
1
+ import { IUser } from './IUser.js';
2
+ import { EInvoicingStatusCode } from '../../Enum/EInvoicingStatusCode.js';
3
+ import { IEInvoicing } from './IEInvoicing.js';
4
+
5
+ export class IEInvoicingStatus {
6
+ id?: number;
7
+ status: EInvoicingStatusCode;
8
+ message: string | null;
9
+ idUser: number;
10
+ idEInvoicing: number;
11
+ createdAt?: Date | null;
12
+ updatedAt?: Date | null;
13
+
14
+ user?: IUser;
15
+ eInvoicing?: IEInvoicing;
16
+ }
@@ -3,6 +3,7 @@ import { IPaymentMethod } from './IPaymentMethod.js';
3
3
  import { IUser } from './IUser.js';
4
4
  import { IExercice } from './IExercice.js';
5
5
  import { IFile } from './IFile.js';
6
+ import { IEInvoicing } from './IEInvoicing.js';
6
7
  import { IPaymentExpectation } from './IPaymentExpectation.js';
7
8
  import { IPaymentAttempt } from './IPaymentAttempt.js';
8
9
 
@@ -37,6 +38,7 @@ export class IPayment {
37
38
  idUser?: number | null;
38
39
  idPaymentMethod: number;
39
40
  idFile?: number | null;
41
+ idEInvoicing?: number | null;
40
42
  createdAt?: Date | null;
41
43
  updatedAt?: Date | null;
42
44
  deletedAt?: Date | null;
@@ -48,5 +50,6 @@ export class IPayment {
48
50
  user?: IUser;
49
51
  exercice?: IExercice;
50
52
  files?: IFile;
53
+ eInvoicing?: IEInvoicing;
51
54
  paymentAttempts?: IPaymentAttempt[];
52
55
  }
@@ -73,6 +73,7 @@ export class ISocietyDetail {
73
73
  notaryOfficeAddress?: string | null;
74
74
  notaryOfficeZipCode?: string | null;
75
75
  notaryOfficeCity?: string | null;
76
+ checkingReceiptOfBankStatements?: boolean | null;
76
77
  createdAt?: Date | null;
77
78
  updatedAt?: Date | null;
78
79
 
@@ -18,6 +18,8 @@ export class IThirdParty {
18
18
  phone?: string | null;
19
19
  email?: string | null;
20
20
  nSiret?: string | null;
21
+ isPrivateIndividual?: boolean | null;
22
+ addressingIdentifier?: string | null;
21
23
  legalForm?: number | null;
22
24
  termOfPayment?: TermOfPayment | null;
23
25
  nTva?: string | null;
package/ts/types/index.ts CHANGED
@@ -288,6 +288,8 @@ export * from './Interface/models/IEInvoicingEligibilityRequest.js';
288
288
  export * from './Interface/models/IUsersHistory.js';
289
289
  export * from './Interface/models/IEInvoicingKycAndMandate.js';
290
290
  export * from './Interface/models/IAccountingTransactionTracking.js';
291
+ export * from './Interface/models/IEInvoicing.js';
292
+ export * from './Interface/models/IEInvoicingStatus.js';
291
293
 
292
294
  // Schemas
293
295
  export * from './Interface/schemas/IRegistrationDetail.js';
@@ -299,6 +301,8 @@ export * from './Form/FormConnector.js';
299
301
 
300
302
  // Enums
301
303
  export * from './Enum/AccountingTransactionTracking.js';
304
+ export * from './Enum/EInvoicingDirection.js';
305
+ export * from './Enum/EInvoicingStatusCode.js';
302
306
  export * from './Enum/Feature.js';
303
307
  export * from './Enum/JuridicalSocietyEnum.js';
304
308
  export * from './Enum/Template.js';
@@ -1127,10 +1131,15 @@ export * from './Interface/api/automaticRegistration/Query.js';
1127
1131
  export * from './Interface/api/automaticRegistration/Read.js';
1128
1132
  export * from './Interface/api/mail/EmailStatus.js';
1129
1133
  export * from './Interface/api/mailSociety/QueryMailSociety.js';
1134
+ export * from './Interface/api/docoon/DocoonInvoice.js';
1135
+ export * from './Interface/api/docoon/Query.js';
1136
+ export * from './Interface/api/docoon/Read.js';
1130
1137
 
1131
1138
  // Enums types
1132
1139
  export * from './Interface/enum/Util.js';
1133
1140
  export * from './Interface/enum/Date.js';
1141
+ export * from './Interface/enum/Date.js';
1142
+ export * from './Interface/enum/Date.js';
1134
1143
  export * from './Interface/api/connector/Sirene.js';
1135
1144
  export * from '../utils/cerfa.js';
1136
1145
  export * from '../utils/phone.js';
@@ -152,8 +152,12 @@ const isConsultingHour = (idPrestationList: number[]): boolean =>
152
152
  !!intersection(idPrestationList, [PrestationType.CONSULTING_HOUR]).length;
153
153
 
154
154
  const isSoftwarePrestation = (idPrestationList: number[]): boolean =>
155
- !!intersection(idPrestationList, [PrestationType.STEERING, PrestationType.VAT, PrestationType.BALANCESHEET])
156
- .length; /* &&
155
+ !!intersection(idPrestationList, [
156
+ PrestationType.STEERING,
157
+ PrestationType.VAT,
158
+ PrestationType.BALANCESHEET,
159
+ PrestationType.BILLING,
160
+ ]).length; /* &&
157
161
  idPrestationList.length === 1 */ // Commenté car si un client résilie un software pour un utre software, condition non prise en charge
158
162
 
159
163
  /**
@@ -225,7 +229,9 @@ const calculateScoringOfPrestation = (
225
229
  p.isComptable &&
226
230
  !p.isCatalog &&
227
231
  p.id &&
228
- ![PrestationType.BALANCESHEET, PrestationType.VAT, PrestationType.STEERING].includes(p.id),
232
+ ![PrestationType.BALANCESHEET, PrestationType.VAT, PrestationType.STEERING, PrestationType.BILLING].includes(
233
+ p.id,
234
+ ),
229
235
  );
230
236
  const prestationHalfPriceIds = prestationHalfPriceList.map((t) => t.id);
231
237