@activepieces/piece-metabase 0.2.6 → 0.2.8

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/src/lib/common.js DELETED
@@ -1,20 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.queryMetabaseApi = queryMetabaseApi;
4
- const tslib_1 = require("tslib");
5
- const pieces_common_1 = require("@activepieces/pieces-common");
6
- function queryMetabaseApi(params, auth) {
7
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
8
- const request = {
9
- method: params.method,
10
- url: `${auth.props.baseUrl}/api/${params.endpoint}`,
11
- queryParams: params.queryParams,
12
- headers: Object.assign(Object.assign({}, params.headers), { 'Content-Type': 'application/json', 'X-API-KEY': auth.props.apiKey }),
13
- body: JSON.stringify(params.body),
14
- responseType: params.responseType,
15
- };
16
- const response = yield pieces_common_1.httpClient.sendRequest(request);
17
- return response.body;
18
- });
19
- }
20
- //# sourceMappingURL=common.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"common.js","sourceRoot":"","sources":["../../../src/lib/common.ts"],"names":[],"mappings":";;AAcA,4CAyBC;;AAvCD,+DAMqC;AAQrC,SAAsB,gBAAgB,CACpC,MAOC,EACD,IAA4D;;QAE5D,MAAM,OAAO,GAAgB;YAC3B,MAAM,EAAE,MAAM,CAAC,MAAM;YACrB,GAAG,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,QAAQ,MAAM,CAAC,QAAQ,EAAE;YACnD,WAAW,EAAE,MAAM,CAAC,WAAW;YAC/B,OAAO,kCACF,MAAM,CAAC,OAAO,KACjB,cAAc,EAAE,kBAAkB,EAClC,WAAW,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,GAC/B;YACD,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC;YACjC,YAAY,EAAE,MAAM,CAAC,YAAY;SAClC,CAAC;QACF,MAAM,QAAQ,GAAG,MAAM,0BAAU,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;QACvD,OAAO,QAAQ,CAAC,IAAI,CAAC;IACvB,CAAC;CAAA"}