@pax2pay/model-banking 0.0.25 → 0.0.26
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/Operations.ts
CHANGED
|
@@ -7,8 +7,8 @@ export class Operations extends rest.Collection<gracely.Error> {
|
|
|
7
7
|
constructor(client: http.Client) {
|
|
8
8
|
super(client)
|
|
9
9
|
}
|
|
10
|
-
async list(
|
|
10
|
+
async list(start?: string, end?: string): Promise<Operation[] | gracely.Error> {
|
|
11
11
|
const search = start && end ? `?start=${start}&end=${end}` : start ? `?start=${start}` : end ? `?end=${end}` : ""
|
|
12
|
-
return this.client.get<Operation[]>(`/operation
|
|
12
|
+
return this.client.get<Operation[]>(`/operation${search}`)
|
|
13
13
|
}
|
|
14
14
|
}
|
|
@@ -4,5 +4,5 @@ import * as rest from "cloudly-rest";
|
|
|
4
4
|
import { Operation } from "../Operation";
|
|
5
5
|
export declare class Operations extends rest.Collection<gracely.Error> {
|
|
6
6
|
constructor(client: http.Client);
|
|
7
|
-
list(
|
|
7
|
+
list(start?: string, end?: string): Promise<Operation[] | gracely.Error>;
|
|
8
8
|
}
|
|
@@ -3,9 +3,9 @@ export class Operations extends rest.Collection {
|
|
|
3
3
|
constructor(client) {
|
|
4
4
|
super(client);
|
|
5
5
|
}
|
|
6
|
-
async list(
|
|
6
|
+
async list(start, end) {
|
|
7
7
|
const search = start && end ? `?start=${start}&end=${end}` : start ? `?start=${start}` : end ? `?end=${end}` : "";
|
|
8
|
-
return this.client.get(`/operation
|
|
8
|
+
return this.client.get(`/operation${search}`);
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
//# sourceMappingURL=Operations.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Operations.js","sourceRoot":"../","sources":["Client/Operations.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,cAAc,CAAA;AAGpC,MAAM,OAAO,UAAW,SAAQ,IAAI,CAAC,UAAyB;IAC7D,YAAY,MAAmB;QAC9B,KAAK,CAAC,MAAM,CAAC,CAAA;IACd,CAAC;IACD,KAAK,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"Operations.js","sourceRoot":"../","sources":["Client/Operations.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,cAAc,CAAA;AAGpC,MAAM,OAAO,UAAW,SAAQ,IAAI,CAAC,UAAyB;IAC7D,YAAY,MAAmB;QAC9B,KAAK,CAAC,MAAM,CAAC,CAAA;IACd,CAAC;IACD,KAAK,CAAC,IAAI,CAAC,KAAc,EAAE,GAAY;QACtC,MAAM,MAAM,GAAG,KAAK,IAAI,GAAG,CAAC,CAAC,CAAC,UAAU,KAAK,QAAQ,GAAG,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,UAAU,KAAK,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,QAAQ,GAAG,EAAE,CAAC,CAAC,CAAC,EAAE,CAAA;QACjH,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAc,aAAa,MAAM,EAAE,CAAC,CAAA;IAC3D,CAAC;CACD"}
|