bkper-js 1.40.0 → 1.41.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/lib/index.d.ts +16 -0
- package/lib/model/Query.js +22 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -2279,10 +2279,26 @@ export declare class Query {
|
|
|
2279
2279
|
* @return The title of this saved Query
|
|
2280
2280
|
*/
|
|
2281
2281
|
getTitle(): string | undefined;
|
|
2282
|
+
/**
|
|
2283
|
+
* Sets the title of this saved Query.
|
|
2284
|
+
*
|
|
2285
|
+
* @param title The title of this saved Query
|
|
2286
|
+
*
|
|
2287
|
+
* @returns This Query, for chaining
|
|
2288
|
+
*/
|
|
2289
|
+
setTitle(title: string): Query;
|
|
2282
2290
|
/**
|
|
2283
2291
|
* @return This Query string to be executed
|
|
2284
2292
|
*/
|
|
2285
2293
|
getQuery(): string | undefined;
|
|
2294
|
+
/**
|
|
2295
|
+
* Sets the query string associated with this saved Query.
|
|
2296
|
+
*
|
|
2297
|
+
* @param query The query string to be executed
|
|
2298
|
+
*
|
|
2299
|
+
* @returns This Query, for chaining
|
|
2300
|
+
*/
|
|
2301
|
+
setQuery(query: string): Query;
|
|
2286
2302
|
/**
|
|
2287
2303
|
* Perform create new Query.
|
|
2288
2304
|
*/
|
package/lib/model/Query.js
CHANGED
|
@@ -38,12 +38,34 @@ export class Query {
|
|
|
38
38
|
getTitle() {
|
|
39
39
|
return this.payload.title;
|
|
40
40
|
}
|
|
41
|
+
/**
|
|
42
|
+
* Sets the title of this saved Query.
|
|
43
|
+
*
|
|
44
|
+
* @param title The title of this saved Query
|
|
45
|
+
*
|
|
46
|
+
* @returns This Query, for chaining
|
|
47
|
+
*/
|
|
48
|
+
setTitle(title) {
|
|
49
|
+
this.payload.title = title;
|
|
50
|
+
return this;
|
|
51
|
+
}
|
|
41
52
|
/**
|
|
42
53
|
* @return This Query string to be executed
|
|
43
54
|
*/
|
|
44
55
|
getQuery() {
|
|
45
56
|
return this.payload.query;
|
|
46
57
|
}
|
|
58
|
+
/**
|
|
59
|
+
* Sets the query string associated with this saved Query.
|
|
60
|
+
*
|
|
61
|
+
* @param query The query string to be executed
|
|
62
|
+
*
|
|
63
|
+
* @returns This Query, for chaining
|
|
64
|
+
*/
|
|
65
|
+
setQuery(query) {
|
|
66
|
+
this.payload.query = query;
|
|
67
|
+
return this;
|
|
68
|
+
}
|
|
47
69
|
/**
|
|
48
70
|
* Perform create new Query.
|
|
49
71
|
*/
|