n8n-nodes-unifi-access 1.0.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.
Files changed (38) hide show
  1. package/README.md +76 -0
  2. package/dist/credentials/UnifiAccessApi.credentials.d.ts +10 -0
  3. package/dist/credentials/UnifiAccessApi.credentials.js +57 -0
  4. package/dist/credentials/UnifiAccessApi.credentials.js.map +1 -0
  5. package/dist/nodes/UnifiAccess/AccessPolicyDescription.d.ts +3 -0
  6. package/dist/nodes/UnifiAccess/AccessPolicyDescription.js +48 -0
  7. package/dist/nodes/UnifiAccess/AccessPolicyDescription.js.map +1 -0
  8. package/dist/nodes/UnifiAccess/CredentialDescription.d.ts +3 -0
  9. package/dist/nodes/UnifiAccess/CredentialDescription.js +152 -0
  10. package/dist/nodes/UnifiAccess/CredentialDescription.js.map +1 -0
  11. package/dist/nodes/UnifiAccess/DeviceDescription.d.ts +3 -0
  12. package/dist/nodes/UnifiAccess/DeviceDescription.js +27 -0
  13. package/dist/nodes/UnifiAccess/DeviceDescription.js.map +1 -0
  14. package/dist/nodes/UnifiAccess/EventOptions.d.ts +2 -0
  15. package/dist/nodes/UnifiAccess/EventOptions.js +61 -0
  16. package/dist/nodes/UnifiAccess/EventOptions.js.map +1 -0
  17. package/dist/nodes/UnifiAccess/GenericFunctions.d.ts +2 -0
  18. package/dist/nodes/UnifiAccess/GenericFunctions.js +64 -0
  19. package/dist/nodes/UnifiAccess/GenericFunctions.js.map +1 -0
  20. package/dist/nodes/UnifiAccess/NotificationDescription.d.ts +3 -0
  21. package/dist/nodes/UnifiAccess/NotificationDescription.js +104 -0
  22. package/dist/nodes/UnifiAccess/NotificationDescription.js.map +1 -0
  23. package/dist/nodes/UnifiAccess/UnifiAccess.node.d.ts +11 -0
  24. package/dist/nodes/UnifiAccess/UnifiAccess.node.js +373 -0
  25. package/dist/nodes/UnifiAccess/UnifiAccess.node.js.map +1 -0
  26. package/dist/nodes/UnifiAccess/UnifiAccess.node.json +18 -0
  27. package/dist/nodes/UnifiAccess/UnifiAccessTrigger.node.d.ts +12 -0
  28. package/dist/nodes/UnifiAccess/UnifiAccessTrigger.node.js +100 -0
  29. package/dist/nodes/UnifiAccess/UnifiAccessTrigger.node.js.map +1 -0
  30. package/dist/nodes/UnifiAccess/UnifiAccessTrigger.node.json +18 -0
  31. package/dist/nodes/UnifiAccess/UserDescription.d.ts +3 -0
  32. package/dist/nodes/UnifiAccess/UserDescription.js +414 -0
  33. package/dist/nodes/UnifiAccess/UserDescription.js.map +1 -0
  34. package/dist/nodes/UnifiAccess/unifiAccess.dark.svg +42 -0
  35. package/dist/nodes/UnifiAccess/unifiAccess.svg +42 -0
  36. package/dist/package.json +55 -0
  37. package/dist/tsconfig.tsbuildinfo +1 -0
  38. package/package.json +55 -0
@@ -0,0 +1,414 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.userFields = exports.userOperations = void 0;
4
+ exports.userOperations = [
5
+ {
6
+ displayName: 'Operation',
7
+ name: 'operation',
8
+ type: 'options',
9
+ noDataExpression: true,
10
+ displayOptions: {
11
+ show: {
12
+ resource: ['user'],
13
+ },
14
+ },
15
+ options: [
16
+ {
17
+ name: 'Assign Access Policy',
18
+ value: 'assignAccessPolicy',
19
+ action: 'Assign access policies to a user',
20
+ description: 'Assign access policies to a user',
21
+ },
22
+ {
23
+ name: 'Assign NFC Card',
24
+ value: 'assignNfc',
25
+ action: 'Assign an NFC card to a user',
26
+ description: 'Assign an NFC card to a user',
27
+ },
28
+ {
29
+ name: 'Clear PIN',
30
+ value: 'clearPin',
31
+ action: "Clear a user's PIN",
32
+ description: "Clear a user's PIN",
33
+ },
34
+ {
35
+ name: 'Create',
36
+ value: 'create',
37
+ action: 'Create a new user',
38
+ description: 'Create a new user',
39
+ },
40
+ {
41
+ name: 'Delete',
42
+ value: 'delete',
43
+ action: 'Delete a user',
44
+ description: 'Delete a user',
45
+ },
46
+ {
47
+ name: 'Get',
48
+ value: 'get',
49
+ action: 'Get a user',
50
+ description: 'Get the data of a single user',
51
+ },
52
+ {
53
+ name: 'Get Many',
54
+ value: 'getAll',
55
+ action: 'Get users',
56
+ description: 'Get users',
57
+ },
58
+ {
59
+ name: 'Send UniFi Identity Invitations',
60
+ value: 'sendInvitations',
61
+ action: 'Send UniFi Identity invitations',
62
+ },
63
+ {
64
+ name: 'Set PIN',
65
+ value: 'setPin',
66
+ action: "Set a user's PIN",
67
+ description: "Set a user's PIN",
68
+ },
69
+ {
70
+ name: 'Unassign NFC Card',
71
+ value: 'unassignNfc',
72
+ action: 'Unssign an NFC card from a user',
73
+ description: 'Unssign an NFC card from a user',
74
+ },
75
+ {
76
+ name: 'Update',
77
+ value: 'update',
78
+ action: 'Update a user',
79
+ description: 'Update a user',
80
+ },
81
+ ],
82
+ default: 'getAll',
83
+ },
84
+ ];
85
+ exports.userFields = [
86
+ {
87
+ displayName: 'User ID',
88
+ name: 'userId',
89
+ type: 'string',
90
+ default: '',
91
+ required: true,
92
+ displayOptions: {
93
+ show: {
94
+ resource: ['user'],
95
+ operation: [
96
+ 'get',
97
+ 'update',
98
+ 'assignAccessPolicy',
99
+ 'assignNfc',
100
+ 'unassignNfc',
101
+ 'setPin',
102
+ 'clearPin',
103
+ 'delete'
104
+ ]
105
+ },
106
+ },
107
+ description: "The user's ID",
108
+ },
109
+ {
110
+ displayName: 'First Name',
111
+ name: 'firstName',
112
+ type: 'string',
113
+ default: '',
114
+ required: true,
115
+ displayOptions: {
116
+ show: {
117
+ resource: ['user'],
118
+ operation: ['create'],
119
+ },
120
+ },
121
+ description: 'The first name of the user',
122
+ },
123
+ {
124
+ displayName: 'Last Name',
125
+ name: 'lastName',
126
+ type: 'string',
127
+ default: '',
128
+ required: true,
129
+ displayOptions: {
130
+ show: {
131
+ resource: ['user'],
132
+ operation: ['create'],
133
+ },
134
+ },
135
+ description: 'The last name of the user',
136
+ },
137
+ {
138
+ displayName: 'First Name',
139
+ name: 'firstNameOpt',
140
+ type: 'string',
141
+ default: '',
142
+ displayOptions: {
143
+ show: {
144
+ resource: ['user'],
145
+ operation: ['update'],
146
+ },
147
+ },
148
+ description: 'The first name of the user',
149
+ },
150
+ {
151
+ displayName: 'Last Name',
152
+ name: 'lastNameOpt',
153
+ type: 'string',
154
+ default: '',
155
+ displayOptions: {
156
+ show: {
157
+ resource: ['user'],
158
+ operation: ['update'],
159
+ },
160
+ },
161
+ description: 'The last name of the user',
162
+ },
163
+ {
164
+ displayName: 'Email Address',
165
+ name: 'email',
166
+ type: 'string',
167
+ default: '',
168
+ placeholder: 'name@email.com',
169
+ displayOptions: {
170
+ show: {
171
+ resource: ['user'],
172
+ operation: ['create', 'update'],
173
+ },
174
+ },
175
+ description: 'The email address of the user',
176
+ },
177
+ {
178
+ displayName: 'Employee Number',
179
+ name: 'employeeNumber',
180
+ type: 'string',
181
+ default: '',
182
+ displayOptions: {
183
+ show: {
184
+ resource: ['user'],
185
+ operation: ['create', 'update'],
186
+ },
187
+ },
188
+ description: 'The employee number of the user',
189
+ },
190
+ {
191
+ displayName: 'Onboarding Date',
192
+ name: 'onboardTime',
193
+ type: 'dateTime',
194
+ default: '',
195
+ displayOptions: {
196
+ show: {
197
+ resource: ['user'],
198
+ operation: ['create', 'update'],
199
+ },
200
+ },
201
+ description: 'The user onboarding date',
202
+ },
203
+ {
204
+ displayName: 'Status',
205
+ name: 'status',
206
+ type: 'options',
207
+ default: '',
208
+ options: [
209
+ {
210
+ name: '',
211
+ value: '',
212
+ },
213
+ {
214
+ name: 'Active',
215
+ value: 'ACTIVE',
216
+ },
217
+ {
218
+ name: 'Deactivated',
219
+ value: 'DEACTIVATED',
220
+ },
221
+ ],
222
+ displayOptions: {
223
+ show: {
224
+ resource: ['user'],
225
+ operation: ['update'],
226
+ },
227
+ },
228
+ description: 'Status of the user',
229
+ },
230
+ {
231
+ displayName: 'Options',
232
+ name: 'optionsGet',
233
+ type: 'collection',
234
+ placeholder: 'Add option',
235
+ default: {},
236
+ options: [
237
+ {
238
+ displayName: 'Expand Access Policies?',
239
+ name: 'expandAccessPolicies',
240
+ type: 'boolean',
241
+ default: false,
242
+ description: "Whether or not to retrieve the access policies for the user",
243
+ },
244
+ ],
245
+ displayOptions: {
246
+ show: {
247
+ resource: ['user'],
248
+ operation: ['get'],
249
+ },
250
+ },
251
+ },
252
+ {
253
+ displayName: 'Options',
254
+ name: 'optionsGetAll',
255
+ type: 'collection',
256
+ placeholder: 'Add option',
257
+ default: {},
258
+ options: [
259
+ {
260
+ displayName: 'Expand Access Policies?',
261
+ name: 'expandAccessPolicies',
262
+ type: 'boolean',
263
+ default: false,
264
+ description: "Whether or not to retrieve the access policies for the user",
265
+ },
266
+ {
267
+ displayName: 'Limit',
268
+ name: 'limit',
269
+ type: 'number',
270
+ default: 50,
271
+ description: 'Max number of results to return',
272
+ typeOptions: {
273
+ minValue: 1,
274
+ step: 1,
275
+ }
276
+ }
277
+ ],
278
+ displayOptions: {
279
+ show: {
280
+ resource: ['user'],
281
+ operation: ['getAll'],
282
+ },
283
+ },
284
+ },
285
+ {
286
+ displayName: 'Access Policy Names or IDs',
287
+ name: 'accessPolicyIds',
288
+ type: 'multiOptions',
289
+ default: [],
290
+ displayOptions: {
291
+ show: {
292
+ resource: ['user'],
293
+ operation: ['assignAccessPolicy'],
294
+ },
295
+ },
296
+ typeOptions: {
297
+ loadOptionsMethod: 'getAccessPolicies',
298
+ },
299
+ description: 'The access policies to assign to the user. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
300
+ },
301
+ {
302
+ displayName: 'Overwrite Existing Policies',
303
+ name: 'overwrite',
304
+ type: 'boolean',
305
+ default: false,
306
+ displayOptions: {
307
+ show: {
308
+ resource: ['user'],
309
+ operation: ['assignAccessPolicy'],
310
+ },
311
+ },
312
+ description: "Whether to overwrite or append the user's access policies"
313
+ },
314
+ {
315
+ displayName: 'NFC Token',
316
+ name: 'token',
317
+ type: 'string',
318
+ required: true,
319
+ default: '',
320
+ displayOptions: {
321
+ show: {
322
+ resource: ['user'],
323
+ operation: ['assignNfc', 'unassignNfc'],
324
+ },
325
+ },
326
+ typeOptions: {
327
+ password: true,
328
+ },
329
+ description: 'The NFC token assigned to the user',
330
+ },
331
+ {
332
+ displayName: 'Force Add',
333
+ name: 'forceAdd',
334
+ type: 'boolean',
335
+ default: false,
336
+ displayOptions: {
337
+ show: {
338
+ resource: ['user'],
339
+ operation: ['assignNfc'],
340
+ },
341
+ },
342
+ description: 'Whether to overwrite and NFC token which has already been asigned',
343
+ },
344
+ {
345
+ displayName: 'PIN Code',
346
+ name: 'pin',
347
+ type: 'string',
348
+ required: true,
349
+ default: '',
350
+ displayOptions: {
351
+ show: {
352
+ resource: ['user'],
353
+ operation: ['setPin'],
354
+ },
355
+ },
356
+ typeOptions: {
357
+ password: true,
358
+ },
359
+ description: 'The PIN code to assign to the user',
360
+ },
361
+ {
362
+ displayName: "The user must be deactivated before it can be deleted. Use the Update operation to change a user's status.",
363
+ name: 'deleteNotice',
364
+ type: 'notice',
365
+ displayOptions: {
366
+ show: {
367
+ resource: ['user'],
368
+ operation: ['delete'],
369
+ },
370
+ },
371
+ default: '',
372
+ },
373
+ {
374
+ displayName: 'Invitations',
375
+ name: 'invitations',
376
+ type: 'fixedCollection',
377
+ placeholder: 'Add Invitation',
378
+ default: [],
379
+ displayOptions: {
380
+ show: {
381
+ resource: ['user'],
382
+ operation: ['sendInvitations'],
383
+ },
384
+ },
385
+ typeOptions: {
386
+ multipleValues: true,
387
+ },
388
+ options: [
389
+ {
390
+ displayName: 'Invitation',
391
+ name: 'invitation',
392
+ values: [
393
+ {
394
+ displayName: 'User ID',
395
+ name: 'userId',
396
+ type: 'string',
397
+ default: '',
398
+ required: true,
399
+ },
400
+ {
401
+ displayName: 'Email',
402
+ name: 'email',
403
+ type: 'string',
404
+ default: '',
405
+ placeholder: 'name@email.com',
406
+ description: "If an email it set, it will also update the user's email"
407
+ },
408
+ ],
409
+ },
410
+ ],
411
+ description: 'The invitations to send',
412
+ },
413
+ ];
414
+ //# sourceMappingURL=UserDescription.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UserDescription.js","sourceRoot":"","sources":["../../../nodes/UnifiAccess/UserDescription.ts"],"names":[],"mappings":";;;AAEa,QAAA,cAAc,GAAsB;IAChD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE;YACf,IAAI,EAAE;gBACD,QAAQ,EAAE,CAAC,MAAM,CAAC;aACnB;SACJ;QACD,OAAO,EAAE;YACL;gBACE,IAAI,EAAE,sBAAsB;gBAC5B,KAAK,EAAE,oBAAoB;gBAC3B,MAAM,EAAE,kCAAkC;gBAC1C,WAAW,EAAE,kCAAkC;aAChD;YACD;gBACE,IAAI,EAAE,iBAAiB;gBACvB,KAAK,EAAE,WAAW;gBAClB,MAAM,EAAE,8BAA8B;gBACtC,WAAW,EAAE,8BAA8B;aAC5C;YACJ;gBACC,IAAI,EAAE,WAAW;gBACjB,KAAK,EAAE,UAAU;gBAEjB,MAAM,EAAE,oBAAoB;gBAC5B,WAAW,EAAE,oBAAoB;aACjC;YACD;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,MAAM,EAAE,mBAAmB;gBAC3B,WAAW,EAAE,mBAAmB;aAChC;YACE;gBACE,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,MAAM,EAAE,eAAe;gBACvB,WAAW,EAAE,eAAe;aAC7B;YACJ;gBACC,IAAI,EAAE,KAAK;gBACX,KAAK,EAAE,KAAK;gBACZ,MAAM,EAAE,YAAY;gBACpB,WAAW,EAAE,+BAA+B;aAC5C;YACD;gBACC,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,QAAQ;gBACf,MAAM,EAAE,WAAW;gBACnB,WAAW,EAAE,WAAW;aACxB;YACD;gBACC,IAAI,EAAE,iCAAiC;g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E,CAAC,iBAAiB,CAAC;aAC/B;SACF;QACD,WAAW,EAAE;YACX,cAAc,EAAE,IAAI;SACrB;QACD,OAAO,EAAE;YACP;gBACE,WAAW,EAAE,YAAY;gBACzB,IAAI,EAAE,YAAY;gBAClB,MAAM,EAAE;oBACN;wBACE,WAAW,EAAE,SAAS;wBACtB,IAAI,EAAE,QAAQ;wBACd,IAAI,EAAE,QAAQ;wBACd,OAAO,EAAE,EAAE;wBACX,QAAQ,EAAE,IAAI;qBACf;oBACD;wBACE,WAAW,EAAE,OAAO;wBACpB,IAAI,EAAE,OAAO;wBACb,IAAI,EAAE,QAAQ;wBACd,OAAO,EAAE,EAAE;wBACX,WAAW,EAAE,gBAAgB;wBAC7B,WAAW,EAAE,0DAA0D;qBACxE;iBACF;aACF;SACF;QACD,WAAW,EAAE,yBAAyB;KACxC;CACD,CAAC"}
@@ -0,0 +1,42 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <svg
3
+ viewBox="0 0 24 24"
4
+ fill="none"
5
+ stroke="aquamarine"
6
+ stroke-width="2"
7
+ stroke-linecap="round"
8
+ stroke-linejoin="round"
9
+ class="feather feather-cpu"
10
+ version="1.1"
11
+ id="svg9"
12
+ sodipodi:docname="unifiAccess.dark.svg"
13
+ inkscape:version="1.4 (86a8ad7, 2024-10-11)"
14
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
15
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
16
+ xmlns="http://www.w3.org/2000/svg"
17
+ xmlns:svg="http://www.w3.org/2000/svg">
18
+ <defs
19
+ id="defs9" />
20
+ <sodipodi:namedview
21
+ id="namedview9"
22
+ pagecolor="#ffffff"
23
+ bordercolor="#000000"
24
+ borderopacity="0.25"
25
+ inkscape:showpageshadow="2"
26
+ inkscape:pageopacity="0.0"
27
+ inkscape:pagecheckerboard="true"
28
+ inkscape:deskcolor="#d1d1d1"
29
+ inkscape:zoom="27.454857"
30
+ inkscape:cx="2.2218291"
31
+ inkscape:cy="13.822691"
32
+ inkscape:window-width="2560"
33
+ inkscape:window-height="1494"
34
+ inkscape:window-x="-11"
35
+ inkscape:window-y="-11"
36
+ inkscape:window-maximized="1"
37
+ inkscape:current-layer="svg9" />
38
+ <path
39
+ d="m 15.339861,5.853418 q 0,-1.3727364 0.903242,-2.5519213 0.903242,-1.1791849 4.694071,-1.1770051 v 9.5267664 l -0.432005,1.391917 a 9.2804662,9.2804662 0 0 1 -0.824775,1.904569 6.3100549,6.3100549 0 0 1 -1.158697,1.459922 5.9530296,5.9530296 0 0 1 -1.502206,1.015275 7.6636102,7.6636102 0 0 1 -1.836564,0.589811 9.4796851,9.4796851 0 0 0 0.15737,-1.68181 z M 6.4207778,3.202977 H 7.5406766 V 4.284078 H 6.4207778 Z M 7.5406766,4.8459888 H 8.6614465 V 5.9292691 H 7.5424199 Z M 6.4207778,6.2187255 H 7.5411123 V 7.302006 H 6.4207778 Z M 5.301751,7.843428 h 1.1190268 v 1.10159 H 5.3030589 Z M 3.064134,2.100952 H 4.1831607 V 3.202977 H 3.064134 Z m 5.5973125,14.22999 q 0,1.411098 0.520498,2.455582 0.5204975,1.044483 1.1495415,1.739787 0.627737,0.697485 1.148671,1.034893 l 0.520497,0.337844 q -2.1007366,0 -3.7607494,-0.589374 Q 6.5798914,20.720299 5.4307858,19.666226 A 7.1125974,7.1125974 0 0 1 3.6731248,17.181438 Q 3.062826,15.749851 3.062826,14.086351 V 5.1171362 h 1.1190267 v 5.9935708 h 1.1203341 v -1.082408 h 1.118591 v 2.416347 H 7.5406766 V 8.384851 h 1.1207699 z m 4.1238775,2.262029 q 1.551904,0.05754 2.848353,-0.232348 a 7.1156494,7.1156494 0 0 0 2.326982,-0.959042 6.489657,6.489657 0 0 0 1.777713,-1.721043 q 0.746308,-1.052766 1.197929,-2.522714 v 0.93027 q 0,1.585469 -0.540113,2.948615 a 6.9591511,6.9591511 0 0 1 -1.581546,2.397603 q -1.04056,1.034893 -2.533614,1.672655 -1.493052,0.637762 -3.396748,0.753719 l -0.668278,-0.348742 q -0.07803,-0.05755 -1.296013,-1.015276 -1.2179827,-0.957734 -1.6696041,-2.890201 a 6.6152043,6.6152043 0 0 0 1.5423131,0.666969 q 0.874035,0.261557 1.992626,0.319535 z M 5.3030589,4.3045668 H 6.4033407 V 5.3878472 H 5.3030589 Z"
40
+ style="fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.0871858"
41
+ id="path1" />
42
+ </svg>
@@ -0,0 +1,42 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <svg
3
+ viewBox="0 0 24 24"
4
+ fill="none"
5
+ stroke="darkblue"
6
+ stroke-width="2"
7
+ stroke-linecap="round"
8
+ stroke-linejoin="round"
9
+ class="feather feather-cpu"
10
+ version="1.1"
11
+ id="svg9"
12
+ sodipodi:docname="unifiAccess.svg"
13
+ inkscape:version="1.4 (86a8ad7, 2024-10-11)"
14
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
15
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
16
+ xmlns="http://www.w3.org/2000/svg"
17
+ xmlns:svg="http://www.w3.org/2000/svg">
18
+ <defs
19
+ id="defs9" />
20
+ <sodipodi:namedview
21
+ id="namedview9"
22
+ pagecolor="#ffffff"
23
+ bordercolor="#000000"
24
+ borderopacity="0.25"
25
+ inkscape:showpageshadow="2"
26
+ inkscape:pageopacity="0.0"
27
+ inkscape:pagecheckerboard="0"
28
+ inkscape:deskcolor="#d1d1d1"
29
+ inkscape:zoom="23.967059"
30
+ inkscape:cx="10.973395"
31
+ inkscape:cy="20.006626"
32
+ inkscape:window-width="2560"
33
+ inkscape:window-height="1494"
34
+ inkscape:window-x="-11"
35
+ inkscape:window-y="-11"
36
+ inkscape:window-maximized="1"
37
+ inkscape:current-layer="svg9" />
38
+ <path
39
+ d="m 15.339861,5.8534181 q 0,-1.3727364 0.903242,-2.5519213 0.903242,-1.1791849 4.694071,-1.1770051 v 9.5267663 l -0.432005,1.391917 a 9.2804662,9.2804662 0 0 1 -0.824775,1.904569 6.3100549,6.3100549 0 0 1 -1.158697,1.459922 5.9530296,5.9530296 0 0 1 -1.502206,1.015275 7.6636102,7.6636102 0 0 1 -1.836564,0.589811 9.4796851,9.4796851 0 0 0 0.15737,-1.68181 z M 6.4207781,3.2029771 h 1.1198988 v 1.081101 H 6.4207781 Z M 7.5406769,4.8459889 H 8.6614468 V 5.9292692 H 7.5424202 Z M 6.4207781,6.2187256 H 7.5411126 V 7.3020061 H 6.4207781 Z M 5.3017513,7.8434284 H 6.4207781 V 8.9450179 H 5.3030592 Z M 3.0641343,2.1009521 H 4.183161 v 1.102025 H 3.0641343 Z M 8.6614468,16.330942 q 0,1.411098 0.520498,2.455582 0.5204975,1.044483 1.1495412,1.739787 0.627737,0.697485 1.148671,1.034893 l 0.520497,0.337844 q -2.1007363,0 -3.7607491,-0.589374 Q 6.5798917,20.720299 5.4307861,19.666226 A 7.1125974,7.1125974 0 0 1 3.6731251,17.181438 Q 3.0628263,15.749851 3.0628263,14.086351 V 5.1171363 H 4.181853 v 5.9935707 h 1.1203341 v -1.082408 h 1.118591 v 2.416347 H 7.5406769 V 8.3848507 h 1.1207699 z m 4.1238772,2.262029 q 1.551904,0.05754 2.848353,-0.232348 a 7.1156494,7.1156494 0 0 0 2.326982,-0.959042 6.489657,6.489657 0 0 0 1.777713,-1.721043 q 0.746308,-1.052766 1.197929,-2.522714 v 0.93027 q 0,1.585469 -0.540113,2.948615 a 6.9591511,6.9591511 0 0 1 -1.581546,2.397603 q -1.04056,1.034893 -2.533614,1.672655 -1.493052,0.637762 -3.396748,0.753719 l -0.668278,-0.348742 q -0.07803,-0.05755 -1.296013,-1.015276 -1.2179824,-0.957734 -1.6696038,-2.890201 a 6.6152043,6.6152043 0 0 0 1.5423128,0.666969 q 0.874035,0.261557 1.992626,0.319535 z M 5.3030592,4.3045669 H 6.403341 V 5.3878473 H 5.3030592 Z"
40
+ style="fill:#0559c9;stroke-width:0.0871858;stroke:none;fill-opacity:1"
41
+ id="path1" />
42
+ </svg>
@@ -0,0 +1,55 @@
1
+ {
2
+ "name": "n8n-nodes-unifi-access",
3
+ "version": "0.1.0",
4
+ "description": "n8n node for accessing the UniFi Access API",
5
+ "license": "MIT",
6
+ "homepage": "",
7
+ "keywords": [
8
+ "n8n-community-node-package"
9
+ ],
10
+ "author": {
11
+ "name": "Rick Yorgason",
12
+ "email": "rick@firefang.com"
13
+ },
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "https://github.com/Skrapion/n8n-nodes-unifi-access.git"
17
+ },
18
+ "scripts": {
19
+ "build": "n8n-node build",
20
+ "build:watch": "tsc --watch",
21
+ "dev": "n8n-node dev",
22
+ "lint": "n8n-node lint",
23
+ "lint:fix": "n8n-node lint --fix",
24
+ "release": "n8n-node release",
25
+ "prepublishOnly": "n8n-node prerelease"
26
+ },
27
+ "files": [
28
+ "dist"
29
+ ],
30
+ "n8n": {
31
+ "n8nNodesApiVersion": 1,
32
+ "strict": true,
33
+ "credentials": [
34
+ "dist/credentials/UnifiAccessApi.credentials.js"
35
+ ],
36
+ "nodes": [
37
+ "dist/nodes/UnifiAccess/UnifiAccess.node.js",
38
+ "dist/nodes/UnifiAccess/UnifiAccessTrigger.node.js"
39
+ ]
40
+ },
41
+ "devDependencies": {
42
+ "@eslint/js": "^9.39.2",
43
+ "@n8n/node-cli": "*",
44
+ "@types/node": "^25.0.10",
45
+ "eslint": "9.32.0",
46
+ "globals": "^17.1.0",
47
+ "prettier": "3.6.2",
48
+ "release-it": "^19.0.4",
49
+ "typescript": "^5.9.3",
50
+ "typescript-eslint": "^8.54.0"
51
+ },
52
+ "peerDependencies": {
53
+ "n8n-workflow": "*"
54
+ }
55
+ }