@invinite-org/data-api-client 5.6.0 → 5.7.0

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.
Files changed (125) hide show
  1. package/.openapi-generator/FILES +26 -0
  2. package/dist/apis/HoldingsApi.d.ts +33 -0
  3. package/dist/apis/HoldingsApi.js +79 -1
  4. package/dist/apis/IPOsApi.d.ts +54 -0
  5. package/dist/apis/IPOsApi.js +137 -1
  6. package/dist/apis/InsiderTradesApi.d.ts +3 -0
  7. package/dist/apis/InsiderTradesApi.js +9 -0
  8. package/dist/esm/apis/HoldingsApi.d.ts +33 -0
  9. package/dist/esm/apis/HoldingsApi.js +78 -0
  10. package/dist/esm/apis/IPOsApi.d.ts +54 -0
  11. package/dist/esm/apis/IPOsApi.js +136 -0
  12. package/dist/esm/apis/InsiderTradesApi.d.ts +3 -0
  13. package/dist/esm/apis/InsiderTradesApi.js +9 -0
  14. package/dist/esm/models/Company.d.ts +1 -1
  15. package/dist/esm/models/Filer.d.ts +6 -0
  16. package/dist/esm/models/Filer.js +2 -0
  17. package/dist/esm/models/FilerDetail.d.ts +14 -0
  18. package/dist/esm/models/FilerDetail.js +6 -0
  19. package/dist/esm/models/FilerFund.d.ts +45 -0
  20. package/dist/esm/models/FilerFund.js +52 -0
  21. package/dist/esm/models/FilerFundAdviser.d.ts +56 -0
  22. package/dist/esm/models/FilerFundAdviser.js +59 -0
  23. package/dist/esm/models/FilerFundReturn.d.ts +62 -0
  24. package/dist/esm/models/FilerFundReturn.js +63 -0
  25. package/dist/esm/models/FilerFundSeries.d.ts +217 -0
  26. package/dist/esm/models/FilerFundSeries.js +169 -0
  27. package/dist/esm/models/FilerFundShareClass.d.ts +44 -0
  28. package/dist/esm/models/FilerFundShareClass.js +51 -0
  29. package/dist/esm/models/FilerPrivateOfferings.d.ts +62 -0
  30. package/dist/esm/models/FilerPrivateOfferings.js +63 -0
  31. package/dist/esm/models/FundHolding.d.ts +140 -0
  32. package/dist/esm/models/FundHolding.js +83 -0
  33. package/dist/esm/models/InsiderTrade.d.ts +101 -0
  34. package/dist/esm/models/InsiderTrade.js +71 -0
  35. package/dist/esm/models/InsiderTradeFootnote.d.ts +38 -0
  36. package/dist/esm/models/InsiderTradeFootnote.js +47 -0
  37. package/dist/esm/models/ListFundHoldings200Response.d.ts +52 -0
  38. package/dist/esm/models/ListFundHoldings200Response.js +57 -0
  39. package/dist/esm/models/ListOfferings200Response.d.ts +52 -0
  40. package/dist/esm/models/ListOfferings200Response.js +57 -0
  41. package/dist/esm/models/ListOfferings200ResponseMeta.d.ts +39 -0
  42. package/dist/esm/models/ListOfferings200ResponseMeta.js +44 -0
  43. package/dist/esm/models/Offering.d.ts +275 -0
  44. package/dist/esm/models/Offering.js +209 -0
  45. package/dist/esm/models/OfferingRelatedPerson.d.ts +44 -0
  46. package/dist/esm/models/OfferingRelatedPerson.js +51 -0
  47. package/dist/esm/models/index.d.ts +13 -0
  48. package/dist/esm/models/index.js +13 -0
  49. package/dist/models/Company.d.ts +1 -1
  50. package/dist/models/Filer.d.ts +6 -0
  51. package/dist/models/Filer.js +2 -0
  52. package/dist/models/FilerDetail.d.ts +14 -0
  53. package/dist/models/FilerDetail.js +6 -0
  54. package/dist/models/FilerFund.d.ts +45 -0
  55. package/dist/models/FilerFund.js +59 -0
  56. package/dist/models/FilerFundAdviser.d.ts +56 -0
  57. package/dist/models/FilerFundAdviser.js +66 -0
  58. package/dist/models/FilerFundReturn.d.ts +62 -0
  59. package/dist/models/FilerFundReturn.js +70 -0
  60. package/dist/models/FilerFundSeries.d.ts +217 -0
  61. package/dist/models/FilerFundSeries.js +177 -0
  62. package/dist/models/FilerFundShareClass.d.ts +44 -0
  63. package/dist/models/FilerFundShareClass.js +58 -0
  64. package/dist/models/FilerPrivateOfferings.d.ts +62 -0
  65. package/dist/models/FilerPrivateOfferings.js +70 -0
  66. package/dist/models/FundHolding.d.ts +140 -0
  67. package/dist/models/FundHolding.js +90 -0
  68. package/dist/models/InsiderTrade.d.ts +101 -0
  69. package/dist/models/InsiderTrade.js +72 -1
  70. package/dist/models/InsiderTradeFootnote.d.ts +38 -0
  71. package/dist/models/InsiderTradeFootnote.js +54 -0
  72. package/dist/models/ListFundHoldings200Response.d.ts +52 -0
  73. package/dist/models/ListFundHoldings200Response.js +64 -0
  74. package/dist/models/ListOfferings200Response.d.ts +52 -0
  75. package/dist/models/ListOfferings200Response.js +64 -0
  76. package/dist/models/ListOfferings200ResponseMeta.d.ts +39 -0
  77. package/dist/models/ListOfferings200ResponseMeta.js +51 -0
  78. package/dist/models/Offering.d.ts +275 -0
  79. package/dist/models/Offering.js +217 -0
  80. package/dist/models/OfferingRelatedPerson.d.ts +44 -0
  81. package/dist/models/OfferingRelatedPerson.js +58 -0
  82. package/dist/models/index.d.ts +13 -0
  83. package/dist/models/index.js +13 -0
  84. package/docs/CompaniesApi.md +2 -2
  85. package/docs/Filer.md +2 -0
  86. package/docs/FilerDetail.md +4 -0
  87. package/docs/FilerFund.md +39 -0
  88. package/docs/FilerFundAdviser.md +43 -0
  89. package/docs/FilerFundReturn.md +45 -0
  90. package/docs/FilerFundSeries.md +93 -0
  91. package/docs/FilerFundShareClass.md +39 -0
  92. package/docs/FilerPrivateOfferings.md +45 -0
  93. package/docs/FundHolding.md +70 -0
  94. package/docs/HoldingsApi.md +105 -0
  95. package/docs/IPOsApi.md +195 -0
  96. package/docs/InsiderTrade.md +28 -0
  97. package/docs/InsiderTradeFootnote.md +37 -0
  98. package/docs/InsiderTradesApi.md +10 -1
  99. package/docs/ListFundHoldings200Response.md +41 -0
  100. package/docs/ListOfferings200Response.md +41 -0
  101. package/docs/ListOfferings200ResponseMeta.md +37 -0
  102. package/docs/Offering.md +111 -0
  103. package/docs/OfferingRelatedPerson.md +39 -0
  104. package/package.json +1 -1
  105. package/src/apis/HoldingsApi.ts +107 -0
  106. package/src/apis/IPOsApi.ts +186 -0
  107. package/src/apis/InsiderTradesApi.ts +15 -0
  108. package/src/models/Company.ts +1 -1
  109. package/src/models/Filer.ts +8 -0
  110. package/src/models/FilerDetail.ts +30 -0
  111. package/src/models/FilerFund.ts +92 -0
  112. package/src/models/FilerFundAdviser.ts +102 -0
  113. package/src/models/FilerFundReturn.ts +111 -0
  114. package/src/models/FilerFundSeries.ts +360 -0
  115. package/src/models/FilerFundShareClass.ts +84 -0
  116. package/src/models/FilerPrivateOfferings.ts +111 -0
  117. package/src/models/FundHolding.ts +212 -0
  118. package/src/models/InsiderTrade.ts +152 -0
  119. package/src/models/InsiderTradeFootnote.ts +75 -0
  120. package/src/models/ListFundHoldings200Response.ts +108 -0
  121. package/src/models/ListOfferings200Response.ts +108 -0
  122. package/src/models/ListOfferings200ResponseMeta.ts +81 -0
  123. package/src/models/Offering.ts +433 -0
  124. package/src/models/OfferingRelatedPerson.ts +84 -0
  125. package/src/models/index.ts +13 -0
@@ -94,7 +94,7 @@ example().catch(console.error);
94
94
 
95
95
  ## listInsiderTrades
96
96
 
97
- > ListInsiderTrades200Response listInsiderTrades(company, side, filedAtGte, filedAtGt, filedAtLte, filedAtLt, sort, fields, limit, cursor)
97
+ > ListInsiderTrades200Response listInsiderTrades(company, side, filedAtGte, filedAtGt, filedAtLte, filedAtLt, transactionDateGte, transactionDateLte, isDerivative, sort, fields, limit, cursor)
98
98
 
99
99
  List insider trades
100
100
 
@@ -130,6 +130,12 @@ async function example() {
130
130
  filedAtLte: 2025-01-01,
131
131
  // Date | `filed_at` before this value (optional)
132
132
  filedAtLt: 2025-01-01,
133
+ // Date | `transaction_date` on or after this value (rows without a transaction date are excluded) (optional)
134
+ transactionDateGte: 2025-01-01,
135
+ // Date | `transaction_date` on or before this value (rows without a transaction date are excluded) (optional)
136
+ transactionDateLte: 2025-01-01,
137
+ // boolean | true = only derivative-security lines; false = only non-derivative lines (optional)
138
+ isDerivative: false,
133
139
  // 'filed_at' | '-filed_at' | Sort field (`-` = descending); the id tiebreaker is always appended. Default `-filed_at` (optional)
134
140
  sort: -filed_at,
135
141
  // string | Comma list of root-level fields to keep (R7) (optional)
@@ -163,6 +169,9 @@ example().catch(console.error);
163
169
  | **filedAtGt** | `Date` | `filed_at` after this value | [Optional] [Defaults to `undefined`] |
164
170
  | **filedAtLte** | `Date` | `filed_at` on or before this value | [Optional] [Defaults to `undefined`] |
165
171
  | **filedAtLt** | `Date` | `filed_at` before this value | [Optional] [Defaults to `undefined`] |
172
+ | **transactionDateGte** | `Date` | `transaction_date` on or after this value (rows without a transaction date are excluded) | [Optional] [Defaults to `undefined`] |
173
+ | **transactionDateLte** | `Date` | `transaction_date` on or before this value (rows without a transaction date are excluded) | [Optional] [Defaults to `undefined`] |
174
+ | **isDerivative** | `boolean` | true = only derivative-security lines; false = only non-derivative lines | [Optional] [Defaults to `undefined`] |
166
175
  | **sort** | `filed_at`, `-filed_at` | Sort field (`-` = descending); the id tiebreaker is always appended. Default `-filed_at` | [Optional] [Defaults to `'-filed_at'`] [Enum: filed_at, -filed_at] |
167
176
  | **fields** | `string` | Comma list of root-level fields to keep (R7) | [Optional] [Defaults to `undefined`] |
168
177
  | **limit** | `number` | Rows per page (default 25, max 200) | [Optional] [Defaults to `25`] |
@@ -0,0 +1,41 @@
1
+
2
+ # ListFundHoldings200Response
3
+
4
+ A page of FundHolding rows (the list envelope, R3)
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `data` | [Array<FundHolding>](FundHolding.md)
11
+ `has_more` | boolean
12
+ `next_cursor` | string
13
+ `meta` | [ListHoldings200ResponseMeta](ListHoldings200ResponseMeta.md)
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import type { ListFundHoldings200Response } from '@invinite-org/data-api-client'
19
+
20
+ // TODO: Update the object below with actual values
21
+ const example = {
22
+ "data": null,
23
+ "has_more": null,
24
+ "next_cursor": null,
25
+ "meta": null,
26
+ } satisfies ListFundHoldings200Response
27
+
28
+ console.log(example)
29
+
30
+ // Convert the instance to a JSON string
31
+ const exampleJSON: string = JSON.stringify(example)
32
+ console.log(exampleJSON)
33
+
34
+ // Parse the JSON string back to an object
35
+ const exampleParsed = JSON.parse(exampleJSON) as ListFundHoldings200Response
36
+ console.log(exampleParsed)
37
+ ```
38
+
39
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
40
+
41
+
@@ -0,0 +1,41 @@
1
+
2
+ # ListOfferings200Response
3
+
4
+ A page of Offering rows (the list envelope, R3)
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `data` | [Array<Offering>](Offering.md)
11
+ `has_more` | boolean
12
+ `next_cursor` | string
13
+ `meta` | [ListOfferings200ResponseMeta](ListOfferings200ResponseMeta.md)
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import type { ListOfferings200Response } from '@invinite-org/data-api-client'
19
+
20
+ // TODO: Update the object below with actual values
21
+ const example = {
22
+ "data": null,
23
+ "has_more": null,
24
+ "next_cursor": null,
25
+ "meta": null,
26
+ } satisfies ListOfferings200Response
27
+
28
+ console.log(example)
29
+
30
+ // Convert the instance to a JSON string
31
+ const exampleJSON: string = JSON.stringify(example)
32
+ console.log(exampleJSON)
33
+
34
+ // Parse the JSON string back to an object
35
+ const exampleParsed = JSON.parse(exampleJSON) as ListOfferings200Response
36
+ console.log(exampleParsed)
37
+ ```
38
+
39
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
40
+
41
+
@@ -0,0 +1,37 @@
1
+
2
+ # ListOfferings200ResponseMeta
3
+
4
+ Page metadata
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `coverage` | [MetaCoverage](MetaCoverage.md)
11
+ `pinned_at` | Date
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import type { ListOfferings200ResponseMeta } from '@invinite-org/data-api-client'
17
+
18
+ // TODO: Update the object below with actual values
19
+ const example = {
20
+ "coverage": null,
21
+ "pinned_at": null,
22
+ } satisfies ListOfferings200ResponseMeta
23
+
24
+ console.log(example)
25
+
26
+ // Convert the instance to a JSON string
27
+ const exampleJSON: string = JSON.stringify(example)
28
+ console.log(exampleJSON)
29
+
30
+ // Parse the JSON string back to an object
31
+ const exampleParsed = JSON.parse(exampleJSON) as ListOfferings200ResponseMeta
32
+ console.log(exampleParsed)
33
+ ```
34
+
35
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
36
+
37
+
@@ -0,0 +1,111 @@
1
+
2
+ # Offering
3
+
4
+ One Form D private offering (Regulation D / Section 4(a)(5) exempt offering): the latest filing\'s facts and the held filing history
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `offering_id` | string
11
+ `file_number` | string
12
+ `first_accession` | string
13
+ `latest_accession` | string
14
+ `accessions` | Array<string>
15
+ `primary_issuer_cik` | string
16
+ `issuer_name` | string
17
+ `co_issuer_ciks` | Array<string>
18
+ `filed_first` | Date
19
+ `filed_latest` | Date
20
+ `sale_date` | Date
21
+ `first_sale_yet_to_occur` | boolean
22
+ `amendment_count` | number
23
+ `original_held` | boolean
24
+ `is_amendment` | boolean
25
+ `exemptions` | Array<string>
26
+ `industry_group` | string
27
+ `investment_fund_type` | string
28
+ `is_40_act` | boolean
29
+ `security_types` | Array<string>
30
+ `is_business_combination` | boolean
31
+ `more_than_one_year` | boolean
32
+ `min_investment` | number
33
+ `total_offering_amount` | number
34
+ `total_sold` | number
35
+ `total_remaining` | number
36
+ `indefinite_amount` | boolean
37
+ `has_non_accredited` | boolean
38
+ `non_accredited_count` | number
39
+ `investor_count` | number
40
+ `revenue_range` | string
41
+ `net_asset_value_range` | string
42
+ `sales_commission` | number
43
+ `finders_fee` | number
44
+ `related_persons` | [Array<OfferingRelatedPerson>](OfferingRelatedPerson.md)
45
+ `sic_code` | string
46
+ `jurisdiction` | string
47
+ `entity_type` | string
48
+ `year_of_inc` | string
49
+
50
+ ## Example
51
+
52
+ ```typescript
53
+ import type { Offering } from '@invinite-org/data-api-client'
54
+
55
+ // TODO: Update the object below with actual values
56
+ const example = {
57
+ "offering_id": 021-528681,
58
+ "file_number": null,
59
+ "first_accession": null,
60
+ "latest_accession": null,
61
+ "accessions": null,
62
+ "primary_issuer_cik": 0001991882,
63
+ "issuer_name": null,
64
+ "co_issuer_ciks": null,
65
+ "filed_first": null,
66
+ "filed_latest": null,
67
+ "sale_date": null,
68
+ "first_sale_yet_to_occur": null,
69
+ "amendment_count": null,
70
+ "original_held": null,
71
+ "is_amendment": null,
72
+ "exemptions": null,
73
+ "industry_group": null,
74
+ "investment_fund_type": null,
75
+ "is_40_act": null,
76
+ "security_types": null,
77
+ "is_business_combination": null,
78
+ "more_than_one_year": null,
79
+ "min_investment": null,
80
+ "total_offering_amount": null,
81
+ "total_sold": null,
82
+ "total_remaining": null,
83
+ "indefinite_amount": null,
84
+ "has_non_accredited": null,
85
+ "non_accredited_count": null,
86
+ "investor_count": null,
87
+ "revenue_range": null,
88
+ "net_asset_value_range": null,
89
+ "sales_commission": null,
90
+ "finders_fee": null,
91
+ "related_persons": null,
92
+ "sic_code": null,
93
+ "jurisdiction": null,
94
+ "entity_type": null,
95
+ "year_of_inc": null,
96
+ } satisfies Offering
97
+
98
+ console.log(example)
99
+
100
+ // Convert the instance to a JSON string
101
+ const exampleJSON: string = JSON.stringify(example)
102
+ console.log(exampleJSON)
103
+
104
+ // Parse the JSON string back to an object
105
+ const exampleParsed = JSON.parse(exampleJSON) as Offering
106
+ console.log(exampleParsed)
107
+ ```
108
+
109
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
110
+
111
+
@@ -0,0 +1,39 @@
1
+
2
+ # OfferingRelatedPerson
3
+
4
+ A related person of a Form D offering (executive officer, director, promoter) as filed
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `name` | string
11
+ `relationships` | Array<string>
12
+ `clarification` | string
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import type { OfferingRelatedPerson } from '@invinite-org/data-api-client'
18
+
19
+ // TODO: Update the object below with actual values
20
+ const example = {
21
+ "name": null,
22
+ "relationships": null,
23
+ "clarification": null,
24
+ } satisfies OfferingRelatedPerson
25
+
26
+ console.log(example)
27
+
28
+ // Convert the instance to a JSON string
29
+ const exampleJSON: string = JSON.stringify(example)
30
+ console.log(exampleJSON)
31
+
32
+ // Parse the JSON string back to an object
33
+ const exampleParsed = JSON.parse(exampleJSON) as OfferingRelatedPerson
34
+ console.log(exampleParsed)
35
+ ```
36
+
37
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
38
+
39
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@invinite-org/data-api-client",
3
- "version": "5.6.0",
3
+ "version": "5.7.0",
4
4
  "description": "Typed TypeScript/JavaScript client for the Invinite Data API",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -13,6 +13,11 @@
13
13
  */
14
14
 
15
15
  import * as runtime from '../runtime';
16
+ import {
17
+ type ListFundHoldings200Response,
18
+ ListFundHoldings200ResponseFromJSON,
19
+ ListFundHoldings200ResponseToJSON,
20
+ } from '../models/ListFundHoldings200Response';
16
21
  import {
17
22
  type ListHoldingChanges200Response,
18
23
  ListHoldingChanges200ResponseFromJSON,
@@ -29,6 +34,18 @@ import {
29
34
  ProblemToJSON,
30
35
  } from '../models/Problem';
31
36
 
37
+ export interface ListFundHoldingsRequest {
38
+ company?: string;
39
+ filer?: string;
40
+ series?: string;
41
+ accession?: string;
42
+ periodEnd?: Date;
43
+ sort?: ListFundHoldingsSortEnum;
44
+ fields?: string;
45
+ limit?: number;
46
+ cursor?: string;
47
+ }
48
+
32
49
  export interface ListHoldingChangesRequest {
33
50
  company?: string;
34
51
  filer?: string;
@@ -57,6 +74,89 @@ export interface ListHoldingsRequest {
57
74
  */
58
75
  export class HoldingsApi extends runtime.BaseAPI {
59
76
 
77
+ /**
78
+ * Creates request options for listFundHoldings without sending the request
79
+ */
80
+ async listFundHoldingsRequestOpts(requestParameters: ListFundHoldingsRequest): Promise<runtime.RequestOpts> {
81
+ const queryParameters: any = {};
82
+
83
+ if (requestParameters['company'] != null) {
84
+ queryParameters['company'] = requestParameters['company'];
85
+ }
86
+
87
+ if (requestParameters['filer'] != null) {
88
+ queryParameters['filer'] = requestParameters['filer'];
89
+ }
90
+
91
+ if (requestParameters['series'] != null) {
92
+ queryParameters['series'] = requestParameters['series'];
93
+ }
94
+
95
+ if (requestParameters['accession'] != null) {
96
+ queryParameters['accession'] = requestParameters['accession'];
97
+ }
98
+
99
+ if (requestParameters['periodEnd'] != null) {
100
+ queryParameters['period_end'] = (requestParameters['periodEnd'] as any).toISOString().substring(0,10);
101
+ }
102
+
103
+ if (requestParameters['sort'] != null) {
104
+ queryParameters['sort'] = requestParameters['sort'];
105
+ }
106
+
107
+ if (requestParameters['fields'] != null) {
108
+ queryParameters['fields'] = requestParameters['fields'];
109
+ }
110
+
111
+ if (requestParameters['limit'] != null) {
112
+ queryParameters['limit'] = requestParameters['limit'];
113
+ }
114
+
115
+ if (requestParameters['cursor'] != null) {
116
+ queryParameters['cursor'] = requestParameters['cursor'];
117
+ }
118
+
119
+ const headerParameters: runtime.HTTPHeaders = {};
120
+
121
+ if (this.configuration && this.configuration.accessToken) {
122
+ const token = this.configuration.accessToken;
123
+ const tokenString = await token("bearerAuth", []);
124
+
125
+ if (tokenString) {
126
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
127
+ }
128
+ }
129
+
130
+ let urlPath = `/v1/fund-holdings`;
131
+
132
+ return {
133
+ path: urlPath,
134
+ method: 'GET',
135
+ headers: headerParameters,
136
+ query: queryParameters,
137
+ };
138
+ }
139
+
140
+ /**
141
+ * N-PORT fund and ETF positions from the funds\' quarterly public reports (about 60 days after the report date): by issuer (`company=`, one row per fund holding it, from each fund\'s latest report on or before `period_end`, its positions in the issuer summed), by fund (`filer=` registrant CIK, `series=` when the registrant files for several funds: that fund\'s positions) or by filing (`accession=`, an NPORT-P filing\'s reported holdings as filed); exactly one of `company`, `filer` or `accession` (`series` alone needs `filer`). `period_end` defaults to today. Order: value in USD, descending (`company=`, `filer=`), the filing\'s line order (`accession=`); several companies are read one after another. A fund row is not a 13F `Holding` (different row type, R16): `/v1/holdings` keeps the 13F managers.
142
+ * List N-PORT fund holdings
143
+ */
144
+ async listFundHoldingsRaw(requestParameters: ListFundHoldingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListFundHoldings200Response>> {
145
+ const requestOptions = await this.listFundHoldingsRequestOpts(requestParameters);
146
+ const response = await this.request(requestOptions, initOverrides);
147
+
148
+ return new runtime.JSONApiResponse(response, (jsonValue) => ListFundHoldings200ResponseFromJSON(jsonValue));
149
+ }
150
+
151
+ /**
152
+ * N-PORT fund and ETF positions from the funds\' quarterly public reports (about 60 days after the report date): by issuer (`company=`, one row per fund holding it, from each fund\'s latest report on or before `period_end`, its positions in the issuer summed), by fund (`filer=` registrant CIK, `series=` when the registrant files for several funds: that fund\'s positions) or by filing (`accession=`, an NPORT-P filing\'s reported holdings as filed); exactly one of `company`, `filer` or `accession` (`series` alone needs `filer`). `period_end` defaults to today. Order: value in USD, descending (`company=`, `filer=`), the filing\'s line order (`accession=`); several companies are read one after another. A fund row is not a 13F `Holding` (different row type, R16): `/v1/holdings` keeps the 13F managers.
153
+ * List N-PORT fund holdings
154
+ */
155
+ async listFundHoldings(requestParameters: ListFundHoldingsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListFundHoldings200Response> {
156
+ const response = await this.listFundHoldingsRaw(requestParameters, initOverrides);
157
+ return await response.value();
158
+ }
159
+
60
160
  /**
61
161
  * Creates request options for listHoldingChanges without sending the request
62
162
  */
@@ -221,6 +321,13 @@ export class HoldingsApi extends runtime.BaseAPI {
221
321
 
222
322
  }
223
323
 
324
+ /**
325
+ * @export
326
+ */
327
+ export const ListFundHoldingsSortEnum = {
328
+ ValueUsd: '-value_usd'
329
+ } as const;
330
+ export type ListFundHoldingsSortEnum = typeof ListFundHoldingsSortEnum[keyof typeof ListFundHoldingsSortEnum];
224
331
  /**
225
332
  * @export
226
333
  */
@@ -23,6 +23,16 @@ import {
23
23
  ListIpos200ResponseFromJSON,
24
24
  ListIpos200ResponseToJSON,
25
25
  } from '../models/ListIpos200Response';
26
+ import {
27
+ type ListOfferings200Response,
28
+ ListOfferings200ResponseFromJSON,
29
+ ListOfferings200ResponseToJSON,
30
+ } from '../models/ListOfferings200Response';
31
+ import {
32
+ type Offering,
33
+ OfferingFromJSON,
34
+ OfferingToJSON,
35
+ } from '../models/Offering';
26
36
  import {
27
37
  type Problem,
28
38
  ProblemFromJSON,
@@ -34,6 +44,11 @@ export interface GetIpoRequest {
34
44
  fields?: string;
35
45
  }
36
46
 
47
+ export interface GetOfferingRequest {
48
+ offeringId: string;
49
+ fields?: string;
50
+ }
51
+
37
52
  export interface ListIposRequest {
38
53
  stage?: string;
39
54
  isSpac?: boolean;
@@ -48,6 +63,20 @@ export interface ListIposRequest {
48
63
  cursor?: string;
49
64
  }
50
65
 
66
+ export interface ListOfferingsRequest {
67
+ company?: string;
68
+ filedAtGte?: Date;
69
+ filedAtLte?: Date;
70
+ exemption?: string;
71
+ industry?: string;
72
+ totalSoldGte?: number;
73
+ isAmendment?: boolean;
74
+ sort?: ListOfferingsSortEnum;
75
+ fields?: string;
76
+ limit?: number;
77
+ cursor?: string;
78
+ }
79
+
51
80
  /**
52
81
  *
53
82
  */
@@ -112,6 +141,65 @@ export class IPOsApi extends runtime.BaseAPI {
112
141
  return await response.value();
113
142
  }
114
143
 
144
+ /**
145
+ * Creates request options for getOffering without sending the request
146
+ */
147
+ async getOfferingRequestOpts(requestParameters: GetOfferingRequest): Promise<runtime.RequestOpts> {
148
+ if (requestParameters['offeringId'] == null) {
149
+ throw new runtime.RequiredError(
150
+ 'offeringId',
151
+ 'Required parameter "offeringId" was null or undefined when calling getOffering().'
152
+ );
153
+ }
154
+
155
+ const queryParameters: any = {};
156
+
157
+ if (requestParameters['fields'] != null) {
158
+ queryParameters['fields'] = requestParameters['fields'];
159
+ }
160
+
161
+ const headerParameters: runtime.HTTPHeaders = {};
162
+
163
+ if (this.configuration && this.configuration.accessToken) {
164
+ const token = this.configuration.accessToken;
165
+ const tokenString = await token("bearerAuth", []);
166
+
167
+ if (tokenString) {
168
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
169
+ }
170
+ }
171
+
172
+ let urlPath = `/v1/offerings/{offering_id}`;
173
+ urlPath = urlPath.replace('{offering_id}', encodeURIComponent(String(requestParameters['offeringId'])));
174
+
175
+ return {
176
+ path: urlPath,
177
+ method: 'GET',
178
+ headers: headerParameters,
179
+ query: queryParameters,
180
+ };
181
+ }
182
+
183
+ /**
184
+ * One Form D private offering by its id (the Form D file number, e.g. `021-528681`), with the latest filing\'s facts and the held filing history; an unknown id answers 404. Form D is research data, not limited to listed companies: `company=` answers any Form D issuer CIK (funds, private companies; a ticker resolves only for a listed company), and the list is not gated by the coverage of the financial families.
185
+ * Get a Form D private offering
186
+ */
187
+ async getOfferingRaw(requestParameters: GetOfferingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Offering>> {
188
+ const requestOptions = await this.getOfferingRequestOpts(requestParameters);
189
+ const response = await this.request(requestOptions, initOverrides);
190
+
191
+ return new runtime.JSONApiResponse(response, (jsonValue) => OfferingFromJSON(jsonValue));
192
+ }
193
+
194
+ /**
195
+ * One Form D private offering by its id (the Form D file number, e.g. `021-528681`), with the latest filing\'s facts and the held filing history; an unknown id answers 404. Form D is research data, not limited to listed companies: `company=` answers any Form D issuer CIK (funds, private companies; a ticker resolves only for a listed company), and the list is not gated by the coverage of the financial families.
196
+ * Get a Form D private offering
197
+ */
198
+ async getOffering(requestParameters: GetOfferingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Offering> {
199
+ const response = await this.getOfferingRaw(requestParameters, initOverrides);
200
+ return await response.value();
201
+ }
202
+
115
203
  /**
116
204
  * Creates request options for listIpos without sending the request
117
205
  */
@@ -203,6 +291,97 @@ export class IPOsApi extends runtime.BaseAPI {
203
291
  return await response.value();
204
292
  }
205
293
 
294
+ /**
295
+ * Creates request options for listOfferings without sending the request
296
+ */
297
+ async listOfferingsRequestOpts(requestParameters: ListOfferingsRequest): Promise<runtime.RequestOpts> {
298
+ const queryParameters: any = {};
299
+
300
+ if (requestParameters['company'] != null) {
301
+ queryParameters['company'] = requestParameters['company'];
302
+ }
303
+
304
+ if (requestParameters['filedAtGte'] != null) {
305
+ queryParameters['filed_at.gte'] = (requestParameters['filedAtGte'] as any).toISOString().substring(0,10);
306
+ }
307
+
308
+ if (requestParameters['filedAtLte'] != null) {
309
+ queryParameters['filed_at.lte'] = (requestParameters['filedAtLte'] as any).toISOString().substring(0,10);
310
+ }
311
+
312
+ if (requestParameters['exemption'] != null) {
313
+ queryParameters['exemption'] = requestParameters['exemption'];
314
+ }
315
+
316
+ if (requestParameters['industry'] != null) {
317
+ queryParameters['industry'] = requestParameters['industry'];
318
+ }
319
+
320
+ if (requestParameters['totalSoldGte'] != null) {
321
+ queryParameters['total_sold.gte'] = requestParameters['totalSoldGte'];
322
+ }
323
+
324
+ if (requestParameters['isAmendment'] != null) {
325
+ queryParameters['is_amendment'] = requestParameters['isAmendment'];
326
+ }
327
+
328
+ if (requestParameters['sort'] != null) {
329
+ queryParameters['sort'] = requestParameters['sort'];
330
+ }
331
+
332
+ if (requestParameters['fields'] != null) {
333
+ queryParameters['fields'] = requestParameters['fields'];
334
+ }
335
+
336
+ if (requestParameters['limit'] != null) {
337
+ queryParameters['limit'] = requestParameters['limit'];
338
+ }
339
+
340
+ if (requestParameters['cursor'] != null) {
341
+ queryParameters['cursor'] = requestParameters['cursor'];
342
+ }
343
+
344
+ const headerParameters: runtime.HTTPHeaders = {};
345
+
346
+ if (this.configuration && this.configuration.accessToken) {
347
+ const token = this.configuration.accessToken;
348
+ const tokenString = await token("bearerAuth", []);
349
+
350
+ if (tokenString) {
351
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
352
+ }
353
+ }
354
+
355
+ let urlPath = `/v1/offerings`;
356
+
357
+ return {
358
+ path: urlPath,
359
+ method: 'GET',
360
+ headers: headerParameters,
361
+ query: queryParameters,
362
+ };
363
+ }
364
+
365
+ /**
366
+ * Form D private offerings (Regulation D and Section 4(a)(5) exempt offerings) from the SEC\'s quarterly Form D data sets, five years held: one row per offering (SEC\'s Form D file number; every amendment folds into it) with the latest filing\'s facts — issuer and co-issuers, exemptions as filed, industry group, security types, offering / sold / remaining amounts (USD), investors, related persons — and the held filing history. Filters: `company=` (one issuer CIK or listed ticker), `filed_at.gte|lte` (latest filing date), `exemption=`, `industry=`, `total_sold.gte`, `is_amendment`. Order: latest filing date descending, then offering id. An issuer CIK the SEC registry and the data set do not know answers 404; a known issuer without offerings an empty page. Form D is research data, not limited to listed companies: `company=` answers any Form D issuer CIK (funds, private companies; a ticker resolves only for a listed company), and the list is not gated by the coverage of the financial families.
367
+ * List Form D private offerings
368
+ */
369
+ async listOfferingsRaw(requestParameters: ListOfferingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListOfferings200Response>> {
370
+ const requestOptions = await this.listOfferingsRequestOpts(requestParameters);
371
+ const response = await this.request(requestOptions, initOverrides);
372
+
373
+ return new runtime.JSONApiResponse(response, (jsonValue) => ListOfferings200ResponseFromJSON(jsonValue));
374
+ }
375
+
376
+ /**
377
+ * Form D private offerings (Regulation D and Section 4(a)(5) exempt offerings) from the SEC\'s quarterly Form D data sets, five years held: one row per offering (SEC\'s Form D file number; every amendment folds into it) with the latest filing\'s facts — issuer and co-issuers, exemptions as filed, industry group, security types, offering / sold / remaining amounts (USD), investors, related persons — and the held filing history. Filters: `company=` (one issuer CIK or listed ticker), `filed_at.gte|lte` (latest filing date), `exemption=`, `industry=`, `total_sold.gte`, `is_amendment`. Order: latest filing date descending, then offering id. An issuer CIK the SEC registry and the data set do not know answers 404; a known issuer without offerings an empty page. Form D is research data, not limited to listed companies: `company=` answers any Form D issuer CIK (funds, private companies; a ticker resolves only for a listed company), and the list is not gated by the coverage of the financial families.
378
+ * List Form D private offerings
379
+ */
380
+ async listOfferings(requestParameters: ListOfferingsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListOfferings200Response> {
381
+ const response = await this.listOfferingsRaw(requestParameters, initOverrides);
382
+ return await response.value();
383
+ }
384
+
206
385
  }
207
386
 
208
387
  /**
@@ -215,3 +394,10 @@ export const ListIposSortEnum = {
215
394
  FirstPublicAt2: '-first_public_at'
216
395
  } as const;
217
396
  export type ListIposSortEnum = typeof ListIposSortEnum[keyof typeof ListIposSortEnum];
397
+ /**
398
+ * @export
399
+ */
400
+ export const ListOfferingsSortEnum = {
401
+ FiledLatest: '-filed_latest'
402
+ } as const;
403
+ export type ListOfferingsSortEnum = typeof ListOfferingsSortEnum[keyof typeof ListOfferingsSortEnum];