@narrative.io/data-collaboration-sdk-ts 0.3.0 → 0.3.1
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,6 +1,6 @@
|
|
|
1
1
|
import type { Config, ApiRecords } from "src/types";
|
|
2
2
|
import { BaseApi } from "../base-api";
|
|
3
|
-
import type { CreateMapping, Mapping, MappingTestResult } from "./types";
|
|
3
|
+
import type { CreateMapping, Mapping, MappingTestResult, MappingTestResults } from "./types";
|
|
4
4
|
import { CompanyInfoApi } from "../company-info";
|
|
5
5
|
/**
|
|
6
6
|
* A class for accessing the Mappings API.
|
|
@@ -25,8 +25,8 @@ declare class MappingsApi extends BaseApi {
|
|
|
25
25
|
* @async
|
|
26
26
|
*/
|
|
27
27
|
createPrivateMapping(mapping: CreateMapping, companyId?: number): Promise<Mapping>;
|
|
28
|
-
testMapping(mapping: CreateMapping): Promise<
|
|
29
|
-
previewMapping(mappingId: string): Promise<
|
|
28
|
+
testMapping(mapping: CreateMapping): Promise<MappingTestResults>;
|
|
29
|
+
previewMapping(mappingId: string): Promise<MappingTestResults>;
|
|
30
30
|
deleteMapping(mappingId: string): Promise<void>;
|
|
31
31
|
/**
|
|
32
32
|
* Retrieves the company ID from the API.
|
|
@@ -39,4 +39,4 @@ declare class MappingsApi extends BaseApi {
|
|
|
39
39
|
acceptMapping(mappingId: string): Promise<void>;
|
|
40
40
|
rejectMapping(mappingId: string): Promise<void>;
|
|
41
41
|
}
|
|
42
|
-
export { type Mapping, MappingsApi, type CreateMapping, type MappingTestResult, };
|
|
42
|
+
export { type Mapping, MappingsApi, type CreateMapping, type MappingTestResult, type MappingTestResults, };
|