@frogbotai/piece-airtable 0.5.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/LICENSE +21 -0
- package/dist/index.d.ts +36 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +47 -0
- package/dist/index.js.map +1 -0
- package/package.json +39 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 FrogBot
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { type PieceFactoryConfig } from "frogbot/pieces";
|
|
2
|
+
export declare const airtableActions: readonly ["airtable_create_record", "airtable_find_record", "airtable_update_record", "airtable_delete_record", "airtable_add_comment_to_record", "airtable_get_record_by_id"];
|
|
3
|
+
export declare const airtableScopes: readonly [];
|
|
4
|
+
export declare function createAirtable(config?: PieceFactoryConfig): import("frogbot/pieces").Piece & {
|
|
5
|
+
/** Create Airtable Record: Adds a record into an airtable */
|
|
6
|
+
airtableCreateRecord: import("node_modules/frogbot/dist/types/tool").AnyTool;
|
|
7
|
+
/** Find Airtable Record: Find a record in airtable */
|
|
8
|
+
airtableFindRecord: import("node_modules/frogbot/dist/types/tool").AnyTool;
|
|
9
|
+
/** Update Airtable Record: Update a record in airtable */
|
|
10
|
+
airtableUpdateRecord: import("node_modules/frogbot/dist/types/tool").AnyTool;
|
|
11
|
+
/** Clean Record: Clears fields in a record. Empty values will clear the corresponding fields. */
|
|
12
|
+
airtableCleanRecord: import("node_modules/frogbot/dist/types/tool").AnyTool;
|
|
13
|
+
/** Delete Airtable Record: Deletes a record in airtable */
|
|
14
|
+
airtableDeleteRecord: import("node_modules/frogbot/dist/types/tool").AnyTool;
|
|
15
|
+
/** Upload File to Column: Uploads a file to attachment type column. */
|
|
16
|
+
airtableUploadFileToColumn: import("node_modules/frogbot/dist/types/tool").AnyTool;
|
|
17
|
+
/** Add Comment to Record: Adds a comment to an existing record. */
|
|
18
|
+
airtableAddCommentToRecord: import("node_modules/frogbot/dist/types/tool").AnyTool;
|
|
19
|
+
/** Create Base: Create a new base with a specified table structure. */
|
|
20
|
+
airtableCreateBase: import("node_modules/frogbot/dist/types/tool").AnyTool;
|
|
21
|
+
/** Create Table: Create a new table in an existing base. */
|
|
22
|
+
airtableCreateTable: import("node_modules/frogbot/dist/types/tool").AnyTool;
|
|
23
|
+
/** Find Base: Find a base by its name or a keyword. */
|
|
24
|
+
airtableFindBase: import("node_modules/frogbot/dist/types/tool").AnyTool;
|
|
25
|
+
/** Find Table by ID: Get a table's details and schema using its ID. */
|
|
26
|
+
airtableFindTableById: import("node_modules/frogbot/dist/types/tool").AnyTool;
|
|
27
|
+
/** Get Record by ID: Retrieve a single record from a table by its unique ID. */
|
|
28
|
+
airtableGetRecordById: import("node_modules/frogbot/dist/types/tool").AnyTool;
|
|
29
|
+
/** Find Table: Find a table in a given base by its name. */
|
|
30
|
+
airtableFindTable: import("node_modules/frogbot/dist/types/tool").AnyTool;
|
|
31
|
+
/** Get Base Schema: Retrieve the schema for a specific base, including all its tables and fields. */
|
|
32
|
+
airtableGetBaseSchema: import("node_modules/frogbot/dist/types/tool").AnyTool;
|
|
33
|
+
/** Custom API Call: Make a custom API call to a specific endpoint */
|
|
34
|
+
customApiCall: import("node_modules/frogbot/dist/types/tool").AnyTool;
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAA2B,KAAK,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAElF,eAAO,MAAM,eAAe,gLAAiL,CAAC;AAC9M,eAAO,MAAM,cAAc,aAAc,CAAC;AAE1C,wBAAgB,cAAc,CAAC,MAAM,CAAC,EAAE,kBAAkB;IAUtD,6DAA6D;;IAE7D,sDAAsD;;IAEtD,0DAA0D;;IAE1D,iGAAiG;;IAEjG,2DAA2D;;IAE3D,uEAAuE;;IAEvE,mEAAmE;;IAEnE,uEAAuE;;IAEvE,4DAA4D;;IAE5D,uDAAuD;;IAEvD,uEAAuE;;IAEvE,gFAAgF;;IAEhF,4DAA4D;;IAE5D,qGAAqG;;IAErG,qEAAqE;;EAGxE"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import * as module from '@activepieces/piece-airtable';
|
|
2
|
+
import { createActivepiecesPiece } from "frogbot/pieces";
|
|
3
|
+
export const airtableActions = ['airtable_create_record', 'airtable_find_record', 'airtable_update_record', 'airtable_delete_record', 'airtable_add_comment_to_record', 'airtable_get_record_by_id'];
|
|
4
|
+
export const airtableScopes = [];
|
|
5
|
+
export function createAirtable(config) {
|
|
6
|
+
const piece = createActivepiecesPiece({
|
|
7
|
+
module: module,
|
|
8
|
+
service: "airtable",
|
|
9
|
+
credentialType: "secret_text",
|
|
10
|
+
defaultActions: airtableActions,
|
|
11
|
+
scopes: airtableScopes,
|
|
12
|
+
config,
|
|
13
|
+
});
|
|
14
|
+
return Object.assign(piece, {
|
|
15
|
+
/** Create Airtable Record: Adds a record into an airtable */
|
|
16
|
+
airtableCreateRecord: piece.tool("airtable_create_record"),
|
|
17
|
+
/** Find Airtable Record: Find a record in airtable */
|
|
18
|
+
airtableFindRecord: piece.tool("airtable_find_record"),
|
|
19
|
+
/** Update Airtable Record: Update a record in airtable */
|
|
20
|
+
airtableUpdateRecord: piece.tool("airtable_update_record"),
|
|
21
|
+
/** Clean Record: Clears fields in a record. Empty values will clear the corresponding fields. */
|
|
22
|
+
airtableCleanRecord: piece.tool("airtable_clean_record"),
|
|
23
|
+
/** Delete Airtable Record: Deletes a record in airtable */
|
|
24
|
+
airtableDeleteRecord: piece.tool("airtable_delete_record"),
|
|
25
|
+
/** Upload File to Column: Uploads a file to attachment type column. */
|
|
26
|
+
airtableUploadFileToColumn: piece.tool("airtable_upload_file_to_column"),
|
|
27
|
+
/** Add Comment to Record: Adds a comment to an existing record. */
|
|
28
|
+
airtableAddCommentToRecord: piece.tool("airtable_add_comment_to_record"),
|
|
29
|
+
/** Create Base: Create a new base with a specified table structure. */
|
|
30
|
+
airtableCreateBase: piece.tool("airtable_create_base"),
|
|
31
|
+
/** Create Table: Create a new table in an existing base. */
|
|
32
|
+
airtableCreateTable: piece.tool("airtable_create_table"),
|
|
33
|
+
/** Find Base: Find a base by its name or a keyword. */
|
|
34
|
+
airtableFindBase: piece.tool("airtable_find_base"),
|
|
35
|
+
/** Find Table by ID: Get a table's details and schema using its ID. */
|
|
36
|
+
airtableFindTableById: piece.tool("airtable_find_table_by_id"),
|
|
37
|
+
/** Get Record by ID: Retrieve a single record from a table by its unique ID. */
|
|
38
|
+
airtableGetRecordById: piece.tool("airtable_get_record_by_id"),
|
|
39
|
+
/** Find Table: Find a table in a given base by its name. */
|
|
40
|
+
airtableFindTable: piece.tool("airtable_find_table"),
|
|
41
|
+
/** Get Base Schema: Retrieve the schema for a specific base, including all its tables and fields. */
|
|
42
|
+
airtableGetBaseSchema: piece.tool("airtable_get_base_schema"),
|
|
43
|
+
/** Custom API Call: Make a custom API call to a specific endpoint */
|
|
44
|
+
customApiCall: piece.tool("custom_api_call"),
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,uBAAuB,EAA2B,MAAM,gBAAgB,CAAC;AAElF,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,wBAAwB,EAAE,sBAAsB,EAAE,wBAAwB,EAAE,wBAAwB,EAAE,gCAAgC,EAAE,2BAA2B,CAAU,CAAC;AAC9M,MAAM,CAAC,MAAM,cAAc,GAAG,EAAW,CAAC;AAE1C,MAAM,UAAU,cAAc,CAAC,MAA2B;IACxD,MAAM,KAAK,GAAG,uBAAuB,CAAC;QACpC,MAAM,EAAE,MAAM;QACd,OAAO,EAAE,UAAU;QACnB,cAAc,EAAE,aAAa;QAC7B,cAAc,EAAE,eAAe;QAC/B,MAAM,EAAE,cAAc;QACtB,MAAM;KACP,CAAC,CAAC;IACH,OAAO,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE;QAC1B,6DAA6D;QAC7D,oBAAoB,EAAE,KAAK,CAAC,IAAI,CAAC,wBAAwB,CAAC;QAC1D,sDAAsD;QACtD,kBAAkB,EAAE,KAAK,CAAC,IAAI,CAAC,sBAAsB,CAAC;QACtD,0DAA0D;QAC1D,oBAAoB,EAAE,KAAK,CAAC,IAAI,CAAC,wBAAwB,CAAC;QAC1D,iGAAiG;QACjG,mBAAmB,EAAE,KAAK,CAAC,IAAI,CAAC,uBAAuB,CAAC;QACxD,2DAA2D;QAC3D,oBAAoB,EAAE,KAAK,CAAC,IAAI,CAAC,wBAAwB,CAAC;QAC1D,uEAAuE;QACvE,0BAA0B,EAAE,KAAK,CAAC,IAAI,CAAC,gCAAgC,CAAC;QACxE,mEAAmE;QACnE,0BAA0B,EAAE,KAAK,CAAC,IAAI,CAAC,gCAAgC,CAAC;QACxE,uEAAuE;QACvE,kBAAkB,EAAE,KAAK,CAAC,IAAI,CAAC,sBAAsB,CAAC;QACtD,4DAA4D;QAC5D,mBAAmB,EAAE,KAAK,CAAC,IAAI,CAAC,uBAAuB,CAAC;QACxD,uDAAuD;QACvD,gBAAgB,EAAE,KAAK,CAAC,IAAI,CAAC,oBAAoB,CAAC;QAClD,uEAAuE;QACvE,qBAAqB,EAAE,KAAK,CAAC,IAAI,CAAC,2BAA2B,CAAC;QAC9D,gFAAgF;QAChF,qBAAqB,EAAE,KAAK,CAAC,IAAI,CAAC,2BAA2B,CAAC;QAC9D,4DAA4D;QAC5D,iBAAiB,EAAE,KAAK,CAAC,IAAI,CAAC,qBAAqB,CAAC;QACpD,qGAAqG;QACrG,qBAAqB,EAAE,KAAK,CAAC,IAAI,CAAC,0BAA0B,CAAC;QAC7D,qEAAqE;QACrE,aAAa,EAAE,KAAK,CAAC,IAAI,CAAC,iBAAiB,CAAC;KAC7C,CAAC,CAAC;AACL,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@frogbotai/piece-airtable",
|
|
3
|
+
"version": "0.5.0",
|
|
4
|
+
"description": "Airtable tools for FrogBot.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": "Colby Gilbert",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"main": "./dist/index.js",
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"import": "./dist/index.js",
|
|
13
|
+
"types": "./dist/index.d.ts",
|
|
14
|
+
"default": "./dist/index.js"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"files": [
|
|
18
|
+
"dist"
|
|
19
|
+
],
|
|
20
|
+
"sideEffects": false,
|
|
21
|
+
"dependencies": {
|
|
22
|
+
"@activepieces/piece-airtable": "0.6.10"
|
|
23
|
+
},
|
|
24
|
+
"peerDependencies": {
|
|
25
|
+
"frogbot": "0.5.0"
|
|
26
|
+
},
|
|
27
|
+
"devDependencies": {
|
|
28
|
+
"typescript": "5.6.2",
|
|
29
|
+
"frogbot": "0.5.0"
|
|
30
|
+
},
|
|
31
|
+
"publishConfig": {
|
|
32
|
+
"access": "public"
|
|
33
|
+
},
|
|
34
|
+
"scripts": {
|
|
35
|
+
"build": "tsc -p tsconfig.json",
|
|
36
|
+
"clean": "rm -rf dist",
|
|
37
|
+
"typecheck": "tsc --noEmit"
|
|
38
|
+
}
|
|
39
|
+
}
|