@narrative.io/data-collaboration-sdk-ts 0.2.1 → 0.3.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.
|
@@ -26,6 +26,7 @@ declare class MappingsApi extends BaseApi {
|
|
|
26
26
|
*/
|
|
27
27
|
createPrivateMapping(mapping: CreateMapping, companyId?: number): Promise<Mapping>;
|
|
28
28
|
testMapping(mapping: CreateMapping): Promise<MappingTestResult>;
|
|
29
|
+
previewMapping(mappingId: string): Promise<MappingTestResult>;
|
|
29
30
|
deleteMapping(mappingId: string): Promise<void>;
|
|
30
31
|
/**
|
|
31
32
|
* Retrieves the company ID from the API.
|
package/build/mappings/index.js
CHANGED
|
@@ -52,6 +52,9 @@ class MappingsApi extends BaseApi {
|
|
|
52
52
|
async testMapping(mapping) {
|
|
53
53
|
return await this.post(`${resourceName}/test`, mapping);
|
|
54
54
|
}
|
|
55
|
+
async previewMapping(mappingId) {
|
|
56
|
+
return await this.get(`${resourceName}/${mappingId}/sample`);
|
|
57
|
+
}
|
|
55
58
|
async deleteMapping(mappingId) {
|
|
56
59
|
await this.delete(`${resourceName}/${mappingId}`);
|
|
57
60
|
}
|