fusio-sdk 5.1.0 → 5.1.1

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.
@@ -39,7 +39,7 @@ export declare class BackendDatabaseTag extends TagAbstract {
39
39
  * @throws {CommonMessageExceptionException}
40
40
  * @throws {ClientException}
41
41
  */
42
- getRows(connectionId: string, tableName: string): Promise<BackendDatabaseRows>;
42
+ getRows(connectionId: string, tableName: string, startIndex?: number, count?: number, filterBy?: string, filterOp?: string, filterValue?: string, sortBy?: string, sortOrder?: string, columns?: string): Promise<BackendDatabaseRows>;
43
43
  /**
44
44
  * @returns {Promise<CommonMessage>}
45
45
  * @throws {CommonMessageExceptionException}
@@ -169,7 +169,7 @@ export class BackendDatabaseTag extends TagAbstract {
169
169
  * @throws {CommonMessageExceptionException}
170
170
  * @throws {ClientException}
171
171
  */
172
- async getRows(connectionId, tableName) {
172
+ async getRows(connectionId, tableName, startIndex, count, filterBy, filterOp, filterValue, sortBy, sortOrder, columns) {
173
173
  const url = this.parser.url('/backend/database/:connection_id/:table_name/rows', {
174
174
  'connection_id': connectionId,
175
175
  'table_name': tableName,
@@ -177,7 +177,16 @@ export class BackendDatabaseTag extends TagAbstract {
177
177
  let params = {
178
178
  url: url,
179
179
  method: 'GET',
180
- params: this.parser.query({}, []),
180
+ params: this.parser.query({
181
+ 'startIndex': startIndex,
182
+ 'count': count,
183
+ 'filterBy': filterBy,
184
+ 'filterOp': filterOp,
185
+ 'filterValue': filterValue,
186
+ 'sortBy': sortBy,
187
+ 'sortOrder': sortOrder,
188
+ 'columns': columns,
189
+ }, []),
181
190
  };
182
191
  try {
183
192
  const response = await this.httpClient.request(params);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fusio-sdk",
3
- "version": "5.1.0",
3
+ "version": "5.1.1",
4
4
  "description": "SDK to talk to the Fusio API",
5
5
  "keywords": [
6
6
  "API",