@ajaxjs/ui 1.2.2 → 1.2.4

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 (156) hide show
  1. package/README.md +8 -11
  2. package/dist/api-helper/common/arg.vue +46 -0
  3. package/dist/api-helper/common/http-method.vue +53 -0
  4. package/dist/api-helper/common/input-table.vue +128 -0
  5. package/dist/api-helper/document/document-render.d.ts +10 -0
  6. package/dist/api-helper/document/document-render.js +38 -0
  7. package/dist/api-helper/document/document-render.js.map +1 -0
  8. package/dist/api-helper/document/document-render.ts +35 -0
  9. package/dist/api-helper/document/document-render.vue +155 -0
  10. package/dist/api-helper/document/document.d.ts +31 -0
  11. package/dist/api-helper/document/document.js +55 -0
  12. package/dist/api-helper/document/document.js.map +1 -0
  13. package/dist/api-helper/document/document.ts +55 -0
  14. package/dist/api-helper/document/document.vue +78 -0
  15. package/dist/api-helper/document/perview.vue +0 -0
  16. package/dist/api-helper/index.js +142 -0
  17. package/dist/api-helper/index.vue +108 -0
  18. package/dist/api-helper/request-body.vue +66 -0
  19. package/dist/api-helper/table.d.ts +7 -0
  20. package/dist/api-helper/table.js +13 -0
  21. package/dist/api-helper/table.js.map +1 -0
  22. package/dist/api-helper/table.ts +10 -0
  23. package/dist/api-helper/table.vue +103 -0
  24. package/dist/api-helper/xhr.js +100 -0
  25. package/dist/api-helper2/api-helper.d.ts +194 -0
  26. package/dist/api-helper2/api-helper.vue +144 -0
  27. package/dist/api-helper2/bookmark.vue +168 -0
  28. package/dist/api-helper2/common/arg.vue +46 -0
  29. package/dist/api-helper2/common/http-method.vue +53 -0
  30. package/dist/api-helper2/document/document-render.vue +189 -0
  31. package/dist/api-helper2/document/document.vue +130 -0
  32. package/dist/api-helper2/document/perview.vue +0 -0
  33. package/dist/api-helper2/env.vue +140 -0
  34. package/dist/api-helper2/history.vue +116 -0
  35. package/dist/api-helper2/main.vue +70 -0
  36. package/dist/api-helper2/request-body.vue +68 -0
  37. package/dist/api-helper2/table.vue +116 -0
  38. package/dist/api-selector/api-list-dataservice.d.ts +18 -0
  39. package/dist/api-selector/api-list-dataservice.js +209 -0
  40. package/dist/api-selector/api-list-dataservice.js.map +1 -0
  41. package/dist/api-selector/api-list-dataservice.ts +232 -0
  42. package/dist/api-selector/api-list-swagger.d.ts +28 -0
  43. package/dist/api-selector/api-list-swagger.js +179 -0
  44. package/dist/api-selector/api-list-swagger.js.map +1 -0
  45. package/dist/api-selector/api-list-swagger.ts +206 -0
  46. package/dist/api-selector/api-list.d.ts +80 -0
  47. package/dist/api-selector/api-list.js +129 -0
  48. package/dist/api-selector/api-list.js.map +1 -0
  49. package/dist/api-selector/api-list.ts +135 -0
  50. package/dist/api-selector/index.vue +125 -0
  51. package/dist/api-selector/test-dataservice.d.ts +23 -0
  52. package/dist/api-selector/test-dataservice.js +74 -0
  53. package/dist/api-selector/test-dataservice.js.map +1 -0
  54. package/dist/api-selector/test-swagger.d.ts +901 -0
  55. package/dist/api-selector/test-swagger.js +656 -0
  56. package/dist/api-selector/test-swagger.js.map +1 -0
  57. package/dist/data-source/data-source.css +44 -0
  58. package/dist/data-source/data-source.d.ts +14 -0
  59. package/dist/data-source/data-source.html +59 -0
  60. package/dist/data-source/data-source.js +97 -0
  61. package/dist/data-source/data-source.js.map +1 -0
  62. package/dist/data-source/data-source.less +46 -0
  63. package/dist/data-source/data-source.ts +95 -0
  64. package/dist/data-source/data-source.vue +59 -0
  65. package/dist/iView-ext/fast-iview-table/fast-iview-table.d.ts +37 -0
  66. package/dist/iView-ext/fast-iview-table/fast-iview-table.js +72 -0
  67. package/dist/iView-ext/fast-iview-table/fast-iview-table.js.map +1 -0
  68. package/dist/iView-ext/fast-iview-table/fast-iview-table.ts +75 -0
  69. package/dist/iView-ext/fast-iview-table/fast-iview-table.vue +52 -0
  70. package/dist/iView-ext/fast-iview-table/list.d.ts +44 -0
  71. package/dist/iView-ext/fast-iview-table/list.js +97 -0
  72. package/dist/iView-ext/fast-iview-table/list.js.map +1 -0
  73. package/dist/iView-ext/fast-iview-table/list.ts +109 -0
  74. package/dist/iView-ext/tips.vue +14 -0
  75. package/dist/index.d.ts +33 -31
  76. package/dist/index.js +8 -60
  77. package/dist/index.js.map +1 -1
  78. package/dist/index.ts +15 -0
  79. package/dist/libs/api-helper.d.ts +194 -0
  80. package/dist/libs/api-list.d.ts +15 -0
  81. package/dist/libs/common.d.ts +201 -0
  82. package/dist/libs/entity.d.ts +26 -0
  83. package/dist/libs/entity.js +1 -0
  84. package/dist/libs/entity.js.map +1 -0
  85. package/dist/libs/entity.ts +31 -0
  86. package/dist/libs/iview-widgets.d.ts +59 -0
  87. package/dist/libs/iview-widgets.js +2 -0
  88. package/dist/libs/iview-widgets.js.map +1 -0
  89. package/dist/libs/iview-widgets.ts +73 -0
  90. package/dist/main.d.ts +1 -1
  91. package/dist/main.js +16 -8
  92. package/dist/main.js.map +1 -1
  93. package/dist/main.ts +22 -0
  94. package/dist/table-selector/table-selector.htm +28 -0
  95. package/dist/table-selector/table-selector.js +149 -0
  96. package/package.json +16 -17
  97. package/dist/router/index.d.ts +0 -3
  98. package/dist/router/index.js +0 -44
  99. package/dist/router/index.js.map +0 -1
  100. package/dist/util/cookies.d.ts +0 -18
  101. package/dist/util/cookies.js +0 -46
  102. package/dist/util/cookies.js.map +0 -1
  103. package/dist/util/dom.d.ts +0 -17
  104. package/dist/util/dom.js +0 -44
  105. package/dist/util/dom.js.map +0 -1
  106. package/dist/util/utils.d.ts +0 -51
  107. package/dist/util/utils.js +0 -174
  108. package/dist/util/utils.js.map +0 -1
  109. package/dist/util/xhr-config.d.ts +0 -22
  110. package/dist/util/xhr-config.js +0 -3
  111. package/dist/util/xhr-config.js.map +0 -1
  112. package/dist/util/xhr.d.ts +0 -71
  113. package/dist/util/xhr.js +0 -262
  114. package/dist/util/xhr.js.map +0 -1
  115. package/dist/widget/AccordionMenu.vue +0 -140
  116. package/dist/widget/AdjustFontSize.vue +0 -65
  117. package/dist/widget/Article.vue +0 -59
  118. package/dist/widget/EmptyContent.d.ts +0 -5
  119. package/dist/widget/EmptyContent.js +0 -7
  120. package/dist/widget/EmptyContent.js.map +0 -1
  121. package/dist/widget/Expander.vue +0 -65
  122. package/dist/widget/FileUploader/FileUploader.d.ts +0 -70
  123. package/dist/widget/FileUploader/FileUploader.js +0 -139
  124. package/dist/widget/FileUploader/FileUploader.js.map +0 -1
  125. package/dist/widget/FileUploader/FileUploader.less +0 -68
  126. package/dist/widget/FileUploader/FileUploader.ts +0 -156
  127. package/dist/widget/FileUploader/FileUploader.vue +0 -43
  128. package/dist/widget/HtmlEditor/HtmlEditor.d.ts +0 -70
  129. package/dist/widget/HtmlEditor/HtmlEditor.js +0 -287
  130. package/dist/widget/HtmlEditor/HtmlEditor.js.map +0 -1
  131. package/dist/widget/HtmlEditor/HtmlEditor.less +0 -345
  132. package/dist/widget/HtmlEditor/HtmlEditor.ts +0 -339
  133. package/dist/widget/HtmlEditor/HtmlEditor.vue +0 -70
  134. package/dist/widget/HtmlEditor/html-editor-HtmlSanitizer.js +0 -103
  135. package/dist/widget/ImageEnlarger.vue +0 -105
  136. package/dist/widget/OpacityBanner.vue +0 -125
  137. package/dist/widget/ProcessLine.vue +0 -133
  138. package/dist/widget/Resize.d.ts +0 -51
  139. package/dist/widget/Resize.js +0 -133
  140. package/dist/widget/Resize.js.map +0 -1
  141. package/dist/widget/Resize.ts +0 -152
  142. package/dist/widget/Resize.vue +0 -104
  143. package/dist/widget/TreeSelector.vue +0 -4
  144. package/dist/widget/calendar/BetweenDate.vue +0 -63
  145. package/dist/widget/calendar/Calendar.d.ts +0 -55
  146. package/dist/widget/calendar/Calendar.js +0 -145
  147. package/dist/widget/calendar/Calendar.js.map +0 -1
  148. package/dist/widget/calendar/Calendar.less +0 -210
  149. package/dist/widget/calendar/Calendar.ts +0 -167
  150. package/dist/widget/calendar/Calendar.vue +0 -52
  151. package/dist/widget/calendar/CalendarInput.vue +0 -71
  152. package/dist/widget/form/validator.d.ts +0 -70
  153. package/dist/widget/form/validator.js +0 -220
  154. package/dist/widget/form/validator.js.map +0 -1
  155. package/dist/widget/form/validator.ts +0 -289
  156. package/dist/widget/play-ground/sku.vue +0 -93
@@ -0,0 +1,656 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = {
4
+ swagger: "2.0",
5
+ info: {
6
+ description: "This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.",
7
+ version: "1.0.5",
8
+ title: "Swagger Petstore",
9
+ termsOfService: "http://swagger.io/terms/",
10
+ contact: { email: "apiteam@swagger.io" },
11
+ license: {
12
+ name: "Apache 2.0",
13
+ url: "http://www.apache.org/licenses/LICENSE-2.0.html",
14
+ },
15
+ },
16
+ host: "petstore.swagger.io",
17
+ basePath: "/v2",
18
+ tags: [
19
+ {
20
+ name: "pet",
21
+ description: "Everything about your Pets",
22
+ externalDocs: { description: "Find out more", url: "http://swagger.io" },
23
+ },
24
+ { name: "store", description: "Access to Petstore orders" },
25
+ {
26
+ name: "user",
27
+ description: "Operations about user",
28
+ externalDocs: {
29
+ description: "Find out more about our store",
30
+ url: "http://swagger.io",
31
+ },
32
+ },
33
+ ],
34
+ schemes: ["https", "http"],
35
+ paths: {
36
+ "/pet/{petId}/uploadImage": {
37
+ post: {
38
+ tags: ["pet"],
39
+ summary: "uploads an image",
40
+ description: "",
41
+ operationId: "uploadFile",
42
+ consumes: ["multipart/form-data"],
43
+ produces: ["application/json"],
44
+ parameters: [
45
+ {
46
+ name: "petId",
47
+ in: "path",
48
+ description: "ID of pet to update",
49
+ required: true,
50
+ type: "integer",
51
+ format: "int64",
52
+ },
53
+ {
54
+ name: "additionalMetadata",
55
+ in: "formData",
56
+ description: "Additional data to pass to server",
57
+ required: false,
58
+ type: "string",
59
+ },
60
+ {
61
+ name: "file",
62
+ in: "formData",
63
+ description: "file to upload",
64
+ required: false,
65
+ type: "file",
66
+ },
67
+ ],
68
+ responses: {
69
+ "200": {
70
+ description: "successful operation",
71
+ schema: { $ref: "#/definitions/ApiResponse" },
72
+ },
73
+ },
74
+ security: [{ petstore_auth: ["write:pets", "read:pets"] }],
75
+ },
76
+ },
77
+ "/pet": {
78
+ post: {
79
+ tags: ["pet"],
80
+ summary: "Add a new pet to the store",
81
+ description: "",
82
+ operationId: "addPet",
83
+ consumes: ["application/json", "application/xml"],
84
+ produces: ["application/json", "application/xml"],
85
+ parameters: [
86
+ {
87
+ in: "body",
88
+ name: "body",
89
+ description: "Pet object that needs to be added to the store",
90
+ required: true,
91
+ schema: { $ref: "#/definitions/Pet" },
92
+ },
93
+ ],
94
+ responses: { "405": { description: "Invalid input" } },
95
+ security: [{ petstore_auth: ["write:pets", "read:pets"] }],
96
+ },
97
+ put: {
98
+ tags: ["pet"],
99
+ summary: "Update an existing pet",
100
+ description: "",
101
+ operationId: "updatePet",
102
+ consumes: ["application/json", "application/xml"],
103
+ produces: ["application/json", "application/xml"],
104
+ parameters: [
105
+ {
106
+ in: "body",
107
+ name: "body",
108
+ description: "Pet object that needs to be added to the store",
109
+ required: true,
110
+ schema: { $ref: "#/definitions/Pet" },
111
+ },
112
+ ],
113
+ responses: {
114
+ "400": { description: "Invalid ID supplied" },
115
+ "404": { description: "Pet not found" },
116
+ "405": { description: "Validation exception" },
117
+ },
118
+ security: [{ petstore_auth: ["write:pets", "read:pets"] }],
119
+ },
120
+ },
121
+ "/pet/findByStatus": {
122
+ get: {
123
+ tags: ["pet"],
124
+ summary: "Finds Pets by status",
125
+ description: "Multiple status values can be provided with comma separated strings",
126
+ operationId: "findPetsByStatus",
127
+ produces: ["application/json", "application/xml"],
128
+ parameters: [
129
+ {
130
+ name: "status",
131
+ in: "query",
132
+ description: "Status values that need to be considered for filter",
133
+ required: true,
134
+ type: "array",
135
+ items: {
136
+ type: "string",
137
+ enum: ["available", "pending", "sold"],
138
+ default: "available",
139
+ },
140
+ collectionFormat: "multi",
141
+ },
142
+ ],
143
+ responses: {
144
+ "200": {
145
+ description: "successful operation",
146
+ schema: { type: "array", items: { $ref: "#/definitions/Pet" } },
147
+ },
148
+ "400": { description: "Invalid status value" },
149
+ },
150
+ security: [{ petstore_auth: ["write:pets", "read:pets"] }],
151
+ },
152
+ },
153
+ "/pet/findByTags": {
154
+ get: {
155
+ tags: ["pet"],
156
+ summary: "Finds Pets by tags",
157
+ description: "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.",
158
+ operationId: "findPetsByTags",
159
+ produces: ["application/json", "application/xml"],
160
+ parameters: [
161
+ {
162
+ name: "tags",
163
+ in: "query",
164
+ description: "Tags to filter by",
165
+ required: true,
166
+ type: "array",
167
+ items: { type: "string" },
168
+ collectionFormat: "multi",
169
+ },
170
+ ],
171
+ responses: {
172
+ "200": {
173
+ description: "successful operation",
174
+ schema: { type: "array", items: { $ref: "#/definitions/Pet" } },
175
+ },
176
+ "400": { description: "Invalid tag value" },
177
+ },
178
+ security: [{ petstore_auth: ["write:pets", "read:pets"] }],
179
+ deprecated: true,
180
+ },
181
+ },
182
+ "/pet/{petId}": {
183
+ get: {
184
+ tags: ["pet"],
185
+ summary: "Find pet by ID",
186
+ description: "Returns a single pet",
187
+ operationId: "getPetById",
188
+ produces: ["application/json", "application/xml"],
189
+ parameters: [
190
+ {
191
+ name: "petId",
192
+ in: "path",
193
+ description: "ID of pet to return",
194
+ required: true,
195
+ type: "integer",
196
+ format: "int64",
197
+ },
198
+ ],
199
+ responses: {
200
+ "200": {
201
+ description: "successful operation",
202
+ schema: { $ref: "#/definitions/Pet" },
203
+ },
204
+ "400": { description: "Invalid ID supplied" },
205
+ "404": { description: "Pet not found" },
206
+ },
207
+ security: [{ api_key: [] }],
208
+ },
209
+ post: {
210
+ tags: ["pet"],
211
+ summary: "Updates a pet in the store with form data",
212
+ description: "",
213
+ operationId: "updatePetWithForm",
214
+ consumes: ["application/x-www-form-urlencoded"],
215
+ produces: ["application/json", "application/xml"],
216
+ parameters: [
217
+ {
218
+ name: "petId",
219
+ in: "path",
220
+ description: "ID of pet that needs to be updated",
221
+ required: true,
222
+ type: "integer",
223
+ format: "int64",
224
+ },
225
+ {
226
+ name: "name",
227
+ in: "formData",
228
+ description: "Updated name of the pet",
229
+ required: false,
230
+ type: "string",
231
+ },
232
+ {
233
+ name: "status",
234
+ in: "formData",
235
+ description: "Updated status of the pet",
236
+ required: false,
237
+ type: "string",
238
+ },
239
+ ],
240
+ responses: { "405": { description: "Invalid input" } },
241
+ security: [{ petstore_auth: ["write:pets", "read:pets"] }],
242
+ },
243
+ delete: {
244
+ tags: ["pet"],
245
+ summary: "Deletes a pet",
246
+ description: "",
247
+ operationId: "deletePet",
248
+ produces: ["application/json", "application/xml"],
249
+ parameters: [
250
+ { name: "api_key", in: "header", required: false, type: "string" },
251
+ {
252
+ name: "petId",
253
+ in: "path",
254
+ description: "Pet id to delete",
255
+ required: true,
256
+ type: "integer",
257
+ format: "int64",
258
+ },
259
+ ],
260
+ responses: {
261
+ "400": { description: "Invalid ID supplied" },
262
+ "404": { description: "Pet not found" },
263
+ },
264
+ security: [{ petstore_auth: ["write:pets", "read:pets"] }],
265
+ },
266
+ },
267
+ "/store/inventory": {
268
+ get: {
269
+ tags: ["store"],
270
+ summary: "Returns pet inventories by status",
271
+ description: "Returns a map of status codes to quantities",
272
+ operationId: "getInventory",
273
+ produces: ["application/json"],
274
+ parameters: [],
275
+ responses: {
276
+ "200": {
277
+ description: "successful operation",
278
+ schema: {
279
+ type: "object",
280
+ additionalProperties: { type: "integer", format: "int32" },
281
+ },
282
+ },
283
+ },
284
+ security: [{ api_key: [] }],
285
+ },
286
+ },
287
+ "/store/order": {
288
+ post: {
289
+ tags: ["store"],
290
+ summary: "Place an order for a pet",
291
+ description: "",
292
+ operationId: "placeOrder",
293
+ consumes: ["application/json"],
294
+ produces: ["application/json", "application/xml"],
295
+ parameters: [
296
+ {
297
+ in: "body",
298
+ name: "body",
299
+ description: "order placed for purchasing the pet",
300
+ required: true,
301
+ schema: { $ref: "#/definitions/Order" },
302
+ },
303
+ ],
304
+ responses: {
305
+ "200": {
306
+ description: "successful operation",
307
+ schema: { $ref: "#/definitions/Order" },
308
+ },
309
+ "400": { description: "Invalid Order" },
310
+ },
311
+ },
312
+ },
313
+ "/store/order/{orderId}": {
314
+ get: {
315
+ tags: ["store"],
316
+ summary: "Find purchase order by ID",
317
+ description: "For valid response try integer IDs with value >= 1 and <= 10. Other values will generated exceptions",
318
+ operationId: "getOrderById",
319
+ produces: ["application/json", "application/xml"],
320
+ parameters: [
321
+ {
322
+ name: "orderId",
323
+ in: "path",
324
+ description: "ID of pet that needs to be fetched",
325
+ required: true,
326
+ type: "integer",
327
+ maximum: 10,
328
+ minimum: 1,
329
+ format: "int64",
330
+ },
331
+ ],
332
+ responses: {
333
+ "200": {
334
+ description: "successful operation",
335
+ schema: { $ref: "#/definitions/Order" },
336
+ },
337
+ "400": { description: "Invalid ID supplied" },
338
+ "404": { description: "Order not found" },
339
+ },
340
+ },
341
+ delete: {
342
+ tags: ["store"],
343
+ summary: "Delete purchase order by ID",
344
+ description: "For valid response try integer IDs with positive integer value. Negative or non-integer values will generate API errors",
345
+ operationId: "deleteOrder",
346
+ produces: ["application/json", "application/xml"],
347
+ parameters: [
348
+ {
349
+ name: "orderId",
350
+ in: "path",
351
+ description: "ID of the order that needs to be deleted",
352
+ required: true,
353
+ type: "integer",
354
+ minimum: 1,
355
+ format: "int64",
356
+ },
357
+ ],
358
+ responses: {
359
+ "400": { description: "Invalid ID supplied" },
360
+ "404": { description: "Order not found" },
361
+ },
362
+ },
363
+ },
364
+ "/user/createWithList": {
365
+ post: {
366
+ tags: ["user"],
367
+ summary: "Creates list of users with given input array",
368
+ description: "",
369
+ operationId: "createUsersWithListInput",
370
+ consumes: ["application/json"],
371
+ produces: ["application/json", "application/xml"],
372
+ parameters: [
373
+ {
374
+ in: "body",
375
+ name: "body",
376
+ description: "List of user object",
377
+ required: true,
378
+ schema: { type: "array", items: { $ref: "#/definitions/User" } },
379
+ },
380
+ ],
381
+ responses: { default: { description: "successful operation" } },
382
+ },
383
+ },
384
+ "/user/{username}": {
385
+ get: {
386
+ tags: ["user"],
387
+ summary: "Get user by user name",
388
+ description: "",
389
+ operationId: "getUserByName",
390
+ produces: ["application/json", "application/xml"],
391
+ parameters: [
392
+ {
393
+ name: "username",
394
+ in: "path",
395
+ description: "The name that needs to be fetched. Use user1 for testing. ",
396
+ required: true,
397
+ type: "string",
398
+ },
399
+ ],
400
+ responses: {
401
+ "200": {
402
+ description: "successful operation",
403
+ schema: { $ref: "#/definitions/User" },
404
+ },
405
+ "400": { description: "Invalid username supplied" },
406
+ "404": { description: "User not found" },
407
+ },
408
+ },
409
+ put: {
410
+ tags: ["user"],
411
+ summary: "Updated user",
412
+ description: "This can only be done by the logged in user.",
413
+ operationId: "updateUser",
414
+ consumes: ["application/json"],
415
+ produces: ["application/json", "application/xml"],
416
+ parameters: [
417
+ {
418
+ name: "username",
419
+ in: "path",
420
+ description: "name that need to be updated",
421
+ required: true,
422
+ type: "string",
423
+ },
424
+ {
425
+ in: "body",
426
+ name: "body",
427
+ description: "Updated user object",
428
+ required: true,
429
+ schema: { $ref: "#/definitions/User" },
430
+ },
431
+ ],
432
+ responses: {
433
+ "400": { description: "Invalid user supplied" },
434
+ "404": { description: "User not found" },
435
+ },
436
+ },
437
+ delete: {
438
+ tags: ["user"],
439
+ summary: "Delete user",
440
+ description: "This can only be done by the logged in user.",
441
+ operationId: "deleteUser",
442
+ produces: ["application/json", "application/xml"],
443
+ parameters: [
444
+ {
445
+ name: "username",
446
+ in: "path",
447
+ description: "The name that needs to be deleted",
448
+ required: true,
449
+ type: "string",
450
+ },
451
+ ],
452
+ responses: {
453
+ "400": { description: "Invalid username supplied" },
454
+ "404": { description: "User not found" },
455
+ },
456
+ },
457
+ },
458
+ "/user/login": {
459
+ get: {
460
+ tags: ["user"],
461
+ summary: "Logs user into the system",
462
+ description: "",
463
+ operationId: "loginUser",
464
+ produces: ["application/json", "application/xml"],
465
+ parameters: [
466
+ {
467
+ name: "username",
468
+ in: "query",
469
+ description: "The user name for login",
470
+ required: true,
471
+ type: "string",
472
+ },
473
+ {
474
+ name: "password",
475
+ in: "query",
476
+ description: "The password for login in clear text",
477
+ required: true,
478
+ type: "string",
479
+ },
480
+ ],
481
+ responses: {
482
+ "200": {
483
+ description: "successful operation",
484
+ headers: {
485
+ "X-Expires-After": {
486
+ type: "string",
487
+ format: "date-time",
488
+ description: "date in UTC when token expires",
489
+ },
490
+ "X-Rate-Limit": {
491
+ type: "integer",
492
+ format: "int32",
493
+ description: "calls per hour allowed by the user",
494
+ },
495
+ },
496
+ schema: { type: "string" },
497
+ },
498
+ "400": { description: "Invalid username/password supplied" },
499
+ },
500
+ },
501
+ },
502
+ "/user/logout": {
503
+ get: {
504
+ tags: ["user"],
505
+ summary: "Logs out current logged in user session",
506
+ description: "",
507
+ operationId: "logoutUser",
508
+ produces: ["application/json", "application/xml"],
509
+ parameters: [],
510
+ responses: { default: { description: "successful operation" } },
511
+ },
512
+ },
513
+ "/user/createWithArray": {
514
+ post: {
515
+ tags: ["user"],
516
+ summary: "Creates list of users with given input array",
517
+ description: "",
518
+ operationId: "createUsersWithArrayInput",
519
+ consumes: ["application/json"],
520
+ produces: ["application/json", "application/xml"],
521
+ parameters: [
522
+ {
523
+ in: "body",
524
+ name: "body",
525
+ description: "List of user object",
526
+ required: true,
527
+ schema: { type: "array", items: { $ref: "#/definitions/User" } },
528
+ },
529
+ ],
530
+ responses: { default: { description: "successful operation" } },
531
+ },
532
+ },
533
+ "/user": {
534
+ post: {
535
+ tags: ["user"],
536
+ summary: "Create user",
537
+ description: "This can only be done by the logged in user.",
538
+ operationId: "createUser",
539
+ consumes: ["application/json"],
540
+ produces: ["application/json", "application/xml"],
541
+ parameters: [
542
+ {
543
+ in: "body",
544
+ name: "body",
545
+ description: "Created user object",
546
+ required: true,
547
+ schema: { $ref: "#/definitions/User" },
548
+ },
549
+ ],
550
+ responses: { default: { description: "successful operation" } },
551
+ },
552
+ },
553
+ },
554
+ securityDefinitions: {
555
+ api_key: { type: "apiKey", name: "api_key", in: "header" },
556
+ petstore_auth: {
557
+ type: "oauth2",
558
+ authorizationUrl: "https://petstore.swagger.io/oauth/authorize",
559
+ flow: "implicit",
560
+ scopes: {
561
+ "read:pets": "read your pets",
562
+ "write:pets": "modify pets in your account",
563
+ },
564
+ },
565
+ },
566
+ definitions: {
567
+ ApiResponse: {
568
+ type: "object",
569
+ properties: {
570
+ code: { type: "integer", format: "int32" },
571
+ type: { type: "string" },
572
+ message: { type: "string" },
573
+ },
574
+ },
575
+ Category: {
576
+ type: "object",
577
+ properties: {
578
+ id: { type: "integer", format: "int64" },
579
+ name: { type: "string" },
580
+ },
581
+ xml: { name: "Category" },
582
+ },
583
+ Pet: {
584
+ type: "object",
585
+ required: ["name", "photoUrls"],
586
+ properties: {
587
+ id: { type: "integer", format: "int64" },
588
+ category: { $ref: "#/definitions/Category" },
589
+ name: { type: "string", example: "doggie" },
590
+ photoUrls: {
591
+ type: "array",
592
+ xml: { wrapped: true },
593
+ items: { type: "string", xml: { name: "photoUrl" } },
594
+ },
595
+ tags: {
596
+ type: "array",
597
+ xml: { wrapped: true },
598
+ items: { xml: { name: "tag" }, $ref: "#/definitions/Tag" },
599
+ },
600
+ status: {
601
+ type: "string",
602
+ description: "pet status in the store",
603
+ enum: ["available", "pending", "sold"],
604
+ },
605
+ },
606
+ xml: { name: "Pet" },
607
+ },
608
+ Tag: {
609
+ type: "object",
610
+ properties: {
611
+ id: { type: "integer", format: "int64" },
612
+ name: { type: "string" },
613
+ },
614
+ xml: { name: "Tag" },
615
+ },
616
+ Order: {
617
+ type: "object",
618
+ properties: {
619
+ id: { type: "integer", format: "int64" },
620
+ petId: { type: "integer", format: "int64" },
621
+ quantity: { type: "integer", format: "int32" },
622
+ shipDate: { type: "string", format: "date-time" },
623
+ status: {
624
+ type: "string",
625
+ description: "Order Status",
626
+ enum: ["placed", "approved", "delivered"],
627
+ },
628
+ complete: { type: "boolean" },
629
+ },
630
+ xml: { name: "Order" },
631
+ },
632
+ User: {
633
+ type: "object",
634
+ properties: {
635
+ id: { type: "integer", format: "int64" },
636
+ username: { type: "string" },
637
+ firstName: { type: "string" },
638
+ lastName: { type: "string" },
639
+ email: { type: "string" },
640
+ password: { type: "string" },
641
+ phone: { type: "string" },
642
+ userStatus: {
643
+ type: "integer",
644
+ format: "int32",
645
+ description: "User Status",
646
+ },
647
+ },
648
+ xml: { name: "User" },
649
+ },
650
+ },
651
+ externalDocs: {
652
+ description: "Find out more about Swagger",
653
+ url: "http://swagger.io",
654
+ },
655
+ };
656
+ //# sourceMappingURL=test-swagger.js.map