@metarisc/metarisc-js 0.0.1-alpha.37 → 0.0.1-alpha.38

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.
@@ -18,7 +18,7 @@ export declare class CommissionsAPI extends Core {
18
18
  * Récupération des détails de la commission.
19
19
  * @param commissionId Identifiant unique de la commission
20
20
  */
21
- getCommission(commissionId: string): Collection<Commission>;
21
+ getCommission(commissionId: string): Promise<AxiosResponse<Commission>>;
22
22
  /**
23
23
  * Récupération d'une date de passage en commission.
24
24
  * @param commissionId Identifiant unique de la commission
@@ -25,9 +25,9 @@ class CommissionsAPI extends core_1.Core {
25
25
  * Récupération des détails de la commission.
26
26
  * @param commissionId Identifiant unique de la commission
27
27
  */
28
- getCommission(commissionId) {
28
+ async getCommission(commissionId) {
29
29
  const pathVariable = { 'commission_id': commissionId };
30
- return this.collect({
30
+ return this.request({
31
31
  method: 'GET',
32
32
  endpoint: utils_1.Utils.constructPath(pathVariable, '/commissions/{commission_id}'),
33
33
  headers: {},
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@metarisc/metarisc-js",
3
3
  "main": "lib/index.js",
4
4
  "types": "lib/index.d.ts",
5
- "version": "0.0.1-alpha.37",
5
+ "version": "0.0.1-alpha.38",
6
6
  "scripts": {
7
7
  "lint": "eslint . --ext .ts --fix",
8
8
  "compile": "tsc",
@@ -34,10 +34,10 @@ export class CommissionsAPI extends Core {
34
34
  * Récupération des détails de la commission.
35
35
  * @param commissionId Identifiant unique de la commission
36
36
  */
37
- getCommission(commissionId: string): Collection<Commission>
37
+ async getCommission(commissionId: string): Promise<AxiosResponse<Commission>>
38
38
  {
39
39
  const pathVariable = { 'commission_id': commissionId };
40
- return this.collect<Commission>({
40
+ return this.request({
41
41
  method: 'GET',
42
42
  endpoint: Utils.constructPath(pathVariable, '/commissions/{commission_id}'),
43
43
  headers: { },