@bubblelab/bubble-core 0.1.235 → 0.1.236
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/bubble-bundle.d.ts +119 -119
- package/dist/bubbles/service-bubble/agi-inc.d.ts +76 -76
- package/dist/bubbles/service-bubble/ai-agent.d.ts +16 -16
- package/dist/bubbles/service-bubble/airtable.d.ts +46 -46
- package/dist/bubbles/service-bubble/apify/apify.d.ts +12 -12
- package/dist/bubbles/service-bubble/ashby/ashby.d.ts +62 -62
- package/dist/bubbles/service-bubble/assembled/assembled.d.ts +26 -26
- package/dist/bubbles/service-bubble/attio/attio.d.ts +28 -28
- package/dist/bubbles/service-bubble/browserbase/browserbase.d.ts +28 -28
- package/dist/bubbles/service-bubble/capability-pipeline.js +1 -1
- package/dist/bubbles/service-bubble/capability-pipeline.js.map +1 -1
- package/dist/bubbles/service-bubble/confluence/confluence.d.ts +26 -26
- package/dist/bubbles/service-bubble/crustdata/crustdata.d.ts +86 -86
- package/dist/bubbles/service-bubble/eleven-labs.d.ts +28 -28
- package/dist/bubbles/service-bubble/firecrawl.d.ts +294 -294
- package/dist/bubbles/service-bubble/followupboss.d.ts +128 -128
- package/dist/bubbles/service-bubble/fullenrich/fullenrich.d.ts +28 -28
- package/dist/bubbles/service-bubble/github.d.ts +168 -168
- package/dist/bubbles/service-bubble/gmail.d.ts +328 -328
- package/dist/bubbles/service-bubble/gmail.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/gmail.js +4 -5
- package/dist/bubbles/service-bubble/gmail.js.map +1 -1
- package/dist/bubbles/service-bubble/google-calendar.d.ts +30 -30
- package/dist/bubbles/service-bubble/google-drive.d.ts +56 -56
- package/dist/bubbles/service-bubble/google-sheets/google-sheets.d.ts +22 -22
- package/dist/bubbles/service-bubble/hello-world.d.ts +4 -4
- package/dist/bubbles/service-bubble/http.d.ts +34 -34
- package/dist/bubbles/service-bubble/http.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/http.js.map +1 -1
- package/dist/bubbles/service-bubble/hubspot/hubspot.d.ts +127 -38
- package/dist/bubbles/service-bubble/hubspot/hubspot.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/hubspot/hubspot.js +38 -1
- package/dist/bubbles/service-bubble/hubspot/hubspot.js.map +1 -1
- package/dist/bubbles/service-bubble/hubspot/hubspot.schema.d.ts +87 -0
- package/dist/bubbles/service-bubble/hubspot/hubspot.schema.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/hubspot/hubspot.schema.js +53 -2
- package/dist/bubbles/service-bubble/hubspot/hubspot.schema.js.map +1 -1
- package/dist/bubbles/service-bubble/insforge-db.d.ts +10 -10
- package/dist/bubbles/service-bubble/jira/jira.d.ts +62 -62
- package/dist/bubbles/service-bubble/linear/linear.d.ts +22 -22
- package/dist/bubbles/service-bubble/notion/notion.d.ts +669 -669
- package/dist/bubbles/service-bubble/postgresql.d.ts +10 -10
- package/dist/bubbles/service-bubble/posthog/posthog.d.ts +12 -12
- package/dist/bubbles/service-bubble/ramp/ramp.d.ts +28 -28
- package/dist/bubbles/service-bubble/resend.d.ts +16 -16
- package/dist/bubbles/service-bubble/s3/s3.d.ts +12 -12
- package/dist/bubbles/service-bubble/sendsafely/sendsafely.d.ts +10 -10
- package/dist/bubbles/service-bubble/slab/slab.d.ts +26 -26
- package/dist/bubbles/service-bubble/slack/slack.d.ts +326 -326
- package/dist/bubbles/service-bubble/storage.d.ts +24 -24
- package/dist/bubbles/service-bubble/stripe/stripe.d.ts +50 -50
- package/dist/bubbles/service-bubble/telegram.d.ts +56 -56
- package/dist/bubbles/service-bubble/xero/xero.d.ts +16 -16
- package/dist/bubbles/service-bubble/zendesk/zendesk.d.ts +36 -36
- package/dist/bubbles/tool-bubble/amazon-shopping-tool/amazon-shopping-tool.d.ts +20 -20
- package/dist/bubbles/tool-bubble/browser-tools/linkedin-accept-invitations/tool.d.ts +2 -2
- package/dist/bubbles/tool-bubble/browser-tools/linkedin-connection/tool.d.ts +2 -2
- package/dist/bubbles/tool-bubble/browser-tools/linkedin-received-invitations/tool.d.ts +2 -2
- package/dist/bubbles/tool-bubble/browser-tools/linkedin-sent-invitations/tool.d.ts +2 -2
- package/dist/bubbles/tool-bubble/bubbleflow-validation-tool.d.ts +8 -8
- package/dist/bubbles/tool-bubble/chart-js-tool.d.ts +4 -4
- package/dist/bubbles/tool-bubble/code-edit-tool.d.ts +4 -4
- package/dist/bubbles/tool-bubble/company-enrichment-tool.d.ts +14 -14
- package/dist/bubbles/tool-bubble/get-bubble-details-tool.d.ts +4 -4
- package/dist/bubbles/tool-bubble/get-trigger-detail-tool.d.ts +4 -4
- package/dist/bubbles/tool-bubble/google-maps-tool.d.ts +12 -12
- package/dist/bubbles/tool-bubble/instagram-tool.d.ts +14 -14
- package/dist/bubbles/tool-bubble/linkedin-tool.d.ts +112 -112
- package/dist/bubbles/tool-bubble/list-airtable-bases-tool.d.ts +4 -4
- package/dist/bubbles/tool-bubble/list-airtable-tables-tool.d.ts +4 -4
- package/dist/bubbles/tool-bubble/list-bubbles-tool.d.ts +4 -4
- package/dist/bubbles/tool-bubble/list-capabilities-tool.d.ts +4 -4
- package/dist/bubbles/tool-bubble/people-search-tool.d.ts +38 -38
- package/dist/bubbles/tool-bubble/reddit-scrape-tool.d.ts +24 -24
- package/dist/bubbles/tool-bubble/research-agent-tool.d.ts +8 -8
- package/dist/bubbles/tool-bubble/sql-query-tool.d.ts +4 -4
- package/dist/bubbles/tool-bubble/tiktok-tool.d.ts +12 -12
- package/dist/bubbles/tool-bubble/tool-template.d.ts +4 -4
- package/dist/bubbles/tool-bubble/twitter-tool.d.ts +48 -48
- package/dist/bubbles/tool-bubble/web-crawl-tool.d.ts +18 -18
- package/dist/bubbles/tool-bubble/web-extract-tool.d.ts +16 -16
- package/dist/bubbles/tool-bubble/web-scrape-tool.d.ts +14 -14
- package/dist/bubbles/tool-bubble/web-search-tool.d.ts +12 -12
- package/dist/bubbles/tool-bubble/yc-scraper-tool.d.ts +8 -8
- package/dist/bubbles/tool-bubble/youtube-tool.d.ts +24 -24
- package/dist/bubbles/workflow-bubble/database-analyzer.workflow.d.ts +4 -4
- package/dist/bubbles/workflow-bubble/generate-document.workflow.d.ts +16 -16
- package/dist/bubbles/workflow-bubble/parse-document.workflow.d.ts +4 -4
- package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.d.ts +24 -24
- package/dist/bubbles/workflow-bubble/pdf-ocr.workflow.d.ts +24 -24
- package/dist/bubbles/workflow-bubble/slack-data-assistant.workflow.d.ts +6 -6
- package/dist/bubbles/workflow-bubble/slack-formatter-agent.d.ts +14 -14
- package/dist/bubbles/workflow-bubble/slack-notifier.workflow.d.ts +4 -4
- package/dist/bubbles.json +146 -4
- package/package.json +2 -2
|
@@ -148,8 +148,8 @@ declare const SlackNotifierResultSchema: z.ZodObject<{
|
|
|
148
148
|
originalLength?: number | undefined;
|
|
149
149
|
}>>;
|
|
150
150
|
}, "strip", z.ZodTypeAny, {
|
|
151
|
-
success: boolean;
|
|
152
151
|
error: string;
|
|
152
|
+
success: boolean;
|
|
153
153
|
messageInfo?: {
|
|
154
154
|
channelName?: string | undefined;
|
|
155
155
|
messageTimestamp?: string | undefined;
|
|
@@ -163,8 +163,8 @@ declare const SlackNotifierResultSchema: z.ZodObject<{
|
|
|
163
163
|
originalLength?: number | undefined;
|
|
164
164
|
} | undefined;
|
|
165
165
|
}, {
|
|
166
|
-
success: boolean;
|
|
167
166
|
error: string;
|
|
167
|
+
success: boolean;
|
|
168
168
|
messageInfo?: {
|
|
169
169
|
channelName?: string | undefined;
|
|
170
170
|
messageTimestamp?: string | undefined;
|
|
@@ -344,8 +344,8 @@ export declare class SlackNotifierWorkflowBubble extends WorkflowBubble<SlackNot
|
|
|
344
344
|
originalLength?: number | undefined;
|
|
345
345
|
}>>;
|
|
346
346
|
}, "strip", z.ZodTypeAny, {
|
|
347
|
-
success: boolean;
|
|
348
347
|
error: string;
|
|
348
|
+
success: boolean;
|
|
349
349
|
messageInfo?: {
|
|
350
350
|
channelName?: string | undefined;
|
|
351
351
|
messageTimestamp?: string | undefined;
|
|
@@ -359,8 +359,8 @@ export declare class SlackNotifierWorkflowBubble extends WorkflowBubble<SlackNot
|
|
|
359
359
|
originalLength?: number | undefined;
|
|
360
360
|
} | undefined;
|
|
361
361
|
}, {
|
|
362
|
-
success: boolean;
|
|
363
362
|
error: string;
|
|
363
|
+
success: boolean;
|
|
364
364
|
messageInfo?: {
|
|
365
365
|
channelName?: string | undefined;
|
|
366
366
|
messageTimestamp?: string | undefined;
|
package/dist/bubbles.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": "2.0.0",
|
|
3
|
-
"generatedAt": "2026-03-
|
|
3
|
+
"generatedAt": "2026-03-18T02:17:37.820Z",
|
|
4
4
|
"totalCount": 75,
|
|
5
5
|
"bubbles": [
|
|
6
6
|
{
|
|
@@ -68733,8 +68733,8 @@
|
|
|
68733
68733
|
"type": "number",
|
|
68734
68734
|
"minimum": 1,
|
|
68735
68735
|
"maximum": 200,
|
|
68736
|
-
"default":
|
|
68737
|
-
"description": "Maximum number of results to return (1-200, default
|
|
68736
|
+
"default": 100,
|
|
68737
|
+
"description": "Maximum number of results to return (1-200, default 100)"
|
|
68738
68738
|
},
|
|
68739
68739
|
"after": {
|
|
68740
68740
|
"type": "string",
|
|
@@ -69531,6 +69531,73 @@
|
|
|
69531
69531
|
],
|
|
69532
69532
|
"additionalProperties": false
|
|
69533
69533
|
},
|
|
69534
|
+
{
|
|
69535
|
+
"type": "object",
|
|
69536
|
+
"properties": {
|
|
69537
|
+
"operation": {
|
|
69538
|
+
"type": "string",
|
|
69539
|
+
"enum": [
|
|
69540
|
+
"list_owners"
|
|
69541
|
+
],
|
|
69542
|
+
"description": "List HubSpot account owners (users who can be assigned to records)"
|
|
69543
|
+
},
|
|
69544
|
+
"email": {
|
|
69545
|
+
"type": "string",
|
|
69546
|
+
"description": "Filter owners by email address"
|
|
69547
|
+
},
|
|
69548
|
+
"limit": {
|
|
69549
|
+
"type": "number",
|
|
69550
|
+
"minimum": 1,
|
|
69551
|
+
"maximum": 500,
|
|
69552
|
+
"default": 100,
|
|
69553
|
+
"description": "Maximum number of owners to return (1-500, default 100)"
|
|
69554
|
+
},
|
|
69555
|
+
"after": {
|
|
69556
|
+
"type": "string",
|
|
69557
|
+
"description": "Pagination cursor for next page of results"
|
|
69558
|
+
},
|
|
69559
|
+
"credentials": {
|
|
69560
|
+
"type": "object",
|
|
69561
|
+
"additionalProperties": {
|
|
69562
|
+
"type": "string"
|
|
69563
|
+
},
|
|
69564
|
+
"description": "Object mapping credential types to values (injected at runtime)"
|
|
69565
|
+
}
|
|
69566
|
+
},
|
|
69567
|
+
"required": [
|
|
69568
|
+
"operation"
|
|
69569
|
+
],
|
|
69570
|
+
"additionalProperties": false
|
|
69571
|
+
},
|
|
69572
|
+
{
|
|
69573
|
+
"type": "object",
|
|
69574
|
+
"properties": {
|
|
69575
|
+
"operation": {
|
|
69576
|
+
"type": "string",
|
|
69577
|
+
"enum": [
|
|
69578
|
+
"get_owner"
|
|
69579
|
+
],
|
|
69580
|
+
"description": "Retrieve a single HubSpot owner by ID"
|
|
69581
|
+
},
|
|
69582
|
+
"owner_id": {
|
|
69583
|
+
"type": "string",
|
|
69584
|
+
"minLength": 1,
|
|
69585
|
+
"description": "HubSpot owner ID (e.g., from hubspot_owner_id property on records)"
|
|
69586
|
+
},
|
|
69587
|
+
"credentials": {
|
|
69588
|
+
"type": "object",
|
|
69589
|
+
"additionalProperties": {
|
|
69590
|
+
"type": "string"
|
|
69591
|
+
},
|
|
69592
|
+
"description": "Object mapping credential types to values (injected at runtime)"
|
|
69593
|
+
}
|
|
69594
|
+
},
|
|
69595
|
+
"required": [
|
|
69596
|
+
"operation",
|
|
69597
|
+
"owner_id"
|
|
69598
|
+
],
|
|
69599
|
+
"additionalProperties": false
|
|
69600
|
+
},
|
|
69534
69601
|
{
|
|
69535
69602
|
"type": "object",
|
|
69536
69603
|
"properties": {
|
|
@@ -70246,6 +70313,81 @@
|
|
|
70246
70313
|
],
|
|
70247
70314
|
"additionalProperties": false
|
|
70248
70315
|
},
|
|
70316
|
+
{
|
|
70317
|
+
"type": "object",
|
|
70318
|
+
"properties": {
|
|
70319
|
+
"operation": {
|
|
70320
|
+
"type": "string",
|
|
70321
|
+
"enum": [
|
|
70322
|
+
"list_owners"
|
|
70323
|
+
]
|
|
70324
|
+
},
|
|
70325
|
+
"success": {
|
|
70326
|
+
"type": "boolean"
|
|
70327
|
+
},
|
|
70328
|
+
"owners": {
|
|
70329
|
+
"type": "array",
|
|
70330
|
+
"items": {
|
|
70331
|
+
"type": "object",
|
|
70332
|
+
"additionalProperties": {}
|
|
70333
|
+
}
|
|
70334
|
+
},
|
|
70335
|
+
"paging": {
|
|
70336
|
+
"type": "object",
|
|
70337
|
+
"properties": {
|
|
70338
|
+
"next": {
|
|
70339
|
+
"type": "object",
|
|
70340
|
+
"properties": {
|
|
70341
|
+
"after": {
|
|
70342
|
+
"type": "string"
|
|
70343
|
+
}
|
|
70344
|
+
},
|
|
70345
|
+
"required": [
|
|
70346
|
+
"after"
|
|
70347
|
+
],
|
|
70348
|
+
"additionalProperties": false
|
|
70349
|
+
}
|
|
70350
|
+
},
|
|
70351
|
+
"additionalProperties": false
|
|
70352
|
+
},
|
|
70353
|
+
"error": {
|
|
70354
|
+
"type": "string"
|
|
70355
|
+
}
|
|
70356
|
+
},
|
|
70357
|
+
"required": [
|
|
70358
|
+
"operation",
|
|
70359
|
+
"success",
|
|
70360
|
+
"error"
|
|
70361
|
+
],
|
|
70362
|
+
"additionalProperties": false
|
|
70363
|
+
},
|
|
70364
|
+
{
|
|
70365
|
+
"type": "object",
|
|
70366
|
+
"properties": {
|
|
70367
|
+
"operation": {
|
|
70368
|
+
"type": "string",
|
|
70369
|
+
"enum": [
|
|
70370
|
+
"get_owner"
|
|
70371
|
+
]
|
|
70372
|
+
},
|
|
70373
|
+
"success": {
|
|
70374
|
+
"type": "boolean"
|
|
70375
|
+
},
|
|
70376
|
+
"owner": {
|
|
70377
|
+
"type": "object",
|
|
70378
|
+
"additionalProperties": {}
|
|
70379
|
+
},
|
|
70380
|
+
"error": {
|
|
70381
|
+
"type": "string"
|
|
70382
|
+
}
|
|
70383
|
+
},
|
|
70384
|
+
"required": [
|
|
70385
|
+
"operation",
|
|
70386
|
+
"success",
|
|
70387
|
+
"error"
|
|
70388
|
+
],
|
|
70389
|
+
"additionalProperties": false
|
|
70390
|
+
},
|
|
70249
70391
|
{
|
|
70250
70392
|
"type": "object",
|
|
70251
70393
|
"properties": {
|
|
@@ -70275,7 +70417,7 @@
|
|
|
70275
70417
|
}
|
|
70276
70418
|
]
|
|
70277
70419
|
},
|
|
70278
|
-
"usageExample": "// Create Record example\nconst hubspot_create_record = new HubSpotBubble({\n operation: \"create_record\", // Create a new CRM record\n object_type: \"contacts\" // options: \"contacts\", \"companies\", \"deals\", \"tickets\", // HubSpot CRM object type to operate on (contacts, companies, deals, or tickets)\n properties: { \"example_key\": \"example string\" }, // Object properties as key-value pairs. Common contact properties: email, firstname, lastname, phone, company. Common company properties: name, domain, industry. Common deal properties: dealname, pipeline, dealstage, amount. Common ticket properties: subject, content, hs_pipeline, hs_pipeline_stage. NOTE: Tickets REQUIRE hs_pipeline_stage (and usually hs_pipeline) to be set on creation.\n});\n\nconst result = await hubspot_create_record.action();\n// outputSchema for result.data when operation === 'create_record':\n// {\n// operation: \"create_record\",\n// success: boolean,\n// record: { id: string // Record ID, properties: Record<string, unknown> // Record properties, createdAt: string | undefined // Creation timestamp, updatedAt: string | undefined // Last update timestamp, archived: boolean | undefined // Whether the record is archived } | undefined // A HubSpot CRM record,\n// error: string\n// }\n\n\n// Get Record example\nconst hubspot_get_record = new HubSpotBubble({\n operation: \"get_record\", // Retrieve a single CRM record by ID\n object_type: \"contacts\" // options: \"contacts\", \"companies\", \"deals\", \"tickets\", // HubSpot CRM object type to operate on (contacts, companies, deals, or tickets)\n record_id: \"example string\", // HubSpot record ID\n properties: [\"example string\"], // List of property names to include in the response. If not specified, default properties are returned.\n});\n\nconst result = await hubspot_get_record.action();\n// outputSchema for result.data when operation === 'get_record':\n// {\n// operation: \"get_record\",\n// success: boolean,\n// record: { id: string // Record ID, properties: Record<string, unknown> // Record properties, createdAt: string | undefined // Creation timestamp, updatedAt: string | undefined // Last update timestamp, archived: boolean | undefined // Whether the record is archived } | undefined // A HubSpot CRM record,\n// error: string\n// }\n\n\n// Update Record example\nconst hubspot_update_record = new HubSpotBubble({\n operation: \"update_record\", // Update an existing CRM record\n object_type: \"contacts\" // options: \"contacts\", \"companies\", \"deals\", \"tickets\", // HubSpot CRM object type to operate on (contacts, companies, deals, or tickets)\n record_id: \"example string\", // HubSpot record ID\n properties: { \"example_key\": \"example string\" }, // Object properties as key-value pairs. Common contact properties: email, firstname, lastname, phone, company. Common company properties: name, domain, industry. Common deal properties: dealname, pipeline, dealstage, amount. Common ticket properties: subject, content, hs_pipeline, hs_pipeline_stage. NOTE: Tickets REQUIRE hs_pipeline_stage (and usually hs_pipeline) to be set on creation.\n});\n\nconst result = await hubspot_update_record.action();\n// outputSchema for result.data when operation === 'update_record':\n// {\n// operation: \"update_record\",\n// success: boolean,\n// record: { id: string // Record ID, properties: Record<string, unknown> // Record properties, createdAt: string | undefined // Creation timestamp, updatedAt: string | undefined // Last update timestamp, archived: boolean | undefined // Whether the record is archived } | undefined // A HubSpot CRM record,\n// error: string\n// }\n\n\n// Delete Record example\nconst hubspot_delete_record = new HubSpotBubble({\n operation: \"delete_record\", // Archive (soft-delete) a CRM record\n object_type: \"contacts\" // options: \"contacts\", \"companies\", \"deals\", \"tickets\", // HubSpot CRM object type to operate on (contacts, companies, deals, or tickets)\n record_id: \"example string\", // HubSpot record ID\n});\n\nconst result = await hubspot_delete_record.action();\n// outputSchema for result.data when operation === 'delete_record':\n// {\n// operation: \"delete_record\",\n// success: boolean,\n// error: string\n// }\n\n\n// Search Records example\nconst hubspot_search_records = new HubSpotBubble({\n operation: \"search_records\", // Search CRM records with filters\n object_type: \"contacts\" // options: \"contacts\", \"companies\", \"deals\", \"tickets\", // HubSpot CRM object type to operate on (contacts, companies, deals, or tickets)\n filter_groups: [{ filters: [{ propertyName: \"example string\" // Property name to filter on (e.g., \"email\", \"firstname\"), operator: \"EQ\" // options: \"EQ\", \"NEQ\", \"LT\", \"LTE\", \"GT\", \"GTE\", \"BETWEEN\", \"IN\", \"NOT_IN\", \"HAS_PROPERTY\", \"NOT_HAS_PROPERTY\", \"CONTAINS_TOKEN\", \"NOT_CONTAINS_TOKEN\" // Filter operator, value: \"example string\" // Value to compare against, highValue: \"example string\" // Upper bound value for BETWEEN operator, values: [\"example string\"] // Array of values for IN/NOT_IN operators }] // Filters within this group (combined with AND) }], // Filter groups for the search query. Groups are combined with OR, filters within a group with AND.\n properties: [\"example string\"], // List of property names to include in the response. If not specified, default properties are returned.\n limit: 10 // default, // Maximum number of results to return (1-200, default 10)\n after: \"example string\", // Pagination cursor for next page of results\n});\n\nconst result = await hubspot_search_records.action();\n// outputSchema for result.data when operation === 'search_records':\n// {\n// operation: \"search_records\",\n// success: boolean,\n// results: { id: string // Record ID, properties: Record<string, unknown> // Record properties, createdAt: string | undefined // Creation timestamp, updatedAt: string | undefined // Last update timestamp, archived: boolean | undefined // Whether the record is archived }[] | undefined,\n// total: number | undefined,\n// paging: { next: { after: string } | undefined } | undefined,\n// error: string\n// }\n\n\n// Batch Create Records example\nconst hubspot_batch_create_records = new HubSpotBubble({\n operation: \"batch_create_records\", // Create multiple CRM records in a single API call\n object_type: \"contacts\" // options: \"contacts\", \"companies\", \"deals\", \"tickets\", // HubSpot CRM object type to operate on (contacts, companies, deals, or tickets)\n records: [{ properties: { \"example_key\": \"example string\" } // Object properties as key-value pairs. Common contact properties: email, firstname, lastname, phone, company. Common company properties: name, domain, industry. Common deal properties: dealname, pipeline, dealstage, amount. Common ticket properties: subject, content, hs_pipeline, hs_pipeline_stage. NOTE: Tickets REQUIRE hs_pipeline_stage (and usually hs_pipeline) to be set on creation. }], // Array of records to create (max 100)\n});\n\nconst result = await hubspot_batch_create_records.action();\n// outputSchema for result.data when operation === 'batch_create_records':\n// {\n// operation: \"batch_create_records\",\n// success: boolean,\n// results: { id: string // Record ID, properties: Record<string, unknown> // Record properties, createdAt: string | undefined // Creation timestamp, updatedAt: string | undefined // Last update timestamp, archived: boolean | undefined // Whether the record is archived }[] | undefined,\n// error: string\n// }\n\n\n// Batch Update Records example\nconst hubspot_batch_update_records = new HubSpotBubble({\n operation: \"batch_update_records\", // Update multiple CRM records in a single API call\n object_type: \"contacts\" // options: \"contacts\", \"companies\", \"deals\", \"tickets\", // HubSpot CRM object type to operate on (contacts, companies, deals, or tickets)\n records: [{ id: \"example string\" // Record ID to update, properties: { \"example_key\": \"example string\" } // Object properties as key-value pairs. Common contact properties: email, firstname, lastname, phone, company. Common company properties: name, domain, industry. Common deal properties: dealname, pipeline, dealstage, amount. Common ticket properties: subject, content, hs_pipeline, hs_pipeline_stage. NOTE: Tickets REQUIRE hs_pipeline_stage (and usually hs_pipeline) to be set on creation. }], // Array of records to update (max 100)\n});\n\nconst result = await hubspot_batch_update_records.action();\n// outputSchema for result.data when operation === 'batch_update_records':\n// {\n// operation: \"batch_update_records\",\n// success: boolean,\n// results: { id: string // Record ID, properties: Record<string, unknown> // Record properties, createdAt: string | undefined // Creation timestamp, updatedAt: string | undefined // Last update timestamp, archived: boolean | undefined // Whether the record is archived }[] | undefined,\n// error: string\n// }\n\n\n// Batch Delete Records example\nconst hubspot_batch_delete_records = new HubSpotBubble({\n operation: \"batch_delete_records\", // Archive multiple CRM records in a single API call\n object_type: \"contacts\" // options: \"contacts\", \"companies\", \"deals\", \"tickets\", // HubSpot CRM object type to operate on (contacts, companies, deals, or tickets)\n record_ids: [\"example string\"], // Array of record IDs to archive (max 100)\n});\n\nconst result = await hubspot_batch_delete_records.action();\n// outputSchema for result.data when operation === 'batch_delete_records':\n// {\n// operation: \"batch_delete_records\",\n// success: boolean,\n// error: string\n// }\n\n\n// List Properties example\nconst hubspot_list_properties = new HubSpotBubble({\n operation: \"list_properties\", // List all property definitions for a CRM object type\n object_type: \"contacts\" // options: \"contacts\", \"companies\", \"deals\", \"tickets\", // HubSpot CRM object type to operate on (contacts, companies, deals, or tickets)\n});\n\nconst result = await hubspot_list_properties.action();\n// outputSchema for result.data when operation === 'list_properties':\n// {\n// operation: \"list_properties\",\n// success: boolean,\n// properties: Record<string, unknown>[] | undefined,\n// error: string\n// }\n\n\n// Get Property example\nconst hubspot_get_property = new HubSpotBubble({\n operation: \"get_property\", // Retrieve a single property definition by name\n object_type: \"contacts\" // options: \"contacts\", \"companies\", \"deals\", \"tickets\", // HubSpot CRM object type to operate on (contacts, companies, deals, or tickets)\n property_name: \"example string\", // Internal property name (snake_case, e.g. \"favorite_food\")\n});\n\nconst result = await hubspot_get_property.action();\n// outputSchema for result.data when operation === 'get_property':\n// {\n// operation: \"get_property\",\n// success: boolean,\n// property: Record<string, unknown> | undefined,\n// error: string\n// }\n\n\n// Create Property example\nconst hubspot_create_property = new HubSpotBubble({\n operation: \"create_property\", // Create a new custom property definition\n object_type: \"contacts\" // options: \"contacts\", \"companies\", \"deals\", \"tickets\", // HubSpot CRM object type to operate on (contacts, companies, deals, or tickets)\n name: \"example string\", // Internal property name (snake_case, e.g. \"favorite_food\")\n label: \"example string\", // Display label (e.g. \"Favorite Food\")\n type: \"string\" // options: \"string\", \"number\", \"date\", \"datetime\", \"enumeration\", \"bool\", // Property data type. \"string\" for text, \"number\" for numeric, \"date\" for date-only, \"datetime\" for date+time, \"enumeration\" for option sets, \"bool\" for yes/no.\n fieldType: \"text\" // options: \"text\", \"textarea\", \"number\", \"date\", \"file\", \"select\", \"radio\", \"checkbox\", \"booleancheckbox\", \"calculation_equation\", \"html\", \"phonenumber\", // How the property appears in HubSpot UI. Must be compatible with the property type.\n groupName: \"example string\", // Property group name (e.g. \"contactinformation\", \"dealinformation\")\n description: \"example string\", // Description of the property\n hasUniqueValue: true, // Whether this property must have unique values across records\n options: [{ label: \"example string\" // Display label for the option, value: \"example string\" // Internal value for the option, description: \"example string\" // Description of the option, displayOrder: 42 // Display order (lower = first), hidden: true // Whether this option is hidden from forms }], // Options for enumeration-type properties (select, radio, checkbox)\n calculationFormula: \"example string\", // Formula for calculation_equation fieldType properties\n});\n\nconst result = await hubspot_create_property.action();\n// outputSchema for result.data when operation === 'create_property':\n// {\n// operation: \"create_property\",\n// success: boolean,\n// property: Record<string, unknown> | undefined,\n// error: string\n// }\n\n\n// Update Property example\nconst hubspot_update_property = new HubSpotBubble({\n operation: \"update_property\", // Update an existing property definition\n object_type: \"contacts\" // options: \"contacts\", \"companies\", \"deals\", \"tickets\", // HubSpot CRM object type to operate on (contacts, companies, deals, or tickets)\n property_name: \"example string\", // Internal property name (snake_case, e.g. \"favorite_food\")\n label: \"example string\", // New display label\n description: \"example string\", // New description\n groupName: \"example string\", // New property group name\n type: \"string\" // options: \"string\", \"number\", \"date\", \"datetime\", \"enumeration\", \"bool\", // Property data type. \"string\" for text, \"number\" for numeric, \"date\" for date-only, \"datetime\" for date+time, \"enumeration\" for option sets, \"bool\" for yes/no.\n fieldType: \"text\" // options: \"text\", \"textarea\", \"number\", \"date\", \"file\", \"select\", \"radio\", \"checkbox\", \"booleancheckbox\", \"calculation_equation\", \"html\", \"phonenumber\", // How the property appears in HubSpot UI. Must be compatible with the property type.\n options: [{ label: \"example string\" // Display label for the option, value: \"example string\" // Internal value for the option, description: \"example string\" // Description of the option, displayOrder: 42 // Display order (lower = first), hidden: true // Whether this option is hidden from forms }], // Updated options for enumeration-type properties\n});\n\nconst result = await hubspot_update_property.action();\n// outputSchema for result.data when operation === 'update_property':\n// {\n// operation: \"update_property\",\n// success: boolean,\n// property: Record<string, unknown> | undefined,\n// error: string\n// }\n\n\n// Delete Property example\nconst hubspot_delete_property = new HubSpotBubble({\n operation: \"delete_property\", // Delete a custom property definition (cannot delete default properties)\n object_type: \"contacts\" // options: \"contacts\", \"companies\", \"deals\", \"tickets\", // HubSpot CRM object type to operate on (contacts, companies, deals, or tickets)\n property_name: \"example string\", // Internal property name (snake_case, e.g. \"favorite_food\")\n});\n\nconst result = await hubspot_delete_property.action();\n// outputSchema for result.data when operation === 'delete_property':\n// {\n// operation: \"delete_property\",\n// success: boolean,\n// error: string\n// }\n\n\n// List Associations example\nconst hubspot_list_associations = new HubSpotBubble({\n operation: \"list_associations\", // List all records associated with a given record\n from_object_type: \"contacts\" // options: \"contacts\", \"companies\", \"deals\", \"tickets\", // Source object type\n from_record_id: \"example string\", // Source record ID\n to_object_type: \"contacts\" // options: \"contacts\", \"companies\", \"deals\", \"tickets\", // Target object type to list associations for\n});\n\nconst result = await hubspot_list_associations.action();\n// outputSchema for result.data when operation === 'list_associations':\n// {\n// operation: \"list_associations\",\n// success: boolean,\n// associations: Record<string, unknown>[] | undefined,\n// error: string\n// }\n\n\n// Create Association example\nconst hubspot_create_association = new HubSpotBubble({\n operation: \"create_association\", // Create a default association (link) between two CRM records\n from_object_type: \"contacts\" // options: \"contacts\", \"companies\", \"deals\", \"tickets\", // Source object type\n from_record_id: \"example string\", // Source record ID\n to_object_type: \"contacts\" // options: \"contacts\", \"companies\", \"deals\", \"tickets\", // Target object type\n to_record_id: \"example string\", // Target record ID\n});\n\nconst result = await hubspot_create_association.action();\n// outputSchema for result.data when operation === 'create_association':\n// {\n// operation: \"create_association\",\n// success: boolean,\n// error: string\n// }\n\n\n// Remove Association example\nconst hubspot_remove_association = new HubSpotBubble({\n operation: \"remove_association\", // Remove all associations between two specific records\n from_object_type: \"contacts\" // options: \"contacts\", \"companies\", \"deals\", \"tickets\", // Source object type\n from_record_id: \"example string\", // Source record ID\n to_object_type: \"contacts\" // options: \"contacts\", \"companies\", \"deals\", \"tickets\", // Target object type\n to_record_id: \"example string\", // Target record ID\n});\n\nconst result = await hubspot_remove_association.action();\n// outputSchema for result.data when operation === 'remove_association':\n// {\n// operation: \"remove_association\",\n// success: boolean,\n// error: string\n// }\n\n\n// List Pipelines example\nconst hubspot_list_pipelines = new HubSpotBubble({\n operation: \"list_pipelines\", // List all pipelines and their stages for deals or tickets\n object_type: \"deals\" // options: \"deals\", \"tickets\", // Object type that supports pipelines (deals or tickets)\n});\n\nconst result = await hubspot_list_pipelines.action();\n// outputSchema for result.data when operation === 'list_pipelines':\n// {\n// operation: \"list_pipelines\",\n// success: boolean,\n// pipelines: Record<string, unknown>[] | undefined,\n// error: string\n// }\n\n\n// Create Note example\nconst hubspot_create_note = new HubSpotBubble({\n operation: \"create_note\", // Create a note and associate it with CRM records\n note_body: \"example string\", // Note content (supports HTML formatting)\n associations: [{ object_type: \"contacts\" // options: \"contacts\", \"companies\", \"deals\", \"tickets\" // HubSpot CRM object type to operate on (contacts, companies, deals, or tickets), record_id: \"example string\" // Record ID to associate the note with }], // Records to associate the note with\n timestamp: \"example string\", // ISO 8601 timestamp for the note (defaults to current time)\n});\n\nconst result = await hubspot_create_note.action();\n// outputSchema for result.data when operation === 'create_note':\n// {\n// operation: \"create_note\",\n// success: boolean,\n// note: { id: string // Note ID, properties: Record<string, unknown> // Note properties including hs_note_body, hs_timestamp } | undefined,\n// error: string\n// }\n\n\n// Get Account Info example\nconst hubspot_get_account_info = new HubSpotBubble({\n operation: \"get_account_info\", // Retrieve HubSpot account details including portal ID, timezone, and currency\n});\n\nconst result = await hubspot_get_account_info.action();\n// outputSchema for result.data when operation === 'get_account_info':\n// {\n// operation: \"get_account_info\",\n// success: boolean,\n// account: Record<string, unknown> | undefined,\n// error: string\n// }\n\n\n// Always check success status before using data\nif (!result.success) {\n throw new Error(`hubspot failed: ${result.error}`);\n}\n\n// Access the actual data\nconst actualData = result.data;\nconsole.log(actualData);",
|
|
70420
|
+
"usageExample": "// Create Record example\nconst hubspot_create_record = new HubSpotBubble({\n operation: \"create_record\", // Create a new CRM record\n object_type: \"contacts\" // options: \"contacts\", \"companies\", \"deals\", \"tickets\", // HubSpot CRM object type to operate on (contacts, companies, deals, or tickets)\n properties: { \"example_key\": \"example string\" }, // Object properties as key-value pairs. Common contact properties: email, firstname, lastname, phone, company. Common company properties: name, domain, industry. Common deal properties: dealname, pipeline, dealstage, amount. Common ticket properties: subject, content, hs_pipeline, hs_pipeline_stage. NOTE: Tickets REQUIRE hs_pipeline_stage (and usually hs_pipeline) to be set on creation.\n});\n\nconst result = await hubspot_create_record.action();\n// outputSchema for result.data when operation === 'create_record':\n// {\n// operation: \"create_record\",\n// success: boolean,\n// record: { id: string // Record ID, properties: Record<string, unknown> // Record properties, createdAt: string | undefined // Creation timestamp, updatedAt: string | undefined // Last update timestamp, archived: boolean | undefined // Whether the record is archived } | undefined // A HubSpot CRM record,\n// error: string\n// }\n\n\n// Get Record example\nconst hubspot_get_record = new HubSpotBubble({\n operation: \"get_record\", // Retrieve a single CRM record by ID\n object_type: \"contacts\" // options: \"contacts\", \"companies\", \"deals\", \"tickets\", // HubSpot CRM object type to operate on (contacts, companies, deals, or tickets)\n record_id: \"example string\", // HubSpot record ID\n properties: [\"example string\"], // List of property names to include in the response. If not specified, default properties are returned.\n});\n\nconst result = await hubspot_get_record.action();\n// outputSchema for result.data when operation === 'get_record':\n// {\n// operation: \"get_record\",\n// success: boolean,\n// record: { id: string // Record ID, properties: Record<string, unknown> // Record properties, createdAt: string | undefined // Creation timestamp, updatedAt: string | undefined // Last update timestamp, archived: boolean | undefined // Whether the record is archived } | undefined // A HubSpot CRM record,\n// error: string\n// }\n\n\n// Update Record example\nconst hubspot_update_record = new HubSpotBubble({\n operation: \"update_record\", // Update an existing CRM record\n object_type: \"contacts\" // options: \"contacts\", \"companies\", \"deals\", \"tickets\", // HubSpot CRM object type to operate on (contacts, companies, deals, or tickets)\n record_id: \"example string\", // HubSpot record ID\n properties: { \"example_key\": \"example string\" }, // Object properties as key-value pairs. Common contact properties: email, firstname, lastname, phone, company. Common company properties: name, domain, industry. Common deal properties: dealname, pipeline, dealstage, amount. Common ticket properties: subject, content, hs_pipeline, hs_pipeline_stage. NOTE: Tickets REQUIRE hs_pipeline_stage (and usually hs_pipeline) to be set on creation.\n});\n\nconst result = await hubspot_update_record.action();\n// outputSchema for result.data when operation === 'update_record':\n// {\n// operation: \"update_record\",\n// success: boolean,\n// record: { id: string // Record ID, properties: Record<string, unknown> // Record properties, createdAt: string | undefined // Creation timestamp, updatedAt: string | undefined // Last update timestamp, archived: boolean | undefined // Whether the record is archived } | undefined // A HubSpot CRM record,\n// error: string\n// }\n\n\n// Delete Record example\nconst hubspot_delete_record = new HubSpotBubble({\n operation: \"delete_record\", // Archive (soft-delete) a CRM record\n object_type: \"contacts\" // options: \"contacts\", \"companies\", \"deals\", \"tickets\", // HubSpot CRM object type to operate on (contacts, companies, deals, or tickets)\n record_id: \"example string\", // HubSpot record ID\n});\n\nconst result = await hubspot_delete_record.action();\n// outputSchema for result.data when operation === 'delete_record':\n// {\n// operation: \"delete_record\",\n// success: boolean,\n// error: string\n// }\n\n\n// Search Records example\nconst hubspot_search_records = new HubSpotBubble({\n operation: \"search_records\", // Search CRM records with filters\n object_type: \"contacts\" // options: \"contacts\", \"companies\", \"deals\", \"tickets\", // HubSpot CRM object type to operate on (contacts, companies, deals, or tickets)\n filter_groups: [{ filters: [{ propertyName: \"example string\" // Property name to filter on (e.g., \"email\", \"firstname\"), operator: \"EQ\" // options: \"EQ\", \"NEQ\", \"LT\", \"LTE\", \"GT\", \"GTE\", \"BETWEEN\", \"IN\", \"NOT_IN\", \"HAS_PROPERTY\", \"NOT_HAS_PROPERTY\", \"CONTAINS_TOKEN\", \"NOT_CONTAINS_TOKEN\" // Filter operator, value: \"example string\" // Value to compare against, highValue: \"example string\" // Upper bound value for BETWEEN operator, values: [\"example string\"] // Array of values for IN/NOT_IN operators }] // Filters within this group (combined with AND) }], // Filter groups for the search query. Groups are combined with OR, filters within a group with AND.\n properties: [\"example string\"], // List of property names to include in the response. If not specified, default properties are returned.\n limit: 100 // default, // Maximum number of results to return (1-200, default 100)\n after: \"example string\", // Pagination cursor for next page of results\n});\n\nconst result = await hubspot_search_records.action();\n// outputSchema for result.data when operation === 'search_records':\n// {\n// operation: \"search_records\",\n// success: boolean,\n// results: { id: string // Record ID, properties: Record<string, unknown> // Record properties, createdAt: string | undefined // Creation timestamp, updatedAt: string | undefined // Last update timestamp, archived: boolean | undefined // Whether the record is archived }[] | undefined,\n// total: number | undefined,\n// paging: { next: { after: string } | undefined } | undefined,\n// error: string\n// }\n\n\n// Batch Create Records example\nconst hubspot_batch_create_records = new HubSpotBubble({\n operation: \"batch_create_records\", // Create multiple CRM records in a single API call\n object_type: \"contacts\" // options: \"contacts\", \"companies\", \"deals\", \"tickets\", // HubSpot CRM object type to operate on (contacts, companies, deals, or tickets)\n records: [{ properties: { \"example_key\": \"example string\" } // Object properties as key-value pairs. Common contact properties: email, firstname, lastname, phone, company. Common company properties: name, domain, industry. Common deal properties: dealname, pipeline, dealstage, amount. Common ticket properties: subject, content, hs_pipeline, hs_pipeline_stage. NOTE: Tickets REQUIRE hs_pipeline_stage (and usually hs_pipeline) to be set on creation. }], // Array of records to create (max 100)\n});\n\nconst result = await hubspot_batch_create_records.action();\n// outputSchema for result.data when operation === 'batch_create_records':\n// {\n// operation: \"batch_create_records\",\n// success: boolean,\n// results: { id: string // Record ID, properties: Record<string, unknown> // Record properties, createdAt: string | undefined // Creation timestamp, updatedAt: string | undefined // Last update timestamp, archived: boolean | undefined // Whether the record is archived }[] | undefined,\n// error: string\n// }\n\n\n// Batch Update Records example\nconst hubspot_batch_update_records = new HubSpotBubble({\n operation: \"batch_update_records\", // Update multiple CRM records in a single API call\n object_type: \"contacts\" // options: \"contacts\", \"companies\", \"deals\", \"tickets\", // HubSpot CRM object type to operate on (contacts, companies, deals, or tickets)\n records: [{ id: \"example string\" // Record ID to update, properties: { \"example_key\": \"example string\" } // Object properties as key-value pairs. Common contact properties: email, firstname, lastname, phone, company. Common company properties: name, domain, industry. Common deal properties: dealname, pipeline, dealstage, amount. Common ticket properties: subject, content, hs_pipeline, hs_pipeline_stage. NOTE: Tickets REQUIRE hs_pipeline_stage (and usually hs_pipeline) to be set on creation. }], // Array of records to update (max 100)\n});\n\nconst result = await hubspot_batch_update_records.action();\n// outputSchema for result.data when operation === 'batch_update_records':\n// {\n// operation: \"batch_update_records\",\n// success: boolean,\n// results: { id: string // Record ID, properties: Record<string, unknown> // Record properties, createdAt: string | undefined // Creation timestamp, updatedAt: string | undefined // Last update timestamp, archived: boolean | undefined // Whether the record is archived }[] | undefined,\n// error: string\n// }\n\n\n// Batch Delete Records example\nconst hubspot_batch_delete_records = new HubSpotBubble({\n operation: \"batch_delete_records\", // Archive multiple CRM records in a single API call\n object_type: \"contacts\" // options: \"contacts\", \"companies\", \"deals\", \"tickets\", // HubSpot CRM object type to operate on (contacts, companies, deals, or tickets)\n record_ids: [\"example string\"], // Array of record IDs to archive (max 100)\n});\n\nconst result = await hubspot_batch_delete_records.action();\n// outputSchema for result.data when operation === 'batch_delete_records':\n// {\n// operation: \"batch_delete_records\",\n// success: boolean,\n// error: string\n// }\n\n\n// List Properties example\nconst hubspot_list_properties = new HubSpotBubble({\n operation: \"list_properties\", // List all property definitions for a CRM object type\n object_type: \"contacts\" // options: \"contacts\", \"companies\", \"deals\", \"tickets\", // HubSpot CRM object type to operate on (contacts, companies, deals, or tickets)\n});\n\nconst result = await hubspot_list_properties.action();\n// outputSchema for result.data when operation === 'list_properties':\n// {\n// operation: \"list_properties\",\n// success: boolean,\n// properties: Record<string, unknown>[] | undefined,\n// error: string\n// }\n\n\n// Get Property example\nconst hubspot_get_property = new HubSpotBubble({\n operation: \"get_property\", // Retrieve a single property definition by name\n object_type: \"contacts\" // options: \"contacts\", \"companies\", \"deals\", \"tickets\", // HubSpot CRM object type to operate on (contacts, companies, deals, or tickets)\n property_name: \"example string\", // Internal property name (snake_case, e.g. \"favorite_food\")\n});\n\nconst result = await hubspot_get_property.action();\n// outputSchema for result.data when operation === 'get_property':\n// {\n// operation: \"get_property\",\n// success: boolean,\n// property: Record<string, unknown> | undefined,\n// error: string\n// }\n\n\n// Create Property example\nconst hubspot_create_property = new HubSpotBubble({\n operation: \"create_property\", // Create a new custom property definition\n object_type: \"contacts\" // options: \"contacts\", \"companies\", \"deals\", \"tickets\", // HubSpot CRM object type to operate on (contacts, companies, deals, or tickets)\n name: \"example string\", // Internal property name (snake_case, e.g. \"favorite_food\")\n label: \"example string\", // Display label (e.g. \"Favorite Food\")\n type: \"string\" // options: \"string\", \"number\", \"date\", \"datetime\", \"enumeration\", \"bool\", // Property data type. \"string\" for text, \"number\" for numeric, \"date\" for date-only, \"datetime\" for date+time, \"enumeration\" for option sets, \"bool\" for yes/no.\n fieldType: \"text\" // options: \"text\", \"textarea\", \"number\", \"date\", \"file\", \"select\", \"radio\", \"checkbox\", \"booleancheckbox\", \"calculation_equation\", \"html\", \"phonenumber\", // How the property appears in HubSpot UI. Must be compatible with the property type.\n groupName: \"example string\", // Property group name (e.g. \"contactinformation\", \"dealinformation\")\n description: \"example string\", // Description of the property\n hasUniqueValue: true, // Whether this property must have unique values across records\n options: [{ label: \"example string\" // Display label for the option, value: \"example string\" // Internal value for the option, description: \"example string\" // Description of the option, displayOrder: 42 // Display order (lower = first), hidden: true // Whether this option is hidden from forms }], // Options for enumeration-type properties (select, radio, checkbox)\n calculationFormula: \"example string\", // Formula for calculation_equation fieldType properties\n});\n\nconst result = await hubspot_create_property.action();\n// outputSchema for result.data when operation === 'create_property':\n// {\n// operation: \"create_property\",\n// success: boolean,\n// property: Record<string, unknown> | undefined,\n// error: string\n// }\n\n\n// Update Property example\nconst hubspot_update_property = new HubSpotBubble({\n operation: \"update_property\", // Update an existing property definition\n object_type: \"contacts\" // options: \"contacts\", \"companies\", \"deals\", \"tickets\", // HubSpot CRM object type to operate on (contacts, companies, deals, or tickets)\n property_name: \"example string\", // Internal property name (snake_case, e.g. \"favorite_food\")\n label: \"example string\", // New display label\n description: \"example string\", // New description\n groupName: \"example string\", // New property group name\n type: \"string\" // options: \"string\", \"number\", \"date\", \"datetime\", \"enumeration\", \"bool\", // Property data type. \"string\" for text, \"number\" for numeric, \"date\" for date-only, \"datetime\" for date+time, \"enumeration\" for option sets, \"bool\" for yes/no.\n fieldType: \"text\" // options: \"text\", \"textarea\", \"number\", \"date\", \"file\", \"select\", \"radio\", \"checkbox\", \"booleancheckbox\", \"calculation_equation\", \"html\", \"phonenumber\", // How the property appears in HubSpot UI. Must be compatible with the property type.\n options: [{ label: \"example string\" // Display label for the option, value: \"example string\" // Internal value for the option, description: \"example string\" // Description of the option, displayOrder: 42 // Display order (lower = first), hidden: true // Whether this option is hidden from forms }], // Updated options for enumeration-type properties\n});\n\nconst result = await hubspot_update_property.action();\n// outputSchema for result.data when operation === 'update_property':\n// {\n// operation: \"update_property\",\n// success: boolean,\n// property: Record<string, unknown> | undefined,\n// error: string\n// }\n\n\n// Delete Property example\nconst hubspot_delete_property = new HubSpotBubble({\n operation: \"delete_property\", // Delete a custom property definition (cannot delete default properties)\n object_type: \"contacts\" // options: \"contacts\", \"companies\", \"deals\", \"tickets\", // HubSpot CRM object type to operate on (contacts, companies, deals, or tickets)\n property_name: \"example string\", // Internal property name (snake_case, e.g. \"favorite_food\")\n});\n\nconst result = await hubspot_delete_property.action();\n// outputSchema for result.data when operation === 'delete_property':\n// {\n// operation: \"delete_property\",\n// success: boolean,\n// error: string\n// }\n\n\n// List Associations example\nconst hubspot_list_associations = new HubSpotBubble({\n operation: \"list_associations\", // List all records associated with a given record\n from_object_type: \"contacts\" // options: \"contacts\", \"companies\", \"deals\", \"tickets\", // Source object type\n from_record_id: \"example string\", // Source record ID\n to_object_type: \"contacts\" // options: \"contacts\", \"companies\", \"deals\", \"tickets\", // Target object type to list associations for\n});\n\nconst result = await hubspot_list_associations.action();\n// outputSchema for result.data when operation === 'list_associations':\n// {\n// operation: \"list_associations\",\n// success: boolean,\n// associations: Record<string, unknown>[] | undefined,\n// error: string\n// }\n\n\n// Create Association example\nconst hubspot_create_association = new HubSpotBubble({\n operation: \"create_association\", // Create a default association (link) between two CRM records\n from_object_type: \"contacts\" // options: \"contacts\", \"companies\", \"deals\", \"tickets\", // Source object type\n from_record_id: \"example string\", // Source record ID\n to_object_type: \"contacts\" // options: \"contacts\", \"companies\", \"deals\", \"tickets\", // Target object type\n to_record_id: \"example string\", // Target record ID\n});\n\nconst result = await hubspot_create_association.action();\n// outputSchema for result.data when operation === 'create_association':\n// {\n// operation: \"create_association\",\n// success: boolean,\n// error: string\n// }\n\n\n// Remove Association example\nconst hubspot_remove_association = new HubSpotBubble({\n operation: \"remove_association\", // Remove all associations between two specific records\n from_object_type: \"contacts\" // options: \"contacts\", \"companies\", \"deals\", \"tickets\", // Source object type\n from_record_id: \"example string\", // Source record ID\n to_object_type: \"contacts\" // options: \"contacts\", \"companies\", \"deals\", \"tickets\", // Target object type\n to_record_id: \"example string\", // Target record ID\n});\n\nconst result = await hubspot_remove_association.action();\n// outputSchema for result.data when operation === 'remove_association':\n// {\n// operation: \"remove_association\",\n// success: boolean,\n// error: string\n// }\n\n\n// List Pipelines example\nconst hubspot_list_pipelines = new HubSpotBubble({\n operation: \"list_pipelines\", // List all pipelines and their stages for deals or tickets\n object_type: \"deals\" // options: \"deals\", \"tickets\", // Object type that supports pipelines (deals or tickets)\n});\n\nconst result = await hubspot_list_pipelines.action();\n// outputSchema for result.data when operation === 'list_pipelines':\n// {\n// operation: \"list_pipelines\",\n// success: boolean,\n// pipelines: Record<string, unknown>[] | undefined,\n// error: string\n// }\n\n\n// Create Note example\nconst hubspot_create_note = new HubSpotBubble({\n operation: \"create_note\", // Create a note and associate it with CRM records\n note_body: \"example string\", // Note content (supports HTML formatting)\n associations: [{ object_type: \"contacts\" // options: \"contacts\", \"companies\", \"deals\", \"tickets\" // HubSpot CRM object type to operate on (contacts, companies, deals, or tickets), record_id: \"example string\" // Record ID to associate the note with }], // Records to associate the note with\n timestamp: \"example string\", // ISO 8601 timestamp for the note (defaults to current time)\n});\n\nconst result = await hubspot_create_note.action();\n// outputSchema for result.data when operation === 'create_note':\n// {\n// operation: \"create_note\",\n// success: boolean,\n// note: { id: string // Note ID, properties: Record<string, unknown> // Note properties including hs_note_body, hs_timestamp } | undefined,\n// error: string\n// }\n\n\n// List Owners example\nconst hubspot_list_owners = new HubSpotBubble({\n operation: \"list_owners\", // List HubSpot account owners (users who can be assigned to records)\n email: \"example string\", // Filter owners by email address\n limit: 100 // default, // Maximum number of owners to return (1-500, default 100)\n after: \"example string\", // Pagination cursor for next page of results\n});\n\nconst result = await hubspot_list_owners.action();\n// outputSchema for result.data when operation === 'list_owners':\n// {\n// operation: \"list_owners\",\n// success: boolean,\n// owners: Record<string, unknown>[] | undefined,\n// paging: { next: { after: string } | undefined } | undefined,\n// error: string\n// }\n\n\n// Get Owner example\nconst hubspot_get_owner = new HubSpotBubble({\n operation: \"get_owner\", // Retrieve a single HubSpot owner by ID\n owner_id: \"example string\", // HubSpot owner ID (e.g., from hubspot_owner_id property on records)\n});\n\nconst result = await hubspot_get_owner.action();\n// outputSchema for result.data when operation === 'get_owner':\n// {\n// operation: \"get_owner\",\n// success: boolean,\n// owner: Record<string, unknown> | undefined,\n// error: string\n// }\n\n\n// Get Account Info example\nconst hubspot_get_account_info = new HubSpotBubble({\n operation: \"get_account_info\", // Retrieve HubSpot account details including portal ID, timezone, and currency\n});\n\nconst result = await hubspot_get_account_info.action();\n// outputSchema for result.data when operation === 'get_account_info':\n// {\n// operation: \"get_account_info\",\n// success: boolean,\n// account: Record<string, unknown> | undefined,\n// error: string\n// }\n\n\n// Always check success status before using data\nif (!result.success) {\n throw new Error(`hubspot failed: ${result.error}`);\n}\n\n// Access the actual data\nconst actualData = result.data;\nconsole.log(actualData);",
|
|
70279
70421
|
"requiredCredentials": [
|
|
70280
70422
|
"HUBSPOT_CRED"
|
|
70281
70423
|
]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bubblelab/bubble-core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.236",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"puppeteer-core": "^24.10.0",
|
|
42
42
|
"resend": "^4.8.0",
|
|
43
43
|
"zod": "^3.24.1",
|
|
44
|
-
"@bubblelab/shared-schemas": "0.1.
|
|
44
|
+
"@bubblelab/shared-schemas": "0.1.236"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@types/node": "^20.12.12",
|