@n8n-dev/n8n-nodes-petstore 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.
@@ -0,0 +1,750 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.userDescription = void 0;
4
+ exports.userDescription = [
5
+ {
6
+ "displayName": "Operation",
7
+ "name": "operation",
8
+ "type": "options",
9
+ "noDataExpression": true,
10
+ "displayOptions": {
11
+ "show": {
12
+ "resource": [
13
+ "User"
14
+ ]
15
+ }
16
+ },
17
+ "options": [
18
+ {
19
+ "name": "Create User",
20
+ "value": "Create User",
21
+ "action": "Create user.",
22
+ "description": "This can only be done by the logged in user.",
23
+ "routing": {
24
+ "request": {
25
+ "method": "POST",
26
+ "url": "=/user"
27
+ }
28
+ }
29
+ },
30
+ {
31
+ "name": "Create Users With List Input",
32
+ "value": "Create Users With List Input",
33
+ "action": "Creates list of users with given input array.",
34
+ "description": "Creates list of users with given input array.",
35
+ "routing": {
36
+ "request": {
37
+ "method": "POST",
38
+ "url": "=/user/createWithList"
39
+ }
40
+ }
41
+ },
42
+ {
43
+ "name": "Login User",
44
+ "value": "Login User",
45
+ "action": "Logs user into the system.",
46
+ "description": "Log into the system.",
47
+ "routing": {
48
+ "request": {
49
+ "method": "GET",
50
+ "url": "=/user/login"
51
+ }
52
+ }
53
+ },
54
+ {
55
+ "name": "Logout User",
56
+ "value": "Logout User",
57
+ "action": "Logs out current logged in user session.",
58
+ "description": "Log user out of the system.",
59
+ "routing": {
60
+ "request": {
61
+ "method": "GET",
62
+ "url": "=/user/logout"
63
+ }
64
+ }
65
+ },
66
+ {
67
+ "name": "Get User By Name",
68
+ "value": "Get User By Name",
69
+ "action": "Get user by user name.",
70
+ "description": "Get user detail based on username.",
71
+ "routing": {
72
+ "request": {
73
+ "method": "GET",
74
+ "url": "=/user/{{$parameter[\"username\"]}}"
75
+ }
76
+ }
77
+ },
78
+ {
79
+ "name": "Update User",
80
+ "value": "Update User",
81
+ "action": "Update user resource.",
82
+ "description": "This can only be done by the logged in user.",
83
+ "routing": {
84
+ "request": {
85
+ "method": "PUT",
86
+ "url": "=/user/{{$parameter[\"username\"]}}"
87
+ }
88
+ }
89
+ },
90
+ {
91
+ "name": "Delete User",
92
+ "value": "Delete User",
93
+ "action": "Delete user resource.",
94
+ "description": "This can only be done by the logged in user.",
95
+ "routing": {
96
+ "request": {
97
+ "method": "DELETE",
98
+ "url": "=/user/{{$parameter[\"username\"]}}"
99
+ }
100
+ }
101
+ }
102
+ ],
103
+ "default": ""
104
+ },
105
+ {
106
+ "displayName": "POST /user",
107
+ "name": "operation",
108
+ "type": "notice",
109
+ "typeOptions": {
110
+ "theme": "info"
111
+ },
112
+ "default": "",
113
+ "displayOptions": {
114
+ "show": {
115
+ "resource": [
116
+ "User"
117
+ ],
118
+ "operation": [
119
+ "Create User"
120
+ ]
121
+ }
122
+ }
123
+ },
124
+ {
125
+ "displayName": "Id",
126
+ "name": "id",
127
+ "type": "number",
128
+ "default": 10,
129
+ "routing": {
130
+ "send": {
131
+ "property": "id",
132
+ "propertyInDotNotation": false,
133
+ "type": "body",
134
+ "value": "={{ $value }}"
135
+ }
136
+ },
137
+ "displayOptions": {
138
+ "show": {
139
+ "resource": [
140
+ "User"
141
+ ],
142
+ "operation": [
143
+ "Create User"
144
+ ]
145
+ }
146
+ }
147
+ },
148
+ {
149
+ "displayName": "Username",
150
+ "name": "username",
151
+ "type": "string",
152
+ "default": "theUser",
153
+ "routing": {
154
+ "send": {
155
+ "property": "username",
156
+ "propertyInDotNotation": false,
157
+ "type": "body",
158
+ "value": "={{ $value }}"
159
+ }
160
+ },
161
+ "displayOptions": {
162
+ "show": {
163
+ "resource": [
164
+ "User"
165
+ ],
166
+ "operation": [
167
+ "Create User"
168
+ ]
169
+ }
170
+ }
171
+ },
172
+ {
173
+ "displayName": "First Name",
174
+ "name": "firstName",
175
+ "type": "string",
176
+ "default": "John",
177
+ "routing": {
178
+ "send": {
179
+ "property": "firstName",
180
+ "propertyInDotNotation": false,
181
+ "type": "body",
182
+ "value": "={{ $value }}"
183
+ }
184
+ },
185
+ "displayOptions": {
186
+ "show": {
187
+ "resource": [
188
+ "User"
189
+ ],
190
+ "operation": [
191
+ "Create User"
192
+ ]
193
+ }
194
+ }
195
+ },
196
+ {
197
+ "displayName": "Last Name",
198
+ "name": "lastName",
199
+ "type": "string",
200
+ "default": "James",
201
+ "routing": {
202
+ "send": {
203
+ "property": "lastName",
204
+ "propertyInDotNotation": false,
205
+ "type": "body",
206
+ "value": "={{ $value }}"
207
+ }
208
+ },
209
+ "displayOptions": {
210
+ "show": {
211
+ "resource": [
212
+ "User"
213
+ ],
214
+ "operation": [
215
+ "Create User"
216
+ ]
217
+ }
218
+ }
219
+ },
220
+ {
221
+ "displayName": "Email",
222
+ "name": "email",
223
+ "type": "string",
224
+ "default": "john@email.com",
225
+ "routing": {
226
+ "send": {
227
+ "property": "email",
228
+ "propertyInDotNotation": false,
229
+ "type": "body",
230
+ "value": "={{ $value }}"
231
+ }
232
+ },
233
+ "displayOptions": {
234
+ "show": {
235
+ "resource": [
236
+ "User"
237
+ ],
238
+ "operation": [
239
+ "Create User"
240
+ ]
241
+ }
242
+ }
243
+ },
244
+ {
245
+ "displayName": "Password",
246
+ "name": "password",
247
+ "type": "string",
248
+ "default": "12345",
249
+ "routing": {
250
+ "send": {
251
+ "property": "password",
252
+ "propertyInDotNotation": false,
253
+ "type": "body",
254
+ "value": "={{ $value }}"
255
+ }
256
+ },
257
+ "displayOptions": {
258
+ "show": {
259
+ "resource": [
260
+ "User"
261
+ ],
262
+ "operation": [
263
+ "Create User"
264
+ ]
265
+ }
266
+ }
267
+ },
268
+ {
269
+ "displayName": "Phone",
270
+ "name": "phone",
271
+ "type": "string",
272
+ "default": "12345",
273
+ "routing": {
274
+ "send": {
275
+ "property": "phone",
276
+ "propertyInDotNotation": false,
277
+ "type": "body",
278
+ "value": "={{ $value }}"
279
+ }
280
+ },
281
+ "displayOptions": {
282
+ "show": {
283
+ "resource": [
284
+ "User"
285
+ ],
286
+ "operation": [
287
+ "Create User"
288
+ ]
289
+ }
290
+ }
291
+ },
292
+ {
293
+ "displayName": "User Status",
294
+ "name": "userStatus",
295
+ "type": "number",
296
+ "default": 1,
297
+ "description": "User Status",
298
+ "routing": {
299
+ "send": {
300
+ "property": "userStatus",
301
+ "propertyInDotNotation": false,
302
+ "type": "body",
303
+ "value": "={{ $value }}"
304
+ }
305
+ },
306
+ "displayOptions": {
307
+ "show": {
308
+ "resource": [
309
+ "User"
310
+ ],
311
+ "operation": [
312
+ "Create User"
313
+ ]
314
+ }
315
+ }
316
+ },
317
+ {
318
+ "displayName": "POST /user/createWithList",
319
+ "name": "operation",
320
+ "type": "notice",
321
+ "typeOptions": {
322
+ "theme": "info"
323
+ },
324
+ "default": "",
325
+ "displayOptions": {
326
+ "show": {
327
+ "resource": [
328
+ "User"
329
+ ],
330
+ "operation": [
331
+ "Create Users With List Input"
332
+ ]
333
+ }
334
+ }
335
+ },
336
+ {
337
+ "displayName": "Body",
338
+ "name": "body",
339
+ "type": "json",
340
+ "default": "{\n \"id\": 10,\n \"username\": \"theUser\",\n \"firstName\": \"John\",\n \"lastName\": \"James\",\n \"email\": \"john@email.com\",\n \"password\": \"12345\",\n \"phone\": \"12345\",\n \"userStatus\": 1\n}",
341
+ "routing": {
342
+ "request": {
343
+ "body": "={{ JSON.parse($value) }}"
344
+ }
345
+ },
346
+ "displayOptions": {
347
+ "show": {
348
+ "resource": [
349
+ "User"
350
+ ],
351
+ "operation": [
352
+ "Create Users With List Input"
353
+ ]
354
+ }
355
+ }
356
+ },
357
+ {
358
+ "displayName": "GET /user/login",
359
+ "name": "operation",
360
+ "type": "notice",
361
+ "typeOptions": {
362
+ "theme": "info"
363
+ },
364
+ "default": "",
365
+ "displayOptions": {
366
+ "show": {
367
+ "resource": [
368
+ "User"
369
+ ],
370
+ "operation": [
371
+ "Login User"
372
+ ]
373
+ }
374
+ }
375
+ },
376
+ {
377
+ "displayName": "Username",
378
+ "name": "username",
379
+ "description": "The user name for login",
380
+ "default": "",
381
+ "type": "string",
382
+ "routing": {
383
+ "send": {
384
+ "type": "query",
385
+ "property": "username",
386
+ "value": "={{ $value }}",
387
+ "propertyInDotNotation": false
388
+ }
389
+ },
390
+ "displayOptions": {
391
+ "show": {
392
+ "resource": [
393
+ "User"
394
+ ],
395
+ "operation": [
396
+ "Login User"
397
+ ]
398
+ }
399
+ }
400
+ },
401
+ {
402
+ "displayName": "Password",
403
+ "name": "password",
404
+ "description": "The password for login in clear text",
405
+ "default": "",
406
+ "type": "string",
407
+ "routing": {
408
+ "send": {
409
+ "type": "query",
410
+ "property": "password",
411
+ "value": "={{ $value }}",
412
+ "propertyInDotNotation": false
413
+ }
414
+ },
415
+ "displayOptions": {
416
+ "show": {
417
+ "resource": [
418
+ "User"
419
+ ],
420
+ "operation": [
421
+ "Login User"
422
+ ]
423
+ }
424
+ }
425
+ },
426
+ {
427
+ "displayName": "GET /user/logout",
428
+ "name": "operation",
429
+ "type": "notice",
430
+ "typeOptions": {
431
+ "theme": "info"
432
+ },
433
+ "default": "",
434
+ "displayOptions": {
435
+ "show": {
436
+ "resource": [
437
+ "User"
438
+ ],
439
+ "operation": [
440
+ "Logout User"
441
+ ]
442
+ }
443
+ }
444
+ },
445
+ {
446
+ "displayName": "GET /user/{username}",
447
+ "name": "operation",
448
+ "type": "notice",
449
+ "typeOptions": {
450
+ "theme": "info"
451
+ },
452
+ "default": "",
453
+ "displayOptions": {
454
+ "show": {
455
+ "resource": [
456
+ "User"
457
+ ],
458
+ "operation": [
459
+ "Get User By Name"
460
+ ]
461
+ }
462
+ }
463
+ },
464
+ {
465
+ "displayName": "Username",
466
+ "name": "username",
467
+ "required": true,
468
+ "description": "The name that needs to be fetched. Use user1 for testing",
469
+ "default": "",
470
+ "type": "string",
471
+ "displayOptions": {
472
+ "show": {
473
+ "resource": [
474
+ "User"
475
+ ],
476
+ "operation": [
477
+ "Get User By Name"
478
+ ]
479
+ }
480
+ }
481
+ },
482
+ {
483
+ "displayName": "PUT /user/{username}",
484
+ "name": "operation",
485
+ "type": "notice",
486
+ "typeOptions": {
487
+ "theme": "info"
488
+ },
489
+ "default": "",
490
+ "displayOptions": {
491
+ "show": {
492
+ "resource": [
493
+ "User"
494
+ ],
495
+ "operation": [
496
+ "Update User"
497
+ ]
498
+ }
499
+ }
500
+ },
501
+ {
502
+ "displayName": "Username",
503
+ "name": "username",
504
+ "required": true,
505
+ "description": "name that need to be deleted",
506
+ "default": "",
507
+ "type": "string",
508
+ "displayOptions": {
509
+ "show": {
510
+ "resource": [
511
+ "User"
512
+ ],
513
+ "operation": [
514
+ "Update User"
515
+ ]
516
+ }
517
+ }
518
+ },
519
+ {
520
+ "displayName": "Id",
521
+ "name": "id",
522
+ "type": "number",
523
+ "default": 10,
524
+ "routing": {
525
+ "send": {
526
+ "property": "id",
527
+ "propertyInDotNotation": false,
528
+ "type": "body",
529
+ "value": "={{ $value }}"
530
+ }
531
+ },
532
+ "displayOptions": {
533
+ "show": {
534
+ "resource": [
535
+ "User"
536
+ ],
537
+ "operation": [
538
+ "Update User"
539
+ ]
540
+ }
541
+ }
542
+ },
543
+ {
544
+ "displayName": "Username",
545
+ "name": "username",
546
+ "type": "string",
547
+ "default": "theUser",
548
+ "routing": {
549
+ "send": {
550
+ "property": "username",
551
+ "propertyInDotNotation": false,
552
+ "type": "body",
553
+ "value": "={{ $value }}"
554
+ }
555
+ },
556
+ "displayOptions": {
557
+ "show": {
558
+ "resource": [
559
+ "User"
560
+ ],
561
+ "operation": [
562
+ "Update User"
563
+ ]
564
+ }
565
+ }
566
+ },
567
+ {
568
+ "displayName": "First Name",
569
+ "name": "firstName",
570
+ "type": "string",
571
+ "default": "John",
572
+ "routing": {
573
+ "send": {
574
+ "property": "firstName",
575
+ "propertyInDotNotation": false,
576
+ "type": "body",
577
+ "value": "={{ $value }}"
578
+ }
579
+ },
580
+ "displayOptions": {
581
+ "show": {
582
+ "resource": [
583
+ "User"
584
+ ],
585
+ "operation": [
586
+ "Update User"
587
+ ]
588
+ }
589
+ }
590
+ },
591
+ {
592
+ "displayName": "Last Name",
593
+ "name": "lastName",
594
+ "type": "string",
595
+ "default": "James",
596
+ "routing": {
597
+ "send": {
598
+ "property": "lastName",
599
+ "propertyInDotNotation": false,
600
+ "type": "body",
601
+ "value": "={{ $value }}"
602
+ }
603
+ },
604
+ "displayOptions": {
605
+ "show": {
606
+ "resource": [
607
+ "User"
608
+ ],
609
+ "operation": [
610
+ "Update User"
611
+ ]
612
+ }
613
+ }
614
+ },
615
+ {
616
+ "displayName": "Email",
617
+ "name": "email",
618
+ "type": "string",
619
+ "default": "john@email.com",
620
+ "routing": {
621
+ "send": {
622
+ "property": "email",
623
+ "propertyInDotNotation": false,
624
+ "type": "body",
625
+ "value": "={{ $value }}"
626
+ }
627
+ },
628
+ "displayOptions": {
629
+ "show": {
630
+ "resource": [
631
+ "User"
632
+ ],
633
+ "operation": [
634
+ "Update User"
635
+ ]
636
+ }
637
+ }
638
+ },
639
+ {
640
+ "displayName": "Password",
641
+ "name": "password",
642
+ "type": "string",
643
+ "default": "12345",
644
+ "routing": {
645
+ "send": {
646
+ "property": "password",
647
+ "propertyInDotNotation": false,
648
+ "type": "body",
649
+ "value": "={{ $value }}"
650
+ }
651
+ },
652
+ "displayOptions": {
653
+ "show": {
654
+ "resource": [
655
+ "User"
656
+ ],
657
+ "operation": [
658
+ "Update User"
659
+ ]
660
+ }
661
+ }
662
+ },
663
+ {
664
+ "displayName": "Phone",
665
+ "name": "phone",
666
+ "type": "string",
667
+ "default": "12345",
668
+ "routing": {
669
+ "send": {
670
+ "property": "phone",
671
+ "propertyInDotNotation": false,
672
+ "type": "body",
673
+ "value": "={{ $value }}"
674
+ }
675
+ },
676
+ "displayOptions": {
677
+ "show": {
678
+ "resource": [
679
+ "User"
680
+ ],
681
+ "operation": [
682
+ "Update User"
683
+ ]
684
+ }
685
+ }
686
+ },
687
+ {
688
+ "displayName": "User Status",
689
+ "name": "userStatus",
690
+ "type": "number",
691
+ "default": 1,
692
+ "description": "User Status",
693
+ "routing": {
694
+ "send": {
695
+ "property": "userStatus",
696
+ "propertyInDotNotation": false,
697
+ "type": "body",
698
+ "value": "={{ $value }}"
699
+ }
700
+ },
701
+ "displayOptions": {
702
+ "show": {
703
+ "resource": [
704
+ "User"
705
+ ],
706
+ "operation": [
707
+ "Update User"
708
+ ]
709
+ }
710
+ }
711
+ },
712
+ {
713
+ "displayName": "DELETE /user/{username}",
714
+ "name": "operation",
715
+ "type": "notice",
716
+ "typeOptions": {
717
+ "theme": "info"
718
+ },
719
+ "default": "",
720
+ "displayOptions": {
721
+ "show": {
722
+ "resource": [
723
+ "User"
724
+ ],
725
+ "operation": [
726
+ "Delete User"
727
+ ]
728
+ }
729
+ }
730
+ },
731
+ {
732
+ "displayName": "Username",
733
+ "name": "username",
734
+ "required": true,
735
+ "description": "The name that needs to be deleted",
736
+ "default": "",
737
+ "type": "string",
738
+ "displayOptions": {
739
+ "show": {
740
+ "resource": [
741
+ "User"
742
+ ],
743
+ "operation": [
744
+ "Delete User"
745
+ ]
746
+ }
747
+ }
748
+ },
749
+ ];
750
+ //# sourceMappingURL=index.js.map