File tree Expand file tree Collapse file tree 3 files changed +54
-1
lines changed
components/airtable_oauth Expand file tree Collapse file tree 3 files changed +54
-1
lines changed Original file line number Diff line number Diff line change
1
+ import airtable from "../../airtable_oauth.app.mjs" ;
2
+
3
+ export default {
4
+ key : "airtable_oauth-list-bases" ,
5
+ name : "List Bases" ,
6
+ description :
7
+ "Get the list of bases that can be accessed. [See the documentation](https://airtable.com/developers/web/api/list-bases)" ,
8
+ type : "action" ,
9
+ version : "0.0.1" ,
10
+ props : {
11
+ airtable,
12
+ } ,
13
+ async run ( { $ } ) {
14
+ const { bases } = await this . airtable . listBases ( {
15
+ $,
16
+ } ) ;
17
+ $ . export (
18
+ "$summary" ,
19
+ `Successfully retrieved ${ bases . length } bases` ,
20
+ ) ;
21
+ return bases ;
22
+ } ,
23
+ } ;
Original file line number Diff line number Diff line change
1
+ import airtable from "../../airtable_oauth.app.mjs" ;
2
+
3
+ export default {
4
+ key : "airtable_oauth-list-tables" ,
5
+ name : "List Tables" ,
6
+ description :
7
+ "Get a list of tables in the selected base. [See the documentation](https://airtable.com/developers/web/api/get-base-schema)" ,
8
+ type : "action" ,
9
+ version : "0.0.1" ,
10
+ props : {
11
+ airtable,
12
+ baseId : {
13
+ propDefinition : [
14
+ airtable ,
15
+ "baseId" ,
16
+ ] ,
17
+ } ,
18
+ } ,
19
+ async run ( { $ } ) {
20
+ const { tables } = await this . airtable . listTables ( {
21
+ $,
22
+ baseId : this . baseId ,
23
+ } ) ;
24
+ $ . export (
25
+ "$summary" ,
26
+ `Successfully retrieved ${ tables . length } tables` ,
27
+ ) ;
28
+ return tables ;
29
+ } ,
30
+ } ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @pipedream/airtable_oauth" ,
3
- "version" : " 0.4.4 " ,
3
+ "version" : " 0.5.0 " ,
4
4
"description" : " Pipedream Airtable (OAuth) Components" ,
5
5
"main" : " airtable_oauth.app.mjs" ,
6
6
"keywords" : [
You can’t perform that action at this time.
0 commit comments