@blocklet/payment-types 1.18.21 → 1.18.22
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/lib/types.d.ts +4 -0
- package/package.json +2 -2
package/lib/types.d.ts
CHANGED
|
@@ -8,12 +8,16 @@ export type GroupedBN = {
|
|
|
8
8
|
export type GroupedStrList = {
|
|
9
9
|
[currencyId: string]: string[];
|
|
10
10
|
};
|
|
11
|
+
export type OrderDirection = 'ASC' | 'DESC';
|
|
12
|
+
export type OrderItem = [string, OrderDirection];
|
|
13
|
+
export type OrderInput = string | string[] | OrderItem[];
|
|
11
14
|
export type Pagination<T = any> = T & {
|
|
12
15
|
page?: number;
|
|
13
16
|
pageSize?: number;
|
|
14
17
|
limit?: number;
|
|
15
18
|
starting_after?: string;
|
|
16
19
|
ending_before?: string;
|
|
20
|
+
order?: OrderInput;
|
|
17
21
|
};
|
|
18
22
|
export type Searchable<T = any> = Pagination<T> & {
|
|
19
23
|
query: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/payment-types",
|
|
3
|
-
"version": "1.18.
|
|
3
|
+
"version": "1.18.22",
|
|
4
4
|
"description": "Typings for Payment Kit SDK",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"types",
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"sequelize": "^6.37.3",
|
|
49
49
|
"type-fest": "^4.23.0"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "844883f56da79c1222fc5aa1b445abb2859e3230"
|
|
52
52
|
}
|