@silexpert/core 1.3.204-update-2 → 1.3.204
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 +0 -1
- package/dist/cjs/api/resources/Transaction.d.ts.map +1 -1
- package/dist/cjs/api/resources/Transaction.js +0 -3
- package/dist/cjs/api/resources/Transaction.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 +0 -13
- package/dist/cjs/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.js +1 -14
- package/dist/cjs/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.js.map +1 -1
- package/dist/cjs/types/Interface/api/webmail/CreateMailFromLambda.d.ts +7 -6
- package/dist/cjs/types/Interface/api/webmail/CreateMailFromLambda.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/webmail/CreateMailFromLambda.js +1 -2
- package/dist/cjs/types/Interface/api/webmail/CreateMailFromLambda.js.map +1 -1
- package/dist/cjs/utils/societyApproval.d.ts.map +1 -1
- package/dist/cjs/utils/societyApproval.js +19 -22
- package/dist/cjs/utils/societyApproval.js.map +1 -1
- package/dist/mjs/api/resources/Transaction.d.ts +0 -1
- package/dist/mjs/api/resources/Transaction.d.ts.map +1 -1
- package/dist/mjs/api/resources/Transaction.js +0 -3
- package/dist/mjs/api/resources/Transaction.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 +0 -13
- package/dist/mjs/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.js +2 -16
- package/dist/mjs/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.js.map +1 -1
- package/dist/mjs/types/Interface/api/webmail/CreateMailFromLambda.d.ts +7 -6
- package/dist/mjs/types/Interface/api/webmail/CreateMailFromLambda.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/webmail/CreateMailFromLambda.js +7 -8
- package/dist/mjs/types/Interface/api/webmail/CreateMailFromLambda.js.map +1 -1
- package/dist/mjs/utils/societyApproval.d.ts.map +1 -1
- package/dist/mjs/utils/societyApproval.js +3 -6
- package/dist/mjs/utils/societyApproval.js.map +1 -1
- package/package.json +13 -11
- package/ts/api/resources/Transaction.ts +0 -3
- package/ts/types/Enum/SocietyApproval.ts +6 -6
- package/ts/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.ts +2 -18
- package/ts/types/Interface/api/webmail/CreateMailFromLambda.ts +8 -7
- package/ts/utils/societyApproval.ts +3 -10
|
@@ -9,7 +9,6 @@ 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>;
|
|
13
12
|
delete(idSociety: number, id: number): Promise<number>;
|
|
14
13
|
deleteTransactions(id: number, data: DeleteTransactions): Promise<number>;
|
|
15
14
|
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,EACL,YAAY,EACZ,kCAAkC,EAClC,2BAA2B,E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AAE,CAAC;IAI3D,qBAAqB,CAAC,OAAO,EAAE,wBAAwB,GAAG,OAAO,CAAC,MAAM,CAAC;IAIzE,SAAS,CAAC,IAAI,EAAE,8BAA8B,GAAG,OAAO,CAAC,MAAM,CAAC;IAIhE,wBAAwB,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC;IAMlF,UAAU,CAAC,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,MAAM,CAAC;CAG5D"}
|
|
@@ -37,9 +37,6 @@ class Transaction extends Resource_1.Resource {
|
|
|
37
37
|
annotate(id, data) {
|
|
38
38
|
return this.axios.$put(`/transactions/${id}`, data);
|
|
39
39
|
}
|
|
40
|
-
annotateAll(ids, data) {
|
|
41
|
-
return this.axios.$put('/transactions/annotate-all', { ids, data });
|
|
42
|
-
}
|
|
43
40
|
delete(idSociety, id) {
|
|
44
41
|
return this.axios.$delete(`/society/${idSociety}/transaction/${id}`);
|
|
45
42
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Transaction.js","sourceRoot":"","sources":["../../../../ts/api/resources/Transaction.ts"],"names":[],"mappings":";;;AAAA,0CAAuC;AA8BvC,MAAa,WAAY,SAAQ,mBAAQ;IACvC,oBAAoB,CAClB,SAAiB,EACjB,MAAwB;QAExB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,YAAY,SAAS,eAAe,EAAE;YAC3D,MAAM;SACP,CAAC,CAAC;IACL,CAAC;IAED,UAAU,CAAC,SAAiB,EAAE,MAAwB;QACpD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,YAAY,SAAS,sBAAsB,EAAE;YAClE,MAAM;YACN,YAAY,EAAE,aAAa;YAC3B,OAAO,EAAE;gBACP,MAAM,EAAE,iBAAiB;aAC1B;SACF,CAAC,CAAC;IACL,CAAC;IAED,MAAM,CAAC,EAAU,EAAE,MAAuC;QACxD,OAAO,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C/D,MAAM,EAAE,KAAK;SACd,CAAC,CAAC;IACL,CAAC;IAED,GAAG,CAAC,EAAU;QACZ,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,iBAAiB,EAAE,EAAE,CAAC,CAAC;IAChD,CAAC;IAED,cAAc;QACZ,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,sCAAsC,CAAC,CAAC;IACjE,CAAC;IAED,kBAAkB;QAChB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,8BAA8B,CAAC,CAAC;IACzD,CAAC;IAED,qBAAqB,CAAC,OAAiC;QACrD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,sCAAsC,EAAE,OAAO,CAAC,CAAC;IAC3E,CAAC;IAED,SAAS,CAAC,IAAoC;QAC5C,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,yBAAyB,EAAE,IAAI,CAAC,CAAC;IAC3D,CAAC;IAED,wBAAwB,CAAC,EAAU,EAAE,MAAoB;QACvD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,iBAAiB,EAAE,UAAU,oBAC/C,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAC7B,CAAC;IACL,CAAC;IAED,UAAU,CAAC,OAA8B;QACvC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,2BAA2B,EAAE,OAAO,CAAC,CAAC;IAChE,CAAC;CACF;AAvHD,kCAuHC","sourcesContent":["import { Resource } from '../Resource';\nimport {\n BasePaginate,\n ReadFormattedAccountingTransaction,\n UpdateAccountingTransaction,\n DeleteTransactions,\n QueryUnexport,\n QueryGetAllTransactions,\n IAccountingTransaction,\n ReadAccountantBalance,\n CreateManualEntry,\n IAccountingEntry,\n QueryDeleteInvoices,\n ReadDeletedInvoices,\n QuerySocietyTransactionCount,\n ReadSocietyTransactionCount,\n ReadBankAccountSum,\n QueryBankAccountSum,\n QueryTransaction,\n ReadPartnerTransactionType,\n DuplicateAccountingTransaction,\n CreateWithMasterEntry,\n QueryExport,\n QueryAutomaticAnnotation,\n IAnnotation,\n ProcessVatTransaction,\n QuerySocietyTransactionGetBalance,\n ReadSocietyTransactionGetBalance,\n} from '../../types';\n\nexport class Transaction extends Resource {\n getFormattedPaginate(\n idSociety: number,\n params: QueryTransaction,\n ): Promise<BasePaginate<ReadFormattedAccountingTransaction>> {\n return this.axios.$get(`/society/${idSociety}/transactions`, {\n params,\n });\n }\n\n exportInfo(idSociety: number, params: QueryTransaction): Promise<Buffer> {\n return this.axios.$get(`/society/${idSociety}/transactions/export`, {\n params,\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/pdf',\n },\n });\n }\n\n update(id: number, params: Partial<IAccountingTransaction>): Promise<IAccountingTransaction> {\n return this.axios.$patch(`/transactions/${id}`, params);\n }\n\n getAll(idSociety: number, query: QueryGetAllTransactions): Promise<IAccountingTransaction[]> {\n return this.axios.$get(`/society/${idSociety}/transactions/list`, {\n params: query,\n });\n }\n getBalance(\n idSociety: number,\n params: QuerySocietyTransactionGetBalance,\n signal?: AbortSignal,\n ): Promise<ReadSocietyTransactionGetBalance> {\n return this.axios.$get(`/society/${idSociety}/balance`, {\n ...(signal ? { signal } : {}),\n params,\n });\n }\n unexport(idSociety: number, params: QueryUnexport): Promise<number> {\n return this.axios.$put(`/society/${idSociety}/transactions/unexport`, params);\n }\n\n export(idSociety: number, params: QueryExport): Promise<number> {\n return this.axios.$put(`/society/${idSociety}/transactions/export`, params);\n }\n annotate(id: number, data: UpdateAccountingTransaction): Promise<ReadFormattedAccountingTransaction> {\n return this.axios.$put(`/transactions/${id}`, data);\n }\n delete(idSociety: number, id: number): Promise<number> {\n return this.axios.$delete(`/society/${idSociety}/transaction/${id}`);\n }\n deleteTransactions(id: number, data: DeleteTransactions): Promise<number> {\n return this.axios.$delete(`/bankAccount/${id}/transactions`, {\n params: data,\n });\n }\n\n getBalanceQuotaShare(idExercice: number): Promise<Array<ReadAccountantBalance>> {\n return this.axios.$get(`/society/balance/${idExercice}`);\n }\n\n createManual(idSociety: number, data: Array<CreateManualEntry>): Promise<IAccountingTransaction> {\n return this.axios.$post(`/society/${idSociety}/manual-transactions`, data);\n }\n\n createWithMasterEntry(idSociety: number, data: Array<CreateWithMasterEntry>): Promise<IAccountingTransaction> {\n return this.axios.$post(`/society/${idSociety}/transactions`, data);\n }\n\n getAllManual(idSociety: number, idExercice: number): Promise<Array<Array<IAccountingEntry>>> {\n return this.axios.$get(`/society/${idSociety}/exercices/${idExercice}/manual-transactions`);\n }\n\n deleteMultipleInvoices(idSociety: number, query: QueryDeleteInvoices): Promise<ReadDeletedInvoices> {\n return this.axios.$delete(`/society/${idSociety}/invoice-transactions`, {\n params: query,\n });\n }\n\n toAnnotateCount(idSociety: number, params: QuerySocietyTransactionCount): Promise<ReadSocietyTransactionCount> {\n return this.axios.$get(`/society/${idSociety}/transactions/to-annotate/count`, { params });\n }\n\n getBankAccountSum(query: QueryBankAccountSum): Promise<ReadBankAccountSum> {\n return this.axios.$get('/society/transactions/bank-account-sum', {\n params: query,\n });\n }\n\n get(id: number): Promise<ReadFormattedAccountingTransaction> {\n return this.axios.$get(`/transactions/${id}`);\n }\n\n getCashdeskSum(): Promise<number> {\n return this.axios.$get('/societies/transactions/cashdesk-sum');\n }\n\n getAllPartnerTypes(): Promise<ReadPartnerTransactionType[]> {\n return this.axios.$get('/transactions/partners-types');\n }\n\n annotateAutomatically(payload: QueryAutomaticAnnotation): Promise<number> {\n return this.axios.$post('/transactions/annotate-automatically', payload);\n }\n\n duplicate(data: DuplicateAccountingTransaction): Promise<number> {\n return this.axios.$post('/transactions/duplicate', data);\n }\n\n getAllAnnotationsHistory(id: number, signal?: AbortSignal): Promise<IAnnotation[]> {\n return this.axios.$get(`/transactions/${id}/history`, {\n ...(signal ? { signal } : {}),\n });\n }\n\n processVat(payload: ProcessVatTransaction): Promise<number> {\n return this.axios.$post('/transactions/process-vat', payload);\n }\n}\n"]}
|
|
@@ -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,oBAAoB,GAA0B;IACzD;QACE,EAAE,EAAE,uBAAuB,CAAC,6BAA6B;QAC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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;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"]}
|
|
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,CAAC,IAAI,CAAC;KACvC;IACD;QACE,EAAE,EAAE,uBAAuB,CAAC,wBAAwB;Q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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,19 +29,6 @@ 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
|
-
}
|
|
45
32
|
export interface UploadedAccountingFileInfos {
|
|
46
33
|
location: string;
|
|
47
34
|
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;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,
|
|
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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C5B,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.
|
|
12
|
+
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,17 +66,4 @@ __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);
|
|
82
69
|
//# 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,qDAAkE;AAGlE,6CAAwD;AACxD,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","sourcesContent":["import { IsBoolean, IsNumber, IsOptional } from 'class-validator';\nimport { IAccountingTransaction, IImmobilization } from '../../..';\nimport { IThirdParty } from '../../models/IThirdParty';\nimport { 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 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,19 +1,20 @@
|
|
|
1
|
+
import { AddressObject, HeaderLines } from 'mailparser';
|
|
1
2
|
export declare class CreateMailFromLambda {
|
|
2
3
|
headers: {
|
|
3
4
|
[key: string]: any;
|
|
4
5
|
};
|
|
5
|
-
headerLines:
|
|
6
|
+
headerLines: HeaderLines;
|
|
6
7
|
html: string | false;
|
|
7
8
|
text?: string;
|
|
8
9
|
textAsHtml?: string;
|
|
9
10
|
subject?: string;
|
|
10
11
|
references?: string[] | string;
|
|
11
12
|
date?: Date;
|
|
12
|
-
to?:
|
|
13
|
-
from?:
|
|
14
|
-
cc?:
|
|
15
|
-
bcc?:
|
|
16
|
-
replyTo?:
|
|
13
|
+
to?: AddressObject | AddressObject[];
|
|
14
|
+
from?: AddressObject;
|
|
15
|
+
cc?: AddressObject | AddressObject[];
|
|
16
|
+
bcc?: AddressObject | AddressObject[];
|
|
17
|
+
replyTo?: AddressObject;
|
|
17
18
|
messageId?: string;
|
|
18
19
|
inReplyTo?: string;
|
|
19
20
|
priority?: 'normal' | 'low' | 'high';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateMailFromLambda.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/webmail/CreateMailFromLambda.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CreateMailFromLambda.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/webmail/CreateMailFromLambda.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAGxD,qBAAa,oBAAoB;IAQ/B,OAAO,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IAKhC,WAAW,EAAE,WAAW,CAAC;IAGzB,IAAI,EAAE,MAAM,GAAG,KAAK,CAAC;IAKrB,IAAI,CAAC,EAAE,MAAM,CAAC;IAKd,UAAU,CAAC,EAAE,MAAM,CAAC;IAKpB,OAAO,CAAC,EAAE,MAAM,CAAC;IAIjB,UAAU,CAAC,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;IAK/B,IAAI,CAAC,EAAE,IAAI,CAAC;IAIZ,EAAE,CAAC,EAAE,aAAa,GAAG,aAAa,EAAE,CAAC;IAKrC,IAAI,CAAC,EAAE,aAAa,CAAC;IAIrB,EAAE,CAAC,EAAE,aAAa,GAAG,aAAa,EAAE,CAAC;IAIrC,GAAG,CAAC,EAAE,aAAa,GAAG,aAAa,EAAE,CAAC;IAKtC,OAAO,CAAC,EAAE,aAAa,CAAC;IAKxB,SAAS,CAAC,EAAE,MAAM,CAAC;IAKnB,SAAS,CAAC,EAAE,MAAM,CAAC;IAKnB,QAAQ,CAAC,EAAE,QAAQ,GAAG,KAAK,GAAG,MAAM,CAAC;CACtC"}
|
|
@@ -11,7 +11,6 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.CreateMailFromLambda = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
|
-
// import { AddressObject, HeaderLines } from 'mailparser';
|
|
15
14
|
const utils_1 = require("../../../../utils");
|
|
16
15
|
class CreateMailFromLambda {
|
|
17
16
|
}
|
|
@@ -26,7 +25,7 @@ __decorate([
|
|
|
26
25
|
(0, utils_1.ApiProperty)(),
|
|
27
26
|
(0, class_validator_1.IsArray)(),
|
|
28
27
|
(0, class_validator_1.IsNotEmpty)(),
|
|
29
|
-
__metadata("design:type",
|
|
28
|
+
__metadata("design:type", Array)
|
|
30
29
|
], CreateMailFromLambda.prototype, "headerLines", void 0);
|
|
31
30
|
__decorate([
|
|
32
31
|
(0, utils_1.ApiProperty)(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateMailFromLambda.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/webmail/CreateMailFromLambda.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAoG;
|
|
1
|
+
{"version":3,"file":"CreateMailFromLambda.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/webmail/CreateMailFromLambda.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAoG;AAEpG,6CAAqE;AAErE,MAAa,oBAAoB;CA8EhC;AA9ED,oDA8EC;AAtEC;IAHC,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;qDACmB;AAKhC;IAHC,IAAA,mBAAW,GAAE;IACb,IAAA,yBAAO,GAAE;IACT,IAAA,4BAAU,GAAE;;yDACY;AAGz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ject, IsOptional, IsString } from 'class-validator';\nimport { AddressObject, HeaderLines } from 'mailparser';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\n\nexport class CreateMailFromLambda {\n // @ApiProperty()\n // @IsArray()\n // attachments: { [key: string]: any }[];\n\n @ApiProperty()\n @IsObject()\n @IsNotEmpty()\n headers: { [key: string]: any };\n\n @ApiProperty()\n @IsArray()\n @IsNotEmpty()\n headerLines: HeaderLines;\n\n @ApiProperty()\n html: string | false;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n text?: string;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n textAsHtml?: string;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n subject?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n references?: string[] | string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsDate()\n date?: Date;\n\n @ApiPropertyOptional()\n @IsOptional()\n to?: AddressObject | AddressObject[];\n\n @ApiPropertyOptional()\n @IsObject()\n @IsOptional()\n from?: AddressObject;\n\n @ApiPropertyOptional()\n @IsOptional()\n cc?: AddressObject | AddressObject[];\n\n @ApiPropertyOptional()\n @IsOptional()\n bcc?: AddressObject | AddressObject[];\n\n @ApiPropertyOptional()\n @IsObject()\n @IsOptional()\n replyTo?: AddressObject;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n messageId?: string;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n inReplyTo?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsIn(['normal', 'low', 'high'])\n priority?: 'normal' | 'low' | 'high';\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,+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EAAE,2BAA2B,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,CAyDhH"}
|
|
@@ -71,43 +71,40 @@ 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(
|
|
76
|
-
const dayAndMonthInText = `${(0, amount_1.convertNumberToLetter)(+dayjs(
|
|
77
|
-
.locale('fr')
|
|
78
|
-
.format('MMMM')
|
|
79
|
-
.toLowerCase()}`;
|
|
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().locale('fr').format('MMMM').toLowerCase()}`;
|
|
80
77
|
const brand = (0, brands_1.getBrand)();
|
|
81
78
|
return Object.assign(Object.assign({
|
|
82
79
|
// Variables globales
|
|
83
80
|
style,
|
|
84
81
|
yearInText,
|
|
85
82
|
dayAndMonthInText, date: dayjs().locale('fr').format('DD MMMM YYYY'), companyInformation: {
|
|
86
|
-
rcs: (
|
|
87
|
-
nomRaisonSociale: (
|
|
88
|
-
city: (
|
|
89
|
-
postalAddress: (
|
|
90
|
-
montantCapital: (
|
|
91
|
-
statut: (
|
|
92
|
-
ECOrderCity: (
|
|
83
|
+
rcs: (_a = brand === null || brand === void 0 ? void 0 : brand.companyInformation) === null || _a === void 0 ? void 0 : _a.rcs,
|
|
84
|
+
nomRaisonSociale: (_b = brand === null || brand === void 0 ? void 0 : brand.companyInformation) === null || _b === void 0 ? void 0 : _b.nomRaisonSociale,
|
|
85
|
+
city: (_c = brand === null || brand === void 0 ? void 0 : brand.companyInformation) === null || _c === void 0 ? void 0 : _c.city,
|
|
86
|
+
postalAddress: (_d = brand === null || brand === void 0 ? void 0 : brand.companyInformation) === null || _d === void 0 ? void 0 : _d.postalAddress,
|
|
87
|
+
montantCapital: (_e = brand === null || brand === void 0 ? void 0 : brand.companyInformation) === null || _e === void 0 ? void 0 : _e.montantCapital,
|
|
88
|
+
statut: (_f = brand === null || brand === void 0 ? void 0 : brand.companyInformation) === null || _f === void 0 ? void 0 : _f.statut,
|
|
89
|
+
ECOrderCity: (_g = brand === null || brand === void 0 ? void 0 : brand.companyInformation) === null || _g === void 0 ? void 0 : _g.ECOrderCity,
|
|
93
90
|
}, owner: {
|
|
94
|
-
identity: `${((
|
|
95
|
-
quality: (
|
|
96
|
-
} }, existingApproval), { generatingDatas: Object.assign(Object.assign(Object.assign({}, existingApproval === null || existingApproval === void 0 ? void 0 : existingApproval.generatingDatas), (((
|
|
91
|
+
identity: `${((_l = (_k = (_j = (_h = existingApproval === null || existingApproval === void 0 ? void 0 : existingApproval.exercice) === null || _h === void 0 ? void 0 : _h.society) === null || _j === void 0 ? void 0 : _j.users) === null || _k === void 0 ? void 0 : _k[0]) === null || _l === void 0 ? void 0 : _l.idCivility) === 1 ? 'Monsieur' : 'Madame'} ${(_q = (_p = (_o = (_m = existingApproval === null || existingApproval === void 0 ? void 0 : existingApproval.exercice) === null || _m === void 0 ? void 0 : _m.society) === null || _o === void 0 ? void 0 : _o.users) === null || _p === void 0 ? void 0 : _p[0]) === null || _q === void 0 ? void 0 : _q.firstname} ${(_u = (_t = (_s = (_r = existingApproval === null || existingApproval === void 0 ? void 0 : existingApproval.exercice) === null || _r === void 0 ? void 0 : _r.society) === null || _s === void 0 ? void 0 : _s.users) === null || _t === void 0 ? void 0 : _t[0]) === null || _u === void 0 ? void 0 : _u.lastname} `,
|
|
92
|
+
quality: (_v = 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 || _v === void 0 ? void 0 : _v.label,
|
|
93
|
+
} }, existingApproval), { generatingDatas: Object.assign(Object.assign(Object.assign({}, existingApproval === null || existingApproval === void 0 ? void 0 : existingApproval.generatingDatas), (((_w = existingApproval === null || existingApproval === void 0 ? void 0 : existingApproval.generatingDatas) === null || _w === void 0 ? void 0 : _w.approvalDate)
|
|
97
94
|
? {
|
|
98
|
-
approvalDate: dayjs((
|
|
95
|
+
approvalDate: dayjs((_x = existingApproval === null || existingApproval === void 0 ? void 0 : existingApproval.generatingDatas) === null || _x === void 0 ? void 0 : _x.approvalDate)
|
|
99
96
|
.locale('fr')
|
|
100
97
|
.format('DD MMMM YYYY')
|
|
101
98
|
.toUpperCase(),
|
|
102
99
|
}
|
|
103
|
-
: {})), (((
|
|
100
|
+
: {})), (((_y = existingApproval === null || existingApproval === void 0 ? void 0 : existingApproval.generatingDatas) === null || _y === void 0 ? void 0 : _y.approvalDividendsPaymentDate)
|
|
104
101
|
? {
|
|
105
|
-
approvalDividendsPaymentDate: dayjs((
|
|
102
|
+
approvalDividendsPaymentDate: dayjs((_z = existingApproval === null || existingApproval === void 0 ? void 0 : existingApproval.generatingDatas) === null || _z === void 0 ? void 0 : _z.approvalDividendsPaymentDate)
|
|
106
103
|
.locale('fr')
|
|
107
104
|
.format('DD MMMM YYYY'),
|
|
108
105
|
}
|
|
109
|
-
: {})), exercice: Object.assign(Object.assign({}, existingApproval === null || existingApproval === void 0 ? void 0 : existingApproval.exercice), { society: Object.assign(Object.assign({}, (
|
|
110
|
-
? (
|
|
111
|
-
: null }), endDate: dayjs((
|
|
106
|
+
: {})), exercice: Object.assign(Object.assign({}, existingApproval === null || existingApproval === void 0 ? void 0 : existingApproval.exercice), { society: Object.assign(Object.assign({}, (_0 = existingApproval === null || existingApproval === void 0 ? void 0 : existingApproval.exercice) === null || _0 === void 0 ? void 0 : _0.society), { cityOfGreffe: getCityOfGreffeName((_2 = (_1 = existingApproval === null || existingApproval === void 0 ? void 0 : existingApproval.exercice) === null || _1 === void 0 ? void 0 : _1.society) === null || _2 === void 0 ? void 0 : _2.idCityOfGreffe).toUpperCase(), siren: ((_4 = (_3 = existingApproval === null || existingApproval === void 0 ? void 0 : existingApproval.exercice) === null || _3 === void 0 ? void 0 : _3.society) === null || _4 === void 0 ? void 0 : _4.siret)
|
|
107
|
+
? (0, siretValidation_1.siretToSiren)(existingApproval.exercice.society.siret)
|
|
108
|
+
: null }), endDate: dayjs((_5 = existingApproval === null || existingApproval === void 0 ? void 0 : existingApproval.exercice) === null || _5 === void 0 ? void 0 : _5.endDate).locale('fr').format('DD MMMM YYYY').toLowerCase() }) });
|
|
112
109
|
}
|
|
113
110
|
//# 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,8DAgEC;AAlJD,u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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"]}
|
|
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,CAAC,cAAc,KAAK,cAAc,CAAC,CAAC;IACxF,OAAO,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,YAAY,CAAC;AAChC,CAAC;AAED;;;;GAIG;AACH,SAAS,mBAAmB,CAAC,cAAyC;;IACpE,IAAI,CAAC,cAAc;QAAE,OAA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E,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"]}
|
|
@@ -9,7 +9,6 @@ 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>;
|
|
13
12
|
delete(idSociety: number, id: number): Promise<number>;
|
|
14
13
|
deleteTransactions(id: number, data: DeleteTransactions): Promise<number>;
|
|
15
14
|
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,EACL,YAAY,EACZ,kCAAkC,EAClC,2BAA2B,EAC3B,kBAAkB,EAClB,aAAa,EACb,uBAAuB,EACvB,sBAAsB,EACtB,qBAAqB,EACrB,iBAAiB,EACjB,gBAAgB,EAChB,mBAAmB,EACnB,mBAAmB,EACnB,4BAA4B,EAC5B,2BAA2B,EAC3B,kBAAkB,EAClB,mBAAmB,EACnB,gBAAgB,EAChB,0BAA0B,EAC1B,8BAA8B,EAC9B,qBAAqB,EACrB,WAAW,EACX,wBAAwB,EACxB,WAAW,EACX,qBAAqB,EACrB,iCAAiC,EACjC,gCAAgC,EACjC,MAAM,aAAa,CAAC;AAErB,qBAAa,WAAY,SAAQ,QAAQ;IACvC,oBAAoB,CAClB,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,gBAAgB,GACvB,OAAO,CAAC,YAAY,CAAC,kCAAkC,CAAC,CAAC;IAM5D,UAAU,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,gBAAgB,GAAG,OAAO,CAAC,MAAM,CAAC;IAUxE,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,sBAAsB,CAAC,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAI5F,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,uBAAuB,GAAG,OAAO,CAAC,sBAAsB,EAAE,CAAC;IAK5F,UAAU,C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AC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,mBAAmB,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAMnG,eAAe,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,4BAA4B,GAAG,OAAO,CAAC,2BAA2B,CAAC;IAI9G,iBAAiB,CAAC,KAAK,EAAE,mBAAmB,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAM1E,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,kCAAkC,CAAC;IAI5D,cAAc,IAAI,OAAO,CAAC,MAAM,CAAC;IAIjC,kBAAkB,IAAI,OAAO,CAAC,0BAA0B,EAAE,CAAC;IAI3D,qBAAqB,CAAC,OAAO,EAAE,wBAAwB,GAAG,OAAO,CAAC,MAAM,CAAC;IAIzE,SAAS,CAAC,IAAI,EAAE,8BAA8B,GAAG,OAAO,CAAC,MAAM,CAAC;IAIhE,wBAAwB,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC;IAMlF,UAAU,CAAC,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,MAAM,CAAC;CAG5D"}
|
|
@@ -37,9 +37,6 @@ export class Transaction extends Resource {
|
|
|
37
37
|
annotate(id, data) {
|
|
38
38
|
return this.axios.$put(`/transactions/${id}`, data);
|
|
39
39
|
}
|
|
40
|
-
annotateAll(ids, data) {
|
|
41
|
-
return this.axios.$put('/transactions/annotate-all', { ids, data });
|
|
42
|
-
}
|
|
43
40
|
delete(idSociety, id) {
|
|
44
41
|
return this.axios.$delete(`/society/${idSociety}/transaction/${id}`);
|
|
45
42
|
}
|