@particle-academy/hubspot-js 0.4.0 → 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/dist/flow.d.cts CHANGED
@@ -37,7 +37,8 @@ declare const hubspotDealUpdateExecutor: NodeExecutor;
37
37
  declare const hubspotOwnerListExecutor: NodeExecutor;
38
38
  declare const hubspotPipelineListExecutor: NodeExecutor;
39
39
  declare const hubspotPropertyListExecutor: NodeExecutor;
40
+ declare const hubspotCrmEventTriggerExecutor: NodeExecutor;
40
41
  /** The kinds a TypeScript host registers. */
41
42
  declare const HUBSPOT_RUNNABLE_KINDS: NodeKindDefinition[];
42
43
 
43
- export { HUBSPOT_RUNNABLE_KINDS, hubspotCompanyCreateExecutor, hubspotCompanyGetExecutor, hubspotCompanyListExecutor, hubspotCompanySearchExecutor, hubspotCompanyUpdateExecutor, hubspotContactCreateExecutor, hubspotContactGetExecutor, hubspotContactListExecutor, hubspotContactSearchExecutor, hubspotContactUpdateExecutor, hubspotDealCreateExecutor, hubspotDealGetExecutor, hubspotDealListExecutor, hubspotDealSearchExecutor, hubspotDealUpdateExecutor, hubspotOwnerListExecutor, hubspotPipelineListExecutor, hubspotPropertyListExecutor };
44
+ export { HUBSPOT_RUNNABLE_KINDS, hubspotCompanyCreateExecutor, hubspotCompanyGetExecutor, hubspotCompanyListExecutor, hubspotCompanySearchExecutor, hubspotCompanyUpdateExecutor, hubspotContactCreateExecutor, hubspotContactGetExecutor, hubspotContactListExecutor, hubspotContactSearchExecutor, hubspotContactUpdateExecutor, hubspotCrmEventTriggerExecutor, hubspotDealCreateExecutor, hubspotDealGetExecutor, hubspotDealListExecutor, hubspotDealSearchExecutor, hubspotDealUpdateExecutor, hubspotOwnerListExecutor, hubspotPipelineListExecutor, hubspotPropertyListExecutor };
package/dist/flow.d.ts CHANGED
@@ -37,7 +37,8 @@ declare const hubspotDealUpdateExecutor: NodeExecutor;
37
37
  declare const hubspotOwnerListExecutor: NodeExecutor;
38
38
  declare const hubspotPipelineListExecutor: NodeExecutor;
39
39
  declare const hubspotPropertyListExecutor: NodeExecutor;
40
+ declare const hubspotCrmEventTriggerExecutor: NodeExecutor;
40
41
  /** The kinds a TypeScript host registers. */
41
42
  declare const HUBSPOT_RUNNABLE_KINDS: NodeKindDefinition[];
42
43
 
43
- export { HUBSPOT_RUNNABLE_KINDS, hubspotCompanyCreateExecutor, hubspotCompanyGetExecutor, hubspotCompanyListExecutor, hubspotCompanySearchExecutor, hubspotCompanyUpdateExecutor, hubspotContactCreateExecutor, hubspotContactGetExecutor, hubspotContactListExecutor, hubspotContactSearchExecutor, hubspotContactUpdateExecutor, hubspotDealCreateExecutor, hubspotDealGetExecutor, hubspotDealListExecutor, hubspotDealSearchExecutor, hubspotDealUpdateExecutor, hubspotOwnerListExecutor, hubspotPipelineListExecutor, hubspotPropertyListExecutor };
44
+ export { HUBSPOT_RUNNABLE_KINDS, hubspotCompanyCreateExecutor, hubspotCompanyGetExecutor, hubspotCompanyListExecutor, hubspotCompanySearchExecutor, hubspotCompanyUpdateExecutor, hubspotContactCreateExecutor, hubspotContactGetExecutor, hubspotContactListExecutor, hubspotContactSearchExecutor, hubspotContactUpdateExecutor, hubspotCrmEventTriggerExecutor, hubspotDealCreateExecutor, hubspotDealGetExecutor, hubspotDealListExecutor, hubspotDealSearchExecutor, hubspotDealUpdateExecutor, hubspotOwnerListExecutor, hubspotPipelineListExecutor, hubspotPropertyListExecutor };
package/dist/flow.js CHANGED
@@ -1,6 +1,6 @@
1
- import { hubspotCompanyCreate, hubspotCompanyGet, hubspotCompanyList, hubspotCompanySearch, hubspotCompanyUpdate, hubspotContactCreate, hubspotContactGet, hubspotContactList, hubspotContactSearch, hubspotContactUpdate, hubspotDealCreate, hubspotDealGet, hubspotDealList, hubspotDealSearch, hubspotDealUpdate, hubspotOwnerList, hubspotPipelineList, hubspotPropertyList } from './chunk-FFT5OGGS.js';
2
- import '@particle-academy/fancy-connector-core';
3
- import { hubspotCompanyCreateKind, hubspotCompanyGetKind, hubspotCompanyListKind, hubspotCompanySearchKind, hubspotCompanyUpdateKind, hubspotContactCreateKind, hubspotContactGetKind, hubspotContactListKind, hubspotContactSearchKind, hubspotContactUpdateKind, hubspotDealCreateKind, hubspotDealGetKind, hubspotDealListKind, hubspotDealSearchKind, hubspotDealUpdateKind, hubspotOwnerListKind, hubspotPipelineListKind, hubspotPropertyListKind } from '@particle-academy/hubspot-ui';
1
+ import { hubspotCompanyCreate, hubspotCompanyGet, hubspotCompanyList, hubspotCompanySearch, hubspotCompanyUpdate, hubspotContactCreate, hubspotContactGet, hubspotContactList, hubspotContactSearch, hubspotContactUpdate, hubspotDealCreate, hubspotDealGet, hubspotDealList, hubspotDealSearch, hubspotDealUpdate, hubspotOwnerList, hubspotPipelineList, hubspotPropertyList, HUBSPOT, HUBSPOT_CRM_EVENT } from './chunk-SZT3VK7Z.js';
2
+ import { resolveConnection, triggerEvent } from '@particle-academy/fancy-connector-core';
3
+ import { hubspotCompanyCreateKind, hubspotCompanyGetKind, hubspotCompanyListKind, hubspotCompanySearchKind, hubspotCompanyUpdateKind, hubspotContactCreateKind, hubspotContactGetKind, hubspotContactListKind, hubspotContactSearchKind, hubspotContactUpdateKind, hubspotDealCreateKind, hubspotDealGetKind, hubspotDealListKind, hubspotDealSearchKind, hubspotDealUpdateKind, hubspotOwnerListKind, hubspotPipelineListKind, hubspotPropertyListKind, hubspotCrmEventTriggerKind } from '@particle-academy/hubspot-ui';
4
4
 
5
5
  var hubspotCompanyCreateExecutor = async (ctx) => {
6
6
  const config = ctx.node.data?.config ?? {};
@@ -254,6 +254,20 @@ var hubspotPropertyListExecutor = async (ctx) => {
254
254
  });
255
255
  return { __port: "out", value: result };
256
256
  };
257
+ var hubspotCrmEventTriggerExecutor = async (ctx) => {
258
+ const config = ctx.node.data?.config ?? {};
259
+ const connection = resolveConnection({
260
+ service: HUBSPOT.service,
261
+ operation: "crm_event",
262
+ sandbox: HUBSPOT.sandbox,
263
+ baseUrls: HUBSPOT.baseUrls,
264
+ requires: HUBSPOT.requires,
265
+ connectionId: typeof config.connection === "string" ? config.connection : null,
266
+ requested: typeof config.mode === "string" ? config.mode : null
267
+ });
268
+ const event = triggerEvent(HUBSPOT_CRM_EVENT, connection, ctx.inputs?.in, config);
269
+ return { __port: "out", value: event };
270
+ };
257
271
  var HUBSPOT_RUNNABLE_KINDS = [
258
272
  { ...hubspotCompanyCreateKind, executor: hubspotCompanyCreateExecutor },
259
273
  { ...hubspotCompanyGetKind, executor: hubspotCompanyGetExecutor },
@@ -272,9 +286,10 @@ var HUBSPOT_RUNNABLE_KINDS = [
272
286
  { ...hubspotDealUpdateKind, executor: hubspotDealUpdateExecutor },
273
287
  { ...hubspotOwnerListKind, executor: hubspotOwnerListExecutor },
274
288
  { ...hubspotPipelineListKind, executor: hubspotPipelineListExecutor },
275
- { ...hubspotPropertyListKind, executor: hubspotPropertyListExecutor }
289
+ { ...hubspotPropertyListKind, executor: hubspotPropertyListExecutor },
290
+ { ...hubspotCrmEventTriggerKind, executor: hubspotCrmEventTriggerExecutor }
276
291
  ];
277
292
 
278
- export { HUBSPOT_RUNNABLE_KINDS, hubspotCompanyCreateExecutor, hubspotCompanyGetExecutor, hubspotCompanyListExecutor, hubspotCompanySearchExecutor, hubspotCompanyUpdateExecutor, hubspotContactCreateExecutor, hubspotContactGetExecutor, hubspotContactListExecutor, hubspotContactSearchExecutor, hubspotContactUpdateExecutor, hubspotDealCreateExecutor, hubspotDealGetExecutor, hubspotDealListExecutor, hubspotDealSearchExecutor, hubspotDealUpdateExecutor, hubspotOwnerListExecutor, hubspotPipelineListExecutor, hubspotPropertyListExecutor };
293
+ export { HUBSPOT_RUNNABLE_KINDS, hubspotCompanyCreateExecutor, hubspotCompanyGetExecutor, hubspotCompanyListExecutor, hubspotCompanySearchExecutor, hubspotCompanyUpdateExecutor, hubspotContactCreateExecutor, hubspotContactGetExecutor, hubspotContactListExecutor, hubspotContactSearchExecutor, hubspotContactUpdateExecutor, hubspotCrmEventTriggerExecutor, hubspotDealCreateExecutor, hubspotDealGetExecutor, hubspotDealListExecutor, hubspotDealSearchExecutor, hubspotDealUpdateExecutor, hubspotOwnerListExecutor, hubspotPipelineListExecutor, hubspotPropertyListExecutor };
279
294
  //# sourceMappingURL=flow.js.map
280
295
  //# sourceMappingURL=flow.js.map
package/dist/flow.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/flow.ts"],"names":[],"mappings":";;;;AAsEO,IAAM,4BAAA,GAA6C,OAAO,GAAA,KAAQ;AACvE,EAAA,MAAM,MAAA,GAAW,GAAA,CAAI,IAAA,CAAK,IAAA,EAA+C,UAAU,EAAC;AAEpF,EAAA,MAAM,MAAA,GAAS,MAAM,oBAAA,CAAqB;AAAA,IACxC,MAAA;AAAA,IACA,KAAA,EAAO,IAAI,MAAA,EAAQ;AAAA,GACpB,CAAA;AAED,EAAA,GAAA,CAAI,IAAA,CAAK;AAAA,IACP,IAAA,EAAM,KAAA;AAAA,IACN,KAAA,EAAO,MAAA;AAAA,IACP,MAAA,EAAQ,IAAI,IAAA,CAAK,EAAA;AAAA,IACjB,SAAS,CAAA,uBAAA,EAA2B,MAAA,CAAO,MAA0B,EAAE,CAAA,EAAA,EAAK,OAAO,IAAI,CAAA,CAAA;AAAA,GACxF,CAAA;AAED,EAAA,OAAO,EAAE,MAAA,EAAQ,KAAA,EAAO,KAAA,EAAO,MAAA,EAAO;AACxC;AAEO,IAAM,yBAAA,GAA0C,OAAO,GAAA,KAAQ;AACpE,EAAA,MAAM,MAAA,GAAW,GAAA,CAAI,IAAA,CAAK,IAAA,EAA+C,UAAU,EAAC;AAEpF,EAAA,MAAM,MAAA,GAAS,MAAM,iBAAA,CAAkB;AAAA,IACrC,MAAA;AAAA,IACA,KAAA,EAAO,IAAI,MAAA,EAAQ;AAAA,GACpB,CAAA;AAED,EAAA,GAAA,CAAI,IAAA,CAAK;AAAA,IACP,IAAA,EAAM,KAAA;AAAA,IACN,KAAA,E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 + triggers/ by weaver's generator.\n * A hand-edit here is destroyed by the next protocol sync, which is worse than\n * being rejected, because it works until it silently does not. Fix\n * provider/actions/ + triggers/ (or weaver's template/) and regenerate:\n *\n * npm run provider -- hubspot\n */\n\n/**\n * HubSpot's node kinds with their TypeScript executors attached — for hosts\n * that EXECUTE on TS.\n *\n * The authoring surface in @particle-academy/hubspot-ui carries no executor:\n * the editor is React on every host, so a PHP or Python project installs the\n * ui package and never this one.\n */\n\nimport type { NodeExecutor, NodeKindDefinition } from \"@particle-academy/fancy-flow/engine\";\nimport {\n idempotencyKeyFor,\n NO_IDEMPOTENCY_KEY_WARNING,\n resolveConnection,\n triggerEvent,\n type RequestedMode,\n} from \"@particle-academy/fancy-connector-core\";\nimport { HUBSPOT } from \"./service.js\";\n\nimport {\n hubspotCompanyCreateKind,\n hubspotCompanyGetKind,\n hubspotCompanyListKind,\n hubspotCompanySearchKind,\n hubspotCompanyUpdateKind,\n hubspotContactCreateKind,\n hubspotContactGetKind,\n hubspotContactListKind,\n hubspotContactSearchKind,\n hubspotContactUpdateKind,\n hubspotDealCreateKind,\n hubspotDealGetKind,\n hubspotDealListKind,\n hubspotDealSearchKind,\n hubspotDealUpdateKind,\n hubspotOwnerListKind,\n hubspotPipelineListKind,\n hubspotPropertyListKind,\n} from \"@particle-academy/hubspot-ui\";\n\nimport { hubspotCompanyCreate } from \"./actions/company-create.js\";\nimport { hubspotCompanyGet } from \"./actions/company-get.js\";\nimport { hubspotCompanyList } from \"./actions/company-list.js\";\nimport { hubspotCompanySearch } from \"./actions/company-search.js\";\nimport { hubspotCompanyUpdate } from \"./actions/company-update.js\";\nimport { hubspotContactCreate } from \"./actions/contact-create.js\";\nimport { hubspotContactGet } from \"./actions/contact-get.js\";\nimport { hubspotContactList } from \"./actions/contact-list.js\";\nimport { hubspotContactSearch } from \"./actions/contact-search.js\";\nimport { hubspotContactUpdate } from \"./actions/contact-update.js\";\nimport { hubspotDealCreate } from \"./actions/deal-create.js\";\nimport { hubspotDealGet } from \"./actions/deal-get.js\";\nimport { hubspotDealList } from \"./actions/deal-list.js\";\nimport { hubspotDealSearch } from \"./actions/deal-search.js\";\nimport { hubspotDealUpdate } from \"./actions/deal-update.js\";\nimport { hubspotOwnerList } from \"./actions/owner-list.js\";\nimport { hubspotPipelineList } from \"./actions/pipeline-list.js\";\nimport { hubspotPropertyList } from \"./actions/property-list.js\";\n\nexport const hubspotCompanyCreateExecutor: NodeExecutor = async (ctx) => {\n const config = ((ctx.node.data as { config?: Record<string, unknown> })?.config ?? {});\n\n const result = await hubspotCompanyCreate({\n config,\n input: ctx.inputs?.in,\n });\n\n ctx.emit({\n type: \"log\",\n level: \"info\",\n nodeId: ctx.node.id,\n message: `hubspot company_create ${(result.data as { id?: string })?.id} (${result.mode})`,\n });\n\n return { __port: \"out\", value: result };\n};\n\nexport const hubspotCompanyGetExecutor: NodeExecutor = async (ctx) => {\n const config = ((ctx.node.data as { config?: Record<string, unknown> })?.config ?? {});\n\n const result = await hubspotCompanyGet({\n config,\n input: ctx.inputs?.in,\n });\n\n ctx.emit({\n type: \"log\",\n level: \"info\",\n nodeId: ctx.node.id,\n message: `hubspot company_get ${(result.data as { id?: string })?.id} (${result.mode})`,\n });\n\n return { __port: \"out\", value: result };\n};\n\nexport const hubspotCompanyListExecutor: NodeExecutor = async (ctx) => {\n const config = ((ctx.node.data as { config?: Record<string, unknown> })?.config ?? {});\n\n const result = await hubspotCompanyList({\n config,\n input: ctx.inputs?.in,\n });\n\n ctx.emit({\n type: \"log\",\n level: \"info\",\n nodeId: ctx.node.id,\n message: `hubspot company_list ${(result.data as { id?: string })?.id} (${result.mode})`,\n });\n\n return { __port: \"out\", value: result };\n};\n\nexport const hubspotCompanySearchExecutor: NodeExecutor = async (ctx) => {\n const config = ((ctx.node.data as { config?: Record<string, unknown> })?.config ?? {});\n\n const result = await hubspotCompanySearch({\n config,\n input: ctx.inputs?.in,\n });\n\n ctx.emit({\n type: \"log\",\n level: \"info\",\n nodeId: ctx.node.id,\n message: `hubspot company_search ${(result.data as { id?: string })?.id} (${result.mode})`,\n });\n\n return { __port: \"out\", value: result };\n};\n\nexport const hubspotCompanyUpdateExecutor: NodeExecutor = async (ctx) => {\n const config = ((ctx.node.data as { config?: Record<string, unknown> })?.config ?? {});\n\n const result = await hubspotCompanyUpdate({\n config,\n input: ctx.inputs?.in,\n });\n\n ctx.emit({\n type: \"log\",\n level: \"info\",\n nodeId: ctx.node.id,\n message: `hubspot company_update ${(result.data as { id?: string })?.id} (${result.mode})`,\n });\n\n return { __port: \"out\", value: result };\n};\n\nexport const hubspotContactCreateExecutor: NodeExecutor = async (ctx) => {\n const config = ((ctx.node.data as { config?: Record<string, unknown> })?.config ?? {});\n\n const result = await hubspotContactCreate({\n config,\n input: ctx.inputs?.in,\n });\n\n ctx.emit({\n type: \"log\",\n level: \"info\",\n nodeId: ctx.node.id,\n message: `hubspot contact_create ${(result.data as { id?: string })?.id} (${result.mode})`,\n });\n\n return { __port: \"out\", value: result };\n};\n\nexport const hubspotContactGetExecutor: NodeExecutor = async (ctx) => {\n const config = ((ctx.node.data as { config?: Record<string, unknown> })?.config ?? {});\n\n const result = await hubspotContactGet({\n config,\n input: ctx.inputs?.in,\n });\n\n ctx.emit({\n type: \"log\",\n level: \"info\",\n nodeId: ctx.node.id,\n message: `hubspot contact_get ${(result.data as { id?: string })?.id} (${result.mode})`,\n });\n\n return { __port: \"out\", value: result };\n};\n\nexport const hubspotContactListExecutor: NodeExecutor = async (ctx) => {\n const config = ((ctx.node.data as { config?: Record<string, unknown> })?.config ?? {});\n\n const result = await hubspotContactList({\n config,\n input: ctx.inputs?.in,\n });\n\n ctx.emit({\n type: \"log\",\n level: \"info\",\n nodeId: ctx.node.id,\n message: `hubspot contact_list ${(result.data as { id?: string })?.id} (${result.mode})`,\n });\n\n return { __port: \"out\", value: result };\n};\n\nexport const hubspotContactSearchExecutor: NodeExecutor = async (ctx) => {\n const config = ((ctx.node.data as { config?: Record<string, unknown> })?.config ?? {});\n\n const result = await hubspotContactSearch({\n config,\n input: ctx.inputs?.in,\n });\n\n ctx.emit({\n type: \"log\",\n level: \"info\",\n nodeId: ctx.node.id,\n message: `hubspot contact_search ${(result.data as { id?: string })?.id} (${result.mode})`,\n });\n\n return { __port: \"out\", value: result };\n};\n\nexport const hubspotContactUpdateExecutor: NodeExecutor = async (ctx) => {\n const config = ((ctx.node.data as { config?: Record<string, unknown> })?.config ?? {});\n\n const result = await hubspotContactUpdate({\n config,\n input: ctx.inputs?.in,\n });\n\n ctx.emit({\n type: \"log\",\n level: \"info\",\n nodeId: ctx.node.id,\n message: `hubspot contact_update ${(result.data as { id?: string })?.id} (${result.mode})`,\n });\n\n return { __port: \"out\", value: result };\n};\n\nexport const hubspotDealCreateExecutor: NodeExecutor = async (ctx) => {\n const config = ((ctx.node.data as { config?: Record<string, unknown> })?.config ?? {});\n\n const result = await hubspotDealCreate({\n config,\n input: ctx.inputs?.in,\n });\n\n ctx.emit({\n type: \"log\",\n level: \"info\",\n nodeId: ctx.node.id,\n message: `hubspot deal_create ${(result.data as { id?: string })?.id} (${result.mode})`,\n });\n\n return { __port: \"out\", value: result };\n};\n\nexport const hubspotDealGetExecutor: NodeExecutor = async (ctx) => {\n const config = ((ctx.node.data as { config?: Record<string, unknown> })?.config ?? {});\n\n const result = await hubspotDealGet({\n config,\n input: ctx.inputs?.in,\n });\n\n ctx.emit({\n type: \"log\",\n level: \"info\",\n nodeId: ctx.node.id,\n message: `hubspot deal_get ${(result.data as { id?: string })?.id} (${result.mode})`,\n });\n\n return { __port: \"out\", value: result };\n};\n\nexport const hubspotDealListExecutor: NodeExecutor = async (ctx) => {\n const config = ((ctx.node.data as { config?: Record<string, unknown> })?.config ?? {});\n\n const result = await hubspotDealList({\n config,\n input: ctx.inputs?.in,\n });\n\n ctx.emit({\n type: \"log\",\n level: \"info\",\n nodeId: ctx.node.id,\n message: `hubspot deal_list ${(result.data as { id?: string })?.id} (${result.mode})`,\n });\n\n return { __port: \"out\", value: result };\n};\n\nexport const hubspotDealSearchExecutor: NodeExecutor = async (ctx) => {\n const config = ((ctx.node.data as { config?: Record<string, unknown> })?.config ?? {});\n\n const result = await hubspotDealSearch({\n config,\n input: ctx.inputs?.in,\n });\n\n ctx.emit({\n type: \"log\",\n level: \"info\",\n nodeId: ctx.node.id,\n message: `hubspot deal_search ${(result.data as { id?: string })?.id} (${result.mode})`,\n });\n\n return { __port: \"out\", value: result };\n};\n\nexport const hubspotDealUpdateExecutor: NodeExecutor = async (ctx) => {\n const config = ((ctx.node.data as { config?: Record<string, unknown> })?.config ?? {});\n\n const result = await hubspotDealUpdate({\n config,\n input: ctx.inputs?.in,\n });\n\n ctx.emit({\n type: \"log\",\n level: \"info\",\n nodeId: ctx.node.id,\n message: `hubspot deal_update ${(result.data as { id?: string })?.id} (${result.mode})`,\n });\n\n return { __port: \"out\", value: result };\n};\n\nexport const hubspotOwnerListExecutor: NodeExecutor = async (ctx) => {\n const config = ((ctx.node.data as { config?: Record<string, unknown> })?.config ?? {});\n\n const result = await hubspotOwnerList({\n config,\n input: ctx.inputs?.in,\n });\n\n ctx.emit({\n type: \"log\",\n level: \"info\",\n nodeId: ctx.node.id,\n message: `hubspot owner_list ${(result.data as { id?: string })?.id} (${result.mode})`,\n });\n\n return { __port: \"out\", value: result };\n};\n\nexport const hubspotPipelineListExecutor: NodeExecutor = async (ctx) => {\n const config = ((ctx.node.data as { config?: Record<string, unknown> })?.config ?? {});\n\n const result = await hubspotPipelineList({\n config,\n input: ctx.inputs?.in,\n });\n\n ctx.emit({\n type: \"log\",\n level: \"info\",\n nodeId: ctx.node.id,\n message: `hubspot pipeline_list ${(result.data as { id?: string })?.id} (${result.mode})`,\n });\n\n return { __port: \"out\", value: result };\n};\n\nexport const hubspotPropertyListExecutor: NodeExecutor = async (ctx) => {\n const config = ((ctx.node.data as { config?: Record<string, unknown> })?.config ?? {});\n\n const result = await hubspotPropertyList({\n config,\n input: ctx.inputs?.in,\n });\n\n ctx.emit({\n type: \"log\",\n level: \"info\",\n nodeId: ctx.node.id,\n message: `hubspot property_list ${(result.data as { id?: string })?.id} (${result.mode})`,\n });\n\n return { __port: \"out\", value: result };\n};\n\n/** The kinds a TypeScript host registers. */\nexport const HUBSPOT_RUNNABLE_KINDS: NodeKindDefinition[] = [\n { ...hubspotCompanyCreateKind, executor: hubspotCompanyCreateExecutor },\n { ...hubspotCompanyGetKind, executor: hubspotCompanyGetExecutor },\n { ...hubspotCompanyListKind, executor: hubspotCompanyListExecutor },\n { ...hubspotCompanySearchKind, executor: hubspotCompanySearchExecutor },\n { ...hubspotCompanyUpdateKind, executor: hubspotCompanyUpdateExecutor },\n { ...hubspotContactCreateKind, executor: hubspotContactCreateExecutor },\n { ...hubspotContactGetKind, executor: hubspotContactGetExecutor },\n { ...hubspotContactListKind, executor: hubspotContactListExecutor },\n { ...hubspotContactSearchKind, executor: hubspotContactSearchExecutor },\n { ...hubspotContactUpdateKind, executor: hubspotContactUpdateExecutor },\n { ...hubspotDealCreateKind, executor: hubspotDealCreateExecutor },\n { ...hubspotDealGetKind, executor: hubspotDealGetExecutor },\n { ...hubspotDealListKind, executor: hubspotDealListExecutor },\n { ...hubspotDealSearchKind, executor: hubspotDealSearchExecutor },\n { ...hubspotDealUpdateKind, executor: hubspotDealUpdateExecutor },\n { ...hubspotOwnerListKind, executor: hubspotOwnerListExecutor },\n { ...hubspotPipelineListKind, executor: hubspotPipelineListExecutor },\n { ...hubspotPropertyListKind, executor: hubspotPropertyListExecutor },\n];\n"]}
1
+ {"version":3,"sources":["../src/flow.ts"],"names":[],"mappings":";;;;AAwEO,IAAM,4BAAA,GAA6C,OAAO,GAAA,KAAQ;AACvE,EAAA,MAAM,MAAA,GAAW,GAAA,CAAI,IAAA,CAAK,IAAA,EAA+C,UAAU,EAAC;AAEpF,EAAA,MAAM,MAAA,GAAS,MAAM,oBAAA,CAAqB;AAAA,IACxC,MAAA;AAAA,IACA,KAAA,EAAO,IAAI,MAAA,EAAQ;AAAA,GACpB,CAAA;A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AAA,EAAU,2BAAA,EAA4B;AAAA,EACpE,EAAE,GAAG,uBAAA,EAAyB,QAAA,EAAU,2BAAA,EAA4B;AAAA,EACpE,EAAE,GAAG,0BAAA,EAA4B,QAAA,EAAU,8BAAA;AAC7C","file":"flow.js","sourcesContent":["/**\n * GENERATED FILE — do not edit.\n *\n * Emitted from provider/actions/ + triggers/ by weaver's generator.\n * A hand-edit here is destroyed by the next protocol sync, which is worse than\n * being rejected, because it works until it silently does not. Fix\n * provider/actions/ + triggers/ (or weaver's template/) and regenerate:\n *\n * npm run provider -- hubspot\n */\n\n/**\n * HubSpot's node kinds with their TypeScript executors attached — for hosts\n * that EXECUTE on TS.\n *\n * The authoring surface in @particle-academy/hubspot-ui carries no executor:\n * the editor is React on every host, so a PHP or Python project installs the\n * ui package and never this one.\n */\n\nimport type { NodeExecutor, NodeKindDefinition } from \"@particle-academy/fancy-flow/engine\";\nimport {\n idempotencyKeyFor,\n NO_IDEMPOTENCY_KEY_WARNING,\n resolveConnection,\n triggerEvent,\n type RequestedMode,\n} from \"@particle-academy/fancy-connector-core\";\nimport { HUBSPOT } from \"./service.js\";\n\nimport {\n hubspotCompanyCreateKind,\n hubspotCompanyGetKind,\n hubspotCompanyListKind,\n hubspotCompanySearchKind,\n hubspotCompanyUpdateKind,\n hubspotContactCreateKind,\n hubspotContactGetKind,\n hubspotContactListKind,\n hubspotContactSearchKind,\n hubspotContactUpdateKind,\n hubspotDealCreateKind,\n hubspotDealGetKind,\n hubspotDealListKind,\n hubspotDealSearchKind,\n hubspotDealUpdateKind,\n hubspotOwnerListKind,\n hubspotPipelineListKind,\n hubspotPropertyListKind,\n hubspotCrmEventTriggerKind,\n} from \"@particle-academy/hubspot-ui\";\n\nimport { hubspotCompanyCreate } from \"./actions/company-create.js\";\nimport { hubspotCompanyGet } from \"./actions/company-get.js\";\nimport { hubspotCompanyList } from \"./actions/company-list.js\";\nimport { hubspotCompanySearch } from \"./actions/company-search.js\";\nimport { hubspotCompanyUpdate } from \"./actions/company-update.js\";\nimport { hubspotContactCreate } from \"./actions/contact-create.js\";\nimport { hubspotContactGet } from \"./actions/contact-get.js\";\nimport { hubspotContactList } from \"./actions/contact-list.js\";\nimport { hubspotContactSearch } from \"./actions/contact-search.js\";\nimport { hubspotContactUpdate } from \"./actions/contact-update.js\";\nimport { hubspotDealCreate } from \"./actions/deal-create.js\";\nimport { hubspotDealGet } from \"./actions/deal-get.js\";\nimport { hubspotDealList } from \"./actions/deal-list.js\";\nimport { hubspotDealSearch } from \"./actions/deal-search.js\";\nimport { hubspotDealUpdate } from \"./actions/deal-update.js\";\nimport { hubspotOwnerList } from \"./actions/owner-list.js\";\nimport { hubspotPipelineList } from \"./actions/pipeline-list.js\";\nimport { hubspotPropertyList } from \"./actions/property-list.js\";\nimport { HUBSPOT_CRM_EVENT } from \"./triggers/crm-event.js\";\n\nexport const hubspotCompanyCreateExecutor: NodeExecutor = async (ctx) => {\n const config = ((ctx.node.data as { config?: Record<string, unknown> })?.config ?? {});\n\n const result = await hubspotCompanyCreate({\n config,\n input: ctx.inputs?.in,\n });\n\n ctx.emit({\n type: \"log\",\n level: \"info\",\n nodeId: ctx.node.id,\n message: `hubspot company_create ${(result.data as { id?: string })?.id} (${result.mode})`,\n });\n\n return { __port: \"out\", value: result };\n};\n\nexport const hubspotCompanyGetExecutor: NodeExecutor = async (ctx) => {\n const config = ((ctx.node.data as { config?: Record<string, unknown> })?.config ?? {});\n\n const result = await hubspotCompanyGet({\n config,\n input: ctx.inputs?.in,\n });\n\n ctx.emit({\n type: \"log\",\n level: \"info\",\n nodeId: ctx.node.id,\n message: `hubspot company_get ${(result.data as { id?: string })?.id} (${result.mode})`,\n });\n\n return { __port: \"out\", value: result };\n};\n\nexport const hubspotCompanyListExecutor: NodeExecutor = async (ctx) => {\n const config = ((ctx.node.data as { config?: Record<string, unknown> })?.config ?? {});\n\n const result = await hubspotCompanyList({\n config,\n input: ctx.inputs?.in,\n });\n\n ctx.emit({\n type: \"log\",\n level: \"info\",\n nodeId: ctx.node.id,\n message: `hubspot company_list ${(result.data as { id?: string })?.id} (${result.mode})`,\n });\n\n return { __port: \"out\", value: result };\n};\n\nexport const hubspotCompanySearchExecutor: NodeExecutor = async (ctx) => {\n const config = ((ctx.node.data as { config?: Record<string, unknown> })?.config ?? {});\n\n const result = await hubspotCompanySearch({\n config,\n input: ctx.inputs?.in,\n });\n\n ctx.emit({\n type: \"log\",\n level: \"info\",\n nodeId: ctx.node.id,\n message: `hubspot company_search ${(result.data as { id?: string })?.id} (${result.mode})`,\n });\n\n return { __port: \"out\", value: result };\n};\n\nexport const hubspotCompanyUpdateExecutor: NodeExecutor = async (ctx) => {\n const config = ((ctx.node.data as { config?: Record<string, unknown> })?.config ?? {});\n\n const result = await hubspotCompanyUpdate({\n config,\n input: ctx.inputs?.in,\n });\n\n ctx.emit({\n type: \"log\",\n level: \"info\",\n nodeId: ctx.node.id,\n message: `hubspot company_update ${(result.data as { id?: string })?.id} (${result.mode})`,\n });\n\n return { __port: \"out\", value: result };\n};\n\nexport const hubspotContactCreateExecutor: NodeExecutor = async (ctx) => {\n const config = ((ctx.node.data as { config?: Record<string, unknown> })?.config ?? {});\n\n const result = await hubspotContactCreate({\n config,\n input: ctx.inputs?.in,\n });\n\n ctx.emit({\n type: \"log\",\n level: \"info\",\n nodeId: ctx.node.id,\n message: `hubspot contact_create ${(result.data as { id?: string })?.id} (${result.mode})`,\n });\n\n return { __port: \"out\", value: result };\n};\n\nexport const hubspotContactGetExecutor: NodeExecutor = async (ctx) => {\n const config = ((ctx.node.data as { config?: Record<string, unknown> })?.config ?? {});\n\n const result = await hubspotContactGet({\n config,\n input: ctx.inputs?.in,\n });\n\n ctx.emit({\n type: \"log\",\n level: \"info\",\n nodeId: ctx.node.id,\n message: `hubspot contact_get ${(result.data as { id?: string })?.id} (${result.mode})`,\n });\n\n return { __port: \"out\", value: result };\n};\n\nexport const hubspotContactListExecutor: NodeExecutor = async (ctx) => {\n const config = ((ctx.node.data as { config?: Record<string, unknown> })?.config ?? {});\n\n const result = await hubspotContactList({\n config,\n input: ctx.inputs?.in,\n });\n\n ctx.emit({\n type: \"log\",\n level: \"info\",\n nodeId: ctx.node.id,\n message: `hubspot contact_list ${(result.data as { id?: string })?.id} (${result.mode})`,\n });\n\n return { __port: \"out\", value: result };\n};\n\nexport const hubspotContactSearchExecutor: NodeExecutor = async (ctx) => {\n const config = ((ctx.node.data as { config?: Record<string, unknown> })?.config ?? {});\n\n const result = await hubspotContactSearch({\n config,\n input: ctx.inputs?.in,\n });\n\n ctx.emit({\n type: \"log\",\n level: \"info\",\n nodeId: ctx.node.id,\n message: `hubspot contact_search ${(result.data as { id?: string })?.id} (${result.mode})`,\n });\n\n return { __port: \"out\", value: result };\n};\n\nexport const hubspotContactUpdateExecutor: NodeExecutor = async (ctx) => {\n const config = ((ctx.node.data as { config?: Record<string, unknown> })?.config ?? {});\n\n const result = await hubspotContactUpdate({\n config,\n input: ctx.inputs?.in,\n });\n\n ctx.emit({\n type: \"log\",\n level: \"info\",\n nodeId: ctx.node.id,\n message: `hubspot contact_update ${(result.data as { id?: string })?.id} (${result.mode})`,\n });\n\n return { __port: \"out\", value: result };\n};\n\nexport const hubspotDealCreateExecutor: NodeExecutor = async (ctx) => {\n const config = ((ctx.node.data as { config?: Record<string, unknown> })?.config ?? {});\n\n const result = await hubspotDealCreate({\n config,\n input: ctx.inputs?.in,\n });\n\n ctx.emit({\n type: \"log\",\n level: \"info\",\n nodeId: ctx.node.id,\n message: `hubspot deal_create ${(result.data as { id?: string })?.id} (${result.mode})`,\n });\n\n return { __port: \"out\", value: result };\n};\n\nexport const hubspotDealGetExecutor: NodeExecutor = async (ctx) => {\n const config = ((ctx.node.data as { config?: Record<string, unknown> })?.config ?? {});\n\n const result = await hubspotDealGet({\n config,\n input: ctx.inputs?.in,\n });\n\n ctx.emit({\n type: \"log\",\n level: \"info\",\n nodeId: ctx.node.id,\n message: `hubspot deal_get ${(result.data as { id?: string })?.id} (${result.mode})`,\n });\n\n return { __port: \"out\", value: result };\n};\n\nexport const hubspotDealListExecutor: NodeExecutor = async (ctx) => {\n const config = ((ctx.node.data as { config?: Record<string, unknown> })?.config ?? {});\n\n const result = await hubspotDealList({\n config,\n input: ctx.inputs?.in,\n });\n\n ctx.emit({\n type: \"log\",\n level: \"info\",\n nodeId: ctx.node.id,\n message: `hubspot deal_list ${(result.data as { id?: string })?.id} (${result.mode})`,\n });\n\n return { __port: \"out\", value: result };\n};\n\nexport const hubspotDealSearchExecutor: NodeExecutor = async (ctx) => {\n const config = ((ctx.node.data as { config?: Record<string, unknown> })?.config ?? {});\n\n const result = await hubspotDealSearch({\n config,\n input: ctx.inputs?.in,\n });\n\n ctx.emit({\n type: \"log\",\n level: \"info\",\n nodeId: ctx.node.id,\n message: `hubspot deal_search ${(result.data as { id?: string })?.id} (${result.mode})`,\n });\n\n return { __port: \"out\", value: result };\n};\n\nexport const hubspotDealUpdateExecutor: NodeExecutor = async (ctx) => {\n const config = ((ctx.node.data as { config?: Record<string, unknown> })?.config ?? {});\n\n const result = await hubspotDealUpdate({\n config,\n input: ctx.inputs?.in,\n });\n\n ctx.emit({\n type: \"log\",\n level: \"info\",\n nodeId: ctx.node.id,\n message: `hubspot deal_update ${(result.data as { id?: string })?.id} (${result.mode})`,\n });\n\n return { __port: \"out\", value: result };\n};\n\nexport const hubspotOwnerListExecutor: NodeExecutor = async (ctx) => {\n const config = ((ctx.node.data as { config?: Record<string, unknown> })?.config ?? {});\n\n const result = await hubspotOwnerList({\n config,\n input: ctx.inputs?.in,\n });\n\n ctx.emit({\n type: \"log\",\n level: \"info\",\n nodeId: ctx.node.id,\n message: `hubspot owner_list ${(result.data as { id?: string })?.id} (${result.mode})`,\n });\n\n return { __port: \"out\", value: result };\n};\n\nexport const hubspotPipelineListExecutor: NodeExecutor = async (ctx) => {\n const config = ((ctx.node.data as { config?: Record<string, unknown> })?.config ?? {});\n\n const result = await hubspotPipelineList({\n config,\n input: ctx.inputs?.in,\n });\n\n ctx.emit({\n type: \"log\",\n level: \"info\",\n nodeId: ctx.node.id,\n message: `hubspot pipeline_list ${(result.data as { id?: string })?.id} (${result.mode})`,\n });\n\n return { __port: \"out\", value: result };\n};\n\nexport const hubspotPropertyListExecutor: NodeExecutor = async (ctx) => {\n const config = ((ctx.node.data as { config?: Record<string, unknown> })?.config ?? {});\n\n const result = await hubspotPropertyList({\n config,\n input: ctx.inputs?.in,\n });\n\n ctx.emit({\n type: \"log\",\n level: \"info\",\n nodeId: ctx.node.id,\n message: `hubspot property_list ${(result.data as { id?: string })?.id} (${result.mode})`,\n });\n\n return { __port: \"out\", value: result };\n};\n\nexport const hubspotCrmEventTriggerExecutor: NodeExecutor = async (ctx) => {\n const config = ((ctx.node.data as { config?: Record<string, unknown> })?.config ?? {});\n const connection = resolveConnection({\n service: HUBSPOT.service,\n operation: \"crm_event\",\n sandbox: HUBSPOT.sandbox,\n baseUrls: HUBSPOT.baseUrls,\n requires: HUBSPOT.requires,\n connectionId: typeof config.connection === \"string\" ? config.connection : null,\n requested: typeof config.mode === \"string\" ? (config.mode as RequestedMode) : null,\n });\n\n const event = triggerEvent(HUBSPOT_CRM_EVENT, connection, ctx.inputs?.in, config);\n\n return { __port: \"out\", value: event };\n};\n\n/** The kinds a TypeScript host registers. */\nexport const HUBSPOT_RUNNABLE_KINDS: NodeKindDefinition[] = [\n { ...hubspotCompanyCreateKind, executor: hubspotCompanyCreateExecutor },\n { ...hubspotCompanyGetKind, executor: hubspotCompanyGetExecutor },\n { ...hubspotCompanyListKind, executor: hubspotCompanyListExecutor },\n { ...hubspotCompanySearchKind, executor: hubspotCompanySearchExecutor },\n { ...hubspotCompanyUpdateKind, executor: hubspotCompanyUpdateExecutor },\n { ...hubspotContactCreateKind, executor: hubspotContactCreateExecutor },\n { ...hubspotContactGetKind, executor: hubspotContactGetExecutor },\n { ...hubspotContactListKind, executor: hubspotContactListExecutor },\n { ...hubspotContactSearchKind, executor: hubspotContactSearchExecutor },\n { ...hubspotContactUpdateKind, executor: hubspotContactUpdateExecutor },\n { ...hubspotDealCreateKind, executor: hubspotDealCreateExecutor },\n { ...hubspotDealGetKind, executor: hubspotDealGetExecutor },\n { ...hubspotDealListKind, executor: hubspotDealListExecutor },\n { ...hubspotDealSearchKind, executor: hubspotDealSearchExecutor },\n { ...hubspotDealUpdateKind, executor: hubspotDealUpdateExecutor },\n { ...hubspotOwnerListKind, executor: hubspotOwnerListExecutor },\n { ...hubspotPipelineListKind, executor: hubspotPipelineListExecutor },\n { ...hubspotPropertyListKind, executor: hubspotPropertyListExecutor },\n { ...hubspotCrmEventTriggerKind, executor: hubspotCrmEventTriggerExecutor },\n];\n"]}
package/dist/index.cjs CHANGED
@@ -394,6 +394,37 @@ function fakePropertyList({ config, fake }) {
394
394
  ]
395
395
  };
396
396
  }
397
+ function fakeCrmEvent({ config, fake }) {
398
+ return [
399
+ {
400
+ "eventId": 531833541,
401
+ "subscriptionId": 3923621,
402
+ "portalId": 48807704,
403
+ "appId": 16111050,
404
+ "occurredAt": 1752613920733,
405
+ "subscriptionType": "contact.creation",
406
+ "attemptNumber": 0,
407
+ "objectId": 138017612137,
408
+ "changeFlag": "CREATED",
409
+ "changeSource": "CRM_UI",
410
+ "sourceId": "userId:76023669"
411
+ },
412
+ {
413
+ "eventId": 531833542,
414
+ "subscriptionId": 3923622,
415
+ "portalId": 48807704,
416
+ "appId": 16111050,
417
+ "occurredAt": 1752613921e3,
418
+ "subscriptionType": "deal.propertyChange",
419
+ "attemptNumber": 0,
420
+ "objectId": 9876543210,
421
+ "propertyName": "dealstage",
422
+ "propertyValue": "closedwon",
423
+ "changeSource": "CRM_UI",
424
+ "sourceId": "userId:76023669"
425
+ }
426
+ ];
427
+ }
397
428
  var hubspotFaker = (operation, request) => {
398
429
  switch (operation) {
399
430
  case "company_create":
@@ -432,6 +463,8 @@ var hubspotFaker = (operation, request) => {
432
463
  return fakePipelineList(request);
433
464
  case "property_list":
434
465
  return fakePropertyList(request);
466
+ case "crm_event":
467
+ return fakeCrmEvent(request);
435
468
  default:
436
469
  throw new Error(
437
470
  `hubspot: no fake response is defined for "${operation}". Add a fixture under provider/fixtures/ and regenerate \u2014 a connector without a faker cannot be developed against, tested, or demonstrated.`
@@ -1082,6 +1115,33 @@ async function hubspotPropertyList(options) {
1082
1115
  }
1083
1116
  });
1084
1117
  }
1118
+ var HUBSPOT_CRM_EVENT_SIGNATURE_HEADER = "X-HubSpot-Signature-v3";
1119
+ var HUBSPOT_CRM_EVENT_TOLERANCE = 300;
1120
+ var HUBSPOT_CRM_EVENT_SCHEME = {
1121
+ algorithm: "SHA-256",
1122
+ payload: (raw, timestamp, _id, request) => `${request?.method ?? ""}${request?.uri ?? ""}${raw}${timestamp}`,
1123
+ tolerance: HUBSPOT_CRM_EVENT_TOLERANCE,
1124
+ timestampUnit: "ms",
1125
+ signsRequestLine: true,
1126
+ uri: "hubspot-v3",
1127
+ encoding: "base64"
1128
+ };
1129
+ var HUBSPOT_CRM_EVENT = {
1130
+ service: "hubspot",
1131
+ operation: "crm_event",
1132
+ delivery: "webhook",
1133
+ setup: "In the HubSpot app's webhook settings, set the target URL to the route your host mounts for this trigger and subscribe to the deal, contact and company events you want. Deliveries are signed with the app's client secret, already on the connection as `clientSecret`. ONE URL serves every portal that installed the app, so route each event by its portalId, and only after the signature has verified: map portalId to the connection created when that portal installed, and drop an unmapped portalId with a 2xx and a log line, creating nothing.",
1134
+ verification: {
1135
+ signatureHeader: HUBSPOT_CRM_EVENT_SIGNATURE_HEADER,
1136
+ scheme: HUBSPOT_CRM_EVENT_SCHEME,
1137
+ timestampHeader: "X-HubSpot-Request-Timestamp"
1138
+ },
1139
+ route: { by: "portalId", path: "[].portalId" },
1140
+ faker: hubspotFaker
1141
+ };
1142
+ function verifyHubspotDelivery(delivery, clientSecret, now) {
1143
+ return fancyConnectorCore.verifyDelivery(HUBSPOT_CRM_EVENT, delivery, clientSecret, now);
1144
+ }
1085
1145
 
1086
1146
  exports.COMPANY_CREATE_OPERATION = COMPANY_CREATE_OPERATION;
1087
1147
  exports.COMPANY_GET_OPERATION = COMPANY_GET_OPERATION;
@@ -1101,6 +1161,10 @@ exports.DEAL_SEARCH_OPERATION = DEAL_SEARCH_OPERATION;
1101
1161
  exports.DEAL_UPDATE_OPERATION = DEAL_UPDATE_OPERATION;
1102
1162
  exports.HUBSPOT = HUBSPOT;
1103
1163
  exports.HUBSPOT_BASE_URLS = HUBSPOT_BASE_URLS;
1164
+ exports.HUBSPOT_CRM_EVENT = HUBSPOT_CRM_EVENT;
1165
+ exports.HUBSPOT_CRM_EVENT_SCHEME = HUBSPOT_CRM_EVENT_SCHEME;
1166
+ exports.HUBSPOT_CRM_EVENT_SIGNATURE_HEADER = HUBSPOT_CRM_EVENT_SIGNATURE_HEADER;
1167
+ exports.HUBSPOT_CRM_EVENT_TOLERANCE = HUBSPOT_CRM_EVENT_TOLERANCE;
1104
1168
  exports.HUBSPOT_REQUIRES = HUBSPOT_REQUIRES;
1105
1169
  exports.OWNER_LIST_OPERATION = OWNER_LIST_OPERATION;
1106
1170
  exports.PIPELINE_LIST_OPERATION = PIPELINE_LIST_OPERATION;
@@ -1125,5 +1189,6 @@ exports.hubspotFaker = hubspotFaker;
1125
1189
  exports.hubspotOwnerList = hubspotOwnerList;
1126
1190
  exports.hubspotPipelineList = hubspotPipelineList;
1127
1191
  exports.hubspotPropertyList = hubspotPropertyList;
1192
+ exports.verifyHubspotDelivery = verifyHubspotDelivery;
1128
1193
  //# sourceMappingURL=index.cjs.map
1129
1194
  //# sourceMappingURL=index.cjs.map