@pax2pay/client 0.10.15 → 0.10.17
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/Batch/index.ts +4 -2
- package/dist/Client/Batch/index.d.ts +1 -1
- package/dist/Client/Batch/index.js +2 -2
- package/dist/Client/Batch/index.js.map +1 -1
- package/dist/model/Batch/Item/Status.d.ts +2 -2
- package/dist/model/Batch/Item/Status.js +1 -1
- package/dist/model/Batch/Item/Status.js.map +1 -1
- package/dist/model/Batch/Status.d.ts +2 -2
- package/model/Batch/Item/Status.ts +1 -1
- package/package.json +1 -1
package/Client/Batch/index.ts
CHANGED
|
@@ -50,7 +50,8 @@ export class Batch extends List<model.Batch.Response> {
|
|
|
50
50
|
batchId: string,
|
|
51
51
|
previous?: Paginated<I>,
|
|
52
52
|
page?: number,
|
|
53
|
-
size?: number
|
|
53
|
+
size?: number,
|
|
54
|
+
sort = "ordinal,asc"
|
|
54
55
|
): Promise<Paginated<I> | model.ErrorResponse> {
|
|
55
56
|
return await this.getNextPaginated(
|
|
56
57
|
previous,
|
|
@@ -62,7 +63,8 @@ export class Batch extends List<model.Batch.Response> {
|
|
|
62
63
|
}),
|
|
63
64
|
undefined,
|
|
64
65
|
page,
|
|
65
|
-
size
|
|
66
|
+
size,
|
|
67
|
+
sort
|
|
66
68
|
)
|
|
67
69
|
}
|
|
68
70
|
}
|
|
@@ -11,5 +11,5 @@ export declare class Batch extends List<model.Batch.Response> {
|
|
|
11
11
|
listByType(type: model.Batch.Type, previous?: Paginated<model.Batch.Response>, page?: number, size?: number, sort?: string): Promise<Paginated<model.Batch.Response> | model.ErrorResponse>;
|
|
12
12
|
run(batchId: string, otp?: string): Promise<model.Batch.Response | model.ErrorResponse>;
|
|
13
13
|
cancel(batchId: string): Promise<model.Batch.Response | model.ErrorResponse>;
|
|
14
|
-
listItems<I extends model.Batch.Item = model.Batch.Item>(batchId: string, previous?: Paginated<I>, page?: number, size?: number): Promise<Paginated<I> | model.ErrorResponse>;
|
|
14
|
+
listItems<I extends model.Batch.Item = model.Batch.Item>(batchId: string, previous?: Paginated<I>, page?: number, size?: number, sort?: string): Promise<Paginated<I> | model.ErrorResponse>;
|
|
15
15
|
}
|
|
@@ -22,12 +22,12 @@ export class Batch extends List {
|
|
|
22
22
|
async cancel(batchId) {
|
|
23
23
|
return await this.connection.get(`${this.folder}/${batchId}/cancel`);
|
|
24
24
|
}
|
|
25
|
-
async listItems(batchId, previous, page, size) {
|
|
25
|
+
async listItems(batchId, previous, page, size, sort = "ordinal,asc") {
|
|
26
26
|
return await this.getNextPaginated(previous, (page, size, sort) => this.connection.get(`${this.folder}/${batchId}/items`, {
|
|
27
27
|
page,
|
|
28
28
|
size,
|
|
29
29
|
sort,
|
|
30
|
-
}), undefined, page, size);
|
|
30
|
+
}), undefined, page, size, sort);
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Client/Batch/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAE9B,MAAM,OAAO,KAAM,SAAQ,IAA0B;IAEpD,YAAoB,UAAsB;QACzC,KAAK,CAAC,UAAU,CAAC,CAAA;QAFC,WAAM,GAAG,OAAO,CAAA;IAGnC,CAAC;IACD,MAAM,CAAC,MAAM,CAAC,UAAsB;QACnC,OAAO,IAAI,KAAK,CAAC,UAAU,CAAC,CAAA;IAC7B,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,IAAsB,EAAE,OAAa;QACjD,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,CAAuB,GAAG,IAAI,CAAC,MAAM,IAAI,IAAI,EAAE,EAAE,OAAO,CAAC,CAAA;IAC3F,CAAC;IACD,KAAK,CAAC,GAAG,CAAC,OAAe;QACxB,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,G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AAC,MAAM,IAAI,OAAO,SAAS,CAAC,CAAA;IAC3F,CAAC;IACD,KAAK,CAAC,SAAS,CACd,OAAe,EACf,QAAuB,EACvB,IAAa,EACb,IAAa,EACb,IAAI,GAAG,aAAa;QAEpB,OAAO,MAAM,IAAI,CAAC,gBAAgB,CACjC,QAAQ,EACR,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,CACpB,IAAI,CAAC,UAAU,CAAC,GAAG,CAAoC,GAAG,IAAI,CAAC,MAAM,IAAI,OAAO,QAAQ,EAAE;YACzF,IAAI;YACJ,IAAI;YACJ,IAAI;SACJ,CAAC,EACH,SAAS,EACT,IAAI,EACJ,IAAI,EACJ,IAAI,CACJ,CAAA;IACF,CAAC;CACD"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isly } from "isly";
|
|
2
2
|
export type Status = typeof Status.values[number];
|
|
3
3
|
export declare namespace Status {
|
|
4
|
-
const values: readonly ["todo", "successful", "failed", "
|
|
5
|
-
const type: isly.Type<"failed" | "
|
|
4
|
+
const values: readonly ["todo", "successful", "failed", "cancelled", "failed import"];
|
|
5
|
+
const type: isly.Type<"failed" | "todo" | "successful" | "cancelled" | "failed import">;
|
|
6
6
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isly } from "isly";
|
|
2
2
|
export var Status;
|
|
3
3
|
(function (Status) {
|
|
4
|
-
Status.values = ["todo", "successful", "failed", "
|
|
4
|
+
Status.values = ["todo", "successful", "failed", "cancelled", "failed import"];
|
|
5
5
|
Status.type = isly.string(Status.values);
|
|
6
6
|
})(Status || (Status = {}));
|
|
7
7
|
//# sourceMappingURL=Status.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Status.js","sourceRoot":"../","sources":["model/Batch/Item/Status.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAI3B,MAAM,KAAW,MAAM,CAGtB;AAHD,WAAiB,MAAM;IACT,aAAM,GAAG,CAAC,MAAM,EAAE,YAAY,EAAE,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"Status.js","sourceRoot":"../","sources":["model/Batch/Item/Status.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAI3B,MAAM,KAAW,MAAM,CAGtB;AAHD,WAAiB,MAAM;IACT,aAAM,GAAG,CAAC,MAAM,EAAE,YAAY,EAAE,QAAQ,EAAE,WAAW,EAAE,eAAe,CAAU,CAAA;IAChF,WAAI,GAAG,IAAI,CAAC,MAAM,CAAC,OAAA,MAAM,CAAC,CAAA;AACxC,CAAC,EAHgB,MAAM,KAAN,MAAM,QAGtB"}
|
|
@@ -2,6 +2,6 @@ import { isly } from "isly";
|
|
|
2
2
|
export type Status = typeof Status.values[number];
|
|
3
3
|
export declare namespace Status {
|
|
4
4
|
const values: readonly ["todo", "processing", "completed", "failed to finalise", "cancelled", "importing", "finalising", "finalising import", "failed to import"];
|
|
5
|
-
const type: isly.Type<"completed" | "todo" | "processing" | "failed to finalise" | "
|
|
6
|
-
const is: (value: any | ("completed" | "todo" | "processing" | "failed to finalise" | "
|
|
5
|
+
const type: isly.Type<"completed" | "todo" | "cancelled" | "processing" | "failed to finalise" | "importing" | "finalising" | "finalising import" | "failed to import">;
|
|
6
|
+
const is: (value: any | ("completed" | "todo" | "cancelled" | "processing" | "failed to finalise" | "importing" | "finalising" | "finalising import" | "failed to import")) => value is "completed" | "todo" | "cancelled" | "processing" | "failed to finalise" | "importing" | "finalising" | "finalising import" | "failed to import";
|
|
7
7
|
}
|
|
@@ -3,6 +3,6 @@ import { isly } from "isly"
|
|
|
3
3
|
export type Status = typeof Status.values[number]
|
|
4
4
|
|
|
5
5
|
export namespace Status {
|
|
6
|
-
export const values = ["todo", "successful", "failed", "
|
|
6
|
+
export const values = ["todo", "successful", "failed", "cancelled", "failed import"] as const
|
|
7
7
|
export const type = isly.string(values)
|
|
8
8
|
}
|