@silexpert/core 1.1.388 → 1.1.390

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 (141) hide show
  1. package/dist/cjs/api/resources/Mail.d.ts +1 -1
  2. package/dist/cjs/api/resources/Mail.d.ts.map +1 -1
  3. package/dist/cjs/api/resources/Mail.js +2 -2
  4. package/dist/cjs/api/resources/Mail.js.map +1 -1
  5. package/dist/cjs/api/resources/Vat.d.ts +1 -3
  6. package/dist/cjs/api/resources/Vat.d.ts.map +1 -1
  7. package/dist/cjs/api/resources/Vat.js +0 -9
  8. package/dist/cjs/api/resources/Vat.js.map +1 -1
  9. package/dist/cjs/types/Enum/Log.d.ts +14 -1
  10. package/dist/cjs/types/Enum/Log.d.ts.map +1 -1
  11. package/dist/cjs/types/Enum/Log.js +13 -0
  12. package/dist/cjs/types/Enum/Log.js.map +1 -1
  13. package/dist/cjs/types/Enum/Template.d.ts +13 -0
  14. package/dist/cjs/types/Enum/Template.d.ts.map +1 -0
  15. package/dist/cjs/types/Enum/Template.js +17 -0
  16. package/dist/cjs/types/Enum/Template.js.map +1 -0
  17. package/dist/cjs/types/Enum/TypeSupportForNotation.js +2 -2
  18. package/dist/cjs/types/Enum/TypeSupportForNotation.js.map +1 -1
  19. package/dist/cjs/types/Enum/VatDeclarationType.d.ts.map +1 -1
  20. package/dist/cjs/types/Enum/VatDeclarationType.js +67 -1
  21. package/dist/cjs/types/Enum/VatDeclarationType.js.map +1 -1
  22. package/dist/cjs/types/Interface/api/commercialManagement/Create.d.ts +11 -0
  23. package/dist/cjs/types/Interface/api/commercialManagement/Create.d.ts.map +1 -1
  24. package/dist/cjs/types/Interface/api/commercialManagement/Create.js +66 -0
  25. package/dist/cjs/types/Interface/api/commercialManagement/Create.js.map +1 -1
  26. package/dist/cjs/types/Interface/api/exercice/Create.d.ts +1 -0
  27. package/dist/cjs/types/Interface/api/exercice/Create.d.ts.map +1 -1
  28. package/dist/cjs/types/Interface/api/exercice/Create.js +6 -0
  29. package/dist/cjs/types/Interface/api/exercice/Create.js.map +1 -1
  30. package/dist/cjs/types/Interface/api/payment/Util.d.ts +0 -1
  31. package/dist/cjs/types/Interface/api/payment/Util.d.ts.map +1 -1
  32. package/dist/cjs/types/Interface/api/payment/Util.js.map +1 -1
  33. package/dist/cjs/types/Interface/api/terminationList/QueryPaginateTerminationList.d.ts +1 -0
  34. package/dist/cjs/types/Interface/api/terminationList/QueryPaginateTerminationList.d.ts.map +1 -1
  35. package/dist/cjs/types/Interface/api/terminationList/QueryPaginateTerminationList.js +6 -0
  36. package/dist/cjs/types/Interface/api/terminationList/QueryPaginateTerminationList.js.map +1 -1
  37. package/dist/cjs/types/Interface/api/terminationList/TerminationList.d.ts +7 -0
  38. package/dist/cjs/types/Interface/api/terminationList/TerminationList.d.ts.map +1 -0
  39. package/dist/cjs/types/Interface/api/terminationList/TerminationList.js +42 -0
  40. package/dist/cjs/types/Interface/api/terminationList/TerminationList.js.map +1 -0
  41. package/dist/cjs/types/Interface/api/vatDeclaration/QueryVatDeclaration.d.ts +0 -3
  42. package/dist/cjs/types/Interface/api/vatDeclaration/QueryVatDeclaration.d.ts.map +1 -1
  43. package/dist/cjs/types/Interface/api/vatDeclaration/QueryVatDeclaration.js +1 -9
  44. package/dist/cjs/types/Interface/api/vatDeclaration/QueryVatDeclaration.js.map +1 -1
  45. package/dist/cjs/types/Interface/models/ISocietyGescom.d.ts +11 -0
  46. package/dist/cjs/types/Interface/models/ISocietyGescom.d.ts.map +1 -1
  47. package/dist/cjs/types/Interface/models/ISocietyGescom.js.map +1 -1
  48. package/dist/cjs/types/index.d.ts +1 -0
  49. package/dist/cjs/types/index.d.ts.map +1 -1
  50. package/dist/cjs/types/index.js +1 -0
  51. package/dist/cjs/types/index.js.map +1 -1
  52. package/dist/cjs/utils/commercialManagement/templates/common.d.ts.map +1 -1
  53. package/dist/cjs/utils/commercialManagement/templates/common.js +18 -1
  54. package/dist/cjs/utils/commercialManagement/templates/common.js.map +1 -1
  55. package/dist/cjs/utils/payment.d.ts.map +1 -1
  56. package/dist/cjs/utils/payment.js +13 -8
  57. package/dist/cjs/utils/payment.js.map +1 -1
  58. package/dist/cjs/utils/prestation.js +1 -1
  59. package/dist/cjs/utils/prestation.js.map +1 -1
  60. package/dist/cjs/utils/tests/payment.spec.js +0 -16
  61. package/dist/cjs/utils/tests/payment.spec.js.map +1 -1
  62. package/dist/mjs/api/resources/Mail.d.ts +1 -1
  63. package/dist/mjs/api/resources/Mail.d.ts.map +1 -1
  64. package/dist/mjs/api/resources/Mail.js +5 -2
  65. package/dist/mjs/api/resources/Mail.js.map +1 -1
  66. package/dist/mjs/api/resources/Vat.d.ts +1 -3
  67. package/dist/mjs/api/resources/Vat.d.ts.map +1 -1
  68. package/dist/mjs/api/resources/Vat.js +0 -9
  69. package/dist/mjs/api/resources/Vat.js.map +1 -1
  70. package/dist/mjs/types/Enum/Log.d.ts +14 -1
  71. package/dist/mjs/types/Enum/Log.d.ts.map +1 -1
  72. package/dist/mjs/types/Enum/Log.js +13 -0
  73. package/dist/mjs/types/Enum/Log.js.map +1 -1
  74. package/dist/mjs/types/Enum/Template.d.ts +13 -0
  75. package/dist/mjs/types/Enum/Template.d.ts.map +1 -0
  76. package/dist/mjs/types/Enum/Template.js +14 -0
  77. package/dist/mjs/types/Enum/Template.js.map +1 -0
  78. package/dist/mjs/types/Enum/TypeSupportForNotation.js +2 -2
  79. package/dist/mjs/types/Enum/TypeSupportForNotation.js.map +1 -1
  80. package/dist/mjs/types/Enum/VatDeclarationType.d.ts.map +1 -1
  81. package/dist/mjs/types/Enum/VatDeclarationType.js +67 -1
  82. package/dist/mjs/types/Enum/VatDeclarationType.js.map +1 -1
  83. package/dist/mjs/types/Interface/api/commercialManagement/Create.d.ts +11 -0
  84. package/dist/mjs/types/Interface/api/commercialManagement/Create.d.ts.map +1 -1
  85. package/dist/mjs/types/Interface/api/commercialManagement/Create.js +77 -0
  86. package/dist/mjs/types/Interface/api/commercialManagement/Create.js.map +1 -1
  87. package/dist/mjs/types/Interface/api/exercice/Create.d.ts +1 -0
  88. package/dist/mjs/types/Interface/api/exercice/Create.d.ts.map +1 -1
  89. package/dist/mjs/types/Interface/api/exercice/Create.js +7 -0
  90. package/dist/mjs/types/Interface/api/exercice/Create.js.map +1 -1
  91. package/dist/mjs/types/Interface/api/payment/Util.d.ts +0 -1
  92. package/dist/mjs/types/Interface/api/payment/Util.d.ts.map +1 -1
  93. package/dist/mjs/types/Interface/api/payment/Util.js.map +1 -1
  94. package/dist/mjs/types/Interface/api/terminationList/QueryPaginateTerminationList.d.ts +1 -0
  95. package/dist/mjs/types/Interface/api/terminationList/QueryPaginateTerminationList.d.ts.map +1 -1
  96. package/dist/mjs/types/Interface/api/terminationList/QueryPaginateTerminationList.js +7 -0
  97. package/dist/mjs/types/Interface/api/terminationList/QueryPaginateTerminationList.js.map +1 -1
  98. package/dist/mjs/types/Interface/api/terminationList/TerminationList.d.ts +7 -0
  99. package/dist/mjs/types/Interface/api/terminationList/TerminationList.d.ts.map +1 -0
  100. package/dist/mjs/types/Interface/api/terminationList/TerminationList.js +42 -0
  101. package/dist/mjs/types/Interface/api/terminationList/TerminationList.js.map +1 -0
  102. package/dist/mjs/types/Interface/api/vatDeclaration/QueryVatDeclaration.d.ts +0 -3
  103. package/dist/mjs/types/Interface/api/vatDeclaration/QueryVatDeclaration.d.ts.map +1 -1
  104. package/dist/mjs/types/Interface/api/vatDeclaration/QueryVatDeclaration.js +0 -8
  105. package/dist/mjs/types/Interface/api/vatDeclaration/QueryVatDeclaration.js.map +1 -1
  106. package/dist/mjs/types/Interface/models/ISocietyGescom.d.ts +11 -0
  107. package/dist/mjs/types/Interface/models/ISocietyGescom.d.ts.map +1 -1
  108. package/dist/mjs/types/Interface/models/ISocietyGescom.js.map +1 -1
  109. package/dist/mjs/types/index.d.ts +1 -0
  110. package/dist/mjs/types/index.d.ts.map +1 -1
  111. package/dist/mjs/types/index.js +1 -0
  112. package/dist/mjs/types/index.js.map +1 -1
  113. package/dist/mjs/utils/commercialManagement/templates/common.d.ts.map +1 -1
  114. package/dist/mjs/utils/commercialManagement/templates/common.js +18 -1
  115. package/dist/mjs/utils/commercialManagement/templates/common.js.map +1 -1
  116. package/dist/mjs/utils/payment.d.ts.map +1 -1
  117. package/dist/mjs/utils/payment.js +13 -8
  118. package/dist/mjs/utils/payment.js.map +1 -1
  119. package/dist/mjs/utils/prestation.js +1 -1
  120. package/dist/mjs/utils/prestation.js.map +1 -1
  121. package/dist/mjs/utils/tests/payment.spec.js +0 -16
  122. package/dist/mjs/utils/tests/payment.spec.js.map +1 -1
  123. package/package.json +1 -1
  124. package/ts/api/resources/Mail.ts +5 -2
  125. package/ts/api/resources/Vat.ts +1 -12
  126. package/ts/types/Enum/Log.ts +13 -0
  127. package/ts/types/Enum/Template.ts +12 -0
  128. package/ts/types/Enum/TypeSupportForNotation.ts +2 -2
  129. package/ts/types/Enum/VatDeclarationType.ts +67 -1
  130. package/ts/types/Interface/api/commercialManagement/Create.ts +57 -0
  131. package/ts/types/Interface/api/exercice/Create.ts +5 -0
  132. package/ts/types/Interface/api/payment/Util.ts +0 -1
  133. package/ts/types/Interface/api/terminationList/QueryPaginateTerminationList.ts +5 -0
  134. package/ts/types/Interface/api/terminationList/TerminationList.ts +28 -0
  135. package/ts/types/Interface/api/vatDeclaration/QueryVatDeclaration.ts +0 -6
  136. package/ts/types/Interface/models/ISocietyGescom.ts +11 -0
  137. package/ts/types/index.ts +1 -0
  138. package/ts/utils/commercialManagement/templates/common.ts +18 -1
  139. package/ts/utils/payment.ts +13 -9
  140. package/ts/utils/prestation.ts +1 -1
  141. package/ts/utils/tests/payment.spec.ts +0 -16
@@ -79,7 +79,6 @@ describe('Payment', () => {
79
79
  prestationList.hidden = true;
80
80
  calculatePaymentsAuto({
81
81
  idTypeBrand: 1,
82
- goToClient: dayjs('2024-06-06').toDate(),
83
82
  firstExerciceNonExpresssEndDate,
84
83
  idPrestation,
85
84
  isWithApplicationFees: true,
@@ -107,7 +106,6 @@ describe('Payment', () => {
107
106
  test('if only one express, monthly payments of actual exo should be in parallel of express monthly payments, smoothed in number of remaining months (mini 3 months) (if not in 3 last month)', async () => {
108
107
  const payments = calculatePaymentsAuto({
109
108
  idTypeBrand: 1,
110
- goToClient: dayjs('2024-06-06').toDate(),
111
109
  firstExerciceNonExpresssEndDate,
112
110
  idPrestation,
113
111
  isWithApplicationFees: true,
@@ -126,7 +124,6 @@ describe('Payment', () => {
126
124
  test('if more than one express, monthly payments of actual exo should be in a row of express monthly payments and smoothed, smoothed in number of remaining months after express monthly payments (mini 3 months) (if in 3 last month of exercice)', async () => {
127
125
  const payments = calculatePaymentsAuto({
128
126
  idTypeBrand: 1,
129
- goToClient: dayjs('2024-06-06').toDate(),
130
127
  firstExerciceNonExpresssEndDate,
131
128
  idPrestation,
132
129
  isWithApplicationFees: true,
@@ -152,7 +149,6 @@ describe('Payment', () => {
152
149
 
153
150
  const payments = calculatePaymentsAuto({
154
151
  idTypeBrand: 1,
155
- goToClient: dayjs('2024-06-06').toDate(),
156
152
  firstExerciceNonExpresssEndDate: newFirstExerciceNonExpresssEndDate,
157
153
  idPrestation,
158
154
  isWithApplicationFees: true,
@@ -179,7 +175,6 @@ describe('Payment', () => {
179
175
 
180
176
  const payments = calculatePaymentsAuto({
181
177
  idTypeBrand: 1,
182
- goToClient: dayjs('2024-06-06').toDate(),
183
178
  firstExerciceNonExpresssEndDate: newFirstExerciceNonExpresssEndDate,
184
179
  idPrestation,
185
180
  isWithApplicationFees: true,
@@ -209,7 +204,6 @@ describe('Payment', () => {
209
204
  } as IRegulation];
210
205
  const payments = calculatePaymentsAuto({
211
206
  idTypeBrand: 1,
212
- goToClient: dayjs('2024-06-06').toDate(),
213
207
  firstExerciceNonExpresssEndDate: newFirstExerciceNonExpresssEndDate,
214
208
  idPrestation,
215
209
  isWithApplicationFees: false,
@@ -237,7 +231,6 @@ describe('Payment', () => {
237
231
  } as IRegulation];
238
232
  const payments = calculatePaymentsAuto({
239
233
  idTypeBrand: 1,
240
- goToClient: dayjs('2024-06-06').toDate(),
241
234
  firstExerciceNonExpresssEndDate: newFirstExerciceNonExpresssEndDate,
242
235
  idPrestation,
243
236
  isWithApplicationFees: false,
@@ -263,7 +256,6 @@ describe('Payment', () => {
263
256
 
264
257
  const payments = calculatePaymentsAuto({
265
258
  idTypeBrand: 1,
266
- goToClient: dayjs('2024-06-06').toDate(),
267
259
  firstExerciceNonExpresssEndDate: newFirstExerciceNonExpresssEndDate,
268
260
  idPrestation,
269
261
  isWithApplicationFees: true,
@@ -292,7 +284,6 @@ describe('Payment', () => {
292
284
 
293
285
  const payments = calculatePaymentsAuto({
294
286
  idTypeBrand: 1,
295
- goToClient: dayjs('2024-06-06').toDate(),
296
287
  firstExerciceNonExpresssEndDate: newFirstExerciceNonExpresssEndDate,
297
288
  idPrestation,
298
289
  isWithApplicationFees: true,
@@ -321,7 +312,6 @@ describe('Payment', () => {
321
312
 
322
313
  const payments = calculatePaymentsAuto({
323
314
  idTypeBrand: 1,
324
- goToClient: dayjs('2024-06-06').toDate(),
325
315
  firstExerciceNonExpresssEndDate: newFirstExerciceNonExpresssEndDate,
326
316
  idPrestation,
327
317
  isWithApplicationFees: false,
@@ -356,7 +346,6 @@ describe('Payment', () => {
356
346
  };
357
347
  const payments = calculatePaymentsAuto({
358
348
  idTypeBrand: 1,
359
- goToClient: dayjs('2024-06-06').toDate(),
360
349
  firstExerciceNonExpresssEndDate,
361
350
  idPrestation,
362
351
  isWithApplicationFees: true,
@@ -376,7 +365,6 @@ describe('Payment', () => {
376
365
 
377
366
  const payments = calculatePaymentsAuto({
378
367
  idTypeBrand: 1,
379
- goToClient: dayjs('2024-06-06').toDate(),
380
368
  firstExerciceNonExpresssEndDate,
381
369
  idPrestation,
382
370
  isWithApplicationFees: false,
@@ -415,7 +403,6 @@ describe('Payment', () => {
415
403
 
416
404
  const payments = calculatePaymentsAuto({
417
405
  idTypeBrand: 1,
418
- goToClient: dayjs('2024-06-06').toDate(),
419
406
  firstExerciceNonExpresssEndDate,
420
407
  idPrestation,
421
408
  isWithApplicationFees: false,
@@ -436,7 +423,6 @@ describe('Payment', () => {
436
423
 
437
424
  const payments = calculatePaymentsAuto({
438
425
  idTypeBrand: 1,
439
- goToClient: dayjs('2024-06-06').toDate(),
440
426
  firstExerciceNonExpresssEndDate,
441
427
  idPrestation,
442
428
  isWithApplicationFees: true,
@@ -453,7 +439,6 @@ describe('Payment', () => {
453
439
  test('first payment and last payment should have at least one year difference (ex. : 23 - 24)', async () => {
454
440
  const payments = calculatePaymentsAuto({
455
441
  idTypeBrand: 1,
456
- goToClient: dayjs('2024-06-06').toDate(),
457
442
  firstExerciceNonExpresssEndDate,
458
443
  idPrestation,
459
444
  isWithApplicationFees: true,
@@ -469,7 +454,6 @@ describe('Payment', () => {
469
454
  test('real case : idSociety 114440', async () => {
470
455
  const payments = calculatePaymentsAuto({
471
456
  idTypeBrand: 1,
472
- goToClient: dayjs('2024-06-06').toDate(),
473
457
  firstExerciceNonExpresssEndDate: dayjs('2024-12-31').toDate(),
474
458
  idPrestation,
475
459
  isWithApplicationFees: true,