@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,845 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.petDescription = void 0;
4
+ exports.petDescription = [
5
+ {
6
+ "displayName": "Operation",
7
+ "name": "operation",
8
+ "type": "options",
9
+ "noDataExpression": true,
10
+ "displayOptions": {
11
+ "show": {
12
+ "resource": [
13
+ "Pet"
14
+ ]
15
+ }
16
+ },
17
+ "options": [
18
+ {
19
+ "name": "Update Pet",
20
+ "value": "Update Pet",
21
+ "action": "Update an existing pet.",
22
+ "description": "Update an existing pet by Id.",
23
+ "routing": {
24
+ "request": {
25
+ "method": "PUT",
26
+ "url": "=/pet"
27
+ }
28
+ }
29
+ },
30
+ {
31
+ "name": "Add Pet",
32
+ "value": "Add Pet",
33
+ "action": "Add a new pet to the store.",
34
+ "description": "Add a new pet to the store.",
35
+ "routing": {
36
+ "request": {
37
+ "method": "POST",
38
+ "url": "=/pet"
39
+ }
40
+ }
41
+ },
42
+ {
43
+ "name": "Find Pets By Status",
44
+ "value": "Find Pets By Status",
45
+ "action": "Finds Pets by status.",
46
+ "description": "Multiple status values can be provided with comma separated strings.",
47
+ "routing": {
48
+ "request": {
49
+ "method": "GET",
50
+ "url": "=/pet/findByStatus"
51
+ }
52
+ }
53
+ },
54
+ {
55
+ "name": "Find Pets By Tags",
56
+ "value": "Find Pets By Tags",
57
+ "action": "Finds Pets by tags.",
58
+ "description": "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.",
59
+ "routing": {
60
+ "request": {
61
+ "method": "GET",
62
+ "url": "=/pet/findByTags"
63
+ }
64
+ }
65
+ },
66
+ {
67
+ "name": "Get Pet By Id",
68
+ "value": "Get Pet By Id",
69
+ "action": "Find pet by ID.",
70
+ "description": "Returns a single pet.",
71
+ "routing": {
72
+ "request": {
73
+ "method": "GET",
74
+ "url": "=/pet/{{$parameter[\"petId\"]}}"
75
+ }
76
+ }
77
+ },
78
+ {
79
+ "name": "Update Pet With Form",
80
+ "value": "Update Pet With Form",
81
+ "action": "Updates a pet in the store with form data.",
82
+ "description": "Updates a pet resource based on the form data.",
83
+ "routing": {
84
+ "request": {
85
+ "method": "POST",
86
+ "url": "=/pet/{{$parameter[\"petId\"]}}"
87
+ }
88
+ }
89
+ },
90
+ {
91
+ "name": "Delete Pet",
92
+ "value": "Delete Pet",
93
+ "action": "Deletes a pet.",
94
+ "description": "Delete a pet.",
95
+ "routing": {
96
+ "request": {
97
+ "method": "DELETE",
98
+ "url": "=/pet/{{$parameter[\"petId\"]}}"
99
+ }
100
+ }
101
+ },
102
+ {
103
+ "name": "Upload File",
104
+ "value": "Upload File",
105
+ "action": "Uploads an image.",
106
+ "description": "Upload image of the pet.",
107
+ "routing": {
108
+ "request": {
109
+ "method": "POST",
110
+ "url": "=/pet/{{$parameter[\"petId\"]}}/uploadImage"
111
+ }
112
+ }
113
+ }
114
+ ],
115
+ "default": ""
116
+ },
117
+ {
118
+ "displayName": "PUT /pet",
119
+ "name": "operation",
120
+ "type": "notice",
121
+ "typeOptions": {
122
+ "theme": "info"
123
+ },
124
+ "default": "",
125
+ "displayOptions": {
126
+ "show": {
127
+ "resource": [
128
+ "Pet"
129
+ ],
130
+ "operation": [
131
+ "Update Pet"
132
+ ]
133
+ }
134
+ }
135
+ },
136
+ {
137
+ "displayName": "Id",
138
+ "name": "id",
139
+ "type": "number",
140
+ "default": 10,
141
+ "routing": {
142
+ "send": {
143
+ "property": "id",
144
+ "propertyInDotNotation": false,
145
+ "type": "body",
146
+ "value": "={{ $value }}"
147
+ }
148
+ },
149
+ "displayOptions": {
150
+ "show": {
151
+ "resource": [
152
+ "Pet"
153
+ ],
154
+ "operation": [
155
+ "Update Pet"
156
+ ]
157
+ }
158
+ }
159
+ },
160
+ {
161
+ "required": true,
162
+ "displayName": "Name",
163
+ "name": "name",
164
+ "type": "string",
165
+ "default": "doggie",
166
+ "routing": {
167
+ "send": {
168
+ "property": "name",
169
+ "propertyInDotNotation": false,
170
+ "type": "body",
171
+ "value": "={{ $value }}"
172
+ }
173
+ },
174
+ "displayOptions": {
175
+ "show": {
176
+ "resource": [
177
+ "Pet"
178
+ ],
179
+ "operation": [
180
+ "Update Pet"
181
+ ]
182
+ }
183
+ }
184
+ },
185
+ {
186
+ "displayName": "Category",
187
+ "name": "category",
188
+ "type": "json",
189
+ "default": "{\n \"id\": 1,\n \"name\": \"Dogs\"\n}",
190
+ "routing": {
191
+ "send": {
192
+ "property": "category",
193
+ "propertyInDotNotation": false,
194
+ "type": "body",
195
+ "value": "={{ JSON.parse($value) }}"
196
+ }
197
+ },
198
+ "displayOptions": {
199
+ "show": {
200
+ "resource": [
201
+ "Pet"
202
+ ],
203
+ "operation": [
204
+ "Update Pet"
205
+ ]
206
+ }
207
+ }
208
+ },
209
+ {
210
+ "required": true,
211
+ "displayName": "Photo Urls",
212
+ "name": "photoUrls",
213
+ "type": "json",
214
+ "default": "[\n null\n]",
215
+ "routing": {
216
+ "send": {
217
+ "property": "photoUrls",
218
+ "propertyInDotNotation": false,
219
+ "type": "body",
220
+ "value": "={{ JSON.parse($value) }}"
221
+ }
222
+ },
223
+ "displayOptions": {
224
+ "show": {
225
+ "resource": [
226
+ "Pet"
227
+ ],
228
+ "operation": [
229
+ "Update Pet"
230
+ ]
231
+ }
232
+ }
233
+ },
234
+ {
235
+ "displayName": "Tags",
236
+ "name": "tags",
237
+ "type": "json",
238
+ "default": "[\n {}\n]",
239
+ "routing": {
240
+ "send": {
241
+ "property": "tags",
242
+ "propertyInDotNotation": false,
243
+ "type": "body",
244
+ "value": "={{ JSON.parse($value) }}"
245
+ }
246
+ },
247
+ "displayOptions": {
248
+ "show": {
249
+ "resource": [
250
+ "Pet"
251
+ ],
252
+ "operation": [
253
+ "Update Pet"
254
+ ]
255
+ }
256
+ }
257
+ },
258
+ {
259
+ "displayName": "Status",
260
+ "name": "status",
261
+ "type": "options",
262
+ "default": "available",
263
+ "description": "pet status in the store",
264
+ "options": [
265
+ {
266
+ "name": "Available",
267
+ "value": "available"
268
+ },
269
+ {
270
+ "name": "Pending",
271
+ "value": "pending"
272
+ },
273
+ {
274
+ "name": "Sold",
275
+ "value": "sold"
276
+ }
277
+ ],
278
+ "routing": {
279
+ "send": {
280
+ "property": "status",
281
+ "propertyInDotNotation": false,
282
+ "type": "body",
283
+ "value": "={{ $value }}"
284
+ }
285
+ },
286
+ "displayOptions": {
287
+ "show": {
288
+ "resource": [
289
+ "Pet"
290
+ ],
291
+ "operation": [
292
+ "Update Pet"
293
+ ]
294
+ }
295
+ }
296
+ },
297
+ {
298
+ "displayName": "POST /pet",
299
+ "name": "operation",
300
+ "type": "notice",
301
+ "typeOptions": {
302
+ "theme": "info"
303
+ },
304
+ "default": "",
305
+ "displayOptions": {
306
+ "show": {
307
+ "resource": [
308
+ "Pet"
309
+ ],
310
+ "operation": [
311
+ "Add Pet"
312
+ ]
313
+ }
314
+ }
315
+ },
316
+ {
317
+ "displayName": "Id",
318
+ "name": "id",
319
+ "type": "number",
320
+ "default": 10,
321
+ "routing": {
322
+ "send": {
323
+ "property": "id",
324
+ "propertyInDotNotation": false,
325
+ "type": "body",
326
+ "value": "={{ $value }}"
327
+ }
328
+ },
329
+ "displayOptions": {
330
+ "show": {
331
+ "resource": [
332
+ "Pet"
333
+ ],
334
+ "operation": [
335
+ "Add Pet"
336
+ ]
337
+ }
338
+ }
339
+ },
340
+ {
341
+ "required": true,
342
+ "displayName": "Name",
343
+ "name": "name",
344
+ "type": "string",
345
+ "default": "doggie",
346
+ "routing": {
347
+ "send": {
348
+ "property": "name",
349
+ "propertyInDotNotation": false,
350
+ "type": "body",
351
+ "value": "={{ $value }}"
352
+ }
353
+ },
354
+ "displayOptions": {
355
+ "show": {
356
+ "resource": [
357
+ "Pet"
358
+ ],
359
+ "operation": [
360
+ "Add Pet"
361
+ ]
362
+ }
363
+ }
364
+ },
365
+ {
366
+ "displayName": "Category",
367
+ "name": "category",
368
+ "type": "json",
369
+ "default": "{\n \"id\": 1,\n \"name\": \"Dogs\"\n}",
370
+ "routing": {
371
+ "send": {
372
+ "property": "category",
373
+ "propertyInDotNotation": false,
374
+ "type": "body",
375
+ "value": "={{ JSON.parse($value) }}"
376
+ }
377
+ },
378
+ "displayOptions": {
379
+ "show": {
380
+ "resource": [
381
+ "Pet"
382
+ ],
383
+ "operation": [
384
+ "Add Pet"
385
+ ]
386
+ }
387
+ }
388
+ },
389
+ {
390
+ "required": true,
391
+ "displayName": "Photo Urls",
392
+ "name": "photoUrls",
393
+ "type": "json",
394
+ "default": "[\n null\n]",
395
+ "routing": {
396
+ "send": {
397
+ "property": "photoUrls",
398
+ "propertyInDotNotation": false,
399
+ "type": "body",
400
+ "value": "={{ JSON.parse($value) }}"
401
+ }
402
+ },
403
+ "displayOptions": {
404
+ "show": {
405
+ "resource": [
406
+ "Pet"
407
+ ],
408
+ "operation": [
409
+ "Add Pet"
410
+ ]
411
+ }
412
+ }
413
+ },
414
+ {
415
+ "displayName": "Tags",
416
+ "name": "tags",
417
+ "type": "json",
418
+ "default": "[\n {}\n]",
419
+ "routing": {
420
+ "send": {
421
+ "property": "tags",
422
+ "propertyInDotNotation": false,
423
+ "type": "body",
424
+ "value": "={{ JSON.parse($value) }}"
425
+ }
426
+ },
427
+ "displayOptions": {
428
+ "show": {
429
+ "resource": [
430
+ "Pet"
431
+ ],
432
+ "operation": [
433
+ "Add Pet"
434
+ ]
435
+ }
436
+ }
437
+ },
438
+ {
439
+ "displayName": "Status",
440
+ "name": "status",
441
+ "type": "options",
442
+ "default": "available",
443
+ "description": "pet status in the store",
444
+ "options": [
445
+ {
446
+ "name": "Available",
447
+ "value": "available"
448
+ },
449
+ {
450
+ "name": "Pending",
451
+ "value": "pending"
452
+ },
453
+ {
454
+ "name": "Sold",
455
+ "value": "sold"
456
+ }
457
+ ],
458
+ "routing": {
459
+ "send": {
460
+ "property": "status",
461
+ "propertyInDotNotation": false,
462
+ "type": "body",
463
+ "value": "={{ $value }}"
464
+ }
465
+ },
466
+ "displayOptions": {
467
+ "show": {
468
+ "resource": [
469
+ "Pet"
470
+ ],
471
+ "operation": [
472
+ "Add Pet"
473
+ ]
474
+ }
475
+ }
476
+ },
477
+ {
478
+ "displayName": "GET /pet/findByStatus",
479
+ "name": "operation",
480
+ "type": "notice",
481
+ "typeOptions": {
482
+ "theme": "info"
483
+ },
484
+ "default": "",
485
+ "displayOptions": {
486
+ "show": {
487
+ "resource": [
488
+ "Pet"
489
+ ],
490
+ "operation": [
491
+ "Find Pets By Status"
492
+ ]
493
+ }
494
+ }
495
+ },
496
+ {
497
+ "displayName": "Status",
498
+ "name": "status",
499
+ "required": true,
500
+ "description": "Status values that need to be considered for filter",
501
+ "default": "available",
502
+ "type": "options",
503
+ "options": [
504
+ {
505
+ "name": "Available",
506
+ "value": "available"
507
+ },
508
+ {
509
+ "name": "Pending",
510
+ "value": "pending"
511
+ },
512
+ {
513
+ "name": "Sold",
514
+ "value": "sold"
515
+ }
516
+ ],
517
+ "routing": {
518
+ "send": {
519
+ "type": "query",
520
+ "property": "status",
521
+ "value": "={{ $value }}",
522
+ "propertyInDotNotation": false
523
+ }
524
+ },
525
+ "displayOptions": {
526
+ "show": {
527
+ "resource": [
528
+ "Pet"
529
+ ],
530
+ "operation": [
531
+ "Find Pets By Status"
532
+ ]
533
+ }
534
+ }
535
+ },
536
+ {
537
+ "displayName": "GET /pet/findByTags",
538
+ "name": "operation",
539
+ "type": "notice",
540
+ "typeOptions": {
541
+ "theme": "info"
542
+ },
543
+ "default": "",
544
+ "displayOptions": {
545
+ "show": {
546
+ "resource": [
547
+ "Pet"
548
+ ],
549
+ "operation": [
550
+ "Find Pets By Tags"
551
+ ]
552
+ }
553
+ }
554
+ },
555
+ {
556
+ "displayName": "Tags",
557
+ "name": "tags",
558
+ "required": true,
559
+ "description": "Tags to filter by",
560
+ "default": "[\n null\n]",
561
+ "type": "json",
562
+ "routing": {
563
+ "send": {
564
+ "type": "query",
565
+ "property": "tags",
566
+ "value": "={{ $value }}",
567
+ "propertyInDotNotation": false
568
+ }
569
+ },
570
+ "displayOptions": {
571
+ "show": {
572
+ "resource": [
573
+ "Pet"
574
+ ],
575
+ "operation": [
576
+ "Find Pets By Tags"
577
+ ]
578
+ }
579
+ }
580
+ },
581
+ {
582
+ "displayName": "GET /pet/{petId}",
583
+ "name": "operation",
584
+ "type": "notice",
585
+ "typeOptions": {
586
+ "theme": "info"
587
+ },
588
+ "default": "",
589
+ "displayOptions": {
590
+ "show": {
591
+ "resource": [
592
+ "Pet"
593
+ ],
594
+ "operation": [
595
+ "Get Pet By Id"
596
+ ]
597
+ }
598
+ }
599
+ },
600
+ {
601
+ "displayName": "Pet Id",
602
+ "name": "petId",
603
+ "required": true,
604
+ "description": "ID of pet to return",
605
+ "default": 0,
606
+ "type": "number",
607
+ "displayOptions": {
608
+ "show": {
609
+ "resource": [
610
+ "Pet"
611
+ ],
612
+ "operation": [
613
+ "Get Pet By Id"
614
+ ]
615
+ }
616
+ }
617
+ },
618
+ {
619
+ "displayName": "POST /pet/{petId}",
620
+ "name": "operation",
621
+ "type": "notice",
622
+ "typeOptions": {
623
+ "theme": "info"
624
+ },
625
+ "default": "",
626
+ "displayOptions": {
627
+ "show": {
628
+ "resource": [
629
+ "Pet"
630
+ ],
631
+ "operation": [
632
+ "Update Pet With Form"
633
+ ]
634
+ }
635
+ }
636
+ },
637
+ {
638
+ "displayName": "Pet Id",
639
+ "name": "petId",
640
+ "required": true,
641
+ "description": "ID of pet that needs to be updated",
642
+ "default": 0,
643
+ "type": "number",
644
+ "displayOptions": {
645
+ "show": {
646
+ "resource": [
647
+ "Pet"
648
+ ],
649
+ "operation": [
650
+ "Update Pet With Form"
651
+ ]
652
+ }
653
+ }
654
+ },
655
+ {
656
+ "displayName": "Name",
657
+ "name": "name",
658
+ "description": "Name of pet that needs to be updated",
659
+ "default": "",
660
+ "type": "string",
661
+ "routing": {
662
+ "send": {
663
+ "type": "query",
664
+ "property": "name",
665
+ "value": "={{ $value }}",
666
+ "propertyInDotNotation": false
667
+ }
668
+ },
669
+ "displayOptions": {
670
+ "show": {
671
+ "resource": [
672
+ "Pet"
673
+ ],
674
+ "operation": [
675
+ "Update Pet With Form"
676
+ ]
677
+ }
678
+ }
679
+ },
680
+ {
681
+ "displayName": "Status",
682
+ "name": "status",
683
+ "description": "Status of pet that needs to be updated",
684
+ "default": "",
685
+ "type": "string",
686
+ "routing": {
687
+ "send": {
688
+ "type": "query",
689
+ "property": "status",
690
+ "value": "={{ $value }}",
691
+ "propertyInDotNotation": false
692
+ }
693
+ },
694
+ "displayOptions": {
695
+ "show": {
696
+ "resource": [
697
+ "Pet"
698
+ ],
699
+ "operation": [
700
+ "Update Pet With Form"
701
+ ]
702
+ }
703
+ }
704
+ },
705
+ {
706
+ "displayName": "DELETE /pet/{petId}",
707
+ "name": "operation",
708
+ "type": "notice",
709
+ "typeOptions": {
710
+ "theme": "info"
711
+ },
712
+ "default": "",
713
+ "displayOptions": {
714
+ "show": {
715
+ "resource": [
716
+ "Pet"
717
+ ],
718
+ "operation": [
719
+ "Delete Pet"
720
+ ]
721
+ }
722
+ }
723
+ },
724
+ {
725
+ "displayName": "Api Key",
726
+ "name": "api_key",
727
+ "description": "",
728
+ "default": "",
729
+ "type": "string",
730
+ "routing": {
731
+ "request": {
732
+ "headers": {
733
+ "api_key": "={{ $value }}"
734
+ }
735
+ }
736
+ },
737
+ "displayOptions": {
738
+ "show": {
739
+ "resource": [
740
+ "Pet"
741
+ ],
742
+ "operation": [
743
+ "Delete Pet"
744
+ ]
745
+ }
746
+ }
747
+ },
748
+ {
749
+ "displayName": "Pet Id",
750
+ "name": "petId",
751
+ "required": true,
752
+ "description": "Pet id to delete",
753
+ "default": 0,
754
+ "type": "number",
755
+ "displayOptions": {
756
+ "show": {
757
+ "resource": [
758
+ "Pet"
759
+ ],
760
+ "operation": [
761
+ "Delete Pet"
762
+ ]
763
+ }
764
+ }
765
+ },
766
+ {
767
+ "displayName": "POST /pet/{petId}/uploadImage",
768
+ "name": "operation",
769
+ "type": "notice",
770
+ "typeOptions": {
771
+ "theme": "info"
772
+ },
773
+ "default": "",
774
+ "displayOptions": {
775
+ "show": {
776
+ "resource": [
777
+ "Pet"
778
+ ],
779
+ "operation": [
780
+ "Upload File"
781
+ ]
782
+ }
783
+ }
784
+ },
785
+ {
786
+ "displayName": "Pet Id",
787
+ "name": "petId",
788
+ "required": true,
789
+ "description": "ID of pet to update",
790
+ "default": 0,
791
+ "type": "number",
792
+ "displayOptions": {
793
+ "show": {
794
+ "resource": [
795
+ "Pet"
796
+ ],
797
+ "operation": [
798
+ "Upload File"
799
+ ]
800
+ }
801
+ }
802
+ },
803
+ {
804
+ "displayName": "Additional Metadata",
805
+ "name": "additionalMetadata",
806
+ "description": "Additional Metadata",
807
+ "default": "",
808
+ "type": "string",
809
+ "routing": {
810
+ "send": {
811
+ "type": "query",
812
+ "property": "additionalMetadata",
813
+ "value": "={{ $value }}",
814
+ "propertyInDotNotation": false
815
+ }
816
+ },
817
+ "displayOptions": {
818
+ "show": {
819
+ "resource": [
820
+ "Pet"
821
+ ],
822
+ "operation": [
823
+ "Upload File"
824
+ ]
825
+ }
826
+ }
827
+ },
828
+ {
829
+ "displayName": "POST /pet/{petId}/uploadImage<br/><br/>There's no body available for request, kindly use HTTP Request node to send body",
830
+ "name": "operation",
831
+ "type": "notice",
832
+ "default": "",
833
+ "displayOptions": {
834
+ "show": {
835
+ "resource": [
836
+ "Pet"
837
+ ],
838
+ "operation": [
839
+ "Upload File"
840
+ ]
841
+ }
842
+ }
843
+ },
844
+ ];
845
+ //# sourceMappingURL=index.js.map