zklighter-perps 1.0.331 → 1.0.333
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/apis/PushnotifApi.ts +5 -0
- package/models/PriceOracleMarket.ts +9 -0
- package/openapi.json +8 -0
- package/package.json +1 -1
package/apis/PushnotifApi.ts
CHANGED
|
@@ -31,6 +31,7 @@ export interface PushnotifRegisterRequest {
|
|
|
31
31
|
platform: PushnotifRegisterPlatformEnum;
|
|
32
32
|
auth?: string;
|
|
33
33
|
app_version?: string;
|
|
34
|
+
language?: string;
|
|
34
35
|
}
|
|
35
36
|
|
|
36
37
|
export interface PushnotifSettingsGetRequest {
|
|
@@ -122,6 +123,10 @@ export class PushnotifApi extends runtime.BaseAPI {
|
|
|
122
123
|
formParams.append('app_version', requestParameters['app_version'] as any);
|
|
123
124
|
}
|
|
124
125
|
|
|
126
|
+
if (requestParameters['language'] != null) {
|
|
127
|
+
formParams.append('language', requestParameters['language'] as any);
|
|
128
|
+
}
|
|
129
|
+
|
|
125
130
|
const response = await this.request({
|
|
126
131
|
path: `/api/v1/pushnotif/register`,
|
|
127
132
|
method: 'POST',
|
|
@@ -32,6 +32,12 @@ export interface PriceOracleMarket {
|
|
|
32
32
|
* @memberof PriceOracleMarket
|
|
33
33
|
*/
|
|
34
34
|
symbol: string;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {boolean}
|
|
38
|
+
* @memberof PriceOracleMarket
|
|
39
|
+
*/
|
|
40
|
+
pre_market: boolean;
|
|
35
41
|
/**
|
|
36
42
|
*
|
|
37
43
|
* @type {PriceOraclePrice}
|
|
@@ -51,6 +57,7 @@ export interface PriceOracleMarket {
|
|
|
51
57
|
*/
|
|
52
58
|
export function instanceOfPriceOracleMarket(value: object): value is PriceOracleMarket {
|
|
53
59
|
if (!('symbol' in value) || value['symbol'] === undefined) return false;
|
|
60
|
+
if (!('pre_market' in value) || value['pre_market'] === undefined) return false;
|
|
54
61
|
if (!('index' in value) || value['index'] === undefined) return false;
|
|
55
62
|
if (!('mark' in value) || value['mark'] === undefined) return false;
|
|
56
63
|
return true;
|
|
@@ -67,6 +74,7 @@ export function PriceOracleMarketFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
67
74
|
return {
|
|
68
75
|
|
|
69
76
|
'symbol': json['symbol'],
|
|
77
|
+
'pre_market': json['pre_market'],
|
|
70
78
|
'index': PriceOraclePriceFromJSON(json['index']),
|
|
71
79
|
'mark': PriceOraclePriceFromJSON(json['mark']),
|
|
72
80
|
};
|
|
@@ -79,6 +87,7 @@ export function PriceOracleMarketToJSON(value?: PriceOracleMarket | null): any {
|
|
|
79
87
|
return {
|
|
80
88
|
|
|
81
89
|
'symbol': value['symbol'],
|
|
90
|
+
'pre_market': value['pre_market'],
|
|
82
91
|
'index': PriceOraclePriceToJSON(value['index']),
|
|
83
92
|
'mark': PriceOraclePriceToJSON(value['mark']),
|
|
84
93
|
};
|
package/openapi.json
CHANGED
|
@@ -13823,6 +13823,10 @@
|
|
|
13823
13823
|
"symbol": {
|
|
13824
13824
|
"type": "string"
|
|
13825
13825
|
},
|
|
13826
|
+
"pre_market": {
|
|
13827
|
+
"type": "boolean",
|
|
13828
|
+
"format": "boolean"
|
|
13829
|
+
},
|
|
13826
13830
|
"index": {
|
|
13827
13831
|
"$ref": "#/definitions/PriceOraclePrice"
|
|
13828
13832
|
},
|
|
@@ -13833,6 +13837,7 @@
|
|
|
13833
13837
|
"title": "PriceOracleMarket",
|
|
13834
13838
|
"required": [
|
|
13835
13839
|
"symbol",
|
|
13840
|
+
"pre_market",
|
|
13836
13841
|
"index",
|
|
13837
13842
|
"mark"
|
|
13838
13843
|
]
|
|
@@ -17289,6 +17294,9 @@
|
|
|
17289
17294
|
},
|
|
17290
17295
|
"app_version": {
|
|
17291
17296
|
"type": "string"
|
|
17297
|
+
},
|
|
17298
|
+
"language": {
|
|
17299
|
+
"type": "string"
|
|
17292
17300
|
}
|
|
17293
17301
|
},
|
|
17294
17302
|
"title": "ReqRegisterPushNotifToken",
|