zklighter-perps 1.0.306 → 1.0.307

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.
@@ -223,7 +223,7 @@ export interface DetailedAccount {
223
223
  * @type {Array<AccountBinaryOptionsPosition>}
224
224
  * @memberof DetailedAccount
225
225
  */
226
- bo_positions: Array<AccountBinaryOptionsPosition>;
226
+ bo_positions?: Array<AccountBinaryOptionsPosition>;
227
227
  /**
228
228
  *
229
229
  * @type {Array<AccountAsset>}
@@ -307,7 +307,6 @@ export function instanceOfDetailedAccount(value: object): value is DetailedAccou
307
307
  if (!('created_at' in value) || value['created_at'] === undefined) return false;
308
308
  if (!('metadata' in value) || value['metadata'] === undefined) return false;
309
309
  if (!('positions' in value) || value['positions'] === undefined) return false;
310
- if (!('bo_positions' in value) || value['bo_positions'] === undefined) return false;
311
310
  if (!('assets' in value) || value['assets'] === undefined) return false;
312
311
  if (!('total_asset_value' in value) || value['total_asset_value'] === undefined) return false;
313
312
  if (!('cross_asset_value' in value) || value['cross_asset_value'] === undefined) return false;
@@ -353,7 +352,7 @@ export function DetailedAccountFromJSONTyped(json: any, ignoreDiscriminator: boo
353
352
  'created_at': json['created_at'],
354
353
  'metadata': SubAccountMetadataFromJSON(json['metadata']),
355
354
  'positions': ((json['positions'] as Array<any>).map(AccountPositionFromJSON)),
356
- 'bo_positions': ((json['bo_positions'] as Array<any>).map(AccountBinaryOptionsPositionFromJSON)),
355
+ 'bo_positions': json['bo_positions'] == null ? undefined : ((json['bo_positions'] as Array<any>).map(AccountBinaryOptionsPositionFromJSON)),
357
356
  'assets': ((json['assets'] as Array<any>).map(AccountAssetFromJSON)),
358
357
  'total_asset_value': json['total_asset_value'],
359
358
  'cross_asset_value': json['cross_asset_value'],
@@ -397,7 +396,7 @@ export function DetailedAccountToJSON(value?: DetailedAccount | null): any {
397
396
  'created_at': value['created_at'],
398
397
  'metadata': SubAccountMetadataToJSON(value['metadata']),
399
398
  'positions': ((value['positions'] as Array<any>).map(AccountPositionToJSON)),
400
- 'bo_positions': ((value['bo_positions'] as Array<any>).map(AccountBinaryOptionsPositionToJSON)),
399
+ 'bo_positions': value['bo_positions'] == null ? undefined : ((value['bo_positions'] as Array<any>).map(AccountBinaryOptionsPositionToJSON)),
401
400
  'assets': ((value['assets'] as Array<any>).map(AccountAssetToJSON)),
402
401
  'total_asset_value': value['total_asset_value'],
403
402
  'cross_asset_value': value['cross_asset_value'],
package/openapi.json CHANGED
@@ -8565,7 +8565,6 @@
8565
8565
  "created_at",
8566
8566
  "metadata",
8567
8567
  "positions",
8568
- "bo_positions",
8569
8568
  "assets",
8570
8569
  "total_asset_value",
8571
8570
  "cross_asset_value",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zklighter-perps",
3
- "version": "1.0.306",
3
+ "version": "1.0.307",
4
4
  "description": "Lighter Perps SDK",
5
5
  "main": "index.ts",
6
6
  "directories": {