zklighter-perps 1.0.81 → 1.0.82
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/.openapi-generator/FILES +1 -0
- package/models/WithdrawHistory.ts +10 -4
- package/models/WithdrawHistoryCursor.ts +70 -0
- package/models/index.ts +1 -0
- package/openapi.json +19 -1
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -19,6 +19,12 @@ import {
|
|
|
19
19
|
WithdrawHistoryItemFromJSONTyped,
|
|
20
20
|
WithdrawHistoryItemToJSON,
|
|
21
21
|
} from './WithdrawHistoryItem';
|
|
22
|
+
import type { WithdrawHistoryCursor } from './WithdrawHistoryCursor';
|
|
23
|
+
import {
|
|
24
|
+
WithdrawHistoryCursorFromJSON,
|
|
25
|
+
WithdrawHistoryCursorFromJSONTyped,
|
|
26
|
+
WithdrawHistoryCursorToJSON,
|
|
27
|
+
} from './WithdrawHistoryCursor';
|
|
22
28
|
|
|
23
29
|
/**
|
|
24
30
|
*
|
|
@@ -46,10 +52,10 @@ export interface WithdrawHistory {
|
|
|
46
52
|
withdraws: Array<WithdrawHistoryItem>;
|
|
47
53
|
/**
|
|
48
54
|
*
|
|
49
|
-
* @type {
|
|
55
|
+
* @type {WithdrawHistoryCursor}
|
|
50
56
|
* @memberof WithdrawHistory
|
|
51
57
|
*/
|
|
52
|
-
cursor:
|
|
58
|
+
cursor: WithdrawHistoryCursor;
|
|
53
59
|
}
|
|
54
60
|
|
|
55
61
|
/**
|
|
@@ -75,7 +81,7 @@ export function WithdrawHistoryFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
75
81
|
'code': json['code'],
|
|
76
82
|
'message': json['message'] == null ? undefined : json['message'],
|
|
77
83
|
'withdraws': ((json['withdraws'] as Array<any>).map(WithdrawHistoryItemFromJSON)),
|
|
78
|
-
'cursor': json['cursor'],
|
|
84
|
+
'cursor': WithdrawHistoryCursorFromJSON(json['cursor']),
|
|
79
85
|
};
|
|
80
86
|
}
|
|
81
87
|
|
|
@@ -88,7 +94,7 @@ export function WithdrawHistoryToJSON(value?: WithdrawHistory | null): any {
|
|
|
88
94
|
'code': value['code'],
|
|
89
95
|
'message': value['message'],
|
|
90
96
|
'withdraws': ((value['withdraws'] as Array<any>).map(WithdrawHistoryItemToJSON)),
|
|
91
|
-
'cursor': value['cursor'],
|
|
97
|
+
'cursor': WithdrawHistoryCursorToJSON(value['cursor']),
|
|
92
98
|
};
|
|
93
99
|
}
|
|
94
100
|
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document:
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface WithdrawHistoryCursor
|
|
20
|
+
*/
|
|
21
|
+
export interface WithdrawHistoryCursor {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof WithdrawHistoryCursor
|
|
26
|
+
*/
|
|
27
|
+
secure_id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof WithdrawHistoryCursor
|
|
32
|
+
*/
|
|
33
|
+
fast_id: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the WithdrawHistoryCursor interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfWithdrawHistoryCursor(value: object): value is WithdrawHistoryCursor {
|
|
40
|
+
if (!('secure_id' in value) || value['secure_id'] === undefined) return false;
|
|
41
|
+
if (!('fast_id' in value) || value['fast_id'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function WithdrawHistoryCursorFromJSON(json: any): WithdrawHistoryCursor {
|
|
46
|
+
return WithdrawHistoryCursorFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function WithdrawHistoryCursorFromJSONTyped(json: any, ignoreDiscriminator: boolean): WithdrawHistoryCursor {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'secure_id': json['secure_id'],
|
|
56
|
+
'fast_id': json['fast_id'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function WithdrawHistoryCursorToJSON(value?: WithdrawHistoryCursor | null): any {
|
|
61
|
+
if (value == null) {
|
|
62
|
+
return value;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
|
|
66
|
+
'secure_id': value['secure_id'],
|
|
67
|
+
'fast_id': value['fast_id'],
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
|
package/models/index.ts
CHANGED
package/openapi.json
CHANGED
|
@@ -5971,7 +5971,7 @@
|
|
|
5971
5971
|
}
|
|
5972
5972
|
},
|
|
5973
5973
|
"cursor": {
|
|
5974
|
-
"
|
|
5974
|
+
"$ref": "#/definitions/WithdrawHistoryCursor"
|
|
5975
5975
|
}
|
|
5976
5976
|
},
|
|
5977
5977
|
"title": "WithdrawHistory",
|
|
@@ -5981,6 +5981,24 @@
|
|
|
5981
5981
|
"cursor"
|
|
5982
5982
|
]
|
|
5983
5983
|
},
|
|
5984
|
+
"WithdrawHistoryCursor": {
|
|
5985
|
+
"type": "object",
|
|
5986
|
+
"properties": {
|
|
5987
|
+
"secure_id": {
|
|
5988
|
+
"type": "string",
|
|
5989
|
+
"example": "1"
|
|
5990
|
+
},
|
|
5991
|
+
"fast_id": {
|
|
5992
|
+
"type": "string",
|
|
5993
|
+
"example": "1"
|
|
5994
|
+
}
|
|
5995
|
+
},
|
|
5996
|
+
"title": "WithdrawHistoryCursor",
|
|
5997
|
+
"required": [
|
|
5998
|
+
"secure_id",
|
|
5999
|
+
"fast_id"
|
|
6000
|
+
]
|
|
6001
|
+
},
|
|
5984
6002
|
"WithdrawHistoryItem": {
|
|
5985
6003
|
"type": "object",
|
|
5986
6004
|
"properties": {
|