n8n-nodes-capitalflow 0.1.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/README.md ADDED
@@ -0,0 +1,103 @@
1
+ # n8n-nodes-capitalflow
2
+
3
+ [n8n](https://n8n.io/) community node for the **[CapitalFlow](https://app.capital-flow.de)** API.
4
+
5
+ CapitalFlow is a German fintech/insurance platform for financial advisors. This node lets you automate customer management and share data-collection forms directly from your n8n workflows.
6
+
7
+ ---
8
+
9
+ ## Features
10
+
11
+ | Resource | Operations |
12
+ |---|---|
13
+ | **Customer** | Get, Create, Update |
14
+ | **Shared Form** | Share Customer Form, Share Cashflow Form |
15
+
16
+ ---
17
+
18
+ ## Installation
19
+
20
+ ### In n8n (recommended)
21
+
22
+ 1. Go to **Settings → Community Nodes**
23
+ 2. Click **Install**
24
+ 3. Enter `n8n-nodes-capitalflow` and confirm
25
+
26
+ ### Manual / self-hosted
27
+
28
+ ```bash
29
+ npm install n8n-nodes-capitalflow
30
+ ```
31
+
32
+ Then restart n8n.
33
+
34
+ ---
35
+
36
+ ## Authentication
37
+
38
+ 1. In your CapitalFlow dashboard go to **Settings → API Keys** and generate a key.
39
+ 2. In n8n, create a new **CapitalFlow API** credential and paste the key.
40
+
41
+ ---
42
+
43
+ ## Operations
44
+
45
+ ### Customer
46
+
47
+ #### Get
48
+ Returns a single customer with all related information (contact, address, occupation, education, tax, health, vehicle, pet, property).
49
+
50
+ | Field | Required | Description |
51
+ |---|---|---|
52
+ | Customer ID | ✅ | UUID of the customer |
53
+
54
+ #### Create
55
+ Creates a new customer. Only `firstname` and `lastname` are required; all other fields are optional.
56
+
57
+ | Field | Required |
58
+ |---|---|
59
+ | First Name | ✅ |
60
+ | Last Name | ✅ |
61
+ | Date of Birth | ➖ |
62
+ | Place of Birth | ➖ |
63
+ | Nationality | ➖ |
64
+ | Marital Status | ➖ |
65
+ | Family Living Situation | ➖ |
66
+ | Contact Info (email, phone) | ➖ |
67
+ | Address Info (street, zip, city, state) | ➖ |
68
+
69
+ #### Update
70
+ Updates an existing customer. Requires the customer UUID alongside the fields to update.
71
+
72
+ ---
73
+
74
+ ### Shared Form
75
+
76
+ Both form operations return a `form_id`, `url`, and `password`. **No email is sent automatically** — use the URL and password in your own notification logic (e.g. send via Gmail or Outlook node).
77
+
78
+ #### Share Customer Form
79
+ Generates a shareable link for the customer data-collection form.
80
+
81
+ #### Share Cashflow Form
82
+ Generates a shareable link for the cashflow analysis form.
83
+
84
+ ---
85
+
86
+ ## Example workflow
87
+
88
+ ```
89
+ Webhook → CapitalFlow (Create Customer) → CapitalFlow (Share Customer Form) → Send Email (Gmail)
90
+ ```
91
+
92
+ ---
93
+
94
+ ## Support
95
+
96
+ - CapitalFlow API docs: [app.capital-flow.de](https://app.capital-flow.de)
97
+ - Node issues: open a GitHub issue on this repository
98
+
99
+ ---
100
+
101
+ ## License
102
+
103
+ MIT
Binary file
@@ -0,0 +1,8 @@
1
+ import type { ICredentialType, INodeProperties } from 'n8n-workflow';
2
+ export declare class CapitalFlowApi implements ICredentialType {
3
+ name: string;
4
+ displayName: string;
5
+ documentationUrl: string;
6
+ properties: INodeProperties[];
7
+ }
8
+ //# sourceMappingURL=CapitalFlowApi.credentials.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CapitalFlowApi.credentials.d.ts","sourceRoot":"","sources":["../../credentials/CapitalFlowApi.credentials.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAErE,qBAAa,cAAe,YAAW,eAAe;IACrD,IAAI,SAAoB;IACxB,WAAW,SAAqB;IAChC,gBAAgB,SAAiC;IACjD,UAAU,EAAE,eAAe,EAAE,CAW3B;CACF"}
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CapitalFlowApi = void 0;
4
+ class CapitalFlowApi {
5
+ constructor() {
6
+ this.name = 'capitalFlowApi';
7
+ this.displayName = 'CapitalFlow API';
8
+ this.documentationUrl = 'https://app.capital-flow.de';
9
+ this.properties = [
10
+ {
11
+ displayName: 'API Key',
12
+ name: 'apiKey',
13
+ type: 'string',
14
+ typeOptions: { password: true },
15
+ default: '',
16
+ required: true,
17
+ description: 'Your CapitalFlow API key. Generate one in the dashboard under Settings → API Keys.',
18
+ },
19
+ ];
20
+ }
21
+ }
22
+ exports.CapitalFlowApi = CapitalFlowApi;
23
+ //# sourceMappingURL=CapitalFlowApi.credentials.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CapitalFlowApi.credentials.js","sourceRoot":"","sources":["../../credentials/CapitalFlowApi.credentials.ts"],"names":[],"mappings":";;;AAEA,MAAa,cAAc;IAA3B;QACC,SAAI,GAAG,gBAAgB,CAAC;QACxB,gBAAW,GAAG,iBAAiB,CAAC;QAChC,qBAAgB,GAAG,6BAA6B,CAAC;QACjD,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,SAAS;gBACtB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;gBAC/B,OAAO,EAAE,EAAE;gBACX,QAAQ,EAAE,IAAI;gBACd,WAAW,EACV,oFAAoF;aACrF;SACD,CAAC;IACH,CAAC;CAAA;AAhBD,wCAgBC"}
@@ -0,0 +1,6 @@
1
+ import type { IExecuteFunctions, INodeExecutionData, INodeType, INodeTypeDescription } from 'n8n-workflow';
2
+ export declare class CapitalFlow implements INodeType {
3
+ description: INodeTypeDescription;
4
+ execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
5
+ }
6
+ //# sourceMappingURL=CapitalFlow.node.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CapitalFlow.node.d.ts","sourceRoot":"","sources":["../../../nodes/CapitalFlow/CapitalFlow.node.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,iBAAiB,EACjB,kBAAkB,EAClB,SAAS,EACT,oBAAoB,EAEpB,MAAM,cAAc,CAAC;AAWtB,qBAAa,WAAY,YAAW,SAAS;IAC5C,WAAW,EAAE,oBAAoB,CA4G/B;IAEI,OAAO,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,kBAAkB,EAAE,EAAE,CAAC;CA0IvE"}
@@ -0,0 +1,226 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CapitalFlow = void 0;
4
+ const n8n_workflow_1 = require("n8n-workflow");
5
+ const CustomerDescription_1 = require("./CustomerDescription");
6
+ const BASE_URL = 'https://api.capital-flow.de';
7
+ class CapitalFlow {
8
+ constructor() {
9
+ this.description = {
10
+ displayName: 'CapitalFlow',
11
+ name: 'capitalFlow',
12
+ icon: 'file:capitalflow.png',
13
+ group: ['transform'],
14
+ version: 1,
15
+ subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
16
+ description: 'Interact with the CapitalFlow API – manage customers and share data forms.',
17
+ defaults: { name: 'CapitalFlow' },
18
+ inputs: ['main'],
19
+ outputs: ['main'],
20
+ credentials: [
21
+ {
22
+ name: 'capitalFlowApi',
23
+ required: true,
24
+ },
25
+ ],
26
+ properties: [
27
+ // ── Resource ──────────────────────────────────────────────────────────
28
+ {
29
+ displayName: 'Resource',
30
+ name: 'resource',
31
+ type: 'options',
32
+ noDataExpression: true,
33
+ options: [
34
+ { name: 'Customer', value: 'customer' },
35
+ { name: 'Shared Form', value: 'sharedForm' },
36
+ ],
37
+ default: 'customer',
38
+ },
39
+ // ── Operations: Customer ──────────────────────────────────────────────
40
+ {
41
+ displayName: 'Operation',
42
+ name: 'operation',
43
+ type: 'options',
44
+ noDataExpression: true,
45
+ displayOptions: { show: { resource: ['customer'] } },
46
+ options: [
47
+ {
48
+ name: 'Create',
49
+ value: 'create',
50
+ description: 'Create a new customer',
51
+ action: 'Create a customer',
52
+ },
53
+ {
54
+ name: 'Get',
55
+ value: 'get',
56
+ description: 'Retrieve a customer by ID',
57
+ action: 'Get a customer',
58
+ },
59
+ {
60
+ name: 'Update',
61
+ value: 'update',
62
+ description: 'Update an existing customer',
63
+ action: 'Update a customer',
64
+ },
65
+ ],
66
+ default: 'get',
67
+ },
68
+ // ── Operations: Shared Form ───────────────────────────────────────────
69
+ {
70
+ displayName: 'Operation',
71
+ name: 'operation',
72
+ type: 'options',
73
+ noDataExpression: true,
74
+ displayOptions: { show: { resource: ['sharedForm'] } },
75
+ options: [
76
+ {
77
+ name: 'Share Cashflow Form',
78
+ value: 'shareCashflowForm',
79
+ description: 'Generate a shareable link for the cashflow analysis form',
80
+ action: 'Share cashflow form',
81
+ },
82
+ {
83
+ name: 'Share Customer Form',
84
+ value: 'shareCustomerForm',
85
+ description: 'Generate a shareable link for the customer data collection form',
86
+ action: 'Share customer form',
87
+ },
88
+ ],
89
+ default: 'shareCustomerForm',
90
+ },
91
+ // ── Shared: customerId (get, update, share forms) ─────────────────────
92
+ CustomerDescription_1.customerIdField,
93
+ {
94
+ displayName: 'Customer ID',
95
+ name: 'customerId',
96
+ type: 'string',
97
+ required: true,
98
+ default: '',
99
+ description: 'UUID of the customer',
100
+ displayOptions: {
101
+ show: {
102
+ resource: ['sharedForm'],
103
+ operation: ['shareCustomerForm', 'shareCashflowForm'],
104
+ },
105
+ },
106
+ },
107
+ // ── Customer: Create fields ───────────────────────────────────────────
108
+ ...CustomerDescription_1.customerCreateDescription,
109
+ // ── Customer: Update fields ───────────────────────────────────────────
110
+ ...CustomerDescription_1.customerUpdateDescription,
111
+ ],
112
+ };
113
+ }
114
+ async execute() {
115
+ const items = this.getInputData();
116
+ const returnData = [];
117
+ const credentials = await this.getCredentials('capitalFlowApi');
118
+ const apiKey = credentials.apiKey;
119
+ const headers = {
120
+ 'cf-api-key': apiKey,
121
+ 'Content-Type': 'application/json',
122
+ };
123
+ for (let i = 0; i < items.length; i++) {
124
+ const resource = this.getNodeParameter('resource', i);
125
+ const operation = this.getNodeParameter('operation', i);
126
+ let responseData;
127
+ try {
128
+ // ── Customer: Get ────────────────────────────────────────────────────
129
+ if (resource === 'customer' && operation === 'get') {
130
+ const customerId = this.getNodeParameter('customerId', i);
131
+ const response = await this.helpers.httpRequest({
132
+ method: 'GET',
133
+ url: `${BASE_URL}/integrations/v1/customers/${customerId}`,
134
+ headers,
135
+ });
136
+ responseData = response;
137
+ }
138
+ // ── Customer: Create ─────────────────────────────────────────────────
139
+ else if (resource === 'customer' && operation === 'create') {
140
+ const firstname = this.getNodeParameter('firstname', i);
141
+ const lastname = this.getNodeParameter('lastname', i);
142
+ const additionalFields = this.getNodeParameter('additionalFields', i);
143
+ const contactRaw = this.getNodeParameter('contact_info', i);
144
+ const addressRaw = this.getNodeParameter('address_info', i);
145
+ const body = { firstname, lastname, ...additionalFields };
146
+ if ((contactRaw === null || contactRaw === void 0 ? void 0 : contactRaw.contact) && Object.keys(contactRaw.contact).length > 0) {
147
+ body.contact_info = contactRaw.contact;
148
+ }
149
+ if ((addressRaw === null || addressRaw === void 0 ? void 0 : addressRaw.address) && Object.keys(addressRaw.address).length > 0) {
150
+ body.address_info = addressRaw.address;
151
+ }
152
+ const response = await this.helpers.httpRequest({
153
+ method: 'POST',
154
+ url: `${BASE_URL}/integrations/v1/customers`,
155
+ headers,
156
+ body,
157
+ });
158
+ responseData = response;
159
+ }
160
+ // ── Customer: Update ─────────────────────────────────────────────────
161
+ else if (resource === 'customer' && operation === 'update') {
162
+ const customerId = this.getNodeParameter('customerId', i);
163
+ const firstname = this.getNodeParameter('firstname', i);
164
+ const lastname = this.getNodeParameter('lastname', i);
165
+ const additionalFields = this.getNodeParameter('additionalFields', i);
166
+ const contactRaw = this.getNodeParameter('contact_info', i);
167
+ const addressRaw = this.getNodeParameter('address_info', i);
168
+ const body = { id: customerId, firstname, lastname, ...additionalFields };
169
+ if ((contactRaw === null || contactRaw === void 0 ? void 0 : contactRaw.contact) && Object.keys(contactRaw.contact).length > 0) {
170
+ body.contact_info = contactRaw.contact;
171
+ }
172
+ if ((addressRaw === null || addressRaw === void 0 ? void 0 : addressRaw.address) && Object.keys(addressRaw.address).length > 0) {
173
+ body.address_info = addressRaw.address;
174
+ }
175
+ const response = await this.helpers.httpRequest({
176
+ method: 'PUT',
177
+ url: `${BASE_URL}/integrations/v1/customers`,
178
+ headers,
179
+ body,
180
+ });
181
+ responseData = response;
182
+ }
183
+ // ── Shared Form: Share Customer Form ─────────────────────────────────
184
+ else if (resource === 'sharedForm' && operation === 'shareCustomerForm') {
185
+ const customerId = this.getNodeParameter('customerId', i);
186
+ const response = await this.helpers.httpRequest({
187
+ method: 'PUT',
188
+ url: `${BASE_URL}/integrations/v1/forms/customer/${customerId}/share-form`,
189
+ headers,
190
+ });
191
+ responseData = response;
192
+ }
193
+ // ── Shared Form: Share Cashflow Form ─────────────────────────────────
194
+ else if (resource === 'sharedForm' && operation === 'shareCashflowForm') {
195
+ const customerId = this.getNodeParameter('customerId', i);
196
+ const response = await this.helpers.httpRequest({
197
+ method: 'PUT',
198
+ url: `${BASE_URL}/integrations/v1/forms/cashflow/customer/${customerId}/share-form`,
199
+ headers,
200
+ });
201
+ responseData = response;
202
+ }
203
+ else {
204
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Unknown resource/operation: ${resource}/${operation}`, { itemIndex: i });
205
+ }
206
+ returnData.push({ json: responseData, pairedItem: i });
207
+ }
208
+ catch (error) {
209
+ if (this.continueOnFail()) {
210
+ returnData.push({
211
+ json: { error: error.message },
212
+ pairedItem: i,
213
+ });
214
+ continue;
215
+ }
216
+ if (error instanceof n8n_workflow_1.NodeApiError || error instanceof n8n_workflow_1.NodeOperationError) {
217
+ throw error;
218
+ }
219
+ throw new n8n_workflow_1.NodeApiError(this.getNode(), error, { itemIndex: i });
220
+ }
221
+ }
222
+ return [returnData];
223
+ }
224
+ }
225
+ exports.CapitalFlow = CapitalFlow;
226
+ //# sourceMappingURL=CapitalFlow.node.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CapitalFlow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qBACb,CAAC,CAAC;oBACH,SAAS;gBACV,CAAC;gBACD,IAAI,KAAK,YAAY,2BAAY,IAAI,KAAK,YAAY,iCAAkB,EAAE,CAAC;oBAC1E,MAAM,KAAK,CAAC;gBACb,CAAC;gBACD,MAAM,IAAI,2BAAY,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,KAAmB,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC,CAAC;YAC/E,CAAC;QACF,CAAC;QAED,OAAO,CAAC,UAAU,CAAC,CAAC;IACrB,CAAC;CACD;AAzPD,kCAyPC"}
@@ -0,0 +1,6 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const customerIdField: INodeProperties;
3
+ export declare const customerGetDescription: INodeProperties[];
4
+ export declare const customerCreateDescription: INodeProperties[];
5
+ export declare const customerUpdateDescription: INodeProperties[];
6
+ //# sourceMappingURL=CustomerDescription.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CustomerDescription.d.ts","sourceRoot":"","sources":["../../../nodes/CapitalFlow/CustomerDescription.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAIpD,eAAO,MAAM,eAAe,EAAE,eAa7B,CAAC;AAIF,eAAO,MAAM,sBAAsB,EAAE,eAAe,EAAO,CAAC;AAI5D,eAAO,MAAM,yBAAyB,EAAE,eAAe,EAoKtD,CAAC;AAIF,eAAO,MAAM,yBAAyB,EAAE,eAAe,EAiKtD,CAAC"}
@@ -0,0 +1,350 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.customerUpdateDescription = exports.customerCreateDescription = exports.customerGetDescription = exports.customerIdField = void 0;
4
+ // ─── Shared field: customerId ────────────────────────────────────────────────
5
+ exports.customerIdField = {
6
+ displayName: 'Customer ID',
7
+ name: 'customerId',
8
+ type: 'string',
9
+ required: true,
10
+ default: '',
11
+ description: 'UUID of the customer',
12
+ displayOptions: {
13
+ show: {
14
+ resource: ['customer'],
15
+ operation: ['get', 'update', 'shareCustomerForm', 'shareCashflowForm'],
16
+ },
17
+ },
18
+ };
19
+ // ─── GET customer ─────────────────────────────────────────────────────────────
20
+ exports.customerGetDescription = [];
21
+ // ─── CREATE customer ─────────────────────────────────────────────────────────
22
+ exports.customerCreateDescription = [
23
+ {
24
+ displayName: 'First Name',
25
+ name: 'firstname',
26
+ type: 'string',
27
+ required: true,
28
+ default: '',
29
+ displayOptions: { show: { resource: ['customer'], operation: ['create'] } },
30
+ },
31
+ {
32
+ displayName: 'Last Name',
33
+ name: 'lastname',
34
+ type: 'string',
35
+ required: true,
36
+ default: '',
37
+ displayOptions: { show: { resource: ['customer'], operation: ['create'] } },
38
+ },
39
+ {
40
+ displayName: 'Additional Fields',
41
+ name: 'additionalFields',
42
+ type: 'collection',
43
+ placeholder: 'Add Field',
44
+ default: {},
45
+ displayOptions: { show: { resource: ['customer'], operation: ['create'] } },
46
+ options: [
47
+ {
48
+ displayName: 'Date of Birth',
49
+ name: 'date_of_birth',
50
+ type: 'dateTime',
51
+ default: '',
52
+ description: 'Format: YYYY-MM-DD',
53
+ },
54
+ {
55
+ displayName: 'Place of Birth',
56
+ name: 'place_of_birth',
57
+ type: 'string',
58
+ default: '',
59
+ },
60
+ {
61
+ displayName: 'Nationality',
62
+ name: 'nationality',
63
+ type: 'string',
64
+ default: 'DE',
65
+ description: 'ISO 3166-1 alpha-2 country code, e.g. DE',
66
+ },
67
+ {
68
+ displayName: 'Marital Status',
69
+ name: 'marital_status',
70
+ type: 'options',
71
+ default: 'single',
72
+ options: [
73
+ { name: 'Single', value: 'single' },
74
+ { name: 'Married', value: 'married' },
75
+ { name: 'Divorced', value: 'divorced' },
76
+ { name: 'Widowed', value: 'widowed' },
77
+ { name: 'Cohabitation', value: 'cohabitation' },
78
+ { name: 'Separated', value: 'seperated' },
79
+ ],
80
+ },
81
+ {
82
+ displayName: 'Family Living Situation',
83
+ name: 'family_living_situation',
84
+ type: 'options',
85
+ default: 'single',
86
+ options: [
87
+ { name: 'Single', value: 'single' },
88
+ { name: 'Single Parent', value: 'single_parent' },
89
+ { name: 'Family With Children', value: 'family_with_children' },
90
+ { name: 'Family Without Children', value: 'family_without_children' },
91
+ ],
92
+ },
93
+ ],
94
+ },
95
+ {
96
+ displayName: 'Contact',
97
+ name: 'contact_info',
98
+ type: 'fixedCollection',
99
+ default: {},
100
+ placeholder: 'Add Contact Info',
101
+ displayOptions: { show: { resource: ['customer'], operation: ['create'] } },
102
+ options: [
103
+ {
104
+ displayName: 'Contact',
105
+ name: 'contact',
106
+ values: [
107
+ {
108
+ displayName: 'Email',
109
+ name: 'email',
110
+ type: 'string',
111
+ placeholder: 'name@email.com',
112
+ default: '',
113
+ },
114
+ {
115
+ displayName: 'Phone',
116
+ name: 'phone',
117
+ type: 'string',
118
+ default: '',
119
+ placeholder: '+4917612345678',
120
+ },
121
+ ],
122
+ },
123
+ ],
124
+ },
125
+ {
126
+ displayName: 'Address',
127
+ name: 'address_info',
128
+ type: 'fixedCollection',
129
+ default: {},
130
+ placeholder: 'Add Address Info',
131
+ displayOptions: { show: { resource: ['customer'], operation: ['create'] } },
132
+ options: [
133
+ {
134
+ displayName: 'Address',
135
+ name: 'address',
136
+ values: [
137
+ {
138
+ displayName: 'Street Address',
139
+ name: 'address',
140
+ type: 'string',
141
+ default: '',
142
+ placeholder: 'Königstraße 1',
143
+ },
144
+ {
145
+ displayName: 'ZIP Code',
146
+ name: 'zipcode',
147
+ type: 'string',
148
+ default: '',
149
+ },
150
+ {
151
+ displayName: 'City',
152
+ name: 'city',
153
+ type: 'string',
154
+ default: '',
155
+ },
156
+ {
157
+ displayName: 'State',
158
+ name: 'state',
159
+ type: 'options',
160
+ required: true,
161
+ default: 'bund',
162
+ options: [
163
+ { name: 'Bund (Federal)', value: 'bund' },
164
+ { name: 'Baden-Württemberg', value: 'baden_wuerttemberg' },
165
+ { name: 'Bayern', value: 'bayern' },
166
+ { name: 'Berlin', value: 'berlin' },
167
+ { name: 'Brandenburg', value: 'brandenburg' },
168
+ { name: 'Bremen', value: 'bremen' },
169
+ { name: 'Hamburg', value: 'hamburg' },
170
+ { name: 'Hessen', value: 'hessen' },
171
+ { name: 'Mecklenburg-Vorpommern', value: 'mecklenburg_vorpommern' },
172
+ { name: 'Niedersachsen', value: 'niedersachsen' },
173
+ { name: 'Nordrhein-Westfalen', value: 'nordrhein_westfalen' },
174
+ { name: 'Rheinland-Pfalz', value: 'rheinland_pfalz' },
175
+ { name: 'Saarland', value: 'saarland' },
176
+ { name: 'Sachsen', value: 'sachsen' },
177
+ { name: 'Sachsen-Anhalt', value: 'sachsen_anhalt' },
178
+ { name: 'Schleswig-Holstein', value: 'schleswig_holstein' },
179
+ { name: 'Thüringen', value: 'thueringen' },
180
+ ],
181
+ },
182
+ ],
183
+ },
184
+ ],
185
+ },
186
+ ];
187
+ // ─── UPDATE customer ─────────────────────────────────────────────────────────
188
+ exports.customerUpdateDescription = [
189
+ {
190
+ displayName: 'First Name',
191
+ name: 'firstname',
192
+ type: 'string',
193
+ required: true,
194
+ default: '',
195
+ displayOptions: { show: { resource: ['customer'], operation: ['update'] } },
196
+ },
197
+ {
198
+ displayName: 'Last Name',
199
+ name: 'lastname',
200
+ type: 'string',
201
+ required: true,
202
+ default: '',
203
+ displayOptions: { show: { resource: ['customer'], operation: ['update'] } },
204
+ },
205
+ {
206
+ displayName: 'Additional Fields',
207
+ name: 'additionalFields',
208
+ type: 'collection',
209
+ placeholder: 'Add Field',
210
+ default: {},
211
+ displayOptions: { show: { resource: ['customer'], operation: ['update'] } },
212
+ options: [
213
+ {
214
+ displayName: 'Date of Birth',
215
+ name: 'date_of_birth',
216
+ type: 'dateTime',
217
+ default: '',
218
+ },
219
+ {
220
+ displayName: 'Place of Birth',
221
+ name: 'place_of_birth',
222
+ type: 'string',
223
+ default: '',
224
+ },
225
+ {
226
+ displayName: 'Nationality',
227
+ name: 'nationality',
228
+ type: 'string',
229
+ default: 'DE',
230
+ },
231
+ {
232
+ displayName: 'Marital Status',
233
+ name: 'marital_status',
234
+ type: 'options',
235
+ default: 'single',
236
+ options: [
237
+ { name: 'Single', value: 'single' },
238
+ { name: 'Married', value: 'married' },
239
+ { name: 'Divorced', value: 'divorced' },
240
+ { name: 'Widowed', value: 'widowed' },
241
+ { name: 'Cohabitation', value: 'cohabitation' },
242
+ { name: 'Separated', value: 'seperated' },
243
+ ],
244
+ },
245
+ {
246
+ displayName: 'Family Living Situation',
247
+ name: 'family_living_situation',
248
+ type: 'options',
249
+ default: 'single',
250
+ options: [
251
+ { name: 'Single', value: 'single' },
252
+ { name: 'Single Parent', value: 'single_parent' },
253
+ { name: 'Family With Children', value: 'family_with_children' },
254
+ { name: 'Family Without Children', value: 'family_without_children' },
255
+ ],
256
+ },
257
+ ],
258
+ },
259
+ {
260
+ displayName: 'Contact',
261
+ name: 'contact_info',
262
+ type: 'fixedCollection',
263
+ default: {},
264
+ placeholder: 'Add Contact Info',
265
+ displayOptions: { show: { resource: ['customer'], operation: ['update'] } },
266
+ options: [
267
+ {
268
+ displayName: 'Contact',
269
+ name: 'contact',
270
+ values: [
271
+ {
272
+ displayName: 'Email',
273
+ name: 'email',
274
+ type: 'string',
275
+ placeholder: 'name@email.com',
276
+ default: '',
277
+ },
278
+ {
279
+ displayName: 'Phone',
280
+ name: 'phone',
281
+ type: 'string',
282
+ default: '',
283
+ placeholder: '+4917612345678',
284
+ },
285
+ ],
286
+ },
287
+ ],
288
+ },
289
+ {
290
+ displayName: 'Address',
291
+ name: 'address_info',
292
+ type: 'fixedCollection',
293
+ default: {},
294
+ placeholder: 'Add Address Info',
295
+ displayOptions: { show: { resource: ['customer'], operation: ['update'] } },
296
+ options: [
297
+ {
298
+ displayName: 'Address',
299
+ name: 'address',
300
+ values: [
301
+ {
302
+ displayName: 'Street Address',
303
+ name: 'address',
304
+ type: 'string',
305
+ default: '',
306
+ },
307
+ {
308
+ displayName: 'ZIP Code',
309
+ name: 'zipcode',
310
+ type: 'string',
311
+ default: '',
312
+ },
313
+ {
314
+ displayName: 'City',
315
+ name: 'city',
316
+ type: 'string',
317
+ default: '',
318
+ },
319
+ {
320
+ displayName: 'State',
321
+ name: 'state',
322
+ type: 'options',
323
+ required: true,
324
+ default: 'bund',
325
+ options: [
326
+ { name: 'Bund (Federal)', value: 'bund' },
327
+ { name: 'Baden-Württemberg', value: 'baden_wuerttemberg' },
328
+ { name: 'Bayern', value: 'bayern' },
329
+ { name: 'Berlin', value: 'berlin' },
330
+ { name: 'Brandenburg', value: 'brandenburg' },
331
+ { name: 'Bremen', value: 'bremen' },
332
+ { name: 'Hamburg', value: 'hamburg' },
333
+ { name: 'Hessen', value: 'hessen' },
334
+ { name: 'Mecklenburg-Vorpommern', value: 'mecklenburg_vorpommern' },
335
+ { name: 'Niedersachsen', value: 'niedersachsen' },
336
+ { name: 'Nordrhein-Westfalen', value: 'nordrhein_westfalen' },
337
+ { name: 'Rheinland-Pfalz', value: 'rheinland_pfalz' },
338
+ { name: 'Saarland', value: 'saarland' },
339
+ { name: 'Sachsen', value: 'sachsen' },
340
+ { name: 'Sachsen-Anhalt', value: 'sachsen_anhalt' },
341
+ { name: 'Schleswig-Holstein', value: 'schleswig_holstein' },
342
+ { name: 'Thüringen', value: 'thueringen' },
343
+ ],
344
+ },
345
+ ],
346
+ },
347
+ ],
348
+ },
349
+ ];
350
+ //# sourceMappingURL=CustomerDescription.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CustomerDescription.js","sourceRoot":"","sources":["../../../nodes/CapitalFlow/CustomerDescription.ts"],"names":[],"mappings":";;;AAEA,gFAAgF;AAEnE,QAAA,eAAe,GAAoB;IAC/C,WAAW,EAAE,aAAa;IAC1B,IAAI,EAAE,YAAY;IAClB,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,IAAI;IACd,OAAO,EAAE,EAAE;IACX,WAAW,EAAE,sBAAsB;IACnC,cAAc,EAAE;QACf,IAAI,EAAE;YACL,QAAQ,EAAE,CAAC,UAAU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EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE;4BACnC,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE;4BACnC,EAAE,IAAI,EAAE,aAAa,EAAE,KAAK,EAAE,aAAa,EAAE;4BAC7C,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE;4BACnC,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;4BACrC,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE;4BACnC,EAAE,IAAI,EAAE,wBAAwB,EAAE,KAAK,EAAE,wBAAwB,EAAE;4BACnE,EAAE,IAAI,EAAE,eAAe,EAAE,KAAK,EAAE,eAAe,EAAE;4BACjD,EAAE,IAAI,EAAE,qBAAqB,EAAE,KAAK,EAAE,qBAAqB,EAAE;4BAC7D,EAAE,IAAI,EAAE,iBAAiB,EAAE,KAAK,EAAE,iBAAiB,EAAE;4BACrD,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE;4BACvC,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;4BACrC,EAAE,IAAI,EAAE,gBAAgB,EAAE,KAAK,EAAE,gBAAgB,EAAE;4BACnD,EAAE,IAAI,EAAE,oBAAoB,EAAE,KAAK,EAAE,oBAAoB,EAAE;4BAC3D,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,YAAY,EAAE;yBAC1C;qBACD;iBACD;aACD;SACD;KACD;CACD,CAAC"}
package/package.json ADDED
@@ -0,0 +1,57 @@
1
+ {
2
+ "name": "n8n-nodes-capitalflow",
3
+ "version": "0.1.0",
4
+ "description": "n8n community node for the CapitalFlow API – manage customers and share data collection forms.",
5
+ "keywords": [
6
+ "n8n-community-node-package",
7
+ "capitalflow",
8
+ "insurance",
9
+ "fintech",
10
+ "crm"
11
+ ],
12
+ "license": "MIT",
13
+ "homepage": "https://github.com/your-org/n8n-nodes-capitalflow",
14
+ "author": {
15
+ "name": "Your Name",
16
+ "email": "you@example.com"
17
+ },
18
+ "repository": {
19
+ "type": "git",
20
+ "url": "https://github.com/your-org/n8n-nodes-capitalflow.git"
21
+ },
22
+ "main": "index.js",
23
+ "scripts": {
24
+ "build": "tsc && npm run copy-icons",
25
+ "copy-icons": "copyfiles -u 1 \"nodes/**/*.png\" dist/",
26
+ "dev": "tsc --watch",
27
+ "format": "prettier nodes --write",
28
+ "lint": "eslint nodes --ext .ts",
29
+ "prepublishOnly": "npm run build"
30
+ },
31
+ "files": [
32
+ "dist"
33
+ ],
34
+ "n8n": {
35
+ "n8nNodesApiVersion": 1,
36
+ "credentials": [
37
+ "dist/credentials/CapitalFlowApi.credentials.js"
38
+ ],
39
+ "nodes": [
40
+ "dist/nodes/CapitalFlow/CapitalFlow.node.js"
41
+ ]
42
+ },
43
+ "devDependencies": {
44
+ "@types/node": "^20.19.37",
45
+ "copyfiles": "^2.4.1",
46
+ "eslint": "^8.0.0",
47
+ "n8n-workflow": "^2.12.0",
48
+ "prettier": "^3.0.0",
49
+ "typescript": "^5.9.3"
50
+ },
51
+ "peerDependencies": {
52
+ "n8n-workflow": "*"
53
+ },
54
+ "engines": {
55
+ "node": ">=18.0.0"
56
+ }
57
+ }