@activepieces/piece-datafuel 0.0.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.
package/README.md ADDED
@@ -0,0 +1,7 @@
1
+ # pieces-datafuel
2
+
3
+ This library was generated with [Nx](https://nx.dev).
4
+
5
+ ## Building
6
+
7
+ Run `nx build pieces-datafuel` to build the library.
package/package.json ADDED
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "@activepieces/piece-datafuel",
3
+ "version": "0.0.1",
4
+ "type": "commonjs",
5
+ "main": "./src/index.js",
6
+ "types": "./src/index.d.ts",
7
+ "dependencies": {
8
+ "@sinclair/typebox": "0.34.11",
9
+ "axios": "1.8.3",
10
+ "axios-retry": "4.4.1",
11
+ "deepmerge-ts": "7.1.0",
12
+ "mime-types": "2.1.35",
13
+ "nanoid": "3.3.8",
14
+ "semver": "7.6.0",
15
+ "socket.io-client": "4.8.1",
16
+ "tslib": "^2.3.0",
17
+ "zod": "3.25.76",
18
+ "@activepieces/pieces-common": "0.8.1",
19
+ "@activepieces/pieces-framework": "0.20.2",
20
+ "@activepieces/shared": "0.26.0"
21
+ },
22
+ "resolutions": {
23
+ "rollup": "npm:@rollup/wasm-node"
24
+ }
25
+ }
package/src/index.d.ts ADDED
@@ -0,0 +1 @@
1
+ export declare const datafuel: import("@activepieces/pieces-framework").Piece<import("@activepieces/pieces-framework").SecretTextProperty<true>>;
package/src/index.js ADDED
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.datafuel = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const pieces_framework_1 = require("@activepieces/pieces-framework");
6
+ const auth_1 = require("./lib/common/auth");
7
+ const crawl_website_1 = require("./lib/actions/crawl-website");
8
+ const scrape_website_1 = require("./lib/actions/scrape-website");
9
+ const get_scrape_result_1 = require("./lib/actions/get-scrape-result");
10
+ const pieces_common_1 = require("@activepieces/pieces-common");
11
+ const constants_1 = require("./lib/common/constants");
12
+ exports.datafuel = (0, pieces_framework_1.createPiece)({
13
+ displayName: 'DataFuel',
14
+ auth: auth_1.dataFuelAuth,
15
+ minimumSupportedRelease: '0.36.1',
16
+ logoUrl: 'https://cdn.activepieces.com/pieces/datafuel.png',
17
+ authors: ['kishanprmr'],
18
+ actions: [
19
+ crawl_website_1.crawlWebsiteAction,
20
+ scrape_website_1.scrapeWebsiteAction,
21
+ get_scrape_result_1.getScrapeAction,
22
+ (0, pieces_common_1.createCustomApiCallAction)({
23
+ auth: auth_1.dataFuelAuth,
24
+ baseUrl: () => constants_1.BASE_URL,
25
+ authMapping: (auth) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
26
+ return {
27
+ Authorization: `Bearer ${auth}`,
28
+ };
29
+ }),
30
+ }),
31
+ ],
32
+ triggers: [],
33
+ });
34
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/pieces/community/datafuel/src/index.ts"],"names":[],"mappings":";;;;AAAA,qEAA6D;AAC7D,4CAAiD;AACjD,+DAAiE;AACjE,iEAAmE;AACnE,uEAAkE;AAClE,+DAAwE;AACxE,sDAAkD;AAErC,QAAA,QAAQ,GAAG,IAAA,8BAAW,EAAC;IACnC,WAAW,EAAE,UAAU;IACvB,IAAI,EAAE,mBAAY;IAClB,uBAAuB,EAAE,QAAQ;IACjC,OAAO,EAAE,kDAAkD;IAC3D,OAAO,EAAE,CAAC,YAAY,CAAC;IACvB,OAAO,EAAE;QACR,kCAAkB;QAClB,oCAAmB;QACnB,mCAAe;QACf,IAAA,yCAAyB,EAAC;YACzB,IAAI,EAAE,mBAAY;YAClB,OAAO,EAAE,GAAG,EAAE,CAAC,oBAAQ;YACvB,WAAW,EAAE,CAAO,IAAI,EAAE,EAAE;gBAC3B,OAAO;oBACN,aAAa,EAAE,UAAU,IAAI,EAAE;iBAC/B,CAAC;YACH,CAAC,CAAA;SACD,CAAC;KACF;IACD,QAAQ,EAAE,EAAE;CACZ,CAAC,CAAC"}
@@ -0,0 +1,7 @@
1
+ export declare const crawlWebsiteAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
2
+ url: import("@activepieces/pieces-framework").ShortTextProperty<true>;
3
+ prompt: import("@activepieces/pieces-framework").LongTextProperty<false>;
4
+ depth: import("@activepieces/pieces-framework").NumberProperty<true>;
5
+ limit: import("@activepieces/pieces-framework").NumberProperty<true>;
6
+ jsonSchema: import("@activepieces/pieces-framework").JsonProperty<false>;
7
+ }>;
@@ -0,0 +1,83 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.crawlWebsiteAction = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const pieces_framework_1 = require("@activepieces/pieces-framework");
6
+ const auth_1 = require("../common/auth");
7
+ const pieces_common_1 = require("@activepieces/pieces-common");
8
+ const constants_1 = require("../common/constants");
9
+ exports.crawlWebsiteAction = (0, pieces_framework_1.createAction)({
10
+ name: 'crawl-website',
11
+ auth: auth_1.dataFuelAuth,
12
+ displayName: 'Crawl Website',
13
+ description: 'Crawl a website into a markdown format.',
14
+ props: {
15
+ url: pieces_framework_1.Property.ShortText({
16
+ displayName: 'URL',
17
+ required: true,
18
+ }),
19
+ prompt: pieces_framework_1.Property.LongText({
20
+ displayName: 'AI Prompt',
21
+ description: 'Prompt to crawl data',
22
+ required: false,
23
+ }),
24
+ depth: pieces_framework_1.Property.Number({
25
+ displayName: 'Depth',
26
+ description: 'The depth of the crawl 1 depth mean only the first level of links will be scraped',
27
+ required: true,
28
+ }),
29
+ limit: pieces_framework_1.Property.Number({
30
+ displayName: 'Limit',
31
+ description: 'The maximum number of pages to scrape',
32
+ required: true,
33
+ }),
34
+ jsonSchema: pieces_framework_1.Property.Json({
35
+ displayName: 'JSON Schema',
36
+ required: false,
37
+ description: `JSON schema definition for structured data extraction.Format should follow OpenAI's function calling schema format (https://platform.openai.com/docs/guides/structured-outputs)`,
38
+ }),
39
+ },
40
+ run(context) {
41
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
42
+ const { url, prompt, depth, limit, jsonSchema } = context.propsValue;
43
+ const response = yield pieces_common_1.httpClient.sendRequest({
44
+ method: pieces_common_1.HttpMethod.POST,
45
+ url: constants_1.BASE_URL + '/crawl',
46
+ authentication: {
47
+ type: pieces_common_1.AuthenticationType.BEARER_TOKEN,
48
+ token: context.auth,
49
+ },
50
+ body: {
51
+ url,
52
+ ai_prompt: prompt,
53
+ json_schema: jsonSchema,
54
+ depth,
55
+ limit,
56
+ },
57
+ });
58
+ const jobId = response.body.job_id;
59
+ let status = 'pending';
60
+ const timeoutAt = Date.now() + 5 * 60 * 1000;
61
+ while (status !== 'finished' && Date.now() < timeoutAt) {
62
+ yield new Promise((resolve) => setTimeout(resolve, 5000)); // wait 5 seconds
63
+ const pollResponse = yield pieces_common_1.httpClient.sendRequest({
64
+ method: pieces_common_1.HttpMethod.GET,
65
+ url: constants_1.BASE_URL + '/list_scrapes',
66
+ authentication: {
67
+ type: pieces_common_1.AuthenticationType.BEARER_TOKEN,
68
+ token: context.auth,
69
+ },
70
+ queryParams: {
71
+ job_id: jobId,
72
+ markdown: 'true',
73
+ },
74
+ });
75
+ status = pollResponse.body[0].job_status;
76
+ if (status === 'finished')
77
+ return pollResponse.body;
78
+ }
79
+ throw new Error('Crawl Job timed out or failed.');
80
+ });
81
+ },
82
+ });
83
+ //# sourceMappingURL=crawl-website.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"crawl-website.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/datafuel/src/lib/actions/crawl-website.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,yCAA8C;AAC9C,+DAAyF;AACzF,mDAA+C;AAGlC,QAAA,kBAAkB,GAAG,IAAA,+BAAY,EAAC;IAC9C,IAAI,EAAE,eAAe;IACrB,IAAI,EAAE,mBAAY;IAClB,WAAW,EAAE,eAAe;I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AC;YACnC,IAAI,MAAM,GAAG,SAAS,CAAC;YACvB,MAAM,SAAS,GAAG,IAAI,CAAC,GAAG,EAAE,GAAG,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC;YAE7C,OAAO,MAAM,KAAK,UAAU,IAAI,IAAI,CAAC,GAAG,EAAE,GAAG,SAAS,EAAE,CAAC;gBACxD,MAAM,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,iBAAiB;gBAE5E,MAAM,YAAY,GAAG,MAAM,0BAAU,CAAC,WAAW,CAA6B;oBAC7E,MAAM,EAAE,0BAAU,CAAC,GAAG;oBACtB,GAAG,EAAE,oBAAQ,GAAG,eAAe;oBAC/B,cAAc,EAAE;wBACf,IAAI,EAAE,kCAAkB,CAAC,YAAY;wBACrC,KAAK,EAAE,OAAO,CAAC,IAAI;qBACnB;oBACD,WAAW,EAAE;wBACZ,MAAM,EAAE,KAAK;wBACb,QAAQ,EAAE,MAAM;qBAChB;iBACD,CAAC,CAAC;gBAEH,MAAM,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC;gBAEzC,IAAI,MAAM,KAAK,UAAU;oBAAE,OAAO,YAAY,CAAC,IAAI,CAAC;YACrD,CAAC;YACD,MAAM,IAAI,KAAK,CAAC,gCAAgC,CAAC,CAAC;QACnD,CAAC;KAAA;CACD,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ export declare const getScrapeAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
2
+ jobId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
3
+ aiResponse: import("@activepieces/pieces-framework").CheckboxProperty<true>;
4
+ markdownResponse: import("@activepieces/pieces-framework").CheckboxProperty<true>;
5
+ }>;
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getScrapeAction = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const pieces_framework_1 = require("@activepieces/pieces-framework");
6
+ const auth_1 = require("../common/auth");
7
+ const pieces_common_1 = require("@activepieces/pieces-common");
8
+ const constants_1 = require("../common/constants");
9
+ exports.getScrapeAction = (0, pieces_framework_1.createAction)({
10
+ name: 'get-scrape',
11
+ auth: auth_1.dataFuelAuth,
12
+ displayName: 'Get Scrape Result',
13
+ description: 'Retrieves the deatils about scrape.',
14
+ props: {
15
+ jobId: pieces_framework_1.Property.ShortText({
16
+ displayName: 'Job ID',
17
+ required: true,
18
+ }),
19
+ aiResponse: pieces_framework_1.Property.Checkbox({
20
+ displayName: 'AI JSON Result',
21
+ required: true,
22
+ }),
23
+ markdownResponse: pieces_framework_1.Property.Checkbox({
24
+ displayName: 'Markdown Result',
25
+ required: true,
26
+ }),
27
+ },
28
+ run(context) {
29
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
30
+ const { jobId, aiResponse, markdownResponse } = context.propsValue;
31
+ const response = yield pieces_common_1.httpClient.sendRequest({
32
+ method: pieces_common_1.HttpMethod.GET,
33
+ url: constants_1.BASE_URL + '/list_scrapes',
34
+ authentication: {
35
+ type: pieces_common_1.AuthenticationType.BEARER_TOKEN,
36
+ token: context.auth,
37
+ },
38
+ queryParams: {
39
+ job_id: jobId,
40
+ markdown: markdownResponse ? 'true' : 'false',
41
+ ai_response: aiResponse ? 'true' : 'false',
42
+ },
43
+ });
44
+ return response.body;
45
+ });
46
+ },
47
+ });
48
+ //# sourceMappingURL=get-scrape-result.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-scrape-result.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/datafuel/src/lib/actions/get-scrape-result.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,yCAA8C;AAC9C,+DAAyF;AACzF,mDAA+C;AAGlC,QAAA,eAAe,GAAG,IAAA,+BAAY,EAAC;IAC3C,IAAI,EAAE,YAAY;IAClB,IAAI,EAAE,mBAAY;IAClB,WAAW,EAAE,mBAAmB;IAChC,WAAW,EAAE,qCAAqC;IAClD,KAAK,EAAE;QACN,KAAK,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACzB,WAAW,EAAE,QAAQ;YACrB,QAAQ,EAAE,IAAI;SACd,CAAC;QACF,UAAU,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YAC7B,WAAW,EAAE,gBAAgB;YAC7B,QAAQ,EAAE,IAAI;SACd,CAAC;QACF,gBAAgB,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YACnC,WAAW,EAAE,iBAAiB;YAC9B,QAAQ,EAAE,IAAI;SACd,CAAC;KACF;IACK,GAAG,CAAC,OAAO;;YAChB,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YAEnE,MAAM,QAAQ,GAAG,MAAM,0BAAU,CAAC,WAAW,CAA6B;gBACzE,MAAM,EAAE,0BAAU,CAAC,GAAG;gBACtB,GAAG,EAAE,oBAAQ,GAAG,eAAe;gBAE/B,cAAc,EAAE;oBACf,IAAI,EAAE,kCAAkB,CAAC,YAAY;oBACrC,KAAK,EAAE,OAAO,CAAC,IAAI;iBACnB;gBACD,WAAW,EAAE;oBACZ,MAAM,EAAE,KAAK;oBACb,QAAQ,EAAE,gBAAgB,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO;oBAC7C,WAAW,EAAE,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO;iBAC1C;aACD,CAAC,CAAC;YAEH,OAAO,QAAQ,CAAC,IAAI,CAAC;QACtB,CAAC;KAAA;CACD,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ export declare const scrapeWebsiteAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
2
+ url: import("@activepieces/pieces-framework").ShortTextProperty<true>;
3
+ prompt: import("@activepieces/pieces-framework").LongTextProperty<false>;
4
+ jsonSchema: import("@activepieces/pieces-framework").JsonProperty<false>;
5
+ }>;
@@ -0,0 +1,70 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.scrapeWebsiteAction = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const pieces_framework_1 = require("@activepieces/pieces-framework");
6
+ const auth_1 = require("../common/auth");
7
+ const pieces_common_1 = require("@activepieces/pieces-common");
8
+ const constants_1 = require("../common/constants");
9
+ exports.scrapeWebsiteAction = (0, pieces_framework_1.createAction)({
10
+ name: 'scrape-website',
11
+ auth: auth_1.dataFuelAuth,
12
+ displayName: 'Crawl Website',
13
+ description: 'Crawl a website into a markdown format.',
14
+ props: {
15
+ url: pieces_framework_1.Property.ShortText({
16
+ displayName: 'URL',
17
+ required: true,
18
+ }),
19
+ prompt: pieces_framework_1.Property.LongText({
20
+ displayName: 'AI Prompt',
21
+ description: 'Prompt to crawl data',
22
+ required: false,
23
+ }),
24
+ jsonSchema: pieces_framework_1.Property.Json({
25
+ displayName: 'JSON Schema',
26
+ required: false,
27
+ description: `JSON schema definition for structured data extraction.Format should follow OpenAI's function calling schema format (https://platform.openai.com/docs/guides/structured-outputs)`,
28
+ }),
29
+ },
30
+ run(context) {
31
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
32
+ const { url, prompt, jsonSchema } = context.propsValue;
33
+ const response = yield pieces_common_1.httpClient.sendRequest({
34
+ method: pieces_common_1.HttpMethod.POST,
35
+ url: constants_1.BASE_URL + '/scrape',
36
+ authentication: {
37
+ type: pieces_common_1.AuthenticationType.BEARER_TOKEN,
38
+ token: context.auth,
39
+ },
40
+ body: {
41
+ url,
42
+ ai_prompt: prompt,
43
+ json_schema: jsonSchema,
44
+ },
45
+ });
46
+ const jobId = response.body.job_id;
47
+ let status = 'pending';
48
+ const timeoutAt = Date.now() + 5 * 60 * 1000;
49
+ while (status !== 'finished' && Date.now() < timeoutAt) {
50
+ yield new Promise((resolve) => setTimeout(resolve, 5000)); // wait 5 seconds
51
+ const pollResponse = yield pieces_common_1.httpClient.sendRequest({
52
+ method: pieces_common_1.HttpMethod.GET,
53
+ url: constants_1.BASE_URL + '/list_scrapes',
54
+ authentication: {
55
+ type: pieces_common_1.AuthenticationType.BEARER_TOKEN,
56
+ token: context.auth,
57
+ },
58
+ queryParams: {
59
+ job_id: jobId,
60
+ },
61
+ });
62
+ status = pollResponse.body[0].job_status;
63
+ if (status === 'finished')
64
+ return pollResponse.body;
65
+ }
66
+ throw new Error('Crawl Job timed out or failed.');
67
+ });
68
+ },
69
+ });
70
+ //# sourceMappingURL=scrape-website.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scrape-website.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/datafuel/src/lib/actions/scrape-website.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,yCAA8C;AAC9C,+DAAyF;AACzF,mDAA+C;AAGlC,QAAA,mBAAmB,GAAG,IAAA,+BAAY,EAAC;IAC5C,IAAI,EAAE,gBAAgB;IACtB,IAAI,EAAE,mBAAY;IAClB,WAAW,EAAE,eAAe;IAC5B,WAAW,EAAE,yCAAyC;IACtD,KAAK,EAAE;QACH,GAAG,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACpB,WAAW,EAAE,KAAK;YAClB,QAAQ,EAAE,IAAI;SACjB,CAAC;QACF,MAAM,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YACtB,WAAW,EAAE,WAAW;YACxB,WAAW,EAAE,sBAAsB;YACnC,QAAQ,EAAE,KAAK;SAClB,CAAC;QACF,UAAU,EAAE,2BAAQ,CAAC,IAAI,CAAC;YACtB,WAAW,EAAE,aAAa;YAC1B,QAAQ,EAAE,KAAK;YACf,WAAW,EAAE,iLAAiL;SACjM,CAAC;KACL;IACK,GAAG,CAAC,OAAO;;YACb,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC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K,CAAC,gCAAgC,CAAC,CAAC;QACtD,CAAC;KAAA;CACJ,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ export declare const dataFuelAuth: import("@activepieces/pieces-framework").SecretTextProperty<true>;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.dataFuelAuth = void 0;
4
+ const pieces_framework_1 = require("@activepieces/pieces-framework");
5
+ exports.dataFuelAuth = pieces_framework_1.PieceAuth.SecretText({
6
+ displayName: 'API Key',
7
+ description: `You can obtain API key from [Settings](https://app.datafuel.dev/account/api_key).`,
8
+ required: true,
9
+ });
10
+ //# sourceMappingURL=auth.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/datafuel/src/lib/common/auth.ts"],"names":[],"mappings":";;;AAAA,qEAA2D;AAE9C,QAAA,YAAY,GAAG,4BAAS,CAAC,UAAU,CAAC;IAC/C,WAAW,EAAE,SAAS;IACtB,WAAW,EAAE,mFAAmF;IAChG,QAAQ,EAAE,IAAI;CACf,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ export declare const BASE_URL = "https://api.datafuel.dev/";
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BASE_URL = void 0;
4
+ exports.BASE_URL = 'https://api.datafuel.dev/';
5
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/datafuel/src/lib/common/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,QAAQ,GAAG,2BAA2B,CAAA"}
@@ -0,0 +1,7 @@
1
+ export type CrawlWebsiteResponse = {
2
+ job_id: string;
3
+ };
4
+ export type ListScrapesResponse = {
5
+ job_id: string;
6
+ job_status: string;
7
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/datafuel/src/lib/common/types.ts"],"names":[],"mappings":""}