@silexpert/core 2.0.56 → 2.0.58-zendesk

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 (161) hide show
  1. package/dist/api/resources/CommercialDocument.d.ts +4 -1
  2. package/dist/api/resources/CommercialDocument.d.ts.map +1 -1
  3. package/dist/api/resources/CommercialDocument.js +9 -0
  4. package/dist/api/resources/CommercialDocument.js.map +1 -1
  5. package/dist/api/resources/zendesk/Ticket.d.ts +12 -0
  6. package/dist/api/resources/zendesk/Ticket.d.ts.map +1 -0
  7. package/dist/api/resources/zendesk/Ticket.js +40 -0
  8. package/dist/api/resources/zendesk/Ticket.js.map +1 -0
  9. package/dist/api/resources.d.ts +2 -0
  10. package/dist/api/resources.d.ts.map +1 -1
  11. package/dist/api/resources.js +2 -0
  12. package/dist/api/resources.js.map +1 -1
  13. package/dist/types/Enum/Annotation.d.ts +4 -0
  14. package/dist/types/Enum/Annotation.d.ts.map +1 -1
  15. package/dist/types/Enum/Annotation.js +2 -0
  16. package/dist/types/Enum/Annotation.js.map +1 -1
  17. package/dist/types/Enum/BalanceSheet.d.ts +1 -1
  18. package/dist/types/Enum/BalanceSheet.js +1 -1
  19. package/dist/types/Enum/BalanceSheet.js.map +1 -1
  20. package/dist/types/Enum/BrandClementine.d.ts.map +1 -1
  21. package/dist/types/Enum/BrandClementine.js +1 -0
  22. package/dist/types/Enum/BrandClementine.js.map +1 -1
  23. package/dist/types/Enum/CustomerSignature.d.ts +2 -1
  24. package/dist/types/Enum/CustomerSignature.d.ts.map +1 -1
  25. package/dist/types/Enum/CustomerSignature.js +1 -0
  26. package/dist/types/Enum/CustomerSignature.js.map +1 -1
  27. package/dist/types/Enum/EInvoicingDirection.d.ts +5 -0
  28. package/dist/types/Enum/EInvoicingDirection.d.ts.map +1 -0
  29. package/dist/types/Enum/EInvoicingDirection.js +6 -0
  30. package/dist/types/Enum/EInvoicingDirection.js.map +1 -0
  31. package/dist/types/Enum/EInvoicingReasonType.d.ts +44 -0
  32. package/dist/types/Enum/EInvoicingReasonType.d.ts.map +1 -0
  33. package/dist/types/Enum/EInvoicingReasonType.js +143 -0
  34. package/dist/types/Enum/EInvoicingReasonType.js.map +1 -0
  35. package/dist/types/Enum/EInvoicingStatusCode.d.ts +16 -0
  36. package/dist/types/Enum/EInvoicingStatusCode.d.ts.map +1 -0
  37. package/dist/types/Enum/EInvoicingStatusCode.js +20 -0
  38. package/dist/types/Enum/EInvoicingStatusCode.js.map +1 -0
  39. package/dist/types/Enum/MimeType.d.ts +2 -0
  40. package/dist/types/Enum/MimeType.d.ts.map +1 -1
  41. package/dist/types/Enum/MimeType.js +1 -0
  42. package/dist/types/Enum/MimeType.js.map +1 -1
  43. package/dist/types/Enum/SalesContractBrandClementine.js +1 -1
  44. package/dist/types/Enum/SalesContractBrandClementine.js.map +1 -1
  45. package/dist/types/Enum/Unit.d.ts +2 -0
  46. package/dist/types/Enum/Unit.d.ts.map +1 -1
  47. package/dist/types/Enum/Unit.js +22 -0
  48. package/dist/types/Enum/Unit.js.map +1 -1
  49. package/dist/types/Enum/Zendesk.d.ts +40 -0
  50. package/dist/types/Enum/Zendesk.d.ts.map +1 -0
  51. package/dist/types/Enum/Zendesk.js +40 -0
  52. package/dist/types/Enum/Zendesk.js.map +1 -0
  53. package/dist/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.d.ts +1 -0
  54. package/dist/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.d.ts.map +1 -1
  55. package/dist/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.js.map +1 -1
  56. package/dist/types/Interface/api/commercialManagement/Read.d.ts +113 -0
  57. package/dist/types/Interface/api/commercialManagement/Read.d.ts.map +1 -1
  58. package/dist/types/Interface/api/commercialManagement/Read.js.map +1 -1
  59. package/dist/types/Interface/api/docoon/Create.d.ts +17 -0
  60. package/dist/types/Interface/api/docoon/Create.d.ts.map +1 -1
  61. package/dist/types/Interface/api/docoon/Create.js +72 -1
  62. package/dist/types/Interface/api/docoon/Create.js.map +1 -1
  63. package/dist/types/Interface/api/docoon/DocoonInvoice.d.ts +195 -0
  64. package/dist/types/Interface/api/docoon/DocoonInvoice.d.ts.map +1 -0
  65. package/dist/types/Interface/api/docoon/DocoonInvoice.js +2 -0
  66. package/dist/types/Interface/api/docoon/DocoonInvoice.js.map +1 -0
  67. package/dist/types/Interface/api/docoon/Query.js +1 -1
  68. package/dist/types/Interface/api/docoon/Query.js.map +1 -1
  69. package/dist/types/Interface/api/society/QueryUnpaid.d.ts +4 -0
  70. package/dist/types/Interface/api/society/QueryUnpaid.d.ts.map +1 -1
  71. package/dist/types/Interface/api/society/QueryUnpaid.js +27 -0
  72. package/dist/types/Interface/api/society/QueryUnpaid.js.map +1 -1
  73. package/dist/types/Interface/api/thirdParty/CreateThirdPartyForm.d.ts +2 -0
  74. package/dist/types/Interface/api/thirdParty/CreateThirdPartyForm.d.ts.map +1 -1
  75. package/dist/types/Interface/api/thirdParty/CreateThirdPartyForm.js +10 -0
  76. package/dist/types/Interface/api/thirdParty/CreateThirdPartyForm.js.map +1 -1
  77. package/dist/types/Interface/api/thirdParty/UpdateThirdPartyForm.d.ts +2 -0
  78. package/dist/types/Interface/api/thirdParty/UpdateThirdPartyForm.d.ts.map +1 -1
  79. package/dist/types/Interface/api/thirdParty/UpdateThirdPartyForm.js +12 -0
  80. package/dist/types/Interface/api/thirdParty/UpdateThirdPartyForm.js.map +1 -1
  81. package/dist/types/Interface/api/zendesk/QueryTicket.d.ts +39 -0
  82. package/dist/types/Interface/api/zendesk/QueryTicket.d.ts.map +1 -0
  83. package/dist/types/Interface/api/zendesk/QueryTicket.js +244 -0
  84. package/dist/types/Interface/api/zendesk/QueryTicket.js.map +1 -0
  85. package/dist/types/Interface/api/zendesk/ReadTicket.d.ts +99 -0
  86. package/dist/types/Interface/api/zendesk/ReadTicket.d.ts.map +1 -0
  87. package/dist/types/Interface/api/zendesk/ReadTicket.js +2 -0
  88. package/dist/types/Interface/api/zendesk/ReadTicket.js.map +1 -0
  89. package/dist/types/Interface/models/IAccountingFile.d.ts +10 -0
  90. package/dist/types/Interface/models/IAccountingFile.d.ts.map +1 -1
  91. package/dist/types/Interface/models/IAccountingFile.js +8 -0
  92. package/dist/types/Interface/models/IAccountingFile.js.map +1 -1
  93. package/dist/types/Interface/models/IAccountingTransaction.d.ts +3 -0
  94. package/dist/types/Interface/models/IAccountingTransaction.d.ts.map +1 -1
  95. package/dist/types/Interface/models/IAccountingTransaction.js +2 -0
  96. package/dist/types/Interface/models/IAccountingTransaction.js.map +1 -1
  97. package/dist/types/Interface/models/IEInvoicing.d.ts +18 -0
  98. package/dist/types/Interface/models/IEInvoicing.d.ts.map +1 -0
  99. package/dist/types/Interface/models/IEInvoicing.js +13 -0
  100. package/dist/types/Interface/models/IEInvoicing.js.map +1 -0
  101. package/dist/types/Interface/models/IEInvoicingStatus.d.ts +17 -0
  102. package/dist/types/Interface/models/IEInvoicingStatus.d.ts.map +1 -0
  103. package/dist/types/Interface/models/IEInvoicingStatus.js +13 -0
  104. package/dist/types/Interface/models/IEInvoicingStatus.js.map +1 -0
  105. package/dist/types/Interface/models/IPayment.d.ts +3 -0
  106. package/dist/types/Interface/models/IPayment.d.ts.map +1 -1
  107. package/dist/types/Interface/models/IPayment.js +2 -0
  108. package/dist/types/Interface/models/IPayment.js.map +1 -1
  109. package/dist/types/Interface/models/ISocietyDetail.d.ts +1 -0
  110. package/dist/types/Interface/models/ISocietyDetail.d.ts.map +1 -1
  111. package/dist/types/Interface/models/ISocietyDetail.js +1 -0
  112. package/dist/types/Interface/models/ISocietyDetail.js.map +1 -1
  113. package/dist/types/Interface/models/IThirdParty.d.ts +2 -0
  114. package/dist/types/Interface/models/IThirdParty.d.ts.map +1 -1
  115. package/dist/types/Interface/models/IThirdParty.js +2 -0
  116. package/dist/types/Interface/models/IThirdParty.js.map +1 -1
  117. package/dist/types/index.d.ts +13 -0
  118. package/dist/types/index.d.ts.map +1 -1
  119. package/dist/types/index.js +13 -0
  120. package/dist/types/index.js.map +1 -1
  121. package/dist/utils/prestation.d.ts.map +1 -1
  122. package/dist/utils/prestation.js +7 -3
  123. package/dist/utils/prestation.js.map +1 -1
  124. package/dist/utils/vat/centuries.d.ts.map +1 -1
  125. package/dist/utils/vat/centuries.js +11 -1
  126. package/dist/utils/vat/centuries.js.map +1 -1
  127. package/package.json +1 -1
  128. package/ts/api/resources/CommercialDocument.ts +16 -0
  129. package/ts/api/resources/zendesk/Ticket.ts +58 -0
  130. package/ts/api/resources.ts +2 -0
  131. package/ts/types/Enum/Annotation.ts +3 -0
  132. package/ts/types/Enum/BalanceSheet.ts +1 -1
  133. package/ts/types/Enum/BrandClementine.ts +1 -0
  134. package/ts/types/Enum/CustomerSignature.ts +2 -1
  135. package/ts/types/Enum/EInvoicingDirection.ts +4 -0
  136. package/ts/types/Enum/EInvoicingReasonType.ts +156 -0
  137. package/ts/types/Enum/EInvoicingStatusCode.ts +18 -0
  138. package/ts/types/Enum/MimeType.ts +1 -0
  139. package/ts/types/Enum/SalesContractBrandClementine.ts +1 -1
  140. package/ts/types/Enum/Unit.ts +24 -1
  141. package/ts/types/Enum/Zendesk.ts +56 -0
  142. package/ts/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.ts +1 -0
  143. package/ts/types/Interface/api/commercialManagement/Read.ts +110 -0
  144. package/ts/types/Interface/api/docoon/Create.ts +46 -0
  145. package/ts/types/Interface/api/docoon/DocoonInvoice.ts +201 -0
  146. package/ts/types/Interface/api/docoon/Query.ts +1 -1
  147. package/ts/types/Interface/api/society/QueryUnpaid.ts +19 -0
  148. package/ts/types/Interface/api/thirdParty/CreateThirdPartyForm.ts +6 -0
  149. package/ts/types/Interface/api/thirdParty/UpdateThirdPartyForm.ts +8 -0
  150. package/ts/types/Interface/api/zendesk/QueryTicket.ts +192 -0
  151. package/ts/types/Interface/api/zendesk/ReadTicket.ts +110 -0
  152. package/ts/types/Interface/models/IAccountingFile.ts +10 -0
  153. package/ts/types/Interface/models/IAccountingTransaction.ts +3 -0
  154. package/ts/types/Interface/models/IEInvoicing.ts +21 -0
  155. package/ts/types/Interface/models/IEInvoicingStatus.ts +18 -0
  156. package/ts/types/Interface/models/IPayment.ts +3 -0
  157. package/ts/types/Interface/models/ISocietyDetail.ts +1 -0
  158. package/ts/types/Interface/models/IThirdParty.ts +2 -0
  159. package/ts/types/index.ts +13 -0
  160. package/ts/utils/prestation.ts +9 -3
  161. package/ts/utils/vat/centuries.ts +11 -1
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,9 @@ 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';
306
+ export * from './Enum/EInvoicingReasonType.js';
302
307
  export * from './Enum/Feature.js';
303
308
  export * from './Enum/JuridicalSocietyEnum.js';
304
309
  export * from './Enum/Template.js';
@@ -497,6 +502,7 @@ export * from './Enum/EquipmentAvailability.js';
497
502
  export * from './Enum/SpecialDayType.js';
498
503
  export * from './Enum/Degree.js';
499
504
  export * from './Enum/Brevo.js';
505
+ export * from './Enum/Zendesk.js';
500
506
  export * from './Enum/ZoneCode.js';
501
507
  export * from './Enum/TimeSlot.js';
502
508
  export * from './Enum/StateSynchro.js';
@@ -825,6 +831,8 @@ export * from './Interface/api/loan/ReadLoan.js';
825
831
  export * from './Interface/api/stock/StocksType.js';
826
832
  export * from './Interface/api/lettering/QueryRegroupLettering.js';
827
833
  export * from './Interface/api/loan/UpdateLoan.js';
834
+ export * from './Interface/api/zendesk/QueryTicket.js';
835
+ export * from './Interface/api/zendesk/ReadTicket.js';
828
836
  export * from './Interface/api/zticket/CreateZTicket.js';
829
837
  export * from './Interface/api/zticket/QueryZTicket.js';
830
838
  export * from './Interface/api/balanceSheetModule/CreateBalanceSheetModule.js';
@@ -1127,10 +1135,15 @@ export * from './Interface/api/automaticRegistration/Query.js';
1127
1135
  export * from './Interface/api/automaticRegistration/Read.js';
1128
1136
  export * from './Interface/api/mail/EmailStatus.js';
1129
1137
  export * from './Interface/api/mailSociety/QueryMailSociety.js';
1138
+ export * from './Interface/api/docoon/DocoonInvoice.js';
1139
+ export * from './Interface/api/docoon/Query.js';
1140
+ export * from './Interface/api/docoon/Read.js';
1130
1141
 
1131
1142
  // Enums types
1132
1143
  export * from './Interface/enum/Util.js';
1133
1144
  export * from './Interface/enum/Date.js';
1145
+ export * from './Interface/enum/Date.js';
1146
+ export * from './Interface/enum/Date.js';
1134
1147
  export * from './Interface/api/connector/Sirene.js';
1135
1148
  export * from '../utils/cerfa.js';
1136
1149
  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
 
@@ -128,12 +128,22 @@ const vatDocuments: VatDocument[] = [
128
128
  idCerfaType: CerfaType.CERFA_3514,
129
129
  name: '3514',
130
130
  century: '23',
131
- centuries: [2022, 2023, 2024, 2025, 2026],
131
+ centuries: [2022, 2023, 2024, 2025],
132
132
  payload: (payload: PayloadCerfa3514_2022) => getCerfa3514Century22Payload(payload),
133
133
  asponePayload: (data: Cerfa3514_2022) => getCerfa3514Century23RegistrationFields(data),
134
134
  fields: cerfa3514Century22Fields,
135
135
  fileName: '3514-2022',
136
136
  },
137
+ {
138
+ idCerfaType: CerfaType.CERFA_3514,
139
+ name: '3514',
140
+ century: '26',
141
+ centuries: [2026, 2027],
142
+ payload: (payload: PayloadCerfa3514_2022) => getCerfa3514Century22Payload(payload),
143
+ asponePayload: (data: Cerfa3514_2022) => getCerfa3514Century23RegistrationFields(data),
144
+ fields: cerfa3514Century22Fields,
145
+ fileName: '3514-2022', // TODO:
146
+ },
137
147
  {
138
148
  idCerfaType: CerfaType.CERFA_3517,
139
149
  name: '3517',