@narrative.io/data-collaboration-sdk-ts 0.0.42 → 0.0.43
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,3 +1,4 @@
|
|
|
1
|
+
import { type ApiRecords } from '../types';
|
|
1
2
|
import { BaseApi } from '../base-api';
|
|
2
3
|
import { type CompanyInfo } from './types';
|
|
3
4
|
/**
|
|
@@ -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 };
|