@silexpert/core 1.3.205-1 → 1.3.205-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/Transaction.d.ts +1 -0
- package/dist/cjs/api/resources/Transaction.d.ts.map +1 -1
- package/dist/cjs/api/resources/Transaction.js +3 -0
- package/dist/cjs/api/resources/Transaction.js.map +1 -1
- package/dist/cjs/api/resources/User.d.ts +8 -1
- package/dist/cjs/api/resources/User.d.ts.map +1 -1
- package/dist/cjs/api/resources/User.js +58 -0
- package/dist/cjs/api/resources/User.js.map +1 -1
- package/dist/cjs/api/resources/WorkingSchedule.d.ts +2 -1
- package/dist/cjs/api/resources/WorkingSchedule.d.ts.map +1 -1
- package/dist/cjs/api/resources/WorkingSchedule.js +3 -0
- package/dist/cjs/api/resources/WorkingSchedule.js.map +1 -1
- package/dist/cjs/types/Enum/BalanceSheet.js +2 -2
- package/dist/cjs/types/Enum/BalanceSheet.js.map +1 -1
- package/dist/cjs/types/Enum/EquipmentType.d.ts +15 -0
- package/dist/cjs/types/Enum/EquipmentType.d.ts.map +1 -1
- package/dist/cjs/types/Enum/EquipmentType.js +15 -0
- package/dist/cjs/types/Enum/EquipmentType.js.map +1 -1
- package/dist/cjs/types/Enum/PrestationType.d.ts +11 -0
- package/dist/cjs/types/Enum/PrestationType.d.ts.map +1 -1
- package/dist/cjs/types/Enum/PrestationType.js +84 -68
- package/dist/cjs/types/Enum/PrestationType.js.map +1 -1
- package/dist/cjs/types/Enum/SocietyApproval.js +6 -6
- package/dist/cjs/types/Enum/SocietyApproval.js.map +1 -1
- package/dist/cjs/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.d.ts +13 -0
- package/dist/cjs/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.js +14 -1
- package/dist/cjs/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.js.map +1 -1
- package/dist/cjs/types/Interface/api/user/CreateCoworker.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/user/CreateCoworker.js +11 -0
- package/dist/cjs/types/Interface/api/user/CreateCoworker.js.map +1 -1
- package/dist/cjs/types/Interface/models/IUser.d.ts +1 -0
- 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/utils/societyApproval.d.ts.map +1 -1
- package/dist/cjs/utils/societyApproval.js +22 -19
- package/dist/cjs/utils/societyApproval.js.map +1 -1
- package/dist/cjs/utils/transforms/number.transform.d.ts +3 -0
- package/dist/cjs/utils/transforms/number.transform.d.ts.map +1 -0
- package/dist/cjs/utils/transforms/number.transform.js +36 -0
- package/dist/cjs/utils/transforms/number.transform.js.map +1 -0
- package/dist/mjs/api/resources/Transaction.d.ts +1 -0
- package/dist/mjs/api/resources/Transaction.d.ts.map +1 -1
- package/dist/mjs/api/resources/Transaction.js +3 -0
- package/dist/mjs/api/resources/Transaction.js.map +1 -1
- package/dist/mjs/api/resources/User.d.ts +8 -1
- package/dist/mjs/api/resources/User.d.ts.map +1 -1
- package/dist/mjs/api/resources/User.js +58 -0
- package/dist/mjs/api/resources/User.js.map +1 -1
- package/dist/mjs/api/resources/WorkingSchedule.d.ts +2 -1
- package/dist/mjs/api/resources/WorkingSchedule.d.ts.map +1 -1
- package/dist/mjs/api/resources/WorkingSchedule.js +3 -0
- package/dist/mjs/api/resources/WorkingSchedule.js.map +1 -1
- package/dist/mjs/types/Enum/BalanceSheet.js +2 -2
- package/dist/mjs/types/Enum/BalanceSheet.js.map +1 -1
- package/dist/mjs/types/Enum/EquipmentType.d.ts +15 -0
- package/dist/mjs/types/Enum/EquipmentType.d.ts.map +1 -1
- package/dist/mjs/types/Enum/EquipmentType.js +15 -0
- package/dist/mjs/types/Enum/EquipmentType.js.map +1 -1
- package/dist/mjs/types/Enum/PrestationType.d.ts +11 -0
- package/dist/mjs/types/Enum/PrestationType.d.ts.map +1 -1
- package/dist/mjs/types/Enum/PrestationType.js +83 -67
- package/dist/mjs/types/Enum/PrestationType.js.map +1 -1
- package/dist/mjs/types/Enum/SocietyApproval.js +6 -6
- package/dist/mjs/types/Enum/SocietyApproval.js.map +1 -1
- package/dist/mjs/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.d.ts +13 -0
- package/dist/mjs/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.js +16 -2
- package/dist/mjs/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.js.map +1 -1
- package/dist/mjs/types/Interface/api/user/CreateCoworker.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/user/CreateCoworker.js +11 -0
- package/dist/mjs/types/Interface/api/user/CreateCoworker.js.map +1 -1
- package/dist/mjs/types/Interface/models/IUser.d.ts +1 -0
- 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/utils/societyApproval.d.ts.map +1 -1
- package/dist/mjs/utils/societyApproval.js +6 -3
- package/dist/mjs/utils/societyApproval.js.map +1 -1
- package/dist/mjs/utils/transforms/number.transform.d.ts +3 -0
- package/dist/mjs/utils/transforms/number.transform.d.ts.map +1 -0
- package/dist/mjs/utils/transforms/number.transform.js +33 -0
- package/dist/mjs/utils/transforms/number.transform.js.map +1 -0
- package/package.json +1 -1
- package/ts/api/resources/Transaction.ts +3 -0
- package/ts/api/resources/User.ts +65 -0
- package/ts/api/resources/WorkingSchedule.ts +5 -0
- package/ts/types/Enum/BalanceSheet.ts +2 -2
- package/ts/types/Enum/EquipmentType.ts +15 -0
- package/ts/types/Enum/PrestationType.ts +84 -67
- package/ts/types/Enum/SocietyApproval.ts +6 -6
- package/ts/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.ts +18 -2
- package/ts/types/Interface/api/user/CreateCoworker.ts +11 -0
- package/ts/types/Interface/models/IUser.ts +1 -0
- package/ts/utils/societyApproval.ts +10 -3
- package/ts/utils/transforms/number.transform.ts +38 -0
|
@@ -36,25 +36,25 @@ exports.RegulatedConventions = [
|
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
38
|
id: RegulatedConventionType.CURRENT_ACCOUNT_CREDITOR,
|
|
39
|
-
label:
|
|
39
|
+
label: "Existence d'un compte courant créditeur",
|
|
40
40
|
templateName: 'CONVENTION_CURRENT_ACCOUNT_CREDITOR',
|
|
41
41
|
applicableTo: [LegalForm_1.LegalFormTypeEnum.EURL, LegalForm_1.LegalFormTypeEnum.SASU],
|
|
42
42
|
},
|
|
43
43
|
{
|
|
44
44
|
id: RegulatedConventionType.CURRENT_ACCOUNT_DEBTOR,
|
|
45
|
-
label:
|
|
45
|
+
label: "Existence d'un compte courant débiteur",
|
|
46
46
|
templateName: 'CONVENTION_CURRENT_ACCOUNT_DEBTOR',
|
|
47
47
|
applicableTo: [LegalForm_1.LegalFormTypeEnum.EURL, LegalForm_1.LegalFormTypeEnum.SASU],
|
|
48
48
|
},
|
|
49
49
|
{
|
|
50
50
|
id: RegulatedConventionType.CURRENT_ACCOUNT_WAIVER,
|
|
51
|
-
label:
|
|
51
|
+
label: "Convention d'abandon de compte courant sous réserve de retour à meilleure fortune",
|
|
52
52
|
templateName: 'CONVENTION_CURRENT_ACCOUNT_WAIVER',
|
|
53
53
|
applicableTo: [LegalForm_1.LegalFormTypeEnum.EURL, LegalForm_1.LegalFormTypeEnum.SASU],
|
|
54
54
|
},
|
|
55
55
|
{
|
|
56
56
|
id: RegulatedConventionType.EMPLOYMENT_CONTRACT,
|
|
57
|
-
label:
|
|
57
|
+
label: "Existence d'un contrat de travail",
|
|
58
58
|
templateName: 'CONVENTION_EMPLOYMENT_CONTRACT',
|
|
59
59
|
applicableTo: [LegalForm_1.LegalFormTypeEnum.EURL, LegalForm_1.LegalFormTypeEnum.SASU],
|
|
60
60
|
},
|
|
@@ -66,13 +66,13 @@ exports.RegulatedConventions = [
|
|
|
66
66
|
},
|
|
67
67
|
{
|
|
68
68
|
id: RegulatedConventionType.COMMERCIAL_LEASE,
|
|
69
|
-
label:
|
|
69
|
+
label: "Existence d'un bail commercial",
|
|
70
70
|
templateName: 'CONVENTION_COMMERCIAL_LEASE',
|
|
71
71
|
applicableTo: [LegalForm_1.LegalFormTypeEnum.EURL, LegalForm_1.LegalFormTypeEnum.SASU],
|
|
72
72
|
},
|
|
73
73
|
{
|
|
74
74
|
id: RegulatedConventionType.RENT_SHARING,
|
|
75
|
-
label:
|
|
75
|
+
label: "Prise en charge d'une quote part du loyer",
|
|
76
76
|
templateName: 'CONVENTION_RENT_SHARING',
|
|
77
77
|
applicableTo: [LegalForm_1.LegalFormTypeEnum.EURL, LegalForm_1.LegalFormTypeEnum.SASU],
|
|
78
78
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SocietyApproval.js","sourceRoot":"","sources":["../../../../ts/types/Enum/SocietyApproval.ts"],"names":[],"mappings":";;;AAAA,iEAA+D;AAC/D,2CAAgD;AAChD,qDAAuD;AAEvD,IAAY,2BAQX;AARD,WAAY,2BAA2B;IACrC,+EAAS,CAAA;IACT,+FAAiB,CAAA;IACjB,qLAA4D,CAAA;IAC5D,iLAA0D,CAAA;IAC1D,6GAAwB,CAAA;IACxB,2GAAuB,CAAA;IACvB,uGAAqB,CAAA;AACvB,CAAC,EARW,2BAA2B,2CAA3B,2BAA2B,QAQtC;AAED,IAAY,uBAWX;AAXD,WAAY,uBAAuB;IACjC,uHAAiC,CAAA;IACjC,6GAA4B,CAAA;IAC5B,yGAA0B,CAAA;IAC1B,yGAA0B,CAAA;IAC1B,mGAAuB,CAAA;IACvB,+FAAqB,CAAA;IACrB,6FAAoB,CAAA;IACpB,qFAAgB,CAAA;IAChB,uGAAyB,CAAA;IACzB,0GAA2B,CAAA;AAC7B,CAAC,EAXW,uBAAuB,uCAAvB,uBAAuB,QAWlC;AASY,QAAA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\nimport { LegalFormTypeEnum } from './LegalForm';\nimport { DocumentSectionType } from './StatutsSection';\n\nexport enum SocietyApprovalDocumentType {\n PV_AG = 1,\n POWER_MANDATE = 2,\n DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS_MICRO = 3,\n DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS_PME = 4,\n INCOME_APPROPRIATION = 5,\n LIST_OF_CONVENTIONS = 6,\n LIST_OF_DIVIDENDS = 7,\n}\n\nexport enum RegulatedConventionType {\n SOCIAL_CONTRIBUTIONS_COVERAGE = 1,\n CURRENT_ACCOUNT_CREDITOR = 2,\n CURRENT_ACCOUNT_DEBTOR = 3,\n CURRENT_ACCOUNT_WAIVER = 4,\n EMPLOYMENT_CONTRACT = 5,\n SERVICE_PROVISION = 6,\n COMMERCIAL_LEASE = 7,\n RENT_SHARING = 8,\n MILEAGE_REIMBURSEMENT = 9,\n PRESIDENT_REMUNERATION = 10,\n}\n\nexport type RegulatedConvention = {\n id: RegulatedConventionType;\n label: string;\n templateName: string;\n applicableTo: LegalFormTypeEnum[];\n};\n\nexport const RegulatedConventions: RegulatedConvention[] = [\n {\n id: RegulatedConventionType.SOCIAL_CONTRIBUTIONS_COVERAGE,\n label: 'Prise en charge des cotisations sociales',\n templateName: 'CONVENTION_SOCIAL_CONTRIBUTIONS_COVERAGE',\n applicableTo: [LegalFormTypeEnum.EURL],\n },\n {\n id: RegulatedConventionType.CURRENT_ACCOUNT_CREDITOR,\n label: 'Existence d\\'un compte courant créditeur',\n templateName: 'CONVENTION_CURRENT_ACCOUNT_CREDITOR',\n applicableTo: [LegalFormTypeEnum.EURL, LegalFormTypeEnum.SASU],\n },\n {\n id: RegulatedConventionType.CURRENT_ACCOUNT_DEBTOR,\n label: 'Existence d\\'un compte courant débiteur',\n templateName: 'CONVENTION_CURRENT_ACCOUNT_DEBTOR',\n applicableTo: [LegalFormTypeEnum.EURL, LegalFormTypeEnum.SASU],\n },\n {\n id: RegulatedConventionType.CURRENT_ACCOUNT_WAIVER,\n label: 'Convention d\\'abandon de compte courant sous réserve de retour à meilleure fortune',\n templateName: 'CONVENTION_CURRENT_ACCOUNT_WAIVER',\n applicableTo: [LegalFormTypeEnum.EURL, LegalFormTypeEnum.SASU],\n },\n {\n id: RegulatedConventionType.EMPLOYMENT_CONTRACT,\n label: 'Existence d\\'un contrat de travail',\n templateName: 'CONVENTION_EMPLOYMENT_CONTRACT',\n applicableTo: [LegalFormTypeEnum.EURL, LegalFormTypeEnum.SASU],\n },\n {\n id: RegulatedConventionType.SERVICE_PROVISION,\n label: 'Existence et facturation de prestations de services',\n templateName: 'CONVENTION_SERVICE_PROVISION',\n applicableTo: [LegalFormTypeEnum.EURL, LegalFormTypeEnum.SASU],\n },\n {\n id: RegulatedConventionType.COMMERCIAL_LEASE,\n label: 'Existence d\\'un bail commercial',\n templateName: 'CONVENTION_COMMERCIAL_LEASE',\n applicableTo: [LegalFormTypeEnum.EURL, LegalFormTypeEnum.SASU],\n },\n {\n id: RegulatedConventionType.RENT_SHARING,\n label: 'Prise en charge d\\'une quote part du loyer',\n templateName: 'CONVENTION_RENT_SHARING',\n applicableTo: [LegalFormTypeEnum.EURL, LegalFormTypeEnum.SASU],\n },\n {\n id: RegulatedConventionType.MILEAGE_REIMBURSEMENT,\n label: 'Remboursement des indemnités kilométriques',\n templateName: 'CONVENTION_MILEAGE_REIMBURSEMENT',\n applicableTo: [LegalFormTypeEnum.EURL, LegalFormTypeEnum.SASU],\n },\n {\n id: RegulatedConventionType.PRESIDENT_REMUNERATION,\n label: 'Rémunération du/de la Président(e)',\n templateName: 'CONVENTION_PRESIDENT_REMUNERATION',\n applicableTo: [LegalFormTypeEnum.SASU],\n },\n];\n\nexport type SocietyApprovalDocumentTemplate = {\n idDocumentType: SocietyApprovalDocumentType;\n docName: string;\n templateName: string;\n documentSectionType: DocumentSectionType;\n token?: string;\n htmlContent?: string;\n idDocumentSection?: number;\n};\n\nexport type SocietyApprovalDocumentConfig = {\n idLegalForm: LegalFormTypeEnum;\n legalFormName: string;\n documents: SocietyApprovalDocumentTemplate[];\n};\n\nexport const SocietyApprovalDocumentsByLegalForm: SocietyApprovalDocumentConfig[] = [\n {\n idLegalForm: LegalFormTypeEnum.EURL,\n legalFormName: getLegalFormName(LegalFormTypeEnum.EURL),\n documents: [\n {\n idDocumentType: SocietyApprovalDocumentType.PV_AG,\n docName: \"Procès-verbal d'approbation des comptes\",\n templateName: 'APPROVAL_EURL',\n documentSectionType: DocumentSectionType.APPROVAL_PV,\n },\n {\n idDocumentType: SocietyApprovalDocumentType.POWER_MANDATE,\n docName: 'Mandat de pouvoir',\n templateName: 'POWER_MANDATE_EURL',\n documentSectionType: DocumentSectionType.POWER_MANDATE,\n },\n {\n idDocumentType: SocietyApprovalDocumentType.DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS_MICRO,\n docName: 'Déclaration de confidentialité pour les comptes annuels (Micro)',\n templateName: 'DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS_MICRO_EURL',\n documentSectionType: DocumentSectionType.DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS,\n },\n {\n idDocumentType: SocietyApprovalDocumentType.DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS_PME,\n docName: 'Déclaration de confidentialité pour les comptes annuels (PME)',\n templateName: 'DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS_PME_EURL',\n documentSectionType: DocumentSectionType.DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS,\n },\n {\n idDocumentType: SocietyApprovalDocumentType.INCOME_APPROPRIATION,\n docName: 'Affectation du résultat',\n templateName: 'INCOME_APPROPRIATION_EURL',\n documentSectionType: DocumentSectionType.INCOME_APPROPRIATION,\n },\n {\n idDocumentType: SocietyApprovalDocumentType.LIST_OF_CONVENTIONS,\n docName: 'Liste de conventions',\n templateName: 'LIST_OF_CONVENTIONS_EURL',\n documentSectionType: DocumentSectionType.LIST_OF_CONVENTIONS,\n },\n ],\n },\n // {\n // idLegalForm: LegalFormTypeEnum.SARL,\n // legalFormName: getLegalFormName(LegalFormTypeEnum.SARL),\n // documents: [\n // {\n // idDocumentType: SocietyApprovalDocumentType.PV_AG,\n // docName: \"Procès-verbal d'approbation des comptes\",\n // templateName: 'APPROVAL_SARL',\n // documentSectionType: DocumentSectionType.APPROVAL_PV,\n // },\n // {\n // idDocumentType: SocietyApprovalDocumentType.POWER_MANDATE,\n // docName: 'Mandat de pouvoir',\n // templateName: 'POWER_MANDATE_SARL',\n // documentSectionType: DocumentSectionType.POWER_MANDATE,\n // },\n // {\n // idDocumentType: SocietyApprovalDocumentType.DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS_PME,\n // docName: 'Déclaration de confidentialité pour les comptes annuels',\n // templateName: 'DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS_SARL',\n // documentSectionType: DocumentSectionType.DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS,\n // },\n // {\n // idDocumentType: SocietyApprovalDocumentType.INCOME_APPROPRIATION,\n // docName: 'Affectation du résultat',\n // templateName: 'INCOME_APPROPRIATION_SARL',\n // documentSectionType: DocumentSectionType.INCOME_APPROPRIATION,\n // },\n // ],\n // },\n {\n idLegalForm: LegalFormTypeEnum.SASU,\n legalFormName: getLegalFormName(LegalFormTypeEnum.SASU),\n documents: [\n {\n idDocumentType: SocietyApprovalDocumentType.PV_AG,\n docName: \"Procès-verbal d'approbation des comptes\",\n templateName: 'APPROVAL_SASU',\n documentSectionType: DocumentSectionType.APPROVAL_PV,\n },\n {\n idDocumentType: SocietyApprovalDocumentType.POWER_MANDATE,\n docName: 'Mandat de pouvoir',\n templateName: 'POWER_MANDATE_SASU',\n documentSectionType: DocumentSectionType.POWER_MANDATE,\n },\n {\n idDocumentType: SocietyApprovalDocumentType.DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS_MICRO,\n docName: 'Déclaration de confidentialité pour les comptes annuels (Micro)',\n templateName: 'DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS_MICRO_SASU',\n documentSectionType: DocumentSectionType.DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS,\n },\n {\n idDocumentType: SocietyApprovalDocumentType.DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS_PME,\n docName: 'Déclaration de confidentialité pour les comptes annuels (PME)',\n templateName: 'DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS_PME_SASU',\n documentSectionType: DocumentSectionType.DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS,\n },\n {\n idDocumentType: SocietyApprovalDocumentType.INCOME_APPROPRIATION,\n docName: 'Affectation du résultat',\n templateName: 'INCOME_APPROPRIATION_SASU',\n documentSectionType: DocumentSectionType.INCOME_APPROPRIATION,\n },\n {\n idDocumentType: SocietyApprovalDocumentType.LIST_OF_DIVIDENDS,\n docName: 'Liste de dividendes',\n templateName: 'LIST_OF_DIVIDENDS_SASU',\n documentSectionType: DocumentSectionType.LIST_OF_DIVIDENDS,\n },\n ],\n },\n {\n idLegalForm: LegalFormTypeEnum.SAS,\n legalFormName: getLegalFormName(LegalFormTypeEnum.SAS),\n documents: [\n {\n idDocumentType: SocietyApprovalDocumentType.PV_AG,\n docName: \"Procès-verbal d'approbation des comptes\",\n templateName: 'APPROVAL_SAS',\n documentSectionType: DocumentSectionType.APPROVAL_PV,\n },\n {\n idDocumentType: SocietyApprovalDocumentType.POWER_MANDATE,\n docName: 'Mandat de pouvoir',\n templateName: 'POWER_MANDATE_SAS',\n documentSectionType: DocumentSectionType.POWER_MANDATE,\n },\n {\n idDocumentType: SocietyApprovalDocumentType.DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS_MICRO,\n docName: 'Déclaration de confidentialité pour les comptes annuels (Micro)',\n templateName: 'DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS_MICRO_SAS',\n documentSectionType: DocumentSectionType.DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS,\n },\n {\n idDocumentType: SocietyApprovalDocumentType.DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS_PME,\n docName: 'Déclaration de confidentialité pour les comptes annuels (PME)',\n templateName: 'DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS_PME_SAS',\n documentSectionType: DocumentSectionType.DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS,\n },\n {\n idDocumentType: SocietyApprovalDocumentType.INCOME_APPROPRIATION,\n docName: 'Affectation du résultat',\n templateName: 'INCOME_APPROPRIATION_SAS',\n documentSectionType: DocumentSectionType.INCOME_APPROPRIATION,\n },\n ],\n },\n {\n idLegalForm: LegalFormTypeEnum.SCI,\n legalFormName: getLegalFormName(LegalFormTypeEnum.SCI),\n documents: [\n {\n idDocumentType: SocietyApprovalDocumentType.PV_AG,\n docName: \"Procès-verbal d'approbation des comptes\",\n templateName: 'APPROVAL_SCI',\n documentSectionType: DocumentSectionType.APPROVAL_PV,\n },\n {\n idDocumentType: SocietyApprovalDocumentType.POWER_MANDATE,\n docName: 'Mandat de pouvoir',\n templateName: 'POWER_MANDATE_SCI',\n documentSectionType: DocumentSectionType.POWER_MANDATE,\n },\n {\n idDocumentType: SocietyApprovalDocumentType.DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS_MICRO,\n docName: 'Déclaration de confidentialité pour les comptes annuels (Micro)',\n templateName: 'DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS_MICRO_SCI',\n documentSectionType: DocumentSectionType.DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS,\n },\n {\n idDocumentType: SocietyApprovalDocumentType.DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS_PME,\n docName: 'Déclaration de confidentialité pour les comptes annuels',\n templateName: 'DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS_PME_SCI',\n documentSectionType: DocumentSectionType.DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS,\n },\n {\n idDocumentType: SocietyApprovalDocumentType.INCOME_APPROPRIATION,\n docName: 'Affectation du résultat',\n templateName: 'INCOME_APPROPRIATION_SCI',\n documentSectionType: DocumentSectionType.INCOME_APPROPRIATION,\n },\n ],\n },\n];\n"]}
|
|
1
|
+
{"version":3,"file":"SocietyApproval.js","sourceRoot":"","sources":["../../../../ts/types/Enum/SocietyApproval.ts"],"names":[],"mappings":";;;AAAA,iEAA+D;AAC/D,2CAAgD;AAChD,qDAAuD;AAEvD,IAAY,2BAQX;AARD,WAAY,2BAA2B;IACrC,+EAAS,CAAA;IACT,+FAAiB,CAAA;IACjB,qLAA4D,CAAA;IAC5D,iLAA0D,CAAA;IAC1D,6GAAwB,CAAA;IACxB,2GAAuB,CAAA;IACvB,uGAAqB,CAAA;AACvB,CAAC,EARW,2BAA2B,2CAA3B,2BAA2B,QAQtC;AAED,IAAY,uBAWX;AAXD,WAAY,uBAAuB;IACjC,uHAAiC,CAAA;IACjC,6GAA4B,CAAA;IAC5B,yGAA0B,CAAA;IAC1B,yGAA0B,CAAA;IAC1B,mGAAuB,CAAA;IACvB,+FAAqB,CAAA;IACrB,6FAAoB,CAAA;IACpB,qFAAgB,CAAA;IAChB,uGAAyB,CAAA;IACzB,0GAA2B,CAAA;AAC7B,CAAC,EAXW,uBAAuB,uCAAvB,uBAAuB,QAWlC;AASY,QAAA,oBAAoB,GAA0B;IACzD;QACE,EAAE,EAAE,uBAAuB,CAAC,6BAA6B;QACzD,KAAK,EAAE,0CAA0C;QACjD,YAAY,EAAE,0CAA0C;QACxD,YAAY,EAAE,CAAC,6BAAiB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c,EAAE,2BAA2B,CAAC,oBAAoB;gBAChE,OAAO,EAAE,yBAAyB;gBAClC,YAAY,EAAE,0BAA0B;gBACxC,mBAAmB,EAAE,oCAAmB,CAAC,oBAAoB;aAC9D;SACF;KACF;IACD;QACE,WAAW,EAAE,6BAAiB,CAAC,GAAG;QAClC,aAAa,EAAE,IAAA,kCAAgB,EAAC,6BAAiB,CAAC,GAAG,CAAC;QACtD,SAAS,EAAE;YACT;gBACE,cAAc,EAAE,2BAA2B,CAAC,KAAK;gBACjD,OAAO,EAAE,yCAAyC;gBAClD,YAAY,EAAE,cAAc;gBAC5B,mBAAmB,EAAE,oCAAmB,CAAC,WAAW;aACrD;YACD;gBACE,cAAc,EAAE,2BAA2B,CAAC,aAAa;gBACzD,OAAO,EAAE,mBAAmB;gBAC5B,YAAY,EAAE,mBAAmB;gBACjC,mBAAmB,EAAE,oCAAmB,CAAC,aAAa;aACvD;YACD;gBACE,cAAc,EAAE,2BAA2B,CAAC,wDAAwD;gBACpG,OAAO,EAAE,iEAAiE;gBAC1E,YAAY,EAAE,8DAA8D;gBAC5E,mBAAmB,EAAE,oCAAmB,CAAC,kDAAkD;aAC5F;YACD;gBACE,cAAc,EAAE,2BAA2B,CAAC,sDAAsD;gBAClG,OAAO,EAAE,yDAAyD;gBAClE,YAAY,EAAE,4DAA4D;gBAC1E,mBAAmB,EAAE,oCAAmB,CAAC,kDAAkD;aAC5F;YACD;gBACE,cAAc,EAAE,2BAA2B,CAAC,oBAAoB;gBAChE,OAAO,EAAE,yBAAyB;gBAClC,YAAY,EAAE,0BAA0B;gBACxC,mBAAmB,EAAE,oCAAmB,CAAC,oBAAoB;aAC9D;SACF;KACF;CACF,CAAC","sourcesContent":["import { getLegalFormName } from '../../utils/societyApproval';\nimport { LegalFormTypeEnum } from './LegalForm';\nimport { DocumentSectionType } from './StatutsSection';\n\nexport enum SocietyApprovalDocumentType {\n PV_AG = 1,\n POWER_MANDATE = 2,\n DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS_MICRO = 3,\n DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS_PME = 4,\n INCOME_APPROPRIATION = 5,\n LIST_OF_CONVENTIONS = 6,\n LIST_OF_DIVIDENDS = 7,\n}\n\nexport enum RegulatedConventionType {\n SOCIAL_CONTRIBUTIONS_COVERAGE = 1,\n CURRENT_ACCOUNT_CREDITOR = 2,\n CURRENT_ACCOUNT_DEBTOR = 3,\n CURRENT_ACCOUNT_WAIVER = 4,\n EMPLOYMENT_CONTRACT = 5,\n SERVICE_PROVISION = 6,\n COMMERCIAL_LEASE = 7,\n RENT_SHARING = 8,\n MILEAGE_REIMBURSEMENT = 9,\n PRESIDENT_REMUNERATION = 10,\n}\n\nexport type RegulatedConvention = {\n id: RegulatedConventionType;\n label: string;\n templateName: string;\n applicableTo: LegalFormTypeEnum[];\n};\n\nexport const RegulatedConventions: RegulatedConvention[] = [\n {\n id: RegulatedConventionType.SOCIAL_CONTRIBUTIONS_COVERAGE,\n label: 'Prise en charge des cotisations sociales',\n templateName: 'CONVENTION_SOCIAL_CONTRIBUTIONS_COVERAGE',\n applicableTo: [LegalFormTypeEnum.EURL],\n },\n {\n id: RegulatedConventionType.CURRENT_ACCOUNT_CREDITOR,\n label: \"Existence d'un compte courant créditeur\",\n templateName: 'CONVENTION_CURRENT_ACCOUNT_CREDITOR',\n applicableTo: [LegalFormTypeEnum.EURL, LegalFormTypeEnum.SASU],\n },\n {\n id: RegulatedConventionType.CURRENT_ACCOUNT_DEBTOR,\n label: \"Existence d'un compte courant débiteur\",\n templateName: 'CONVENTION_CURRENT_ACCOUNT_DEBTOR',\n applicableTo: [LegalFormTypeEnum.EURL, LegalFormTypeEnum.SASU],\n },\n {\n id: RegulatedConventionType.CURRENT_ACCOUNT_WAIVER,\n label: \"Convention d'abandon de compte courant sous réserve de retour à meilleure fortune\",\n templateName: 'CONVENTION_CURRENT_ACCOUNT_WAIVER',\n applicableTo: [LegalFormTypeEnum.EURL, LegalFormTypeEnum.SASU],\n },\n {\n id: RegulatedConventionType.EMPLOYMENT_CONTRACT,\n label: \"Existence d'un contrat de travail\",\n templateName: 'CONVENTION_EMPLOYMENT_CONTRACT',\n applicableTo: [LegalFormTypeEnum.EURL, LegalFormTypeEnum.SASU],\n },\n {\n id: RegulatedConventionType.SERVICE_PROVISION,\n label: 'Existence et facturation de prestations de services',\n templateName: 'CONVENTION_SERVICE_PROVISION',\n applicableTo: [LegalFormTypeEnum.EURL, LegalFormTypeEnum.SASU],\n },\n {\n id: RegulatedConventionType.COMMERCIAL_LEASE,\n label: \"Existence d'un bail commercial\",\n templateName: 'CONVENTION_COMMERCIAL_LEASE',\n applicableTo: [LegalFormTypeEnum.EURL, LegalFormTypeEnum.SASU],\n },\n {\n id: RegulatedConventionType.RENT_SHARING,\n label: \"Prise en charge d'une quote part du loyer\",\n templateName: 'CONVENTION_RENT_SHARING',\n applicableTo: [LegalFormTypeEnum.EURL, LegalFormTypeEnum.SASU],\n },\n {\n id: RegulatedConventionType.MILEAGE_REIMBURSEMENT,\n label: 'Remboursement des indemnités kilométriques',\n templateName: 'CONVENTION_MILEAGE_REIMBURSEMENT',\n applicableTo: [LegalFormTypeEnum.EURL, LegalFormTypeEnum.SASU],\n },\n {\n id: RegulatedConventionType.PRESIDENT_REMUNERATION,\n label: 'Rémunération du/de la Président(e)',\n templateName: 'CONVENTION_PRESIDENT_REMUNERATION',\n applicableTo: [LegalFormTypeEnum.SASU],\n },\n];\n\nexport type SocietyApprovalDocumentTemplate = {\n idDocumentType: SocietyApprovalDocumentType;\n docName: string;\n templateName: string;\n documentSectionType: DocumentSectionType;\n token?: string;\n htmlContent?: string;\n idDocumentSection?: number;\n};\n\nexport type SocietyApprovalDocumentConfig = {\n idLegalForm: LegalFormTypeEnum;\n legalFormName: string;\n documents: SocietyApprovalDocumentTemplate[];\n};\n\nexport const SocietyApprovalDocumentsByLegalForm: SocietyApprovalDocumentConfig[] = [\n {\n idLegalForm: LegalFormTypeEnum.EURL,\n legalFormName: getLegalFormName(LegalFormTypeEnum.EURL),\n documents: [\n {\n idDocumentType: SocietyApprovalDocumentType.PV_AG,\n docName: \"Procès-verbal d'approbation des comptes\",\n templateName: 'APPROVAL_EURL',\n documentSectionType: DocumentSectionType.APPROVAL_PV,\n },\n {\n idDocumentType: SocietyApprovalDocumentType.POWER_MANDATE,\n docName: 'Mandat de pouvoir',\n templateName: 'POWER_MANDATE_EURL',\n documentSectionType: DocumentSectionType.POWER_MANDATE,\n },\n {\n idDocumentType: SocietyApprovalDocumentType.DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS_MICRO,\n docName: 'Déclaration de confidentialité pour les comptes annuels (Micro)',\n templateName: 'DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS_MICRO_EURL',\n documentSectionType: DocumentSectionType.DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS,\n },\n {\n idDocumentType: SocietyApprovalDocumentType.DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS_PME,\n docName: 'Déclaration de confidentialité pour les comptes annuels (PME)',\n templateName: 'DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS_PME_EURL',\n documentSectionType: DocumentSectionType.DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS,\n },\n {\n idDocumentType: SocietyApprovalDocumentType.INCOME_APPROPRIATION,\n docName: 'Affectation du résultat',\n templateName: 'INCOME_APPROPRIATION_EURL',\n documentSectionType: DocumentSectionType.INCOME_APPROPRIATION,\n },\n {\n idDocumentType: SocietyApprovalDocumentType.LIST_OF_CONVENTIONS,\n docName: 'Liste de conventions',\n templateName: 'LIST_OF_CONVENTIONS_EURL',\n documentSectionType: DocumentSectionType.LIST_OF_CONVENTIONS,\n },\n ],\n },\n // {\n // idLegalForm: LegalFormTypeEnum.SARL,\n // legalFormName: getLegalFormName(LegalFormTypeEnum.SARL),\n // documents: [\n // {\n // idDocumentType: SocietyApprovalDocumentType.PV_AG,\n // docName: \"Procès-verbal d'approbation des comptes\",\n // templateName: 'APPROVAL_SARL',\n // documentSectionType: DocumentSectionType.APPROVAL_PV,\n // },\n // {\n // idDocumentType: SocietyApprovalDocumentType.POWER_MANDATE,\n // docName: 'Mandat de pouvoir',\n // templateName: 'POWER_MANDATE_SARL',\n // documentSectionType: DocumentSectionType.POWER_MANDATE,\n // },\n // {\n // idDocumentType: SocietyApprovalDocumentType.DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS_PME,\n // docName: 'Déclaration de confidentialité pour les comptes annuels',\n // templateName: 'DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS_SARL',\n // documentSectionType: DocumentSectionType.DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS,\n // },\n // {\n // idDocumentType: SocietyApprovalDocumentType.INCOME_APPROPRIATION,\n // docName: 'Affectation du résultat',\n // templateName: 'INCOME_APPROPRIATION_SARL',\n // documentSectionType: DocumentSectionType.INCOME_APPROPRIATION,\n // },\n // ],\n // },\n {\n idLegalForm: LegalFormTypeEnum.SASU,\n legalFormName: getLegalFormName(LegalFormTypeEnum.SASU),\n documents: [\n {\n idDocumentType: SocietyApprovalDocumentType.PV_AG,\n docName: \"Procès-verbal d'approbation des comptes\",\n templateName: 'APPROVAL_SASU',\n documentSectionType: DocumentSectionType.APPROVAL_PV,\n },\n {\n idDocumentType: SocietyApprovalDocumentType.POWER_MANDATE,\n docName: 'Mandat de pouvoir',\n templateName: 'POWER_MANDATE_SASU',\n documentSectionType: DocumentSectionType.POWER_MANDATE,\n },\n {\n idDocumentType: SocietyApprovalDocumentType.DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS_MICRO,\n docName: 'Déclaration de confidentialité pour les comptes annuels (Micro)',\n templateName: 'DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS_MICRO_SASU',\n documentSectionType: DocumentSectionType.DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS,\n },\n {\n idDocumentType: SocietyApprovalDocumentType.DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS_PME,\n docName: 'Déclaration de confidentialité pour les comptes annuels (PME)',\n templateName: 'DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS_PME_SASU',\n documentSectionType: DocumentSectionType.DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS,\n },\n {\n idDocumentType: SocietyApprovalDocumentType.INCOME_APPROPRIATION,\n docName: 'Affectation du résultat',\n templateName: 'INCOME_APPROPRIATION_SASU',\n documentSectionType: DocumentSectionType.INCOME_APPROPRIATION,\n },\n {\n idDocumentType: SocietyApprovalDocumentType.LIST_OF_DIVIDENDS,\n docName: 'Liste de dividendes',\n templateName: 'LIST_OF_DIVIDENDS_SASU',\n documentSectionType: DocumentSectionType.LIST_OF_DIVIDENDS,\n },\n ],\n },\n {\n idLegalForm: LegalFormTypeEnum.SAS,\n legalFormName: getLegalFormName(LegalFormTypeEnum.SAS),\n documents: [\n {\n idDocumentType: SocietyApprovalDocumentType.PV_AG,\n docName: \"Procès-verbal d'approbation des comptes\",\n templateName: 'APPROVAL_SAS',\n documentSectionType: DocumentSectionType.APPROVAL_PV,\n },\n {\n idDocumentType: SocietyApprovalDocumentType.POWER_MANDATE,\n docName: 'Mandat de pouvoir',\n templateName: 'POWER_MANDATE_SAS',\n documentSectionType: DocumentSectionType.POWER_MANDATE,\n },\n {\n idDocumentType: SocietyApprovalDocumentType.DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS_MICRO,\n docName: 'Déclaration de confidentialité pour les comptes annuels (Micro)',\n templateName: 'DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS_MICRO_SAS',\n documentSectionType: DocumentSectionType.DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS,\n },\n {\n idDocumentType: SocietyApprovalDocumentType.DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS_PME,\n docName: 'Déclaration de confidentialité pour les comptes annuels (PME)',\n templateName: 'DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS_PME_SAS',\n documentSectionType: DocumentSectionType.DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS,\n },\n {\n idDocumentType: SocietyApprovalDocumentType.INCOME_APPROPRIATION,\n docName: 'Affectation du résultat',\n templateName: 'INCOME_APPROPRIATION_SAS',\n documentSectionType: DocumentSectionType.INCOME_APPROPRIATION,\n },\n ],\n },\n {\n idLegalForm: LegalFormTypeEnum.SCI,\n legalFormName: getLegalFormName(LegalFormTypeEnum.SCI),\n documents: [\n {\n idDocumentType: SocietyApprovalDocumentType.PV_AG,\n docName: \"Procès-verbal d'approbation des comptes\",\n templateName: 'APPROVAL_SCI',\n documentSectionType: DocumentSectionType.APPROVAL_PV,\n },\n {\n idDocumentType: SocietyApprovalDocumentType.POWER_MANDATE,\n docName: 'Mandat de pouvoir',\n templateName: 'POWER_MANDATE_SCI',\n documentSectionType: DocumentSectionType.POWER_MANDATE,\n },\n {\n idDocumentType: SocietyApprovalDocumentType.DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS_MICRO,\n docName: 'Déclaration de confidentialité pour les comptes annuels (Micro)',\n templateName: 'DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS_MICRO_SCI',\n documentSectionType: DocumentSectionType.DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS,\n },\n {\n idDocumentType: SocietyApprovalDocumentType.DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS_PME,\n docName: 'Déclaration de confidentialité pour les comptes annuels',\n templateName: 'DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS_PME_SCI',\n documentSectionType: DocumentSectionType.DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS,\n },\n {\n idDocumentType: SocietyApprovalDocumentType.INCOME_APPROPRIATION,\n docName: 'Affectation du résultat',\n templateName: 'INCOME_APPROPRIATION_SCI',\n documentSectionType: DocumentSectionType.INCOME_APPROPRIATION,\n },\n ],\n },\n];\n"]}
|
|
@@ -29,6 +29,19 @@ export declare class UpdateAccountingTransaction {
|
|
|
29
29
|
amountAllTaxIncluded?: number;
|
|
30
30
|
idAccountant?: number;
|
|
31
31
|
}
|
|
32
|
+
export declare class UpdateAllAccountingTransaction {
|
|
33
|
+
ids: number[];
|
|
34
|
+
data: UpdateAccountingTransaction;
|
|
35
|
+
}
|
|
36
|
+
export interface UpdatedAccountingTransactions {
|
|
37
|
+
processed: number;
|
|
38
|
+
errors: Array<{
|
|
39
|
+
id: number;
|
|
40
|
+
message: string;
|
|
41
|
+
code: string;
|
|
42
|
+
}>;
|
|
43
|
+
updatedTransactions: ReadFormattedAccountingTransaction[];
|
|
44
|
+
}
|
|
32
45
|
export interface UploadedAccountingFileInfos {
|
|
33
46
|
location: string;
|
|
34
47
|
idFile: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnnotateAccountingTransaction.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAIvD,MAAM,MAAM,kBAAkB,GAAG,eAAe,CAAC;AAEjD,qBAAa,SAAS;IACpB,GAAG,CAAC,EACA,MAAM,GACN,IAAI,GACJ;QACE,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;KAChB,EAAE,CAAC;IACR,aAAa,CAAC,EAAE,OAAO,CAAC;IACx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,MAAM,CAAC;IACf,kBAAkB,EAAE,OAAO,CAAC;IAC5B,OAAO,CAAC,EAAE,6BAA6B,CAAC;IACxC,qBAAqB,CAAC,EAAE,WAAW,EAAE,CAAC;CACvC"}
|
|
1
|
+
{"version":3,"file":"AnnotateAccountingTransaction.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAIvD,MAAM,MAAM,kBAAkB,GAAG,eAAe,CAAC;AAEjD,qBAAa,SAAS;IACpB,GAAG,CAAC,EACA,MAAM,GACN,IAAI,GACJ;QACE,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;KAChB,EAAE,CAAC;IACR,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,4BAA4B,CAAC,EAAE,MAAM,CAAC;IACtC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,cAAc,CAAC,EAAE,kBAAkB,CAAC;IACpC,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAGD,MAAM,MAAM,6BAA6B,GAAG,SAAS,EAAE,CAAC;AAExD,qBAAa,2BAA2B;IAGtC,OAAO,CAAC,EAAE,SAAS,EAAE,CAAC;IAEtB,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B,QAAQ,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAKvB,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,SAAS,CAAC,EAAE,IAAI,CAAC;IAEjB,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAK9B,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,qBAAa,8BAA8B;IAIzC,GAAG,EAAE,MAAM,EAAE,CAAC;IAGd,IAAI,EAAE,2BAA2B,CAAC;CACnC;AAED,MAAM,WAAW,6BAA6B;IAC5C,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,KAAK,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC7D,mBAAmB,EAAE,kCAAkC,EAAE,CAAC;CAC3D;AAED,MAAM,WAAW,2BAA2B;IAC1C,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,EAAE,OAAO,CAAC;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAGD,MAAM,WAAW,kCAAmC,SAAQ,sBAAsB;IAChF,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,kBAAkB,EAAE,OAAO,CAAC;IAC5B,OAAO,CAAC,EAAE,6BAA6B,CAAC;IACxC,qBAAqB,CAAC,EAAE,WAAW,EAAE,CAAC;CACvC"}
|
|
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.UpdateAccountingTransaction = exports.FormEntry = void 0;
|
|
12
|
+
exports.UpdateAllAccountingTransaction = exports.UpdateAccountingTransaction = exports.FormEntry = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
14
|
const utils_1 = require("../../../../utils");
|
|
15
15
|
const boolean_transform_1 = require("../../../../utils/transforms/boolean.transform");
|
|
@@ -66,4 +66,17 @@ __decorate([
|
|
|
66
66
|
(0, class_validator_1.IsNumber)(),
|
|
67
67
|
__metadata("design:type", Number)
|
|
68
68
|
], UpdateAccountingTransaction.prototype, "idAccountant", void 0);
|
|
69
|
+
class UpdateAllAccountingTransaction {
|
|
70
|
+
}
|
|
71
|
+
exports.UpdateAllAccountingTransaction = UpdateAllAccountingTransaction;
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, utils_1.ApiProperty)(),
|
|
74
|
+
(0, class_validator_1.IsArray)(),
|
|
75
|
+
(0, class_validator_1.IsInt)({ each: true }),
|
|
76
|
+
__metadata("design:type", Array)
|
|
77
|
+
], UpdateAllAccountingTransaction.prototype, "ids", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, utils_1.ApiProperty)(),
|
|
80
|
+
__metadata("design:type", UpdateAccountingTransaction)
|
|
81
|
+
], UpdateAllAccountingTransaction.prototype, "data", void 0);
|
|
69
82
|
//# sourceMappingURL=AnnotateAccountingTransaction.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnnotateAccountingTransaction.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"AnnotateAccountingTransaction.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAkF;AAGlF,6CAAqE;AACrE,sFAA2E;AAI3E,MAAa,SAAS;CAiBrB;AAjBD,8BAiBC;AAKD,MAAa,2BAA2B;CA4BvC;AA5BD,kEA4BC;AAzBC;IAFC,IAAA,2BAAmB,GAAE;IACtB,yBAAyB;;;4DACH;AAEtB;IADC,IAAA,2BAAmB,GAAE;;4DACL;AAEjB;IADC,IAAA,2BAAmB,GAAE;;qEACI;AAE1B;IADC,IAAA,2BAAmB,GAAE;;6DACC;AAKvB;IAJC,IAAA,2BAAmB,GAAE;IACrB,IAAA,2BAAS,GAAE;IACX,IAAA,6BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;4DACK;AAElB;IADC,IAAA,2BAAmB,GAAE;8BACV,IAAI;8DAAC;AAEjB;IADC,IAAA,2BAAmB,GAAE;;kEACC;AAEvB;IADC,IAAA,2BAAmB,GAAE;;yDACR;AAEd;IADC,IAAA,2BAAmB,GAAE;;yEACQ;AAK9B;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;iEACW;AAGxB,MAAa,8BAA8B;CAQ1C;AARD,wEAQC;AAJC;IAHC,IAAA,mBAAW,GAAE;IACb,IAAA,yBAAO,GAAE;IACT,IAAA,uBAAK,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;2DACR;AAGd;IADC,IAAA,mBAAW,GAAE;8BACR,2BAA2B;4DAAC","sourcesContent":["import { IsArray, IsBoolean, IsInt, IsNumber, IsOptional } from 'class-validator';\nimport { IAccountingTransaction, IImmobilization } from '../../..';\nimport { IThirdParty } from '../../models/IThirdParty';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\n\nexport type FormImmobilization = IImmobilization;\n\nexport class FormEntry {\n vat?:\n | number\n | null\n | {\n idVat: number;\n amount: number;\n }[];\n isVatIntracom?: boolean;\n isVatImportation?: boolean;\n idAccount?: number;\n idThirdParty?: number;\n amountAllTaxIncludedPurchase?: number;\n designation?: string;\n amountAllTaxIncluded?: number;\n immobilization?: FormImmobilization; // pour la création d'une immo\n idImmobilization?: number; //\n}\n\n// Permet d'annoté une transaction bancaire Split, Marge, Intracom, Immo etc...\nexport type AnnotateAccountingTransaction = FormEntry[];\n\nexport class UpdateAccountingTransaction {\n @ApiPropertyOptional()\n // @Type(() => FormEntry)\n entries?: FormEntry[];\n @ApiPropertyOptional()\n comment?: string;\n @ApiPropertyOptional()\n idSocietyPartner?: number;\n @ApiPropertyOptional()\n exported?: Date | null;\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isAsset?: boolean;\n @ApiPropertyOptional()\n dateValue?: Date;\n @ApiPropertyOptional()\n invoiceNumber?: string;\n @ApiPropertyOptional()\n name?: string;\n @ApiPropertyOptional()\n amountAllTaxIncluded?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n idAccountant?: number;\n}\n\nexport class UpdateAllAccountingTransaction {\n @ApiProperty()\n @IsArray()\n @IsInt({ each: true })\n ids: number[];\n\n @ApiProperty()\n data: UpdateAccountingTransaction;\n}\n\nexport interface UpdatedAccountingTransactions {\n processed: number;\n errors: Array<{ id: number; message: string; code: string }>;\n updatedTransactions: ReadFormattedAccountingTransaction[];\n}\n\nexport interface UploadedAccountingFileInfos {\n location: string;\n idFile: number;\n token: string;\n filename: string;\n needCompression: boolean;\n mimeType: string;\n bankFileId?: string;\n}\n\n// Permet d'afficher une transaction bancaire avec les informations de base ainsi que les informations d'annotations\nexport interface ReadFormattedAccountingTransaction extends IAccountingTransaction {\n amount: number;\n comment: string | null;\n designation: string | null;\n debit: number;\n credit: number;\n autoAnnotateWithML: boolean;\n entries?: AnnotateAccountingTransaction;\n thirdPartySuggestions?: IThirdParty[];\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateCoworker.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/user/CreateCoworker.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CreateCoworker.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/user/CreateCoworker.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEtD,qBAAa,cAAc;IAIzB,SAAS,EAAE,MAAM,CAAC;IAKlB,QAAQ,EAAE,MAAM,CAAC;IAKjB,KAAK,EAAE,MAAM,CAAC;IAKd,QAAQ,EAAE,MAAM,CAAC;IAKjB,QAAQ,EAAE,MAAM,CAAC;IAKjB,KAAK,EAAE,MAAM,CAAC;IAMd,UAAU,CAAC,EAAE,MAAM,CAAC;IAKpB,MAAM,EAAE,OAAO,CAAC;IAKhB,SAAS,EAAE,OAAO,CAAC;IAMnB,YAAY,CAAC,EAAE,OAAO,CAAC;IAKvB,WAAW,CAAC,EAAE,MAAM,CAAC;IAKrB,aAAa,CAAC,EAAE,MAAM,CAAC;IAMvB,UAAU,CAAC,EAAE,OAAO,CAAC;IAKrB,SAAS,CAAC,EAAE,IAAI,CAAC;IAKjB,WAAW,CAAC,EAAE,IAAI,CAAC;IAKnB,WAAW,CAAC,EAAE,IAAI,CAAC;IAMnB,QAAQ,EAAE,MAAM,CAAC;IAMjB,MAAM,EAAE,UAAU,CAAC;IAYnB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IAMnB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IAMnB,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IAMzB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB"}
|
|
@@ -11,8 +11,10 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.CreateCoworker = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
15
|
const decorators_1 = require("../../../../utils/decorators");
|
|
15
16
|
const boolean_transform_1 = require("../../../../utils/transforms/boolean.transform");
|
|
17
|
+
const number_transform_1 = require("../../../../utils/transforms/number.transform");
|
|
16
18
|
const EntityType_1 = require("../../../Enum/EntityType");
|
|
17
19
|
class CreateCoworker {
|
|
18
20
|
}
|
|
@@ -57,6 +59,7 @@ __decorate([
|
|
|
57
59
|
(0, decorators_1.ApiPropertyOptional)(),
|
|
58
60
|
(0, class_validator_1.IsOptional)(),
|
|
59
61
|
(0, class_validator_1.IsNumber)(),
|
|
62
|
+
(0, number_transform_1.ToNumber)(),
|
|
60
63
|
__metadata("design:type", Number)
|
|
61
64
|
], CreateCoworker.prototype, "idCivility", void 0);
|
|
62
65
|
__decorate([
|
|
@@ -119,12 +122,14 @@ __decorate([
|
|
|
119
122
|
(0, decorators_1.ApiProperty)(),
|
|
120
123
|
(0, class_validator_1.IsDefined)(),
|
|
121
124
|
(0, class_validator_1.IsInt)(),
|
|
125
|
+
(0, number_transform_1.ToNumber)(),
|
|
122
126
|
__metadata("design:type", Number)
|
|
123
127
|
], CreateCoworker.prototype, "idOffice", void 0);
|
|
124
128
|
__decorate([
|
|
125
129
|
(0, decorators_1.ApiProperty)(),
|
|
126
130
|
(0, class_validator_1.IsDefined)(),
|
|
127
131
|
(0, class_validator_1.IsEnum)(EntityType_1.EntityType),
|
|
132
|
+
(0, number_transform_1.ToNumber)(),
|
|
128
133
|
__metadata("design:type", Number)
|
|
129
134
|
], CreateCoworker.prototype, "entity", void 0);
|
|
130
135
|
__decorate([
|
|
@@ -132,6 +137,12 @@ __decorate([
|
|
|
132
137
|
(0, class_validator_1.IsOptional)(),
|
|
133
138
|
(0, class_validator_1.IsArray)(),
|
|
134
139
|
(0, class_validator_1.IsInt)({ each: true }),
|
|
140
|
+
(0, class_transformer_1.Transform)(({ value }) => {
|
|
141
|
+
if (Array.isArray(value)) {
|
|
142
|
+
return value.map((v) => Number(v));
|
|
143
|
+
}
|
|
144
|
+
return value;
|
|
145
|
+
}),
|
|
135
146
|
__metadata("design:type", Array)
|
|
136
147
|
], CreateCoworker.prototype, "idRoles", void 0);
|
|
137
148
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateCoworker.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/user/CreateCoworker.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAYyB;AACzB,6DAAgF;AAChF,sFAA2E;AAC3E,yDAAsD;AAEtD,MAAa,cAAc;
|
|
1
|
+
{"version":3,"file":"CreateCoworker.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/user/CreateCoworker.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAYyB;AACzB,yDAA8C;AAC9C,6DAAgF;AAChF,sFAA2E;AAC3E,oFAAyE;AACzE,yDAAsD;AAEtD,MAAa,cAAc;CA6H1B;AA7HD,wCA6HC;AAzHC;IAHC,IAAA,wBAAW,GAAE;IACb,IAAA,2BAAS,GAAE;IACX,IAAA,0BAAQ,GAAE;;iDACO;AAKlB;IAHC,IAAA,wBAAW,GAAE;IACb,IAAA,2BAAS,GAAE;IACX,IAAA,0BAAQ,GAAE;;gDACM;AAKjB;IAHC,IAAA,wBAAW,GAAE;IACb,IAAA,2BAAS,GAAE;IACX,IAAA,yBAAO,GAAE;;6CACI;AAKd;IAHC,IAAA,wBAAW,GAAE;IACb,IAAA,2BAAS,GAAE;IACX,IAAA,0BAAQ,GAAE;;gDACM;AAKjB;IAHC,IAAA,wBAAW,GAAE;IACb,IAAA,2BAAS,GAAE;IACX,IAAA,0BAAQ,GAAE;;gDACM;AAKjB;IAHC,IAAA,wBAAW,GAAE;IACb,IAAA,2BAAS,GAAE;IACX,IAAA,+BAAa,EAAC,IAAI,CAAC;;6CACN;AAMd;IAJC,IAAA,gCAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAQ,GAAE;;kDACS;AAKpB;IAHC,IAAA,wBAAW,EAAC,EAAE,OAAO,EAAE,IAAI,EA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IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;IACT,IAAA,uBAAK,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACrB,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAkB,EAAE,EAAE;QACvC,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;YACzB,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;QACrC,CAAC;QACD,OAAO,KAAe,CAAC;IACzB,CAAC,CAAC;;+CACiB;AAMnB;IAJC,IAAA,gCAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;IACX,IAAA,yBAAO,GAAE;;+CACS;AAMnB;IAJC,IAAA,gCAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;IACT,IAAA,uBAAK,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;qDACG;AAMzB;IAJC,IAAA,gCAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;IACX,IAAA,6BAAS,GAAE;;6CACI","sourcesContent":["import {\n IsArray,\n IsBoolean,\n IsDate,\n IsDefined,\n IsEmail,\n IsEnum,\n IsInt,\n IsNumber,\n IsOptional,\n IsPhoneNumber,\n IsString,\n} from 'class-validator';\nimport { Transform } from 'class-transformer';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils/decorators';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\nimport { ToNumber } from '../../../../utils/transforms/number.transform';\nimport { EntityType } from '../../../Enum/EntityType';\n\nexport class CreateCoworker {\n @ApiProperty()\n @IsDefined()\n @IsString()\n firstname: string;\n\n @ApiProperty()\n @IsDefined()\n @IsString()\n lastname: string;\n\n @ApiProperty()\n @IsDefined()\n @IsEmail()\n email: string;\n\n @ApiProperty()\n @IsDefined()\n @IsString()\n username: string;\n\n @ApiProperty()\n @IsDefined()\n @IsString()\n password: string;\n\n @ApiProperty()\n @IsDefined()\n @IsPhoneNumber('FR')\n phone: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n @ToNumber()\n idCivility?: number;\n\n @ApiProperty({ default: true })\n @IsBoolean()\n @ToBoolean()\n active: boolean;\n\n @ApiProperty({ default: false })\n @IsBoolean()\n @ToBoolean()\n flexitime: boolean;\n\n @ApiPropertyOptional({ default: true })\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n isThemeLight?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n calendlyUrl?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n positionLabel?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n apprentice?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsDate()\n birthdate?: Date;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsDate()\n arrivalDate?: Date;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsDate()\n confirmedAt?: Date;\n\n @ApiProperty()\n @IsDefined()\n @IsInt()\n @ToNumber()\n idOffice: number;\n\n @ApiProperty()\n @IsDefined()\n @IsEnum(EntityType)\n @ToNumber()\n entity: EntityType;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsArray()\n @IsInt({ each: true })\n @Transform(({ value }: { value: any }) => {\n if (Array.isArray(value)) {\n return value.map((v) => Number(v));\n }\n return value as number;\n })\n idRoles?: number[];\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsDefined()\n @IsArray()\n idTeams?: number[];\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsArray()\n @IsInt({ each: true })\n idUsersBrands?: number[];\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n isVpn?: boolean;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
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,CAAC;IACjB,aAAa,CAAC,EAAE,aAAa,EAAE,CAAC;IAChC,aAAa,CAAC,EAAE,YAAY,EAAE,CAAC;IAC/B,0BAA0B,CAAC,EAAE,2BAA2B,EAAE,CAAC;IAC3D,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB,aAAa,CAAC,EAAE,QAAQ,CAAC;IACzB,WAAW,CAAC,EAAE,YAAY,CAAC;IAC3B,WAAW,CAAC,EAAE,UAAU,EAAE,CAAC;IAC3B,cAAc,CAAC,EAAE,aAAa,EAAE,CAAC;IACjC,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;CAC3C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IUser.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/IUser.ts"],"names":[],"mappings":"","sourcesContent":["import { ICalendarEvent } from './ICalendarEvent';\nimport { IRole } from './IRole';\nimport { ICivility } from './ICivility';\nimport { IFile } from './IFile';\nimport { IUserSocietyPermission } from './IUserSocietyPermission';\nimport { IWorkingSchedule } from './IWorkingSchedule';\nimport { IRecontactHistory } from './IRecontactHistory';\nimport { IAllowedIp } from './IAllowedIp';\nimport { IBusinessPartner } from './IBusinessPartner';\nimport { ILog } from './ILog';\nimport { INotification } from './INotification';\nimport { ISociety } from './ISociety';\nimport { ITeam } from './ITeam';\nimport { IMobile } from './IMobile';\nimport { IRoleUser } from './IRoleUser';\nimport { ITimeRecorder } from './ITimeRecorder';\nimport { EntityType } from '../../Enum/EntityType';\nimport { IMailAddress } from './IMailAddress';\nimport { IAccountingStatementHistory } from './IAccountingStatementHistory';\nimport { ICountry } from './ICountry';\nimport { INationality } from './INationality';\nimport { IUserBrand } from './IUserBrand';\nimport { ICollaboraterDetail } from './ICollaboraterDetail';\nimport { IUserTimeSlot } from './IUserTimeSlot';\nimport { IUserTeam } from './IUserTeam';\nimport { MfaMode } from '../../Enum/MfaMode';\n\n// eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents\ntype isAny<T> = T | any;\n\n// users\nexport interface IUser {\n id?: number;\n firstname?: string | null;\n lastname?: string | null;\n fullname?: string | null;\n avatarLink?: string;\n email?: string | null;\n email2?: string | null;\n isMigrated?: boolean;\n username?: string | null;\n stripeCustomerId?: string | null;\n stripeCustomerIdErp?: string | null;\n positionLabel?: string | null;\n sha?: string | null;\n hash?: string | null;\n password?: string | null;\n idFile?: number | null;\n quality?: string | null; //FIXME: à supprimer ?\n phone?: string | null;\n phone2?: string | null;\n textMessageNumber?: string | null;\n prefix?: string | null;\n tokenLostPassword?: string | null;\n twoFactorEnabled?: boolean | null;\n mfaMode?: MfaMode | null;\n tokenApi?: string | null;\n tokenNotification?: string | null;\n tokenSocket?: string | null;\n authyId?: string | null;\n authCode?: string | null;\n authCodeDate?: Date | null;\n tutoTransaction?: boolean | null;\n lastConnection?: Date | null;\n beforeLastConnection?: Date | null;\n active?: boolean | null;\n toContact?: boolean;\n stateProspect?: boolean | null;\n birthdate?: Date | null;\n arrivalDate?: Date | null;\n entity?: EntityType | null;\n validityDateOfResidencePermit?: Date | null;\n isNewProspect?: boolean;\n hasAccountNumberDisplay?: boolean;\n isResponderActive?: boolean;\n suppDoublon?: boolean | null;\n calendlyUrl?: string | null;\n idCivility?: number | null;\n idCommercialDoublon?: number | null;\n idProspectIsWith?: number | null;\n apprentice?: boolean;\n flexitime?: boolean;\n /**\n * @deprecated\n */\n idCommercialGrade?: number | null;\n smsNotAllowed?: boolean;\n restDaysAbsence?: number | null;\n startOnboarding?: Date | null;\n societyByDefault?: number | null;\n longAbsence?: boolean | null;\n isDailyContract?: boolean | null;\n internationalPhone?: string | null;\n isThemeLight?: boolean;\n createdAt?: Date | null;\n updatedAt?: Date | null;\n confirmedAt?: Date | null;\n tokenConfirmedAt?: string | null;\n idPoleLeader?: number | null;\n affiliateTrackingId?: number | null;\n streetNumber?: string | null;\n address?: string;\n zipCodeBirth?: string;\n //@deprecated Use cityOfBirth instead\n birthPlace?: string;\n departmentBirth?: string;\n idCountryBirth?: number;\n birthname?: string;\n cityOfBirth?: string;\n idCountry?: number;\n zipCode?: string | null;\n city?: string | null;\n idNationality?: number;\n maritalStatus?: string;\n idMaritalStatus?: number;\n\n // Associations\n userHasEvent?: isAny<ICalendarEvent>[];\n roles?: IRole[];\n roleUser?: IRoleUser;\n genders?: ICivility;\n commercial?: IUser;\n prospectPrincipal?: IUser;\n avatar?: IFile;\n userPermissions?: IUserSocietyPermission[];\n workingSchedules?: IWorkingSchedule[];\n recontactHistories?: IRecontactHistory[];\n poleLeader?: IUser;\n allowedIps?: IAllowedIp[];\n businessPartners?: IBusinessPartner[];\n poleAccountants?: IUser[];\n logs?: ILog[];\n notifications?: INotification[];\n societies?: ISociety[];\n teams?: ITeam[];\n userTeams?: IUserTeam[];\n mobile?: IMobile;\n timeRecorders?: ITimeRecorder[];\n mailAddresses?: IMailAddress[];\n accountingStatementHistory?: IAccountingStatementHistory[];\n country?: ICountry;\n countryLiving?: ICountry;\n nationality?: INationality;\n usersBrands?: IUserBrand[];\n usersTimeSlots?: IUserTimeSlot[];\n collaboraterDetails?: ICollaboraterDetail;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"IUser.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/IUser.ts"],"names":[],"mappings":"","sourcesContent":["import { ICalendarEvent } from './ICalendarEvent';\nimport { IRole } from './IRole';\nimport { ICivility } from './ICivility';\nimport { IFile } from './IFile';\nimport { IUserSocietyPermission } from './IUserSocietyPermission';\nimport { IWorkingSchedule } from './IWorkingSchedule';\nimport { IRecontactHistory } from './IRecontactHistory';\nimport { IAllowedIp } from './IAllowedIp';\nimport { IBusinessPartner } from './IBusinessPartner';\nimport { ILog } from './ILog';\nimport { INotification } from './INotification';\nimport { ISociety } from './ISociety';\nimport { ITeam } from './ITeam';\nimport { IMobile } from './IMobile';\nimport { IRoleUser } from './IRoleUser';\nimport { ITimeRecorder } from './ITimeRecorder';\nimport { EntityType } from '../../Enum/EntityType';\nimport { IMailAddress } from './IMailAddress';\nimport { IAccountingStatementHistory } from './IAccountingStatementHistory';\nimport { ICountry } from './ICountry';\nimport { INationality } from './INationality';\nimport { IUserBrand } from './IUserBrand';\nimport { ICollaboraterDetail } from './ICollaboraterDetail';\nimport { IUserTimeSlot } from './IUserTimeSlot';\nimport { IUserTeam } from './IUserTeam';\nimport { MfaMode } from '../../Enum/MfaMode';\n\n// eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents\ntype isAny<T> = T | any;\n\n// users\nexport interface IUser {\n id?: number;\n firstname?: string | null;\n lastname?: string | null;\n fullname?: string | null;\n avatarLink?: string;\n email?: string | null;\n email2?: string | null;\n isMigrated?: boolean;\n username?: string | null;\n stripeCustomerId?: string | null;\n stripeCustomerIdErp?: string | null;\n positionLabel?: string | null;\n sha?: string | null;\n hash?: string | null;\n password?: string | null;\n idFile?: number | null;\n quality?: string | null; //FIXME: à supprimer ?\n phone?: string | null;\n phone2?: string | null;\n textMessageNumber?: string | null;\n prefix?: string | null;\n tokenLostPassword?: string | null;\n twoFactorEnabled?: boolean | null;\n mfaMode?: MfaMode | null;\n tokenApi?: string | null;\n tokenNotification?: string | null;\n tokenSocket?: string | null;\n authyId?: string | null;\n authCode?: string | null;\n authCodeDate?: Date | null;\n tutoTransaction?: boolean | null;\n lastConnection?: Date | null;\n beforeLastConnection?: Date | null;\n active?: boolean | null;\n toContact?: boolean;\n stateProspect?: boolean | null;\n birthdate?: Date | null;\n arrivalDate?: Date | null;\n entity?: EntityType | null;\n validityDateOfResidencePermit?: Date | null;\n isNewProspect?: boolean;\n hasAccountNumberDisplay?: boolean;\n isResponderActive?: boolean;\n suppDoublon?: boolean | null;\n calendlyUrl?: string | null;\n idCivility?: number | null;\n idCommercialDoublon?: number | null;\n idProspectIsWith?: number | null;\n apprentice?: boolean;\n flexitime?: boolean;\n idOffice?: number | null;\n /**\n * @deprecated\n */\n idCommercialGrade?: number | null;\n smsNotAllowed?: boolean;\n restDaysAbsence?: number | null;\n startOnboarding?: Date | null;\n societyByDefault?: number | null;\n longAbsence?: boolean | null;\n isDailyContract?: boolean | null;\n internationalPhone?: string | null;\n isThemeLight?: boolean;\n createdAt?: Date | null;\n updatedAt?: Date | null;\n confirmedAt?: Date | null;\n tokenConfirmedAt?: string | null;\n idPoleLeader?: number | null;\n affiliateTrackingId?: number | null;\n streetNumber?: string | null;\n address?: string;\n zipCodeBirth?: string;\n //@deprecated Use cityOfBirth instead\n birthPlace?: string;\n departmentBirth?: string;\n idCountryBirth?: number;\n birthname?: string;\n cityOfBirth?: string;\n idCountry?: number;\n zipCode?: string | null;\n city?: string | null;\n idNationality?: number;\n maritalStatus?: string;\n idMaritalStatus?: number;\n\n // Associations\n userHasEvent?: isAny<ICalendarEvent>[];\n roles?: IRole[];\n roleUser?: IRoleUser;\n genders?: ICivility;\n commercial?: IUser;\n prospectPrincipal?: IUser;\n avatar?: IFile;\n userPermissions?: IUserSocietyPermission[];\n workingSchedules?: IWorkingSchedule[];\n recontactHistories?: IRecontactHistory[];\n poleLeader?: IUser;\n allowedIps?: IAllowedIp[];\n businessPartners?: IBusinessPartner[];\n poleAccountants?: IUser[];\n logs?: ILog[];\n notifications?: INotification[];\n societies?: ISociety[];\n teams?: ITeam[];\n userTeams?: IUserTeam[];\n mobile?: IMobile;\n timeRecorders?: ITimeRecorder[];\n mailAddresses?: IMailAddress[];\n accountingStatementHistory?: IAccountingStatementHistory[];\n country?: ICountry;\n countryLiving?: ICountry;\n nationality?: INationality;\n usersBrands?: IUserBrand[];\n usersTimeSlots?: IUserTimeSlot[];\n collaboraterDetails?: ICollaboraterDetail;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"societyApproval.d.ts","sourceRoot":"","sources":["../../../ts/utils/societyApproval.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACvE,OAAO,EACL,2BAA2B,EAC3B,6BAA6B,EAE7B,+BAA+B,EAChC,MAAM,+BAA+B,CAAC;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,GAC1C,MAAM,GAAG,SAAS,CAIpB;AAYD;;;;;GAKG;AACH,wBAAgB,wBAAwB,CACtC,WAAW,EAAE,iBAAiB,EAC9B,cAAc,EAAE,2BAA2B,GAC1C,+BAA+B,GAAG,SAAS,CAG7C;AAED;;;;;GAKG;AACH,wBAAgB,yBAAyB,CAAC,gBAAgB,EAAE,gBAAgB,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAgEhH"}
|
|
@@ -71,40 +71,43 @@ function getApprovalDocumentInfos(idLegalForm, idDocumentType) {
|
|
|
71
71
|
* @returns L'objet de données formaté pour le template
|
|
72
72
|
*/
|
|
73
73
|
function buildApprovalTemplateData(existingApproval, style) {
|
|
74
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5;
|
|
75
|
-
const yearInText = (0, amount_1.convertNumberToLetter)(+dayjs().format('YYYY')).toLowerCase();
|
|
76
|
-
const dayAndMonthInText = `${(0, amount_1.convertNumberToLetter)(+dayjs().format('D'))} ${dayjs(
|
|
74
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10;
|
|
75
|
+
const yearInText = (0, amount_1.convertNumberToLetter)(+dayjs(((_a = existingApproval === null || existingApproval === void 0 ? void 0 : existingApproval.generatingDatas) === null || _a === void 0 ? void 0 : _a.approvalDate) || null).format('YYYY')).toLowerCase();
|
|
76
|
+
const dayAndMonthInText = `${(0, amount_1.convertNumberToLetter)(+dayjs(((_b = existingApproval === null || existingApproval === void 0 ? void 0 : existingApproval.generatingDatas) === null || _b === void 0 ? void 0 : _b.approvalDate) || null).format('D'))} ${dayjs(((_c = existingApproval === null || existingApproval === void 0 ? void 0 : existingApproval.generatingDatas) === null || _c === void 0 ? void 0 : _c.approvalDate) || null)
|
|
77
|
+
.locale('fr')
|
|
78
|
+
.format('MMMM')
|
|
79
|
+
.toLowerCase()}`;
|
|
77
80
|
const brand = (0, brands_1.getBrand)();
|
|
78
81
|
return Object.assign(Object.assign({
|
|
79
82
|
// Variables globales
|
|
80
83
|
style,
|
|
81
84
|
yearInText,
|
|
82
85
|
dayAndMonthInText, date: dayjs().locale('fr').format('DD MMMM YYYY'), companyInformation: {
|
|
83
|
-
rcs: (
|
|
84
|
-
nomRaisonSociale: (
|
|
85
|
-
city: (
|
|
86
|
-
postalAddress: (
|
|
87
|
-
montantCapital: (
|
|
88
|
-
statut: (
|
|
89
|
-
ECOrderCity: (
|
|
86
|
+
rcs: (_d = brand === null || brand === void 0 ? void 0 : brand.companyInformation) === null || _d === void 0 ? void 0 : _d.rcs,
|
|
87
|
+
nomRaisonSociale: (_e = brand === null || brand === void 0 ? void 0 : brand.companyInformation) === null || _e === void 0 ? void 0 : _e.nomRaisonSociale,
|
|
88
|
+
city: (_f = brand === null || brand === void 0 ? void 0 : brand.companyInformation) === null || _f === void 0 ? void 0 : _f.city,
|
|
89
|
+
postalAddress: (_g = brand === null || brand === void 0 ? void 0 : brand.companyInformation) === null || _g === void 0 ? void 0 : _g.postalAddress,
|
|
90
|
+
montantCapital: (_h = brand === null || brand === void 0 ? void 0 : brand.companyInformation) === null || _h === void 0 ? void 0 : _h.montantCapital,
|
|
91
|
+
statut: (_j = brand === null || brand === void 0 ? void 0 : brand.companyInformation) === null || _j === void 0 ? void 0 : _j.statut,
|
|
92
|
+
ECOrderCity: (_k = brand === null || brand === void 0 ? void 0 : brand.companyInformation) === null || _k === void 0 ? void 0 : _k.ECOrderCity,
|
|
90
93
|
}, owner: {
|
|
91
|
-
identity: `${((
|
|
92
|
-
quality: (
|
|
93
|
-
} }, existingApproval), { generatingDatas: Object.assign(Object.assign(Object.assign({}, existingApproval === null || existingApproval === void 0 ? void 0 : existingApproval.generatingDatas), (((
|
|
94
|
+
identity: `${((_p = (_o = (_m = (_l = existingApproval === null || existingApproval === void 0 ? void 0 : existingApproval.exercice) === null || _l === void 0 ? void 0 : _l.society) === null || _m === void 0 ? void 0 : _m.users) === null || _o === void 0 ? void 0 : _o[0]) === null || _p === void 0 ? void 0 : _p.idCivility) === 1 ? 'Monsieur' : 'Madame'} ${(_t = (_s = (_r = (_q = existingApproval === null || existingApproval === void 0 ? void 0 : existingApproval.exercice) === null || _q === void 0 ? void 0 : _q.society) === null || _r === void 0 ? void 0 : _r.users) === null || _s === void 0 ? void 0 : _s[0]) === null || _t === void 0 ? void 0 : _t.firstname} ${(_x = (_w = (_v = (_u = existingApproval === null || existingApproval === void 0 ? void 0 : existingApproval.exercice) === null || _u === void 0 ? void 0 : _u.society) === null || _v === void 0 ? void 0 : _v.users) === null || _w === void 0 ? void 0 : _w[0]) === null || _x === void 0 ? void 0 : _x.lastname} `,
|
|
95
|
+
quality: (_y = Quality_1.QualityList.find((ql) => { var _a, _b, _c, _d, _e, _f; return ql.id === ((_f = (_e = (_d = (_c = (_b = (_a = existingApproval === null || existingApproval === void 0 ? void 0 : existingApproval.exercice) === null || _a === void 0 ? void 0 : _a.society) === null || _b === void 0 ? void 0 : _b.users) === null || _c === void 0 ? void 0 : _c[0]) === null || _d === void 0 ? void 0 : _d.businessPartners) === null || _e === void 0 ? void 0 : _e[0]) === null || _f === void 0 ? void 0 : _f.idQuality); })) === null || _y === void 0 ? void 0 : _y.label,
|
|
96
|
+
} }, existingApproval), { generatingDatas: Object.assign(Object.assign(Object.assign({}, existingApproval === null || existingApproval === void 0 ? void 0 : existingApproval.generatingDatas), (((_z = existingApproval === null || existingApproval === void 0 ? void 0 : existingApproval.generatingDatas) === null || _z === void 0 ? void 0 : _z.approvalDate)
|
|
94
97
|
? {
|
|
95
|
-
approvalDate: dayjs((
|
|
98
|
+
approvalDate: dayjs((_0 = existingApproval === null || existingApproval === void 0 ? void 0 : existingApproval.generatingDatas) === null || _0 === void 0 ? void 0 : _0.approvalDate)
|
|
96
99
|
.locale('fr')
|
|
97
100
|
.format('DD MMMM YYYY')
|
|
98
101
|
.toUpperCase(),
|
|
99
102
|
}
|
|
100
|
-
: {})), (((
|
|
103
|
+
: {})), (((_1 = existingApproval === null || existingApproval === void 0 ? void 0 : existingApproval.generatingDatas) === null || _1 === void 0 ? void 0 : _1.approvalDividendsPaymentDate)
|
|
101
104
|
? {
|
|
102
|
-
approvalDividendsPaymentDate: dayjs((
|
|
105
|
+
approvalDividendsPaymentDate: dayjs((_2 = existingApproval === null || existingApproval === void 0 ? void 0 : existingApproval.generatingDatas) === null || _2 === void 0 ? void 0 : _2.approvalDividendsPaymentDate)
|
|
103
106
|
.locale('fr')
|
|
104
107
|
.format('DD MMMM YYYY'),
|
|
105
108
|
}
|
|
106
|
-
: {})), exercice: Object.assign(Object.assign({}, existingApproval === null || existingApproval === void 0 ? void 0 : existingApproval.exercice), { society: Object.assign(Object.assign({}, (
|
|
107
|
-
? (0, siretValidation_1.siretToSiren)(existingApproval.exercice.society.siret)
|
|
108
|
-
: null }), endDate: dayjs((
|
|
109
|
+
: {})), exercice: Object.assign(Object.assign({}, existingApproval === null || existingApproval === void 0 ? void 0 : existingApproval.exercice), { society: Object.assign(Object.assign({}, (_3 = existingApproval === null || existingApproval === void 0 ? void 0 : existingApproval.exercice) === null || _3 === void 0 ? void 0 : _3.society), { cityOfGreffe: getCityOfGreffeName((_5 = (_4 = existingApproval === null || existingApproval === void 0 ? void 0 : existingApproval.exercice) === null || _4 === void 0 ? void 0 : _4.society) === null || _5 === void 0 ? void 0 : _5.idCityOfGreffe).toUpperCase(), siren: ((_7 = (_6 = existingApproval === null || existingApproval === void 0 ? void 0 : existingApproval.exercice) === null || _6 === void 0 ? void 0 : _6.society) === null || _7 === void 0 ? void 0 : _7.siret)
|
|
110
|
+
? (_9 = (_8 = (0, siretValidation_1.siretToSiren)(existingApproval.exercice.society.siret)) === null || _8 === void 0 ? void 0 : _8.replace(/(\d{3})(\d{3})(\d{3})/, '$1 $2 $3')) !== null && _9 !== void 0 ? _9 : null
|
|
111
|
+
: null }), endDate: dayjs((_10 = existingApproval === null || existingApproval === void 0 ? void 0 : existingApproval.exercice) === null || _10 === void 0 ? void 0 : _10.endDate).locale('fr').format('DD MMMM YYYY').toLowerCase() }) });
|
|
109
112
|
}
|
|
110
113
|
//# sourceMappingURL=societyApproval.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"societyApproval.js","sourceRoot":"","sources":["../../../ts/utils/societyApproval.ts"],"names":[],"mappings":";;AAqBA,4CAEC;AAOD,0EAIC;AASD,0EAOC;AAkBD,4DAMC;AAQD,8DAyDC;AA3ID,uDAAuE;AACvE,mEAKuC;AAEvC,mDAAoD;AACpD,qCAAoC;AACpC,qCAAiD;AACjD,+BAA+B;AAC/B,6DAAgE;AAChE,uDAAiD;AAEjD;;;;;GAKG;AACH,SAAgB,gBAAgB,CAAC,WAA8B,EAAE,WAAmB,EAAE;;IACpF,OAAO,MAAA,MAAA,MAAM,CAAC,MAAM,CAAC,qBAAS,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,KAAK,WAAW,CAAC,0CAAE,IAAI,mCAAI,QAAQ,CAAC;AACxF,CAAC;AAED;;;;GAIG;AACH,SAAgB,+BAA+B,CAC7C,WAA8B;IAE9B,OAAO,qDAAmC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,WAAW,KAAK,WAAW,CAAC,CAAC;AAClG,CAAC;AAED;;;;;GAKG;AACH,kDAAkD;AAClD,SAAgB,+BAA+B,CAC7C,WAA8B,EAC9B,cAA2C;IAE3C,MAAM,MAAM,GAAG,+BAA+B,CAAC,WAAW,CAAC,CAAC;IAC5D,MAAM,QAAQ,GAAG,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,SAAS,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAA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aAAhB,gBAAgB,uBAAhB,gBAAgB,CAAE,QAAQ,0CAAE,OAAO,0CAAE,cAAc,CAAC,CAAC,WAAW,EAAE,EACpG,KAAK,EAAE,CAAA,MAAA,MAAA,gBAAgB,aAAhB,gBAAgB,uBAAhB,gBAAgB,CAAE,QAAQ,0CAAE,OAAO,0CAAE,KAAK;oBAC/C,CAAC,CAAC,IAAA,8BAAY,EAAC,gBAAgB,CAAC,QAAQ,CAAC,OAAO,CAAC,KAAK,CAAC;oBACvD,CAAC,CAAC,IAAI,KAEV,OAAO,EAAE,KAAK,CAAC,MAAA,gBAAgB,aAAhB,gBAAgB,uBAAhB,gBAAgB,CAAE,QAAQ,0CAAE,OAAO,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,WAAW,EAAE,OAEvG;AACJ,CAAC","sourcesContent":["import { LegalForm, LegalFormTypeEnum } from '../types/Enum/LegalForm';\nimport {\n SocietyApprovalDocumentType,\n SocietyApprovalDocumentConfig,\n SocietyApprovalDocumentsByLegalForm,\n SocietyApprovalDocumentTemplate,\n} from '../types/Enum/SocietyApproval';\nimport { ISocietyApproval } from '../types/Interface/models/ISocietyApproval';\nimport { QualityList } from '../types/Enum/Quality';\nimport { getBrand } from './brands';\nimport { convertNumberToLetter } from './amount';\nimport * as dayjs from 'dayjs';\nimport { CityOfGreffeDetail } from '../types/Enum/CityOfGreffe';\nimport { siretToSiren } from './siretValidation';\n\n/**\n * Récupère le nom de la forme juridique\n * @param idLegalForm - L'identifiant de la forme juridique\n * @param fallback - Valeur par défaut si non trouvée\n * @returns Le nom de la forme juridique\n */\nexport function getLegalFormName(idLegalForm: LegalFormTypeEnum, fallback: string = ''): string {\n return Object.values(LegalForm).find((lf) => lf.id === idLegalForm)?.name ?? fallback;\n}\n\n/**\n * Récupère la configuration des documents d'approbation pour une forme juridique donnée\n * @param idLegalForm - L'identifiant de la forme juridique\n * @returns La configuration des documents ou undefined si non trouvée\n */\nexport function getApprovalDocumentsByLegalForm(\n idLegalForm: LegalFormTypeEnum,\n): SocietyApprovalDocumentConfig | undefined {\n return SocietyApprovalDocumentsByLegalForm.find((config) => config.idLegalForm === idLegalForm);\n}\n\n/**\n * Récupère le nom du template pour un document spécifique et une forme juridique\n * @param idLegalForm - L'identifiant de la forme juridique\n * @param idDocumentType - Le type de document d'approbation\n * @returns Le nom du template ou undefined si non trouvé\n */\n//@deprecated use getApprovalDocumentInfos instead\nexport function getApprovalDocumentTemplateName(\n idLegalForm: LegalFormTypeEnum,\n idDocumentType: SocietyApprovalDocumentType,\n): string | undefined {\n const config = getApprovalDocumentsByLegalForm(idLegalForm);\n const document = config?.documents.find((doc) => doc.idDocumentType === idDocumentType);\n return document?.templateName;\n}\n\n/**\n * Récupère le texte de la ville du greffe\n * @param idCityOfGreffe - L'identifiant de la ville du greffe\n * @returns Le texte de la ville ou une chaîne vide\n */\nfunction getCityOfGreffeName(idCityOfGreffe: number | null | undefined): string {\n if (!idCityOfGreffe) return '';\n return CityOfGreffeDetail.find((c) => c.id === idCityOfGreffe)?.text ?? '';\n}\n\n/**\n * Récupère le nom du template pour un document spécifique et une forme juridique\n * @param idLegalForm - L'identifiant de la forme juridique\n * @param idDocumentType - Le type de document d'approbation\n * @returns Le nom du template ou undefined si non trouvé\n */\nexport function getApprovalDocumentInfos(\n idLegalForm: LegalFormTypeEnum,\n idDocumentType: SocietyApprovalDocumentType,\n): SocietyApprovalDocumentTemplate | undefined {\n const config = getApprovalDocumentsByLegalForm(idLegalForm);\n return config?.documents.find((doc) => doc.idDocumentType === idDocumentType);\n}\n\n/**\n * Construit les données formatées pour le template d'approbation\n * @param existingApproval - Les données d'approbation de la société\n * @param style - Le style HTML pour le document\n * @returns L'objet de données formaté pour le template\n */\nexport function buildApprovalTemplateData(existingApproval: ISocietyApproval, style: string): Record<string, any> {\n const yearInText = convertNumberToLetter(+dayjs().format('YYYY')).toLowerCase();\n const dayAndMonthInText = `${convertNumberToLetter(+dayjs().format('D'))} ${dayjs().locale('fr').format('MMMM').toLowerCase()}`;\n const brand = getBrand();\n return {\n // Variables globales\n style,\n yearInText,\n dayAndMonthInText,\n date: dayjs().locale('fr').format('DD MMMM YYYY'),\n companyInformation: {\n rcs: brand?.companyInformation?.rcs,\n nomRaisonSociale: brand?.companyInformation?.nomRaisonSociale,\n city: brand?.companyInformation?.city,\n postalAddress: brand?.companyInformation?.postalAddress,\n montantCapital: brand?.companyInformation?.montantCapital,\n statut: brand?.companyInformation?.statut,\n ECOrderCity: brand?.companyInformation?.ECOrderCity,\n },\n owner: {\n identity: `${existingApproval?.exercice?.society?.users?.[0]?.idCivility === 1 ? 'Monsieur' : 'Madame'} ${existingApproval?.exercice?.society?.users?.[0]?.firstname} ${existingApproval?.exercice?.society?.users?.[0]?.lastname} `,\n quality: QualityList.find(\n (ql) => ql.id === existingApproval?.exercice?.society?.users?.[0]?.businessPartners?.[0]?.idQuality,\n )?.label,\n },\n // Variables stockées en base\n ...existingApproval,\n generatingDatas: {\n ...existingApproval?.generatingDatas,\n ...(existingApproval?.generatingDatas?.approvalDate\n ? {\n approvalDate: dayjs(existingApproval?.generatingDatas?.approvalDate)\n .locale('fr')\n .format('DD MMMM YYYY')\n .toUpperCase(),\n }\n : {}),\n ...(existingApproval?.generatingDatas?.approvalDividendsPaymentDate\n ? {\n approvalDividendsPaymentDate: dayjs(existingApproval?.generatingDatas?.approvalDividendsPaymentDate)\n .locale('fr')\n .format('DD MMMM YYYY'),\n }\n : {}),\n },\n exercice: {\n ...existingApproval?.exercice,\n society: {\n ...existingApproval?.exercice?.society,\n cityOfGreffe: getCityOfGreffeName(existingApproval?.exercice?.society?.idCityOfGreffe).toUpperCase(),\n siren: existingApproval?.exercice?.society?.siret\n ? siretToSiren(existingApproval.exercice.society.siret)\n : null,\n },\n endDate: dayjs(existingApproval?.exercice?.endDate).locale('fr').format('DD MMMM YYYY').toLowerCase(),\n },\n };\n}\n"]}
|
|
1
|
+
{"version":3,"file":"societyApproval.js","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AhB,gBAAgB,uBAAhB,gBAAgB,CAAE,QAAQ,0CAAE,OAAO,0CAAE,cAAc,CAAC,CAAC,WAAW,EAAE,EACpG,KAAK,EAAE,CAAA,MAAA,MAAA,gBAAgB,aAAhB,gBAAgB,uBAAhB,gBAAgB,CAAE,QAAQ,0CAAE,OAAO,0CAAE,KAAK;oBAC/C,CAAC,CAAC,MAAA,MAAA,IAAA,8BAAY,EAAC,gBAAgB,CAAC,QAAQ,CAAC,OAAO,CAAC,KAAK,CAAC,0CAAE,OAAO,CAAC,uBAAuB,EAAE,UAAU,CAAC,mCAAI,IAAI;oBAC7G,CAAC,CAAC,IAAI,KAEV,OAAO,EAAE,KAAK,CAAC,OAAA,gBAAgB,aAAhB,gBAAgB,uBAAhB,gBAAgB,CAAE,QAAQ,4CAAE,OAAO,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,WAAW,EAAE,OAEvG;AACJ,CAAC","sourcesContent":["import { LegalForm, LegalFormTypeEnum } from '../types/Enum/LegalForm';\nimport {\n SocietyApprovalDocumentType,\n SocietyApprovalDocumentConfig,\n SocietyApprovalDocumentsByLegalForm,\n SocietyApprovalDocumentTemplate,\n} from '../types/Enum/SocietyApproval';\nimport { ISocietyApproval } from '../types/Interface/models/ISocietyApproval';\nimport { QualityList } from '../types/Enum/Quality';\nimport { getBrand } from './brands';\nimport { convertNumberToLetter } from './amount';\nimport * as dayjs from 'dayjs';\nimport { CityOfGreffeDetail } from '../types/Enum/CityOfGreffe';\nimport { siretToSiren } from './siretValidation';\n\n/**\n * Récupère le nom de la forme juridique\n * @param idLegalForm - L'identifiant de la forme juridique\n * @param fallback - Valeur par défaut si non trouvée\n * @returns Le nom de la forme juridique\n */\nexport function getLegalFormName(idLegalForm: LegalFormTypeEnum, fallback: string = ''): string {\n return Object.values(LegalForm).find((lf) => lf.id === idLegalForm)?.name ?? fallback;\n}\n\n/**\n * Récupère la configuration des documents d'approbation pour une forme juridique donnée\n * @param idLegalForm - L'identifiant de la forme juridique\n * @returns La configuration des documents ou undefined si non trouvée\n */\nexport function getApprovalDocumentsByLegalForm(\n idLegalForm: LegalFormTypeEnum,\n): SocietyApprovalDocumentConfig | undefined {\n return SocietyApprovalDocumentsByLegalForm.find((config) => config.idLegalForm === idLegalForm);\n}\n\n/**\n * Récupère le nom du template pour un document spécifique et une forme juridique\n * @param idLegalForm - L'identifiant de la forme juridique\n * @param idDocumentType - Le type de document d'approbation\n * @returns Le nom du template ou undefined si non trouvé\n */\n//@deprecated use getApprovalDocumentInfos instead\nexport function getApprovalDocumentTemplateName(\n idLegalForm: LegalFormTypeEnum,\n idDocumentType: SocietyApprovalDocumentType,\n): string | undefined {\n const config = getApprovalDocumentsByLegalForm(idLegalForm);\n const document = config?.documents.find((doc) => doc.idDocumentType === idDocumentType);\n return document?.templateName;\n}\n\n/**\n * Récupère le texte de la ville du greffe\n * @param idCityOfGreffe - L'identifiant de la ville du greffe\n * @returns Le texte de la ville ou une chaîne vide\n */\nfunction getCityOfGreffeName(idCityOfGreffe: number | null | undefined): string {\n if (!idCityOfGreffe) return '';\n return CityOfGreffeDetail.find((c) => c.id === idCityOfGreffe)?.text ?? '';\n}\n\n/**\n * Récupère le nom du template pour un document spécifique et une forme juridique\n * @param idLegalForm - L'identifiant de la forme juridique\n * @param idDocumentType - Le type de document d'approbation\n * @returns Le nom du template ou undefined si non trouvé\n */\nexport function getApprovalDocumentInfos(\n idLegalForm: LegalFormTypeEnum,\n idDocumentType: SocietyApprovalDocumentType,\n): SocietyApprovalDocumentTemplate | undefined {\n const config = getApprovalDocumentsByLegalForm(idLegalForm);\n return config?.documents.find((doc) => doc.idDocumentType === idDocumentType);\n}\n\n/**\n * Construit les données formatées pour le template d'approbation\n * @param existingApproval - Les données d'approbation de la société\n * @param style - Le style HTML pour le document\n * @returns L'objet de données formaté pour le template\n */\nexport function buildApprovalTemplateData(existingApproval: ISocietyApproval, style: string): Record<string, any> {\n const yearInText = convertNumberToLetter(\n +dayjs(existingApproval?.generatingDatas?.approvalDate || null).format('YYYY'),\n ).toLowerCase();\n const dayAndMonthInText = `${convertNumberToLetter(+dayjs(existingApproval?.generatingDatas?.approvalDate || null).format('D'))} ${dayjs(\n existingApproval?.generatingDatas?.approvalDate || null,\n )\n .locale('fr')\n .format('MMMM')\n .toLowerCase()}`;\n const brand = getBrand();\n return {\n // Variables globales\n style,\n yearInText,\n dayAndMonthInText,\n date: dayjs().locale('fr').format('DD MMMM YYYY'),\n companyInformation: {\n rcs: brand?.companyInformation?.rcs,\n nomRaisonSociale: brand?.companyInformation?.nomRaisonSociale,\n city: brand?.companyInformation?.city,\n postalAddress: brand?.companyInformation?.postalAddress,\n montantCapital: brand?.companyInformation?.montantCapital,\n statut: brand?.companyInformation?.statut,\n ECOrderCity: brand?.companyInformation?.ECOrderCity,\n },\n owner: {\n identity: `${existingApproval?.exercice?.society?.users?.[0]?.idCivility === 1 ? 'Monsieur' : 'Madame'} ${existingApproval?.exercice?.society?.users?.[0]?.firstname} ${existingApproval?.exercice?.society?.users?.[0]?.lastname} `,\n quality: QualityList.find(\n (ql) => ql.id === existingApproval?.exercice?.society?.users?.[0]?.businessPartners?.[0]?.idQuality,\n )?.label,\n },\n // Variables stockées en base\n ...existingApproval,\n generatingDatas: {\n ...existingApproval?.generatingDatas,\n ...(existingApproval?.generatingDatas?.approvalDate\n ? {\n approvalDate: dayjs(existingApproval?.generatingDatas?.approvalDate)\n .locale('fr')\n .format('DD MMMM YYYY')\n .toUpperCase(),\n }\n : {}),\n ...(existingApproval?.generatingDatas?.approvalDividendsPaymentDate\n ? {\n approvalDividendsPaymentDate: dayjs(existingApproval?.generatingDatas?.approvalDividendsPaymentDate)\n .locale('fr')\n .format('DD MMMM YYYY'),\n }\n : {}),\n },\n exercice: {\n ...existingApproval?.exercice,\n society: {\n ...existingApproval?.exercice?.society,\n cityOfGreffe: getCityOfGreffeName(existingApproval?.exercice?.society?.idCityOfGreffe).toUpperCase(),\n siren: existingApproval?.exercice?.society?.siret\n ? siretToSiren(existingApproval.exercice.society.siret)?.replace(/(\\d{3})(\\d{3})(\\d{3})/, '$1 $2 $3') ?? null\n : null,\n },\n endDate: dayjs(existingApproval?.exercice?.endDate).locale('fr').format('DD MMMM YYYY').toLowerCase(),\n },\n };\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"number.transform.d.ts","sourceRoot":"","sources":["../../../../ts/utils/transforms/number.transform.ts"],"names":[],"mappings":"AAmBA,QAAA,MAAM,QAAQ,SAYJ,QAAQ,GAAG,EAAE,KAAK,MAAM,SAIjC,CAAC;AAEF,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ToNumber = void 0;
|
|
4
|
+
const class_transformer_1 = require("class-transformer");
|
|
5
|
+
const valueToNumber = (value) => {
|
|
6
|
+
if (value === null || value === undefined || value === '') {
|
|
7
|
+
return undefined;
|
|
8
|
+
}
|
|
9
|
+
if (typeof value === 'number') {
|
|
10
|
+
return value;
|
|
11
|
+
}
|
|
12
|
+
if (typeof value === 'string') {
|
|
13
|
+
const num = Number(value);
|
|
14
|
+
if (isNaN(num)) {
|
|
15
|
+
return undefined;
|
|
16
|
+
}
|
|
17
|
+
return num;
|
|
18
|
+
}
|
|
19
|
+
return undefined;
|
|
20
|
+
};
|
|
21
|
+
const ToNumber = () => {
|
|
22
|
+
const toPlain = (0, class_transformer_1.Transform)(
|
|
23
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
|
24
|
+
({ value }) => value, {
|
|
25
|
+
toPlainOnly: true,
|
|
26
|
+
});
|
|
27
|
+
const toClass = (target, key) => (0, class_transformer_1.Transform)(({ obj }) => valueToNumber(obj[key]), {
|
|
28
|
+
toClassOnly: true,
|
|
29
|
+
})(target, key);
|
|
30
|
+
return (target, key) => {
|
|
31
|
+
toPlain(target, key);
|
|
32
|
+
toClass(target, key);
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
exports.ToNumber = ToNumber;
|
|
36
|
+
//# sourceMappingURL=number.transform.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"number.transform.js","sourceRoot":"","sources":["../../../../ts/utils/transforms/number.transform.ts"],"names":[],"mappings":";;;AAAA,yDAA8C;AAE9C,MAAM,aAAa,GAAG,CAAC,KAAU,EAAE,EAAE;IACnC,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,EAAE,EAAE,CAAC;QAC1D,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAC9B,OAAO,KAAK,CAAC;IACf,CAAC;IACD,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAC9B,MAAM,GAAG,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;QAC1B,IAAI,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC;YACf,OAAO,SAAS,CAAC;QACnB,CAAC;QACD,OAAO,GAAG,CAAC;IACb,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC;AAEF,MAAM,QAAQ,GAAG,GAAG,EAAE;IACpB,MAAM,OAAO,GAAG,IAAA,6BAAS;IACvB,+DAA+D;IAC/D,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,EACpB;QACE,WAAW,EAAE,IAAI;KAClB,CACF,CAAC;IACF,MAAM,OAAO,GAAG,CAAC,MAAW,EAAE,GAAW,EAAE,EAAE,CAC3C,IAAA,6BAAS,EAAC,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,aAAa,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,EAAE;QAC9C,WAAW,EAAE,IAAI;KAClB,CAAC,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAClB,OAAO,CAAC,MAAW,EAAE,GAAW,EAAE,EAAE;QAClC,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;QACrB,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACvB,CAAC,CAAC;AACJ,CAAC,CAAC;AAEO,4BAAQ","sourcesContent":["import { Transform } from 'class-transformer';\n\nconst valueToNumber = (value: any) => {\n if (value === null || value === undefined || value === '') {\n return undefined;\n }\n if (typeof value === 'number') {\n return value;\n }\n if (typeof value === 'string') {\n const num = Number(value);\n if (isNaN(num)) {\n return undefined;\n }\n return num;\n }\n return undefined;\n};\n\nconst ToNumber = () => {\n const toPlain = Transform(\n // eslint-disable-next-line @typescript-eslint/no-unsafe-return\n ({ value }) => value,\n {\n toPlainOnly: true,\n },\n );\n const toClass = (target: any, key: string) =>\n Transform(({ obj }) => valueToNumber(obj[key]), {\n toClassOnly: true,\n })(target, key);\n return (target: any, key: string) => {\n toPlain(target, key);\n toClass(target, key);\n };\n};\n\nexport { ToNumber };\n"]}
|
|
@@ -9,6 +9,7 @@ export declare class Transaction extends Resource {
|
|
|
9
9
|
unexport(idSociety: number, params: QueryUnexport): Promise<number>;
|
|
10
10
|
export(idSociety: number, params: QueryExport): Promise<number>;
|
|
11
11
|
annotate(id: number, data: UpdateAccountingTransaction): Promise<ReadFormattedAccountingTransaction>;
|
|
12
|
+
annotateAll(ids: number[], data: UpdateAccountingTransaction): Promise<ReadFormattedAccountingTransaction>;
|
|
12
13
|
delete(idSociety: number, id: number): Promise<number>;
|
|
13
14
|
deleteTransactions(id: number, data: DeleteTransactions): Promise<number>;
|
|
14
15
|
getBalanceQuotaShare(idExercice: number): Promise<Array<ReadAccountantBalance>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Transaction.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/Transaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,E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