n8n-nodes-trustmarkt 0.1.6 → 0.2.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.
Files changed (43) hide show
  1. package/README.md +9 -1
  2. package/dist/credentials/TrustmarktApi.credentials.js +1 -1
  3. package/dist/credentials/TrustmarktApi.credentials.js.map +1 -1
  4. package/dist/credentials/trustmarkt-dark.svg +35 -0
  5. package/dist/icons/trustmarkt-dark.svg +35 -0
  6. package/dist/nodes/Trustmarkt/Trustmarkt.node.js +26 -2
  7. package/dist/nodes/Trustmarkt/Trustmarkt.node.js.map +1 -1
  8. package/dist/nodes/Trustmarkt/Trustmarkt.node.json +1 -1
  9. package/dist/nodes/Trustmarkt/TrustmarktTrigger.node.js +3 -3
  10. package/dist/nodes/Trustmarkt/TrustmarktTrigger.node.js.map +1 -1
  11. package/dist/nodes/Trustmarkt/TrustmarktTrigger.node.json +1 -1
  12. package/dist/nodes/Trustmarkt/resources/lead/index.d.ts +3 -0
  13. package/dist/nodes/Trustmarkt/resources/lead/index.js +29 -0
  14. package/dist/nodes/Trustmarkt/resources/lead/index.js.map +1 -0
  15. package/dist/nodes/Trustmarkt/resources/lead/operations/get.d.ts +3 -0
  16. package/dist/nodes/Trustmarkt/resources/lead/operations/get.js +66 -0
  17. package/dist/nodes/Trustmarkt/resources/lead/operations/get.js.map +1 -0
  18. package/dist/nodes/Trustmarkt/resources/lead/operations/list.d.ts +3 -0
  19. package/dist/nodes/Trustmarkt/resources/lead/operations/list.js +111 -0
  20. package/dist/nodes/Trustmarkt/resources/lead/operations/list.js.map +1 -0
  21. package/dist/nodes/Trustmarkt/resources/resource/index.d.ts +3 -0
  22. package/dist/nodes/Trustmarkt/resources/resource/index.js +29 -0
  23. package/dist/nodes/Trustmarkt/resources/resource/index.js.map +1 -0
  24. package/dist/nodes/Trustmarkt/resources/resource/operations/get.d.ts +3 -0
  25. package/dist/nodes/Trustmarkt/resources/resource/operations/get.js +70 -0
  26. package/dist/nodes/Trustmarkt/resources/resource/operations/get.js.map +1 -0
  27. package/dist/nodes/Trustmarkt/resources/resource/operations/list.d.ts +3 -0
  28. package/dist/nodes/Trustmarkt/resources/resource/operations/list.js +102 -0
  29. package/dist/nodes/Trustmarkt/resources/resource/operations/list.js.map +1 -0
  30. package/dist/nodes/Trustmarkt/resources/review/operations/get.js +5 -0
  31. package/dist/nodes/Trustmarkt/resources/review/operations/get.js.map +1 -1
  32. package/dist/nodes/Trustmarkt/resources/review/operations/list.js +5 -0
  33. package/dist/nodes/Trustmarkt/resources/review/operations/list.js.map +1 -1
  34. package/dist/nodes/Trustmarkt/resources/reviewCollector/index.d.ts +3 -0
  35. package/dist/nodes/Trustmarkt/resources/reviewCollector/index.js +26 -0
  36. package/dist/nodes/Trustmarkt/resources/reviewCollector/index.js.map +1 -0
  37. package/dist/nodes/Trustmarkt/resources/reviewCollector/operations/list.d.ts +3 -0
  38. package/dist/nodes/Trustmarkt/resources/reviewCollector/operations/list.js +126 -0
  39. package/dist/nodes/Trustmarkt/resources/reviewCollector/operations/list.js.map +1 -0
  40. package/dist/nodes/Trustmarkt/trustmarkt-dark.svg +35 -0
  41. package/dist/package.json +2 -2
  42. package/dist/tsconfig.tsbuildinfo +1 -1
  43. package/package.json +3 -3
package/README.md CHANGED
@@ -27,18 +27,26 @@ Follow the [installation guide](https://docs.n8n.io/integrations/community-nodes
27
27
  - **Inquiry**
28
28
  - Get an inquiry
29
29
  - Get many inquiries
30
+ - **Lead**
31
+ - Get a lead
32
+ - Get many leads (optionally filtered by resource)
30
33
  - **Me**
31
34
  - Get authenticated user info
35
+ - **Resource** (lead magnet)
36
+ - Get a resource
37
+ - Get many resources
32
38
  - **Review**
33
39
  - Get a review
34
40
  - Get many reviews
41
+ - **Review Collector**
42
+ - Get many review collectors (leaderboard of team members and the reviews they collected via their personal review link within a date range)
35
43
  - **User**
36
44
  - Get a user
37
45
  - Get many users
38
46
 
39
47
  ### Trustmarkt Trigger Node
40
48
 
41
- Starts the workflow when Trustmarkt events occur via webhooks. Events are loaded dynamically from the API.
49
+ Starts the workflow when Trustmarkt events occur via webhooks. Events are loaded dynamically from the API, so newly added events (e.g. `lead.created`, `lead.verified`, `resource.published`) are available without updating this package.
42
50
 
43
51
  ## Credentials
44
52
 
@@ -5,7 +5,7 @@ class TrustmarktApi {
5
5
  constructor() {
6
6
  this.name = 'trustmarktApi';
7
7
  this.displayName = 'Trustmarkt API';
8
- this.icon = 'file:trustmarkt.svg';
8
+ this.icon = { light: 'file:trustmarkt.svg', dark: 'file:trustmarkt-dark.svg' };
9
9
  this.documentationUrl = 'https://www.trustmarkt.de/r/api';
10
10
  this.properties = [
11
11
  {
@@ -1 +1 @@
1
- {"version":3,"file":"TrustmarktApi.credentials.js","sourceRoot":"","sources":["../../credentials/TrustmarktApi.credentials.ts"],"names":[],"mappings":";;;AAoBA,MAAa,aAAa;IAA1B;QAEC,SAAI,GAAG,eAAe,CAAC;QAGvB,gBAAW,GAAG,gBAAgB,CAAC;QAG/B,SAAI,GAAS,qBAAqB,CAAC;QAGnC,qBAAgB,GAAG,iCAAiC,CAAC;QAKrD,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,SAAS;gBACtB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE;oBACZ,QAAQ,EAAE,IAAI;iBACd;gBACD,OAAO,EAAE,EAAE;gBACX,QAAQ,EAAE,IAAI;gBACd,WAAW,EAAE,yBAAyB;aACtC;SACD,CAAC;QAuBF,SAAI,GAA2B;YAC9B,OAAO,EAAE;gBACR,OAAO,EAAE,8BAA8B;gBACvC,GAAG,EAAE,KAAK;gBACV,MAAM,EAAE,KAAK;aACb;SACD,CAAC;IACH,CAAC;IAzBA,KAAK,CAAC,YAAY,CACjB,WAA2C,EAC3C,cAAmC;;QAEnC,IAAI,MAAM,GAAG,MAAM,CAAC,MAAA,WAAW,CAAC,MAAM,mCAAI,EAAE,CAAC,CAAC;QAG9C,MAAM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,GAAG,MAAA,cAAc,CAAC,OAAO,mCAAI,EAAE,CAAC;QACtD,cAAc,CAAC,OAAO,CAAC,aAAa,GAAG,UAAU,MAAM,EAAE,CAAC;QAE1D,OAAO,cAAc,CAAC;IACvB,CAAC;CAYD;AA1DD,sCA0DC"}
@@ -0,0 +1,35 @@
1
+ <svg id="Ebene_1" xmlns="http://www.w3.org/2000/svg" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 100.02 100.01">
2
+ <defs>
3
+ <style>
4
+ .st0 {
5
+ fill: url(#Unbenannter_Verlauf_2);
6
+ isolation: isolate;
7
+ opacity: .2;
8
+ }
9
+
10
+ .st1 {
11
+ fill: #fff;
12
+ }
13
+
14
+ .st2 {
15
+ fill: #00b67a;
16
+ }
17
+ </style>
18
+ <linearGradient id="Unbenannter_Verlauf_2" data-name="Unbenannter Verlauf 2" x1="-235.86" y1="222.99" x2="-234.86" y2="222.99" gradientTransform="translate(23590.48 17434.08) scale(100.02 -78.01)" gradientUnits="userSpaceOnUse">
19
+ <stop offset=".29" stop-color="#0fa4b3"/>
20
+ <stop offset=".37" stop-color="#44b8c3"/>
21
+ <stop offset=".45" stop-color="#75cad3"/>
22
+ <stop offset=".54" stop-color="#9fdae0"/>
23
+ <stop offset=".63" stop-color="#c2e7eb"/>
24
+ <stop offset=".72" stop-color="#dcf2f4"/>
25
+ <stop offset=".81" stop-color="#cfeff0"/>
26
+ <stop offset=".9" stop-color="#d4f3e8"/>
27
+ <stop offset="1" stop-color="#cdefe3"/>
28
+ </linearGradient>
29
+ </defs>
30
+ <g id="Stern">
31
+ <rect id="Box" class="st2" x="0" y="0" width="100" height="100" rx="5" ry="5"/>
32
+ <path id="Schatten" class="st0" d="M0,78.01V5.01C-.15,2.4,1.84.17,4.44,0c.19-.01.38-.01.57,0h90c2.6-.16,4.84,1.83,5,4.43.01.19.01.38,0,.57,0,15,.02,4.34,0,22C90.01,48.01,29.01,78.01,0,78.01Z"/>
33
+ <path id="Stern-2" class="st1" d="M51.28,17.39l9.72,20.5c.15.32.46.54.81.59l22.5,2.91c.57.07.97.6.9,1.17-.03.24-.14.46-.32.62l-16.5,15.58c-.26.24-.37.6-.31.95l4.19,22.3c.11.57-.27,1.11-.83,1.22-.23.04-.48,0-.69-.11l-19.91-10.88c-.31-.17-.69-.17-1,0l-19.91,10.88c-.51.27-1.14.09-1.41-.42-.12-.21-.15-.46-.11-.69l4.19-22.3c.07-.35-.05-.71-.31-.95l-16.5-15.58c-.42-.39-.44-1.05-.04-1.47.16-.18.39-.29.62-.32l22.5-2.91c.35-.05.66-.27.81-.59l9.72-20.5c.25-.52.87-.74,1.39-.49.21.1.39.28.49.49Z"/>
34
+ </g>
35
+ </svg>
@@ -0,0 +1,35 @@
1
+ <svg id="Ebene_1" xmlns="http://www.w3.org/2000/svg" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 100.02 100.01">
2
+ <defs>
3
+ <style>
4
+ .st0 {
5
+ fill: url(#Unbenannter_Verlauf_2);
6
+ isolation: isolate;
7
+ opacity: .2;
8
+ }
9
+
10
+ .st1 {
11
+ fill: #fff;
12
+ }
13
+
14
+ .st2 {
15
+ fill: #00b67a;
16
+ }
17
+ </style>
18
+ <linearGradient id="Unbenannter_Verlauf_2" data-name="Unbenannter Verlauf 2" x1="-235.86" y1="222.99" x2="-234.86" y2="222.99" gradientTransform="translate(23590.48 17434.08) scale(100.02 -78.01)" gradientUnits="userSpaceOnUse">
19
+ <stop offset=".29" stop-color="#0fa4b3"/>
20
+ <stop offset=".37" stop-color="#44b8c3"/>
21
+ <stop offset=".45" stop-color="#75cad3"/>
22
+ <stop offset=".54" stop-color="#9fdae0"/>
23
+ <stop offset=".63" stop-color="#c2e7eb"/>
24
+ <stop offset=".72" stop-color="#dcf2f4"/>
25
+ <stop offset=".81" stop-color="#cfeff0"/>
26
+ <stop offset=".9" stop-color="#d4f3e8"/>
27
+ <stop offset="1" stop-color="#cdefe3"/>
28
+ </linearGradient>
29
+ </defs>
30
+ <g id="Stern">
31
+ <rect id="Box" class="st2" x="0" y="0" width="100" height="100" rx="5" ry="5"/>
32
+ <path id="Schatten" class="st0" d="M0,78.01V5.01C-.15,2.4,1.84.17,4.44,0c.19-.01.38-.01.57,0h90c2.6-.16,4.84,1.83,5,4.43.01.19.01.38,0,.57,0,15,.02,4.34,0,22C90.01,48.01,29.01,78.01,0,78.01Z"/>
33
+ <path id="Stern-2" class="st1" d="M51.28,17.39l9.72,20.5c.15.32.46.54.81.59l22.5,2.91c.57.07.97.6.9,1.17-.03.24-.14.46-.32.62l-16.5,15.58c-.26.24-.37.6-.31.95l4.19,22.3c.11.57-.27,1.11-.83,1.22-.23.04-.48,0-.69-.11l-19.91-10.88c-.31-.17-.69-.17-1,0l-19.91,10.88c-.51.27-1.14.09-1.41-.42-.12-.21-.15-.46-.11-.69l4.19-22.3c.07-.35-.05-.71-.31-.95l-16.5-15.58c-.42-.39-.44-1.05-.04-1.47.16-.18.39-.29.62-.32l22.5-2.91c.35-.05.66-.27.81-.59l9.72-20.5c.25-.52.87-.74,1.39-.49.21.1.39.28.49.49Z"/>
34
+ </g>
35
+ </svg>
@@ -5,8 +5,11 @@ const n8n_workflow_1 = require("n8n-workflow");
5
5
  const article_1 = require("./resources/article");
6
6
  const caseStudy_1 = require("./resources/caseStudy");
7
7
  const inquiry_1 = require("./resources/inquiry");
8
+ const lead_1 = require("./resources/lead");
8
9
  const me_1 = require("./resources/me");
10
+ const resource_1 = require("./resources/resource");
9
11
  const review_1 = require("./resources/review");
12
+ const reviewCollector_1 = require("./resources/reviewCollector");
10
13
  const user_1 = require("./resources/user");
11
14
  const resourceOptions = [
12
15
  {
@@ -24,16 +27,31 @@ const resourceOptions = [
24
27
  value: 'inquiry',
25
28
  description: 'Manage incoming inquiries from potential customers',
26
29
  },
30
+ {
31
+ name: 'Lead',
32
+ value: 'lead',
33
+ description: 'Manage leads that signed up for your resources (lead magnets)',
34
+ },
27
35
  {
28
36
  name: 'Me',
29
37
  value: 'me',
30
38
  description: 'Get information about the authenticated user',
31
39
  },
40
+ {
41
+ name: 'Resource',
42
+ value: 'resource',
43
+ description: 'Manage resources (lead magnets) on your profile',
44
+ },
32
45
  {
33
46
  name: 'Review',
34
47
  value: 'review',
35
48
  description: 'Manage reviews on your Trustmarkt profile',
36
49
  },
50
+ {
51
+ name: 'Review Collector',
52
+ value: 'reviewCollector',
53
+ description: 'Leaderboard of team members and the reviews they collected via personal review links',
54
+ },
37
55
  {
38
56
  name: 'User',
39
57
  value: 'user',
@@ -45,11 +63,11 @@ class Trustmarkt {
45
63
  this.description = {
46
64
  displayName: 'Trustmarkt',
47
65
  name: 'trustmarkt',
48
- icon: 'file:trustmarkt.svg',
66
+ icon: { light: 'file:trustmarkt.svg', dark: 'file:trustmarkt-dark.svg' },
49
67
  group: ['transform'],
50
68
  version: 1,
51
69
  subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
52
- description: 'Interact with the Trustmarkt API to manage reviews, users, case studies, and more',
70
+ description: 'Interact with the Trustmarkt API to manage reviews, leads, resources, users, case studies, and more',
53
71
  defaults: {
54
72
  name: 'Trustmarkt',
55
73
  },
@@ -84,10 +102,16 @@ class Trustmarkt {
84
102
  ...caseStudy_1.caseStudyFields,
85
103
  ...inquiry_1.inquiryOperations,
86
104
  ...inquiry_1.inquiryFields,
105
+ ...lead_1.leadOperations,
106
+ ...lead_1.leadFields,
87
107
  ...me_1.meOperations,
88
108
  ...me_1.meFields,
109
+ ...resource_1.resourceOperations,
110
+ ...resource_1.resourceFields,
89
111
  ...review_1.reviewOperations,
90
112
  ...review_1.reviewFields,
113
+ ...reviewCollector_1.reviewCollectorOperations,
114
+ ...reviewCollector_1.reviewCollectorFields,
91
115
  ...user_1.userOperations,
92
116
  ...user_1.userFields,
93
117
  ],
@@ -1 +1 @@
1
- {"version":3,"file":"Trustmarkt.node.js","sourceRoot":"","sources":["../../../nodes/Trustmarkt/Trustmarkt.node.ts"],"names":[],"mappings":";;;AA8BA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AC1B,cAAc,EAAE,kBAAkB;iBACrC;aACJ;YAKD,UAAU,EAAE;gBAIR;oBACI,WAAW,EAAE,UAAU;oBACvB,IAAI,EAAE,UAAU;oBAChB,IAAI,EAAE,SAAS;oBACf,gBAAgB,EAAE,IAAI;oBACtB,OAAO,EAAE,eAAe;oBACxB,OAAO,EAAE,QAAQ;iBACpB;gBAMD,GAAG,2BAAiB;gBACpB,GAAG,uBAAa;gBAEhB,GAAG,+BAAmB;gBACtB,GAAG,2BAAe;gBAElB,GAAG,2BAAiB;gBACpB,GAAG,uBAAa;gBAEhB,GAAG,iBAAY;gBACf,GAAG,aAAQ;gBAEX,GAAG,yBAAgB;gBACnB,GAAG,qBAAY;gBAEf,GAAG,qBAAc;gBACjB,GAAG,iBAAU;aAChB;SACJ,CAAC;IACN,CAAC;CAAA;AApFD,gCAoFC"}
1
+ {"version":3,"file":"Trustmarkt.node.js","sourceRoot":"","sources":["../../../nodes/Trustmarkt/Trustmarkt.node.ts"],"names":[],"mappings":";;;AAgCA,+CAIsB;AAGtB,iDAAuE;AACvE,qDAA6E;AAC7E,iDAAuE;AACvE,2CAA8D;AAC9D,uCAAwD;AACxD,mDAA0E;AAC1E,+CAAoE;AACpE,iEAA+F;AAC/F,2CAA8D;AAM9D,MAAM,eAAe,GAAG;IACpB;QACI,IAAI,EAAE,SAAS;QACf,KAAK,EAAE,SAAS;QAChB,WAAW,EAAE,iCAAiC;KACjD;IACD;QACI,IAAI,EAAE,YAAY;QAClB,KAAK,EAAE,WAAW;QAClB,WAAW,EAAE,qCAAqC;KACrD;IACD;QACI,IAAI,EAAE,SAAS;QACf,KAAK,EAAE,SAAS;QAChB,WAAW,EAAE,oDAAoD;KACpE;IACD;QACI,IAAI,EAAE,MAAM;QACZ,KAAK,EAAE,MAAM;QACb,WAAW,EAAE,+DAA+D;KAC/E;IACD;QACI,IAAI,EAAE,IAAI;QACV,KAAK,EAAE,IAAI;QACX,WAAW,EAAE,8CAA8C;KAC9D;IACD;QACI,I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BACpB,GAAG,uBAAa;gBAEhB,GAAG,+BAAmB;gBACtB,GAAG,2BAAe;gBAElB,GAAG,2BAAiB;gBACpB,GAAG,uBAAa;gBAEhB,GAAG,qBAAc;gBACjB,GAAG,iBAAU;gBAEb,GAAG,iBAAY;gBACf,GAAG,aAAQ;gBAEX,GAAG,6BAAkB;gBACrB,GAAG,yBAAc;gBAEjB,GAAG,yBAAgB;gBACnB,GAAG,qBAAY;gBAEf,GAAG,2CAAyB;gBAC5B,GAAG,uCAAqB;gBAExB,GAAG,qBAAc;gBACjB,GAAG,iBAAU;aAChB;SACJ,CAAC;IACN,CAAC;CAAA;AA7FD,gCA6FC"}
@@ -3,7 +3,7 @@
3
3
  "nodeVersion": "1.0",
4
4
  "codexVersion": "1.0",
5
5
  "categories": [
6
- "Marketing & Growth"
6
+ "Marketing & Content"
7
7
  ],
8
8
  "alias": [
9
9
  "Trustmarkt",
@@ -8,12 +8,11 @@ class TrustmarktTrigger {
8
8
  this.description = {
9
9
  displayName: 'Trustmarkt Trigger',
10
10
  name: 'trustmarktTrigger',
11
- icon: 'file:trustmarkt.svg',
11
+ icon: { light: 'file:trustmarkt.svg', dark: 'file:trustmarkt-dark.svg' },
12
12
  group: ['trigger'],
13
13
  version: 1,
14
14
  subtitle: '={{$parameter["events"].join(", ")}}',
15
15
  description: 'Starts the workflow when Trustmarkt events occur (Webhooks)',
16
- usableAsTool: true,
17
16
  defaults: {
18
17
  name: 'Trustmarkt Trigger',
19
18
  },
@@ -110,7 +109,8 @@ class TrustmarktTrigger {
110
109
  });
111
110
  return true;
112
111
  }
113
- catch {
112
+ catch (error) {
113
+ this.logger.error(`Failed to delete Trustmarkt webhook ${webhookId}`, { error });
114
114
  return true;
115
115
  }
116
116
  finally {
@@ -1 +1 @@
1
- {"version":3,"file":"TrustmarktTrigger.node.js","sourceRoot":"","sources":["../../../nodes/Trustmarkt/TrustmarktTrigger.node.ts"],"names":[],"mappings":";;;AAkBA,+CAYsB;AAEtB,kDAAmD;A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
5
  "categories": [
6
- "Marketing & Growth"
6
+ "Marketing & Content"
7
7
  ],
8
8
  "alias": [
9
9
  "Trustmarkt",
@@ -0,0 +1,3 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const leadOperations: INodeProperties[];
3
+ export declare const leadFields: INodeProperties[];
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.leadFields = exports.leadOperations = void 0;
4
+ const get_1 = require("./operations/get");
5
+ const list_1 = require("./operations/list");
6
+ const showForLead = {
7
+ resource: ['lead'],
8
+ };
9
+ exports.leadOperations = [
10
+ {
11
+ displayName: 'Operation',
12
+ name: 'operation',
13
+ type: 'options',
14
+ noDataExpression: true,
15
+ displayOptions: {
16
+ show: showForLead,
17
+ },
18
+ options: [
19
+ get_1.getLeadOperation,
20
+ list_1.listLeadOperation,
21
+ ],
22
+ default: 'getMany',
23
+ },
24
+ ];
25
+ exports.leadFields = [
26
+ ...get_1.getLeadFields,
27
+ ...list_1.listLeadFields,
28
+ ];
29
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Trustmarkt/resources/lead/index.ts"],"names":[],"mappings":";;;AAuBA,0CAAmE;AACnE,4CAAsE;AAKtE,MAAM,WAAW,GAAG;IAChB,QAAQ,EAAE,CAAC,MAAM,CAAC;CACrB,CAAC;AAMW,QAAA,cAAc,GAAsB;IAC7C;QACI,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE;YACZ,IAAI,EAAE,WAAW;SACpB;QACD,OAAO,EAAE;YACL,sBAAgB;YAChB,wBAAiB;SACpB;QACD,OAAO,EAAE,SAAS;KACrB;CACJ,CAAC;AAMW,QAAA,UAAU,GAAsB;IAEzC,GAAG,mBAAa;IAGhB,GAAG,qBAAc;CACpB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { INodeProperties, INodePropertyOptions } from 'n8n-workflow';
2
+ export declare const getLeadOperation: INodePropertyOptions;
3
+ export declare const getLeadFields: INodeProperties[];
@@ -0,0 +1,66 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getLeadFields = exports.getLeadOperation = void 0;
4
+ const showForGet = {
5
+ resource: ['lead'],
6
+ operation: ['get'],
7
+ };
8
+ exports.getLeadOperation = {
9
+ name: 'Get',
10
+ value: 'get',
11
+ action: 'Get a lead',
12
+ description: 'Retrieve a single lead by ID',
13
+ routing: {
14
+ request: {
15
+ method: 'GET',
16
+ url: '=/leads/{{ $parameter.leadId }}',
17
+ },
18
+ },
19
+ };
20
+ exports.getLeadFields = [
21
+ {
22
+ displayName: 'Lead ID',
23
+ name: 'leadId',
24
+ type: 'string',
25
+ required: true,
26
+ default: '',
27
+ description: 'The unique identifier of the lead to retrieve',
28
+ displayOptions: {
29
+ show: showForGet,
30
+ },
31
+ },
32
+ {
33
+ displayName: 'Options',
34
+ name: 'options',
35
+ type: 'collection',
36
+ placeholder: 'Add Option',
37
+ default: {},
38
+ displayOptions: {
39
+ show: showForGet,
40
+ },
41
+ options: [
42
+ {
43
+ displayName: 'Expand',
44
+ name: 'expand',
45
+ type: 'multiOptions',
46
+ default: [],
47
+ description: 'Include related resources in the response',
48
+ options: [
49
+ {
50
+ name: 'Resource',
51
+ value: 'resource',
52
+ description: 'Include the resource (lead magnet) the lead signed up for',
53
+ },
54
+ ],
55
+ routing: {
56
+ send: {
57
+ type: 'query',
58
+ property: 'expand',
59
+ value: '={{ $value.join(",") }}',
60
+ },
61
+ },
62
+ },
63
+ ],
64
+ },
65
+ ];
66
+ //# sourceMappingURL=get.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get.js","sourceRoot":"","sources":["../../../../../../nodes/Trustmarkt/resources/lead/operations/get.ts"],"names":[],"mappings":";;;AAkBA,MAAM,UAAU,GAAG;IACf,QAAQ,EAAE,CAAC,MAAM,CAAC;IAClB,SAAS,EAAE,CAAC,KAAK,CAAC;CACrB,CAAC;AAKW,QAAA,gBAAgB,GAAyB;IAClD,IAAI,EAAE,KAAK;IACX,KAAK,EAAE,KAAK;IACZ,MAAM,EAAE,YAAY;IACpB,WAAW,EAAE,8BAA8B;IAC3C,OAAO,EAAE;QACL,OAAO,EAAE;YACL,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,iCAAiC;SACzC;KACJ;CACJ,CAAC;AAKW,QAAA,aAAa,GAAsB;IAI5C;QACI,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,+CAA+C;QAC5D,cAAc,EAAE;YACZ,IAAI,EAAE,UAAU;SACnB;KACJ;IAKD;QACI,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,YAAY;QACzB,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACZ,IAAI,EAAE,UAAU;SACnB;QAED,OAAO,EAAE;YACL;gBACI,WAAW,EAAE,QAAQ;gBACrB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,cAAc;gBACpB,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,2CAA2C;gBAExD,OAAO,EAAE;oBACL;wBACI,IAAI,EAAE,UAAU;wBAChB,KAAK,EAAE,UAAU;wBACjB,WAAW,EAAE,2DAA2D;qBAC3E;iBACJ;gBACD,OAAO,EAAE;oBACL,IAAI,EAAE;wBACF,IAAI,EAAE,OAAO;wBACb,QAAQ,EAAE,QAAQ;wBAClB,KAAK,EAAE,yBAAyB;qBACnC;iBACJ;aACJ;SACJ;KACJ;CACJ,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { INodeProperties, INodePropertyOptions } from 'n8n-workflow';
2
+ export declare const listLeadOperation: INodePropertyOptions;
3
+ export declare const listLeadFields: INodeProperties[];
@@ -0,0 +1,111 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.listLeadFields = exports.listLeadOperation = void 0;
4
+ const showForList = {
5
+ resource: ['lead'],
6
+ operation: ['getMany'],
7
+ };
8
+ exports.listLeadOperation = {
9
+ name: 'Get Many',
10
+ value: 'getMany',
11
+ action: 'Get many leads',
12
+ description: 'Retrieve a list of leads that signed up for your resources (lead magnets)',
13
+ routing: {
14
+ request: {
15
+ method: 'GET',
16
+ url: '/leads',
17
+ },
18
+ output: {
19
+ postReceive: [
20
+ {
21
+ type: 'rootProperty',
22
+ properties: {
23
+ property: 'data',
24
+ },
25
+ },
26
+ ],
27
+ },
28
+ },
29
+ };
30
+ exports.listLeadFields = [
31
+ {
32
+ displayName: 'Options',
33
+ name: 'options',
34
+ type: 'collection',
35
+ placeholder: 'Add Option',
36
+ default: {},
37
+ displayOptions: {
38
+ show: showForList,
39
+ },
40
+ options: [
41
+ {
42
+ displayName: 'Expand',
43
+ name: 'expand',
44
+ type: 'multiOptions',
45
+ default: [],
46
+ description: 'Include related resources in the response',
47
+ options: [
48
+ {
49
+ name: 'Resource',
50
+ value: 'resource',
51
+ description: 'Include the resource (lead magnet) the lead signed up for',
52
+ },
53
+ ],
54
+ routing: {
55
+ send: {
56
+ type: 'query',
57
+ property: 'expand',
58
+ value: '={{ $value.join(",") }}',
59
+ },
60
+ },
61
+ },
62
+ {
63
+ displayName: 'Limit',
64
+ name: 'limit',
65
+ type: 'number',
66
+ typeOptions: {
67
+ minValue: 1,
68
+ maxValue: 50,
69
+ },
70
+ default: 50,
71
+ description: 'Max number of results to return',
72
+ routing: {
73
+ send: {
74
+ type: 'query',
75
+ property: 'per_page',
76
+ },
77
+ },
78
+ },
79
+ {
80
+ displayName: 'Page',
81
+ name: 'page',
82
+ type: 'number',
83
+ typeOptions: {
84
+ minValue: 1,
85
+ },
86
+ default: 1,
87
+ description: 'Page number for pagination (starts at 1)',
88
+ routing: {
89
+ send: {
90
+ type: 'query',
91
+ property: 'page',
92
+ },
93
+ },
94
+ },
95
+ {
96
+ displayName: 'Resource ID',
97
+ name: 'resourceId',
98
+ type: 'string',
99
+ default: '',
100
+ description: 'Only return the leads of a single resource (lead magnet). Pass the ID of a resource as returned by the Resource operations.',
101
+ routing: {
102
+ send: {
103
+ type: 'query',
104
+ property: 'resource',
105
+ },
106
+ },
107
+ },
108
+ ],
109
+ },
110
+ ];
111
+ //# sourceMappingURL=list.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list.js","sourceRoot":"","sources":["../../../../../../nodes/Trustmarkt/resources/lead/operations/list.ts"],"names":[],"mappings":";;;AAsBA,MAAM,WAAW,GAAG;IAChB,QAAQ,EAAE,CAAC,MAAM,CAAC;IAClB,SAAS,EAAE,CAAC,SAAS,CAAC;CACzB,CAAC;AAKW,QAAA,iBAAiB,GAAyB;IACnD,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,SAAS;IAChB,MAAM,EAAE,gBAAgB;IACxB,WAAW,EAAE,2EAA2E;IACxF,OAAO,EAAE;QACL,OAAO,EAAE;YACL,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,QAAQ;SAChB;QACD,MAAM,EAAE;YACJ,WAAW,EAAE;gBACT;oBACI,IAAI,EAAE,cAAc;oBACpB,UAAU,EAAE;wBACR,QAAQ,EAAE,MAAM;qBACnB;iBACJ;aACJ;SACJ;KACJ;CACJ,CAAC;AAKW,QAAA,cAAc,GAAsB;IAI7C;QACI,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,YAAY;QACzB,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACZ,IAAI,EAAE,WAAW;SACpB;QAED,OAAO,EAAE;YACL;gBACI,WAAW,EAAE,QAAQ;gBACrB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,cAAc;gBACpB,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,2CAA2C;gBAExD,OAAO,EAAE;oBACL;wBACI,IAAI,EAAE,UAAU;wBAChB,KAAK,EAAE,UAAU;wBACjB,WAAW,EAAE,2DAA2D;qBAC3E;iBACJ;gBACD,OAAO,EAAE;oBACL,IAAI,EAAE;wBACF,IAAI,EAAE,OAAO;wBACb,QAAQ,EAAE,QAAQ;wBAClB,KAAK,EAAE,yBAAyB;qBACnC;iBACJ;aACJ;YACD;gBACI,WAAW,EAAE,OAAO;gBACpB,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE;oBACT,QAAQ,EAAE,CAAC;oBACX,QAAQ,EAAE,EAAE;iBACf;gBACD,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,iCAAiC;gBAC9C,OAAO,EAAE;oBACL,IAAI,EAAE;wBACF,IAAI,EAAE,OAAO;wBACb,QAAQ,EAAE,UAAU;qBACvB;iBACJ;aACJ;YACD;gBACI,WAAW,EAAE,MAAM;gBACnB,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE;oBACT,QAAQ,EAAE,CAAC;iBACd;gBACD,OAAO,EAAE,CAAC;gBACV,WAAW,EAAE,0CAA0C;gBACvD,OAAO,EAAE;oBACL,IAAI,EAAE;wBACF,IAAI,EAAE,OAAO;wBACb,QAAQ,EAAE,MAAM;qBACnB;iBACJ;aACJ;YACD;gBACI,WAAW,EAAE,aAAa;gBAC1B,IAAI,EAAE,YAAY;gBAClB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EACP,6HAA6H;gBACjI,OAAO,EAAE;oBACL,IAAI,EAAE;wBACF,IAAI,EAAE,OAAO;wBACb,QAAQ,EAAE,UAAU;qBACvB;iBACJ;aACJ;SACJ;KACJ;CACJ,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const resourceOperations: INodeProperties[];
3
+ export declare const resourceFields: INodeProperties[];
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.resourceFields = exports.resourceOperations = void 0;
4
+ const get_1 = require("./operations/get");
5
+ const list_1 = require("./operations/list");
6
+ const showForResource = {
7
+ resource: ['resource'],
8
+ };
9
+ exports.resourceOperations = [
10
+ {
11
+ displayName: 'Operation',
12
+ name: 'operation',
13
+ type: 'options',
14
+ noDataExpression: true,
15
+ displayOptions: {
16
+ show: showForResource,
17
+ },
18
+ options: [
19
+ get_1.getResourceOperation,
20
+ list_1.listResourceOperation,
21
+ ],
22
+ default: 'getMany',
23
+ },
24
+ ];
25
+ exports.resourceFields = [
26
+ ...get_1.getResourceFields,
27
+ ...list_1.listResourceFields,
28
+ ];
29
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Trustmarkt/resources/resource/index.ts"],"names":[],"mappings":";;;AAwBA,0CAA2E;AAC3E,4CAA8E;AAK9E,MAAM,eAAe,GAAG;IACpB,QAAQ,EAAE,CAAC,UAAU,CAAC;CACzB,CAAC;AAMW,QAAA,kBAAkB,GAAsB;IACjD;QACI,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE;YACZ,IAAI,EAAE,eAAe;SACxB;QACD,OAAO,EAAE;YACL,0BAAoB;YACpB,4BAAqB;SACxB;QACD,OAAO,EAAE,SAAS;KACrB;CACJ,CAAC;AAMW,QAAA,cAAc,GAAsB;IAE7C,GAAG,uBAAiB;IAGpB,GAAG,yBAAkB;CACxB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { INodeProperties, INodePropertyOptions } from 'n8n-workflow';
2
+ export declare const getResourceOperation: INodePropertyOptions;
3
+ export declare const getResourceFields: INodeProperties[];
@@ -0,0 +1,70 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getResourceFields = exports.getResourceOperation = void 0;
4
+ const showForGet = {
5
+ resource: ['resource'],
6
+ operation: ['get'],
7
+ };
8
+ exports.getResourceOperation = {
9
+ name: 'Get',
10
+ value: 'get',
11
+ action: 'Get a resource',
12
+ description: 'Retrieve a single resource (lead magnet) by ID',
13
+ routing: {
14
+ request: {
15
+ method: 'GET',
16
+ url: '=/resources/{{ $parameter.resourceId }}',
17
+ },
18
+ },
19
+ };
20
+ exports.getResourceFields = [
21
+ {
22
+ displayName: 'Resource ID',
23
+ name: 'resourceId',
24
+ type: 'string',
25
+ required: true,
26
+ default: '',
27
+ description: 'The unique identifier of the resource (lead magnet) to retrieve',
28
+ displayOptions: {
29
+ show: showForGet,
30
+ },
31
+ },
32
+ {
33
+ displayName: 'Options',
34
+ name: 'options',
35
+ type: 'collection',
36
+ placeholder: 'Add Option',
37
+ default: {},
38
+ displayOptions: {
39
+ show: showForGet,
40
+ },
41
+ options: [
42
+ {
43
+ displayName: 'Version',
44
+ name: 'status',
45
+ type: 'options',
46
+ default: 'public',
47
+ description: 'Which version the content fields are taken from. If not set, the published version is used, falling back to the newest draft while the resource was never published.',
48
+ options: [
49
+ {
50
+ name: 'Draft',
51
+ value: 'draft',
52
+ description: 'The newest version of the resource (the current editing state)',
53
+ },
54
+ {
55
+ name: 'Public',
56
+ value: 'public',
57
+ description: 'Strictly the published version — content fields are null while the resource was never published',
58
+ },
59
+ ],
60
+ routing: {
61
+ send: {
62
+ type: 'query',
63
+ property: 'status',
64
+ },
65
+ },
66
+ },
67
+ ],
68
+ },
69
+ ];
70
+ //# sourceMappingURL=get.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get.js","sourceRoot":"","sources":["../../../../../../nodes/Trustmarkt/resources/resource/operations/get.ts"],"names":[],"mappings":";;;AAkBA,MAAM,UAAU,GAAG;IACf,QAAQ,EAAE,CAAC,UAAU,CAAC;IACtB,SAAS,EA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are const listResourceOperation: INodePropertyOptions;
3
+ export declare const listResourceFields: INodeProperties[];