newscatcher-catchall-sdk 1.1.2 → 1.4.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 (345) hide show
  1. package/README.md +365 -284
  2. package/dist/cjs/BaseClient.js +2 -2
  3. package/dist/cjs/Client.d.ts +18 -0
  4. package/dist/cjs/Client.js +83 -6
  5. package/dist/cjs/api/errors/BadRequestError.d.ts +1 -2
  6. package/dist/cjs/api/resources/datasets/client/Client.d.ts +245 -0
  7. package/dist/cjs/api/resources/datasets/client/Client.js +779 -0
  8. package/dist/cjs/api/resources/datasets/client/index.d.ts +1 -0
  9. package/dist/cjs/api/resources/datasets/client/index.js +17 -0
  10. package/dist/cjs/api/resources/datasets/client/requests/AddEntitiesToDatasetRequest.d.ts +15 -0
  11. package/dist/cjs/api/resources/datasets/client/requests/AddEntitiesToDatasetRequest.js +3 -0
  12. package/dist/cjs/api/resources/datasets/client/requests/CreateDatasetFromCsvRequest.d.ts +16 -0
  13. package/dist/cjs/api/resources/datasets/client/requests/CreateDatasetFromCsvRequest.js +3 -0
  14. package/dist/cjs/api/resources/datasets/client/requests/CreateDatasetRequest.d.ts +16 -0
  15. package/dist/cjs/api/resources/datasets/client/requests/CreateDatasetRequest.js +3 -0
  16. package/dist/cjs/api/resources/datasets/client/requests/DeleteDatasetRequest.d.ts +10 -0
  17. package/dist/cjs/api/resources/datasets/client/requests/DeleteDatasetRequest.js +3 -0
  18. package/dist/cjs/api/resources/datasets/client/requests/GetDatasetRequest.d.ts +10 -0
  19. package/dist/cjs/api/resources/datasets/client/requests/GetDatasetRequest.js +3 -0
  20. package/dist/cjs/api/resources/datasets/client/requests/GetDatasetStatusHistoryRequest.d.ts +10 -0
  21. package/dist/cjs/api/resources/datasets/client/requests/GetDatasetStatusHistoryRequest.js +3 -0
  22. package/dist/cjs/api/resources/datasets/client/requests/ListDatasetsRequest.d.ts +19 -0
  23. package/dist/cjs/api/resources/datasets/client/requests/ListDatasetsRequest.js +3 -0
  24. package/dist/cjs/api/resources/datasets/client/requests/ListEntitiesInDatasetRequest.d.ts +21 -0
  25. package/dist/cjs/api/resources/datasets/client/requests/ListEntitiesInDatasetRequest.js +3 -0
  26. package/dist/cjs/api/resources/datasets/client/requests/RemoveEntitiesFromDatasetRequest.d.ts +15 -0
  27. package/dist/cjs/api/resources/datasets/client/requests/RemoveEntitiesFromDatasetRequest.js +3 -0
  28. package/dist/cjs/api/resources/datasets/client/requests/UpdateDatasetRequest.d.ts +16 -0
  29. package/dist/cjs/api/resources/datasets/client/requests/UpdateDatasetRequest.js +3 -0
  30. package/dist/cjs/api/resources/datasets/client/requests/UploadCsvToDatasetRequest.d.ts +14 -0
  31. package/dist/cjs/api/resources/datasets/client/requests/UploadCsvToDatasetRequest.js +3 -0
  32. package/dist/cjs/api/resources/datasets/client/requests/index.d.ts +11 -0
  33. package/dist/cjs/api/resources/datasets/client/requests/index.js +2 -0
  34. package/dist/cjs/api/resources/datasets/exports.d.ts +2 -0
  35. package/dist/cjs/api/resources/datasets/exports.js +21 -0
  36. package/dist/cjs/api/resources/datasets/index.d.ts +1 -0
  37. package/dist/cjs/api/resources/datasets/index.js +17 -0
  38. package/dist/cjs/api/resources/entities/client/Client.d.ts +164 -0
  39. package/dist/cjs/api/resources/entities/client/Client.js +468 -0
  40. package/dist/cjs/api/resources/entities/client/index.d.ts +1 -0
  41. package/dist/cjs/api/resources/entities/client/index.js +17 -0
  42. package/dist/cjs/api/resources/entities/client/requests/CreateEntitiesBatchRequest.d.ts +35 -0
  43. package/dist/cjs/api/resources/entities/client/requests/CreateEntitiesBatchRequest.js +3 -0
  44. package/dist/cjs/api/resources/entities/client/requests/DeleteEntityRequest.d.ts +10 -0
  45. package/dist/cjs/api/resources/entities/client/requests/DeleteEntityRequest.js +3 -0
  46. package/dist/cjs/api/resources/entities/client/requests/GetEntityRequest.d.ts +10 -0
  47. package/dist/cjs/api/resources/entities/client/requests/GetEntityRequest.js +3 -0
  48. package/dist/cjs/api/resources/entities/client/requests/ListEntitiesRequest.d.ts +19 -0
  49. package/dist/cjs/api/resources/entities/client/requests/ListEntitiesRequest.js +3 -0
  50. package/dist/cjs/api/resources/entities/client/requests/UpdateEntityRequest.d.ts +22 -0
  51. package/dist/cjs/api/resources/entities/client/requests/UpdateEntityRequest.js +3 -0
  52. package/dist/cjs/api/resources/entities/client/requests/index.d.ts +5 -0
  53. package/dist/cjs/api/resources/entities/client/requests/index.js +2 -0
  54. package/dist/cjs/api/resources/entities/exports.d.ts +2 -0
  55. package/dist/cjs/api/resources/entities/exports.js +21 -0
  56. package/dist/cjs/api/resources/entities/index.d.ts +1 -0
  57. package/dist/cjs/api/resources/entities/index.js +17 -0
  58. package/dist/cjs/api/resources/index.d.ts +4 -0
  59. package/dist/cjs/api/resources/index.js +5 -1
  60. package/dist/cjs/api/resources/jobs/client/Client.d.ts +32 -31
  61. package/dist/cjs/api/resources/jobs/client/Client.js +75 -74
  62. package/dist/cjs/api/resources/jobs/client/requests/SubmitRequestDto.d.ts +28 -1
  63. package/dist/cjs/api/resources/jobs/client/requests/SubmitRequestDto.js +14 -0
  64. package/dist/cjs/api/resources/jobs/client/requests/index.d.ts +1 -1
  65. package/dist/cjs/api/resources/jobs/client/requests/index.js +3 -0
  66. package/dist/cjs/api/resources/meta/client/Client.d.ts +15 -3
  67. package/dist/cjs/api/resources/meta/client/Client.js +49 -1
  68. package/dist/cjs/api/resources/monitors/client/Client.d.ts +40 -40
  69. package/dist/cjs/api/resources/monitors/client/Client.js +101 -101
  70. package/dist/cjs/api/types/AdditionalAttributes.d.ts +7 -0
  71. package/dist/cjs/api/types/AdditionalAttributes.js +3 -0
  72. package/dist/cjs/api/types/CompanyAttributes.d.ts +17 -0
  73. package/dist/cjs/api/types/CompanyAttributes.js +3 -0
  74. package/dist/cjs/api/types/ConnectedEntity.d.ts +30 -0
  75. package/dist/cjs/api/types/ConnectedEntity.js +3 -0
  76. package/dist/cjs/api/types/CreateDatasetCsvResponse.d.ts +10 -0
  77. package/dist/cjs/api/types/CreateDatasetCsvResponse.js +3 -0
  78. package/dist/cjs/api/types/CreateEntitiesBatchResponse.d.ts +7 -0
  79. package/dist/cjs/api/types/CreateEntitiesBatchResponse.js +3 -0
  80. package/dist/cjs/api/types/CreateEntityRequest.d.ts +13 -0
  81. package/dist/cjs/api/types/CreateEntityRequest.js +3 -0
  82. package/dist/cjs/api/types/CreateEntityResponse.d.ts +6 -0
  83. package/dist/cjs/api/types/CreateEntityResponse.js +3 -0
  84. package/dist/cjs/api/types/DatasetEntityIdsRequest.d.ts +4 -0
  85. package/dist/cjs/api/types/DatasetEntityIdsRequest.js +3 -0
  86. package/dist/cjs/api/types/DatasetEntityListResponse.d.ts +11 -0
  87. package/dist/cjs/api/types/DatasetEntityListResponse.js +3 -0
  88. package/dist/cjs/api/types/DatasetListResponse.d.ts +11 -0
  89. package/dist/cjs/api/types/DatasetListResponse.js +3 -0
  90. package/dist/cjs/api/types/DatasetResponse.d.ts +20 -0
  91. package/dist/cjs/api/types/DatasetResponse.js +3 -0
  92. package/dist/cjs/api/types/DatasetSortBy.d.ts +7 -0
  93. package/dist/cjs/api/types/DatasetSortBy.js +10 -0
  94. package/dist/cjs/api/types/DatasetStatus.d.ts +15 -0
  95. package/dist/cjs/api/types/DatasetStatus.js +18 -0
  96. package/dist/cjs/api/types/DatasetStatusEntry.d.ts +11 -0
  97. package/dist/cjs/api/types/DatasetStatusEntry.js +3 -0
  98. package/dist/cjs/api/types/DatasetStatusHistoryResponse.d.ts +7 -0
  99. package/dist/cjs/api/types/DatasetStatusHistoryResponse.js +3 -0
  100. package/dist/cjs/api/types/EnrichmentType.d.ts +3 -1
  101. package/dist/cjs/api/types/EnrichmentType.js +3 -1
  102. package/dist/cjs/api/types/EntityListResponse.d.ts +11 -0
  103. package/dist/cjs/api/types/EntityListResponse.js +3 -0
  104. package/dist/cjs/api/types/EntityResponse.d.ts +20 -0
  105. package/dist/cjs/api/types/EntityResponse.js +3 -0
  106. package/dist/cjs/api/types/EntitySortBy.d.ts +7 -0
  107. package/dist/cjs/api/types/EntitySortBy.js +10 -0
  108. package/dist/cjs/api/types/EntityStatus.d.ts +15 -0
  109. package/dist/cjs/api/types/EntityStatus.js +18 -0
  110. package/dist/cjs/api/types/EntitySummary.d.ts +18 -0
  111. package/dist/cjs/api/types/EntitySummary.js +3 -0
  112. package/dist/cjs/api/types/EntityType.d.ts +11 -0
  113. package/dist/cjs/api/types/EntityType.js +14 -0
  114. package/dist/cjs/api/types/EntityValidationErrorBody.d.ts +16 -0
  115. package/dist/cjs/api/types/EntityValidationErrorBody.js +3 -0
  116. package/dist/cjs/api/types/GetPlanLimitsResponseDto.d.ts +5 -0
  117. package/dist/cjs/api/types/GetPlanLimitsResponseDto.js +3 -0
  118. package/dist/cjs/api/types/ManageEntitiesResponse.d.ts +6 -0
  119. package/dist/cjs/api/types/ManageEntitiesResponse.js +3 -0
  120. package/dist/cjs/api/types/MonitorListItemDto.d.ts +4 -2
  121. package/dist/cjs/api/types/MonitorRecord.d.ts +1 -0
  122. package/dist/cjs/api/types/PlanFeature.d.ts +12 -0
  123. package/dist/cjs/api/types/PlanFeature.js +3 -0
  124. package/dist/cjs/api/types/PullJobResponseDto.d.ts +12 -8
  125. package/dist/cjs/api/types/PullJobResponseDto.js +9 -0
  126. package/dist/cjs/api/types/Record_.d.ts +5 -0
  127. package/dist/cjs/api/types/SkippedRow.d.ts +13 -0
  128. package/dist/cjs/api/types/SkippedRow.js +3 -0
  129. package/dist/cjs/api/types/SortOrder.d.ts +11 -0
  130. package/dist/cjs/api/types/SortOrder.js +14 -0
  131. package/dist/cjs/api/types/UploadCsvToDatasetResponse.d.ts +8 -0
  132. package/dist/cjs/api/types/UploadCsvToDatasetResponse.js +3 -0
  133. package/dist/cjs/api/types/UserJob.d.ts +12 -0
  134. package/dist/cjs/api/types/UserJob.js +9 -0
  135. package/dist/cjs/api/types/ValidationReport.d.ts +17 -0
  136. package/dist/cjs/api/types/ValidationReport.js +3 -0
  137. package/dist/cjs/api/types/index.d.ts +29 -0
  138. package/dist/cjs/api/types/index.js +29 -0
  139. package/dist/cjs/core/auth/BasicAuth.d.ts +2 -2
  140. package/dist/cjs/core/auth/BasicAuth.js +7 -1
  141. package/dist/cjs/core/exports.d.ts +1 -0
  142. package/dist/cjs/core/exports.js +1 -0
  143. package/dist/cjs/core/fetcher/BinaryResponse.d.ts +1 -1
  144. package/dist/cjs/core/fetcher/Fetcher.d.ts +2 -0
  145. package/dist/cjs/core/fetcher/Fetcher.js +4 -0
  146. package/dist/cjs/core/fetcher/index.d.ts +2 -0
  147. package/dist/cjs/core/fetcher/index.js +3 -1
  148. package/dist/cjs/core/fetcher/makePassthroughRequest.d.ts +49 -0
  149. package/dist/cjs/core/fetcher/makePassthroughRequest.js +135 -0
  150. package/dist/cjs/core/file/exports.d.ts +1 -0
  151. package/dist/cjs/core/file/exports.js +2 -0
  152. package/dist/cjs/core/file/file.d.ts +10 -0
  153. package/dist/cjs/core/file/file.js +222 -0
  154. package/dist/cjs/core/file/index.d.ts +2 -0
  155. package/dist/cjs/core/file/index.js +18 -0
  156. package/dist/cjs/core/file/types.d.ts +66 -0
  157. package/dist/cjs/core/file/types.js +2 -0
  158. package/dist/cjs/core/form-data-utils/FormDataWrapper.d.ts +15 -0
  159. package/dist/cjs/core/form-data-utils/FormDataWrapper.js +185 -0
  160. package/dist/cjs/core/form-data-utils/encodeAsFormParameter.d.ts +1 -0
  161. package/dist/cjs/core/form-data-utils/encodeAsFormParameter.js +12 -0
  162. package/dist/cjs/core/form-data-utils/index.d.ts +2 -0
  163. package/dist/cjs/core/form-data-utils/index.js +20 -0
  164. package/dist/cjs/core/index.d.ts +2 -0
  165. package/dist/cjs/core/index.js +3 -1
  166. package/dist/cjs/errors/CatchAllApiError.d.ts +3 -1
  167. package/dist/cjs/errors/CatchAllApiError.js +4 -1
  168. package/dist/cjs/errors/CatchAllApiTimeoutError.d.ts +4 -1
  169. package/dist/cjs/errors/CatchAllApiTimeoutError.js +4 -1
  170. package/dist/cjs/errors/handleNonStatusCodeError.js +4 -1
  171. package/dist/cjs/version.d.ts +1 -1
  172. package/dist/cjs/version.js +1 -1
  173. package/dist/esm/BaseClient.mjs +2 -2
  174. package/dist/esm/Client.d.mts +18 -0
  175. package/dist/esm/Client.mjs +44 -0
  176. package/dist/esm/api/errors/BadRequestError.d.mts +1 -2
  177. package/dist/esm/api/resources/datasets/client/Client.d.mts +245 -0
  178. package/dist/esm/api/resources/datasets/client/Client.mjs +742 -0
  179. package/dist/esm/api/resources/datasets/client/index.d.mts +1 -0
  180. package/dist/esm/api/resources/datasets/client/index.mjs +1 -0
  181. package/dist/esm/api/resources/datasets/client/requests/AddEntitiesToDatasetRequest.d.mts +15 -0
  182. package/dist/esm/api/resources/datasets/client/requests/AddEntitiesToDatasetRequest.mjs +2 -0
  183. package/dist/esm/api/resources/datasets/client/requests/CreateDatasetFromCsvRequest.d.mts +16 -0
  184. package/dist/esm/api/resources/datasets/client/requests/CreateDatasetFromCsvRequest.mjs +2 -0
  185. package/dist/esm/api/resources/datasets/client/requests/CreateDatasetRequest.d.mts +16 -0
  186. package/dist/esm/api/resources/datasets/client/requests/CreateDatasetRequest.mjs +2 -0
  187. package/dist/esm/api/resources/datasets/client/requests/DeleteDatasetRequest.d.mts +10 -0
  188. package/dist/esm/api/resources/datasets/client/requests/DeleteDatasetRequest.mjs +2 -0
  189. package/dist/esm/api/resources/datasets/client/requests/GetDatasetRequest.d.mts +10 -0
  190. package/dist/esm/api/resources/datasets/client/requests/GetDatasetRequest.mjs +2 -0
  191. package/dist/esm/api/resources/datasets/client/requests/GetDatasetStatusHistoryRequest.d.mts +10 -0
  192. package/dist/esm/api/resources/datasets/client/requests/GetDatasetStatusHistoryRequest.mjs +2 -0
  193. package/dist/esm/api/resources/datasets/client/requests/ListDatasetsRequest.d.mts +19 -0
  194. package/dist/esm/api/resources/datasets/client/requests/ListDatasetsRequest.mjs +2 -0
  195. package/dist/esm/api/resources/datasets/client/requests/ListEntitiesInDatasetRequest.d.mts +21 -0
  196. package/dist/esm/api/resources/datasets/client/requests/ListEntitiesInDatasetRequest.mjs +2 -0
  197. package/dist/esm/api/resources/datasets/client/requests/RemoveEntitiesFromDatasetRequest.d.mts +15 -0
  198. package/dist/esm/api/resources/datasets/client/requests/RemoveEntitiesFromDatasetRequest.mjs +2 -0
  199. package/dist/esm/api/resources/datasets/client/requests/UpdateDatasetRequest.d.mts +16 -0
  200. package/dist/esm/api/resources/datasets/client/requests/UpdateDatasetRequest.mjs +2 -0
  201. package/dist/esm/api/resources/datasets/client/requests/UploadCsvToDatasetRequest.d.mts +14 -0
  202. package/dist/esm/api/resources/datasets/client/requests/UploadCsvToDatasetRequest.mjs +2 -0
  203. package/dist/esm/api/resources/datasets/client/requests/index.d.mts +11 -0
  204. package/dist/esm/api/resources/datasets/client/requests/index.mjs +1 -0
  205. package/dist/esm/api/resources/datasets/exports.d.mts +2 -0
  206. package/dist/esm/api/resources/datasets/exports.mjs +3 -0
  207. package/dist/esm/api/resources/datasets/index.d.mts +1 -0
  208. package/dist/esm/api/resources/datasets/index.mjs +1 -0
  209. package/dist/esm/api/resources/entities/client/Client.d.mts +164 -0
  210. package/dist/esm/api/resources/entities/client/Client.mjs +431 -0
  211. package/dist/esm/api/resources/entities/client/index.d.mts +1 -0
  212. package/dist/esm/api/resources/entities/client/index.mjs +1 -0
  213. package/dist/esm/api/resources/entities/client/requests/CreateEntitiesBatchRequest.d.mts +35 -0
  214. package/dist/esm/api/resources/entities/client/requests/CreateEntitiesBatchRequest.mjs +2 -0
  215. package/dist/esm/api/resources/entities/client/requests/DeleteEntityRequest.d.mts +10 -0
  216. package/dist/esm/api/resources/entities/client/requests/DeleteEntityRequest.mjs +2 -0
  217. package/dist/esm/api/resources/entities/client/requests/GetEntityRequest.d.mts +10 -0
  218. package/dist/esm/api/resources/entities/client/requests/GetEntityRequest.mjs +2 -0
  219. package/dist/esm/api/resources/entities/client/requests/ListEntitiesRequest.d.mts +19 -0
  220. package/dist/esm/api/resources/entities/client/requests/ListEntitiesRequest.mjs +2 -0
  221. package/dist/esm/api/resources/entities/client/requests/UpdateEntityRequest.d.mts +22 -0
  222. package/dist/esm/api/resources/entities/client/requests/UpdateEntityRequest.mjs +2 -0
  223. package/dist/esm/api/resources/entities/client/requests/index.d.mts +5 -0
  224. package/dist/esm/api/resources/entities/client/requests/index.mjs +1 -0
  225. package/dist/esm/api/resources/entities/exports.d.mts +2 -0
  226. package/dist/esm/api/resources/entities/exports.mjs +3 -0
  227. package/dist/esm/api/resources/entities/index.d.mts +1 -0
  228. package/dist/esm/api/resources/entities/index.mjs +1 -0
  229. package/dist/esm/api/resources/index.d.mts +4 -0
  230. package/dist/esm/api/resources/index.mjs +4 -0
  231. package/dist/esm/api/resources/jobs/client/Client.d.mts +32 -31
  232. package/dist/esm/api/resources/jobs/client/Client.mjs +75 -74
  233. package/dist/esm/api/resources/jobs/client/requests/SubmitRequestDto.d.mts +28 -1
  234. package/dist/esm/api/resources/jobs/client/requests/SubmitRequestDto.mjs +13 -1
  235. package/dist/esm/api/resources/jobs/client/requests/index.d.mts +1 -1
  236. package/dist/esm/api/resources/jobs/client/requests/index.mjs +1 -1
  237. package/dist/esm/api/resources/meta/client/Client.d.mts +15 -3
  238. package/dist/esm/api/resources/meta/client/Client.mjs +50 -2
  239. package/dist/esm/api/resources/monitors/client/Client.d.mts +40 -40
  240. package/dist/esm/api/resources/monitors/client/Client.mjs +101 -101
  241. package/dist/esm/api/types/AdditionalAttributes.d.mts +7 -0
  242. package/dist/esm/api/types/AdditionalAttributes.mjs +2 -0
  243. package/dist/esm/api/types/CompanyAttributes.d.mts +17 -0
  244. package/dist/esm/api/types/CompanyAttributes.mjs +2 -0
  245. package/dist/esm/api/types/ConnectedEntity.d.mts +30 -0
  246. package/dist/esm/api/types/ConnectedEntity.mjs +2 -0
  247. package/dist/esm/api/types/CreateDatasetCsvResponse.d.mts +10 -0
  248. package/dist/esm/api/types/CreateDatasetCsvResponse.mjs +2 -0
  249. package/dist/esm/api/types/CreateEntitiesBatchResponse.d.mts +7 -0
  250. package/dist/esm/api/types/CreateEntitiesBatchResponse.mjs +2 -0
  251. package/dist/esm/api/types/CreateEntityRequest.d.mts +13 -0
  252. package/dist/esm/api/types/CreateEntityRequest.mjs +2 -0
  253. package/dist/esm/api/types/CreateEntityResponse.d.mts +6 -0
  254. package/dist/esm/api/types/CreateEntityResponse.mjs +2 -0
  255. package/dist/esm/api/types/DatasetEntityIdsRequest.d.mts +4 -0
  256. package/dist/esm/api/types/DatasetEntityIdsRequest.mjs +2 -0
  257. package/dist/esm/api/types/DatasetEntityListResponse.d.mts +11 -0
  258. package/dist/esm/api/types/DatasetEntityListResponse.mjs +2 -0
  259. package/dist/esm/api/types/DatasetListResponse.d.mts +11 -0
  260. package/dist/esm/api/types/DatasetListResponse.mjs +2 -0
  261. package/dist/esm/api/types/DatasetResponse.d.mts +20 -0
  262. package/dist/esm/api/types/DatasetResponse.mjs +2 -0
  263. package/dist/esm/api/types/DatasetSortBy.d.mts +7 -0
  264. package/dist/esm/api/types/DatasetSortBy.mjs +7 -0
  265. package/dist/esm/api/types/DatasetStatus.d.mts +15 -0
  266. package/dist/esm/api/types/DatasetStatus.mjs +15 -0
  267. package/dist/esm/api/types/DatasetStatusEntry.d.mts +11 -0
  268. package/dist/esm/api/types/DatasetStatusEntry.mjs +2 -0
  269. package/dist/esm/api/types/DatasetStatusHistoryResponse.d.mts +7 -0
  270. package/dist/esm/api/types/DatasetStatusHistoryResponse.mjs +2 -0
  271. package/dist/esm/api/types/EnrichmentType.d.mts +3 -1
  272. package/dist/esm/api/types/EnrichmentType.mjs +3 -1
  273. package/dist/esm/api/types/EntityListResponse.d.mts +11 -0
  274. package/dist/esm/api/types/EntityListResponse.mjs +2 -0
  275. package/dist/esm/api/types/EntityResponse.d.mts +20 -0
  276. package/dist/esm/api/types/EntityResponse.mjs +2 -0
  277. package/dist/esm/api/types/EntitySortBy.d.mts +7 -0
  278. package/dist/esm/api/types/EntitySortBy.mjs +7 -0
  279. package/dist/esm/api/types/EntityStatus.d.mts +15 -0
  280. package/dist/esm/api/types/EntityStatus.mjs +15 -0
  281. package/dist/esm/api/types/EntitySummary.d.mts +18 -0
  282. package/dist/esm/api/types/EntitySummary.mjs +2 -0
  283. package/dist/esm/api/types/EntityType.d.mts +11 -0
  284. package/dist/esm/api/types/EntityType.mjs +11 -0
  285. package/dist/esm/api/types/EntityValidationErrorBody.d.mts +16 -0
  286. package/dist/esm/api/types/EntityValidationErrorBody.mjs +2 -0
  287. package/dist/esm/api/types/GetPlanLimitsResponseDto.d.mts +5 -0
  288. package/dist/esm/api/types/GetPlanLimitsResponseDto.mjs +2 -0
  289. package/dist/esm/api/types/ManageEntitiesResponse.d.mts +6 -0
  290. package/dist/esm/api/types/ManageEntitiesResponse.mjs +2 -0
  291. package/dist/esm/api/types/MonitorListItemDto.d.mts +4 -2
  292. package/dist/esm/api/types/MonitorRecord.d.mts +1 -0
  293. package/dist/esm/api/types/PlanFeature.d.mts +12 -0
  294. package/dist/esm/api/types/PlanFeature.mjs +2 -0
  295. package/dist/esm/api/types/PullJobResponseDto.d.mts +12 -8
  296. package/dist/esm/api/types/PullJobResponseDto.mjs +8 -1
  297. package/dist/esm/api/types/Record_.d.mts +5 -0
  298. package/dist/esm/api/types/SkippedRow.d.mts +13 -0
  299. package/dist/esm/api/types/SkippedRow.mjs +2 -0
  300. package/dist/esm/api/types/SortOrder.d.mts +11 -0
  301. package/dist/esm/api/types/SortOrder.mjs +11 -0
  302. package/dist/esm/api/types/UploadCsvToDatasetResponse.d.mts +8 -0
  303. package/dist/esm/api/types/UploadCsvToDatasetResponse.mjs +2 -0
  304. package/dist/esm/api/types/UserJob.d.mts +12 -0
  305. package/dist/esm/api/types/UserJob.mjs +8 -1
  306. package/dist/esm/api/types/ValidationReport.d.mts +17 -0
  307. package/dist/esm/api/types/ValidationReport.mjs +2 -0
  308. package/dist/esm/api/types/index.d.mts +29 -0
  309. package/dist/esm/api/types/index.mjs +29 -0
  310. package/dist/esm/core/auth/BasicAuth.d.mts +2 -2
  311. package/dist/esm/core/auth/BasicAuth.mjs +7 -1
  312. package/dist/esm/core/exports.d.mts +1 -0
  313. package/dist/esm/core/exports.mjs +1 -0
  314. package/dist/esm/core/fetcher/BinaryResponse.d.mts +1 -1
  315. package/dist/esm/core/fetcher/Fetcher.d.mts +2 -0
  316. package/dist/esm/core/fetcher/Fetcher.mjs +4 -0
  317. package/dist/esm/core/fetcher/index.d.mts +2 -0
  318. package/dist/esm/core/fetcher/index.mjs +1 -0
  319. package/dist/esm/core/fetcher/makePassthroughRequest.d.mts +49 -0
  320. package/dist/esm/core/fetcher/makePassthroughRequest.mjs +132 -0
  321. package/dist/esm/core/file/exports.d.mts +1 -0
  322. package/dist/esm/core/file/exports.mjs +1 -0
  323. package/dist/esm/core/file/file.d.mts +10 -0
  324. package/dist/esm/core/file/file.mjs +185 -0
  325. package/dist/esm/core/file/index.d.mts +2 -0
  326. package/dist/esm/core/file/index.mjs +2 -0
  327. package/dist/esm/core/file/types.d.mts +66 -0
  328. package/dist/esm/core/file/types.mjs +1 -0
  329. package/dist/esm/core/form-data-utils/FormDataWrapper.d.mts +15 -0
  330. package/dist/esm/core/form-data-utils/FormDataWrapper.mjs +147 -0
  331. package/dist/esm/core/form-data-utils/encodeAsFormParameter.d.mts +1 -0
  332. package/dist/esm/core/form-data-utils/encodeAsFormParameter.mjs +9 -0
  333. package/dist/esm/core/form-data-utils/index.d.mts +2 -0
  334. package/dist/esm/core/form-data-utils/index.mjs +2 -0
  335. package/dist/esm/core/index.d.mts +2 -0
  336. package/dist/esm/core/index.mjs +2 -0
  337. package/dist/esm/errors/CatchAllApiError.d.mts +3 -1
  338. package/dist/esm/errors/CatchAllApiError.mjs +4 -1
  339. package/dist/esm/errors/CatchAllApiTimeoutError.d.mts +4 -1
  340. package/dist/esm/errors/CatchAllApiTimeoutError.mjs +4 -1
  341. package/dist/esm/errors/handleNonStatusCodeError.mjs +4 -1
  342. package/dist/esm/version.d.mts +1 -1
  343. package/dist/esm/version.mjs +1 -1
  344. package/package.json +29 -7
  345. package/reference.md +1312 -58
@@ -0,0 +1,431 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __rest = (this && this.__rest) || function (s, e) {
12
+ var t = {};
13
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
14
+ t[p] = s[p];
15
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
16
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
17
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
18
+ t[p[i]] = s[p[i]];
19
+ }
20
+ return t;
21
+ };
22
+ import { normalizeClientOptionsWithAuth } from "../../../../BaseClient.mjs";
23
+ import { mergeHeaders } from "../../../../core/headers.mjs";
24
+ import * as core from "../../../../core/index.mjs";
25
+ import * as environments from "../../../../environments.mjs";
26
+ import { handleNonStatusCodeError } from "../../../../errors/handleNonStatusCodeError.mjs";
27
+ import * as errors from "../../../../errors/index.mjs";
28
+ import * as CatchAllApi from "../../../index.mjs";
29
+ /**
30
+ * Operations to create, update, and delete company entities.
31
+ *
32
+ * Entities are the building blocks of Company Search. Each entity represents
33
+ * a company (or person) you want to track. Add identifying information such as
34
+ * domain, alternative names, and key persons to improve matching quality.
35
+ */
36
+ export class EntitiesClient {
37
+ constructor(options = {}) {
38
+ this._options = normalizeClientOptionsWithAuth(options);
39
+ }
40
+ /**
41
+ * Returns a paginated list of entities belonging to the authenticated
42
+ * organization. Supports filtering by status and entity type, and
43
+ * sorting by name, status, or creation date.
44
+ *
45
+ * @param {CatchAllApi.ListEntitiesRequest} request
46
+ * @param {EntitiesClient.RequestOptions} requestOptions - Request-specific configuration.
47
+ *
48
+ * @throws {@link CatchAllApi.ForbiddenError}
49
+ *
50
+ * @example
51
+ * await client.entities.listEntities({
52
+ * search: "NewsCatcher"
53
+ * })
54
+ */
55
+ listEntities(request = {}, requestOptions) {
56
+ return core.HttpResponsePromise.fromPromise(this.__listEntities(request, requestOptions));
57
+ }
58
+ __listEntities() {
59
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
60
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
61
+ const { page, page_size: pageSize, search, status, entity_type: entityType, sort_by: sortBy, sort_order: sortOrder, } = request;
62
+ const _queryParams = {
63
+ page,
64
+ page_size: pageSize,
65
+ search,
66
+ status: status != null ? status : undefined,
67
+ entity_type: entityType != null ? entityType : undefined,
68
+ sort_by: sortBy != null ? sortBy : undefined,
69
+ sort_order: sortOrder != null ? sortOrder : undefined,
70
+ };
71
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
72
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
73
+ const _response = yield core.fetcher({
74
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.CatchAllApiEnvironment.Default, "catchAll/entities"),
75
+ method: "GET",
76
+ headers: _headers,
77
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
78
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
79
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
80
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
81
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
82
+ logging: this._options.logging,
83
+ });
84
+ if (_response.ok) {
85
+ return { data: _response.body, rawResponse: _response.rawResponse };
86
+ }
87
+ if (_response.error.reason === "status-code") {
88
+ switch (_response.error.statusCode) {
89
+ case 403:
90
+ throw new CatchAllApi.ForbiddenError(_response.error.body, _response.rawResponse);
91
+ default:
92
+ throw new errors.CatchAllApiError({
93
+ statusCode: _response.error.statusCode,
94
+ body: _response.error.body,
95
+ rawResponse: _response.rawResponse,
96
+ });
97
+ }
98
+ }
99
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/catchAll/entities");
100
+ });
101
+ }
102
+ /**
103
+ * Creates a new company entity and begins background enrichment.
104
+ *
105
+ * The entity status starts as `pending` and transitions to `ready` once
106
+ * enrichment completes. Provide as much identifying information as
107
+ * possible — `domain` is the highest-signal field because it is
108
+ * unambiguous.
109
+ *
110
+ * @param {CatchAllApi.CreateEntityRequest} request
111
+ * @param {EntitiesClient.RequestOptions} requestOptions - Request-specific configuration.
112
+ *
113
+ * @throws {@link CatchAllApi.BadRequestError}
114
+ * @throws {@link CatchAllApi.ForbiddenError}
115
+ *
116
+ * @example
117
+ * await client.entities.createEntity({
118
+ * name: "NewsCatcher",
119
+ * entity_type: "company",
120
+ * description: "AI-powered news data provider",
121
+ * additional_attributes: {
122
+ * company_attributes: {
123
+ * domain: "newscatcherapi.com",
124
+ * key_persons: ["Artem Bugara", "Maksym Sugonyaka"],
125
+ * alternative_names: ["NC", "NewsCatcher API"]
126
+ * }
127
+ * }
128
+ * })
129
+ */
130
+ createEntity(request, requestOptions) {
131
+ return core.HttpResponsePromise.fromPromise(this.__createEntity(request, requestOptions));
132
+ }
133
+ __createEntity(request, requestOptions) {
134
+ return __awaiter(this, void 0, void 0, function* () {
135
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
136
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
137
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
138
+ const _response = yield core.fetcher({
139
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.CatchAllApiEnvironment.Default, "catchAll/entities"),
140
+ method: "POST",
141
+ headers: _headers,
142
+ contentType: "application/json",
143
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
144
+ requestType: "json",
145
+ body: request,
146
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
147
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
148
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
149
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
150
+ logging: this._options.logging,
151
+ });
152
+ if (_response.ok) {
153
+ return { data: _response.body, rawResponse: _response.rawResponse };
154
+ }
155
+ if (_response.error.reason === "status-code") {
156
+ switch (_response.error.statusCode) {
157
+ case 400:
158
+ throw new CatchAllApi.BadRequestError(_response.error.body, _response.rawResponse);
159
+ case 403:
160
+ throw new CatchAllApi.ForbiddenError(_response.error.body, _response.rawResponse);
161
+ default:
162
+ throw new errors.CatchAllApiError({
163
+ statusCode: _response.error.statusCode,
164
+ body: _response.error.body,
165
+ rawResponse: _response.rawResponse,
166
+ });
167
+ }
168
+ }
169
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/catchAll/entities");
170
+ });
171
+ }
172
+ /**
173
+ * Creates multiple entities in a single request. Each entity is
174
+ * processed independently — a failure in one does not affect others.
175
+ *
176
+ * Returns an array of `{id, status}` objects in the same order as
177
+ * the input array.
178
+ *
179
+ * @param {CatchAllApi.CreateEntitiesBatchRequest} request
180
+ * @param {EntitiesClient.RequestOptions} requestOptions - Request-specific configuration.
181
+ *
182
+ * @throws {@link CatchAllApi.BadRequestError}
183
+ * @throws {@link CatchAllApi.ForbiddenError}
184
+ *
185
+ * @example
186
+ * await client.entities.createEntitiesBatch({
187
+ * entities: [{
188
+ * name: "OpenAI",
189
+ * entity_type: "company",
190
+ * description: "Artificial intelligence research company",
191
+ * additional_attributes: {
192
+ * company_attributes: {
193
+ * domain: "openai.com",
194
+ * key_persons: ["Sam Altman"],
195
+ * alternative_names: ["Open AI"]
196
+ * }
197
+ * }
198
+ * }, {
199
+ * name: "Stripe",
200
+ * entity_type: "company",
201
+ * description: "Online payment processing platform",
202
+ * additional_attributes: {
203
+ * company_attributes: {
204
+ * domain: "stripe.com",
205
+ * key_persons: ["Patrick Collison", "John Collison"]
206
+ * }
207
+ * }
208
+ * }]
209
+ * })
210
+ */
211
+ createEntitiesBatch(request, requestOptions) {
212
+ return core.HttpResponsePromise.fromPromise(this.__createEntitiesBatch(request, requestOptions));
213
+ }
214
+ __createEntitiesBatch(request, requestOptions) {
215
+ return __awaiter(this, void 0, void 0, function* () {
216
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
217
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
218
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
219
+ const _response = yield core.fetcher({
220
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.CatchAllApiEnvironment.Default, "catchAll/entities/batch"),
221
+ method: "POST",
222
+ headers: _headers,
223
+ contentType: "application/json",
224
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
225
+ requestType: "json",
226
+ body: request,
227
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
228
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
229
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
230
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
231
+ logging: this._options.logging,
232
+ });
233
+ if (_response.ok) {
234
+ return {
235
+ data: _response.body,
236
+ rawResponse: _response.rawResponse,
237
+ };
238
+ }
239
+ if (_response.error.reason === "status-code") {
240
+ switch (_response.error.statusCode) {
241
+ case 400:
242
+ throw new CatchAllApi.BadRequestError(_response.error.body, _response.rawResponse);
243
+ case 403:
244
+ throw new CatchAllApi.ForbiddenError(_response.error.body, _response.rawResponse);
245
+ default:
246
+ throw new errors.CatchAllApiError({
247
+ statusCode: _response.error.statusCode,
248
+ body: _response.error.body,
249
+ rawResponse: _response.rawResponse,
250
+ });
251
+ }
252
+ }
253
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/catchAll/entities/batch");
254
+ });
255
+ }
256
+ /**
257
+ * Returns a single entity by ID with all attributes and current status.
258
+ *
259
+ * @param {CatchAllApi.GetEntityRequest} request
260
+ * @param {EntitiesClient.RequestOptions} requestOptions - Request-specific configuration.
261
+ *
262
+ * @throws {@link CatchAllApi.ForbiddenError}
263
+ * @throws {@link CatchAllApi.NotFoundError}
264
+ *
265
+ * @example
266
+ * await client.entities.getEntity({
267
+ * entity_id: "854198fa-f702-49db-a381-0427fa87f173"
268
+ * })
269
+ */
270
+ getEntity(request, requestOptions) {
271
+ return core.HttpResponsePromise.fromPromise(this.__getEntity(request, requestOptions));
272
+ }
273
+ __getEntity(request, requestOptions) {
274
+ return __awaiter(this, void 0, void 0, function* () {
275
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
276
+ const { entity_id: entityId } = request;
277
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
278
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
279
+ const _response = yield core.fetcher({
280
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.CatchAllApiEnvironment.Default, `catchAll/entities/${core.url.encodePathParam(entityId)}`),
281
+ method: "GET",
282
+ headers: _headers,
283
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
284
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
285
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
286
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
287
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
288
+ logging: this._options.logging,
289
+ });
290
+ if (_response.ok) {
291
+ return { data: _response.body, rawResponse: _response.rawResponse };
292
+ }
293
+ if (_response.error.reason === "status-code") {
294
+ switch (_response.error.statusCode) {
295
+ case 403:
296
+ throw new CatchAllApi.ForbiddenError(_response.error.body, _response.rawResponse);
297
+ case 404:
298
+ throw new CatchAllApi.NotFoundError(_response.error.body, _response.rawResponse);
299
+ default:
300
+ throw new errors.CatchAllApiError({
301
+ statusCode: _response.error.statusCode,
302
+ body: _response.error.body,
303
+ rawResponse: _response.rawResponse,
304
+ });
305
+ }
306
+ }
307
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/catchAll/entities/{entity_id}");
308
+ });
309
+ }
310
+ /**
311
+ * Permanently deletes an entity. The entity is removed from all
312
+ * datasets and the search index. This operation cannot be undone.
313
+ *
314
+ * @param {CatchAllApi.DeleteEntityRequest} request
315
+ * @param {EntitiesClient.RequestOptions} requestOptions - Request-specific configuration.
316
+ *
317
+ * @throws {@link CatchAllApi.ForbiddenError}
318
+ * @throws {@link CatchAllApi.NotFoundError}
319
+ *
320
+ * @example
321
+ * await client.entities.deleteEntity({
322
+ * entity_id: "854198fa-f702-49db-a381-0427fa87f173"
323
+ * })
324
+ */
325
+ deleteEntity(request, requestOptions) {
326
+ return core.HttpResponsePromise.fromPromise(this.__deleteEntity(request, requestOptions));
327
+ }
328
+ __deleteEntity(request, requestOptions) {
329
+ return __awaiter(this, void 0, void 0, function* () {
330
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
331
+ const { entity_id: entityId } = request;
332
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
333
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
334
+ const _response = yield core.fetcher({
335
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.CatchAllApiEnvironment.Default, `catchAll/entities/${core.url.encodePathParam(entityId)}`),
336
+ method: "DELETE",
337
+ headers: _headers,
338
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
339
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
340
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
341
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
342
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
343
+ logging: this._options.logging,
344
+ });
345
+ if (_response.ok) {
346
+ return { data: undefined, rawResponse: _response.rawResponse };
347
+ }
348
+ if (_response.error.reason === "status-code") {
349
+ switch (_response.error.statusCode) {
350
+ case 403:
351
+ throw new CatchAllApi.ForbiddenError(_response.error.body, _response.rawResponse);
352
+ case 404:
353
+ throw new CatchAllApi.NotFoundError(_response.error.body, _response.rawResponse);
354
+ default:
355
+ throw new errors.CatchAllApiError({
356
+ statusCode: _response.error.statusCode,
357
+ body: _response.error.body,
358
+ rawResponse: _response.rawResponse,
359
+ });
360
+ }
361
+ }
362
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "DELETE", "/catchAll/entities/{entity_id}");
363
+ });
364
+ }
365
+ /**
366
+ * Updates one or more fields of an existing entity.
367
+ *
368
+ * @param {CatchAllApi.UpdateEntityRequest} request
369
+ * @param {EntitiesClient.RequestOptions} requestOptions - Request-specific configuration.
370
+ *
371
+ * @throws {@link CatchAllApi.BadRequestError}
372
+ * @throws {@link CatchAllApi.ForbiddenError}
373
+ * @throws {@link CatchAllApi.NotFoundError}
374
+ *
375
+ * @example
376
+ * await client.entities.updateEntity({
377
+ * entity_id: "854198fa-f702-49db-a381-0427fa87f173",
378
+ * description: "Updated description",
379
+ * additional_attributes: {
380
+ * company_attributes: {
381
+ * alternative_names: ["NC", "NewsCatcher API", "NCA"]
382
+ * }
383
+ * }
384
+ * })
385
+ */
386
+ updateEntity(request, requestOptions) {
387
+ return core.HttpResponsePromise.fromPromise(this.__updateEntity(request, requestOptions));
388
+ }
389
+ __updateEntity(request, requestOptions) {
390
+ return __awaiter(this, void 0, void 0, function* () {
391
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
392
+ const { entity_id: entityId } = request, _body = __rest(request, ["entity_id"]);
393
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
394
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
395
+ const _response = yield core.fetcher({
396
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.CatchAllApiEnvironment.Default, `catchAll/entities/${core.url.encodePathParam(entityId)}`),
397
+ method: "PATCH",
398
+ headers: _headers,
399
+ contentType: "application/json",
400
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
401
+ requestType: "json",
402
+ body: _body,
403
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
404
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
405
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
406
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
407
+ logging: this._options.logging,
408
+ });
409
+ if (_response.ok) {
410
+ return { data: _response.body, rawResponse: _response.rawResponse };
411
+ }
412
+ if (_response.error.reason === "status-code") {
413
+ switch (_response.error.statusCode) {
414
+ case 400:
415
+ throw new CatchAllApi.BadRequestError(_response.error.body, _response.rawResponse);
416
+ case 403:
417
+ throw new CatchAllApi.ForbiddenError(_response.error.body, _response.rawResponse);
418
+ case 404:
419
+ throw new CatchAllApi.NotFoundError(_response.error.body, _response.rawResponse);
420
+ default:
421
+ throw new errors.CatchAllApiError({
422
+ statusCode: _response.error.statusCode,
423
+ body: _response.error.body,
424
+ rawResponse: _response.rawResponse,
425
+ });
426
+ }
427
+ }
428
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "PATCH", "/catchAll/entities/{entity_id}");
429
+ });
430
+ }
431
+ }
@@ -0,0 +1 @@
1
+ export * from "./requests/index.mjs";
@@ -0,0 +1 @@
1
+ export * from "./requests/index.mjs";
@@ -0,0 +1,35 @@
1
+ import type * as CatchAllApi from "../../../../index.mjs";
2
+ /**
3
+ * @example
4
+ * {
5
+ * entities: [{
6
+ * name: "OpenAI",
7
+ * entity_type: "company",
8
+ * description: "Artificial intelligence research company",
9
+ * additional_attributes: {
10
+ * company_attributes: {
11
+ * domain: "openai.com",
12
+ * key_persons: ["Sam Altman"],
13
+ * alternative_names: ["Open AI"]
14
+ * }
15
+ * }
16
+ * }, {
17
+ * name: "Stripe",
18
+ * entity_type: "company",
19
+ * description: "Online payment processing platform",
20
+ * additional_attributes: {
21
+ * company_attributes: {
22
+ * domain: "stripe.com",
23
+ * key_persons: ["Patrick Collison", "John Collison"]
24
+ * }
25
+ * }
26
+ * }]
27
+ * }
28
+ */
29
+ export interface CreateEntitiesBatchRequest {
30
+ /**
31
+ * Array of entities to create. Each item follows the same schema
32
+ * as single entity creation.
33
+ */
34
+ entities: CatchAllApi.CreateEntityRequest[];
35
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * entity_id: "854198fa-f702-49db-a381-0427fa87f173"
5
+ * }
6
+ */
7
+ export interface DeleteEntityRequest {
8
+ /** Unique entity identifier. */
9
+ entity_id: string;
10
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * entity_id: "854198fa-f702-49db-a381-0427fa87f173"
5
+ * }
6
+ */
7
+ export interface GetEntityRequest {
8
+ /** Unique entity identifier. */
9
+ entity_id: string;
10
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,19 @@
1
+ import type * as CatchAllApi from "../../../../index.mjs";
2
+ /**
3
+ * @example
4
+ * {
5
+ * search: "NewsCatcher"
6
+ * }
7
+ */
8
+ export interface ListEntitiesRequest {
9
+ /** Page number to retrieve. */
10
+ page?: number;
11
+ /** Number of entities per page. */
12
+ page_size?: number;
13
+ /** Filter entities by name (case-insensitive substring match). */
14
+ search?: string;
15
+ status?: CatchAllApi.EntityStatus;
16
+ entity_type?: CatchAllApi.EntityType;
17
+ sort_by?: CatchAllApi.EntitySortBy;
18
+ sort_order?: CatchAllApi.SortOrder;
19
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,22 @@
1
+ import type * as CatchAllApi from "../../../../index.mjs";
2
+ /**
3
+ * @example
4
+ * {
5
+ * entity_id: "854198fa-f702-49db-a381-0427fa87f173",
6
+ * description: "Updated description",
7
+ * additional_attributes: {
8
+ * company_attributes: {
9
+ * alternative_names: ["NC", "NewsCatcher API", "NCA"]
10
+ * }
11
+ * }
12
+ * }
13
+ */
14
+ export interface UpdateEntityRequest {
15
+ /** Unique entity identifier. */
16
+ entity_id: string;
17
+ /** Updated entity name. */
18
+ name?: string;
19
+ /** Updated description. */
20
+ description?: string;
21
+ additional_attributes?: CatchAllApi.AdditionalAttributes;
22
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,5 @@
1
+ export type { CreateEntitiesBatchRequest } from "./CreateEntitiesBatchRequest.mjs";
2
+ export type { DeleteEntityRequest } from "./DeleteEntityRequest.mjs";
3
+ export type { GetEntityRequest } from "./GetEntityRequest.mjs";
4
+ export type { ListEntitiesRequest } from "./ListEntitiesRequest.mjs";
5
+ export type { UpdateEntityRequest } from "./UpdateEntityRequest.mjs";
@@ -0,0 +1,2 @@
1
+ export { EntitiesClient } from "./client/Client.mjs";
2
+ export * from "./client/index.mjs";
@@ -0,0 +1,3 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export { EntitiesClient } from "./client/Client.mjs";
3
+ export * from "./client/index.mjs";
@@ -0,0 +1 @@
1
+ export * from "./client/index.mjs";
@@ -0,0 +1 @@
1
+ export * from "./client/index.mjs";
@@ -1,3 +1,7 @@
1
+ export * from "./datasets/client/requests/index.mjs";
2
+ export * as datasets from "./datasets/index.mjs";
3
+ export * from "./entities/client/requests/index.mjs";
4
+ export * as entities from "./entities/index.mjs";
1
5
  export * from "./jobs/client/requests/index.mjs";
2
6
  export * as jobs from "./jobs/index.mjs";
3
7
  export * as meta from "./meta/index.mjs";
@@ -1,3 +1,7 @@
1
+ export * from "./datasets/client/requests/index.mjs";
2
+ export * as datasets from "./datasets/index.mjs";
3
+ export * from "./entities/client/requests/index.mjs";
4
+ export * as entities from "./entities/index.mjs";
1
5
  export * from "./jobs/client/requests/index.mjs";
2
6
  export * as jobs from "./jobs/index.mjs";
3
7
  export * as meta from "./meta/index.mjs";