@bubblelab/shared-schemas 0.1.91 → 0.1.93
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/dist/index.js +31 -0
- package/dist/index.js.map +1 -1
- package/dist/trigger.d.ts +49 -0
- package/dist/trigger.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4788,6 +4788,33 @@ var TRIGGER_EVENT_INTERFACE_MAP = {
|
|
|
4788
4788
|
function getTriggerEventTypeFromInterfaceName(interfaceName) {
|
|
4789
4789
|
return TRIGGER_EVENT_INTERFACE_MAP[interfaceName];
|
|
4790
4790
|
}
|
|
4791
|
+
var AIRTABLE_DELAY_OPTIONS = [0, 30, 60, 120, 300, 600];
|
|
4792
|
+
var AIRTABLE_DELAY_LABELS = {
|
|
4793
|
+
0: "No delay",
|
|
4794
|
+
30: "30 seconds",
|
|
4795
|
+
60: "1 minute",
|
|
4796
|
+
120: "2 minutes",
|
|
4797
|
+
300: "5 minutes",
|
|
4798
|
+
600: "10 minutes"
|
|
4799
|
+
};
|
|
4800
|
+
var AIRTABLE_TRIGGER_CONFIG_KEYS = {
|
|
4801
|
+
BASE_ID: "airtable_base_id",
|
|
4802
|
+
TABLE_ID: "airtable_table_id",
|
|
4803
|
+
WEBHOOK_ID: "airtable_webhook_id",
|
|
4804
|
+
MAC_SECRET: "airtable_mac_secret",
|
|
4805
|
+
WEBHOOK_EXPIRATION: "airtable_webhook_expiration",
|
|
4806
|
+
DELAY_SECONDS: "airtable_trigger_delay_seconds"
|
|
4807
|
+
};
|
|
4808
|
+
function getAirtableTriggerConfig(defaultInputs) {
|
|
4809
|
+
return {
|
|
4810
|
+
airtable_base_id: defaultInputs.airtable_base_id,
|
|
4811
|
+
airtable_table_id: defaultInputs.airtable_table_id,
|
|
4812
|
+
airtable_webhook_id: defaultInputs.airtable_webhook_id,
|
|
4813
|
+
airtable_mac_secret: defaultInputs.airtable_mac_secret,
|
|
4814
|
+
airtable_webhook_expiration: defaultInputs.airtable_webhook_expiration,
|
|
4815
|
+
airtable_trigger_delay_seconds: defaultInputs.airtable_trigger_delay_seconds
|
|
4816
|
+
};
|
|
4817
|
+
}
|
|
4791
4818
|
|
|
4792
4819
|
// src/storage-utils.ts
|
|
4793
4820
|
function prepareForStorage(value, options) {
|
|
@@ -5166,6 +5193,9 @@ function buildParameterObjectLiteral(parameters, options) {
|
|
|
5166
5193
|
return paramsString;
|
|
5167
5194
|
}
|
|
5168
5195
|
export {
|
|
5196
|
+
AIRTABLE_DELAY_LABELS,
|
|
5197
|
+
AIRTABLE_DELAY_OPTIONS,
|
|
5198
|
+
AIRTABLE_TRIGGER_CONFIG_KEYS,
|
|
5169
5199
|
AssistantMessageSchema,
|
|
5170
5200
|
AvailableModels,
|
|
5171
5201
|
BROWSER_SESSION_PROVIDERS,
|
|
@@ -5291,6 +5321,7 @@ export {
|
|
|
5291
5321
|
generateCredentialsSummary,
|
|
5292
5322
|
generateDocumentGenerationTemplateSchema,
|
|
5293
5323
|
getAdminScopes,
|
|
5324
|
+
getAirtableTriggerConfig,
|
|
5294
5325
|
getBrowserSessionProvider,
|
|
5295
5326
|
getCronScheduleInfo,
|
|
5296
5327
|
getDefaultScopes,
|