n8n-nodes-personyze 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/LICENSE.md ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Personyze
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,127 @@
1
+ # n8n-nodes-personyze
2
+
3
+ An [n8n](https://n8n.io) community node for [Personyze](https://personyze.com).
4
+ Create and update visitors, manage audiences, read tracked events, and start a
5
+ workflow when a profile changes.
6
+
7
+ Two nodes and one credential, over the existing REST API — no backend work.
8
+
9
+ - **Personyze** — declarative node. Resources: Visitor, Audience, Event.
10
+ - **Personyze Trigger** — polling trigger on profile changes.
11
+ - **Personyze API** — HTTP Basic, user name `api`, password an API key.
12
+
13
+ ## Operations
14
+
15
+ | Resource | Operation | Endpoint |
16
+ | --- | --- | --- |
17
+ | Visitor | Create or Update | `POST /users` |
18
+ | Visitor | Get Many | `GET /users/where/…` |
19
+ | Visitor | Update | `PUT /users/where/…` |
20
+ | Visitor | Delete | `DELETE /users/where/…` |
21
+ | Audience | Get Many | `GET /user_lists` |
22
+ | Audience | Add Visitor | `POST /user_list_users` |
23
+ | Event | Get Many | `GET /events/where/…` |
24
+
25
+ ## Credentials
26
+
27
+ Generate a key in Personyze under **Account settings → Integrations**, and paste
28
+ it into the node's credential. The node sends it as HTTP Basic with the user
29
+ name `api` — you never type a user name yourself. Keys are shared with the
30
+ Full-featured API, Zapier and Make cards, so a key from any of them works.
31
+
32
+ The credential test calls `GET /rest/account`, which reads nothing and changes
33
+ nothing, and answers `401` for a key that is wrong, revoked, or sent over plain
34
+ HTTP.
35
+
36
+ ## Development
37
+
38
+ ```bash
39
+ npm install
40
+ npm run build # tsc + copy icons into dist
41
+ npm run lint # eslint-plugin-n8n-nodes-base, the rules verification runs
42
+ ```
43
+
44
+ To try it in a local n8n:
45
+
46
+ ```bash
47
+ npm run build && npm link
48
+ cd ~/.n8n/custom && npm link n8n-nodes-personyze
49
+ n8n start
50
+ ```
51
+
52
+ **If `npx n8n-node new` produces different toolchain files, keep theirs.** n8n
53
+ strongly suggests scaffolding with their CLI so the package matches whatever
54
+ conventions they currently check, and their scaffolding moves faster than this
55
+ README does. The parts that are actually Personyze-specific — `nodes/`,
56
+ `credentials/`, and the `n8n` block in `package.json` — drop straight into a
57
+ fresh scaffold.
58
+
59
+ ## Publishing
60
+
61
+ Two separate things, in this order.
62
+
63
+ **1. Publish, unverified.** No approval needed. Anyone self-hosting n8n can
64
+ install it the day it lands on npm. This is the cheap way to get real users
65
+ before submitting anything.
66
+
67
+ **2. Get it verified.** Verification is what makes the node discoverable in the
68
+ nodes panel and installable on n8n Cloud. Submit through the
69
+ [Creator Portal](https://internal.users.n8n.cloud/webhook/creator-portal) once
70
+ the package is live.
71
+
72
+ Publishing happens through `.github/workflows/publish.yml`, on a GitHub release.
73
+ That is not a preference — **since 1 May 2026 n8n only accepts verified nodes
74
+ published from a GitHub action with an npm provenance statement**, so a package
75
+ pushed from a laptop is rejected. The workflow needs `NPM_TOKEN` in the repo
76
+ secrets and keeps `id-token: write`, which is what mints the provenance.
77
+
78
+ `npx @n8n/scan-community-package n8n-nodes-personyze` is part of the checklist,
79
+ but it resolves the package from the npm registry — it cannot run before the
80
+ first publish. Expect a `404` until then.
81
+
82
+ ## Verification checklist
83
+
84
+ Against n8n's
85
+ [verification guidelines](https://docs.n8n.io/connect/create-nodes/build-your-node/reference/verification-guidelines):
86
+
87
+ - [x] TypeScript, builds clean
88
+ - [x] **Zero runtime dependencies** — `dependencies` is empty and stays empty
89
+ - [x] No filesystem or environment-variable access
90
+ - [x] One service per package; a trigger node beside the main node is allowed
91
+ - [x] Not a duplicate — there is no existing Personyze node
92
+ - [x] Not a logic or flow-control node
93
+ - [x] MIT licence
94
+ - [x] English only, throughout
95
+ - [x] `n8n-community-node-package` keyword
96
+ - [x] Lint passes
97
+ - [ ] **Public GitHub repo** at the URL in `package.json`, with the npm author
98
+ matching the repo owner
99
+ - [ ] **Published from the GitHub action**, with provenance
100
+ - [ ] `@n8n/scan-community-package` run against the published package
101
+
102
+ ## Three decisions worth knowing about
103
+
104
+ **Only Email and Visitor ID are lookup keys.** Internal ID is stored on the
105
+ profile and returned by a read, but nothing can be found by it — verified
106
+ against a live account: a search matches nothing, and a second write carrying
107
+ the same one creates a duplicate rather than merging. It stays available as a
108
+ field to write; it is not offered as a key anywhere.
109
+
110
+ **There is no "Return All".** The API refuses any read whose `offset + limit`
111
+ passes 1000 rows. A `returnAll` toggle would be a promise the API cannot keep,
112
+ so `Get Many` takes a `limit` instead — and the trigger, not a paged read, is
113
+ the right way to keep up with a large account.
114
+
115
+ **The trigger polls, and advances its watermark from the data.** An instant
116
+ trigger would need Personyze to POST to a URL n8n generates, which means a
117
+ subscription registry the backend does not have. The poll watches
118
+ `data_last_modified`, which a database trigger maintains on every write and
119
+ which is indexed, so the query is served from an index. The watermark moves to
120
+ the newest row actually seen rather than to the wall clock — a profile written
121
+ while the request was in flight would otherwise fall into the gap between the
122
+ two and never be emitted.
123
+
124
+ ## Not covered
125
+
126
+ Anonymous visitors. Every operation here is keyed on an identified profile; a
127
+ visitor Personyze knows only by cookie has no stable handle to give a workflow.
@@ -0,0 +1,9 @@
1
+ import type { IAuthenticateGeneric, ICredentialTestRequest, ICredentialType, INodeProperties } from 'n8n-workflow';
2
+ export declare class PersonyzeApi implements ICredentialType {
3
+ name: string;
4
+ displayName: string;
5
+ documentationUrl: string;
6
+ properties: INodeProperties[];
7
+ authenticate: IAuthenticateGeneric;
8
+ test: ICredentialTestRequest;
9
+ }
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PersonyzeApi = void 0;
4
+ class PersonyzeApi {
5
+ constructor() {
6
+ this.name = 'personyzeApi';
7
+ this.displayName = 'Personyze API';
8
+ this.documentationUrl = 'https://personyze.com/wiki/rest:api-key';
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: 'Generate one in Personyze under Account settings → Integrations. Keys are shared with the Full-featured API, Zapier and Make cards, so a key from any of them works here.',
18
+ },
19
+ ];
20
+ this.authenticate = {
21
+ type: 'generic',
22
+ properties: {
23
+ auth: {
24
+ username: 'api',
25
+ password: '={{ $credentials.apiKey }}',
26
+ },
27
+ },
28
+ };
29
+ this.test = {
30
+ request: {
31
+ baseURL: 'https://app.personyze.com/rest',
32
+ url: '/account',
33
+ },
34
+ };
35
+ }
36
+ }
37
+ exports.PersonyzeApi = PersonyzeApi;
38
+ //# sourceMappingURL=PersonyzeApi.credentials.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PersonyzeApi.credentials.js","sourceRoot":"","sources":["../../credentials/PersonyzeApi.credentials.ts"],"names":[],"mappings":";;;AAOA,MAAa,YAAY;IAAzB;QACC,SAAI,GAAG,cAAc,CAAC;QAEtB,gBAAW,GAAG,eAAe,CAAC;QAE9B,qBAAgB,GAAG,yCAAyC,CAAC;QAE7D,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,2KAA2K;aAC5K;SACD,CAAC;QAKF,iBAAY,GAAyB;YACpC,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACX,IAAI,EAAE;oBACL,QAAQ,EAAE,KAAK;oBACf,QAAQ,EAAE,4BAA4B;iBACtC;aACD;SACD,CAAC;QAIF,SAAI,GAA2B;YAC9B,OAAO,EAAE;gBACR,OAAO,EAAE,gCAAgC;gBACzC,GAAG,EAAE,UAAU;aACf;SACD,CAAC;IACH,CAAC;CAAA;AAzCD,oCAyCC"}
@@ -0,0 +1,4 @@
1
+ import type { INodeType, INodeTypeDescription } from 'n8n-workflow';
2
+ export declare class Personyze implements INodeType {
3
+ description: INodeTypeDescription;
4
+ }
@@ -0,0 +1,331 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Personyze = void 0;
4
+ const ENCODE = 'encodeURIComponent';
5
+ async function sendCustomFields(requestOptions) {
6
+ var _a;
7
+ const custom = this.getNodeParameter('customFields.field', []);
8
+ const body = ((_a = requestOptions.body) !== null && _a !== void 0 ? _a : {});
9
+ for (const { name, value } of custom) {
10
+ if (name)
11
+ body[name] = value;
12
+ }
13
+ requestOptions.body = body;
14
+ return requestOptions;
15
+ }
16
+ const KEY_TYPE_OPTIONS = [
17
+ { name: 'Email', value: 'email' },
18
+ { name: 'Visitor ID', value: 'user_id' },
19
+ ];
20
+ class Personyze {
21
+ constructor() {
22
+ this.description = {
23
+ displayName: 'Personyze',
24
+ name: 'personyze',
25
+ icon: 'file:personyze.svg',
26
+ group: ['transform'],
27
+ version: 1,
28
+ subtitle: '={{ $parameter["operation"] + ": " + $parameter["resource"] }}',
29
+ description: 'Create and update visitors, manage audiences and read events in Personyze',
30
+ defaults: { name: 'Personyze' },
31
+ usableAsTool: true,
32
+ inputs: ['main'],
33
+ outputs: ['main'],
34
+ credentials: [{ name: 'personyzeApi', required: true }],
35
+ requestDefaults: {
36
+ baseURL: 'https://app.personyze.com/rest',
37
+ headers: {
38
+ Accept: 'application/json',
39
+ 'Content-Type': 'application/json',
40
+ },
41
+ },
42
+ properties: [
43
+ {
44
+ displayName: 'Resource',
45
+ name: 'resource',
46
+ type: 'options',
47
+ noDataExpression: true,
48
+ options: [
49
+ { name: 'Audience', value: 'audience' },
50
+ { name: 'Event', value: 'event' },
51
+ { name: 'Visitor', value: 'visitor' },
52
+ ],
53
+ default: 'visitor',
54
+ },
55
+ {
56
+ displayName: 'Operation',
57
+ name: 'operation',
58
+ type: 'options',
59
+ noDataExpression: true,
60
+ displayOptions: { show: { resource: ['visitor'] } },
61
+ options: [
62
+ {
63
+ name: 'Create or Update',
64
+ value: 'upsert',
65
+ action: 'Create or update a visitor',
66
+ description: 'Create a new record, or update the current one if it already exists (upsert)',
67
+ routing: { request: { method: 'POST', url: '/users' } },
68
+ },
69
+ {
70
+ name: 'Delete',
71
+ value: 'delete',
72
+ action: 'Delete a visitor',
73
+ description: 'Permanently delete a visitor. There is no way back.',
74
+ routing: {
75
+ request: {
76
+ method: 'DELETE',
77
+ url: `=/users/where/{{ $parameter["keyType"] }}={{ ${ENCODE}($parameter["keyValue"]) }}`,
78
+ },
79
+ },
80
+ },
81
+ {
82
+ name: 'Get Many',
83
+ value: 'getAll',
84
+ action: 'Get many visitors',
85
+ description: 'Retrieve visitors, optionally filtered by an identifier',
86
+ routing: {
87
+ request: { method: 'GET' },
88
+ },
89
+ },
90
+ {
91
+ name: 'Update',
92
+ value: 'update',
93
+ action: 'Update a visitor',
94
+ description: 'Update the fields of an existing visitor',
95
+ routing: {
96
+ request: {
97
+ method: 'PUT',
98
+ url: `=/users/where/{{ $parameter["keyType"] }}={{ ${ENCODE}($parameter["keyValue"]) }}`,
99
+ },
100
+ },
101
+ },
102
+ ],
103
+ default: 'upsert',
104
+ },
105
+ {
106
+ displayName: 'Find Visitor By',
107
+ name: 'keyType',
108
+ type: 'options',
109
+ options: KEY_TYPE_OPTIONS,
110
+ default: 'email',
111
+ required: true,
112
+ description: 'Email and the Personyze visitor ID are the identifiers that resolve. Internal ID is stored but cannot be searched on.',
113
+ displayOptions: { show: { resource: ['visitor'], operation: ['update', 'delete'] } },
114
+ },
115
+ {
116
+ displayName: 'Value',
117
+ name: 'keyValue',
118
+ type: 'string',
119
+ default: '',
120
+ required: true,
121
+ displayOptions: { show: { resource: ['visitor'], operation: ['update', 'delete'] } },
122
+ },
123
+ {
124
+ displayName: 'Filter By',
125
+ name: 'filterType',
126
+ type: 'options',
127
+ options: [{ name: 'None (All Visitors)', value: '' }, ...KEY_TYPE_OPTIONS],
128
+ default: '',
129
+ displayOptions: { show: { resource: ['visitor'], operation: ['getAll'] } },
130
+ },
131
+ {
132
+ displayName: 'Value',
133
+ name: 'filterValue',
134
+ type: 'string',
135
+ default: '',
136
+ displayOptions: {
137
+ show: { resource: ['visitor'], operation: ['getAll'] },
138
+ hide: { filterType: [''] },
139
+ },
140
+ },
141
+ {
142
+ displayName: 'Limit',
143
+ name: 'limit',
144
+ type: 'number',
145
+ typeOptions: { minValue: 1 },
146
+ default: 50,
147
+ description: 'Max number of results to return',
148
+ displayOptions: { show: { resource: ['visitor'], operation: ['getAll'] } },
149
+ routing: {
150
+ request: {
151
+ url: `=/users{{ $parameter["filterType"] ? "/where/" + $parameter["filterType"] + "=" + ${ENCODE}($parameter["filterValue"]) : "" }}/order_by/user_id/limit/0,{{ Math.min($value, 1000) }}`,
152
+ },
153
+ },
154
+ },
155
+ {
156
+ displayName: 'Email',
157
+ name: 'email',
158
+ type: 'string',
159
+ placeholder: 'name@email.com',
160
+ default: '',
161
+ displayOptions: { show: { resource: ['visitor'], operation: ['upsert', 'update'] } },
162
+ routing: { send: { type: 'body', property: 'email' } },
163
+ },
164
+ {
165
+ displayName: 'Internal ID',
166
+ name: 'internalId',
167
+ type: 'string',
168
+ default: '',
169
+ description: 'Your own identifier, stored on the profile for reference. It is not a lookup key, so key your sync on Email.',
170
+ displayOptions: { show: { resource: ['visitor'], operation: ['upsert', 'update'] } },
171
+ routing: { send: { type: 'body', property: 'internal_id' } },
172
+ },
173
+ {
174
+ displayName: 'First Name',
175
+ name: 'firstName',
176
+ type: 'string',
177
+ default: '',
178
+ displayOptions: { show: { resource: ['visitor'], operation: ['upsert', 'update'] } },
179
+ routing: { send: { type: 'body', property: 'first_name' } },
180
+ },
181
+ {
182
+ displayName: 'Last Name',
183
+ name: 'lastName',
184
+ type: 'string',
185
+ default: '',
186
+ displayOptions: { show: { resource: ['visitor'], operation: ['upsert', 'update'] } },
187
+ routing: { send: { type: 'body', property: 'last_name' } },
188
+ },
189
+ {
190
+ displayName: 'Phone',
191
+ name: 'phone',
192
+ type: 'string',
193
+ default: '',
194
+ displayOptions: { show: { resource: ['visitor'], operation: ['upsert', 'update'] } },
195
+ routing: { send: { type: 'body', property: 'phone' } },
196
+ },
197
+ {
198
+ displayName: 'Custom Fields',
199
+ name: 'customFields',
200
+ type: 'fixedCollection',
201
+ typeOptions: { multipleValues: true },
202
+ placeholder: 'Add Field',
203
+ default: {},
204
+ description: 'Any other field on the profile. Profiles have no fixed schema.',
205
+ displayOptions: { show: { resource: ['visitor'], operation: ['upsert', 'update'] } },
206
+ options: [
207
+ {
208
+ displayName: 'Field',
209
+ name: 'field',
210
+ values: [
211
+ { displayName: 'Name', name: 'name', type: 'string', default: '' },
212
+ { displayName: 'Value', name: 'value', type: 'string', default: '' },
213
+ ],
214
+ },
215
+ ],
216
+ routing: { send: { preSend: [sendCustomFields] } },
217
+ },
218
+ {
219
+ displayName: 'Operation',
220
+ name: 'operation',
221
+ type: 'options',
222
+ noDataExpression: true,
223
+ displayOptions: { show: { resource: ['audience'] } },
224
+ options: [
225
+ {
226
+ name: 'Add Visitor',
227
+ value: 'addVisitor',
228
+ action: 'Add a visitor to an audience',
229
+ description: 'Add an existing visitor to one of your audiences',
230
+ routing: { request: { method: 'POST', url: '/user_list_users' } },
231
+ },
232
+ {
233
+ name: 'Get Many',
234
+ value: 'getAll',
235
+ action: 'Get many audiences',
236
+ description: 'Retrieve the audiences defined on your account',
237
+ routing: {
238
+ request: { method: 'GET', url: '/user_lists' },
239
+ },
240
+ },
241
+ ],
242
+ default: 'getAll',
243
+ },
244
+ {
245
+ displayName: 'Audience ID',
246
+ name: 'userListId',
247
+ type: 'number',
248
+ default: 0,
249
+ required: true,
250
+ displayOptions: { show: { resource: ['audience'], operation: ['addVisitor'] } },
251
+ routing: { send: { type: 'body', property: 'user_list_id' } },
252
+ },
253
+ {
254
+ displayName: 'Find Visitor By',
255
+ name: 'memberKeyType',
256
+ type: 'options',
257
+ options: [
258
+ { name: 'Email', value: 'user_email' },
259
+ { name: 'Visitor ID', value: 'user_id' },
260
+ ],
261
+ default: 'user_email',
262
+ required: true,
263
+ displayOptions: { show: { resource: ['audience'], operation: ['addVisitor'] } },
264
+ },
265
+ {
266
+ displayName: 'Value',
267
+ name: 'memberKeyValue',
268
+ type: 'string',
269
+ default: '',
270
+ required: true,
271
+ description: 'The visitor must already exist in Personyze',
272
+ displayOptions: { show: { resource: ['audience'], operation: ['addVisitor'] } },
273
+ routing: {
274
+ send: { type: 'body', property: '={{ $parameter["memberKeyType"] }}' },
275
+ },
276
+ },
277
+ {
278
+ displayName: 'Operation',
279
+ name: 'operation',
280
+ type: 'options',
281
+ noDataExpression: true,
282
+ displayOptions: { show: { resource: ['event'] } },
283
+ options: [
284
+ {
285
+ name: 'Get Many',
286
+ value: 'getAll',
287
+ action: 'Get many events',
288
+ description: 'Retrieve the events tracked for one visitor',
289
+ routing: {
290
+ request: { method: 'GET' },
291
+ },
292
+ },
293
+ ],
294
+ default: 'getAll',
295
+ },
296
+ {
297
+ displayName: 'Visitor ID',
298
+ name: 'eventUserId',
299
+ type: 'number',
300
+ default: 0,
301
+ description: 'Restrict to one visitor. This column is not indexed on the events table, so the API serves it in pages of 50 at most.',
302
+ displayOptions: { show: { resource: ['event'], operation: ['getAll'] } },
303
+ },
304
+ {
305
+ displayName: 'Event ID',
306
+ name: 'containerId',
307
+ type: 'number',
308
+ default: 0,
309
+ description: 'Restrict to one configured event type. Event containers are defined in the Personyze panel. Leave at 0 for all.',
310
+ displayOptions: { show: { resource: ['event'], operation: ['getAll'] } },
311
+ },
312
+ {
313
+ displayName: 'Limit',
314
+ name: 'limit',
315
+ type: 'number',
316
+ typeOptions: { minValue: 1 },
317
+ default: 50,
318
+ description: 'Max number of results to return',
319
+ displayOptions: { show: { resource: ['event'], operation: ['getAll'] } },
320
+ routing: {
321
+ request: {
322
+ url: `=/events{{ $parameter["eventUserId"] || $parameter["containerId"] ? "/where/" : "" }}{{ $parameter["eventUserId"] ? "user_id=" + $parameter["eventUserId"] : "" }}{{ $parameter["eventUserId"] && $parameter["containerId"] ? "&" : "" }}{{ $parameter["containerId"] ? "container_id=" + $parameter["containerId"] : "" }}/order_by/id/limit/0,{{ Math.min($value, 50) }}`,
323
+ },
324
+ },
325
+ },
326
+ ],
327
+ };
328
+ }
329
+ }
330
+ exports.Personyze = Personyze;
331
+ //# sourceMappingURL=Personyze.node.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Personyze.node.js","sourceRoot":"","sources":["../../../nodes/Personyze/Personyze.node.ts"],"names":[],"mappings":";;;AAaA,MAAM,MAAM,GAAG,oBAAoB,CAAC;AASpC,KAAK,UAAU,gBAAgB,CAE9B,cAAmC;;IAEnC,MAAM,MAAM,GAAG,IAAI,CAAC,gBAAgB,CAAC,oBAAoB,EAAE,EAAE,CAG3D,CAAC;IACH,MAAM,IAAI,GAAG,CAAC,MAAA,cA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AS,EAAE,CAAC,QAAQ,CAAC,EAAE,EAAE;oBACxE,OAAO,EAAE;wBACR,OAAO,EAAE;4BACR,GAAG,EAAE,4WAA4W;yBACjX;qBACD;iBACD;aACD;SACD,CAAC;IACH,CAAC;CAAA;AAnUD,8BAmUC"}
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" width="64" height="64">
2
+ <rect width="64" height="64" rx="14" fill="#EA580C"/>
3
+ <path d="M22 48V16h13a10 10 0 0 1 0 20h-6" fill="none" stroke="#fff" stroke-width="6" stroke-linecap="round" stroke-linejoin="round"/>
4
+ </svg>
@@ -0,0 +1,5 @@
1
+ import type { INodeExecutionData, INodeType, INodeTypeDescription, IPollFunctions } from 'n8n-workflow';
2
+ export declare class PersonyzeTrigger implements INodeType {
3
+ description: INodeTypeDescription;
4
+ poll(this: IPollFunctions): Promise<INodeExecutionData[][] | null>;
5
+ }
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PersonyzeTrigger = void 0;
4
+ const BASE_URL = 'https://app.personyze.com/rest';
5
+ class PersonyzeTrigger {
6
+ constructor() {
7
+ this.description = {
8
+ displayName: 'Personyze Trigger',
9
+ name: 'personyzeTrigger',
10
+ icon: 'file:personyze.svg',
11
+ group: ['trigger'],
12
+ version: 1,
13
+ description: 'Starts the workflow when a Personyze visitor profile is created or changed',
14
+ subtitle: '={{ "Visitor changed" }}',
15
+ defaults: { name: 'Personyze Trigger' },
16
+ polling: true,
17
+ inputs: [],
18
+ outputs: ['main'],
19
+ credentials: [{ name: 'personyzeApi', required: true }],
20
+ properties: [
21
+ {
22
+ displayName: 'Limit',
23
+ name: 'limit',
24
+ type: 'number',
25
+ typeOptions: { minValue: 1 },
26
+ default: 50,
27
+ description: 'Max number of results to return',
28
+ },
29
+ ],
30
+ };
31
+ }
32
+ async poll() {
33
+ const staticData = this.getWorkflowStaticData('node');
34
+ const limit = this.getNodeParameter('limit', 100);
35
+ const now = Math.floor(Date.now() / 1000);
36
+ const since = staticData.lastTimeChecked;
37
+ const manual = this.getMode() === 'manual';
38
+ const url = manual
39
+ ? `${BASE_URL}/users/order_by_desc/data_last_modified/limit/0,1`
40
+ : `${BASE_URL}/users/where/data_last_modified>${since !== null && since !== void 0 ? since : now}/order_by/data_last_modified/limit/0,${limit}`;
41
+ const response = (await this.helpers.httpRequestWithAuthentication.call(this, 'personyzeApi', {
42
+ method: 'GET',
43
+ url,
44
+ json: true,
45
+ }));
46
+ if (!manual) {
47
+ const newest = response.reduce((max, row) => Math.max(max, Number(row.data_last_modified) || 0), since !== null && since !== void 0 ? since : now);
48
+ staticData.lastTimeChecked = response.length ? newest : now;
49
+ }
50
+ if (Array.isArray(response) && response.length) {
51
+ return [this.helpers.returnJsonArray(response)];
52
+ }
53
+ return null;
54
+ }
55
+ }
56
+ exports.PersonyzeTrigger = PersonyzeTrigger;
57
+ //# sourceMappingURL=PersonyzeTrigger.node.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PersonyzeTrigger.node.js","sourceRoot":"","sources":["../../../nodes/PersonyzeTrigger/PersonyzeTrigger.node.ts"],"names":[],"mappings":";;;AAQA,MAAM,QAAQ,GAAG,gCAAgC,CAAC;AAWlD,MAAa,gBAAgB;IAA7B;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,mBAAmB;YAChC,IAAI,EAAE,kBAAkB;YACxB,IAAI,EAAE,oBAAoB;YAC1B,KAAK,EAAE,CAAC,SAAS,CAAC;YAClB,OAAO,EAAE,CAAC;YACV,WAAW,EAAE,4EAA4E;YACzF,QAAQ,EAAE,0BAA0B;YACpC,QAAQ,EAAE,EAAE,IAAI,EAAE,mBAAmB,EAAE;YACvC,OAAO,EAAE,IAAI;YACb,MAAM,EAAE,EAAE;YACV,OAAO,EAAE,CAAC,MAAM,CAAC;YACjB,WAAW,EAAE,CAAC,EAAE,IAAI,EAAE,cAAc,EAAE,QAAQ,EAAE,IAA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,CAAC,EAChE,KAAK,aAAL,KAAK,cAAL,KAAK,GAAI,GAAG,CACZ,CAAC;YACF,UAAU,CAAC,eAAe,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC;QAC7D,CAAC;QAED,IAAI,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,MAAM,EAAE,CAAC;YAChD,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC,CAAC;QACjD,CAAC;QAED,OAAO,IAAI,CAAC;IACb,CAAC;CACD;AAhED,4CAgEC"}
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" width="64" height="64">
2
+ <rect width="64" height="64" rx="14" fill="#EA580C"/>
3
+ <path d="M22 48V16h13a10 10 0 0 1 0 20h-6" fill="none" stroke="#fff" stroke-width="6" stroke-linecap="round" stroke-linejoin="round"/>
4
+ </svg>
package/index.js ADDED
@@ -0,0 +1 @@
1
+ module.exports = {};
package/package.json ADDED
@@ -0,0 +1,61 @@
1
+ {
2
+ "name": "n8n-nodes-personyze",
3
+ "version": "0.1.0",
4
+ "description": "n8n node for Personyze: create and update visitors, manage audiences, read tracked events, and trigger on profile changes.",
5
+ "keywords": [
6
+ "n8n-community-node-package",
7
+ "personyze",
8
+ "personalization",
9
+ "crm",
10
+ "ab-testing"
11
+ ],
12
+ "license": "MIT",
13
+ "homepage": "https://personyze.com",
14
+ "author": {
15
+ "name": "Personyze",
16
+ "email": "support@personyze.com"
17
+ },
18
+ "repository": {
19
+ "type": "git",
20
+ "url": "git+https://github.com/personyze/n8n-nodes-personyze.git"
21
+ },
22
+ "engines": {
23
+ "node": ">=20.15"
24
+ },
25
+ "main": "index.js",
26
+ "scripts": {
27
+ "build": "npx rimraf dist && tsc && gulp build:icons",
28
+ "dev": "tsc --watch",
29
+ "format": "prettier nodes credentials --write",
30
+ "lint": "eslint nodes credentials package.json",
31
+ "lintfix": "eslint nodes credentials package.json --fix",
32
+ "prepublishOnly": "npm run build && npm run lint"
33
+ },
34
+ "files": [
35
+ "dist"
36
+ ],
37
+ "n8n": {
38
+ "n8nNodesApiVersion": 1,
39
+ "credentials": [
40
+ "dist/credentials/PersonyzeApi.credentials.js"
41
+ ],
42
+ "nodes": [
43
+ "dist/nodes/Personyze/Personyze.node.js",
44
+ "dist/nodes/PersonyzeTrigger/PersonyzeTrigger.node.js"
45
+ ]
46
+ },
47
+ "devDependencies": {
48
+ "@types/node": "^22.20.1",
49
+ "@typescript-eslint/parser": "~8.32.0",
50
+ "eslint": "^8.57.0",
51
+ "eslint-plugin-n8n-nodes-base": "^1.16.3",
52
+ "gulp": "^5.0.0",
53
+ "n8n-workflow": "*",
54
+ "prettier": "^3.5.3",
55
+ "rimraf": "^5.0.5",
56
+ "typescript": "^5.8.2"
57
+ },
58
+ "peerDependencies": {
59
+ "n8n-workflow": "*"
60
+ }
61
+ }