@narrative.io/data-collaboration-sdk-ts 2.36.0 → 2.38.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.
- package/build/datasets/index.d.ts +10 -0
- package/build/datasets/index.js +15 -0
- package/build/nql/types.d.ts +3 -0
- package/build/nql/types.js +4 -0
- package/package.json +1 -1
|
@@ -157,4 +157,14 @@ export declare class DatasetApi extends BaseApi {
|
|
|
157
157
|
* @returns {Promise<RecalculationInfo>} A promise that resolves when the operation is complete.
|
|
158
158
|
*/
|
|
159
159
|
recalculateDatasetColumnStatistics(datasetId: number): Promise<RecalculationInfo>;
|
|
160
|
+
/**
|
|
161
|
+
* Refreshes the materlized view for the given dataset id.
|
|
162
|
+
*
|
|
163
|
+
* @param {number} datasetId - The ID of the dataset for which to refresh the materialized view.
|
|
164
|
+
* @returns {Promise<AdvancedStatistics>} A Promise that resolves on success.
|
|
165
|
+
* @throws {Error} If there is an issue with the request or the response.
|
|
166
|
+
* @memberof DatasetApi
|
|
167
|
+
* @public
|
|
168
|
+
*/
|
|
169
|
+
refreshMaterializedView(datasetId: number): Promise<void>;
|
|
160
170
|
}
|
package/build/datasets/index.js
CHANGED
|
@@ -194,4 +194,19 @@ export class DatasetApi extends BaseApi {
|
|
|
194
194
|
async recalculateDatasetColumnStatistics(datasetId) {
|
|
195
195
|
return await this.post(`${resourceName}/${datasetId}/column-stats/recalculate`, {});
|
|
196
196
|
}
|
|
197
|
+
/**
|
|
198
|
+
* Refreshes the materlized view for the given dataset id.
|
|
199
|
+
*
|
|
200
|
+
* @param {number} datasetId - The ID of the dataset for which to refresh the materialized view.
|
|
201
|
+
* @returns {Promise<AdvancedStatistics>} A Promise that resolves on success.
|
|
202
|
+
* @throws {Error} If there is an issue with the request or the response.
|
|
203
|
+
* @memberof DatasetApi
|
|
204
|
+
* @public
|
|
205
|
+
*/
|
|
206
|
+
async refreshMaterializedView(datasetId) {
|
|
207
|
+
return await this.post(`${resourceName}/${datasetId}/refresh-materialized-view`, {
|
|
208
|
+
type: "full",
|
|
209
|
+
execution_cluster: { type: "dedicated" },
|
|
210
|
+
});
|
|
211
|
+
}
|
|
197
212
|
}
|
package/build/nql/types.d.ts
CHANGED
|
@@ -45,18 +45,21 @@ export declare const NqlQueryInputObj: z.ZodObject<{
|
|
|
45
45
|
}, {
|
|
46
46
|
type: "shared" | "dedicated";
|
|
47
47
|
}>>;
|
|
48
|
+
create_as_view: z.ZodOptional<z.ZodBoolean>;
|
|
48
49
|
}, "strip", z.ZodTypeAny, {
|
|
49
50
|
nql: string;
|
|
50
51
|
data_plane_id: string | null;
|
|
51
52
|
execution_cluster?: {
|
|
52
53
|
type: "shared" | "dedicated";
|
|
53
54
|
} | undefined;
|
|
55
|
+
create_as_view?: boolean | undefined;
|
|
54
56
|
}, {
|
|
55
57
|
nql: string;
|
|
56
58
|
data_plane_id: string | null;
|
|
57
59
|
execution_cluster?: {
|
|
58
60
|
type: "shared" | "dedicated";
|
|
59
61
|
} | undefined;
|
|
62
|
+
create_as_view?: boolean | undefined;
|
|
60
63
|
}>;
|
|
61
64
|
/**
|
|
62
65
|
* Type for NqlQueryInput object. This is the object that is passed to the NQL API
|
package/build/nql/types.js
CHANGED
|
@@ -45,6 +45,10 @@ export const NqlQueryInputObj = z.object({
|
|
|
45
45
|
})
|
|
46
46
|
.optional()
|
|
47
47
|
.describe("Execution cluster configuration"),
|
|
48
|
+
create_as_view: z
|
|
49
|
+
.boolean()
|
|
50
|
+
.optional()
|
|
51
|
+
.describe("Whether to create as a view."),
|
|
48
52
|
});
|
|
49
53
|
/**
|
|
50
54
|
* A schema object used to validate and infer the structure of NqlPreSelectExpression.
|