@silexpert/core 1.3.168-approbation-3 → 1.3.168-approbation-4
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/SocietyApproval.d.ts +7 -0
- package/dist/cjs/api/resources/SocietyApproval.d.ts.map +1 -1
- package/dist/cjs/api/resources/SocietyApproval.js +9 -0
- package/dist/cjs/api/resources/SocietyApproval.js.map +1 -1
- package/dist/cjs/types/Enum/SocietyApproval.js +1 -1
- package/dist/cjs/types/Enum/SocietyApproval.js.map +1 -1
- package/dist/mjs/api/resources/SocietyApproval.d.ts +7 -0
- package/dist/mjs/api/resources/SocietyApproval.d.ts.map +1 -1
- package/dist/mjs/api/resources/SocietyApproval.js +9 -0
- package/dist/mjs/api/resources/SocietyApproval.js.map +1 -1
- package/dist/mjs/types/Enum/SocietyApproval.js +1 -1
- package/dist/mjs/types/Enum/SocietyApproval.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/SocietyApproval.ts +14 -0
- package/ts/types/Enum/SocietyApproval.ts +1 -1
|
@@ -31,5 +31,12 @@ export declare class SocietyApproval extends Resource {
|
|
|
31
31
|
* @returns PDF file as blob
|
|
32
32
|
*/
|
|
33
33
|
generatePdf(idExercice: number, payload: CreateDocument): Promise<ReadLibraryFile>;
|
|
34
|
+
/**
|
|
35
|
+
* Regenerate PDF document from existing documentSection HTML content
|
|
36
|
+
* @param idExercice - The exercice ID
|
|
37
|
+
* @param idDocumentSection - The documentSection ID containing HTML content
|
|
38
|
+
* @returns PDF file as buffer for download
|
|
39
|
+
*/
|
|
40
|
+
regeneratePdf(idExercice: number, idDocumentSection: number): Promise<Buffer>;
|
|
34
41
|
}
|
|
35
42
|
//# sourceMappingURL=SocietyApproval.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SocietyApproval.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/SocietyApproval.ts"],"names":[],"mappings":"AAAA,OAA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AgB,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAIxF;;;;;OAKG;IACH,WAAW,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,eAAe,CAAC;IAIlF;;;;;OAKG;IACH,aAAa,CAAC,UAAU,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;CAO9E"}
|
|
@@ -38,6 +38,15 @@ class SocietyApproval extends Resource_1.Resource {
|
|
|
38
38
|
generatePdf(idExercice, payload) {
|
|
39
39
|
return this.axios.$post(`/exercices/${idExercice}/approvals/pdf`, payload);
|
|
40
40
|
}
|
|
41
|
+
/**
|
|
42
|
+
* Regenerate PDF document from existing documentSection HTML content
|
|
43
|
+
* @param idExercice - The exercice ID
|
|
44
|
+
* @param idDocumentSection - The documentSection ID containing HTML content
|
|
45
|
+
* @returns PDF file as buffer for download
|
|
46
|
+
*/
|
|
47
|
+
regeneratePdf(idExercice, idDocumentSection) {
|
|
48
|
+
return this.axios.$post(`/exercices/${idExercice}/approvals/pdf/regenerate`, { idDocumentSection }, { responseType: 'arraybuffer' });
|
|
49
|
+
}
|
|
41
50
|
}
|
|
42
51
|
exports.SocietyApproval = SocietyApproval;
|
|
43
52
|
//# sourceMappingURL=SocietyApproval.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SocietyApproval.js","sourceRoot":"","sources":["../../../../ts/api/resources/SocietyApproval.ts"],"names":[],"mappings":";;;AAAA,0CAAuC;AAGvC,MAAa,eAAgB,SAAQ,mBAAQ;IAC3C;;;;OAIG;IACH,GAAG,CAAC,UAAkB;QACpB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,UAAU,YAAY,CAAC,CAAC;IAC/D,CAAC;IAED;;;;;OAKG;IACH,iBAAiB,CAAC,UAAkB;QAIlC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,UAAU,4BAA4B,C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EAAE,YAAY,EAAE,aAAa,EAAE,CAChC,CAAC;IACJ,CAAC;CACF;AAxDD,0CAwDC","sourcesContent":["import { Resource } from '../Resource';\nimport { ISocietyApproval, CreateDocument, ReadLibraryFile } from '../../types';\n\nexport class SocietyApproval extends Resource {\n /**\n * Get society approval data for a given exercice\n * @param idExercice - The exercice ID\n * @returns Society approval with all needed data\n */\n get(idExercice: number): Promise<ISocietyApproval> {\n return this.axios.$get(`/exercices/${idExercice}/approvals`);\n }\n\n /**\n * Get approval data needed for PDF generation\n * Retrieves all necessary information before generating a PDF document\n * @param idExercice - The exercice ID\n * @returns Approval data with template data for PDF generation\n */\n getGeneratingData(idExercice: number): Promise<{\n approval: ISocietyApproval;\n templateData: Record<string, any>;\n }> {\n return this.axios.$get(`/exercices/${idExercice}/approvals/generating-data`);\n }\n\n /**\n * Create or update society approval\n * @param idExercice - The exercice ID\n * @param payload - The approval data\n * @returns Updated or created society approval\n */\n updateOrCreate(idExercice: number, payload: ISocietyApproval): Promise<ISocietyApproval> {\n return this.axios.$post(`/exercices/${idExercice}/approvals`, payload);\n }\n\n /**\n * Generate approval PDF document\n * @param idExercice - The exercice ID\n * @param payload - The document type(s) to generate\n * @returns PDF file as blob\n */\n generatePdf(idExercice: number, payload: CreateDocument): Promise<ReadLibraryFile> {\n return this.axios.$post(`/exercices/${idExercice}/approvals/pdf`, payload);\n }\n\n /**\n * Regenerate PDF document from existing documentSection HTML content\n * @param idExercice - The exercice ID\n * @param idDocumentSection - The documentSection ID containing HTML content\n * @returns PDF file as buffer for download\n */\n regeneratePdf(idExercice: number, idDocumentSection: number): Promise<Buffer> {\n return this.axios.$post(\n `/exercices/${idExercice}/approvals/pdf/regenerate`,\n { idDocumentSection },\n { responseType: 'arraybuffer' },\n );\n }\n}\n"]}
|
|
@@ -25,7 +25,7 @@ exports.SocietyApprovalDocumentsByLegalForm = [
|
|
|
25
25
|
idDocumentType: SocietyApprovalDocumentType.POWER_MANDATE,
|
|
26
26
|
docName: 'Mandat de pouvoir',
|
|
27
27
|
templateName: 'POWER_MANDATE_EURL',
|
|
28
|
-
documentSectionType: StatutsSection_1.DocumentSectionType.
|
|
28
|
+
documentSectionType: StatutsSection_1.DocumentSectionType.POWER_MANDATE,
|
|
29
29
|
},
|
|
30
30
|
{
|
|
31
31
|
idDocumentType: SocietyApprovalDocumentType.DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SocietyApproval.js","sourceRoot":"","sources":["../../../../ts/types/Enum/SocietyApproval.ts"],"names":[],"mappings":";;;AAAA,2CAAgD;AAChD,qDAAuD;AAEvD,IAAY,2BAKX;AALD,WAAY,2BAA2B;IACrC,+EAAS,CAAA;IACT,+FAAiB,CAAA;IACjB,yKAAsD,CAAA;IACtD,6GAAwB,CAAA;AAC1B,CAAC,EALW,2BAA2B,2CAA3B,2BAA2B,QAKtC;AAeY,QAAA,mCAAmC,GAAoC;IAClF;QACE,WAAW,EAAE,6BAAiB,CAAC,IAAI;QACnC,aAAa,EAAE,MAAM;QACrB,SAAS,EAAE;YACT;gBACE,cAAc,EAAE,2BAA2B,CAAC,KAAK;gBACjD,OAAO,EAAE,yCAAyC;gBAClD,YAAY,EAAE,eAAe;gBAC7B,mBAAmB,EAAE,oCAAmB,CAAC,WAAW;aACrD;YACD;gBACE,cAAc,EAAE,2BAA2B,CAAC,aAAa;gBACzD,OAAO,EAAE,mBAAmB;gBAC5B,YAAY,EAAE,oBAAoB;gBAClC,mBAAmB,EAAE,oCAAmB,CAAC,WAAW;aACrD;YACD;gBACE,cAAc,EAAE,2BAA2B,CAAC,kDAAkD;gBAC9F,OAAO,EAAE,yDAAyD;gBAClE,YAAY,EAAE,yDAAyD;gBACvE,mBAAmB,EAAE,oCAAmB,CAAC,kDAAkD;aAC5F;YACD;gBACE,cAAc,EAAE,2BAA2B,CAAC,oBAAoB;gBAChE,OAAO,EAAE,yBAAyB;gBAClC,YAAY,E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B,YAAY,EAAE,mBAAmB;gBACjC,mBAAmB,EAAE,oCAAmB,CAAC,aAAa;aACvD;YACD;gBACE,cAAc,EAAE,2BAA2B,CAAC,kDAAkD;gBAC9F,OAAO,EAAE,yDAAyD;gBAClE,YAAY,EAAE,wDAAwD;gBACtE,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 { 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 = 3,\n INCOME_APPROPRIATION = 4,\n}\n\nexport type SocietyApprovalDocumentTemplate = {\n idDocumentType: SocietyApprovalDocumentType;\n docName: string;\n templateName: string;\n documentSectionType: DocumentSectionType;\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: '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.APPROVAL_PV,\n },\n {\n idDocumentType: SocietyApprovalDocumentType.DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS,\n docName: 'Déclaration de confidentialité pour les comptes annuels',\n templateName: 'DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS_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 },\n {\n idLegalForm: LegalFormTypeEnum.SARL,\n legalFormName: '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,\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: '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,\n docName: 'Déclaration de confidentialité pour les comptes annuels',\n templateName: 'DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS_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 },\n {\n idLegalForm: LegalFormTypeEnum.SAS,\n legalFormName: '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,\n docName: 'Déclaration de confidentialité pour les comptes annuels',\n templateName: 'DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS_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: '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,\n docName: 'Déclaration de confidentialité pour les comptes annuels',\n templateName: 'DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS_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,2CAAgD;AAChD,qDAAuD;AAEvD,IAAY,2BAKX;AALD,WAAY,2BAA2B;IACrC,+EAAS,CAAA;IACT,+FAAiB,CAAA;IACjB,yKAAsD,CAAA;IACtD,6GAAwB,CAAA;AAC1B,CAAC,EALW,2BAA2B,2CAA3B,2BAA2B,QAKtC;AAeY,QAAA,mCAAmC,GAAoC;IAClF;QACE,WAAW,EAAE,6BAAiB,CAAC,IAAI;QACnC,aAAa,EAAE,MAAM;QACrB,SAAS,EAAE;YACT;gBACE,cAAc,EAAE,2BAA2B,CAAC,KAAK;gBACj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C,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,KAAK;QACpB,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,kDAAkD;gBAC9F,OAAO,EAAE,yDAAyD;gBAClE,YAAY,EAAE,wDAAwD;gBACtE,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 { 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 = 3,\n INCOME_APPROPRIATION = 4,\n}\n\nexport type SocietyApprovalDocumentTemplate = {\n idDocumentType: SocietyApprovalDocumentType;\n docName: string;\n templateName: string;\n documentSectionType: DocumentSectionType;\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: '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,\n docName: 'Déclaration de confidentialité pour les comptes annuels',\n templateName: 'DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS_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 },\n {\n idLegalForm: LegalFormTypeEnum.SARL,\n legalFormName: '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,\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: '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,\n docName: 'Déclaration de confidentialité pour les comptes annuels',\n templateName: 'DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS_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 },\n {\n idLegalForm: LegalFormTypeEnum.SAS,\n legalFormName: '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,\n docName: 'Déclaration de confidentialité pour les comptes annuels',\n templateName: 'DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS_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: '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,\n docName: 'Déclaration de confidentialité pour les comptes annuels',\n templateName: 'DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS_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"]}
|
|
@@ -31,5 +31,12 @@ export declare class SocietyApproval extends Resource {
|
|
|
31
31
|
* @returns PDF file as blob
|
|
32
32
|
*/
|
|
33
33
|
generatePdf(idExercice: number, payload: CreateDocument): Promise<ReadLibraryFile>;
|
|
34
|
+
/**
|
|
35
|
+
* Regenerate PDF document from existing documentSection HTML content
|
|
36
|
+
* @param idExercice - The exercice ID
|
|
37
|
+
* @param idDocumentSection - The documentSection ID containing HTML content
|
|
38
|
+
* @returns PDF file as buffer for download
|
|
39
|
+
*/
|
|
40
|
+
regeneratePdf(idExercice: number, idDocumentSection: number): Promise<Buffer>;
|
|
34
41
|
}
|
|
35
42
|
//# sourceMappingURL=SocietyApproval.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SocietyApproval.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/SocietyApproval.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAEhF,qBAAa,eAAgB,SAAQ,QAAQ;IAC3C;;;;OAIG;IACH,GAAG,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAIlD;;;;;OAKG;IACH,iBAAiB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC;QAC7C,QAAQ,EAAE,gBAAgB,CAAC;QAC3B,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;KACnC,CAAC;IAIF;;;;;OAKG;IACH,cAAc,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAIxF;;;;;OAKG;IACH,WAAW,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"SocietyApproval.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/SocietyApproval.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAEhF,qBAAa,eAAgB,SAAQ,QAAQ;IAC3C;;;;OAIG;IACH,GAAG,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAIlD;;;;;OAKG;IACH,iBAAiB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC;QAC7C,QAAQ,EAAE,gBAAgB,CAAC;QAC3B,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;KACnC,CAAC;IAIF;;;;;OAKG;IACH,cAAc,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAIxF;;;;;OAKG;IACH,WAAW,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,eAAe,CAAC;IAIlF;;;;;OAKG;IACH,aAAa,CAAC,UAAU,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;CAO9E"}
|
|
@@ -35,5 +35,14 @@ export class SocietyApproval extends Resource {
|
|
|
35
35
|
generatePdf(idExercice, payload) {
|
|
36
36
|
return this.axios.$post(`/exercices/${idExercice}/approvals/pdf`, payload);
|
|
37
37
|
}
|
|
38
|
+
/**
|
|
39
|
+
* Regenerate PDF document from existing documentSection HTML content
|
|
40
|
+
* @param idExercice - The exercice ID
|
|
41
|
+
* @param idDocumentSection - The documentSection ID containing HTML content
|
|
42
|
+
* @returns PDF file as buffer for download
|
|
43
|
+
*/
|
|
44
|
+
regeneratePdf(idExercice, idDocumentSection) {
|
|
45
|
+
return this.axios.$post(`/exercices/${idExercice}/approvals/pdf/regenerate`, { idDocumentSection }, { responseType: 'arraybuffer' });
|
|
46
|
+
}
|
|
38
47
|
}
|
|
39
48
|
//# sourceMappingURL=SocietyApproval.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SocietyApproval.js","sourceRoot":"","sources":["../../../../ts/api/resources/SocietyApproval.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGvC,MAAM,OAAO,eAAgB,SAAQ,QAAQ;IAC3C;;;;OAIG;IACH,GAAG,CAAC,UAAkB;QACpB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,UAAU,YAAY,CAAC,CAAC;IAC/D,CAAC;IAED;;;;;OAKG;IACH,iBAAiB,CAAC,UAAkB;QAIlC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,UAAU,4BAA4B,CAAC,CAAC;IAC/E,CAAC;IAED;;;;;OAKG;IACH,cAAc,CAAC,UAAkB,EAAE,OAAyB;QAC1D,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,cAAc,UAAU,YAAY,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;IAED;;;;;OAKG;IACH,WAAW,CAAC,UAAkB,EAAE,OAAuB;QACrD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,cAAc,UAAU,gBAAgB,EAAE,OAAO,CAAC,CAAC;IAC7E,CAAC;CACF","sourcesContent":["import { Resource } from '../Resource';\nimport { ISocietyApproval, CreateDocument, ReadLibraryFile } from '../../types';\n\nexport class SocietyApproval extends Resource {\n /**\n * Get society approval data for a given exercice\n * @param idExercice - The exercice ID\n * @returns Society approval with all needed data\n */\n get(idExercice: number): Promise<ISocietyApproval> {\n return this.axios.$get(`/exercices/${idExercice}/approvals`);\n }\n\n /**\n * Get approval data needed for PDF generation\n * Retrieves all necessary information before generating a PDF document\n * @param idExercice - The exercice ID\n * @returns Approval data with template data for PDF generation\n */\n getGeneratingData(idExercice: number): Promise<{\n approval: ISocietyApproval;\n templateData: Record<string, any>;\n }> {\n return this.axios.$get(`/exercices/${idExercice}/approvals/generating-data`);\n }\n\n /**\n * Create or update society approval\n * @param idExercice - The exercice ID\n * @param payload - The approval data\n * @returns Updated or created society approval\n */\n updateOrCreate(idExercice: number, payload: ISocietyApproval): Promise<ISocietyApproval> {\n return this.axios.$post(`/exercices/${idExercice}/approvals`, payload);\n }\n\n /**\n * Generate approval PDF document\n * @param idExercice - The exercice ID\n * @param payload - The document type(s) to generate\n * @returns PDF file as blob\n */\n generatePdf(idExercice: number, payload: CreateDocument): Promise<ReadLibraryFile> {\n return this.axios.$post(`/exercices/${idExercice}/approvals/pdf`, payload);\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"SocietyApproval.js","sourceRoot":"","sources":["../../../../ts/api/resources/SocietyApproval.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGvC,MAAM,OAAO,eAAgB,SAAQ,QAAQ;IAC3C;;;;OAIG;IACH,GAAG,CAAC,UAAkB;QACpB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,UAAU,YAAY,CAAC,CAAC;IAC/D,CAAC;IAED;;;;;OAKG;IACH,iBAAiB,CAAC,UAAkB;QAIlC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,UAAU,4BAA4B,CAAC,CAAC;IAC/E,CAAC;IAED;;;;;OAKG;IACH,cAAc,CAAC,UAAkB,EAAE,OAAyB;QAC1D,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,cAAc,UAAU,YAAY,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;IAED;;;;;OAKG;IACH,WAAW,CAAC,UAAkB,EAAE,OAAuB;QACrD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,cAAc,UAAU,gBAAgB,EAAE,OAAO,CAAC,CAAC;IAC7E,CAAC;IAED;;;;;OAKG;IACH,aAAa,CAAC,UAAkB,EAAE,iBAAyB;QACzD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CACrB,cAAc,UAAU,2BAA2B,EACnD,EAAE,iBAAiB,EAAE,EACrB,EAAE,YAAY,EAAE,aAAa,EAAE,CAChC,CAAC;IACJ,CAAC;CACF","sourcesContent":["import { Resource } from '../Resource';\nimport { ISocietyApproval, CreateDocument, ReadLibraryFile } from '../../types';\n\nexport class SocietyApproval extends Resource {\n /**\n * Get society approval data for a given exercice\n * @param idExercice - The exercice ID\n * @returns Society approval with all needed data\n */\n get(idExercice: number): Promise<ISocietyApproval> {\n return this.axios.$get(`/exercices/${idExercice}/approvals`);\n }\n\n /**\n * Get approval data needed for PDF generation\n * Retrieves all necessary information before generating a PDF document\n * @param idExercice - The exercice ID\n * @returns Approval data with template data for PDF generation\n */\n getGeneratingData(idExercice: number): Promise<{\n approval: ISocietyApproval;\n templateData: Record<string, any>;\n }> {\n return this.axios.$get(`/exercices/${idExercice}/approvals/generating-data`);\n }\n\n /**\n * Create or update society approval\n * @param idExercice - The exercice ID\n * @param payload - The approval data\n * @returns Updated or created society approval\n */\n updateOrCreate(idExercice: number, payload: ISocietyApproval): Promise<ISocietyApproval> {\n return this.axios.$post(`/exercices/${idExercice}/approvals`, payload);\n }\n\n /**\n * Generate approval PDF document\n * @param idExercice - The exercice ID\n * @param payload - The document type(s) to generate\n * @returns PDF file as blob\n */\n generatePdf(idExercice: number, payload: CreateDocument): Promise<ReadLibraryFile> {\n return this.axios.$post(`/exercices/${idExercice}/approvals/pdf`, payload);\n }\n\n /**\n * Regenerate PDF document from existing documentSection HTML content\n * @param idExercice - The exercice ID\n * @param idDocumentSection - The documentSection ID containing HTML content\n * @returns PDF file as buffer for download\n */\n regeneratePdf(idExercice: number, idDocumentSection: number): Promise<Buffer> {\n return this.axios.$post(\n `/exercices/${idExercice}/approvals/pdf/regenerate`,\n { idDocumentSection },\n { responseType: 'arraybuffer' },\n );\n }\n}\n"]}
|
|
@@ -22,7 +22,7 @@ export const SocietyApprovalDocumentsByLegalForm = [
|
|
|
22
22
|
idDocumentType: SocietyApprovalDocumentType.POWER_MANDATE,
|
|
23
23
|
docName: 'Mandat de pouvoir',
|
|
24
24
|
templateName: 'POWER_MANDATE_EURL',
|
|
25
|
-
documentSectionType: DocumentSectionType.
|
|
25
|
+
documentSectionType: DocumentSectionType.POWER_MANDATE,
|
|
26
26
|
},
|
|
27
27
|
{
|
|
28
28
|
idDocumentType: SocietyApprovalDocumentType.DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SocietyApproval.js","sourceRoot":"","sources":["../../../../ts/types/Enum/SocietyApproval.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAEvD,MAAM,CAAN,IAAY,2BAKX;AALD,WAAY,2BAA2B;IACrC,+EAAS,CAAA;IACT,+FAAiB,CAAA;IACjB,yKAAsD,CAAA;IACtD,6GAAwB,CAAA;AAC1B,CAAC,EALW,2BAA2B,KAA3B,2BAA2B,QAKtC;AAeD,MAAM,CAAC,MAAM,mCAAmC,GAAoC;IAClF;QACE,WAAW,EAAE,iBAAiB,CAAC,IAAI;QACnC,aAAa,EAAE,MAAM;QACrB,SAAS,EAAE;YACT;gBACE,cAAc,EAAE,2BAA2B,CAAC,KAAK;gBACjD,OAAO,EAAE,yCAAyC;gBAClD,YAAY,EAAE,eAAe;gBAC7B,mBAAmB,EAAE,mBAAmB,CAAC,WAAW;aACrD;YACD;gBACE,cAAc,EAAE,2BAA2B,CAAC,aAAa;gBACzD,OAAO,EAAE,mBAAmB;gBAC5B,YAAY,EAAE,oBAAoB;gBAClC,mBAAmB,EAAE,mBAAmB,CAAC,WAAW;aACrD;YACD;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B,SAAS,EAAE;YACT;gBACE,cAAc,EAAE,2BAA2B,CAAC,KAAK;gBACjD,OAAO,EAAE,yCAAyC;gBAClD,YAAY,EAAE,cAAc;gBAC5B,mBAAmB,EAAE,mBAAmB,CAAC,WAAW;aACrD;YACD;gBACE,cAAc,EAAE,2BAA2B,CAAC,aAAa;gBACzD,OAAO,EAAE,mBAAmB;gBAC5B,YAAY,EAAE,mBAAmB;gBACjC,mBAAmB,EAAE,mBAAmB,CAAC,aAAa;aACvD;YACD;gBACE,cAAc,EAAE,2BAA2B,CAAC,kDAAkD;gBAC9F,OAAO,EAAE,yDAAyD;gBAClE,YAAY,EAAE,wDAAwD;gBACtE,mBAAmB,EAAE,mBAAmB,CAAC,kDAAkD;aAC5F;YACD;gBACE,cAAc,EAAE,2BAA2B,CAAC,oBAAoB;gBAChE,OAAO,EAAE,yBAAyB;gBAClC,YAAY,EAAE,0BAA0B;gBACxC,mBAAmB,EAAE,mBAAmB,CAAC,oBAAoB;aAC9D;SACF;KACF;CACF,CAAC","sourcesContent":["import { 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 = 3,\n INCOME_APPROPRIATION = 4,\n}\n\nexport type SocietyApprovalDocumentTemplate = {\n idDocumentType: SocietyApprovalDocumentType;\n docName: string;\n templateName: string;\n documentSectionType: DocumentSectionType;\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: '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.APPROVAL_PV,\n },\n {\n idDocumentType: SocietyApprovalDocumentType.DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS,\n docName: 'Déclaration de confidentialité pour les comptes annuels',\n templateName: 'DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS_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 },\n {\n idLegalForm: LegalFormTypeEnum.SARL,\n legalFormName: '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,\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: '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,\n docName: 'Déclaration de confidentialité pour les comptes annuels',\n templateName: 'DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS_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 },\n {\n idLegalForm: LegalFormTypeEnum.SAS,\n legalFormName: '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,\n docName: 'Déclaration de confidentialité pour les comptes annuels',\n templateName: 'DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS_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: '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,\n docName: 'Déclaration de confidentialité pour les comptes annuels',\n templateName: 'DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS_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,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAEvD,MAAM,CAAN,IA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alFormTypeEnum } 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 = 3,\n INCOME_APPROPRIATION = 4,\n}\n\nexport type SocietyApprovalDocumentTemplate = {\n idDocumentType: SocietyApprovalDocumentType;\n docName: string;\n templateName: string;\n documentSectionType: DocumentSectionType;\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: '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,\n docName: 'Déclaration de confidentialité pour les comptes annuels',\n templateName: 'DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS_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 },\n {\n idLegalForm: LegalFormTypeEnum.SARL,\n legalFormName: '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,\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: '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,\n docName: 'Déclaration de confidentialité pour les comptes annuels',\n templateName: 'DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS_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 },\n {\n idLegalForm: LegalFormTypeEnum.SAS,\n legalFormName: '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,\n docName: 'Déclaration de confidentialité pour les comptes annuels',\n templateName: 'DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS_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: '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,\n docName: 'Déclaration de confidentialité pour les comptes annuels',\n templateName: 'DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS_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"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@silexpert/core",
|
|
3
|
-
"version": "1.3.168-approbation-
|
|
3
|
+
"version": "1.3.168-approbation-4",
|
|
4
4
|
"description": "Silex Core perform HTTP Request and object binding. Silex core helps developers to retrieve and return formatted object",
|
|
5
5
|
"homepage": "https://gitlab.compta-clementine.fr/dev/silex-api",
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -43,4 +43,18 @@ export class SocietyApproval extends Resource {
|
|
|
43
43
|
generatePdf(idExercice: number, payload: CreateDocument): Promise<ReadLibraryFile> {
|
|
44
44
|
return this.axios.$post(`/exercices/${idExercice}/approvals/pdf`, payload);
|
|
45
45
|
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Regenerate PDF document from existing documentSection HTML content
|
|
49
|
+
* @param idExercice - The exercice ID
|
|
50
|
+
* @param idDocumentSection - The documentSection ID containing HTML content
|
|
51
|
+
* @returns PDF file as buffer for download
|
|
52
|
+
*/
|
|
53
|
+
regeneratePdf(idExercice: number, idDocumentSection: number): Promise<Buffer> {
|
|
54
|
+
return this.axios.$post(
|
|
55
|
+
`/exercices/${idExercice}/approvals/pdf/regenerate`,
|
|
56
|
+
{ idDocumentSection },
|
|
57
|
+
{ responseType: 'arraybuffer' },
|
|
58
|
+
);
|
|
59
|
+
}
|
|
46
60
|
}
|
|
@@ -36,7 +36,7 @@ export const SocietyApprovalDocumentsByLegalForm: SocietyApprovalDocumentConfig[
|
|
|
36
36
|
idDocumentType: SocietyApprovalDocumentType.POWER_MANDATE,
|
|
37
37
|
docName: 'Mandat de pouvoir',
|
|
38
38
|
templateName: 'POWER_MANDATE_EURL',
|
|
39
|
-
documentSectionType: DocumentSectionType.
|
|
39
|
+
documentSectionType: DocumentSectionType.POWER_MANDATE,
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
42
|
idDocumentType: SocietyApprovalDocumentType.DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS,
|