@achinet/nestjs-async 0.1.1 → 0.3.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 (308) hide show
  1. package/dist/asyncapi-document.builder.d.ts +1 -1
  2. package/dist/asyncapi-document.builder.js.map +1 -1
  3. package/dist/asyncapi.module.js +8 -5
  4. package/dist/asyncapi.module.js.map +1 -1
  5. package/dist/binding/asyncapi.kafka.interfaces.d.ts +1 -1
  6. package/dist/decorators/asyncapi-operation-for-meta-key.decorator.js +3 -3
  7. package/dist/decorators/asyncapi-operation-for-meta-key.decorator.js.map +1 -1
  8. package/dist/decorators/asyncapi-operation.decorator.js.map +1 -1
  9. package/dist/decorators/asyncapi-pub.decorator.js.map +1 -1
  10. package/dist/decorators/asyncapi-service.decorator.d.ts +1 -1
  11. package/dist/decorators/asyncapi-service.decorator.js +2 -2
  12. package/dist/decorators/asyncapi-service.decorator.js.map +1 -1
  13. package/dist/decorators/asyncapi-sub.decorator.js.map +1 -1
  14. package/dist/explorers/asyncapi-class.explorer.js +1 -5
  15. package/dist/explorers/asyncapi-class.explorer.js.map +1 -1
  16. package/dist/explorers/asyncapi-operation.explorer.d.ts +1 -2
  17. package/dist/explorers/asyncapi-operation.explorer.js +2 -2
  18. package/dist/explorers/asyncapi-operation.explorer.js.map +1 -1
  19. package/dist/interface/asyncapi-common.interfaces.d.ts +1 -1
  20. package/dist/interface/asyncapi-server.interface.d.ts +1 -1
  21. package/dist/interface/asyncapi-template-options.interface.d.ts +2 -3
  22. package/dist/interface/index.d.ts +0 -1
  23. package/dist/interface/index.js +0 -1
  24. package/dist/interface/index.js.map +1 -1
  25. package/dist/services/asyncapi.explorer.d.ts +2 -4
  26. package/dist/services/asyncapi.explorer.js +8 -13
  27. package/dist/services/asyncapi.explorer.js.map +1 -1
  28. package/dist/services/asyncapi.generator.d.ts +4 -3
  29. package/dist/services/asyncapi.generator.js +72 -17
  30. package/dist/services/asyncapi.generator.js.map +1 -1
  31. package/dist/services/asyncapi.scanner.d.ts +1 -4
  32. package/dist/services/asyncapi.scanner.js +10 -31
  33. package/dist/services/asyncapi.scanner.js.map +1 -1
  34. package/dist/services/asyncapi.transformer.js.map +1 -1
  35. package/dist/services/index.d.ts +1 -1
  36. package/dist/services/index.js +1 -1
  37. package/dist/services/index.js.map +1 -1
  38. package/dist/services/operation-object.factory.d.ts +2 -6
  39. package/dist/services/operation-object.factory.js +7 -14
  40. package/dist/services/operation-object.factory.js.map +1 -1
  41. package/dist/services/swagger-schema.factory.d.ts +6 -0
  42. package/dist/services/swagger-schema.factory.js +27 -0
  43. package/dist/services/swagger-schema.factory.js.map +1 -0
  44. package/dist/utils/decorator.utils.d.ts +2 -0
  45. package/dist/utils/decorator.utils.js +26 -0
  46. package/dist/utils/decorator.utils.js.map +1 -0
  47. package/dist/utils/index.d.ts +2 -0
  48. package/dist/{sample/felines/rto → utils}/index.js +2 -1
  49. package/dist/utils/index.js.map +1 -0
  50. package/dist/utils/path.utils.d.ts +2 -0
  51. package/dist/utils/path.utils.js +8 -0
  52. package/dist/utils/path.utils.js.map +1 -0
  53. package/package.json +57 -37
  54. package/.prettierrc +0 -5
  55. package/CHANGELOG.md +0 -20
  56. package/dist/interface/generator-options.interface.d.ts +0 -22
  57. package/dist/interface/generator-options.interface.js +0 -3
  58. package/dist/interface/generator-options.interface.js.map +0 -1
  59. package/dist/sample/app.module.d.ts +0 -2
  60. package/dist/sample/app.module.js +0 -20
  61. package/dist/sample/app.module.js.map +0 -1
  62. package/dist/sample/common.d.ts +0 -3
  63. package/dist/sample/common.js +0 -40
  64. package/dist/sample/common.js.map +0 -1
  65. package/dist/sample/constants.d.ts +0 -12
  66. package/dist/sample/constants.js +0 -16
  67. package/dist/sample/constants.js.map +0 -1
  68. package/dist/sample/felines/class/cat.class.d.ts +0 -4
  69. package/dist/sample/felines/class/cat.class.js +0 -24
  70. package/dist/sample/felines/class/cat.class.js.map +0 -1
  71. package/dist/sample/felines/class/feline.class.d.ts +0 -19
  72. package/dist/sample/felines/class/feline.class.js +0 -20
  73. package/dist/sample/felines/class/feline.class.js.map +0 -1
  74. package/dist/sample/felines/class/index.d.ts +0 -5
  75. package/dist/sample/felines/class/index.js +0 -22
  76. package/dist/sample/felines/class/index.js.map +0 -1
  77. package/dist/sample/felines/class/lion.class.d.ts +0 -4
  78. package/dist/sample/felines/class/lion.class.js +0 -8
  79. package/dist/sample/felines/class/lion.class.js.map +0 -1
  80. package/dist/sample/felines/class/message.class.d.ts +0 -7
  81. package/dist/sample/felines/class/message.class.js +0 -28
  82. package/dist/sample/felines/class/message.class.js.map +0 -1
  83. package/dist/sample/felines/class/tiger.class.d.ts +0 -4
  84. package/dist/sample/felines/class/tiger.class.js +0 -8
  85. package/dist/sample/felines/class/tiger.class.js.map +0 -1
  86. package/dist/sample/felines/dto/create-feline.dto.d.ts +0 -4
  87. package/dist/sample/felines/dto/create-feline.dto.js +0 -28
  88. package/dist/sample/felines/dto/create-feline.dto.js.map +0 -1
  89. package/dist/sample/felines/dto/index.d.ts +0 -2
  90. package/dist/sample/felines/dto/index.js +0 -19
  91. package/dist/sample/felines/dto/index.js.map +0 -1
  92. package/dist/sample/felines/dto/journaling-data.dto.d.ts +0 -4
  93. package/dist/sample/felines/dto/journaling-data.dto.js +0 -8
  94. package/dist/sample/felines/dto/journaling-data.dto.js.map +0 -1
  95. package/dist/sample/felines/felines.constants.d.ts +0 -1
  96. package/dist/sample/felines/felines.constants.js +0 -5
  97. package/dist/sample/felines/felines.constants.js.map +0 -1
  98. package/dist/sample/felines/felines.controller.d.ts +0 -15
  99. package/dist/sample/felines/felines.controller.js +0 -101
  100. package/dist/sample/felines/felines.controller.js.map +0 -1
  101. package/dist/sample/felines/felines.gateway.d.ts +0 -16
  102. package/dist/sample/felines/felines.gateway.js +0 -90
  103. package/dist/sample/felines/felines.gateway.js.map +0 -1
  104. package/dist/sample/felines/felines.module.d.ts +0 -2
  105. package/dist/sample/felines/felines.module.js +0 -28
  106. package/dist/sample/felines/felines.module.js.map +0 -1
  107. package/dist/sample/felines/felines.service.d.ts +0 -8
  108. package/dist/sample/felines/felines.service.js +0 -33
  109. package/dist/sample/felines/felines.service.js.map +0 -1
  110. package/dist/sample/felines/rto/feline.rto.d.ts +0 -7
  111. package/dist/sample/felines/rto/feline.rto.js +0 -31
  112. package/dist/sample/felines/rto/feline.rto.js.map +0 -1
  113. package/dist/sample/felines/rto/index.d.ts +0 -1
  114. package/dist/sample/felines/rto/index.js.map +0 -1
  115. package/dist/sample/index.d.ts +0 -3
  116. package/dist/sample/index.js +0 -20
  117. package/dist/sample/index.js.map +0 -1
  118. package/dist/sample/main.d.ts +0 -1
  119. package/dist/sample/main.js +0 -30
  120. package/dist/sample/main.js.map +0 -1
  121. package/dist/src/asyncapi-document.builder.d.ts +0 -27
  122. package/dist/src/asyncapi-document.builder.js +0 -110
  123. package/dist/src/asyncapi-document.builder.js.map +0 -1
  124. package/dist/src/asyncapi.constants.d.ts +0 -6
  125. package/dist/src/asyncapi.constants.js +0 -11
  126. package/dist/src/asyncapi.constants.js.map +0 -1
  127. package/dist/src/asyncapi.module.d.ts +0 -8
  128. package/dist/src/asyncapi.module.js +0 -47
  129. package/dist/src/asyncapi.module.js.map +0 -1
  130. package/dist/src/binding/asyncapi.amqp.interfaces.d.ts +0 -38
  131. package/dist/src/binding/asyncapi.amqp.interfaces.js +0 -3
  132. package/dist/src/binding/asyncapi.amqp.interfaces.js.map +0 -1
  133. package/dist/src/binding/asyncapi.kafka.interfaces.d.ts +0 -21
  134. package/dist/src/binding/asyncapi.kafka.interfaces.js +0 -3
  135. package/dist/src/binding/asyncapi.kafka.interfaces.js.map +0 -1
  136. package/dist/src/binding/index.d.ts +0 -2
  137. package/dist/src/binding/index.js +0 -19
  138. package/dist/src/binding/index.js.map +0 -1
  139. package/dist/src/decorators/asyncapi-operation-for-meta-key.decorator.d.ts +0 -2
  140. package/dist/src/decorators/asyncapi-operation-for-meta-key.decorator.js +0 -37
  141. package/dist/src/decorators/asyncapi-operation-for-meta-key.decorator.js.map +0 -1
  142. package/dist/src/decorators/asyncapi-operation.decorator.d.ts +0 -2
  143. package/dist/src/decorators/asyncapi-operation.decorator.js +0 -9
  144. package/dist/src/decorators/asyncapi-operation.decorator.js.map +0 -1
  145. package/dist/src/decorators/asyncapi-pub.decorator.d.ts +0 -2
  146. package/dist/src/decorators/asyncapi-pub.decorator.js +0 -10
  147. package/dist/src/decorators/asyncapi-pub.decorator.js.map +0 -1
  148. package/dist/src/decorators/asyncapi-service.decorator.d.ts +0 -1
  149. package/dist/src/decorators/asyncapi-service.decorator.js +0 -9
  150. package/dist/src/decorators/asyncapi-service.decorator.js.map +0 -1
  151. package/dist/src/decorators/asyncapi-sub.decorator.d.ts +0 -2
  152. package/dist/src/decorators/asyncapi-sub.decorator.js +0 -10
  153. package/dist/src/decorators/asyncapi-sub.decorator.js.map +0 -1
  154. package/dist/src/decorators/index.d.ts +0 -4
  155. package/dist/src/decorators/index.js +0 -21
  156. package/dist/src/decorators/index.js.map +0 -1
  157. package/dist/src/explorers/asyncapi-class.explorer.d.ts +0 -5
  158. package/dist/src/explorers/asyncapi-class.explorer.js +0 -27
  159. package/dist/src/explorers/asyncapi-class.explorer.js.map +0 -1
  160. package/dist/src/explorers/asyncapi-operation.explorer.d.ts +0 -17
  161. package/dist/src/explorers/asyncapi-operation.explorer.js +0 -26
  162. package/dist/src/explorers/asyncapi-operation.explorer.js.map +0 -1
  163. package/dist/src/explorers/index.d.ts +0 -2
  164. package/dist/src/explorers/index.js +0 -19
  165. package/dist/src/explorers/index.js.map +0 -1
  166. package/dist/src/index.d.ts +0 -4
  167. package/dist/src/index.js +0 -21
  168. package/dist/src/index.js.map +0 -1
  169. package/dist/src/interface/asyncapi-common.interfaces.d.ts +0 -126
  170. package/dist/src/interface/asyncapi-common.interfaces.js +0 -3
  171. package/dist/src/interface/asyncapi-common.interfaces.js.map +0 -1
  172. package/dist/src/interface/asyncapi-document-options.interface.d.ts +0 -3
  173. package/dist/src/interface/asyncapi-document-options.interface.js +0 -3
  174. package/dist/src/interface/asyncapi-document-options.interface.js.map +0 -1
  175. package/dist/src/interface/asyncapi-message.interface.d.ts +0 -8
  176. package/dist/src/interface/asyncapi-message.interface.js +0 -3
  177. package/dist/src/interface/asyncapi-message.interface.js.map +0 -1
  178. package/dist/src/interface/asyncapi-operation-headers.interface.d.ts +0 -6
  179. package/dist/src/interface/asyncapi-operation-headers.interface.js +0 -3
  180. package/dist/src/interface/asyncapi-operation-headers.interface.js.map +0 -1
  181. package/dist/src/interface/asyncapi-operation-options-raw.interface.d.ts +0 -21
  182. package/dist/src/interface/asyncapi-operation-options-raw.interface.js +0 -3
  183. package/dist/src/interface/asyncapi-operation-options-raw.interface.js.map +0 -1
  184. package/dist/src/interface/asyncapi-operation-options.interface.d.ts +0 -8
  185. package/dist/src/interface/asyncapi-operation-options.interface.js +0 -3
  186. package/dist/src/interface/asyncapi-operation-options.interface.js.map +0 -1
  187. package/dist/src/interface/asyncapi-operation-payload.interface.d.ts +0 -2
  188. package/dist/src/interface/asyncapi-operation-payload.interface.js +0 -3
  189. package/dist/src/interface/asyncapi-operation-payload.interface.js.map +0 -1
  190. package/dist/src/interface/asyncapi-server.interface.d.ts +0 -10
  191. package/dist/src/interface/asyncapi-server.interface.js +0 -3
  192. package/dist/src/interface/asyncapi-server.interface.js.map +0 -1
  193. package/dist/src/interface/asyncapi-template-options.interface.d.ts +0 -7
  194. package/dist/src/interface/asyncapi-template-options.interface.js +0 -3
  195. package/dist/src/interface/asyncapi-template-options.interface.js.map +0 -1
  196. package/dist/src/interface/denormalized-doc-resolvers.interface.d.ts +0 -6
  197. package/dist/src/interface/denormalized-doc-resolvers.interface.js +0 -3
  198. package/dist/src/interface/denormalized-doc-resolvers.interface.js.map +0 -1
  199. package/dist/src/interface/denormalized-doc.interface.d.ts +0 -10
  200. package/dist/src/interface/denormalized-doc.interface.js +0 -3
  201. package/dist/src/interface/denormalized-doc.interface.js.map +0 -1
  202. package/dist/src/interface/generator-options.interface.d.ts +0 -22
  203. package/dist/src/interface/generator-options.interface.js +0 -3
  204. package/dist/src/interface/generator-options.interface.js.map +0 -1
  205. package/dist/src/interface/index.d.ts +0 -11
  206. package/dist/src/interface/index.js +0 -28
  207. package/dist/src/interface/index.js.map +0 -1
  208. package/dist/src/services/asyncapi.explorer.d.ts +0 -12
  209. package/dist/src/services/asyncapi.explorer.js +0 -69
  210. package/dist/src/services/asyncapi.explorer.js.map +0 -1
  211. package/dist/src/services/asyncapi.generator.d.ts +0 -6
  212. package/dist/src/services/asyncapi.generator.js +0 -68
  213. package/dist/src/services/asyncapi.generator.js.map +0 -1
  214. package/dist/src/services/asyncapi.scanner.d.ts +0 -14
  215. package/dist/src/services/asyncapi.scanner.js +0 -71
  216. package/dist/src/services/asyncapi.scanner.js.map +0 -1
  217. package/dist/src/services/asyncapi.transformer.d.ts +0 -4
  218. package/dist/src/services/asyncapi.transformer.js +0 -33
  219. package/dist/src/services/asyncapi.transformer.js.map +0 -1
  220. package/dist/src/services/index.d.ts +0 -4
  221. package/dist/src/services/index.js +0 -21
  222. package/dist/src/services/index.js.map +0 -1
  223. package/dist/src/services/operation-object.factory.d.ts +0 -9
  224. package/dist/src/services/operation-object.factory.js +0 -37
  225. package/dist/src/services/operation-object.factory.js.map +0 -1
  226. package/dist/test/configs/jest-base.config.d.ts +0 -3
  227. package/dist/test/configs/jest-base.config.js +0 -20
  228. package/dist/test/configs/jest-base.config.js.map +0 -1
  229. package/dist/test/configs/jest-e2e.config.d.ts +0 -3
  230. package/dist/test/configs/jest-e2e.config.js +0 -16
  231. package/dist/test/configs/jest-e2e.config.js.map +0 -1
  232. package/dist/test/express.e2e-spec.d.ts +0 -1
  233. package/dist/test/express.e2e-spec.js +0 -89
  234. package/dist/test/express.e2e-spec.js.map +0 -1
  235. package/dist/test/fastify.e2e-spec.d.ts +0 -1
  236. package/dist/test/fastify.e2e-spec.js +0 -57
  237. package/dist/test/fastify.e2e-spec.js.map +0 -1
  238. package/dist/tsconfig.tsbuildinfo +0 -1
  239. package/eslint.config.mjs +0 -21
  240. package/misc/references/ref.html +0 -303
  241. package/misc/references/ref.json +0 -1
  242. package/misc/references/ref.yaml +0 -292
  243. package/misc/take-snaphots.sh +0 -8
  244. package/sample/app.module.ts +0 -7
  245. package/sample/common.ts +0 -49
  246. package/sample/constants.ts +0 -12
  247. package/sample/felines/class/cat.class.ts +0 -9
  248. package/sample/felines/class/feline.class.ts +0 -29
  249. package/sample/felines/class/index.ts +0 -5
  250. package/sample/felines/class/lion.class.ts +0 -5
  251. package/sample/felines/class/message.class.ts +0 -17
  252. package/sample/felines/class/tiger.class.ts +0 -5
  253. package/sample/felines/dto/create-feline.dto.ts +0 -13
  254. package/sample/felines/dto/index.ts +0 -2
  255. package/sample/felines/dto/journaling-data.dto.ts +0 -5
  256. package/sample/felines/felines.constants.ts +0 -1
  257. package/sample/felines/felines.controller.ts +0 -76
  258. package/sample/felines/felines.gateway.ts +0 -76
  259. package/sample/felines/felines.module.ts +0 -15
  260. package/sample/felines/felines.service.ts +0 -24
  261. package/sample/felines/rto/feline.rto.ts +0 -17
  262. package/sample/felines/rto/index.ts +0 -1
  263. package/sample/index.ts +0 -3
  264. package/sample/main.ts +0 -34
  265. package/src/asyncapi-document.builder.ts +0 -172
  266. package/src/asyncapi.constants.ts +0 -8
  267. package/src/asyncapi.module.ts +0 -65
  268. package/src/binding/asyncapi.amqp.interfaces.ts +0 -48
  269. package/src/binding/asyncapi.kafka.interfaces.ts +0 -35
  270. package/src/binding/index.ts +0 -2
  271. package/src/decorators/asyncapi-operation-for-meta-key.decorator.ts +0 -58
  272. package/src/decorators/asyncapi-operation.decorator.ts +0 -7
  273. package/src/decorators/asyncapi-pub.decorator.ts +0 -11
  274. package/src/decorators/asyncapi-service.decorator.ts +0 -9
  275. package/src/decorators/asyncapi-sub.decorator.ts +0 -11
  276. package/src/decorators/index.ts +0 -4
  277. package/src/explorers/asyncapi-class.explorer.ts +0 -26
  278. package/src/explorers/asyncapi-operation.explorer.ts +0 -40
  279. package/src/explorers/index.ts +0 -2
  280. package/src/index.ts +0 -4
  281. package/src/interface/asyncapi-common.interfaces.ts +0 -169
  282. package/src/interface/asyncapi-document-options.interface.ts +0 -3
  283. package/src/interface/asyncapi-message.interface.ts +0 -10
  284. package/src/interface/asyncapi-operation-headers.interface.ts +0 -6
  285. package/src/interface/asyncapi-operation-options-raw.interface.ts +0 -23
  286. package/src/interface/asyncapi-operation-options.interface.ts +0 -10
  287. package/src/interface/asyncapi-operation-payload.interface.ts +0 -3
  288. package/src/interface/asyncapi-server.interface.ts +0 -11
  289. package/src/interface/asyncapi-template-options.interface.ts +0 -20
  290. package/src/interface/denormalized-doc-resolvers.interface.ts +0 -6
  291. package/src/interface/denormalized-doc.interface.ts +0 -6
  292. package/src/interface/generator-options.interface.ts +0 -21
  293. package/src/interface/index.ts +0 -12
  294. package/src/services/asyncapi.explorer.ts +0 -112
  295. package/src/services/asyncapi.generator.ts +0 -45
  296. package/src/services/asyncapi.scanner.ts +0 -105
  297. package/src/services/asyncapi.transformer.ts +0 -33
  298. package/src/services/index.ts +0 -4
  299. package/src/services/operation-object.factory.ts +0 -55
  300. package/test/__mocks__/@asyncapi/generator.js +0 -41
  301. package/test/configs/jest-base.config.ts +0 -19
  302. package/test/configs/jest-e2e.config.js +0 -7
  303. package/test/configs/jest-e2e.config.ts +0 -19
  304. package/test/configs/jest-swagger-plugin.js +0 -16
  305. package/test/express.e2e-spec.ts +0 -64
  306. package/test/fastify.e2e-spec.ts +0 -65
  307. package/tsconfig.build.json +0 -4
  308. package/tsconfig.json +0 -8
@@ -1 +0,0 @@
1
- {"version":3,"file":"main.js","sourceRoot":"","sources":["../../sample/main.ts"],"names":[],"mappings":";;AAAA,2CAA0D;AAC1D,uCAA2C;AAC3C,yDAAuE;AACvE,+DAA0D;AAC1D,+DAA0D;AAC1D,6CAAyC;AACzC,qCAAgD;AAChD,2CAAuE;AACvE,gCAAwC;AAExC,MAAM,WAAW,GAAG,KAAK,CAAC;AAE1B,MAAM,OAAO,GAAG,WAAW;IACzB,CAAC,CAAC,IAAI,iCAAc,CAAC;QACjB,mBAAmB,EAAE,KAAK;KAC3B,CAAC;IACJ,CAAC,CAAC,IAAI,iCAAc,EAAE,CAAC;AAEzB,KAAK,UAAU,SAAS;IACtB,MAAM,GAAG,GAAG,MAAM,kBAAW,CAAC,MAAM,CAAmB,sBAAS,EAAE,OAAO,EAAE,EAAE,CAAC,CAAC;IAC/E,MAAM,gBAAgB,GAAG,MAAM,IAAA,6BAAoB,EAAC,GAAG,CAAC,CAAC;IACzD,MAAM,oBAAc,CAAC,KAAK,CAAC,6BAAiB,EAAE,GAAG,EAAE,gBAAgB,CAAC,CAAC;IAErE,GAAG,CAAC,mBAAmB,CAAsB,EAAE,SAAS,EAAE,yBAAS,CAAC,GAAG,EAAE,CAAC,CAAC;IAE3E,MAAM,GAAG,CAAC,qBAAqB,EAAE,CAAC;IAClC,MAAM,GAAG,CAAC,MAAM,CAAC,gBAAI,EAAE,gBAAI,CAAC,CAAC;IAE7B,MAAM,OAAO,GAAG,UAAU,gBAAI,IAAI,gBAAI,EAAE,CAAC;IACzC,MAAM,MAAM,GAAG,OAAO,GAAG,6BAAiB,CAAC;IAC3C,eAAM,CAAC,GAAG,CAAC,qBAAqB,OAAO,iBAAiB,MAAM,GAAG,EAAE,qBAAS,CAAC,CAAC;AAChF,CAAC;AAED,SAAS,EAAE,CAAC"}
@@ -1,27 +0,0 @@
1
- import { ExternalDocumentationObject, SecuritySchemeObject } from '@nestjs/swagger/dist/interfaces/open-api-spec.interface';
2
- import { AsyncApiDocument, AsyncSecuritySchemeObject, AsyncServerObject } from './interface';
3
- export declare class AsyncApiDocumentBuilder {
4
- private readonly buildDocumentBase;
5
- private readonly document;
6
- setTitle(title: string): this;
7
- setDescription(description: string): this;
8
- setVersion(version: string): this;
9
- setTermsOfService(termsOfService: string): this;
10
- setContact(name: string, url: string, email: string): this;
11
- setLicense(name: string, url: string): this;
12
- addServer(name: string, server: AsyncServerObject): this;
13
- addServers(servers: {
14
- name: string;
15
- server: AsyncServerObject;
16
- }[]): this;
17
- setExternalDoc(description: string, url: string): this;
18
- setDefaultContentType(contentType: string): this;
19
- addTag(name: string, description?: string, externalDocs?: ExternalDocumentationObject): this;
20
- addSecurity(name: string, options: AsyncSecuritySchemeObject): this;
21
- addBearerAuth(options?: SecuritySchemeObject, name?: string): this;
22
- addOAuth2(options?: SecuritySchemeObject, name?: string): this;
23
- addApiKey(options?: SecuritySchemeObject, name?: string): this;
24
- addBasicAuth(options?: SecuritySchemeObject, name?: string): this;
25
- addCookieAuth(cookieName?: string, options?: SecuritySchemeObject, securityName?: string): this;
26
- build(): Omit<AsyncApiDocument, 'components' | 'channels'>;
27
- }
@@ -1,110 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AsyncApiDocumentBuilder = void 0;
4
- const lodash_1 = require("lodash");
5
- class AsyncApiDocumentBuilder {
6
- constructor() {
7
- this.buildDocumentBase = () => ({
8
- asyncapi: '2.5.0',
9
- info: {
10
- title: '',
11
- description: '',
12
- version: '1.0.0',
13
- contact: {},
14
- },
15
- tags: [],
16
- servers: {},
17
- components: {},
18
- });
19
- this.document = this.buildDocumentBase();
20
- }
21
- setTitle(title) {
22
- this.document.info.title = title;
23
- return this;
24
- }
25
- setDescription(description) {
26
- this.document.info.description = description;
27
- return this;
28
- }
29
- setVersion(version) {
30
- this.document.info.version = version;
31
- return this;
32
- }
33
- setTermsOfService(termsOfService) {
34
- this.document.info.termsOfService = termsOfService;
35
- return this;
36
- }
37
- setContact(name, url, email) {
38
- this.document.info.contact = { name, url, email };
39
- return this;
40
- }
41
- setLicense(name, url) {
42
- this.document.info.license = { name, url };
43
- return this;
44
- }
45
- addServer(name, server) {
46
- this.document.servers[name] = server;
47
- return this;
48
- }
49
- addServers(servers) {
50
- for (const { name, server } of servers) {
51
- this.addServer(name, server);
52
- }
53
- return this;
54
- }
55
- setExternalDoc(description, url) {
56
- this.document.externalDocs = { description, url };
57
- return this;
58
- }
59
- setDefaultContentType(contentType) {
60
- this.document.defaultContentType = contentType;
61
- return this;
62
- }
63
- addTag(name, description = '', externalDocs) {
64
- this.document.tags = this.document.tags.concat((0, lodash_1.pickBy)({
65
- name,
66
- description,
67
- externalDocs,
68
- }, (0, lodash_1.negate)(lodash_1.isUndefined)));
69
- return this;
70
- }
71
- addSecurity(name, options) {
72
- this.document.components.securitySchemes = Object.assign(Object.assign({}, (this.document.components.securitySchemes || {})), { [name]: options });
73
- return this;
74
- }
75
- addBearerAuth(options = {
76
- type: 'http',
77
- }, name = 'bearer') {
78
- this.addSecurity(name, Object.assign({ scheme: 'bearer', bearerFormat: 'JWT' }, options));
79
- return this;
80
- }
81
- addOAuth2(options = {
82
- type: 'oauth2',
83
- }, name = 'oauth2') {
84
- this.addSecurity(name, Object.assign({ flows: {} }, options));
85
- return this;
86
- }
87
- addApiKey(options = {
88
- type: 'apiKey',
89
- }, name = 'api_key') {
90
- this.addSecurity(name, Object.assign({ in: 'header', name }, options));
91
- return this;
92
- }
93
- addBasicAuth(options = {
94
- type: 'http',
95
- }, name = 'basic') {
96
- this.addSecurity(name, Object.assign({ scheme: 'basic' }, options));
97
- return this;
98
- }
99
- addCookieAuth(cookieName = 'connect.sid', options = {
100
- type: 'apiKey',
101
- }, securityName = 'cookie') {
102
- this.addSecurity(securityName, Object.assign({ in: 'cookie', name: cookieName }, options));
103
- return this;
104
- }
105
- build() {
106
- return this.document;
107
- }
108
- }
109
- exports.AsyncApiDocumentBuilder = AsyncApiDocumentBuilder;
110
- //# sourceMappingURL=asyncapi-document.builder.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"asyncapi-document.builder.js","sourceRoot":"","sources":["../../src/asyncapi-document.builder.ts"],"names":[],"mappings":";;;AAKA,mCAAqD;AAGrD,MAAa,uBAAuB;IAApC;QACmB,sBAAiB,GAAG,GAAuC,EAAE,CAAC,CAAC;YAC9E,QAAQ,E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EAChB,YAAY,EAAE,KAAK,IAChB,OAAO,EACV,CAAC;QACH,OAAO,IAAI,CAAC;IACd,CAAC;IAEM,SAAS,CACd,UAAgC;QAC9B,IAAI,EAAE,QAAQ;KACf,EACD,IAAI,GAAG,QAAQ;QAEf,IAAI,CAAC,WAAW,CAAC,IAAI,kBACnB,KAAK,EAAE,EAAE,IACN,OAAO,EACV,CAAC;QACH,OAAO,IAAI,CAAC;IACd,CAAC;IAEM,SAAS,CACd,UAAgC;QAC9B,IAAI,EAAE,QAAQ;KACf,EACD,IAAI,GAAG,SAAS;QAEhB,IAAI,CAAC,WAAW,CAAC,IAAI,kBACnB,EAAE,EAAE,QAAQ,EACZ,IAAI,IACD,OAAO,EACV,CAAC;QACH,OAAO,IAAI,CAAC;IACd,CAAC;IAEM,YAAY,CACjB,UAAgC;QAC9B,IAAI,EAAE,MAAM;KACb,EACD,IAAI,GAAG,OAAO;QAEd,IAAI,CAAC,WAAW,CAAC,IAAI,kBACnB,MAAM,EAAE,OAAO,IACZ,OAAO,EACV,CAAC;QACH,OAAO,IAAI,CAAC;IACd,CAAC;IAEM,aAAa,CAClB,UAAU,GAAG,aAAa,EAC1B,UAAgC;QAC9B,IAAI,EAAE,QAAQ;KACf,EACD,YAAY,GAAG,QAAQ;QAEvB,IAAI,CAAC,WAAW,CAAC,YAAY,kBAC3B,EAAE,EAAE,QAAQ,EACZ,IAAI,EAAE,UAAU,IACb,OAAO,EACV,CAAC;QACH,OAAO,IAAI,CAAC;IACd,CAAC;IAEM,KAAK;QACV,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;CACF;AAnKD,0DAmKC"}
@@ -1,6 +0,0 @@
1
- export declare const DECORATORS: {
2
- AsyncApiClass: string;
3
- AsyncApiOperation: string;
4
- AsyncApiPub: string;
5
- AsyncApiSub: string;
6
- };
@@ -1,11 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DECORATORS = void 0;
4
- const DECORATORS_PREFIX = 'asyncapi';
5
- exports.DECORATORS = {
6
- AsyncApiClass: `${DECORATORS_PREFIX}/class`,
7
- AsyncApiOperation: `${DECORATORS_PREFIX}/operation`,
8
- AsyncApiPub: `${DECORATORS_PREFIX}/pub`,
9
- AsyncApiSub: `${DECORATORS_PREFIX}/sub`,
10
- };
11
- //# sourceMappingURL=asyncapi.constants.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"asyncapi.constants.js","sourceRoot":"","sources":["../../src/asyncapi.constants.ts"],"names":[],"mappings":";;;AAAA,MAAM,iBAAiB,GAAG,UAAU,CAAC;AAExB,QAAA,UAAU,GAAG;IACxB,aAAa,EAAE,GAAG,iBAAiB,QAAQ;IAC3C,iBAAiB,EAAE,GAAG,iBAAiB,YAAY;IACnD,WAAW,EAAE,GAAG,iBAAiB,MAAM;IACvC,WAAW,EAAE,GAAG,iBAAiB,MAAM;CACxC,CAAC"}
@@ -1,8 +0,0 @@
1
- import { INestApplication, INestApplicationContext } from '@nestjs/common';
2
- import { AsyncApiDocument, AsyncApiDocumentOptions, AsyncApiTemplateOptions } from './interface';
3
- export declare class AsyncApiModule {
4
- private static readonly logger;
5
- static createDocument(app: INestApplicationContext, config: Omit<AsyncApiDocument, 'channels'>, options?: AsyncApiDocumentOptions): AsyncApiDocument;
6
- static composeHtml(contract: AsyncApiDocument, templateOptions?: AsyncApiTemplateOptions): Promise<string>;
7
- static setup(path: string, app: INestApplication, document: AsyncApiDocument, templateOptions?: AsyncApiTemplateOptions): Promise<void>;
8
- }
@@ -1,47 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.AsyncApiModule = void 0;
7
- const common_1 = require("@nestjs/common");
8
- const validate_path_util_1 = require("@nestjs/swagger/dist/utils/validate-path.util");
9
- const js_yaml_1 = __importDefault(require("js-yaml"));
10
- const services_1 = require("./services");
11
- class AsyncApiModule {
12
- static createDocument(app, config, options = {}) {
13
- const asyncapiScanner = new services_1.AsyncapiScanner();
14
- const document = asyncapiScanner.scanApplication(app, options);
15
- document.components = Object.assign(Object.assign({}, (config.components || {})), document.components);
16
- return Object.assign(Object.assign({}, config), document);
17
- }
18
- static async composeHtml(contract, templateOptions) {
19
- const generator = new services_1.AsyncapiGenerator(templateOptions);
20
- return generator.generate(contract).catch((err) => {
21
- this.logger.error(err);
22
- throw err;
23
- });
24
- }
25
- static async setup(path, app, document, templateOptions) {
26
- const httpAdapter = app.getHttpAdapter();
27
- const finalPath = (0, validate_path_util_1.validatePath)(path);
28
- const html = await this.composeHtml(document, templateOptions);
29
- const yamlDocument = js_yaml_1.default.dump(document);
30
- const jsonDocument = JSON.stringify(document);
31
- httpAdapter.get(finalPath, (req, res) => {
32
- res.type('text/html');
33
- res.send(html);
34
- });
35
- httpAdapter.get(`${finalPath}-json`, (req, res) => {
36
- res.type('application/json');
37
- res.send(jsonDocument);
38
- });
39
- httpAdapter.get(`${finalPath}-yaml`, (req, res) => {
40
- res.type('text/yaml');
41
- res.send(yamlDocument);
42
- });
43
- }
44
- }
45
- exports.AsyncApiModule = AsyncApiModule;
46
- AsyncApiModule.logger = new common_1.Logger(AsyncApiModule.name);
47
- //# sourceMappingURL=asyncapi.module.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"asyncapi.module.js","sourceRoot":"","sources":["../../src/asyncapi.module.ts"],"names":[],"mappings":";;;;;;AAAA,2CAAmF;AACnF,sFAA6E;AAC7E,sDAA6B;AAE7B,yCAAgE;AAEhE,MAAa,cAAc;IAGlB,MAAM,CAAC,cAAc,CAC1B,GAA4B,EAC5B,MAA0C,EAC1C,UAAmC,EAAE;QAErC,MAAM,eAAe,GAAG,IAAI,0BAAe,EAAE,CAAC;QAC9C,MAAM,QAAQ,GAAG,eAAe,CAAC,eAAe,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;QAE/D,QAAQ,CAAC,UAAU,mCACd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C;YAC7B,GAAG,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QACzB,CAAC,CAAC,CAAC;QAEH,WAAW,CAAC,GAAG,CAAC,GAAG,SAAS,OAAO,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;YAChD,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;YACtB,GAAG,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QACzB,CAAC,CAAC,CAAC;IACL,CAAC;;AAzDH,wCA0DC;AAzDyB,qBAAM,GAAG,IAAI,eAAM,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC"}
@@ -1,38 +0,0 @@
1
- export interface AmqpServerBinding {
2
- }
3
- export interface AmqpChannelBinding {
4
- is: string;
5
- exchange?: {
6
- name: string;
7
- type: string;
8
- durable?: boolean;
9
- autoDelete?: boolean;
10
- vhost?: string;
11
- };
12
- queue?: {
13
- name: string;
14
- durable?: boolean;
15
- exclusive?: boolean;
16
- autoDelete?: boolean;
17
- vhost?: string;
18
- };
19
- bindingVersion?: string;
20
- }
21
- export interface AmqpOperationBinding {
22
- expiration?: number;
23
- userId?: string;
24
- cc?: string[];
25
- priority?: number;
26
- deliveryMode?: number;
27
- mandatory?: boolean;
28
- bcc?: string[];
29
- replyTo?: string;
30
- timestamp?: boolean;
31
- ack?: boolean;
32
- bindingVersion?: string;
33
- }
34
- export interface AmqpMessageBinding {
35
- contentEncoding?: string;
36
- messageType?: string;
37
- bindingVersion?: string;
38
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=asyncapi.amqp.interfaces.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"asyncapi.amqp.interfaces.js","sourceRoot":"","sources":["../../../src/binding/asyncapi.amqp.interfaces.ts"],"names":[],"mappings":""}
@@ -1,21 +0,0 @@
1
- import { SchemaObject } from '@nestjs/swagger/dist/interfaces/open-api-spec.interface';
2
- export interface KafkaServerBinding {
3
- schemaRegistryUrl: string;
4
- schemaRegistryVendor: string;
5
- bindingVersion: string;
6
- }
7
- export interface KafkaChannelBinding {
8
- topic: string;
9
- partitions: number;
10
- replicas: number;
11
- bindingVersion: string;
12
- }
13
- export interface KafkaOperationBinding {
14
- groupId?: SchemaObject;
15
- clientId?: SchemaObject;
16
- bindingVersion?: string;
17
- }
18
- export interface KafkaMessageBinding {
19
- key?: SchemaObject;
20
- bindingVersion?: string;
21
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=asyncapi.kafka.interfaces.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"asyncapi.kafka.interfaces.js","sourceRoot":"","sources":["../../../src/binding/asyncapi.kafka.interfaces.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export * from './asyncapi.amqp.interfaces';
2
- export * from './asyncapi.kafka.interfaces';
@@ -1,19 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./asyncapi.amqp.interfaces"), exports);
18
- __exportStar(require("./asyncapi.kafka.interfaces"), exports);
19
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/binding/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6DAA2C;AAC3C,8DAA4C"}
@@ -1,2 +0,0 @@
1
- import { AsyncApiOperationOptions } from '../interface';
2
- export declare function AsyncApiOperationForMetaKey(metaKey: string, options: AsyncApiOperationOptions[]): MethodDecorator;
@@ -1,37 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AsyncApiOperationForMetaKey = AsyncApiOperationForMetaKey;
4
- const helpers_1 = require("@nestjs/swagger/dist/decorators/helpers");
5
- function makeHeaders(headers) {
6
- return headers
7
- ? {
8
- type: 'object',
9
- properties: Object.entries(headers)
10
- .map(([key, value]) => ({
11
- [key]: Object.assign({ type: 'string' }, value),
12
- }))
13
- .reduce((acc, j) => (Object.assign(Object.assign({}, acc), j)), {}),
14
- }
15
- : undefined;
16
- }
17
- function makeMessage(message, defaultName) {
18
- return Object.assign(Object.assign({}, message), { name: message.name || defaultName, payload: {
19
- type: message.payload,
20
- }, headers: makeHeaders(message.headers) });
21
- }
22
- function AsyncApiOperationForMetaKey(metaKey, options) {
23
- return (target, propertyKey, descriptor) => {
24
- const methodName = `${target.constructor.name}#${String(propertyKey)}`;
25
- const transformedOptions = options.map((i) => {
26
- const message = Array.isArray(i.message)
27
- ? {
28
- oneOf: i.message.map((j, index) => makeMessage(j, `${methodName}#${index}`)),
29
- }
30
- : makeMessage(i.message, methodName);
31
- const transformedOptionInstance = Object.assign(Object.assign({}, i), { message });
32
- return transformedOptionInstance;
33
- });
34
- return (0, helpers_1.createMethodDecorator)(metaKey, transformedOptions)(target, propertyKey, descriptor);
35
- };
36
- }
37
- //# sourceMappingURL=asyncapi-operation-for-meta-key.decorator.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"asyncapi-operation-for-meta-key.decorator.js","sourceRoot":"","sources":["../../../src/decorators/asyncapi-operation-for-meta-key.decorator.ts"],"names":[],"mappings":";;AAoCA,kEAqBC;AAzDD,qEAAgF;AAShF,SAAS,WAAW,CAAC,OAA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CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC;YAEvC,MAAM,yBAAyB,mCAC1B,CAAC,KACJ,OAAO,GACR,CAAC;YAEF,OAAO,yBAAyB,CAAC;QACnC,CAAC,CAAC,CAAC;QAEH,OAAO,IAAA,+BAAqB,EAAC,OAAO,EAAE,kBAAkB,CAAC,CAAC,MAAM,EAAE,WAAW,EAAE,UAAU,CAAC,CAAC;IAC7F,CAAC,CAAC;AACJ,CAAC"}
@@ -1,2 +0,0 @@
1
- import { AsyncApiOperationOptions } from '../interface';
2
- export declare function AsyncApiOperation(...options: AsyncApiOperationOptions[]): MethodDecorator;
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AsyncApiOperation = AsyncApiOperation;
4
- const asyncapi_constants_1 = require("../asyncapi.constants");
5
- const asyncapi_operation_for_meta_key_decorator_1 = require("./asyncapi-operation-for-meta-key.decorator");
6
- function AsyncApiOperation(...options) {
7
- return (0, asyncapi_operation_for_meta_key_decorator_1.AsyncApiOperationForMetaKey)(asyncapi_constants_1.DECORATORS.AsyncApiOperation, options);
8
- }
9
- //# sourceMappingURL=asyncapi-operation.decorator.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"asyncapi-operation.decorator.js","sourceRoot":"","sources":["../../../src/decorators/asyncapi-operation.decorator.ts"],"names":[],"mappings":";;AAIA,8CAEC;AAND,8DAAmD;AAEnD,2GAA0F;AAE1F,SAAgB,iBAAiB,CAAC,GAAG,OAAmC;IACtE,OAAO,IAAA,uEAA2B,EAAC,+BAAU,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAC;AAC5E,CAAC"}
@@ -1,2 +0,0 @@
1
- import { AsyncApiSpecificOperationOptions } from '../interface';
2
- export declare function AsyncApiPub(...specificOperationOptions: AsyncApiSpecificOperationOptions[]): MethodDecorator;
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AsyncApiPub = AsyncApiPub;
4
- const asyncapi_constants_1 = require("../asyncapi.constants");
5
- const asyncapi_operation_for_meta_key_decorator_1 = require("./asyncapi-operation-for-meta-key.decorator");
6
- function AsyncApiPub(...specificOperationOptions) {
7
- const options = specificOperationOptions.map((i) => (Object.assign(Object.assign({}, i), { type: 'pub' })));
8
- return (0, asyncapi_operation_for_meta_key_decorator_1.AsyncApiOperationForMetaKey)(asyncapi_constants_1.DECORATORS.AsyncApiPub, options);
9
- }
10
- //# sourceMappingURL=asyncapi-pub.decorator.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"asyncapi-pub.decorator.js","sourceRoot":"","sources":["../../../src/decorators/asyncapi-pub.decorator.ts"],"names":[],"mappings":";;AAIA,kCAMC;AAVD,8DAAmD;AAEnD,2GAA0F;AAE1F,SAAgB,WAAW,CAAC,GAAG,wBAA4D;IACzF,MAAM,OAAO,GAA+B,wBAAwB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,iCAC3E,CAAC,KACJ,IAAI,EAAE,KAAK,IACX,CAAC,CAAC;IACJ,OAAO,IAAA,uEAA2B,EAAC,+BAAU,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;AACtE,CAAC"}
@@ -1 +0,0 @@
1
- export declare function AsyncApi(): MethodDecorator & ClassDecorator;
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AsyncApi = AsyncApi;
4
- const helpers_1 = require("@nestjs/swagger/dist/decorators/helpers");
5
- const asyncapi_constants_1 = require("../asyncapi.constants");
6
- function AsyncApi() {
7
- return (0, helpers_1.createMixedDecorator)(asyncapi_constants_1.DECORATORS.AsyncApiClass, true);
8
- }
9
- //# sourceMappingURL=asyncapi-service.decorator.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"asyncapi-service.decorator.js","sourceRoot":"","sources":["../../../src/decorators/asyncapi-service.decorator.ts"],"names":[],"mappings":";;AAMA,4BAEC;AARD,qEAA+E;AAC/E,8DAAmD;AAKnD,SAAgB,QAAQ;IACtB,OAAO,IAAA,8BAAoB,EAAC,+BAAU,CAAC,aAAa,EAAE,IAAI,CAAC,CAAC;AAC9D,CAAC"}
@@ -1,2 +0,0 @@
1
- import { AsyncApiSpecificOperationOptions } from '../interface';
2
- export declare function AsyncApiSub(...specificOperationOptions: AsyncApiSpecificOperationOptions[]): MethodDecorator;
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AsyncApiSub = AsyncApiSub;
4
- const asyncapi_constants_1 = require("../asyncapi.constants");
5
- const asyncapi_operation_for_meta_key_decorator_1 = require("./asyncapi-operation-for-meta-key.decorator");
6
- function AsyncApiSub(...specificOperationOptions) {
7
- const options = specificOperationOptions.map((i) => (Object.assign(Object.assign({}, i), { type: 'sub' })));
8
- return (0, asyncapi_operation_for_meta_key_decorator_1.AsyncApiOperationForMetaKey)(asyncapi_constants_1.DECORATORS.AsyncApiSub, options);
9
- }
10
- //# sourceMappingURL=asyncapi-sub.decorator.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"asyncapi-sub.decorator.js","sourceRoot":"","sources":["../../../src/decorators/asyncapi-sub.decorator.ts"],"names":[],"mappings":";;AAIA,kCAMC;AAVD,8DAAmD;AAEnD,2GAA0F;AAE1F,SAAgB,WAAW,CAAC,GAAG,wBAA4D;IACzF,MAAM,OAAO,GAA+B,wBAAwB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,iCAC3E,CAAC,KACJ,IAAI,EAAE,KAAK,IACX,CAAC,CAAC;IACJ,OAAO,IAAA,uEAA2B,EAAC,+BAAU,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;AACtE,CAAC"}
@@ -1,4 +0,0 @@
1
- export * from './asyncapi-service.decorator';
2
- export * from './asyncapi-operation.decorator';
3
- export * from './asyncapi-sub.decorator';
4
- export * from './asyncapi-pub.decorator';
@@ -1,21 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./asyncapi-service.decorator"), exports);
18
- __exportStar(require("./asyncapi-operation.decorator"), exports);
19
- __exportStar(require("./asyncapi-sub.decorator"), exports);
20
- __exportStar(require("./asyncapi-pub.decorator"), exports);
21
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/decorators/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+DAA6C;AAC7C,iEAA+C;AAC/C,2DAAyC;AACzC,2DAAyC"}
@@ -1,5 +0,0 @@
1
- import { Type } from '@nestjs/common';
2
- export declare const asyncApiClassAnnotationLabels: any[];
3
- export declare const exploreAsyncapiClassMetadata: (metatype: Type<unknown>) => any;
4
- export declare const exploreControllerMetadata: (metatype: Type<unknown>) => any;
5
- export declare const exploreGatewayMetadata: (metatype: Type<unknown>) => any;
@@ -1,27 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.exploreGatewayMetadata = exports.exploreControllerMetadata = exports.exploreAsyncapiClassMetadata = exports.asyncApiClassAnnotationLabels = void 0;
4
- const constants_1 = require("@nestjs/common/constants");
5
- const asyncapi_constants_1 = require("../asyncapi.constants");
6
- let GATEWAY_METADATA;
7
- try {
8
- const wsConstants = require('@nestjs/websockets/constants');
9
- GATEWAY_METADATA = wsConstants.GATEWAY_METADATA;
10
- }
11
- catch (_a) {
12
- GATEWAY_METADATA = '__gateway__';
13
- }
14
- exports.asyncApiClassAnnotationLabels = [asyncapi_constants_1.DECORATORS.AsyncApiClass, constants_1.CONTROLLER_WATERMARK, GATEWAY_METADATA];
15
- const exploreAsyncapiClassMetadata = (metatype) => {
16
- return Reflect.getMetadata(asyncapi_constants_1.DECORATORS.AsyncApiClass, metatype);
17
- };
18
- exports.exploreAsyncapiClassMetadata = exploreAsyncapiClassMetadata;
19
- const exploreControllerMetadata = (metatype) => {
20
- return Reflect.getMetadata(constants_1.CONTROLLER_WATERMARK, metatype);
21
- };
22
- exports.exploreControllerMetadata = exploreControllerMetadata;
23
- const exploreGatewayMetadata = (metatype) => {
24
- return Reflect.getMetadata(GATEWAY_METADATA, metatype);
25
- };
26
- exports.exploreGatewayMetadata = exploreGatewayMetadata;
27
- //# sourceMappingURL=asyncapi-class.explorer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"asyncapi-class.explorer.js","sourceRoot":"","sources":["../../../src/explorers/asyncapi-class.explorer.ts"],"names":[],"mappings":";;;AACA,wDAAgE;AAChE,8DAAmD;AAEnD,IAAI,gBAAgB,CAAC;AACrB,IAAI,CAAC;IAEH,MAAM,WAAW,GAAG,OAAO,CAAC,8BAA8B,CAAC,CAAC;IAC5D,gBAAgB,GAAG,WAAW,CAAC,gBAAgB,CAAC;AAClD,CAAC;AAAC,WAAM,CAAC;IACP,gBAAgB,GAAG,aAAa,CAAC;AACnC,CAAC;AAEY,QAAA,6BAA6B,GAAG,CAAC,+BAAU,CAAC,aAAa,EAAE,gCAAoB,EAAE,gBAAgB,CAAC,CAAC;AAEzG,MAAM,4BAA4B,GAAG,CAAC,QAAuB,EAAE,EAAE;IACtE,OAAO,OAAO,CAAC,WAAW,CAAC,+BAAU,CAAC,aAAa,EAAE,QAAQ,CAAC,CAAC;AACjE,CAAC,CAAC;AAFW,QAAA,4BAA4B,gCAEvC;AAEK,MAAM,yBAAyB,GAAG,CAAC,QAAuB,EAAE,EAAE;IACnE,OAAO,OAAO,CAAC,WAAW,CAAC,gCAAoB,EAAE,QAAQ,CAAC,CAAC;AAC7D,CAAC,CAAC;AAFW,QAAA,yBAAyB,6BAEpC;AAEK,MAAM,sBAAsB,GAAG,CAAC,QAAuB,EAAE,EAAE;IAChE,OAAO,OAAO,CAAC,WAAW,CAAC,gBAAgB,EAAE,QAAQ,CAAC,CAAC;AACzD,CAAC,CAAC;AAFW,QAAA,sBAAsB,0BAEjC"}
@@ -1,17 +0,0 @@
1
- import { Type } from '@nestjs/common';
2
- import { SchemaObject } from '@nestjs/swagger/dist/interfaces/open-api-spec.interface';
3
- export declare const exploreAsyncApiOperationMetadata: (schemas: Record<string, SchemaObject>, _instance: object, _prototype: Type<unknown>, method: object) => {
4
- [x: string]: string | {
5
- channel: undefined;
6
- type: undefined;
7
- operationId?: string;
8
- summary?: string;
9
- description?: string;
10
- tags?: import("../interface").AsyncTagObject[];
11
- externalDocs?: import("../interface").ExternalDocumentationObject;
12
- bindings?: Record<string, import("../binding").KafkaOperationBinding | import("../binding").AmqpOperationBinding>;
13
- traits?: Record<string, import("../interface").AsyncOperationTraitObject>;
14
- message?: import("../interface").AsyncOperationMessage;
15
- };
16
- channel: string;
17
- }[];
@@ -1,26 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.exploreAsyncApiOperationMetadata = void 0;
4
- const asyncapi_constants_1 = require("../asyncapi.constants");
5
- const services_1 = require("../services");
6
- const operationObjectFactory = new services_1.OperationObjectFactory();
7
- const exploreAsyncApiOperationMetadata = (schemas, _instance, _prototype, method) => {
8
- const metadataOperations = Reflect.getMetadata(asyncapi_constants_1.DECORATORS.AsyncApiOperation, method);
9
- const metadataSubs = Reflect.getMetadata(asyncapi_constants_1.DECORATORS.AsyncApiSub, method);
10
- const metadataPubs = Reflect.getMetadata(asyncapi_constants_1.DECORATORS.AsyncApiPub, method);
11
- const metadataCombined = [
12
- ...(metadataOperations ? Object.values(metadataOperations) : []),
13
- ...(metadataSubs ? Object.values(metadataSubs) : []),
14
- ...(metadataPubs ? Object.values(metadataPubs) : []),
15
- ];
16
- return metadataCombined.map((option) => {
17
- const { channel, type } = option;
18
- const methodTypeData = Object.assign(Object.assign(Object.assign({}, option), operationObjectFactory.create(option, ['application/json'], schemas)), { channel: undefined, type: undefined });
19
- return {
20
- channel,
21
- [type]: methodTypeData,
22
- };
23
- });
24
- };
25
- exports.exploreAsyncApiOperationMetadata = exploreAsyncApiOperationMetadata;
26
- //# sourceMappingURL=asyncapi-operation.explorer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"asyncapi-operation.explorer.js","sourceRoot":"","sources":["../../../src/explorers/asyncapi-operation.explorer.ts"],"names":[],"mappings":";;;AAEA,8DAAmD;AAEnD,0CAAqD;AAErD,MAAM,sBAAsB,GAAG,IAAI,iCAAsB,EAAE,CAAC;AAErD,MAAM,gCAAgC,GAAG,CAC9C,OAAqC,EACrC,SAAiB,EACjB,UAAyB,EACzB,MAAc,EACd,EAAE;IACF,MAAM,kBAAkB,GAAkC,OAAO,CAAC,WAAW,CAAC,+BAAU,CAAC,iBAAiB,EAAE,MAAM,CAAC,CAAC;IACpH,MAAM,YAAY,GAAkC,OAAO,CAAC,WAAW,CAAC,+BAAU,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC;IACxG,MAAM,YAAY,GAAkC,OAAO,CAAC,WAAW,CAAC,+BAAU,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC;IAExG,MAAM,gBAAgB,GAAG;QACvB,GAAG,CAAC,kBAAkB,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QAChE,GAAG,CAAC,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QACpD,GAAG,CAAC,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;KACrD,CAAC;IAEF,OAAO,gBAAgB,CAAC,GAAG,CAAC,CAAC,MAAmC,EAAE,EAAE;QAClE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,MAAM,CAAC;QAEjC,MAAM,cAAc,iDACf,MAAM,GACN,sBAAsB,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,kBAAkB,CAAC,EAAE,OAAO,CAAC,KACvE,OAAO,EAAE,SAAS,EAClB,IAAI,EAAE,SAAS,GAChB,CAAC;QAEF,OAAO;YACL,OAAO;YACP,CAAC,IAAI,CAAC,EAAE,cAAc;SACvB,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AA/BW,QAAA,gCAAgC,oCA+B3C"}
@@ -1,2 +0,0 @@
1
- export * from './asyncapi-operation.explorer';
2
- export * from './asyncapi-class.explorer';
@@ -1,19 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./asyncapi-operation.explorer"), exports);
18
- __exportStar(require("./asyncapi-class.explorer"), exports);
19
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/explorers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gEAA8C;AAC9C,4DAA0C"}