@narrative.io/data-collaboration-sdk-ts 0.0.52 → 0.0.53
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.
- package/build/nql/index.d.ts +7 -0
- package/build/nql/index.js +9 -0
- package/package.json +1 -1
package/build/nql/index.d.ts
CHANGED
|
@@ -27,5 +27,12 @@ declare class NqlApi extends BaseApi {
|
|
|
27
27
|
* @returns {Promise<NqlCompileResult>} A promise that resolves with the result of the NQL compilation.
|
|
28
28
|
*/
|
|
29
29
|
parseNql(nqlQuery: NqlQueryInput): Promise<Plan>;
|
|
30
|
+
/**
|
|
31
|
+
* Gets an existing NQL query by it's id
|
|
32
|
+
*
|
|
33
|
+
* @param {string} id - The id for the NQL query to return.
|
|
34
|
+
* @returns {Promise<NqlResult>} A promise that resolves with the result of the NQL query.
|
|
35
|
+
*/
|
|
36
|
+
getNqlByJobId(id: string): Promise<NqlResult>;
|
|
30
37
|
}
|
|
31
38
|
export { NqlApi, type NqlResult, type NqlQueryInput, type NqlCompileResult, type Nql };
|
package/build/nql/index.js
CHANGED
|
@@ -42,5 +42,14 @@ class NqlApi extends BaseApi {
|
|
|
42
42
|
const response = await this.post(`${resourceName}/parse`, nqlQuery);
|
|
43
43
|
return response;
|
|
44
44
|
}
|
|
45
|
+
/**
|
|
46
|
+
* Gets an existing NQL query by it's id
|
|
47
|
+
*
|
|
48
|
+
* @param {string} id - The id for the NQL query to return.
|
|
49
|
+
* @returns {Promise<NqlResult>} A promise that resolves with the result of the NQL query.
|
|
50
|
+
*/
|
|
51
|
+
async getNqlByJobId(id) {
|
|
52
|
+
return await this.get(`${resourceName}/${id}`);
|
|
53
|
+
}
|
|
45
54
|
}
|
|
46
55
|
export { NqlApi };
|