@pax2pay/model-banking 0.1.345 → 0.1.346

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/Client/Audit.ts CHANGED
@@ -5,6 +5,6 @@ import { Audit as AuditLog } from "../Audit"
5
5
  export class Audit {
6
6
  constructor(private readonly client: http.Client) {}
7
7
  async list(resource?: AuditLog.Resource): Promise<AuditLog[] | gracely.Error> {
8
- return this.client.get<AuditLog[]>(`/audit/${resource}`)
8
+ return this.client.get<AuditLog[]>(`/audit${resource ? "/" + resource : ""}`)
9
9
  }
10
10
  }
@@ -3,7 +3,7 @@ export class Audit {
3
3
  this.client = client;
4
4
  }
5
5
  async list(resource) {
6
- return this.client.get(`/audit/${resource}`);
6
+ return this.client.get(`/audit${resource ? "/" + resource : ""}`);
7
7
  }
8
8
  }
9
9
  //# sourceMappingURL=Audit.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Audit.js","sourceRoot":"../","sources":["Client/Audit.ts"],"names":[],"mappings":"AAIA,MAAM,OAAO,KAAK;IACjB,YAA6B,MAAmB;QAAnB,WAAM,GAAN,MAAM,CAAa;IAAG,CAAC;IACpD,KAAK,CAAC,IAAI,CAAC,QAA4B;QACtC,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAa,UAAU,QAAQ,EAAE,CAAC,CAAA;IACzD,CAAC;CACD"}
1
+ {"version":3,"file":"Audit.js","sourceRoot":"../","sources":["Client/Audit.ts"],"names":[],"mappings":"AAIA,MAAM,OAAO,KAAK;IACjB,YAA6B,MAAmB;QAAnB,WAAM,GAAN,MAAM,CAAa;IAAG,CAAC;IACpD,KAAK,CAAC,IAAI,CAAC,QAA4B;QACtC,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAa,SAAS,QAAQ,CAAC,CAAC,CAAC,GAAG,GAAG,QAAQ,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAA;IAC9E,CAAC;CACD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pax2pay/model-banking",
3
- "version": "0.1.345",
3
+ "version": "0.1.346",
4
4
  "description": "Library containing data model types and functions for the Pax2Pay Banking API.",
5
5
  "author": "Pax2Pay Ltd",
6
6
  "license": "MIT",