zklighter-perps 1.0.247 → 1.0.248
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
CHANGED
|
@@ -35,14 +35,12 @@ export interface PushnotifRegisterRequest {
|
|
|
35
35
|
|
|
36
36
|
export interface PushnotifSettingsGetRequest {
|
|
37
37
|
account_index: number;
|
|
38
|
-
expo_token: string;
|
|
39
38
|
authorization?: string;
|
|
40
39
|
auth?: string;
|
|
41
40
|
}
|
|
42
41
|
|
|
43
42
|
export interface PushnotifSettingsPostRequest {
|
|
44
43
|
account_index: number;
|
|
45
|
-
expo_token: string;
|
|
46
44
|
enabled: boolean;
|
|
47
45
|
auth?: string;
|
|
48
46
|
}
|
|
@@ -154,13 +152,6 @@ export class PushnotifApi extends runtime.BaseAPI {
|
|
|
154
152
|
);
|
|
155
153
|
}
|
|
156
154
|
|
|
157
|
-
if (requestParameters['expo_token'] == null) {
|
|
158
|
-
throw new runtime.RequiredError(
|
|
159
|
-
'expo_token',
|
|
160
|
-
'Required parameter "expo_token" was null or undefined when calling pushnotifSettingsGet().'
|
|
161
|
-
);
|
|
162
|
-
}
|
|
163
|
-
|
|
164
155
|
const queryParameters: any = {};
|
|
165
156
|
|
|
166
157
|
if (requestParameters['authorization'] != null) {
|
|
@@ -175,10 +166,6 @@ export class PushnotifApi extends runtime.BaseAPI {
|
|
|
175
166
|
queryParameters['account_index'] = requestParameters['account_index'];
|
|
176
167
|
}
|
|
177
168
|
|
|
178
|
-
if (requestParameters['expo_token'] != null) {
|
|
179
|
-
queryParameters['expo_token'] = requestParameters['expo_token'];
|
|
180
|
-
}
|
|
181
|
-
|
|
182
169
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
183
170
|
|
|
184
171
|
const response = await this.request({
|
|
@@ -212,13 +199,6 @@ export class PushnotifApi extends runtime.BaseAPI {
|
|
|
212
199
|
);
|
|
213
200
|
}
|
|
214
201
|
|
|
215
|
-
if (requestParameters['expo_token'] == null) {
|
|
216
|
-
throw new runtime.RequiredError(
|
|
217
|
-
'expo_token',
|
|
218
|
-
'Required parameter "expo_token" was null or undefined when calling pushnotifSettingsPost().'
|
|
219
|
-
);
|
|
220
|
-
}
|
|
221
|
-
|
|
222
202
|
if (requestParameters['enabled'] == null) {
|
|
223
203
|
throw new runtime.RequiredError(
|
|
224
204
|
'enabled',
|
|
@@ -252,10 +232,6 @@ export class PushnotifApi extends runtime.BaseAPI {
|
|
|
252
232
|
formParams.append('account_index', requestParameters['account_index'] as any);
|
|
253
233
|
}
|
|
254
234
|
|
|
255
|
-
if (requestParameters['expo_token'] != null) {
|
|
256
|
-
formParams.append('expo_token', requestParameters['expo_token'] as any);
|
|
257
|
-
}
|
|
258
|
-
|
|
259
235
|
if (requestParameters['enabled'] != null) {
|
|
260
236
|
formParams.append('enabled', requestParameters['enabled'] as any);
|
|
261
237
|
}
|
|
@@ -31,12 +31,6 @@ export interface ReqGetPushNotifSettings {
|
|
|
31
31
|
* @memberof ReqGetPushNotifSettings
|
|
32
32
|
*/
|
|
33
33
|
account_index: number;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof ReqGetPushNotifSettings
|
|
38
|
-
*/
|
|
39
|
-
expo_token: string;
|
|
40
34
|
}
|
|
41
35
|
|
|
42
36
|
/**
|
|
@@ -44,7 +38,6 @@ export interface ReqGetPushNotifSettings {
|
|
|
44
38
|
*/
|
|
45
39
|
export function instanceOfReqGetPushNotifSettings(value: object): value is ReqGetPushNotifSettings {
|
|
46
40
|
if (!('account_index' in value) || value['account_index'] === undefined) return false;
|
|
47
|
-
if (!('expo_token' in value) || value['expo_token'] === undefined) return false;
|
|
48
41
|
return true;
|
|
49
42
|
}
|
|
50
43
|
|
|
@@ -60,7 +53,6 @@ export function ReqGetPushNotifSettingsFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
60
53
|
|
|
61
54
|
'auth': json['auth'] == null ? undefined : json['auth'],
|
|
62
55
|
'account_index': json['account_index'],
|
|
63
|
-
'expo_token': json['expo_token'],
|
|
64
56
|
};
|
|
65
57
|
}
|
|
66
58
|
|
|
@@ -72,7 +64,6 @@ export function ReqGetPushNotifSettingsToJSON(value?: ReqGetPushNotifSettings |
|
|
|
72
64
|
|
|
73
65
|
'auth': value['auth'],
|
|
74
66
|
'account_index': value['account_index'],
|
|
75
|
-
'expo_token': value['expo_token'],
|
|
76
67
|
};
|
|
77
68
|
}
|
|
78
69
|
|
|
@@ -31,12 +31,6 @@ export interface RespGetPushNotifSettings {
|
|
|
31
31
|
* @memberof RespGetPushNotifSettings
|
|
32
32
|
*/
|
|
33
33
|
message?: string;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {number}
|
|
37
|
-
* @memberof RespGetPushNotifSettings
|
|
38
|
-
*/
|
|
39
|
-
account_index: number;
|
|
40
34
|
/**
|
|
41
35
|
*
|
|
42
36
|
* @type {boolean}
|
|
@@ -50,7 +44,6 @@ export interface RespGetPushNotifSettings {
|
|
|
50
44
|
*/
|
|
51
45
|
export function instanceOfRespGetPushNotifSettings(value: object): value is RespGetPushNotifSettings {
|
|
52
46
|
if (!('code' in value) || value['code'] === undefined) return false;
|
|
53
|
-
if (!('account_index' in value) || value['account_index'] === undefined) return false;
|
|
54
47
|
if (!('enabled' in value) || value['enabled'] === undefined) return false;
|
|
55
48
|
return true;
|
|
56
49
|
}
|
|
@@ -67,7 +60,6 @@ export function RespGetPushNotifSettingsFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
67
60
|
|
|
68
61
|
'code': json['code'],
|
|
69
62
|
'message': json['message'] == null ? undefined : json['message'],
|
|
70
|
-
'account_index': json['account_index'],
|
|
71
63
|
'enabled': json['enabled'],
|
|
72
64
|
};
|
|
73
65
|
}
|
|
@@ -80,7 +72,6 @@ export function RespGetPushNotifSettingsToJSON(value?: RespGetPushNotifSettings
|
|
|
80
72
|
|
|
81
73
|
'code': value['code'],
|
|
82
74
|
'message': value['message'],
|
|
83
|
-
'account_index': value['account_index'],
|
|
84
75
|
'enabled': value['enabled'],
|
|
85
76
|
};
|
|
86
77
|
}
|
package/openapi.json
CHANGED
|
@@ -3080,12 +3080,6 @@
|
|
|
3080
3080
|
"required": true,
|
|
3081
3081
|
"type": "integer",
|
|
3082
3082
|
"format": "int64"
|
|
3083
|
-
},
|
|
3084
|
-
{
|
|
3085
|
-
"name": "expo_token",
|
|
3086
|
-
"in": "query",
|
|
3087
|
-
"required": true,
|
|
3088
|
-
"type": "string"
|
|
3089
3083
|
}
|
|
3090
3084
|
],
|
|
3091
3085
|
"tags": [
|
|
@@ -10842,15 +10836,11 @@
|
|
|
10842
10836
|
"account_index": {
|
|
10843
10837
|
"type": "integer",
|
|
10844
10838
|
"format": "int64"
|
|
10845
|
-
},
|
|
10846
|
-
"expo_token": {
|
|
10847
|
-
"type": "string"
|
|
10848
10839
|
}
|
|
10849
10840
|
},
|
|
10850
10841
|
"title": "ReqGetPushNotifSettings",
|
|
10851
10842
|
"required": [
|
|
10852
|
-
"account_index"
|
|
10853
|
-
"expo_token"
|
|
10843
|
+
"account_index"
|
|
10854
10844
|
]
|
|
10855
10845
|
},
|
|
10856
10846
|
"ReqGetRFQ": {
|
|
@@ -11536,9 +11526,6 @@
|
|
|
11536
11526
|
"type": "integer",
|
|
11537
11527
|
"format": "int64"
|
|
11538
11528
|
},
|
|
11539
|
-
"expo_token": {
|
|
11540
|
-
"type": "string"
|
|
11541
|
-
},
|
|
11542
11529
|
"enabled": {
|
|
11543
11530
|
"type": "boolean",
|
|
11544
11531
|
"format": "boolean"
|
|
@@ -11547,7 +11534,6 @@
|
|
|
11547
11534
|
"title": "ReqUpdatePushNotifSettings",
|
|
11548
11535
|
"required": [
|
|
11549
11536
|
"account_index",
|
|
11550
|
-
"expo_token",
|
|
11551
11537
|
"enabled"
|
|
11552
11538
|
]
|
|
11553
11539
|
},
|
|
@@ -12010,10 +11996,6 @@
|
|
|
12010
11996
|
"message": {
|
|
12011
11997
|
"type": "string"
|
|
12012
11998
|
},
|
|
12013
|
-
"account_index": {
|
|
12014
|
-
"type": "integer",
|
|
12015
|
-
"format": "int64"
|
|
12016
|
-
},
|
|
12017
11999
|
"enabled": {
|
|
12018
12000
|
"type": "boolean",
|
|
12019
12001
|
"format": "boolean"
|
|
@@ -12022,7 +12004,6 @@
|
|
|
12022
12004
|
"title": "RespGetPushNotifSettings",
|
|
12023
12005
|
"required": [
|
|
12024
12006
|
"code",
|
|
12025
|
-
"account_index",
|
|
12026
12007
|
"enabled"
|
|
12027
12008
|
]
|
|
12028
12009
|
},
|