@silexpert/core 1.3.168-approbation-1 → 1.3.168-approbation-2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import { Resource } from '../Resource';
2
- import { ISocietyApproval, CreateDocument } from '../../types';
2
+ import { ISocietyApproval, CreateDocument, ReadLibraryFile } from '../../types';
3
3
  export declare class SocietyApproval extends Resource {
4
4
  /**
5
5
  * Get society approval data for a given exercice
@@ -30,6 +30,6 @@ export declare class SocietyApproval extends Resource {
30
30
  * @param payload - The document type(s) to generate
31
31
  * @returns PDF file as blob
32
32
  */
33
- generatePdf(idExercice: number, payload: CreateDocument): Promise<Blob>;
33
+ generatePdf(idExercice: number, payload: CreateDocument): Promise<ReadLibraryFile>;
34
34
  }
35
35
  //# 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,MAAM,aAAa,CAAC;AAE/D,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,IAAI,CAAC;CAKxE"}
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;CAGnF"}
@@ -36,9 +36,7 @@ class SocietyApproval extends Resource_1.Resource {
36
36
  * @returns PDF file as blob
37
37
  */
38
38
  generatePdf(idExercice, payload) {
39
- return this.axios.$post(`/exercices/${idExercice}/approvals/pdf`, payload, {
40
- responseType: 'blob',
41
- });
39
+ return this.axios.$post(`/exercices/${idExercice}/approvals/pdf`, payload);
42
40
  }
43
41
  }
44
42
  exports.SocietyApproval = SocietyApproval;
@@ -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,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,EAAE;YACzE,YAAY,EAAE,MAAM;SACrB,CAAC,CAAC;IACL,CAAC;CACF;AA5CD,0CA4CC","sourcesContent":["import { Resource } from '../Resource';\nimport { ISocietyApproval, CreateDocument } 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<Blob> {\n return this.axios.$post(`/exercices/${idExercice}/approvals/pdf`, payload, {\n responseType: 'blob',\n });\n }\n}\n"]}
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,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;AA1CD,0CA0CC","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,5 +1,5 @@
1
1
  import { Resource } from '../Resource';
2
- import { ISocietyApproval, CreateDocument } from '../../types';
2
+ import { ISocietyApproval, CreateDocument, ReadLibraryFile } from '../../types';
3
3
  export declare class SocietyApproval extends Resource {
4
4
  /**
5
5
  * Get society approval data for a given exercice
@@ -30,6 +30,6 @@ export declare class SocietyApproval extends Resource {
30
30
  * @param payload - The document type(s) to generate
31
31
  * @returns PDF file as blob
32
32
  */
33
- generatePdf(idExercice: number, payload: CreateDocument): Promise<Blob>;
33
+ generatePdf(idExercice: number, payload: CreateDocument): Promise<ReadLibraryFile>;
34
34
  }
35
35
  //# 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,MAAM,aAAa,CAAC;AAE/D,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,IAAI,CAAC;CAKxE"}
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;CAGnF"}
@@ -33,9 +33,7 @@ export class SocietyApproval extends Resource {
33
33
  * @returns PDF file as blob
34
34
  */
35
35
  generatePdf(idExercice, payload) {
36
- return this.axios.$post(`/exercices/${idExercice}/approvals/pdf`, payload, {
37
- responseType: 'blob',
38
- });
36
+ return this.axios.$post(`/exercices/${idExercice}/approvals/pdf`, payload);
39
37
  }
40
38
  }
41
39
  //# 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,EAAE;YACzE,YAAY,EAAE,MAAM;SACrB,CAAC,CAAC;IACL,CAAC;CACF","sourcesContent":["import { Resource } from '../Resource';\nimport { ISocietyApproval, CreateDocument } 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<Blob> {\n return this.axios.$post(`/exercices/${idExercice}/approvals/pdf`, payload, {\n responseType: 'blob',\n });\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;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"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@silexpert/core",
3
- "version": "1.3.168-approbation-1",
3
+ "version": "1.3.168-approbation-2",
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",
@@ -1,5 +1,5 @@
1
1
  import { Resource } from '../Resource';
2
- import { ISocietyApproval, CreateDocument } from '../../types';
2
+ import { ISocietyApproval, CreateDocument, ReadLibraryFile } from '../../types';
3
3
 
4
4
  export class SocietyApproval extends Resource {
5
5
  /**
@@ -40,9 +40,7 @@ export class SocietyApproval extends Resource {
40
40
  * @param payload - The document type(s) to generate
41
41
  * @returns PDF file as blob
42
42
  */
43
- generatePdf(idExercice: number, payload: CreateDocument): Promise<Blob> {
44
- return this.axios.$post(`/exercices/${idExercice}/approvals/pdf`, payload, {
45
- responseType: 'blob',
46
- });
43
+ generatePdf(idExercice: number, payload: CreateDocument): Promise<ReadLibraryFile> {
44
+ return this.axios.$post(`/exercices/${idExercice}/approvals/pdf`, payload);
47
45
  }
48
46
  }