zklighter-perps 1.0.304 → 1.0.305

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.
@@ -36,19 +36,19 @@ export interface StockFinancialDividendEvent {
36
36
  * @type {string}
37
37
  * @memberof StockFinancialDividendEvent
38
38
  */
39
- record_date: string;
39
+ record_date?: string;
40
40
  /**
41
41
  *
42
42
  * @type {string}
43
43
  * @memberof StockFinancialDividendEvent
44
44
  */
45
- payment_date: string;
45
+ payment_date?: string;
46
46
  /**
47
47
  *
48
48
  * @type {string}
49
49
  * @memberof StockFinancialDividendEvent
50
50
  */
51
- declaration_date: string;
51
+ declaration_date?: string;
52
52
  /**
53
53
  *
54
54
  * @type {number}
@@ -60,25 +60,25 @@ export interface StockFinancialDividendEvent {
60
60
  * @type {number}
61
61
  * @memberof StockFinancialDividendEvent
62
62
  */
63
- adj_amount: number;
63
+ adj_amount?: number;
64
64
  /**
65
65
  *
66
66
  * @type {string}
67
67
  * @memberof StockFinancialDividendEvent
68
68
  */
69
- frequency: string;
69
+ frequency?: string;
70
70
  /**
71
71
  *
72
72
  * @type {string}
73
73
  * @memberof StockFinancialDividendEvent
74
74
  */
75
- currency: string;
75
+ currency?: string;
76
76
  /**
77
77
  *
78
78
  * @type {string}
79
79
  * @memberof StockFinancialDividendEvent
80
80
  */
81
- status: string;
81
+ status?: string;
82
82
  }
83
83
 
84
84
 
@@ -98,14 +98,7 @@ export type StockFinancialDividendEventSourceEnum = typeof StockFinancialDividen
98
98
  export function instanceOfStockFinancialDividendEvent(value: object): value is StockFinancialDividendEvent {
99
99
  if (!('source' in value) || value['source'] === undefined) return false;
100
100
  if (!('ex_date' in value) || value['ex_date'] === undefined) return false;
101
- if (!('record_date' in value) || value['record_date'] === undefined) return false;
102
- if (!('payment_date' in value) || value['payment_date'] === undefined) return false;
103
- if (!('declaration_date' in value) || value['declaration_date'] === undefined) return false;
104
101
  if (!('amount' in value) || value['amount'] === undefined) return false;
105
- if (!('adj_amount' in value) || value['adj_amount'] === undefined) return false;
106
- if (!('frequency' in value) || value['frequency'] === undefined) return false;
107
- if (!('currency' in value) || value['currency'] === undefined) return false;
108
- if (!('status' in value) || value['status'] === undefined) return false;
109
102
  return true;
110
103
  }
111
104
 
@@ -121,14 +114,14 @@ export function StockFinancialDividendEventFromJSONTyped(json: any, ignoreDiscri
121
114
 
122
115
  'source': json['source'],
123
116
  'ex_date': json['ex_date'],
124
- 'record_date': json['record_date'],
125
- 'payment_date': json['payment_date'],
126
- 'declaration_date': json['declaration_date'],
117
+ 'record_date': json['record_date'] == null ? undefined : json['record_date'],
118
+ 'payment_date': json['payment_date'] == null ? undefined : json['payment_date'],
119
+ 'declaration_date': json['declaration_date'] == null ? undefined : json['declaration_date'],
127
120
  'amount': json['amount'],
128
- 'adj_amount': json['adj_amount'],
129
- 'frequency': json['frequency'],
130
- 'currency': json['currency'],
131
- 'status': json['status'],
121
+ 'adj_amount': json['adj_amount'] == null ? undefined : json['adj_amount'],
122
+ 'frequency': json['frequency'] == null ? undefined : json['frequency'],
123
+ 'currency': json['currency'] == null ? undefined : json['currency'],
124
+ 'status': json['status'] == null ? undefined : json['status'],
132
125
  };
133
126
  }
134
127
 
@@ -37,21 +37,19 @@ export interface StockFinancialDividends {
37
37
  * @type {Array<StockFinancialDividendEvent>}
38
38
  * @memberof StockFinancialDividends
39
39
  */
40
- history: Array<StockFinancialDividendEvent>;
40
+ history?: Array<StockFinancialDividendEvent>;
41
41
  /**
42
42
  *
43
43
  * @type {Array<StockFinancialDividendEvent>}
44
44
  * @memberof StockFinancialDividends
45
45
  */
46
- distributions: Array<StockFinancialDividendEvent>;
46
+ distributions?: Array<StockFinancialDividendEvent>;
47
47
  }
48
48
 
49
49
  /**
50
50
  * Check if a given object implements the StockFinancialDividends interface.
51
51
  */
52
52
  export function instanceOfStockFinancialDividends(value: object): value is StockFinancialDividends {
53
- if (!('history' in value) || value['history'] === undefined) return false;
54
- if (!('distributions' in value) || value['distributions'] === undefined) return false;
55
53
  return true;
56
54
  }
57
55
 
@@ -66,8 +64,8 @@ export function StockFinancialDividendsFromJSONTyped(json: any, ignoreDiscrimina
66
64
  return {
67
65
 
68
66
  'next': json['next'] == null ? undefined : StockFinancialDividendEventFromJSON(json['next']),
69
- 'history': ((json['history'] as Array<any>).map(StockFinancialDividendEventFromJSON)),
70
- 'distributions': ((json['distributions'] as Array<any>).map(StockFinancialDividendEventFromJSON)),
67
+ 'history': json['history'] == null ? undefined : ((json['history'] as Array<any>).map(StockFinancialDividendEventFromJSON)),
68
+ 'distributions': json['distributions'] == null ? undefined : ((json['distributions'] as Array<any>).map(StockFinancialDividendEventFromJSON)),
71
69
  };
72
70
  }
73
71
 
@@ -78,8 +76,8 @@ export function StockFinancialDividendsToJSON(value?: StockFinancialDividends |
78
76
  return {
79
77
 
80
78
  'next': StockFinancialDividendEventToJSON(value['next']),
81
- 'history': ((value['history'] as Array<any>).map(StockFinancialDividendEventToJSON)),
82
- 'distributions': ((value['distributions'] as Array<any>).map(StockFinancialDividendEventToJSON)),
79
+ 'history': value['history'] == null ? undefined : ((value['history'] as Array<any>).map(StockFinancialDividendEventToJSON)),
80
+ 'distributions': value['distributions'] == null ? undefined : ((value['distributions'] as Array<any>).map(StockFinancialDividendEventToJSON)),
83
81
  };
84
82
  }
85
83
 
package/openapi.json CHANGED
@@ -15608,14 +15608,7 @@
15608
15608
  "required": [
15609
15609
  "source",
15610
15610
  "ex_date",
15611
- "record_date",
15612
- "payment_date",
15613
- "declaration_date",
15614
- "amount",
15615
- "adj_amount",
15616
- "frequency",
15617
- "currency",
15618
- "status"
15611
+ "amount"
15619
15612
  ]
15620
15613
  },
15621
15614
  "StockFinancialDividends": {
@@ -15637,11 +15630,7 @@
15637
15630
  }
15638
15631
  }
15639
15632
  },
15640
- "title": "StockFinancialDividends",
15641
- "required": [
15642
- "history",
15643
- "distributions"
15644
- ]
15633
+ "title": "StockFinancialDividends"
15645
15634
  },
15646
15635
  "StockFinancialEarnings": {
15647
15636
  "type": "object",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zklighter-perps",
3
- "version": "1.0.304",
3
+ "version": "1.0.305",
4
4
  "description": "Lighter Perps SDK",
5
5
  "main": "index.ts",
6
6
  "directories": {