@silexpert/core 1.3.192 → 1.3.193-2
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/cjs/api/resources/Checklist.d.ts +0 -6
- package/dist/cjs/api/resources/Checklist.d.ts.map +1 -1
- package/dist/cjs/api/resources/Checklist.js +0 -6
- package/dist/cjs/api/resources/Checklist.js.map +1 -1
- package/dist/cjs/api/resources/DocumentRequest.d.ts +1 -3
- package/dist/cjs/api/resources/DocumentRequest.d.ts.map +1 -1
- package/dist/cjs/api/resources/DocumentRequest.js +0 -6
- package/dist/cjs/api/resources/DocumentRequest.js.map +1 -1
- package/dist/cjs/api/resources/InternalInvoicing.d.ts.map +1 -1
- package/dist/cjs/api/resources/InternalInvoicing.js +8 -0
- package/dist/cjs/api/resources/InternalInvoicing.js.map +1 -1
- package/dist/cjs/api/resources/Mfa.d.ts +0 -1
- package/dist/cjs/api/resources/Mfa.d.ts.map +1 -1
- package/dist/cjs/api/resources/Mfa.js +0 -4
- package/dist/cjs/api/resources/Mfa.js.map +1 -1
- package/dist/cjs/api/resources/Shine.d.ts +1 -2
- package/dist/cjs/api/resources/Shine.d.ts.map +1 -1
- package/dist/cjs/api/resources/Shine.js +0 -3
- package/dist/cjs/api/resources/Shine.js.map +1 -1
- package/dist/cjs/api/resources/Society.d.ts +1 -2
- package/dist/cjs/api/resources/Society.d.ts.map +1 -1
- package/dist/cjs/api/resources/Society.js +0 -3
- package/dist/cjs/api/resources/Society.js.map +1 -1
- package/dist/cjs/api/resources/User.d.ts +6 -1
- package/dist/cjs/api/resources/User.d.ts.map +1 -1
- package/dist/cjs/api/resources/User.js +15 -0
- package/dist/cjs/api/resources/User.js.map +1 -1
- package/dist/cjs/api/resources.d.ts +0 -4
- package/dist/cjs/api/resources.d.ts.map +1 -1
- package/dist/cjs/api/resources.js +0 -4
- package/dist/cjs/api/resources.js.map +1 -1
- package/dist/cjs/types/Enum/AdjustmentType.js +4 -4
- package/dist/cjs/types/Enum/AdjustmentType.js.map +1 -1
- package/dist/cjs/types/Enum/BalanceSheet.d.ts.map +1 -1
- package/dist/cjs/types/Enum/BalanceSheet.js +6 -6
- package/dist/cjs/types/Enum/BalanceSheet.js.map +1 -1
- package/dist/cjs/types/Enum/BrandPourcentage.js +8 -8
- package/dist/cjs/types/Enum/BrandPourcentage.js.map +1 -1
- package/dist/cjs/types/Enum/Card.d.ts +1 -7
- package/dist/cjs/types/Enum/Card.d.ts.map +1 -1
- package/dist/cjs/types/Enum/Card.js +1 -9
- package/dist/cjs/types/Enum/Card.js.map +1 -1
- package/dist/cjs/types/Enum/Consistency.d.ts +1 -1
- package/dist/cjs/types/Enum/Consistency.js +7 -7
- package/dist/cjs/types/Enum/Consistency.js.map +1 -1
- package/dist/cjs/types/Enum/DashboardBlock.d.ts +1 -2
- package/dist/cjs/types/Enum/DashboardBlock.d.ts.map +1 -1
- package/dist/cjs/types/Enum/DashboardBlock.js +0 -1
- package/dist/cjs/types/Enum/DashboardBlock.js.map +1 -1
- package/dist/cjs/types/Enum/EntityType.d.ts +2 -2
- package/dist/cjs/types/Enum/EntityType.js +2 -2
- package/dist/cjs/types/Enum/EntityType.js.map +1 -1
- package/dist/cjs/types/Enum/Ged.d.ts +3 -9
- package/dist/cjs/types/Enum/Ged.d.ts.map +1 -1
- package/dist/cjs/types/Enum/Ged.js +56 -163
- package/dist/cjs/types/Enum/Ged.js.map +1 -1
- package/dist/cjs/types/Enum/InformationRequestState.d.ts +1 -2
- package/dist/cjs/types/Enum/InformationRequestState.d.ts.map +1 -1
- package/dist/cjs/types/Enum/InformationRequestState.js +0 -1
- package/dist/cjs/types/Enum/InformationRequestState.js.map +1 -1
- package/dist/cjs/types/Enum/InformationRequestType.d.ts.map +1 -1
- package/dist/cjs/types/Enum/InformationRequestType.js +6 -12
- package/dist/cjs/types/Enum/InformationRequestType.js.map +1 -1
- package/dist/cjs/types/Enum/KilometricAllowanceScale.d.ts.map +1 -1
- package/dist/cjs/types/Enum/KilometricAllowanceScale.js +0 -119
- package/dist/cjs/types/Enum/KilometricAllowanceScale.js.map +1 -1
- package/dist/cjs/types/Enum/MailAuto.d.ts +1 -5
- package/dist/cjs/types/Enum/MailAuto.d.ts.map +1 -1
- package/dist/cjs/types/Enum/MailAuto.js +0 -4
- package/dist/cjs/types/Enum/MailAuto.js.map +1 -1
- package/dist/cjs/types/Enum/PriceGridClementine.d.ts.map +1 -1
- package/dist/cjs/types/Enum/PriceGridClementine.js +478 -482
- package/dist/cjs/types/Enum/PriceGridClementine.js.map +1 -1
- package/dist/cjs/types/Enum/Proceding.d.ts +0 -4
- package/dist/cjs/types/Enum/Proceding.d.ts.map +1 -1
- package/dist/cjs/types/Enum/Proceding.js +0 -4
- package/dist/cjs/types/Enum/Proceding.js.map +1 -1
- package/dist/cjs/types/Enum/StatutsSection.d.ts +1 -7
- package/dist/cjs/types/Enum/StatutsSection.d.ts.map +1 -1
- package/dist/cjs/types/Enum/StatutsSection.js +7 -15
- package/dist/cjs/types/Enum/StatutsSection.js.map +1 -1
- package/dist/cjs/types/Enum/Unit.d.ts +1 -2
- package/dist/cjs/types/Enum/Unit.d.ts.map +1 -1
- package/dist/cjs/types/Enum/Unit.js +0 -11
- package/dist/cjs/types/Enum/Unit.js.map +1 -1
- package/dist/cjs/types/Interface/api/authentification/AuthenticationResponse.d.ts +0 -10
- package/dist/cjs/types/Interface/api/authentification/AuthenticationResponse.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/authentification/AuthenticationResponse.js.map +1 -1
- package/dist/cjs/types/Interface/api/authentification/ReadAuthenticateCollaborater.d.ts +0 -17
- package/dist/cjs/types/Interface/api/authentification/ReadAuthenticateCollaborater.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/authentification/ReadAuthenticateCollaborater.js +1 -4
- package/dist/cjs/types/Interface/api/authentification/ReadAuthenticateCollaborater.js.map +1 -1
- package/dist/cjs/types/Interface/api/documentRequest/Query.d.ts +0 -10
- package/dist/cjs/types/Interface/api/documentRequest/Query.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/documentRequest/Query.js +1 -43
- package/dist/cjs/types/Interface/api/documentRequest/Query.js.map +1 -1
- package/dist/cjs/types/Interface/api/oldExportInfo/OldExpertInfos.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/oldExportInfo/OldExpertInfos.js +0 -2
- package/dist/cjs/types/Interface/api/oldExportInfo/OldExpertInfos.js.map +1 -1
- package/dist/cjs/types/Interface/api/revenue/revenueMovement.d.ts +9 -10
- package/dist/cjs/types/Interface/api/revenue/revenueMovement.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/revenue/revenueMovement.js +15 -16
- package/dist/cjs/types/Interface/api/revenue/revenueMovement.js.map +1 -1
- package/dist/cjs/types/Interface/api/revenue/revenueSnapshotGenerate.d.ts +3 -0
- package/dist/cjs/types/Interface/api/revenue/revenueSnapshotGenerate.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/revenue/revenueSnapshotGenerate.js +14 -1
- package/dist/cjs/types/Interface/api/revenue/revenueSnapshotGenerate.js.map +1 -1
- package/dist/cjs/types/Interface/api/shine/GetConnect.d.ts +4 -0
- package/dist/cjs/types/Interface/api/shine/GetConnect.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/shine/{Query.js → GetConnect.js} +2 -9
- package/dist/cjs/types/Interface/api/shine/GetConnect.js.map +1 -0
- package/dist/cjs/types/Interface/models/ISocietyApproval.d.ts +0 -2
- package/dist/cjs/types/Interface/models/ISocietyApproval.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/ISocietyApproval.js.map +1 -1
- package/dist/cjs/types/Interface/models/IUser.d.ts +0 -2
- package/dist/cjs/types/Interface/models/IUser.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IUser.js.map +1 -1
- package/dist/cjs/types/index.d.ts +1 -9
- package/dist/cjs/types/index.d.ts.map +1 -1
- package/dist/cjs/types/index.js +1 -9
- package/dist/cjs/types/index.js.map +1 -1
- package/dist/cjs/utils/checkup.d.ts +368 -12
- package/dist/cjs/utils/checkup.d.ts.map +1 -1
- package/dist/cjs/utils/checkup.js +565 -342
- package/dist/cjs/utils/checkup.js.map +1 -1
- package/dist/cjs/utils/commercialManagement/internationalization/choices.d.ts.map +1 -1
- package/dist/cjs/utils/commercialManagement/internationalization/choices.js +19 -21
- package/dist/cjs/utils/commercialManagement/internationalization/choices.js.map +1 -1
- package/dist/cjs/utils/index.d.ts +0 -1
- package/dist/cjs/utils/index.d.ts.map +1 -1
- package/dist/cjs/utils/index.js +0 -1
- package/dist/cjs/utils/index.js.map +1 -1
- package/dist/cjs/utils/vat/centuries.js +2 -2
- package/dist/cjs/utils/vat/centuries.js.map +1 -1
- package/dist/cjs/utils/vat/utils.d.ts.map +1 -1
- package/dist/cjs/utils/vat/utils.js +2 -5
- package/dist/cjs/utils/vat/utils.js.map +1 -1
- package/dist/mjs/api/resources/Checklist.d.ts +0 -6
- package/dist/mjs/api/resources/Checklist.d.ts.map +1 -1
- package/dist/mjs/api/resources/Checklist.js +0 -6
- package/dist/mjs/api/resources/Checklist.js.map +1 -1
- package/dist/mjs/api/resources/DocumentRequest.d.ts +1 -3
- package/dist/mjs/api/resources/DocumentRequest.d.ts.map +1 -1
- package/dist/mjs/api/resources/DocumentRequest.js +0 -6
- package/dist/mjs/api/resources/DocumentRequest.js.map +1 -1
- package/dist/mjs/api/resources/InternalInvoicing.d.ts.map +1 -1
- package/dist/mjs/api/resources/InternalInvoicing.js +8 -0
- package/dist/mjs/api/resources/InternalInvoicing.js.map +1 -1
- package/dist/mjs/api/resources/Mfa.d.ts +0 -1
- package/dist/mjs/api/resources/Mfa.d.ts.map +1 -1
- package/dist/mjs/api/resources/Mfa.js +0 -4
- package/dist/mjs/api/resources/Mfa.js.map +1 -1
- package/dist/mjs/api/resources/Shine.d.ts +1 -2
- package/dist/mjs/api/resources/Shine.d.ts.map +1 -1
- package/dist/mjs/api/resources/Shine.js +0 -3
- package/dist/mjs/api/resources/Shine.js.map +1 -1
- package/dist/mjs/api/resources/Society.d.ts +1 -2
- package/dist/mjs/api/resources/Society.d.ts.map +1 -1
- package/dist/mjs/api/resources/Society.js +0 -3
- package/dist/mjs/api/resources/Society.js.map +1 -1
- package/dist/mjs/api/resources/User.d.ts +6 -1
- package/dist/mjs/api/resources/User.d.ts.map +1 -1
- package/dist/mjs/api/resources/User.js +15 -0
- package/dist/mjs/api/resources/User.js.map +1 -1
- package/dist/mjs/api/resources.d.ts +0 -4
- package/dist/mjs/api/resources.d.ts.map +1 -1
- package/dist/mjs/api/resources.js +0 -4
- package/dist/mjs/api/resources.js.map +1 -1
- package/dist/mjs/types/Enum/AdjustmentType.js +4 -4
- package/dist/mjs/types/Enum/AdjustmentType.js.map +1 -1
- package/dist/mjs/types/Enum/BalanceSheet.d.ts.map +1 -1
- package/dist/mjs/types/Enum/BalanceSheet.js +6 -6
- package/dist/mjs/types/Enum/BalanceSheet.js.map +1 -1
- package/dist/mjs/types/Enum/BrandPourcentage.js +8 -8
- package/dist/mjs/types/Enum/BrandPourcentage.js.map +1 -1
- package/dist/mjs/types/Enum/Card.d.ts +1 -7
- package/dist/mjs/types/Enum/Card.d.ts.map +1 -1
- package/dist/mjs/types/Enum/Card.js +1 -9
- package/dist/mjs/types/Enum/Card.js.map +1 -1
- package/dist/mjs/types/Enum/Consistency.d.ts +1 -1
- package/dist/mjs/types/Enum/Consistency.js +7 -7
- package/dist/mjs/types/Enum/Consistency.js.map +1 -1
- package/dist/mjs/types/Enum/DashboardBlock.d.ts +1 -2
- package/dist/mjs/types/Enum/DashboardBlock.d.ts.map +1 -1
- package/dist/mjs/types/Enum/DashboardBlock.js +0 -1
- package/dist/mjs/types/Enum/DashboardBlock.js.map +1 -1
- package/dist/mjs/types/Enum/EntityType.d.ts +2 -2
- package/dist/mjs/types/Enum/EntityType.js +2 -2
- package/dist/mjs/types/Enum/EntityType.js.map +1 -1
- package/dist/mjs/types/Enum/Ged.d.ts +3 -9
- package/dist/mjs/types/Enum/Ged.d.ts.map +1 -1
- package/dist/mjs/types/Enum/Ged.js +56 -163
- package/dist/mjs/types/Enum/Ged.js.map +1 -1
- package/dist/mjs/types/Enum/InformationRequestState.d.ts +1 -2
- package/dist/mjs/types/Enum/InformationRequestState.d.ts.map +1 -1
- package/dist/mjs/types/Enum/InformationRequestState.js +0 -1
- package/dist/mjs/types/Enum/InformationRequestState.js.map +1 -1
- package/dist/mjs/types/Enum/InformationRequestType.d.ts.map +1 -1
- package/dist/mjs/types/Enum/InformationRequestType.js +6 -12
- package/dist/mjs/types/Enum/InformationRequestType.js.map +1 -1
- package/dist/mjs/types/Enum/KilometricAllowanceScale.d.ts.map +1 -1
- package/dist/mjs/types/Enum/KilometricAllowanceScale.js +0 -119
- package/dist/mjs/types/Enum/KilometricAllowanceScale.js.map +1 -1
- package/dist/mjs/types/Enum/MailAuto.d.ts +1 -5
- package/dist/mjs/types/Enum/MailAuto.d.ts.map +1 -1
- package/dist/mjs/types/Enum/MailAuto.js +0 -4
- package/dist/mjs/types/Enum/MailAuto.js.map +1 -1
- package/dist/mjs/types/Enum/PriceGridClementine.d.ts.map +1 -1
- package/dist/mjs/types/Enum/PriceGridClementine.js +474 -486
- package/dist/mjs/types/Enum/PriceGridClementine.js.map +1 -1
- package/dist/mjs/types/Enum/Proceding.d.ts +0 -4
- package/dist/mjs/types/Enum/Proceding.d.ts.map +1 -1
- package/dist/mjs/types/Enum/Proceding.js +0 -4
- package/dist/mjs/types/Enum/Proceding.js.map +1 -1
- package/dist/mjs/types/Enum/StatutsSection.d.ts +1 -7
- package/dist/mjs/types/Enum/StatutsSection.d.ts.map +1 -1
- package/dist/mjs/types/Enum/StatutsSection.js +7 -15
- package/dist/mjs/types/Enum/StatutsSection.js.map +1 -1
- package/dist/mjs/types/Enum/Unit.d.ts +1 -2
- package/dist/mjs/types/Enum/Unit.d.ts.map +1 -1
- package/dist/mjs/types/Enum/Unit.js +0 -11
- package/dist/mjs/types/Enum/Unit.js.map +1 -1
- package/dist/mjs/types/Interface/api/authentification/AuthenticationResponse.d.ts +0 -10
- package/dist/mjs/types/Interface/api/authentification/AuthenticationResponse.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/authentification/AuthenticationResponse.js.map +1 -1
- package/dist/mjs/types/Interface/api/authentification/ReadAuthenticateCollaborater.d.ts +0 -17
- package/dist/mjs/types/Interface/api/authentification/ReadAuthenticateCollaborater.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/authentification/ReadAuthenticateCollaborater.js +0 -7
- package/dist/mjs/types/Interface/api/authentification/ReadAuthenticateCollaborater.js.map +1 -1
- package/dist/mjs/types/Interface/api/documentRequest/Query.d.ts +0 -10
- package/dist/mjs/types/Interface/api/documentRequest/Query.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/documentRequest/Query.js +2 -48
- package/dist/mjs/types/Interface/api/documentRequest/Query.js.map +1 -1
- package/dist/mjs/types/Interface/api/oldExportInfo/OldExpertInfos.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/oldExportInfo/OldExpertInfos.js +0 -2
- package/dist/mjs/types/Interface/api/oldExportInfo/OldExpertInfos.js.map +1 -1
- package/dist/mjs/types/Interface/api/revenue/revenueMovement.d.ts +9 -10
- package/dist/mjs/types/Interface/api/revenue/revenueMovement.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/revenue/revenueMovement.js +12 -13
- package/dist/mjs/types/Interface/api/revenue/revenueMovement.js.map +1 -1
- package/dist/mjs/types/Interface/api/revenue/revenueSnapshotGenerate.d.ts +3 -0
- package/dist/mjs/types/Interface/api/revenue/revenueSnapshotGenerate.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/revenue/revenueSnapshotGenerate.js +22 -2
- package/dist/mjs/types/Interface/api/revenue/revenueSnapshotGenerate.js.map +1 -1
- package/dist/mjs/types/Interface/api/shine/GetConnect.d.ts +4 -0
- package/dist/mjs/types/Interface/api/shine/GetConnect.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/shine/{Query.js → GetConnect.js} +1 -8
- package/dist/mjs/types/Interface/api/shine/GetConnect.js.map +1 -0
- package/dist/mjs/types/Interface/models/ISocietyApproval.d.ts +0 -2
- package/dist/mjs/types/Interface/models/ISocietyApproval.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/ISocietyApproval.js.map +1 -1
- package/dist/mjs/types/Interface/models/IUser.d.ts +0 -2
- package/dist/mjs/types/Interface/models/IUser.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IUser.js.map +1 -1
- package/dist/mjs/types/index.d.ts +1 -9
- package/dist/mjs/types/index.d.ts.map +1 -1
- package/dist/mjs/types/index.js +1 -9
- package/dist/mjs/types/index.js.map +1 -1
- package/dist/mjs/utils/checkup.d.ts +368 -12
- package/dist/mjs/utils/checkup.d.ts.map +1 -1
- package/dist/mjs/utils/checkup.js +566 -343
- package/dist/mjs/utils/checkup.js.map +1 -1
- package/dist/mjs/utils/commercialManagement/internationalization/choices.d.ts.map +1 -1
- package/dist/mjs/utils/commercialManagement/internationalization/choices.js +19 -21
- package/dist/mjs/utils/commercialManagement/internationalization/choices.js.map +1 -1
- package/dist/mjs/utils/index.d.ts +0 -1
- package/dist/mjs/utils/index.d.ts.map +1 -1
- package/dist/mjs/utils/index.js +0 -1
- package/dist/mjs/utils/index.js.map +1 -1
- package/dist/mjs/utils/vat/centuries.js +2 -2
- package/dist/mjs/utils/vat/centuries.js.map +1 -1
- package/dist/mjs/utils/vat/utils.d.ts.map +1 -1
- package/dist/mjs/utils/vat/utils.js +2 -5
- package/dist/mjs/utils/vat/utils.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/Checklist.ts +0 -6
- package/ts/api/resources/DocumentRequest.ts +1 -9
- package/ts/api/resources/InternalInvoicing.ts +8 -0
- package/ts/api/resources/Mfa.ts +0 -6
- package/ts/api/resources/Shine.ts +1 -11
- package/ts/api/resources/Society.ts +0 -5
- package/ts/api/resources/User.ts +23 -0
- package/ts/api/resources.ts +0 -4
- package/ts/types/Enum/AdjustmentType.ts +4 -4
- package/ts/types/Enum/BalanceSheet.ts +17 -17
- package/ts/types/Enum/BrandPourcentage.ts +8 -8
- package/ts/types/Enum/Card.ts +1 -9
- package/ts/types/Enum/Consistency.ts +7 -7
- package/ts/types/Enum/DashboardBlock.ts +0 -1
- package/ts/types/Enum/EntityType.ts +2 -2
- package/ts/types/Enum/Ged.ts +268 -386
- package/ts/types/Enum/InformationRequestState.ts +0 -1
- package/ts/types/Enum/InformationRequestType.ts +6 -12
- package/ts/types/Enum/KilometricAllowanceScale.ts +0 -119
- package/ts/types/Enum/MailAuto.ts +0 -4
- package/ts/types/Enum/PriceGridClementine.ts +474 -487
- package/ts/types/Enum/Proceding.ts +0 -4
- package/ts/types/Enum/StatutsSection.ts +7 -15
- package/ts/types/Enum/Unit.ts +0 -11
- package/ts/types/Interface/api/authentification/AuthenticationResponse.ts +0 -10
- package/ts/types/Interface/api/authentification/ReadAuthenticateCollaborater.ts +0 -18
- package/ts/types/Interface/api/documentRequest/Query.ts +2 -40
- package/ts/types/Interface/api/oldExportInfo/OldExpertInfos.ts +0 -2
- package/ts/types/Interface/api/revenue/revenueMovement.ts +9 -11
- package/ts/types/Interface/api/revenue/revenueSnapshotGenerate.ts +21 -2
- package/ts/types/Interface/api/shine/{Query.ts → GetConnect.ts} +0 -5
- package/ts/types/Interface/models/ISocietyApproval.ts +0 -2
- package/ts/types/Interface/models/IUser.ts +0 -2
- package/ts/types/index.ts +1 -9
- package/ts/utils/checkup.ts +566 -347
- package/ts/utils/commercialManagement/internationalization/choices.ts +19 -21
- package/ts/utils/index.ts +0 -1
- package/ts/utils/vat/centuries.ts +2 -2
- package/ts/utils/vat/utils.ts +2 -7
- package/dist/cjs/api/resources/LoginApproval.d.ts +0 -18
- package/dist/cjs/api/resources/LoginApproval.d.ts.map +0 -1
- package/dist/cjs/api/resources/LoginApproval.js +0 -20
- package/dist/cjs/api/resources/LoginApproval.js.map +0 -1
- package/dist/cjs/api/resources/SocietyApproval.d.ts +0 -47
- package/dist/cjs/api/resources/SocietyApproval.d.ts.map +0 -1
- package/dist/cjs/api/resources/SocietyApproval.js +0 -62
- package/dist/cjs/api/resources/SocietyApproval.js.map +0 -1
- package/dist/cjs/types/Enum/LoginApprovalStatus.d.ts +0 -14
- package/dist/cjs/types/Enum/LoginApprovalStatus.d.ts.map +0 -1
- package/dist/cjs/types/Enum/LoginApprovalStatus.js +0 -18
- package/dist/cjs/types/Enum/LoginApprovalStatus.js.map +0 -1
- package/dist/cjs/types/Enum/MfaMode.d.ts +0 -12
- package/dist/cjs/types/Enum/MfaMode.d.ts.map +0 -1
- package/dist/cjs/types/Enum/MfaMode.js +0 -16
- package/dist/cjs/types/Enum/MfaMode.js.map +0 -1
- package/dist/cjs/types/Enum/SocietyApproval.d.ts +0 -27
- package/dist/cjs/types/Enum/SocietyApproval.d.ts.map +0 -1
- package/dist/cjs/types/Enum/SocietyApproval.js +0 -205
- package/dist/cjs/types/Enum/SocietyApproval.js.map +0 -1
- package/dist/cjs/types/Interface/api/SocietyApproval.d.ts +0 -36
- package/dist/cjs/types/Interface/api/SocietyApproval.d.ts.map +0 -1
- package/dist/cjs/types/Interface/api/SocietyApproval.js +0 -153
- package/dist/cjs/types/Interface/api/SocietyApproval.js.map +0 -1
- package/dist/cjs/types/Interface/api/authentification/FinalizeMobileApprovalDto.d.ts +0 -4
- package/dist/cjs/types/Interface/api/authentification/FinalizeMobileApprovalDto.d.ts.map +0 -1
- package/dist/cjs/types/Interface/api/authentification/FinalizeMobileApprovalDto.js +0 -21
- package/dist/cjs/types/Interface/api/authentification/FinalizeMobileApprovalDto.js.map +0 -1
- package/dist/cjs/types/Interface/api/authentification/SetMobileApprovalDto.d.ts +0 -5
- package/dist/cjs/types/Interface/api/authentification/SetMobileApprovalDto.d.ts.map +0 -1
- package/dist/cjs/types/Interface/api/authentification/SetMobileApprovalDto.js +0 -27
- package/dist/cjs/types/Interface/api/authentification/SetMobileApprovalDto.js.map +0 -1
- package/dist/cjs/types/Interface/api/authentification/loginApproval.d.ts +0 -66
- package/dist/cjs/types/Interface/api/authentification/loginApproval.d.ts.map +0 -1
- package/dist/cjs/types/Interface/api/authentification/loginApproval.js +0 -26
- package/dist/cjs/types/Interface/api/authentification/loginApproval.js.map +0 -1
- package/dist/cjs/types/Interface/api/shine/Query.d.ts +0 -7
- package/dist/cjs/types/Interface/api/shine/Query.d.ts.map +0 -1
- package/dist/cjs/types/Interface/api/shine/Query.js.map +0 -1
- package/dist/cjs/types/Interface/models/ILoginApproval.d.ts +0 -31
- package/dist/cjs/types/Interface/models/ILoginApproval.d.ts.map +0 -1
- package/dist/cjs/types/Interface/models/ILoginApproval.js +0 -3
- package/dist/cjs/types/Interface/models/ILoginApproval.js.map +0 -1
- package/dist/cjs/utils/societyApproval.d.ts +0 -38
- package/dist/cjs/utils/societyApproval.d.ts.map +0 -1
- package/dist/cjs/utils/societyApproval.js +0 -101
- package/dist/cjs/utils/societyApproval.js.map +0 -1
- package/dist/mjs/api/resources/LoginApproval.d.ts +0 -18
- package/dist/mjs/api/resources/LoginApproval.d.ts.map +0 -1
- package/dist/mjs/api/resources/LoginApproval.js +0 -16
- package/dist/mjs/api/resources/LoginApproval.js.map +0 -1
- package/dist/mjs/api/resources/SocietyApproval.d.ts +0 -47
- package/dist/mjs/api/resources/SocietyApproval.d.ts.map +0 -1
- package/dist/mjs/api/resources/SocietyApproval.js +0 -58
- package/dist/mjs/api/resources/SocietyApproval.js.map +0 -1
- package/dist/mjs/types/Enum/LoginApprovalStatus.d.ts +0 -14
- package/dist/mjs/types/Enum/LoginApprovalStatus.d.ts.map +0 -1
- package/dist/mjs/types/Enum/LoginApprovalStatus.js +0 -15
- package/dist/mjs/types/Enum/LoginApprovalStatus.js.map +0 -1
- package/dist/mjs/types/Enum/MfaMode.d.ts +0 -12
- package/dist/mjs/types/Enum/MfaMode.d.ts.map +0 -1
- package/dist/mjs/types/Enum/MfaMode.js +0 -13
- package/dist/mjs/types/Enum/MfaMode.js.map +0 -1
- package/dist/mjs/types/Enum/SocietyApproval.d.ts +0 -27
- package/dist/mjs/types/Enum/SocietyApproval.d.ts.map +0 -1
- package/dist/mjs/types/Enum/SocietyApproval.js +0 -202
- package/dist/mjs/types/Enum/SocietyApproval.js.map +0 -1
- package/dist/mjs/types/Interface/api/SocietyApproval.d.ts +0 -36
- package/dist/mjs/types/Interface/api/SocietyApproval.d.ts.map +0 -1
- package/dist/mjs/types/Interface/api/SocietyApproval.js +0 -167
- package/dist/mjs/types/Interface/api/SocietyApproval.js.map +0 -1
- package/dist/mjs/types/Interface/api/authentification/FinalizeMobileApprovalDto.d.ts +0 -4
- package/dist/mjs/types/Interface/api/authentification/FinalizeMobileApprovalDto.d.ts.map +0 -1
- package/dist/mjs/types/Interface/api/authentification/FinalizeMobileApprovalDto.js +0 -18
- package/dist/mjs/types/Interface/api/authentification/FinalizeMobileApprovalDto.js.map +0 -1
- package/dist/mjs/types/Interface/api/authentification/SetMobileApprovalDto.d.ts +0 -5
- package/dist/mjs/types/Interface/api/authentification/SetMobileApprovalDto.d.ts.map +0 -1
- package/dist/mjs/types/Interface/api/authentification/SetMobileApprovalDto.js +0 -25
- package/dist/mjs/types/Interface/api/authentification/SetMobileApprovalDto.js.map +0 -1
- package/dist/mjs/types/Interface/api/authentification/loginApproval.d.ts +0 -66
- package/dist/mjs/types/Interface/api/authentification/loginApproval.d.ts.map +0 -1
- package/dist/mjs/types/Interface/api/authentification/loginApproval.js +0 -23
- package/dist/mjs/types/Interface/api/authentification/loginApproval.js.map +0 -1
- package/dist/mjs/types/Interface/api/shine/Query.d.ts +0 -7
- package/dist/mjs/types/Interface/api/shine/Query.d.ts.map +0 -1
- package/dist/mjs/types/Interface/api/shine/Query.js.map +0 -1
- package/dist/mjs/types/Interface/models/ILoginApproval.d.ts +0 -31
- package/dist/mjs/types/Interface/models/ILoginApproval.d.ts.map +0 -1
- package/dist/mjs/types/Interface/models/ILoginApproval.js +0 -2
- package/dist/mjs/types/Interface/models/ILoginApproval.js.map +0 -1
- package/dist/mjs/utils/societyApproval.d.ts +0 -38
- package/dist/mjs/utils/societyApproval.d.ts.map +0 -1
- package/dist/mjs/utils/societyApproval.js +0 -109
- package/dist/mjs/utils/societyApproval.js.map +0 -1
- package/ts/api/resources/LoginApproval.ts +0 -20
- package/ts/api/resources/SocietyApproval.ts +0 -75
- package/ts/types/Enum/LoginApprovalStatus.ts +0 -13
- package/ts/types/Enum/MfaMode.ts +0 -11
- package/ts/types/Enum/SocietyApproval.ts +0 -218
- package/ts/types/Interface/api/SocietyApproval.ts +0 -121
- package/ts/types/Interface/api/authentification/FinalizeMobileApprovalDto.ts +0 -6
- package/ts/types/Interface/api/authentification/SetMobileApprovalDto.ts +0 -11
- package/ts/types/Interface/api/authentification/loginApproval.ts +0 -75
- package/ts/types/Interface/models/ILoginApproval.ts +0 -31
- package/ts/utils/societyApproval.ts +0 -129
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
import { IsDate, IsEnum, IsInt, IsOptional, IsString } from 'class-validator';
|
|
2
|
-
import { ApiProperty, ApiPropertyOptional } from '../../../utils';
|
|
3
|
-
import { SocietyApprovalDocumentType } from '../../Enum/SocietyApproval';
|
|
4
|
-
import { ISocietyApproval } from '../models/ISocietyApproval';
|
|
5
|
-
import { ToBoolean } from '../../../utils/transforms/boolean.transform';
|
|
6
|
-
|
|
7
|
-
export class SocietyApprovalJsonDatas {
|
|
8
|
-
@ApiPropertyOptional()
|
|
9
|
-
@IsOptional()
|
|
10
|
-
@IsDate()
|
|
11
|
-
approvalDate?: Date;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export class CreateDocument {
|
|
15
|
-
@ApiProperty()
|
|
16
|
-
@IsEnum(SocietyApprovalDocumentType, { each: true })
|
|
17
|
-
listIdDocumentType: SocietyApprovalDocumentType[];
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export class ResetDocument {
|
|
21
|
-
@ApiProperty()
|
|
22
|
-
@IsEnum(SocietyApprovalDocumentType)
|
|
23
|
-
idDocumentType: SocietyApprovalDocumentType;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export interface IApprovalGeneratingData {
|
|
27
|
-
approval: ISocietyApproval;
|
|
28
|
-
templateData: Record<string, any>;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export class UpdateOrCreateRequest implements Omit<ISocietyApproval, 'id'> {
|
|
32
|
-
@ApiPropertyOptional()
|
|
33
|
-
@IsOptional()
|
|
34
|
-
@IsInt()
|
|
35
|
-
idExercice: number | null;
|
|
36
|
-
|
|
37
|
-
@ApiPropertyOptional()
|
|
38
|
-
@IsOptional()
|
|
39
|
-
@IsInt()
|
|
40
|
-
idFile: number | null;
|
|
41
|
-
|
|
42
|
-
@ApiPropertyOptional()
|
|
43
|
-
@IsOptional()
|
|
44
|
-
@IsInt()
|
|
45
|
-
idAccountant: number | null;
|
|
46
|
-
|
|
47
|
-
@ApiPropertyOptional()
|
|
48
|
-
@IsOptional()
|
|
49
|
-
@IsInt()
|
|
50
|
-
idPaymentWaiting: number | null;
|
|
51
|
-
|
|
52
|
-
@ApiPropertyOptional()
|
|
53
|
-
@IsOptional()
|
|
54
|
-
@IsString()
|
|
55
|
-
amountDividend: string | null;
|
|
56
|
-
|
|
57
|
-
@ApiPropertyOptional()
|
|
58
|
-
@IsOptional()
|
|
59
|
-
@IsDate()
|
|
60
|
-
dueDate: Date | null;
|
|
61
|
-
|
|
62
|
-
@ApiPropertyOptional()
|
|
63
|
-
@IsOptional()
|
|
64
|
-
@ToBoolean()
|
|
65
|
-
done: boolean;
|
|
66
|
-
|
|
67
|
-
@ApiPropertyOptional()
|
|
68
|
-
@IsOptional()
|
|
69
|
-
@IsInt()
|
|
70
|
-
possibleDividend: number;
|
|
71
|
-
|
|
72
|
-
@ApiPropertyOptional()
|
|
73
|
-
@IsOptional()
|
|
74
|
-
@IsString()
|
|
75
|
-
amountChief: string | null;
|
|
76
|
-
|
|
77
|
-
@ApiPropertyOptional()
|
|
78
|
-
@IsOptional()
|
|
79
|
-
@IsString()
|
|
80
|
-
amountCotisations: string | null;
|
|
81
|
-
|
|
82
|
-
@ApiPropertyOptional()
|
|
83
|
-
@IsOptional()
|
|
84
|
-
@IsString()
|
|
85
|
-
amountAvantage: string | null;
|
|
86
|
-
|
|
87
|
-
@ApiPropertyOptional()
|
|
88
|
-
@IsOptional()
|
|
89
|
-
@IsString()
|
|
90
|
-
amountByPartner: string | null;
|
|
91
|
-
|
|
92
|
-
@ApiPropertyOptional()
|
|
93
|
-
@IsOptional()
|
|
94
|
-
@IsString()
|
|
95
|
-
amountInteret: string | null;
|
|
96
|
-
|
|
97
|
-
@ApiPropertyOptional()
|
|
98
|
-
@IsOptional()
|
|
99
|
-
@IsString()
|
|
100
|
-
amountBail: string | null;
|
|
101
|
-
|
|
102
|
-
@ApiPropertyOptional()
|
|
103
|
-
@IsOptional()
|
|
104
|
-
@IsString()
|
|
105
|
-
amountAbandon: string | null;
|
|
106
|
-
|
|
107
|
-
@ApiPropertyOptional()
|
|
108
|
-
@IsOptional()
|
|
109
|
-
@IsDate()
|
|
110
|
-
docsCompletedDate: Date | null;
|
|
111
|
-
|
|
112
|
-
@ApiPropertyOptional()
|
|
113
|
-
@IsOptional()
|
|
114
|
-
@IsDate()
|
|
115
|
-
registryDepositDate: Date | null;
|
|
116
|
-
|
|
117
|
-
@ApiPropertyOptional()
|
|
118
|
-
@IsOptional()
|
|
119
|
-
@IsDate()
|
|
120
|
-
endLegalServiceDate: Date | null;
|
|
121
|
-
}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { LoginApprovalStatus } from '../../../Enum/LoginApprovalStatus';
|
|
2
|
-
import { IsString } from 'class-validator';
|
|
3
|
-
import { ApiProperty } from '../../../../';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Payload de l'événement socket envoyé au mobile lors d'une demande de connexion
|
|
7
|
-
*/
|
|
8
|
-
export interface ILoginApprovalRequestEvent {
|
|
9
|
-
/** ID unique de la demande */
|
|
10
|
-
requestId: string;
|
|
11
|
-
/** Date d'expiration */
|
|
12
|
-
expiresAt: Date;
|
|
13
|
-
/** ID de l'utilisateur */
|
|
14
|
-
userId: number;
|
|
15
|
-
/** Métadonnées (IP, navigateur, localisation) */
|
|
16
|
-
metadata?: {
|
|
17
|
-
ip?: string;
|
|
18
|
-
userAgent?: string;
|
|
19
|
-
location?: string;
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export interface IApproveOrDenyResponse {
|
|
24
|
-
message: string;
|
|
25
|
-
status: LoginApprovalStatus;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Payload de l'événement socket envoyé au Web lors d'un changement de statut
|
|
30
|
-
*/
|
|
31
|
-
export interface ILoginApprovalStatusEvent {
|
|
32
|
-
/** ID de la demande */
|
|
33
|
-
requestId: string;
|
|
34
|
-
/** Nouveau statut */
|
|
35
|
-
status: LoginApprovalStatus;
|
|
36
|
-
/** Date de la transition */
|
|
37
|
-
timestamp: Date;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* Réponse renvoyée au Web lorsque mobile MFA est requis
|
|
42
|
-
*/
|
|
43
|
-
export interface ILoginApprovalResponse {
|
|
44
|
-
/** Indique qu'une validation mobile est nécessaire */
|
|
45
|
-
requiresMobileApproval: true;
|
|
46
|
-
/** ID de la demande pour polling/tracking */
|
|
47
|
-
requestId: string;
|
|
48
|
-
/** Date d'expiration de la demande */
|
|
49
|
-
expiresAt: Date;
|
|
50
|
-
/** ID utilisateur */
|
|
51
|
-
userId: number;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* Réponse du statut d'une demande d'approbation
|
|
56
|
-
*/
|
|
57
|
-
export interface ILoginApprovalStatusResponse {
|
|
58
|
-
/** ID de la demande */
|
|
59
|
-
requestId: string;
|
|
60
|
-
/** Statut actuel */
|
|
61
|
-
status: LoginApprovalStatus;
|
|
62
|
-
/** Date d'expiration */
|
|
63
|
-
expiresAt: Date;
|
|
64
|
-
/** Token JWT si status = approved */
|
|
65
|
-
token?: string;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* DTO pour approuver/refuser une demande depuis le mobile
|
|
70
|
-
*/
|
|
71
|
-
export class IApproveOrDenyRequest {
|
|
72
|
-
@ApiProperty()
|
|
73
|
-
@IsString()
|
|
74
|
-
deviceId: string;
|
|
75
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { LoginApprovalStatus } from '../../Enum/LoginApprovalStatus';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Interface représentant une demande d'approbation de connexion mobile
|
|
5
|
-
*/
|
|
6
|
-
export interface ILoginApproval {
|
|
7
|
-
/** Identifiant unique (UUID) */
|
|
8
|
-
id: string;
|
|
9
|
-
/** ID de l'utilisateur demandant la connexion */
|
|
10
|
-
idUser: number;
|
|
11
|
-
/** Statut actuel de la demande */
|
|
12
|
-
status: LoginApprovalStatus;
|
|
13
|
-
/** Date d'expiration de la demande (généralement 2-3 min après création) */
|
|
14
|
-
expiresAt: Date;
|
|
15
|
-
/** Date d'approbation (si status = approved) */
|
|
16
|
-
approvedAt?: Date;
|
|
17
|
-
/** Date de refus (si status = denied) */
|
|
18
|
-
deniedAt?: Date;
|
|
19
|
-
/** Device ID du mobile ayant approuvé/refusé */
|
|
20
|
-
deviceIdUsed?: string;
|
|
21
|
-
/** IP de la connexion Web à l'origine de la demande */
|
|
22
|
-
ip?: string;
|
|
23
|
-
/** User-Agent du navigateur Web */
|
|
24
|
-
userAgent?: string;
|
|
25
|
-
/** Métadonnées additionnelles (géoloc, risk score, etc.) */
|
|
26
|
-
metadata?: Record<string, any>;
|
|
27
|
-
/** Date de création */
|
|
28
|
-
createdAt: Date;
|
|
29
|
-
/** Date de mise à jour */
|
|
30
|
-
updatedAt: Date;
|
|
31
|
-
}
|
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
import { LegalForm, LegalFormTypeEnum } from '../types/Enum/LegalForm';
|
|
2
|
-
import {
|
|
3
|
-
SocietyApprovalDocumentType,
|
|
4
|
-
SocietyApprovalDocumentConfig,
|
|
5
|
-
SocietyApprovalDocumentsByLegalForm,
|
|
6
|
-
SocietyApprovalDocumentTemplate,
|
|
7
|
-
} from '../types/Enum/SocietyApproval';
|
|
8
|
-
import { ISocietyApproval } from '../types/Interface/models/ISocietyApproval';
|
|
9
|
-
import { QualityList } from '../types/Enum/Quality';
|
|
10
|
-
import { getBrand } from './brands';
|
|
11
|
-
import { convertNumberToLetter } from './amount';
|
|
12
|
-
import * as dayjs from 'dayjs';
|
|
13
|
-
import { CityOfGreffeDetail } from '../types/Enum/CityOfGreffe';
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Récupère le nom de la forme juridique
|
|
17
|
-
* @param idLegalForm - L'identifiant de la forme juridique
|
|
18
|
-
* @param fallback - Valeur par défaut si non trouvée
|
|
19
|
-
* @returns Le nom de la forme juridique
|
|
20
|
-
*/
|
|
21
|
-
export function getLegalFormName(idLegalForm: LegalFormTypeEnum, fallback: string = ''): string {
|
|
22
|
-
return Object.values(LegalForm).find((lf) => lf.id === idLegalForm)?.name ?? fallback;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* Récupère la configuration des documents d'approbation pour une forme juridique donnée
|
|
27
|
-
* @param idLegalForm - L'identifiant de la forme juridique
|
|
28
|
-
* @returns La configuration des documents ou undefined si non trouvée
|
|
29
|
-
*/
|
|
30
|
-
export function getApprovalDocumentsByLegalForm(
|
|
31
|
-
idLegalForm: LegalFormTypeEnum,
|
|
32
|
-
): SocietyApprovalDocumentConfig | undefined {
|
|
33
|
-
return SocietyApprovalDocumentsByLegalForm.find((config) => config.idLegalForm === idLegalForm);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Récupère le nom du template pour un document spécifique et une forme juridique
|
|
38
|
-
* @param idLegalForm - L'identifiant de la forme juridique
|
|
39
|
-
* @param idDocumentType - Le type de document d'approbation
|
|
40
|
-
* @returns Le nom du template ou undefined si non trouvé
|
|
41
|
-
*/
|
|
42
|
-
//@deprecated use getApprovalDocumentInfos instead
|
|
43
|
-
export function getApprovalDocumentTemplateName(
|
|
44
|
-
idLegalForm: LegalFormTypeEnum,
|
|
45
|
-
idDocumentType: SocietyApprovalDocumentType,
|
|
46
|
-
): string | undefined {
|
|
47
|
-
const config = getApprovalDocumentsByLegalForm(idLegalForm);
|
|
48
|
-
const document = config?.documents.find((doc) => doc.idDocumentType === idDocumentType);
|
|
49
|
-
return document?.templateName;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* Récupère le texte de la ville du greffe
|
|
54
|
-
* @param idCityOfGreffe - L'identifiant de la ville du greffe
|
|
55
|
-
* @returns Le texte de la ville ou une chaîne vide
|
|
56
|
-
*/
|
|
57
|
-
function getCityOfGreffeName(idCityOfGreffe: number | null | undefined): string {
|
|
58
|
-
if (!idCityOfGreffe) return '';
|
|
59
|
-
return CityOfGreffeDetail.find((c) => c.id === idCityOfGreffe)?.text ?? '';
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* Récupère le nom du template pour un document spécifique et une forme juridique
|
|
64
|
-
* @param idLegalForm - L'identifiant de la forme juridique
|
|
65
|
-
* @param idDocumentType - Le type de document d'approbation
|
|
66
|
-
* @returns Le nom du template ou undefined si non trouvé
|
|
67
|
-
*/
|
|
68
|
-
export function getApprovalDocumentInfos(
|
|
69
|
-
idLegalForm: LegalFormTypeEnum,
|
|
70
|
-
idDocumentType: SocietyApprovalDocumentType,
|
|
71
|
-
): SocietyApprovalDocumentTemplate | undefined {
|
|
72
|
-
const config = getApprovalDocumentsByLegalForm(idLegalForm);
|
|
73
|
-
return config?.documents.find((doc) => doc.idDocumentType === idDocumentType);
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
* Construit les données formatées pour le template d'approbation
|
|
78
|
-
* @param existingApproval - Les données d'approbation de la société
|
|
79
|
-
* @param style - Le style HTML pour le document
|
|
80
|
-
* @returns L'objet de données formaté pour le template
|
|
81
|
-
*/
|
|
82
|
-
export function buildApprovalTemplateData(existingApproval: ISocietyApproval, style: string): Record<string, any> {
|
|
83
|
-
const yearInText = convertNumberToLetter(+dayjs().format('YYYY')).toLowerCase();
|
|
84
|
-
const dayAndMonthInText = `${convertNumberToLetter(+dayjs().format('D'))} ${dayjs().locale('fr').format('MMMM').toLowerCase()}`;
|
|
85
|
-
const brand = getBrand();
|
|
86
|
-
return {
|
|
87
|
-
// Variables globales
|
|
88
|
-
style,
|
|
89
|
-
yearInText,
|
|
90
|
-
dayAndMonthInText,
|
|
91
|
-
date: dayjs().locale('fr').format('DD MMMM YYYY'),
|
|
92
|
-
companyInformation: {
|
|
93
|
-
rcs: brand?.companyInformation?.rcs,
|
|
94
|
-
nomRaisonSociale: brand?.companyInformation?.nomRaisonSociale,
|
|
95
|
-
city: brand?.companyInformation?.city,
|
|
96
|
-
postalAddress: brand?.companyInformation?.postalAddress,
|
|
97
|
-
montantCapital: brand?.companyInformation?.montantCapital,
|
|
98
|
-
statut: brand?.companyInformation?.statut,
|
|
99
|
-
ECOrderCity: brand?.companyInformation?.ECOrderCity,
|
|
100
|
-
},
|
|
101
|
-
owner: {
|
|
102
|
-
identity: `${existingApproval?.exercice?.society?.users?.[0]?.idCivility === 1 ? 'Monsieur' : 'Madame'} ${existingApproval?.exercice?.society?.users?.[0]?.firstname} ${existingApproval?.exercice?.society?.users?.[0]?.lastname} `,
|
|
103
|
-
quality: QualityList.find(
|
|
104
|
-
(ql) => ql.id === existingApproval?.exercice?.society?.users?.[0]?.businessPartners?.[0]?.idQuality,
|
|
105
|
-
)?.label,
|
|
106
|
-
},
|
|
107
|
-
// Variables stockées en base
|
|
108
|
-
...existingApproval,
|
|
109
|
-
generatingDatas: {
|
|
110
|
-
...existingApproval?.generatingDatas,
|
|
111
|
-
...(existingApproval?.generatingDatas?.approvalDate
|
|
112
|
-
? {
|
|
113
|
-
approvalDate: dayjs(existingApproval?.generatingDatas?.approvalDate)
|
|
114
|
-
.locale('fr')
|
|
115
|
-
.format('DD MMMM YYYY')
|
|
116
|
-
.toUpperCase(),
|
|
117
|
-
}
|
|
118
|
-
: {}),
|
|
119
|
-
},
|
|
120
|
-
exercice: {
|
|
121
|
-
...existingApproval?.exercice,
|
|
122
|
-
society: {
|
|
123
|
-
...existingApproval?.exercice?.society,
|
|
124
|
-
cityOfGreffe: getCityOfGreffeName(existingApproval?.exercice?.society?.idCityOfGreffe).toUpperCase(),
|
|
125
|
-
},
|
|
126
|
-
endDate: dayjs(existingApproval?.exercice?.endDate).locale('fr').format('DD MMMM YYYY').toLowerCase(),
|
|
127
|
-
},
|
|
128
|
-
};
|
|
129
|
-
}
|