@narrative.io/data-collaboration-sdk-ts 2.14.0 → 2.16.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/mappings/index.d.ts +9 -0
- package/build/mappings/index.js +11 -0
- package/build/nql/types.d.ts +3 -0
- package/build/nql/types.js +4 -0
- package/package.json +9 -9
|
@@ -82,6 +82,15 @@ declare class MappingsApi extends BaseApi {
|
|
|
82
82
|
* @async
|
|
83
83
|
*/
|
|
84
84
|
rejectMapping(mappingId: string): Promise<void>;
|
|
85
|
+
/**
|
|
86
|
+
* Promotes a mapping to global scope.
|
|
87
|
+
*
|
|
88
|
+
* @param {string} mappingId - The ID of the mapping to promote.
|
|
89
|
+
* @returns {Promise<void>} A promise that resolves when the mapping is succesfully promoted.
|
|
90
|
+
* @public
|
|
91
|
+
* @async
|
|
92
|
+
*/
|
|
93
|
+
promoteMapping(mappingId: string): Promise<void>;
|
|
85
94
|
/**
|
|
86
95
|
* Updates a mapping.
|
|
87
96
|
*
|
package/build/mappings/index.js
CHANGED
|
@@ -118,6 +118,17 @@ class MappingsApi extends BaseApi {
|
|
|
118
118
|
async rejectMapping(mappingId) {
|
|
119
119
|
await this.post(`${resourceName}/${mappingId}/reject`);
|
|
120
120
|
}
|
|
121
|
+
/**
|
|
122
|
+
* Promotes a mapping to global scope.
|
|
123
|
+
*
|
|
124
|
+
* @param {string} mappingId - The ID of the mapping to promote.
|
|
125
|
+
* @returns {Promise<void>} A promise that resolves when the mapping is succesfully promoted.
|
|
126
|
+
* @public
|
|
127
|
+
* @async
|
|
128
|
+
*/
|
|
129
|
+
async promoteMapping(mappingId) {
|
|
130
|
+
await this.post(`${resourceName}/${mappingId}/promote`);
|
|
131
|
+
}
|
|
121
132
|
/**
|
|
122
133
|
* Updates a mapping.
|
|
123
134
|
*
|
package/build/nql/types.d.ts
CHANGED
|
@@ -38,12 +38,15 @@ export type NqlBudget = z.infer<typeof NqlBudgetObj>;
|
|
|
38
38
|
export declare const NqlQueryInputObj: z.ZodObject<{
|
|
39
39
|
nql: z.ZodString;
|
|
40
40
|
data_plane_id: z.ZodNullable<z.ZodString>;
|
|
41
|
+
execution_cluster: z.ZodOptional<z.ZodEnum<["shared", "dedicated"]>>;
|
|
41
42
|
}, "strip", z.ZodTypeAny, {
|
|
42
43
|
nql: string;
|
|
43
44
|
data_plane_id: string | null;
|
|
45
|
+
execution_cluster?: "shared" | "dedicated" | undefined;
|
|
44
46
|
}, {
|
|
45
47
|
nql: string;
|
|
46
48
|
data_plane_id: string | null;
|
|
49
|
+
execution_cluster?: "shared" | "dedicated" | undefined;
|
|
47
50
|
}>;
|
|
48
51
|
/**
|
|
49
52
|
* Type for NqlQueryInput object. This is the object that is passed to the NQL API
|
package/build/nql/types.js
CHANGED
|
@@ -39,6 +39,10 @@ export const NqlQueryInputObj = z.object({
|
|
|
39
39
|
})
|
|
40
40
|
.describe("A NQL query"),
|
|
41
41
|
data_plane_id: z.string().nullable().describe("Data plane identifier"),
|
|
42
|
+
execution_cluster: z
|
|
43
|
+
.enum(["shared", "dedicated"])
|
|
44
|
+
.optional()
|
|
45
|
+
.describe("Execution cluster type"),
|
|
42
46
|
});
|
|
43
47
|
/**
|
|
44
48
|
* A schema object used to validate and infer the structure of NqlPreSelectExpression.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@narrative.io/data-collaboration-sdk-ts",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.16.0",
|
|
4
4
|
"main": "build/index.js",
|
|
5
5
|
"repository": "github:narrative-io/data-collaboration-sdk-ts",
|
|
6
6
|
"source": "src/index.ts",
|
|
@@ -20,17 +20,17 @@
|
|
|
20
20
|
"author": "",
|
|
21
21
|
"license": "ISC",
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"@babel/core": "7.
|
|
24
|
-
"@babel/preset-env": "7.
|
|
23
|
+
"@babel/core": "7.25.2",
|
|
24
|
+
"@babel/preset-env": "7.25.4",
|
|
25
25
|
"@babel/preset-typescript": "7.24.7",
|
|
26
|
-
"@biomejs/biome": "1.
|
|
27
|
-
"@commitlint/cli": "19.
|
|
28
|
-
"@commitlint/config-conventional": "19.
|
|
29
|
-
"@types/jest": "29.5.
|
|
26
|
+
"@biomejs/biome": "1.9.1",
|
|
27
|
+
"@commitlint/cli": "19.5.0",
|
|
28
|
+
"@commitlint/config-conventional": "19.5.0",
|
|
29
|
+
"@types/jest": "29.5.13",
|
|
30
30
|
"babel-jest": "29.7.0",
|
|
31
31
|
"jest": "29.7.0",
|
|
32
|
-
"lefthook": "1.7.
|
|
33
|
-
"ts-jest": "29.2.
|
|
32
|
+
"lefthook": "1.7.15",
|
|
33
|
+
"ts-jest": "29.2.5"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"mande": "2.0.9",
|