@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.
- package/dist/api/resources/CommercialDocument.d.ts +4 -1
- package/dist/api/resources/CommercialDocument.d.ts.map +1 -1
- package/dist/api/resources/CommercialDocument.js +9 -0
- package/dist/api/resources/CommercialDocument.js.map +1 -1
- package/dist/api/resources/zendesk/Ticket.d.ts +12 -0
- package/dist/api/resources/zendesk/Ticket.d.ts.map +1 -0
- package/dist/api/resources/zendesk/Ticket.js +40 -0
- package/dist/api/resources/zendesk/Ticket.js.map +1 -0
- package/dist/api/resources.d.ts +2 -0
- package/dist/api/resources.d.ts.map +1 -1
- package/dist/api/resources.js +2 -0
- package/dist/api/resources.js.map +1 -1
- package/dist/types/Enum/Annotation.d.ts +4 -0
- package/dist/types/Enum/Annotation.d.ts.map +1 -1
- package/dist/types/Enum/Annotation.js +2 -0
- package/dist/types/Enum/Annotation.js.map +1 -1
- package/dist/types/Enum/BalanceSheet.d.ts +1 -1
- package/dist/types/Enum/BalanceSheet.js +1 -1
- package/dist/types/Enum/BalanceSheet.js.map +1 -1
- package/dist/types/Enum/BrandClementine.d.ts.map +1 -1
- package/dist/types/Enum/BrandClementine.js +1 -0
- package/dist/types/Enum/BrandClementine.js.map +1 -1
- package/dist/types/Enum/CustomerSignature.d.ts +2 -1
- package/dist/types/Enum/CustomerSignature.d.ts.map +1 -1
- package/dist/types/Enum/CustomerSignature.js +1 -0
- package/dist/types/Enum/CustomerSignature.js.map +1 -1
- package/dist/types/Enum/EInvoicingDirection.d.ts +5 -0
- package/dist/types/Enum/EInvoicingDirection.d.ts.map +1 -0
- package/dist/types/Enum/EInvoicingDirection.js +6 -0
- package/dist/types/Enum/EInvoicingDirection.js.map +1 -0
- package/dist/types/Enum/EInvoicingReasonType.d.ts +44 -0
- package/dist/types/Enum/EInvoicingReasonType.d.ts.map +1 -0
- package/dist/types/Enum/EInvoicingReasonType.js +143 -0
- package/dist/types/Enum/EInvoicingReasonType.js.map +1 -0
- package/dist/types/Enum/EInvoicingStatusCode.d.ts +16 -0
- package/dist/types/Enum/EInvoicingStatusCode.d.ts.map +1 -0
- package/dist/types/Enum/EInvoicingStatusCode.js +20 -0
- package/dist/types/Enum/EInvoicingStatusCode.js.map +1 -0
- package/dist/types/Enum/MimeType.d.ts +2 -0
- package/dist/types/Enum/MimeType.d.ts.map +1 -1
- package/dist/types/Enum/MimeType.js +1 -0
- package/dist/types/Enum/MimeType.js.map +1 -1
- package/dist/types/Enum/SalesContractBrandClementine.js +1 -1
- package/dist/types/Enum/SalesContractBrandClementine.js.map +1 -1
- package/dist/types/Enum/Unit.d.ts +2 -0
- package/dist/types/Enum/Unit.d.ts.map +1 -1
- package/dist/types/Enum/Unit.js +22 -0
- package/dist/types/Enum/Unit.js.map +1 -1
- package/dist/types/Enum/Zendesk.d.ts +40 -0
- package/dist/types/Enum/Zendesk.d.ts.map +1 -0
- package/dist/types/Enum/Zendesk.js +40 -0
- package/dist/types/Enum/Zendesk.js.map +1 -0
- package/dist/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.d.ts +1 -0
- package/dist/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.d.ts.map +1 -1
- package/dist/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.js.map +1 -1
- package/dist/types/Interface/api/commercialManagement/Read.d.ts +113 -0
- package/dist/types/Interface/api/commercialManagement/Read.d.ts.map +1 -1
- package/dist/types/Interface/api/commercialManagement/Read.js.map +1 -1
- package/dist/types/Interface/api/docoon/Create.d.ts +17 -0
- package/dist/types/Interface/api/docoon/Create.d.ts.map +1 -1
- package/dist/types/Interface/api/docoon/Create.js +72 -1
- package/dist/types/Interface/api/docoon/Create.js.map +1 -1
- package/dist/types/Interface/api/docoon/DocoonInvoice.d.ts +195 -0
- package/dist/types/Interface/api/docoon/DocoonInvoice.d.ts.map +1 -0
- package/dist/types/Interface/api/docoon/DocoonInvoice.js +2 -0
- package/dist/types/Interface/api/docoon/DocoonInvoice.js.map +1 -0
- package/dist/types/Interface/api/docoon/Query.js +1 -1
- package/dist/types/Interface/api/docoon/Query.js.map +1 -1
- package/dist/types/Interface/api/society/QueryUnpaid.d.ts +4 -0
- package/dist/types/Interface/api/society/QueryUnpaid.d.ts.map +1 -1
- package/dist/types/Interface/api/society/QueryUnpaid.js +27 -0
- package/dist/types/Interface/api/society/QueryUnpaid.js.map +1 -1
- package/dist/types/Interface/api/thirdParty/CreateThirdPartyForm.d.ts +2 -0
- package/dist/types/Interface/api/thirdParty/CreateThirdPartyForm.d.ts.map +1 -1
- package/dist/types/Interface/api/thirdParty/CreateThirdPartyForm.js +10 -0
- package/dist/types/Interface/api/thirdParty/CreateThirdPartyForm.js.map +1 -1
- package/dist/types/Interface/api/thirdParty/UpdateThirdPartyForm.d.ts +2 -0
- package/dist/types/Interface/api/thirdParty/UpdateThirdPartyForm.d.ts.map +1 -1
- package/dist/types/Interface/api/thirdParty/UpdateThirdPartyForm.js +12 -0
- package/dist/types/Interface/api/thirdParty/UpdateThirdPartyForm.js.map +1 -1
- package/dist/types/Interface/api/zendesk/QueryTicket.d.ts +39 -0
- package/dist/types/Interface/api/zendesk/QueryTicket.d.ts.map +1 -0
- package/dist/types/Interface/api/zendesk/QueryTicket.js +244 -0
- package/dist/types/Interface/api/zendesk/QueryTicket.js.map +1 -0
- package/dist/types/Interface/api/zendesk/ReadTicket.d.ts +99 -0
- package/dist/types/Interface/api/zendesk/ReadTicket.d.ts.map +1 -0
- package/dist/types/Interface/api/zendesk/ReadTicket.js +2 -0
- package/dist/types/Interface/api/zendesk/ReadTicket.js.map +1 -0
- package/dist/types/Interface/models/IAccountingFile.d.ts +10 -0
- package/dist/types/Interface/models/IAccountingFile.d.ts.map +1 -1
- package/dist/types/Interface/models/IAccountingFile.js +8 -0
- package/dist/types/Interface/models/IAccountingFile.js.map +1 -1
- package/dist/types/Interface/models/IAccountingTransaction.d.ts +3 -0
- package/dist/types/Interface/models/IAccountingTransaction.d.ts.map +1 -1
- package/dist/types/Interface/models/IAccountingTransaction.js +2 -0
- package/dist/types/Interface/models/IAccountingTransaction.js.map +1 -1
- package/dist/types/Interface/models/IEInvoicing.d.ts +18 -0
- package/dist/types/Interface/models/IEInvoicing.d.ts.map +1 -0
- package/dist/types/Interface/models/IEInvoicing.js +13 -0
- package/dist/types/Interface/models/IEInvoicing.js.map +1 -0
- package/dist/types/Interface/models/IEInvoicingStatus.d.ts +17 -0
- package/dist/types/Interface/models/IEInvoicingStatus.d.ts.map +1 -0
- package/dist/types/Interface/models/IEInvoicingStatus.js +13 -0
- package/dist/types/Interface/models/IEInvoicingStatus.js.map +1 -0
- package/dist/types/Interface/models/IPayment.d.ts +3 -0
- package/dist/types/Interface/models/IPayment.d.ts.map +1 -1
- package/dist/types/Interface/models/IPayment.js +2 -0
- package/dist/types/Interface/models/IPayment.js.map +1 -1
- package/dist/types/Interface/models/ISocietyDetail.d.ts +1 -0
- package/dist/types/Interface/models/ISocietyDetail.d.ts.map +1 -1
- package/dist/types/Interface/models/ISocietyDetail.js +1 -0
- package/dist/types/Interface/models/ISocietyDetail.js.map +1 -1
- package/dist/types/Interface/models/IThirdParty.d.ts +2 -0
- package/dist/types/Interface/models/IThirdParty.d.ts.map +1 -1
- package/dist/types/Interface/models/IThirdParty.js +2 -0
- package/dist/types/Interface/models/IThirdParty.js.map +1 -1
- package/dist/types/index.d.ts +13 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +13 -0
- package/dist/types/index.js.map +1 -1
- package/dist/utils/prestation.d.ts.map +1 -1
- package/dist/utils/prestation.js +7 -3
- package/dist/utils/prestation.js.map +1 -1
- package/dist/utils/vat/centuries.d.ts.map +1 -1
- package/dist/utils/vat/centuries.js +11 -1
- package/dist/utils/vat/centuries.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/CommercialDocument.ts +16 -0
- package/ts/api/resources/zendesk/Ticket.ts +58 -0
- package/ts/api/resources.ts +2 -0
- package/ts/types/Enum/Annotation.ts +3 -0
- package/ts/types/Enum/BalanceSheet.ts +1 -1
- package/ts/types/Enum/BrandClementine.ts +1 -0
- package/ts/types/Enum/CustomerSignature.ts +2 -1
- package/ts/types/Enum/EInvoicingDirection.ts +4 -0
- package/ts/types/Enum/EInvoicingReasonType.ts +156 -0
- package/ts/types/Enum/EInvoicingStatusCode.ts +18 -0
- package/ts/types/Enum/MimeType.ts +1 -0
- package/ts/types/Enum/SalesContractBrandClementine.ts +1 -1
- package/ts/types/Enum/Unit.ts +24 -1
- package/ts/types/Enum/Zendesk.ts +56 -0
- package/ts/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.ts +1 -0
- package/ts/types/Interface/api/commercialManagement/Read.ts +110 -0
- package/ts/types/Interface/api/docoon/Create.ts +46 -0
- package/ts/types/Interface/api/docoon/DocoonInvoice.ts +201 -0
- package/ts/types/Interface/api/docoon/Query.ts +1 -1
- package/ts/types/Interface/api/society/QueryUnpaid.ts +19 -0
- package/ts/types/Interface/api/thirdParty/CreateThirdPartyForm.ts +6 -0
- package/ts/types/Interface/api/thirdParty/UpdateThirdPartyForm.ts +8 -0
- package/ts/types/Interface/api/zendesk/QueryTicket.ts +192 -0
- package/ts/types/Interface/api/zendesk/ReadTicket.ts +110 -0
- package/ts/types/Interface/models/IAccountingFile.ts +10 -0
- package/ts/types/Interface/models/IAccountingTransaction.ts +3 -0
- package/ts/types/Interface/models/IEInvoicing.ts +21 -0
- package/ts/types/Interface/models/IEInvoicingStatus.ts +18 -0
- package/ts/types/Interface/models/IPayment.ts +3 -0
- package/ts/types/Interface/models/ISocietyDetail.ts +1 -0
- package/ts/types/Interface/models/IThirdParty.ts +2 -0
- package/ts/types/index.ts +13 -0
- package/ts/utils/prestation.ts +9 -3
- 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';
|
package/ts/utils/prestation.ts
CHANGED
|
@@ -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, [
|
|
156
|
-
.
|
|
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(
|
|
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
|
|
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',
|