btrz-api-client 7.9.0 → 7.10.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.
@@ -24,9 +24,12 @@ function controlClassesFactory(_ref) {
24
24
  var controlClassId = _ref3.controlClassId,
25
25
  token = _ref3.token,
26
26
  headers = _ref3.headers,
27
- jwtToken = _ref3.jwtToken;
27
+ jwtToken = _ref3.jwtToken,
28
+ _ref3$query = _ref3.query,
29
+ query = _ref3$query === undefined ? {} : _ref3$query;
28
30
 
29
31
  return client.get("/control-classes/" + controlClassId, {
32
+ params: query,
30
33
  headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers })
31
34
  });
32
35
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "btrz-api-client",
3
- "version": "7.9.0",
3
+ "version": "7.10.0",
4
4
  "description": "Api client for Betterez endpoints",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -15,8 +15,9 @@ function controlClassesFactory({client, internalAuthTokenProvider}) {
15
15
  });
16
16
  }
17
17
 
18
- function get({controlClassId, token, headers, jwtToken}) {
18
+ function get({controlClassId, token, headers, jwtToken, query = {}}) {
19
19
  return client.get(`/control-classes/${controlClassId}`, {
20
+ params: query,
20
21
  headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider, headers})
21
22
  });
22
23
  }
package/types/client.d.ts CHANGED
@@ -273,11 +273,12 @@ export function createApiClient(options: {
273
273
  query?: {};
274
274
  headers: any;
275
275
  }) => any;
276
- get: ({ controlClassId, token, headers, jwtToken }: {
276
+ get: ({ controlClassId, token, headers, jwtToken, query }: {
277
277
  controlClassId: any;
278
278
  token: any;
279
279
  headers: any;
280
280
  jwtToken: any;
281
+ query?: {};
281
282
  }) => any;
282
283
  create: ({ jwtToken, token, controlClass, headers }: {
283
284
  jwtToken: any;
@@ -9,11 +9,12 @@ declare function controlClassesFactory({ client, internalAuthTokenProvider }: {
9
9
  query?: {};
10
10
  headers: any;
11
11
  }) => any;
12
- get: ({ controlClassId, token, headers, jwtToken }: {
12
+ get: ({ controlClassId, token, headers, jwtToken, query }: {
13
13
  controlClassId: any;
14
14
  token: any;
15
15
  headers: any;
16
16
  jwtToken: any;
17
+ query?: {};
17
18
  }) => any;
18
19
  create: ({ jwtToken, token, controlClass, headers }: {
19
20
  jwtToken: any;
@@ -227,11 +227,12 @@ declare const _exports: {
227
227
  query?: {};
228
228
  headers: any;
229
229
  }) => any;
230
- get: ({ controlClassId, token, headers, jwtToken }: {
230
+ get: ({ controlClassId, token, headers, jwtToken, query }: {
231
231
  controlClassId: any;
232
232
  token: any;
233
233
  headers: any;
234
234
  jwtToken: any;
235
+ query?: {};
235
236
  }) => any;
236
237
  create: ({ jwtToken, token, controlClass, headers }: {
237
238
  jwtToken: any;