Skip to content

Commit 2648237

Browse files
committed
Large update to webhook source, deprecating timer sources
1 parent 7b0d38d commit 2648237

File tree

8 files changed

+32
-605
lines changed

8 files changed

+32
-605
lines changed

components/airtable_oauth/sources/new-modified-or-deleted-records-instant/new-modified-or-deleted-records-instant.mjs

Lines changed: 29 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ import constants from "../common/constants.mjs";
33
import sampleEmit from "./test-event.mjs";
44

55
export default {
6-
name: "New Modified or Deleted Records (Instant)",
7-
description: "Emit new event each time a record is added, updated, or deleted in an Airtable table. [See the documentation](https://airtable.com/developers/web/api/create-a-webhook)",
6+
name: "New Record Created, Updated or Deleted (Instant)",
7+
description: "Emit new event when a record is added, updated, or deleted in a table or selected view. [See the documentation](https://airtable.com/developers/web/api/create-a-webhook)",
88
key: "airtable_oauth-new-modified-or-deleted-records-instant",
9-
version: "0.0.1",
9+
version: "0.0.2",
1010
type: "source",
1111
dedupe: "unique",
1212
props: {
@@ -25,9 +25,26 @@ export default {
2525
dataTypes: {
2626
type: "string[]",
2727
label: "Data Types",
28-
description: "Only generate payloads that contain changes affecting objects of these types",
28+
description: "Select the object types that should emit events when updated.",
2929
options: constants.DATA_TYPES,
3030
},
31+
infoBox1: {
32+
type: "alert",
33+
alertType: "info",
34+
content: "You can select which types of activity to emit events for, using the `Update Types` prop below - otherwise, all record updates will emit events.",
35+
},
36+
changeTypes: {
37+
type: "string[]",
38+
label: "Update Types",
39+
description: "Select the types of record updates that should emit events. If not specified, all updates will emit events.",
40+
options: constants.CHANGE_TYPES,
41+
optional: true,
42+
},
43+
infoBox2: {
44+
type: "alert",
45+
alertType: "info",
46+
content: "You can also select a table or a specific view to get updates from. Further levels of customization are also available in the other optional props below.",
47+
},
3148
tableId: {
3249
propDefinition: [
3350
airtable,
@@ -36,7 +53,7 @@ export default {
3653
baseId: c.baseId,
3754
}),
3855
],
39-
description: "Only generate payloads for changes in the specified TableId",
56+
description: "Only emit events for updates in the specified Table Id",
4057
optional: true,
4158
},
4259
viewId: {
@@ -48,20 +65,13 @@ export default {
4865
tableId: c.tableId,
4966
}),
5067
],
51-
description: "Only generate payloads for changes in the specified ViewId",
52-
optional: true,
53-
},
54-
changeTypes: {
55-
type: "string[]",
56-
label: "Change Types",
57-
description: "Only generate payloads that contain changes of these types",
58-
options: constants.CHANGE_TYPES,
68+
description: "Only emit events for updates in the specified View Id",
5969
optional: true,
6070
},
6171
fromSouces: {
6272
type: "string[]",
6373
label: "From Sources",
64-
description: "Only generate payloads for changes from these sources. If omitted, changes from all sources are reported",
74+
description: "Only emit events for updates from these sources. If omitted, updates from all sources are reported",
6575
options: constants.FROM_SOURCES,
6676
optional: true,
6777
},
@@ -76,7 +86,7 @@ export default {
7686
],
7787
type: "string[]",
7888
label: "Watch Data In Field Ids",
79-
description: "Only generate payloads for changes that modify values in cells in these fields. If omitted, all fields within the table/view/base are watched",
89+
description: "Only emit events for updates that modify values in cells in these fields. If omitted, all fields within the table/view/base are watched",
8090
},
8191
watchSchemasOfFieldIds: {
8292
propDefinition: [
@@ -89,7 +99,7 @@ export default {
8999
],
90100
type: "string[]",
91101
label: "Watch Schemas of Field Ids",
92-
description: "Only generate payloads for changes that modify the schemas of these fields. If omitted, schemas of all fields within the table/view/base are watched",
102+
description: "Only emit events for updates that modify the schemas of these fields. If omitted, schemas of all fields within the table/view/base are watched",
93103
},
94104
includeCellValuesInFieldIds: {
95105
propDefinition: [
@@ -102,18 +112,18 @@ export default {
102112
],
103113
type: "string[]",
104114
label: "Include Cell Values in Field Ids",
105-
description: "A list of fields to include in the payload regardless of whether or not they changed",
115+
description: "Fields to include in the event payload, regardless of whether or not they changed",
106116
},
107117
includePreviousCellValues: {
108118
type: "boolean",
109119
label: "Include Previous Cell Values",
110-
description: "If true, include the previous cell value in the payload",
120+
description: "If true, include the previous cell value in the event payload",
111121
optional: true,
112122
},
113123
includePreviousFieldDefinitions: {
114124
type: "boolean",
115125
label: "Include Previous Field Definitions",
116-
description: "If true, include the previous field definition in the payload",
126+
description: "If true, include the previous field definition in the event payload",
117127
optional: true,
118128
},
119129
},

components/airtable_oauth/sources/new-modified-or-deleted-records/new-modified-or-deleted-records.mjs

Lines changed: 0 additions & 128 deletions
This file was deleted.

components/airtable_oauth/sources/new-or-modified-field/new-or-modified-field.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ import common from "../common/common.mjs";
22

33
export default {
44
name: "New or Modified Field",
5-
description: "Emit new event for each new or modified field in a table",
5+
description: "Emit new event when a field is created or updated in the selected table. [See the documentation](https://airtable.com/developers/web/api/get-base-schema)",
66
key: "airtable_oauth-new-or-modified-field",
7-
version: "0.0.6",
7+
version: "0.0.7",
88
type: "source",
99
props: {
1010
...common.props,
@@ -16,7 +16,7 @@ export default {
1616
baseId,
1717
}),
1818
],
19-
description: "The table ID to watch for changes.",
19+
description: "Select a table to watch for field updates, or provide a table ID.",
2020
},
2121
},
2222
methods: {

components/airtable_oauth/sources/new-or-modified-records-in-view/new-or-modified-records-in-view.mjs

Lines changed: 0 additions & 99 deletions
This file was deleted.

0 commit comments

Comments
 (0)