@thegraphitelab/n8n-nodes-servicetitan 0.10.0 → 0.10.1

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.
@@ -7,9 +7,9 @@ const ServiceTitanTriggerV1_node_1 = require("./v1/ServiceTitanTriggerV1.node");
7
7
  class ServiceTitanTrigger extends n8n_workflow_1.VersionedNodeType {
8
8
  constructor() {
9
9
  const nodeVersions = {
10
- 1: new ServiceTitanTriggerV1_node_1.ServiceTitanTriggerV1(node_description_1.baseDescription),
10
+ 1: new ServiceTitanTriggerV1_node_1.ServiceTitanTriggerV1(node_description_1.triggerBaseDescription),
11
11
  };
12
- super(nodeVersions, node_description_1.baseDescription);
12
+ super(nodeVersions, node_description_1.triggerBaseDescription);
13
13
  }
14
14
  }
15
15
  exports.ServiceTitanTrigger = ServiceTitanTrigger;
@@ -1 +1 @@
1
- {"version":3,"file":"ServiceTitanTrigger.node.js","sourceRoot":"","sources":["../../../nodes/ServiceTitan/ServiceTitanTrigger.node.ts"],"names":[],"mappings":";;;AAAA,+CAAqE;AACrE,yEAAqE;AACrE,gFAAwE;AAExE,MAAa,mBAAoB,SAAQ,gCAAiB;IACtD;QACI,MAAM,YAAY,GAAuC;YACrD,CAAC,EAAE,IAAI,kDAAqB,CAAC,kCAAe,CAAC;SAChD,CAAC;QAEF,KAAK,CAAC,YAAY,EAAE,kCAAe,CAAC,CAAC;IACzC,CAAC;CACJ;AARD,kDAQC"}
1
+ {"version":3,"file":"ServiceTitanTrigger.node.js","sourceRoot":"","sources":["../../../nodes/ServiceTitan/ServiceTitanTrigger.node.ts"],"names":[],"mappings":";;;AAAA,+CAAqE;AACrE,yEAA4E;AAC5E,gFAAwE;AAExE,MAAa,mBAAoB,SAAQ,gCAAiB;IACtD;QACI,MAAM,YAAY,GAAuC;YACrD,CAAC,EAAE,IAAI,kDAAqB,CAAC,yCAAsB,CAAC;SACvD,CAAC;QAEF,KAAK,CAAC,YAAY,EAAE,yCAAsB,CAAC,CAAC;IAChD,CAAC;CACJ;AARD,kDAQC"}
@@ -1,5 +1,6 @@
1
1
  import { INodeTypeDescription, INodeTypeBaseDescription } from "n8n-workflow";
2
2
  export declare const baseDescription: INodeTypeBaseDescription;
3
+ export declare const triggerBaseDescription: INodeTypeBaseDescription;
3
4
  /**
4
5
  * Action node for ServiceTitan.
5
6
  *
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.description = exports.baseDescription = void 0;
3
+ exports.description = exports.triggerBaseDescription = exports.baseDescription = void 0;
4
4
  /* eslint-disable n8n-nodes-base/node-filename-against-convention */
5
5
  const n8n_workflow_1 = require("n8n-workflow");
6
6
  const get_1 = require("../actions/_generated/get");
@@ -16,6 +16,25 @@ exports.baseDescription = {
16
16
  description: "Interact with ServiceTitan API",
17
17
  defaultVersion: 1,
18
18
  };
19
+ // Separate base description for the TRIGGER node. n8n registers node types by
20
+ // the VersionedNodeType base `name`, so the trigger MUST NOT reuse the action's
21
+ // `baseDescription` (name "serviceTitan") — sharing the name collides the two
22
+ // node types and the community loader drops one (actions vanished, triggers
23
+ // remained). Its own name "serviceTitanTrigger" keeps both registered, and the
24
+ // action/trigger tile still merges since
25
+ // "serviceTitanTrigger".replace("Trigger","") === "serviceTitan".
26
+ exports.triggerBaseDescription = {
27
+ displayName: "ServiceTitan Trigger",
28
+ name: "serviceTitanTrigger",
29
+ group: ["trigger"],
30
+ icon: {
31
+ light: "file:servicetitan.svg",
32
+ dark: "file:servicetitan.dark.svg",
33
+ },
34
+ subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
35
+ description: "Starts a workflow on ServiceTitan events",
36
+ defaultVersion: 1,
37
+ };
19
38
  /**
20
39
  * Action node for ServiceTitan.
21
40
  *
@@ -1 +1 @@
1
- {"version":3,"file":"node.description.js","sourceRoot":"","sources":["../../../../../nodes/ServiceTitan/v1/descriptions/node.description.ts"],"names":[],"mappings":";;;AAAA,oEA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IAAI,CAAC;IACnC,WAAW,EAAE;QACX;YACE,IAAI,EAAE,iBAAiB;YACvB,QAAQ,EAAE,IAAI;SACf;KACF;IACD,eAAe,EAAE;QACf,OAAO,EACL,oHAAoH;QACtH,OAAO,EAAE;YACP,cAAc,EAAE,kBAAkB;YAClC,MAAM,EAAE,kBAAkB;SAC3B;KACF;IACD,UAAU,EAAE;QACV;YACE,WAAW,EAAE,UAAU;YACvB,IAAI,EAAE,UAAU;YAChB,IAAI,EAAE,SAAS;YACf,gBAAgB,EAAE,IAAI;YACtB,OAAO,EAAE,2BAAqB;YAC9B,OAAO,EAAE,UAAU;SACpB;QACD,GAAG,gBAAmB;KACvB;CACF,CAAC"}
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thegraphitelab/n8n-nodes-servicetitan",
3
- "version": "0.10.0",
3
+ "version": "0.10.1",
4
4
  "description": "n8n custom node for ServiceTitan — TGL internal use.",
5
5
  "keywords": [
6
6
  "n8n-community-node-package",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thegraphitelab/n8n-nodes-servicetitan",
3
- "version": "0.10.0",
3
+ "version": "0.10.1",
4
4
  "description": "n8n custom node for ServiceTitan — TGL internal use.",
5
5
  "keywords": [
6
6
  "n8n-community-node-package",