@silexpert/core 1.3.211 → 1.3.212

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.
@@ -7,6 +7,12 @@ export declare class DocumentSection extends Resource {
7
7
  * @returns { IDocumentSection[] }
8
8
  */
9
9
  getAllForSociety(idSociety: number): Promise<IDocumentSection[]>;
10
+ /**
11
+ * Fetch all document sections for an exercice
12
+ * @param { idExercice } idExercice
13
+ * @returns { IDocumentSection[] }
14
+ */
15
+ getAllByExercice(idExercice: number): Promise<IDocumentSection[]>;
10
16
  /**
11
17
  * Fetch a document section
12
18
  * @param { number } id
@@ -1 +1 @@
1
- {"version":3,"file":"DocumentSection.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/DocumentSection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAEtE,qBAAa,eAAgB,SAAQ,QAAQ;IAC3C;;;;OAIG;IACI,gBAAgB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,EAAE,CAAC;IAIvE;;;;OAIG;IACI,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAIjD;;;;;OAKG;IACI,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC;QAAE,IAAI,EAAE,gBAAgB,CAAA;KAAE,CAAC;IAI9F;;;;;OAKG;IACI,MAAM,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,gBAAgB,CAAC;CAGpE"}
1
+ {"version":3,"file":"DocumentSection.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/DocumentSection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAEtE,qBAAa,eAAgB,SAAQ,QAAQ;IAC3C;;;;OAIG;IACI,gBAAgB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,EAAE,CAAC;IAIvE;;;;OAIG;IACI,gBAAgB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,EAAE,CAAC;IAIxE;;;;OAIG;IACI,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAIjD;;;;;OAKG;IACI,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC;QAAE,IAAI,EAAE,gBAAgB,CAAA;KAAE,CAAC;IAI9F;;;;;OAKG;IACI,MAAM,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,gBAAgB,CAAC;CAGpE"}
@@ -11,6 +11,14 @@ class DocumentSection extends Resource_1.Resource {
11
11
  getAllForSociety(idSociety) {
12
12
  return this.axios.$get(`/societies/${idSociety}/documents-sections`);
13
13
  }
14
+ /**
15
+ * Fetch all document sections for an exercice
16
+ * @param { idExercice } idExercice
17
+ * @returns { IDocumentSection[] }
18
+ */
19
+ getAllByExercice(idExercice) {
20
+ return this.axios.$get(`/exercices/${idExercice}/documents-sections`);
21
+ }
14
22
  /**
15
23
  * Fetch a document section
16
24
  * @param { number } id
@@ -1 +1 @@
1
- {"version":3,"file":"DocumentSection.js","sourceRoot":"","sources":["../../../../ts/api/resources/DocumentSection.ts"],"names":[],"mappings":";;;AAAA,0CAAuC;AAGvC,MAAa,eAAgB,SAAQ,mBAAQ;IAC3C;;;;OAIG;IACI,gBAAgB,CAAC,SAAiB;QACvC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,SAAS,qBAAqB,CAAC,CAAC;IACvE,CAAC;IAED;;;;OAIG;IACI,GAAG,CAAC,EAAU;QACnB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,uBAAuB,EAAE,EAAE,CAAC,CAAC;IACtD,CAAC;IAED;;;;;OAKG;IACI,MAAM,CAAC,EAAU,EAAE,OAA8B;QACtD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,uBAAuB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAChE,CAAC;IAED;;;;;OAKG;IACI,MAAM,CAAC,OAAyB;QACrC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,qBAAqB,EAAE,OAAO,CAAC,CAAC;IAC1D,CAAC;CACF;AAtCD,0CAsCC","sourcesContent":["import { Resource } from '../Resource';\nimport { IDocumentSection, UpdateDocumentSection } from '../../types';\n\nexport class DocumentSection extends Resource {\n /**\n * Fetch all document sections according to conditions\n * @param { idSociety } idSociety\n * @returns { IDocumentSection[] }\n */\n public getAllForSociety(idSociety: number): Promise<IDocumentSection[]> {\n return this.axios.$get(`/societies/${idSociety}/documents-sections`);\n }\n\n /**\n * Fetch a document section\n * @param { number } id\n * @returns { IDocumentSection }\n */\n public get(id: number): Promise<IDocumentSection> {\n return this.axios.$get(`/documents-sections/${id}`);\n }\n\n /**\n * Update a document section\n * @param id identifier of element to update\n * @param payload elements to update\n * @returns an interface of DocumentSection\n */\n public update(id: number, payload: UpdateDocumentSection): Promise<{ data: IDocumentSection }> {\n return this.axios.patch(`/documents-sections/${id}`, payload);\n }\n\n /**\n * Create a document section\n * @param id identifier of element to update\n * @param payload elements to create\n * @returns an interface of DocumentSection\n */\n public create(payload: IDocumentSection): Promise<IDocumentSection> {\n return this.axios.$post('/documents-sections', payload);\n }\n}\n"]}
1
+ {"version":3,"file":"DocumentSection.js","sourceRoot":"","sources":["../../../../ts/api/resources/DocumentSection.ts"],"names":[],"mappings":";;;AAAA,0CAAuC;AAGvC,MAAa,eAAgB,SAAQ,mBAAQ;IAC3C;;;;OAIG;IACI,gBAAgB,CAAC,SAAiB;QACvC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,SAAS,qBAAqB,CAAC,CAAC;IACvE,CAAC;IAED;;;;OAIG;IACI,gBAAgB,CAAC,UAAkB;QACxC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,UAAU,qBAAqB,CAAC,CAAC;IACxE,CAAC;IAED;;;;OAIG;IACI,GAAG,CAAC,EAAU;QACnB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,uBAAuB,EAAE,EAAE,CAAC,CAAC;IACtD,CAAC;IAED;;;;;OAKG;IACI,MAAM,CAAC,EAAU,EAAE,OAA8B;QACtD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,uBAAuB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAChE,CAAC;IAED;;;;;OAKG;IACI,MAAM,CAAC,OAAyB;QACrC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,qBAAqB,EAAE,OAAO,CAAC,CAAC;IAC1D,CAAC;CACF;AA/CD,0CA+CC","sourcesContent":["import { Resource } from '../Resource';\nimport { IDocumentSection, UpdateDocumentSection } from '../../types';\n\nexport class DocumentSection extends Resource {\n /**\n * Fetch all document sections according to conditions\n * @param { idSociety } idSociety\n * @returns { IDocumentSection[] }\n */\n public getAllForSociety(idSociety: number): Promise<IDocumentSection[]> {\n return this.axios.$get(`/societies/${idSociety}/documents-sections`);\n }\n\n /**\n * Fetch all document sections for an exercice\n * @param { idExercice } idExercice\n * @returns { IDocumentSection[] }\n */\n public getAllByExercice(idExercice: number): Promise<IDocumentSection[]> {\n return this.axios.$get(`/exercices/${idExercice}/documents-sections`);\n }\n\n /**\n * Fetch a document section\n * @param { number } id\n * @returns { IDocumentSection }\n */\n public get(id: number): Promise<IDocumentSection> {\n return this.axios.$get(`/documents-sections/${id}`);\n }\n\n /**\n * Update a document section\n * @param id identifier of element to update\n * @param payload elements to update\n * @returns an interface of DocumentSection\n */\n public update(id: number, payload: UpdateDocumentSection): Promise<{ data: IDocumentSection }> {\n return this.axios.patch(`/documents-sections/${id}`, payload);\n }\n\n /**\n * Create a document section\n * @param id identifier of element to update\n * @param payload elements to create\n * @returns an interface of DocumentSection\n */\n public create(payload: IDocumentSection): Promise<IDocumentSection> {\n return this.axios.$post('/documents-sections', payload);\n }\n}\n"]}
@@ -7,6 +7,12 @@ export declare class DocumentSection extends Resource {
7
7
  * @returns { IDocumentSection[] }
8
8
  */
9
9
  getAllForSociety(idSociety: number): Promise<IDocumentSection[]>;
10
+ /**
11
+ * Fetch all document sections for an exercice
12
+ * @param { idExercice } idExercice
13
+ * @returns { IDocumentSection[] }
14
+ */
15
+ getAllByExercice(idExercice: number): Promise<IDocumentSection[]>;
10
16
  /**
11
17
  * Fetch a document section
12
18
  * @param { number } id
@@ -1 +1 @@
1
- {"version":3,"file":"DocumentSection.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/DocumentSection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAEtE,qBAAa,eAAgB,SAAQ,QAAQ;IAC3C;;;;OAIG;IACI,gBAAgB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,EAAE,CAAC;IAIvE;;;;OAIG;IACI,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAIjD;;;;;OAKG;IACI,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC;QAAE,IAAI,EAAE,gBAAgB,CAAA;KAAE,CAAC;IAI9F;;;;;OAKG;IACI,MAAM,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,gBAAgB,CAAC;CAGpE"}
1
+ {"version":3,"file":"DocumentSection.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/DocumentSection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAEtE,qBAAa,eAAgB,SAAQ,QAAQ;IAC3C;;;;OAIG;IACI,gBAAgB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,EAAE,CAAC;IAIvE;;;;OAIG;IACI,gBAAgB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,EAAE,CAAC;IAIxE;;;;OAIG;IACI,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAIjD;;;;;OAKG;IACI,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC;QAAE,IAAI,EAAE,gBAAgB,CAAA;KAAE,CAAC;IAI9F;;;;;OAKG;IACI,MAAM,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,gBAAgB,CAAC;CAGpE"}
@@ -8,6 +8,14 @@ export class DocumentSection extends Resource {
8
8
  getAllForSociety(idSociety) {
9
9
  return this.axios.$get(`/societies/${idSociety}/documents-sections`);
10
10
  }
11
+ /**
12
+ * Fetch all document sections for an exercice
13
+ * @param { idExercice } idExercice
14
+ * @returns { IDocumentSection[] }
15
+ */
16
+ getAllByExercice(idExercice) {
17
+ return this.axios.$get(`/exercices/${idExercice}/documents-sections`);
18
+ }
11
19
  /**
12
20
  * Fetch a document section
13
21
  * @param { number } id
@@ -1 +1 @@
1
- {"version":3,"file":"DocumentSection.js","sourceRoot":"","sources":["../../../../ts/api/resources/DocumentSection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGvC,MAAM,OAAO,eAAgB,SAAQ,QAAQ;IAC3C;;;;OAIG;IACI,gBAAgB,CAAC,SAAiB;QACvC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,SAAS,qBAAqB,CAAC,CAAC;IACvE,CAAC;IAED;;;;OAIG;IACI,GAAG,CAAC,EAAU;QACnB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,uBAAuB,EAAE,EAAE,CAAC,CAAC;IACtD,CAAC;IAED;;;;;OAKG;IACI,MAAM,CAAC,EAAU,EAAE,OAA8B;QACtD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,uBAAuB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAChE,CAAC;IAED;;;;;OAKG;IACI,MAAM,CAAC,OAAyB;QACrC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,qBAAqB,EAAE,OAAO,CAAC,CAAC;IAC1D,CAAC;CACF","sourcesContent":["import { Resource } from '../Resource';\nimport { IDocumentSection, UpdateDocumentSection } from '../../types';\n\nexport class DocumentSection extends Resource {\n /**\n * Fetch all document sections according to conditions\n * @param { idSociety } idSociety\n * @returns { IDocumentSection[] }\n */\n public getAllForSociety(idSociety: number): Promise<IDocumentSection[]> {\n return this.axios.$get(`/societies/${idSociety}/documents-sections`);\n }\n\n /**\n * Fetch a document section\n * @param { number } id\n * @returns { IDocumentSection }\n */\n public get(id: number): Promise<IDocumentSection> {\n return this.axios.$get(`/documents-sections/${id}`);\n }\n\n /**\n * Update a document section\n * @param id identifier of element to update\n * @param payload elements to update\n * @returns an interface of DocumentSection\n */\n public update(id: number, payload: UpdateDocumentSection): Promise<{ data: IDocumentSection }> {\n return this.axios.patch(`/documents-sections/${id}`, payload);\n }\n\n /**\n * Create a document section\n * @param id identifier of element to update\n * @param payload elements to create\n * @returns an interface of DocumentSection\n */\n public create(payload: IDocumentSection): Promise<IDocumentSection> {\n return this.axios.$post('/documents-sections', payload);\n }\n}\n"]}
1
+ {"version":3,"file":"DocumentSection.js","sourceRoot":"","sources":["../../../../ts/api/resources/DocumentSection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGvC,MAAM,OAAO,eAAgB,SAAQ,QAAQ;IAC3C;;;;OAIG;IACI,gBAAgB,CAAC,SAAiB;QACvC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,SAAS,qBAAqB,CAAC,CAAC;IACvE,CAAC;IAED;;;;OAIG;IACI,gBAAgB,CAAC,UAAkB;QACxC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,UAAU,qBAAqB,CAAC,CAAC;IACxE,CAAC;IAED;;;;OAIG;IACI,GAAG,CAAC,EAAU;QACnB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,uBAAuB,EAAE,EAAE,CAAC,CAAC;IACtD,CAAC;IAED;;;;;OAKG;IACI,MAAM,CAAC,EAAU,EAAE,OAA8B;QACtD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,uBAAuB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAChE,CAAC;IAED;;;;;OAKG;IACI,MAAM,CAAC,OAAyB;QACrC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,qBAAqB,EAAE,OAAO,CAAC,CAAC;IAC1D,CAAC;CACF","sourcesContent":["import { Resource } from '../Resource';\nimport { IDocumentSection, UpdateDocumentSection } from '../../types';\n\nexport class DocumentSection extends Resource {\n /**\n * Fetch all document sections according to conditions\n * @param { idSociety } idSociety\n * @returns { IDocumentSection[] }\n */\n public getAllForSociety(idSociety: number): Promise<IDocumentSection[]> {\n return this.axios.$get(`/societies/${idSociety}/documents-sections`);\n }\n\n /**\n * Fetch all document sections for an exercice\n * @param { idExercice } idExercice\n * @returns { IDocumentSection[] }\n */\n public getAllByExercice(idExercice: number): Promise<IDocumentSection[]> {\n return this.axios.$get(`/exercices/${idExercice}/documents-sections`);\n }\n\n /**\n * Fetch a document section\n * @param { number } id\n * @returns { IDocumentSection }\n */\n public get(id: number): Promise<IDocumentSection> {\n return this.axios.$get(`/documents-sections/${id}`);\n }\n\n /**\n * Update a document section\n * @param id identifier of element to update\n * @param payload elements to update\n * @returns an interface of DocumentSection\n */\n public update(id: number, payload: UpdateDocumentSection): Promise<{ data: IDocumentSection }> {\n return this.axios.patch(`/documents-sections/${id}`, payload);\n }\n\n /**\n * Create a document section\n * @param id identifier of element to update\n * @param payload elements to create\n * @returns an interface of DocumentSection\n */\n public create(payload: IDocumentSection): Promise<IDocumentSection> {\n return this.axios.$post('/documents-sections', payload);\n }\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@silexpert/core",
3
- "version": "1.3.211",
3
+ "version": "1.3.212",
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",
@@ -11,6 +11,15 @@ export class DocumentSection extends Resource {
11
11
  return this.axios.$get(`/societies/${idSociety}/documents-sections`);
12
12
  }
13
13
 
14
+ /**
15
+ * Fetch all document sections for an exercice
16
+ * @param { idExercice } idExercice
17
+ * @returns { IDocumentSection[] }
18
+ */
19
+ public getAllByExercice(idExercice: number): Promise<IDocumentSection[]> {
20
+ return this.axios.$get(`/exercices/${idExercice}/documents-sections`);
21
+ }
22
+
14
23
  /**
15
24
  * Fetch a document section
16
25
  * @param { number } id