create-zudoku 0.0.0-e95e2f88 → 0.0.0-e9eb12fc

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 (37) hide show
  1. package/LICENSE.md +12 -3
  2. package/README.md +15 -8
  3. package/dist/index.js +6 -6
  4. package/dist/templates/default/js/.env.example +2 -0
  5. package/dist/templates/default/js/README-template.md +28 -0
  6. package/dist/templates/default/js/apis/openapi.yaml +806 -0
  7. package/dist/templates/default/js/eslintrc.json +4 -0
  8. package/dist/templates/default/js/gitignore +32 -0
  9. package/dist/templates/default/js/pages/example.mdx +9 -0
  10. package/dist/templates/default/js/pages/introduction.mdx +16 -0
  11. package/dist/templates/default/js/public/logo-dark.svg +1 -0
  12. package/dist/templates/default/js/public/logo-light.svg +1 -0
  13. package/dist/templates/default/js/zudoku.config.jsx +65 -0
  14. package/dist/templates/default/ts/.env.example +2 -0
  15. package/dist/templates/default/ts/README-template.md +28 -0
  16. package/dist/templates/default/ts/apis/openapi.yaml +806 -0
  17. package/dist/templates/default/ts/eslintrc.json +6 -0
  18. package/dist/templates/default/ts/gitignore +32 -0
  19. package/dist/templates/default/ts/pages/example.mdx +9 -0
  20. package/dist/templates/default/ts/pages/introduction.mdx +16 -0
  21. package/dist/templates/default/ts/public/banner-dark.svg +100 -0
  22. package/dist/templates/default/ts/public/banner.svg +100 -0
  23. package/dist/templates/default/ts/public/logo-dark.svg +1 -0
  24. package/dist/templates/default/ts/public/logo-light.svg +1 -0
  25. package/dist/templates/default/ts/tsconfig.json +16 -0
  26. package/dist/templates/default/ts/zudoku.config.tsx +66 -0
  27. package/dist/templates/index.ts +156 -0
  28. package/dist/templates/types.ts +22 -0
  29. package/dist/templates/zuplo/README-template.md +40 -0
  30. package/dist/templates/zuplo/gitignore +32 -0
  31. package/dist/templates/zuplo/pages/introduction.mdx +153 -0
  32. package/dist/templates/zuplo/pages/markdown.mdx +108 -0
  33. package/dist/templates/zuplo/public/banner-dark.svg +100 -0
  34. package/dist/templates/zuplo/public/banner.svg +100 -0
  35. package/dist/templates/zuplo/tsconfig.json +16 -0
  36. package/dist/templates/zuplo/zudoku.config.tsx +93 -0
  37. package/package.json +4 -4
@@ -0,0 +1,806 @@
1
+ openapi: 3.0.2
2
+ info:
3
+ title: Swagger Petstore - OpenAPI 3.0
4
+ description: |-
5
+ This is a sample Pet Store Server based on the OpenAPI 3.0 specification. You can find out more about
6
+ Swagger at [http://swagger.io](http://swagger.io). In the third iteration of the pet store, we've switched to the design first approach!
7
+ You can now help us improve the API whether it's by making changes to the definition itself or to the code.
8
+ That way, with time, we can improve the API in general, and expose some of the new features in OAS3.
9
+
10
+ Some useful links:
11
+ - [The Pet Store repository](https://github.com/swagger-api/swagger-petstore)
12
+ - [The source API definition for the Pet Store](https://github.com/swagger-api/swagger-petstore/blob/master/src/main/resources/openapi.yaml)
13
+ termsOfService: http://swagger.io/terms/
14
+ contact:
15
+ email: apiteam@swagger.io
16
+ license:
17
+ name: Apache 2.0
18
+ url: http://www.apache.org/licenses/LICENSE-2.0.html
19
+ version: 1.0.19
20
+ externalDocs:
21
+ description: Find out more about Swagger
22
+ url: http://swagger.io
23
+ servers:
24
+ - url: /api/v3
25
+ tags:
26
+ - name: pet
27
+ description: Everything about your Pets
28
+ externalDocs:
29
+ description: Find out more
30
+ url: http://swagger.io
31
+ - name: store
32
+ description: Access to Petstore orders
33
+ externalDocs:
34
+ description: Find out more about our store
35
+ url: http://swagger.io
36
+ - name: user
37
+ description: Operations about user
38
+ paths:
39
+ /pet:
40
+ put:
41
+ tags:
42
+ - pet
43
+ summary: Update an existing pet
44
+ description: Update an existing pet by Id
45
+ operationId: updatePet
46
+ requestBody:
47
+ description: Update an existent pet in the store
48
+ content:
49
+ application/json:
50
+ schema:
51
+ $ref: "#/components/schemas/Pet"
52
+ application/xml:
53
+ schema:
54
+ $ref: "#/components/schemas/Pet"
55
+ application/x-www-form-urlencoded:
56
+ schema:
57
+ $ref: "#/components/schemas/Pet"
58
+ required: true
59
+ responses:
60
+ "200":
61
+ description: Successful operation
62
+ content:
63
+ application/xml:
64
+ schema:
65
+ $ref: "#/components/schemas/Pet"
66
+ application/json:
67
+ schema:
68
+ $ref: "#/components/schemas/Pet"
69
+ "400":
70
+ description: Invalid ID supplied
71
+ "404":
72
+ description: Pet not found
73
+ "405":
74
+ description: Validation exception
75
+ security:
76
+ - petstore_auth:
77
+ - write:pets
78
+ - read:pets
79
+ post:
80
+ tags:
81
+ - pet
82
+ summary: Add a new pet to the store
83
+ description: Add a new pet to the store
84
+ operationId: addPet
85
+ requestBody:
86
+ description: Create a new pet in the store
87
+ content:
88
+ application/json:
89
+ schema:
90
+ $ref: "#/components/schemas/Pet"
91
+ application/xml:
92
+ schema:
93
+ $ref: "#/components/schemas/Pet"
94
+ application/x-www-form-urlencoded:
95
+ schema:
96
+ $ref: "#/components/schemas/Pet"
97
+ required: true
98
+ responses:
99
+ "200":
100
+ description: Successful operation
101
+ content:
102
+ application/xml:
103
+ schema:
104
+ $ref: "#/components/schemas/Pet"
105
+ application/json:
106
+ schema:
107
+ $ref: "#/components/schemas/Pet"
108
+ "405":
109
+ description: Invalid input
110
+ security:
111
+ - petstore_auth:
112
+ - write:pets
113
+ - read:pets
114
+ /pet/findByStatus:
115
+ get:
116
+ tags:
117
+ - pet
118
+ summary: Finds Pets by status
119
+ description: Multiple status values can be provided with comma separated strings
120
+ operationId: findPetsByStatus
121
+ parameters:
122
+ - name: status
123
+ in: query
124
+ description: Status values that need to be considered for filter
125
+ required: false
126
+ explode: true
127
+ schema:
128
+ type: string
129
+ default: available
130
+ enum:
131
+ - available
132
+ - pending
133
+ - sold
134
+ responses:
135
+ "200":
136
+ description: successful operation
137
+ content:
138
+ application/xml:
139
+ schema:
140
+ type: array
141
+ items:
142
+ $ref: "#/components/schemas/Pet"
143
+ application/json:
144
+ schema:
145
+ type: array
146
+ items:
147
+ $ref: "#/components/schemas/Pet"
148
+ "400":
149
+ description: Invalid status value
150
+ security:
151
+ - petstore_auth:
152
+ - write:pets
153
+ - read:pets
154
+ /pet/findByTags:
155
+ get:
156
+ tags:
157
+ - pet
158
+ summary: Finds Pets by tags
159
+ description:
160
+ "Multiple tags can be provided with comma separated strings. Use\
161
+ \ tag1, tag2, tag3 for testing."
162
+ operationId: findPetsByTags
163
+ parameters:
164
+ - name: tags
165
+ in: query
166
+ description: Tags to filter by
167
+ required: false
168
+ explode: true
169
+ schema:
170
+ type: array
171
+ items:
172
+ type: string
173
+ responses:
174
+ "200":
175
+ description: successful operation
176
+ content:
177
+ application/xml:
178
+ schema:
179
+ type: array
180
+ items:
181
+ $ref: "#/components/schemas/Pet"
182
+ application/json:
183
+ schema:
184
+ type: array
185
+ items:
186
+ $ref: "#/components/schemas/Pet"
187
+ "400":
188
+ description: Invalid tag value
189
+ security:
190
+ - petstore_auth:
191
+ - write:pets
192
+ - read:pets
193
+ /pet/{petId}:
194
+ get:
195
+ tags:
196
+ - pet
197
+ summary: Find pet by ID
198
+ description: Returns a single pet
199
+ operationId: getPetById
200
+ parameters:
201
+ - name: petId
202
+ in: path
203
+ description: ID of pet to return
204
+ required: true
205
+ schema:
206
+ type: integer
207
+ format: int64
208
+ responses:
209
+ "200":
210
+ description: successful operation
211
+ content:
212
+ application/xml:
213
+ schema:
214
+ $ref: "#/components/schemas/Pet"
215
+ application/json:
216
+ schema:
217
+ $ref: "#/components/schemas/Pet"
218
+ "400":
219
+ description: Invalid ID supplied
220
+ "404":
221
+ description: Pet not found
222
+ security:
223
+ - api_key: []
224
+ - petstore_auth:
225
+ - write:pets
226
+ - read:pets
227
+ post:
228
+ tags:
229
+ - pet
230
+ summary: Updates a pet in the store with form data
231
+ description: ""
232
+ operationId: updatePetWithForm
233
+ parameters:
234
+ - name: petId
235
+ in: path
236
+ description: ID of pet that needs to be updated
237
+ required: true
238
+ schema:
239
+ type: integer
240
+ format: int64
241
+ - name: name
242
+ in: query
243
+ description: Name of pet that needs to be updated
244
+ schema:
245
+ type: string
246
+ - name: status
247
+ in: query
248
+ description: Status of pet that needs to be updated
249
+ schema:
250
+ type: string
251
+ responses:
252
+ "405":
253
+ description: Invalid input
254
+ security:
255
+ - petstore_auth:
256
+ - write:pets
257
+ - read:pets
258
+ delete:
259
+ tags:
260
+ - pet
261
+ summary: Deletes a pet
262
+ description: ""
263
+ operationId: deletePet
264
+ parameters:
265
+ - name: api_key
266
+ in: header
267
+ description: ""
268
+ required: false
269
+ schema:
270
+ type: string
271
+ - name: petId
272
+ in: path
273
+ description: Pet id to delete
274
+ required: true
275
+ schema:
276
+ type: integer
277
+ format: int64
278
+ responses:
279
+ "400":
280
+ description: Invalid pet value
281
+ security:
282
+ - petstore_auth:
283
+ - write:pets
284
+ - read:pets
285
+ /pet/{petId}/uploadImage:
286
+ post:
287
+ tags:
288
+ - pet
289
+ summary: uploads an image
290
+ description: ""
291
+ operationId: uploadFile
292
+ parameters:
293
+ - name: petId
294
+ in: path
295
+ description: ID of pet to update
296
+ required: true
297
+ schema:
298
+ type: integer
299
+ format: int64
300
+ - name: additionalMetadata
301
+ in: query
302
+ description: Additional Metadata
303
+ required: false
304
+ schema:
305
+ type: string
306
+ requestBody:
307
+ content:
308
+ application/octet-stream:
309
+ schema:
310
+ type: string
311
+ format: binary
312
+ responses:
313
+ "200":
314
+ description: successful operation
315
+ content:
316
+ application/json:
317
+ schema:
318
+ $ref: "#/components/schemas/ApiResponse"
319
+ security:
320
+ - petstore_auth:
321
+ - write:pets
322
+ - read:pets
323
+ /store/inventory:
324
+ get:
325
+ tags:
326
+ - store
327
+ summary: Returns pet inventories by status
328
+ description: Returns a map of status codes to quantities
329
+ operationId: getInventory
330
+ responses:
331
+ "200":
332
+ description: successful operation
333
+ content:
334
+ application/json:
335
+ schema:
336
+ type: object
337
+ additionalProperties:
338
+ type: integer
339
+ format: int32
340
+ security:
341
+ - api_key: []
342
+ /store/order:
343
+ post:
344
+ tags:
345
+ - store
346
+ summary: Place an order for a pet
347
+ description: Place a new order in the store
348
+ operationId: placeOrder
349
+ requestBody:
350
+ content:
351
+ application/json:
352
+ schema:
353
+ $ref: "#/components/schemas/Order"
354
+ application/xml:
355
+ schema:
356
+ $ref: "#/components/schemas/Order"
357
+ application/x-www-form-urlencoded:
358
+ schema:
359
+ $ref: "#/components/schemas/Order"
360
+ responses:
361
+ "200":
362
+ description: successful operation
363
+ content:
364
+ application/json:
365
+ schema:
366
+ $ref: "#/components/schemas/Order"
367
+ "405":
368
+ description: Invalid input
369
+ /store/order/{orderId}:
370
+ get:
371
+ tags:
372
+ - store
373
+ summary: Find purchase order by ID
374
+ description:
375
+ For valid response try integer IDs with value <= 5 or > 10. Other
376
+ values will generate exceptions.
377
+ operationId: getOrderById
378
+ parameters:
379
+ - name: orderId
380
+ in: path
381
+ description: ID of order that needs to be fetched
382
+ required: true
383
+ schema:
384
+ type: integer
385
+ format: int64
386
+ responses:
387
+ "200":
388
+ description: successful operation
389
+ content:
390
+ application/xml:
391
+ schema:
392
+ $ref: "#/components/schemas/Order"
393
+ application/json:
394
+ schema:
395
+ $ref: "#/components/schemas/Order"
396
+ "400":
397
+ description: Invalid ID supplied
398
+ "404":
399
+ description: Order not found
400
+ delete:
401
+ tags:
402
+ - store
403
+ summary: Delete purchase order by ID
404
+ description:
405
+ For valid response try integer IDs with value < 1000. Anything
406
+ above 1000 or nonintegers will generate API errors
407
+ operationId: deleteOrder
408
+ parameters:
409
+ - name: orderId
410
+ in: path
411
+ description: ID of the order that needs to be deleted
412
+ required: true
413
+ schema:
414
+ type: integer
415
+ format: int64
416
+ responses:
417
+ "400":
418
+ description: Invalid ID supplied
419
+ "404":
420
+ description: Order not found
421
+ /user:
422
+ post:
423
+ tags:
424
+ - user
425
+ summary: Create user
426
+ description: This can only be done by the logged in user.
427
+ operationId: createUser
428
+ requestBody:
429
+ description: Created user object
430
+ content:
431
+ application/json:
432
+ schema:
433
+ $ref: "#/components/schemas/User"
434
+ application/xml:
435
+ schema:
436
+ $ref: "#/components/schemas/User"
437
+ application/x-www-form-urlencoded:
438
+ schema:
439
+ $ref: "#/components/schemas/User"
440
+ responses:
441
+ default:
442
+ description: successful operation
443
+ content:
444
+ application/json:
445
+ schema:
446
+ $ref: "#/components/schemas/User"
447
+ application/xml:
448
+ schema:
449
+ $ref: "#/components/schemas/User"
450
+ /user/createWithList:
451
+ post:
452
+ tags:
453
+ - user
454
+ summary: Creates list of users with given input array
455
+ description: Creates list of users with given input array
456
+ operationId: createUsersWithListInput
457
+ requestBody:
458
+ content:
459
+ application/json:
460
+ schema:
461
+ type: array
462
+ items:
463
+ $ref: "#/components/schemas/User"
464
+ responses:
465
+ "200":
466
+ description: Successful operation
467
+ content:
468
+ application/xml:
469
+ schema:
470
+ $ref: "#/components/schemas/User"
471
+ application/json:
472
+ schema:
473
+ $ref: "#/components/schemas/User"
474
+ default:
475
+ description: successful operation
476
+ /user/login:
477
+ get:
478
+ tags:
479
+ - user
480
+ summary: Logs user into the system
481
+ description: ""
482
+ operationId: loginUser
483
+ parameters:
484
+ - name: username
485
+ in: query
486
+ description: The user name for login
487
+ required: false
488
+ schema:
489
+ type: string
490
+ - name: password
491
+ in: query
492
+ description: The password for login in clear text
493
+ required: false
494
+ schema:
495
+ type: string
496
+ responses:
497
+ "200":
498
+ description: successful operation
499
+ headers:
500
+ X-Rate-Limit:
501
+ description: calls per hour allowed by the user
502
+ schema:
503
+ type: integer
504
+ format: int32
505
+ X-Expires-After:
506
+ description: date in UTC when token expires
507
+ schema:
508
+ type: string
509
+ format: date-time
510
+ content:
511
+ application/xml:
512
+ schema:
513
+ type: string
514
+ application/json:
515
+ schema:
516
+ type: string
517
+ "400":
518
+ description: Invalid username/password supplied
519
+ /user/logout:
520
+ get:
521
+ tags:
522
+ - user
523
+ summary: Logs out current logged in user session
524
+ description: ""
525
+ operationId: logoutUser
526
+ parameters: []
527
+ responses:
528
+ default:
529
+ description: successful operation
530
+ /user/{username}:
531
+ get:
532
+ tags:
533
+ - user
534
+ summary: Get user by user name
535
+ description: ""
536
+ operationId: getUserByName
537
+ parameters:
538
+ - name: username
539
+ in: path
540
+ description: "The name that needs to be fetched. Use user1 for testing. "
541
+ required: true
542
+ schema:
543
+ type: string
544
+ responses:
545
+ "200":
546
+ description: successful operation
547
+ content:
548
+ application/xml:
549
+ schema:
550
+ $ref: "#/components/schemas/User"
551
+ application/json:
552
+ schema:
553
+ $ref: "#/components/schemas/User"
554
+ "400":
555
+ description: Invalid username supplied
556
+ "404":
557
+ description: User not found
558
+ put:
559
+ tags:
560
+ - user
561
+ summary: Update user
562
+ description: This can only be done by the logged in user.
563
+ operationId: updateUser
564
+ parameters:
565
+ - name: username
566
+ in: path
567
+ description: name that needs to be updated
568
+ required: true
569
+ schema:
570
+ type: string
571
+ requestBody:
572
+ description: Update an existent user in the store
573
+ content:
574
+ application/json:
575
+ schema:
576
+ $ref: "#/components/schemas/User"
577
+ application/xml:
578
+ schema:
579
+ $ref: "#/components/schemas/User"
580
+ application/x-www-form-urlencoded:
581
+ schema:
582
+ $ref: "#/components/schemas/User"
583
+ responses:
584
+ default:
585
+ description: successful operation
586
+ delete:
587
+ tags:
588
+ - user
589
+ summary: Delete user
590
+ description: This can only be done by the logged in user.
591
+ operationId: deleteUser
592
+ parameters:
593
+ - name: username
594
+ in: path
595
+ description: The name that needs to be deleted
596
+ required: true
597
+ schema:
598
+ type: string
599
+ responses:
600
+ "400":
601
+ description: Invalid username supplied
602
+ "404":
603
+ description: User not found
604
+ components:
605
+ schemas:
606
+ Order:
607
+ type: object
608
+ properties:
609
+ id:
610
+ type: integer
611
+ format: int64
612
+ example: 10
613
+ petId:
614
+ type: integer
615
+ format: int64
616
+ example: 198772
617
+ quantity:
618
+ type: integer
619
+ format: int32
620
+ example: 7
621
+ shipDate:
622
+ type: string
623
+ format: date-time
624
+ status:
625
+ type: string
626
+ description: Order Status
627
+ example: approved
628
+ enum:
629
+ - placed
630
+ - approved
631
+ - delivered
632
+ complete:
633
+ type: boolean
634
+ xml:
635
+ name: order
636
+ Customer:
637
+ type: object
638
+ properties:
639
+ id:
640
+ type: integer
641
+ format: int64
642
+ example: 100000
643
+ username:
644
+ type: string
645
+ example: fehguy
646
+ address:
647
+ type: array
648
+ xml:
649
+ name: addresses
650
+ wrapped: true
651
+ items:
652
+ $ref: "#/components/schemas/Address"
653
+ xml:
654
+ name: customer
655
+ Address:
656
+ type: object
657
+ properties:
658
+ street:
659
+ type: string
660
+ example: 437 Lytton
661
+ city:
662
+ type: string
663
+ example: Palo Alto
664
+ state:
665
+ type: string
666
+ example: CA
667
+ zip:
668
+ type: string
669
+ example: "94301"
670
+ xml:
671
+ name: address
672
+ Category:
673
+ type: object
674
+ properties:
675
+ id:
676
+ type: integer
677
+ format: int64
678
+ example: 1
679
+ name:
680
+ type: string
681
+ example: Dogs
682
+ xml:
683
+ name: category
684
+ User:
685
+ type: object
686
+ properties:
687
+ id:
688
+ type: integer
689
+ format: int64
690
+ example: 10
691
+ username:
692
+ type: string
693
+ example: theUser
694
+ firstName:
695
+ type: string
696
+ example: John
697
+ lastName:
698
+ type: string
699
+ example: James
700
+ email:
701
+ type: string
702
+ example: john@email.com
703
+ password:
704
+ type: string
705
+ example: "12345"
706
+ phone:
707
+ type: string
708
+ example: "12345"
709
+ userStatus:
710
+ type: integer
711
+ description: User Status
712
+ format: int32
713
+ example: 1
714
+ xml:
715
+ name: user
716
+ Tag:
717
+ type: object
718
+ properties:
719
+ id:
720
+ type: integer
721
+ format: int64
722
+ name:
723
+ type: string
724
+ xml:
725
+ name: tag
726
+ Pet:
727
+ required:
728
+ - name
729
+ - photoUrls
730
+ type: object
731
+ properties:
732
+ id:
733
+ type: integer
734
+ format: int64
735
+ example: 10
736
+ name:
737
+ type: string
738
+ example: doggie
739
+ category:
740
+ $ref: "#/components/schemas/Category"
741
+ photoUrls:
742
+ type: array
743
+ xml:
744
+ wrapped: true
745
+ items:
746
+ type: string
747
+ xml:
748
+ name: photoUrl
749
+ tags:
750
+ type: array
751
+ xml:
752
+ wrapped: true
753
+ items:
754
+ $ref: "#/components/schemas/Tag"
755
+ status:
756
+ type: string
757
+ description: pet status in the store
758
+ enum:
759
+ - available
760
+ - pending
761
+ - sold
762
+ xml:
763
+ name: pet
764
+ ApiResponse:
765
+ type: object
766
+ properties:
767
+ code:
768
+ type: integer
769
+ format: int32
770
+ type:
771
+ type: string
772
+ message:
773
+ type: string
774
+ xml:
775
+ name: "##default"
776
+ requestBodies:
777
+ Pet:
778
+ description: Pet object that needs to be added to the store
779
+ content:
780
+ application/json:
781
+ schema:
782
+ $ref: "#/components/schemas/Pet"
783
+ application/xml:
784
+ schema:
785
+ $ref: "#/components/schemas/Pet"
786
+ UserArray:
787
+ description: List of user object
788
+ content:
789
+ application/json:
790
+ schema:
791
+ type: array
792
+ items:
793
+ $ref: "#/components/schemas/User"
794
+ securitySchemes:
795
+ petstore_auth:
796
+ type: oauth2
797
+ flows:
798
+ implicit:
799
+ authorizationUrl: https://petstore3.swagger.io/oauth/authorize
800
+ scopes:
801
+ write:pets: modify pets in your account
802
+ read:pets: read your pets
803
+ api_key:
804
+ type: apiKey
805
+ name: api_key
806
+ in: header