@narrative.io/data-collaboration-sdk-ts 0.0.42 → 0.0.44

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.
@@ -1,4 +1,5 @@
1
1
  import { BaseApi } from '../base-api';
2
+ import { type ApiRecords } from '../types';
2
3
  import { type CompanyInfo } from './types';
3
4
  /**
4
5
  * A class for accessing the Company Info API
@@ -6,5 +7,10 @@ import { type CompanyInfo } from './types';
6
7
  */
7
8
  declare class CompanyInfoApi extends BaseApi {
8
9
  companyId: () => Promise<number>;
10
+ /**
11
+ * Get a list of all providers in the Data Streams Market
12
+ * @returns {Promise<ApiRecords<CompanyInfo[]>>} - Promise resolving to an array of CompanyInfo records
13
+ */
14
+ getAllProvidersCompanyInfo(): Promise<ApiRecords<CompanyInfo>>;
9
15
  }
10
16
  export { type CompanyInfo, CompanyInfoApi };
@@ -14,5 +14,12 @@ class CompanyInfoApi extends BaseApi {
14
14
  companyId = async () => {
15
15
  return (await this.get(`${resourceName}/whoami`)).id;
16
16
  };
17
+ /**
18
+ * Get a list of all providers in the Data Streams Market
19
+ * @returns {Promise<ApiRecords<CompanyInfo[]>>} - Promise resolving to an array of CompanyInfo records
20
+ */
21
+ async getAllProvidersCompanyInfo() {
22
+ return await this.get(`${resourceName}/data-streams-markets`);
23
+ }
17
24
  }
18
25
  export { CompanyInfoApi };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@narrative.io/data-collaboration-sdk-ts",
3
- "version": "0.0.42",
3
+ "version": "0.0.44",
4
4
  "main": "build/index.js",
5
5
  "repository": "github:narrative-io/data-collaboration-sdk-ts",
6
6
  "source": "src/index.ts",