@silexpert/core 1.1.393 → 1.1.394

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.
@@ -9,5 +9,6 @@ export declare class Exercice extends Resource {
9
9
  getAllAdjustments(id: number): Promise<IAdjustment[]>;
10
10
  delete(id: number): Promise<boolean>;
11
11
  sendBalanceSheetProject(idSociety: number, id: number, params: CreateProjectExercice): Promise<boolean>;
12
+ getProgress(idExercice: number): Promise<number>;
12
13
  }
13
14
  //# sourceMappingURL=Exercice.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Exercice.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/Exercice.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EAAE,WAAW,EAAE,aAAa,EAAE,SAAS,EAAE,cAAc,EAAE,wBAAwB,EAAE,qBAAqB,EAAE,oBAAoB,EAC7I,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,qBAAa,QAAS,SAAQ,QAAQ;IACpC,MAAM,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,SAAS,CAAC;IAIlD,iBAAiB,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,oBAAoB,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC;IAIjF,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,SAAS,CAAC;IAI9D,mBAAmB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;IAIzD,wBAAwB,CAAC,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,wBAAwB,GAAG,OAAO,CAAC,WAAW,CAAC;IAIpG,iBAAiB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC;IAIrD,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO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@@ class Exercice extends Resource_1.Resource {
27
27
  sendBalanceSheetProject(idSociety, id, params) {
28
28
  return this.axios.$post(`/societies/${idSociety}/exercices/${id}/project`, params);
29
29
  }
30
+ getProgress(idExercice) {
31
+ return this.axios.$get(`exercices/${idExercice}/progress`);
32
+ }
30
33
  }
31
34
  exports.Exercice = Exercice;
32
35
  //# sourceMappingURL=Exercice.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Exercice.js","sourceRoot":"","sources":["../../../../ts/api/resources/Exercice.ts"],"names":[],"mappings":";;;AAGA,0CAAuC;AAEvC,MAAa,QAAS,SAAQ,mBAAQ;IACpC,MAAM,CAAC,MAAsB;QAC3B,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;IAChD,CAAC;IAED,iBAAiB,CAAC,EAAU,EAAE,MAA4B;QACxD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IACnE,CAAC;IAED,MAAM,CAAC,EAAU,EAAE,MAAsB;QACvC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,EAAE,EAAE,EAAE,MAAM,CAAC,CAAC;IACrD,CAAC;IAED,mBAAmB,CAAC,EAAU;QAC5B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,EAAE,iBAAiB,CAAC,CAAC;IAC5D,CAAC;IAED,wBAAwB,CAAC,UAAkB,EAAE,MAAgC;QAC3E,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,cAAc,UAAU,cAAc,EAAE,MAAM,CAAC,CAAC;IAC1E,CAAC;IAED,iBAAiB,CAAC,EAAU;QAC1B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,EAAE,cAAc,CAAC,CAAC;IACzD,CAAC;IAED,MAAM,CAAC,EAAU;QACf,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,cAAc,EAAE,EAAE,CAAC,CAAC;IAChD,CAAC;IAED,uBAAuB,CAAC,SAAiB,EAAE,EAAU,EAAE,MAA6B;QAClF,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,cAAc,SAAS,cAAc,EAAE,UAAU,EAAE,MAAM,CAAC,CAAC;IACrF,CAAC;CACF;AAhCD,4BAgCC","sourcesContent":["import {\n CreateExercice, IAdjustment, IBalanceSheet, IExercice, UpdateExercice, UpdateOrCreateAdjustment, CreateProjectExercice, QuerySocietyExercice,\n} from '../../types';\nimport { Resource } from '../Resource';\n\nexport class Exercice extends Resource {\n create(params: CreateExercice): Promise<IExercice> {\n return this.axios.$post('/exercices', params);\n }\n\n getAllBySocietyId(id: number, params: QuerySocietyExercice): Promise<IExercice[]> {\n return this.axios.$get(`/societies/${id}/exercices`, { params });\n }\n\n update(id: number, params: UpdateExercice): Promise<IExercice> {\n return this.axios.$put(`/exercices/${id}`, params);\n }\n\n getAllBalanceSheets(id: number): Promise<IBalanceSheet[]> {\n return this.axios.$get(`/exercices/${id}/balance-sheets`);\n }\n\n updateOrCreateAdjustment(idExercice: number, params: UpdateOrCreateAdjustment): Promise<IAdjustment> {\n return this.axios.$post(`/exercices/${idExercice}/adjustments`, params);\n }\n\n getAllAdjustments(id: number): Promise<IAdjustment[]> {\n return this.axios.$get(`/exercices/${id}/adjustments`);\n }\n\n delete(id: number): Promise<boolean> {\n return this.axios.$delete(`/exercices/${id}`);\n }\n\n sendBalanceSheetProject(idSociety: number, id: number, params: CreateProjectExercice): Promise<boolean> {\n return this.axios.$post(`/societies/${idSociety}/exercices/${id}/project`, params);\n }\n}"]}
1
+ {"version":3,"file":"Exercice.js","sourceRoot":"","sources":["../../../../ts/api/resources/Exercice.ts"],"names":[],"mappings":";;;AAGA,0CAAuC;AAEvC,MAAa,QAAS,SAAQ,mBAAQ;IACpC,MAAM,CAAC,MAAsB;QAC3B,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;IAChD,CAAC;IAED,iBAAiB,CAAC,EAAU,EAAE,MAA4B;QACxD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IACnE,CAAC;IAED,MAAM,CAAC,EAAU,EAAE,MAAsB;QACvC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,EAAE,EAAE,EAAE,MAAM,CAAC,CAAC;IACrD,CAAC;IAED,mBAAmB,CAAC,EAAU;QAC5B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,EAAE,iBAAiB,CAAC,CAAC;IAC5D,CAAC;IAED,wBAAwB,CAAC,UAAkB,EAAE,MAAgC;QAC3E,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,cAAc,UAAU,cAAc,EAAE,MAAM,CAAC,CAAC;IAC1E,CAAC;IAED,iBAAiB,CAAC,EAAU;QAC1B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,EAAE,cAAc,CAAC,CAAC;IACzD,CAAC;IAED,MAAM,CAAC,EAAU;QACf,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,cAAc,EAAE,EAAE,CAAC,CAAC;IAChD,CAAC;IAED,uBAAuB,CAAC,SAAiB,EAAE,EAAU,EAAE,MAA6B;QAClF,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,cAAc,SAAS,cAAc,EAAE,UAAU,EAAE,MAAM,CAAC,CAAC;IACrF,CAAC;IAED,WAAW,CAAC,UAAkB;QAC5B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,aAAa,UAAU,WAAW,CAAC,CAAC;IAC7D,CAAC;CACF;AApCD,4BAoCC","sourcesContent":["import {\n CreateExercice, IAdjustment, IBalanceSheet, IExercice, UpdateExercice, UpdateOrCreateAdjustment, CreateProjectExercice, QuerySocietyExercice,\n} from '../../types';\nimport { Resource } from '../Resource';\n\nexport class Exercice extends Resource {\n create(params: CreateExercice): Promise<IExercice> {\n return this.axios.$post('/exercices', params);\n }\n\n getAllBySocietyId(id: number, params: QuerySocietyExercice): Promise<IExercice[]> {\n return this.axios.$get(`/societies/${id}/exercices`, { params });\n }\n\n update(id: number, params: UpdateExercice): Promise<IExercice> {\n return this.axios.$put(`/exercices/${id}`, params);\n }\n\n getAllBalanceSheets(id: number): Promise<IBalanceSheet[]> {\n return this.axios.$get(`/exercices/${id}/balance-sheets`);\n }\n\n updateOrCreateAdjustment(idExercice: number, params: UpdateOrCreateAdjustment): Promise<IAdjustment> {\n return this.axios.$post(`/exercices/${idExercice}/adjustments`, params);\n }\n\n getAllAdjustments(id: number): Promise<IAdjustment[]> {\n return this.axios.$get(`/exercices/${id}/adjustments`);\n }\n\n delete(id: number): Promise<boolean> {\n return this.axios.$delete(`/exercices/${id}`);\n }\n\n sendBalanceSheetProject(idSociety: number, id: number, params: CreateProjectExercice): Promise<boolean> {\n return this.axios.$post(`/societies/${idSociety}/exercices/${id}/project`, params);\n }\n\n getProgress(idExercice: number): Promise<number> {\n return this.axios.$get(`exercices/${idExercice}/progress`);\n }\n}"]}
@@ -9,5 +9,6 @@ export declare class Exercice extends Resource {
9
9
  getAllAdjustments(id: number): Promise<IAdjustment[]>;
10
10
  delete(id: number): Promise<boolean>;
11
11
  sendBalanceSheetProject(idSociety: number, id: number, params: CreateProjectExercice): Promise<boolean>;
12
+ getProgress(idExercice: number): Promise<number>;
12
13
  }
13
14
  //# sourceMappingURL=Exercice.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Exercice.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/Exercice.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EAAE,WAAW,EAAE,aAAa,EAAE,SAAS,EAAE,cAAc,EAAE,wBAAwB,EAAE,qBAAqB,EAAE,oBAAoB,EAC7I,MAAM,aAAa,CAAC;AACrB,O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,CAAC,SAAS,EAAE,CAAC;IAIjF,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,SAAS,CAAC;IAI9D,mBAAmB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;IAIzD,wBAAwB,CAAC,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,wBAAwB,GAAG,OAAO,CAAC,WAAW,CAAC;IAIpG,iBAAiB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC;IAIrD,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAIpC,uBAAuB,CAAC,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,qBAAqB,GAAG,OAAO,CAAC,OAAO,CAAC;IAIvG,WAAW,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;CAGjD"}
@@ -24,5 +24,8 @@ export class Exercice extends Resource {
24
24
  sendBalanceSheetProject(idSociety, id, params) {
25
25
  return this.axios.$post(`/societies/${idSociety}/exercices/${id}/project`, params);
26
26
  }
27
+ getProgress(idExercice) {
28
+ return this.axios.$get(`exercices/${idExercice}/progress`);
29
+ }
27
30
  }
28
31
  //# sourceMappingURL=Exercice.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Exercice.js","sourceRoot":"","sources":["../../../../ts/api/resources/Exercice.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,MAAM,OAAO,QAAS,SAAQ,QAAQ;IACpC,MAAM,CAAC,MAAsB;QAC3B,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;IAChD,CAAC;IAED,iBAAiB,CAAC,EAAU,EAAE,MAA4B;QACxD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IACnE,CAAC;IAED,MAAM,CAAC,EAAU,EAAE,MAAsB;QACvC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,EAAE,EAAE,EAAE,MAAM,CAAC,CAAC;IACrD,CAAC;IAED,mBAAmB,CAAC,EAAU;QAC5B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,EAAE,iBAAiB,CAAC,CAAC;IAC5D,CAAC;IAED,wBAAwB,CAAC,UAAkB,EAAE,MAAgC;QAC3E,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,cAAc,UAAU,cAAc,EAAE,MAAM,CAAC,CAAC;IAC1E,CAAC;IAED,iBAAiB,CAAC,EAAU;QAC1B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,EAAE,cAAc,CAAC,CAAC;IACzD,CAAC;IAED,MAAM,CAAC,EAAU;QACf,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,cAAc,EAAE,EAAE,CAAC,CAAC;IAChD,CAAC;IAED,uBAAuB,CAAC,SAAiB,EAAE,EAAU,EAAE,MAA6B;QAClF,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,cAAc,SAAS,cAAc,EAAE,UAAU,EAAE,MAAM,CAAC,CAAC;IACrF,CAAC;CACF","sourcesContent":["import {\n CreateExercice, IAdjustment, IBalanceSheet, IExercice, UpdateExercice, UpdateOrCreateAdjustment, CreateProjectExercice, QuerySocietyExercice,\n} from '../../types';\nimport { Resource } from '../Resource';\n\nexport class Exercice extends Resource {\n create(params: CreateExercice): Promise<IExercice> {\n return this.axios.$post('/exercices', params);\n }\n\n getAllBySocietyId(id: number, params: QuerySocietyExercice): Promise<IExercice[]> {\n return this.axios.$get(`/societies/${id}/exercices`, { params });\n }\n\n update(id: number, params: UpdateExercice): Promise<IExercice> {\n return this.axios.$put(`/exercices/${id}`, params);\n }\n\n getAllBalanceSheets(id: number): Promise<IBalanceSheet[]> {\n return this.axios.$get(`/exercices/${id}/balance-sheets`);\n }\n\n updateOrCreateAdjustment(idExercice: number, params: UpdateOrCreateAdjustment): Promise<IAdjustment> {\n return this.axios.$post(`/exercices/${idExercice}/adjustments`, params);\n }\n\n getAllAdjustments(id: number): Promise<IAdjustment[]> {\n return this.axios.$get(`/exercices/${id}/adjustments`);\n }\n\n delete(id: number): Promise<boolean> {\n return this.axios.$delete(`/exercices/${id}`);\n }\n\n sendBalanceSheetProject(idSociety: number, id: number, params: CreateProjectExercice): Promise<boolean> {\n return this.axios.$post(`/societies/${idSociety}/exercices/${id}/project`, params);\n }\n}"]}
1
+ {"version":3,"file":"Exercice.js","sourceRoot":"","sources":["../../../../ts/api/resources/Exercice.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,MAAM,OAAO,QAAS,SAAQ,QAAQ;IACpC,MAAM,CAAC,MAAsB;QAC3B,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;IAChD,CAAC;IAED,iBAAiB,CAAC,EAAU,EAAE,MAA4B;QACxD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IACnE,CAAC;IAED,MAAM,CAAC,EAAU,EAAE,MAAsB;QACvC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,EAAE,EAAE,EAAE,MAAM,CAAC,CAAC;IACrD,CAAC;IAED,mBAAmB,CAAC,EAAU;QAC5B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,EAAE,iBAAiB,CAAC,CAAC;IAC5D,CAAC;IAED,wBAAwB,CAAC,UAAkB,EAAE,MAAgC;QAC3E,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,cAAc,UAAU,cAAc,EAAE,MAAM,CAAC,CAAC;IAC1E,CAAC;IAED,iBAAiB,CAAC,EAAU;QAC1B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,EAAE,cAAc,CAAC,CAAC;IACzD,CAAC;IAED,MAAM,CAAC,EAAU;QACf,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,cAAc,EAAE,EAAE,CAAC,CAAC;IAChD,CAAC;IAED,uBAAuB,CAAC,SAAiB,EAAE,EAAU,EAAE,MAA6B;QAClF,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,cAAc,SAAS,cAAc,EAAE,UAAU,EAAE,MAAM,CAAC,CAAC;IACrF,CAAC;IAED,WAAW,CAAC,UAAkB;QAC5B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,aAAa,UAAU,WAAW,CAAC,CAAC;IAC7D,CAAC;CACF","sourcesContent":["import {\n CreateExercice, IAdjustment, IBalanceSheet, IExercice, UpdateExercice, UpdateOrCreateAdjustment, CreateProjectExercice, QuerySocietyExercice,\n} from '../../types';\nimport { Resource } from '../Resource';\n\nexport class Exercice extends Resource {\n create(params: CreateExercice): Promise<IExercice> {\n return this.axios.$post('/exercices', params);\n }\n\n getAllBySocietyId(id: number, params: QuerySocietyExercice): Promise<IExercice[]> {\n return this.axios.$get(`/societies/${id}/exercices`, { params });\n }\n\n update(id: number, params: UpdateExercice): Promise<IExercice> {\n return this.axios.$put(`/exercices/${id}`, params);\n }\n\n getAllBalanceSheets(id: number): Promise<IBalanceSheet[]> {\n return this.axios.$get(`/exercices/${id}/balance-sheets`);\n }\n\n updateOrCreateAdjustment(idExercice: number, params: UpdateOrCreateAdjustment): Promise<IAdjustment> {\n return this.axios.$post(`/exercices/${idExercice}/adjustments`, params);\n }\n\n getAllAdjustments(id: number): Promise<IAdjustment[]> {\n return this.axios.$get(`/exercices/${id}/adjustments`);\n }\n\n delete(id: number): Promise<boolean> {\n return this.axios.$delete(`/exercices/${id}`);\n }\n\n sendBalanceSheetProject(idSociety: number, id: number, params: CreateProjectExercice): Promise<boolean> {\n return this.axios.$post(`/societies/${idSociety}/exercices/${id}/project`, params);\n }\n\n getProgress(idExercice: number): Promise<number> {\n return this.axios.$get(`exercices/${idExercice}/progress`);\n }\n}"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@silexpert/core",
3
- "version": "1.1.393",
3
+ "version": "1.1.394",
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",
@@ -35,4 +35,8 @@ export class Exercice extends Resource {
35
35
  sendBalanceSheetProject(idSociety: number, id: number, params: CreateProjectExercice): Promise<boolean> {
36
36
  return this.axios.$post(`/societies/${idSociety}/exercices/${id}/project`, params);
37
37
  }
38
+
39
+ getProgress(idExercice: number): Promise<number> {
40
+ return this.axios.$get(`exercices/${idExercice}/progress`);
41
+ }
38
42
  }