@flowcore/data-pump 0.1.2

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 (359) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/README.md +28 -0
  3. package/esm/_dnt.shims.d.ts +9 -0
  4. package/esm/_dnt.shims.d.ts.map +1 -0
  5. package/esm/_dnt.shims.js +64 -0
  6. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/api-key/api-key.create.d.ts +46 -0
  7. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/api-key/api-key.create.d.ts.map +1 -0
  8. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/api-key/api-key.create.js +94 -0
  9. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/api-key/api-key.delete.d.ts +28 -0
  10. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/api-key/api-key.delete.d.ts.map +1 -0
  11. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/api-key/api-key.delete.js +60 -0
  12. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/api-key/api-key.list.d.ts +27 -0
  13. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/api-key/api-key.list.d.ts.map +1 -0
  14. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/api-key/api-key.list.js +58 -0
  15. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/data-core/data-core.create.d.ts +43 -0
  16. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/data-core/data-core.create.d.ts.map +1 -0
  17. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/data-core/data-core.create.js +44 -0
  18. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/data-core/data-core.delete-request.d.ts +37 -0
  19. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/data-core/data-core.delete-request.d.ts.map +1 -0
  20. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/data-core/data-core.delete-request.js +94 -0
  21. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/data-core/data-core.exists.d.ts +37 -0
  22. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/data-core/data-core.exists.d.ts.map +1 -0
  23. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/data-core/data-core.exists.js +33 -0
  24. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/data-core/data-core.fetch.d.ts +55 -0
  25. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/data-core/data-core.fetch.d.ts.map +1 -0
  26. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/data-core/data-core.fetch.js +59 -0
  27. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/data-core/data-core.list.d.ts +33 -0
  28. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/data-core/data-core.list.d.ts.map +1 -0
  29. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/data-core/data-core.list.js +40 -0
  30. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/data-core/data-core.update.d.ts +41 -0
  31. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/data-core/data-core.update.d.ts.map +1 -0
  32. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/data-core/data-core.update.js +43 -0
  33. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/event-type/event-type.create.d.ts +39 -0
  34. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/event-type/event-type.create.d.ts.map +1 -0
  35. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/event-type/event-type.create.js +44 -0
  36. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/event-type/event-type.delete-request.d.ts +41 -0
  37. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/event-type/event-type.delete-request.d.ts.map +1 -0
  38. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/event-type/event-type.delete-request.js +107 -0
  39. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/event-type/event-type.exists.d.ts +37 -0
  40. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/event-type/event-type.exists.d.ts.map +1 -0
  41. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/event-type/event-type.exists.js +33 -0
  42. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/event-type/event-type.fetch.d.ts +49 -0
  43. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/event-type/event-type.fetch.d.ts.map +1 -0
  44. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/event-type/event-type.fetch.js +59 -0
  45. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/event-type/event-type.list.d.ts +31 -0
  46. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/event-type/event-type.list.d.ts.map +1 -0
  47. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/event-type/event-type.list.js +36 -0
  48. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/event-type/event-type.truncate-request.d.ts +41 -0
  49. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/event-type/event-type.truncate-request.d.ts.map +1 -0
  50. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/event-type/event-type.truncate-request.js +107 -0
  51. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/event-type/event-type.update.d.ts +37 -0
  52. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/event-type/event-type.update.d.ts.map +1 -0
  53. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/event-type/event-type.update.js +39 -0
  54. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/events/events.fetch-time-buckets-by-names.d.ts +53 -0
  55. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/events/events.fetch-time-buckets-by-names.d.ts.map +1 -0
  56. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/events/events.fetch-time-buckets-by-names.js +41 -0
  57. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/events/events.fetch.d.ts +58 -0
  58. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/events/events.fetch.d.ts.map +1 -0
  59. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/events/events.fetch.js +54 -0
  60. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/flow-type/flow-type.create.d.ts +39 -0
  61. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/flow-type/flow-type.create.d.ts.map +1 -0
  62. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/flow-type/flow-type.create.js +44 -0
  63. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/flow-type/flow-type.delete-request.d.ts +54 -0
  64. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/flow-type/flow-type.delete-request.d.ts.map +1 -0
  65. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/flow-type/flow-type.delete-request.js +127 -0
  66. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/flow-type/flow-type.exists.d.ts +39 -0
  67. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/flow-type/flow-type.exists.d.ts.map +1 -0
  68. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/flow-type/flow-type.exists.js +33 -0
  69. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/flow-type/flow-type.fetch.d.ts +55 -0
  70. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/flow-type/flow-type.fetch.d.ts.map +1 -0
  71. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/flow-type/flow-type.fetch.js +59 -0
  72. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/flow-type/flow-type.list.d.ts +31 -0
  73. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/flow-type/flow-type.list.d.ts.map +1 -0
  74. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/flow-type/flow-type.list.js +36 -0
  75. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/flow-type/flow-type.update.d.ts +37 -0
  76. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/flow-type/flow-type.update.d.ts.map +1 -0
  77. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/flow-type/flow-type.update.js +39 -0
  78. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/index.d.ts +33 -0
  79. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/index.d.ts.map +1 -0
  80. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/index.js +40 -0
  81. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/secret/secret.create.d.ts +30 -0
  82. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/secret/secret.create.d.ts.map +1 -0
  83. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/secret/secret.create.js +60 -0
  84. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/secret/secret.delete.d.ts +28 -0
  85. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/secret/secret.delete.d.ts.map +1 -0
  86. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/secret/secret.delete.js +60 -0
  87. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/secret/secret.list.d.ts +26 -0
  88. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/secret/secret.list.d.ts.map +1 -0
  89. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/secret/secret.list.js +63 -0
  90. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/tenant/tenant.fetch.d.ts +42 -0
  91. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/tenant/tenant.fetch.d.ts.map +1 -0
  92. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/tenant/tenant.fetch.js +79 -0
  93. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/tenant/tenant.list.d.ts +20 -0
  94. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/tenant/tenant.list.d.ts.map +1 -0
  95. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/tenant/tenant.list.js +65 -0
  96. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/variable/variable.create.d.ts +31 -0
  97. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/variable/variable.create.d.ts.map +1 -0
  98. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/variable/variable.create.js +66 -0
  99. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/variable/variable.delete.d.ts +28 -0
  100. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/variable/variable.delete.d.ts.map +1 -0
  101. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/variable/variable.delete.js +63 -0
  102. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/variable/variable.list.d.ts +27 -0
  103. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/variable/variable.list.d.ts.map +1 -0
  104. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/variable/variable.list.js +69 -0
  105. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/common/command.d.ts +85 -0
  106. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/common/command.d.ts.map +1 -0
  107. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/common/command.js +129 -0
  108. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/common/flowcore-client.d.ts +56 -0
  109. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/common/flowcore-client.d.ts.map +1 -0
  110. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/common/flowcore-client.js +126 -0
  111. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/common/notification-client.d.ts +90 -0
  112. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/common/notification-client.d.ts.map +1 -0
  113. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/common/notification-client.js +247 -0
  114. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/contracts/api-key.d.ts +14 -0
  115. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/contracts/api-key.d.ts.map +1 -0
  116. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/contracts/api-key.js +9 -0
  117. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/contracts/data-core.d.ts +41 -0
  118. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/contracts/data-core.d.ts.map +1 -0
  119. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/contracts/data-core.js +42 -0
  120. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/contracts/event-type.d.ts +37 -0
  121. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/contracts/event-type.d.ts.map +1 -0
  122. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/contracts/event-type.js +39 -0
  123. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/contracts/event.d.ts +20 -0
  124. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/contracts/event.d.ts.map +1 -0
  125. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/contracts/event.js +15 -0
  126. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/contracts/flow-type.d.ts +34 -0
  127. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/contracts/flow-type.d.ts.map +1 -0
  128. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/contracts/flow-type.js +34 -0
  129. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/contracts/index.d.ts +6 -0
  130. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/contracts/index.d.ts.map +1 -0
  131. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/contracts/index.js +1 -0
  132. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/contracts/tenant.d.ts +50 -0
  133. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/contracts/tenant.d.ts.map +1 -0
  134. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/contracts/tenant.js +33 -0
  135. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/contracts/variable.d.ts +13 -0
  136. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/contracts/variable.d.ts.map +1 -0
  137. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/contracts/variable.js +8 -0
  138. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/exceptions/client-error.d.ts +9 -0
  139. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/exceptions/client-error.d.ts.map +1 -0
  140. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/exceptions/client-error.js +20 -0
  141. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/exceptions/command-error.d.ts +7 -0
  142. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/exceptions/command-error.d.ts.map +1 -0
  143. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/exceptions/command-error.js +8 -0
  144. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/exceptions/index.d.ts +5 -0
  145. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/exceptions/index.d.ts.map +1 -0
  146. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/exceptions/index.js +4 -0
  147. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/exceptions/invalid-response.d.ts +8 -0
  148. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/exceptions/invalid-response.d.ts.map +1 -0
  149. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/exceptions/invalid-response.js +15 -0
  150. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/exceptions/not-found.d.ts +7 -0
  151. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/exceptions/not-found.d.ts.map +1 -0
  152. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/exceptions/not-found.js +8 -0
  153. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/mod.d.ts +8 -0
  154. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/mod.d.ts.map +1 -0
  155. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/mod.js +7 -0
  156. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/utils/logger.d.ts +8 -0
  157. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/utils/logger.d.ts.map +1 -0
  158. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/utils/logger.js +14 -0
  159. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/utils/parse-response-helper.d.ts +6 -0
  160. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/utils/parse-response-helper.d.ts.map +1 -0
  161. package/esm/deps/jsr.io/@flowcore/sdk/1.11.4/src/utils/parse-response-helper.js +16 -0
  162. package/esm/lib/data-pump-client.d.ts +30 -0
  163. package/esm/lib/data-pump-client.d.ts.map +1 -0
  164. package/esm/lib/data-pump-client.js +52 -0
  165. package/esm/lib/data-pump.d.ts +75 -0
  166. package/esm/lib/data-pump.d.ts.map +1 -0
  167. package/esm/lib/data-pump.js +364 -0
  168. package/esm/lib/nats-notifier.d.ts +18 -0
  169. package/esm/lib/nats-notifier.d.ts.map +1 -0
  170. package/esm/lib/nats-notifier.js +88 -0
  171. package/esm/lib/time-uuid.d.ts +13 -0
  172. package/esm/lib/time-uuid.d.ts.map +1 -0
  173. package/esm/lib/time-uuid.js +36 -0
  174. package/esm/lib/ws-notifier.d.ts +28 -0
  175. package/esm/lib/ws-notifier.d.ts.map +1 -0
  176. package/esm/lib/ws-notifier.js +87 -0
  177. package/esm/mod.d.ts +3 -0
  178. package/esm/mod.d.ts.map +1 -0
  179. package/esm/mod.js +2 -0
  180. package/esm/package.json +3 -0
  181. package/package.json +38 -0
  182. package/script/_dnt.shims.d.ts +9 -0
  183. package/script/_dnt.shims.d.ts.map +1 -0
  184. package/script/_dnt.shims.js +72 -0
  185. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/api-key/api-key.create.d.ts +46 -0
  186. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/api-key/api-key.create.d.ts.map +1 -0
  187. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/api-key/api-key.create.js +98 -0
  188. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/api-key/api-key.delete.d.ts +28 -0
  189. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/api-key/api-key.delete.d.ts.map +1 -0
  190. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/api-key/api-key.delete.js +64 -0
  191. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/api-key/api-key.list.d.ts +27 -0
  192. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/api-key/api-key.list.d.ts.map +1 -0
  193. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/api-key/api-key.list.js +62 -0
  194. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/data-core/data-core.create.d.ts +43 -0
  195. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/data-core/data-core.create.d.ts.map +1 -0
  196. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/data-core/data-core.create.js +48 -0
  197. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/data-core/data-core.delete-request.d.ts +37 -0
  198. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/data-core/data-core.delete-request.d.ts.map +1 -0
  199. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/data-core/data-core.delete-request.js +98 -0
  200. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/data-core/data-core.exists.d.ts +37 -0
  201. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/data-core/data-core.exists.d.ts.map +1 -0
  202. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/data-core/data-core.exists.js +37 -0
  203. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/data-core/data-core.fetch.d.ts +55 -0
  204. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/data-core/data-core.fetch.d.ts.map +1 -0
  205. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/data-core/data-core.fetch.js +63 -0
  206. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/data-core/data-core.list.d.ts +33 -0
  207. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/data-core/data-core.list.d.ts.map +1 -0
  208. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/data-core/data-core.list.js +44 -0
  209. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/data-core/data-core.update.d.ts +41 -0
  210. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/data-core/data-core.update.d.ts.map +1 -0
  211. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/data-core/data-core.update.js +47 -0
  212. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/event-type/event-type.create.d.ts +39 -0
  213. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/event-type/event-type.create.d.ts.map +1 -0
  214. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/event-type/event-type.create.js +48 -0
  215. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/event-type/event-type.delete-request.d.ts +41 -0
  216. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/event-type/event-type.delete-request.d.ts.map +1 -0
  217. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/event-type/event-type.delete-request.js +111 -0
  218. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/event-type/event-type.exists.d.ts +37 -0
  219. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/event-type/event-type.exists.d.ts.map +1 -0
  220. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/event-type/event-type.exists.js +37 -0
  221. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/event-type/event-type.fetch.d.ts +49 -0
  222. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/event-type/event-type.fetch.d.ts.map +1 -0
  223. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/event-type/event-type.fetch.js +63 -0
  224. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/event-type/event-type.list.d.ts +31 -0
  225. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/event-type/event-type.list.d.ts.map +1 -0
  226. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/event-type/event-type.list.js +40 -0
  227. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/event-type/event-type.truncate-request.d.ts +41 -0
  228. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/event-type/event-type.truncate-request.d.ts.map +1 -0
  229. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/event-type/event-type.truncate-request.js +111 -0
  230. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/event-type/event-type.update.d.ts +37 -0
  231. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/event-type/event-type.update.d.ts.map +1 -0
  232. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/event-type/event-type.update.js +43 -0
  233. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/events/events.fetch-time-buckets-by-names.d.ts +53 -0
  234. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/events/events.fetch-time-buckets-by-names.d.ts.map +1 -0
  235. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/events/events.fetch-time-buckets-by-names.js +45 -0
  236. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/events/events.fetch.d.ts +58 -0
  237. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/events/events.fetch.d.ts.map +1 -0
  238. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/events/events.fetch.js +58 -0
  239. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/flow-type/flow-type.create.d.ts +39 -0
  240. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/flow-type/flow-type.create.d.ts.map +1 -0
  241. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/flow-type/flow-type.create.js +48 -0
  242. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/flow-type/flow-type.delete-request.d.ts +54 -0
  243. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/flow-type/flow-type.delete-request.d.ts.map +1 -0
  244. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/flow-type/flow-type.delete-request.js +131 -0
  245. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/flow-type/flow-type.exists.d.ts +39 -0
  246. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/flow-type/flow-type.exists.d.ts.map +1 -0
  247. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/flow-type/flow-type.exists.js +37 -0
  248. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/flow-type/flow-type.fetch.d.ts +55 -0
  249. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/flow-type/flow-type.fetch.d.ts.map +1 -0
  250. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/flow-type/flow-type.fetch.js +63 -0
  251. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/flow-type/flow-type.list.d.ts +31 -0
  252. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/flow-type/flow-type.list.d.ts.map +1 -0
  253. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/flow-type/flow-type.list.js +40 -0
  254. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/flow-type/flow-type.update.d.ts +37 -0
  255. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/flow-type/flow-type.update.d.ts.map +1 -0
  256. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/flow-type/flow-type.update.js +43 -0
  257. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/index.d.ts +33 -0
  258. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/index.d.ts.map +1 -0
  259. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/index.js +56 -0
  260. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/secret/secret.create.d.ts +30 -0
  261. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/secret/secret.create.d.ts.map +1 -0
  262. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/secret/secret.create.js +64 -0
  263. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/secret/secret.delete.d.ts +28 -0
  264. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/secret/secret.delete.d.ts.map +1 -0
  265. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/secret/secret.delete.js +64 -0
  266. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/secret/secret.list.d.ts +26 -0
  267. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/secret/secret.list.d.ts.map +1 -0
  268. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/secret/secret.list.js +67 -0
  269. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/tenant/tenant.fetch.d.ts +42 -0
  270. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/tenant/tenant.fetch.d.ts.map +1 -0
  271. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/tenant/tenant.fetch.js +83 -0
  272. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/tenant/tenant.list.d.ts +20 -0
  273. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/tenant/tenant.list.d.ts.map +1 -0
  274. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/tenant/tenant.list.js +69 -0
  275. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/variable/variable.create.d.ts +31 -0
  276. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/variable/variable.create.d.ts.map +1 -0
  277. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/variable/variable.create.js +70 -0
  278. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/variable/variable.delete.d.ts +28 -0
  279. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/variable/variable.delete.d.ts.map +1 -0
  280. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/variable/variable.delete.js +67 -0
  281. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/variable/variable.list.d.ts +27 -0
  282. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/variable/variable.list.d.ts.map +1 -0
  283. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/variable/variable.list.js +73 -0
  284. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/common/command.d.ts +85 -0
  285. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/common/command.d.ts.map +1 -0
  286. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/common/command.js +134 -0
  287. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/common/flowcore-client.d.ts +56 -0
  288. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/common/flowcore-client.d.ts.map +1 -0
  289. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/common/flowcore-client.js +130 -0
  290. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/common/notification-client.d.ts +90 -0
  291. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/common/notification-client.d.ts.map +1 -0
  292. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/common/notification-client.js +274 -0
  293. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/contracts/api-key.d.ts +14 -0
  294. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/contracts/api-key.d.ts.map +1 -0
  295. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/contracts/api-key.js +12 -0
  296. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/contracts/data-core.d.ts +41 -0
  297. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/contracts/data-core.d.ts.map +1 -0
  298. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/contracts/data-core.js +46 -0
  299. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/contracts/event-type.d.ts +37 -0
  300. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/contracts/event-type.d.ts.map +1 -0
  301. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/contracts/event-type.js +43 -0
  302. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/contracts/event.d.ts +20 -0
  303. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/contracts/event.d.ts.map +1 -0
  304. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/contracts/event.js +18 -0
  305. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/contracts/flow-type.d.ts +34 -0
  306. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/contracts/flow-type.d.ts.map +1 -0
  307. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/contracts/flow-type.js +38 -0
  308. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/contracts/index.d.ts +6 -0
  309. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/contracts/index.d.ts.map +1 -0
  310. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/contracts/index.js +2 -0
  311. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/contracts/tenant.d.ts +50 -0
  312. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/contracts/tenant.d.ts.map +1 -0
  313. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/contracts/tenant.js +37 -0
  314. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/contracts/variable.d.ts +13 -0
  315. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/contracts/variable.d.ts.map +1 -0
  316. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/contracts/variable.js +11 -0
  317. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/exceptions/client-error.d.ts +9 -0
  318. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/exceptions/client-error.d.ts.map +1 -0
  319. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/exceptions/client-error.js +24 -0
  320. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/exceptions/command-error.d.ts +7 -0
  321. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/exceptions/command-error.d.ts.map +1 -0
  322. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/exceptions/command-error.js +12 -0
  323. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/exceptions/index.d.ts +5 -0
  324. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/exceptions/index.d.ts.map +1 -0
  325. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/exceptions/index.js +20 -0
  326. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/exceptions/invalid-response.d.ts +8 -0
  327. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/exceptions/invalid-response.d.ts.map +1 -0
  328. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/exceptions/invalid-response.js +19 -0
  329. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/exceptions/not-found.d.ts +7 -0
  330. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/exceptions/not-found.d.ts.map +1 -0
  331. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/exceptions/not-found.js +12 -0
  332. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/mod.d.ts +8 -0
  333. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/mod.d.ts.map +1 -0
  334. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/mod.js +23 -0
  335. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/utils/logger.d.ts +8 -0
  336. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/utils/logger.d.ts.map +1 -0
  337. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/utils/logger.js +17 -0
  338. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/utils/parse-response-helper.d.ts +6 -0
  339. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/utils/parse-response-helper.d.ts.map +1 -0
  340. package/script/deps/jsr.io/@flowcore/sdk/1.11.4/src/utils/parse-response-helper.js +20 -0
  341. package/script/lib/data-pump-client.d.ts +30 -0
  342. package/script/lib/data-pump-client.d.ts.map +1 -0
  343. package/script/lib/data-pump-client.js +58 -0
  344. package/script/lib/data-pump.d.ts +75 -0
  345. package/script/lib/data-pump.d.ts.map +1 -0
  346. package/script/lib/data-pump.js +368 -0
  347. package/script/lib/nats-notifier.d.ts +18 -0
  348. package/script/lib/nats-notifier.d.ts.map +1 -0
  349. package/script/lib/nats-notifier.js +115 -0
  350. package/script/lib/time-uuid.d.ts +13 -0
  351. package/script/lib/time-uuid.d.ts.map +1 -0
  352. package/script/lib/time-uuid.js +40 -0
  353. package/script/lib/ws-notifier.d.ts +28 -0
  354. package/script/lib/ws-notifier.d.ts.map +1 -0
  355. package/script/lib/ws-notifier.js +94 -0
  356. package/script/mod.d.ts +3 -0
  357. package/script/mod.d.ts.map +1 -0
  358. package/script/mod.js +18 -0
  359. package/script/package.json +3 -0
@@ -0,0 +1,111 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EventTypeDeleteRequestCommand = void 0;
4
+ const typebox_1 = require("@sinclair/typebox");
5
+ const command_js_1 = require("../../common/command.js");
6
+ const command_error_js_1 = require("../../exceptions/command-error.js");
7
+ const parse_response_helper_js_1 = require("../../utils/parse-response-helper.js");
8
+ const not_found_js_1 = require("../../exceptions/not-found.js");
9
+ const event_type_exists_js_1 = require("./event-type.exists.js");
10
+ const graphQlQuery = `
11
+ mutation FLOWCORE_SDK_EVENT_TYPE_DELETE_REQUEST($eventTypeId: ID!) {
12
+ eventType(id: $eventTypeId) {
13
+ requestDelete {
14
+ deleting
15
+ }
16
+ }
17
+ }
18
+ `;
19
+ const responseSchema = typebox_1.Type.Object({
20
+ errors: typebox_1.Type.Optional(typebox_1.Type.Array(typebox_1.Type.Object({
21
+ message: typebox_1.Type.String(),
22
+ }))),
23
+ data: typebox_1.Type.Union([
24
+ typebox_1.Type.Object({
25
+ eventType: typebox_1.Type.Object({
26
+ requestDelete: typebox_1.Type.Union([
27
+ typebox_1.Type.Object({
28
+ deleting: typebox_1.Type.Boolean(),
29
+ }),
30
+ typebox_1.Type.Null(),
31
+ ]),
32
+ }),
33
+ }),
34
+ typebox_1.Type.Null(),
35
+ ]),
36
+ });
37
+ /**
38
+ * Request to delete a event type
39
+ */
40
+ class EventTypeDeleteRequestCommand extends command_js_1.GraphQlCommand {
41
+ /**
42
+ * Create a new event type delete request command
43
+ */
44
+ constructor(input) {
45
+ super({
46
+ ...input,
47
+ waitForDelete: input.waitForDelete ?? true,
48
+ });
49
+ /**
50
+ * Whether the command should retry on failure
51
+ */
52
+ Object.defineProperty(this, "retryOnFailure", {
53
+ enumerable: true,
54
+ configurable: true,
55
+ writable: true,
56
+ value: false
57
+ });
58
+ /**
59
+ * The allowed modes for the command
60
+ */
61
+ Object.defineProperty(this, "allowedModes", {
62
+ enumerable: true,
63
+ configurable: true,
64
+ writable: true,
65
+ value: ["bearer"]
66
+ });
67
+ }
68
+ /**
69
+ * Parse the response
70
+ */
71
+ parseResponse(response) {
72
+ const parsedResponse = (0, parse_response_helper_js_1.parseResponseHelper)(responseSchema, response);
73
+ if (parsedResponse.errors) {
74
+ throw new command_error_js_1.CommandError(this.constructor.name, parsedResponse.errors[0].message);
75
+ }
76
+ if (!parsedResponse.data?.eventType?.requestDelete) {
77
+ throw new not_found_js_1.NotFoundException("EventType", { id: this.input.eventTypeId });
78
+ }
79
+ return parsedResponse.data.eventType.requestDelete.deleting;
80
+ }
81
+ /**
82
+ * Get the body for the request
83
+ */
84
+ getBody() {
85
+ const { waitForDelete: _, ...rest } = this.input;
86
+ return {
87
+ query: graphQlQuery,
88
+ variables: rest,
89
+ };
90
+ }
91
+ /**
92
+ * Wait for the response (timeout: 25 seconds)
93
+ */
94
+ async processResponse(client, response) {
95
+ if (!this.input.waitForDelete) {
96
+ return response;
97
+ }
98
+ const start = Date.now();
99
+ while (Date.now() - start < 25_000) {
100
+ const response = await client.execute(new event_type_exists_js_1.EventTypeExistsCommand({
101
+ eventTypeId: this.input.eventTypeId,
102
+ }));
103
+ if (!response.exists) {
104
+ break;
105
+ }
106
+ await new Promise((resolve) => setTimeout(resolve, 100));
107
+ }
108
+ return response;
109
+ }
110
+ }
111
+ exports.EventTypeDeleteRequestCommand = EventTypeDeleteRequestCommand;
@@ -0,0 +1,37 @@
1
+ import { Command } from "../../common/command.js";
2
+ /**
3
+ * The input for the event type exists command
4
+ */
5
+ export interface EventTypeExistsInput {
6
+ /** The id of the event type */
7
+ eventTypeId: string;
8
+ }
9
+ /**
10
+ * The output for the event type exists command
11
+ */
12
+ export interface EventTypeExistsOutput {
13
+ /** Whether the event type exists */
14
+ exists: boolean;
15
+ }
16
+ /**
17
+ * Check if an event type exists
18
+ */
19
+ export declare class EventTypeExistsCommand extends Command<EventTypeExistsInput, EventTypeExistsOutput> {
20
+ /**
21
+ * Get the method
22
+ */
23
+ protected getMethod(): string;
24
+ /**
25
+ * Get the base url
26
+ */
27
+ protected getBaseUrl(): string;
28
+ /**
29
+ * Get the path
30
+ */
31
+ protected getPath(): string;
32
+ /**
33
+ * Parse the response
34
+ */
35
+ protected parseResponse(rawResponse: unknown): EventTypeExistsOutput;
36
+ }
37
+ //# sourceMappingURL=event-type.exists.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"event-type.exists.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/event-type/event-type.exists.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AAGjD;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,+BAA+B;IAC/B,WAAW,EAAE,MAAM,CAAA;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,oCAAoC;IACpC,MAAM,EAAE,OAAO,CAAA;CAChB;AAED;;GAEG;AACH,qBAAa,sBAAuB,SAAQ,OAAO,CAAC,oBAAoB,EAAE,qBAAqB,CAAC;IAC9F;;OAEG;cACgB,SAAS,IAAI,MAAM;IAItC;;OAEG;cACgB,UAAU,IAAI,MAAM;IAIvC;;OAEG;cACgB,OAAO,IAAI,MAAM;IAIpC;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,qBAAqB;CAI9E"}
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EventTypeExistsCommand = void 0;
4
+ const typebox_1 = require("@sinclair/typebox");
5
+ const command_js_1 = require("../../common/command.js");
6
+ const parse_response_helper_js_1 = require("../../utils/parse-response-helper.js");
7
+ /**
8
+ * Check if an event type exists
9
+ */
10
+ class EventTypeExistsCommand extends command_js_1.Command {
11
+ /**
12
+ * Get the method
13
+ */
14
+ getMethod() {
15
+ return "GET";
16
+ }
17
+ /**
18
+ * Get the base url
19
+ */
20
+ getBaseUrl() {
21
+ return "https://event-type-2.api.flowcore.io";
22
+ }
23
+ /**
24
+ * Get the path
25
+ */
26
+ getPath() {
27
+ return `/api/v1/event-types/${this.input.eventTypeId}/exists`;
28
+ }
29
+ /**
30
+ * Parse the response
31
+ */
32
+ parseResponse(rawResponse) {
33
+ const response = (0, parse_response_helper_js_1.parseResponseHelper)(typebox_1.Type.Object({ exists: typebox_1.Type.Boolean() }), rawResponse);
34
+ return response;
35
+ }
36
+ }
37
+ exports.EventTypeExistsCommand = EventTypeExistsCommand;
@@ -0,0 +1,49 @@
1
+ import { Command } from "../../common/command.js";
2
+ import { type EventType } from "../../contracts/event-type.js";
3
+ import type { ClientError } from "../../exceptions/client-error.js";
4
+ export interface EventTypeFetchByIdInput {
5
+ /** The id of the event type */
6
+ eventTypeId: string;
7
+ /** The id of the flow type */
8
+ flowTypeId?: never;
9
+ /** The name of the event type */
10
+ eventType?: never;
11
+ }
12
+ export interface EventTypeFetchByNameInput {
13
+ /** The id of the flow type */
14
+ flowTypeId: string;
15
+ /** The name of the event type */
16
+ eventType: string;
17
+ /** The id of the event type */
18
+ eventTypeId?: never;
19
+ }
20
+ /**
21
+ * The input for the event type fetch command
22
+ */
23
+ export type EventTypeFetchInput = EventTypeFetchByIdInput | EventTypeFetchByNameInput;
24
+ /**
25
+ * Fetch an event type
26
+ */
27
+ export declare class EventTypeFetchCommand extends Command<EventTypeFetchInput, EventType> {
28
+ /**
29
+ * Get the method
30
+ */
31
+ protected getMethod(): string;
32
+ /**
33
+ * Get the base url
34
+ */
35
+ protected getBaseUrl(): string;
36
+ /**
37
+ * Get the path
38
+ */
39
+ protected getPath(): string;
40
+ /**
41
+ * Parse the response
42
+ */
43
+ protected parseResponse(rawResponse: unknown): EventType;
44
+ /**
45
+ * Handle the client error
46
+ */
47
+ protected handleClientError(error: ClientError): void;
48
+ }
49
+ //# sourceMappingURL=event-type.fetch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"event-type.fetch.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/event-type/event-type.fetch.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AACjD,OAAO,EAAE,KAAK,SAAS,EAAmB,MAAM,+BAA+B,CAAA;AAG/E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AAEnE,MAAM,WAAW,uBAAuB;IACtC,+BAA+B;IAC/B,WAAW,EAAE,MAAM,CAAA;IACnB,8BAA8B;IAC9B,UAAU,CAAC,EAAE,KAAK,CAAA;IAClB,iCAAiC;IACjC,SAAS,CAAC,EAAE,KAAK,CAAA;CAClB;AAED,MAAM,WAAW,yBAAyB;IACxC,8BAA8B;IAC9B,UAAU,EAAE,MAAM,CAAA;IAClB,iCAAiC;IACjC,SAAS,EAAE,MAAM,CAAA;IACjB,+BAA+B;IAC/B,WAAW,CAAC,EAAE,KAAK,CAAA;CACpB;AAED;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,uBAAuB,GAAG,yBAAyB,CAAA;AAErF;;GAEG;AACH,qBAAa,qBAAsB,SAAQ,OAAO,CAAC,mBAAmB,EAAE,SAAS,CAAC;IAChF;;OAEG;cACgB,SAAS,IAAI,MAAM;IAItC;;OAEG;cACgB,UAAU,IAAI,MAAM;IAIvC;;OAEG;cACgB,OAAO,IAAI,MAAM;IAUpC;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,SAAS;IAYjE;;OAEG;cACgB,iBAAiB,CAAC,KAAK,EAAE,WAAW,GAAG,IAAI;CAQ/D"}
@@ -0,0 +1,63 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EventTypeFetchCommand = void 0;
4
+ const typebox_1 = require("@sinclair/typebox");
5
+ const command_js_1 = require("../../common/command.js");
6
+ const event_type_js_1 = require("../../contracts/event-type.js");
7
+ const not_found_js_1 = require("../../exceptions/not-found.js");
8
+ const parse_response_helper_js_1 = require("../../utils/parse-response-helper.js");
9
+ /**
10
+ * Fetch an event type
11
+ */
12
+ class EventTypeFetchCommand extends command_js_1.Command {
13
+ /**
14
+ * Get the method
15
+ */
16
+ getMethod() {
17
+ return "GET";
18
+ }
19
+ /**
20
+ * Get the base url
21
+ */
22
+ getBaseUrl() {
23
+ return "https://event-type-2.api.flowcore.io";
24
+ }
25
+ /**
26
+ * Get the path
27
+ */
28
+ getPath() {
29
+ if ("eventTypeId" in this.input) {
30
+ return `/api/v1/event-types/${this.input.eventTypeId}`;
31
+ }
32
+ const queryParams = new URLSearchParams();
33
+ queryParams.set("flowTypeId", this.input.flowTypeId);
34
+ queryParams.set("name", this.input.eventType);
35
+ return `/api/v1/event-types?${queryParams.toString()}`;
36
+ }
37
+ /**
38
+ * Parse the response
39
+ */
40
+ parseResponse(rawResponse) {
41
+ if ("eventTypeId" in this.input) {
42
+ const response = (0, parse_response_helper_js_1.parseResponseHelper)(event_type_js_1.EventTypeSchema, rawResponse);
43
+ return response;
44
+ }
45
+ const response = (0, parse_response_helper_js_1.parseResponseHelper)(typebox_1.Type.Array(event_type_js_1.EventTypeSchema), rawResponse);
46
+ if (response.length === 0) {
47
+ throw new not_found_js_1.NotFoundException("EventType", { name: this.input.eventType });
48
+ }
49
+ return response[0];
50
+ }
51
+ /**
52
+ * Handle the client error
53
+ */
54
+ handleClientError(error) {
55
+ if (error.status === 404) {
56
+ throw new not_found_js_1.NotFoundException("EventType", {
57
+ [this.input.eventTypeId ? "id" : "name"]: this.input.eventTypeId ?? this.input.eventType,
58
+ });
59
+ }
60
+ throw error;
61
+ }
62
+ }
63
+ exports.EventTypeFetchCommand = EventTypeFetchCommand;
@@ -0,0 +1,31 @@
1
+ import { Command } from "../../common/command.js";
2
+ import { type EventType } from "../../contracts/event-type.js";
3
+ /**
4
+ * The input for the event type list command
5
+ */
6
+ export interface EventTypeListInput {
7
+ /** The flow type id */
8
+ flowTypeId: string;
9
+ }
10
+ /**
11
+ * Fetch all event types for a flow type
12
+ */
13
+ export declare class EventTypeListCommand extends Command<EventTypeListInput, EventType[]> {
14
+ /**
15
+ * Get the method
16
+ */
17
+ protected getMethod(): string;
18
+ /**
19
+ * Get the base url
20
+ */
21
+ protected getBaseUrl(): string;
22
+ /**
23
+ * Get the path
24
+ */
25
+ protected getPath(): string;
26
+ /**
27
+ * Parse the response
28
+ */
29
+ protected parseResponse(rawResponse: unknown): EventType[];
30
+ }
31
+ //# sourceMappingURL=event-type.list.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"event-type.list.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/event-type/event-type.list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AAEjD,OAAO,EAAE,KAAK,SAAS,EAAmB,MAAM,+BAA+B,CAAA;AAG/E;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,uBAAuB;IACvB,UAAU,EAAE,MAAM,CAAA;CACnB;AAED;;GAEG;AACH,qBAAa,oBAAqB,SAAQ,OAAO,CAAC,kBAAkB,EAAE,SAAS,EAAE,CAAC;IAChF;;OAEG;cACgB,SAAS,IAAI,MAAM;IAItC;;OAEG;cACgB,UAAU,IAAI,MAAM;IAIvC;;OAEG;cACgB,OAAO,IAAI,MAAM;IAMpC;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,SAAS,EAAE;CAIpE"}
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EventTypeListCommand = void 0;
4
+ const command_js_1 = require("../../common/command.js");
5
+ const typebox_1 = require("@sinclair/typebox");
6
+ const event_type_js_1 = require("../../contracts/event-type.js");
7
+ const parse_response_helper_js_1 = require("../../utils/parse-response-helper.js");
8
+ /**
9
+ * Fetch all event types for a flow type
10
+ */
11
+ class EventTypeListCommand extends command_js_1.Command {
12
+ /**
13
+ * Get the method
14
+ */
15
+ getMethod() {
16
+ return "GET";
17
+ }
18
+ /**
19
+ * Get the base url
20
+ */
21
+ getBaseUrl() {
22
+ return "https://event-type-2.api.flowcore.io";
23
+ }
24
+ /**
25
+ * Get the path
26
+ */
27
+ getPath() {
28
+ const queryParams = new URLSearchParams();
29
+ queryParams.set("flowTypeId", this.input.flowTypeId);
30
+ return `/api/v1/event-types?${queryParams.toString()}`;
31
+ }
32
+ /**
33
+ * Parse the response
34
+ */
35
+ parseResponse(rawResponse) {
36
+ const response = (0, parse_response_helper_js_1.parseResponseHelper)(typebox_1.Type.Array(event_type_js_1.EventTypeSchema), rawResponse);
37
+ return response;
38
+ }
39
+ }
40
+ exports.EventTypeListCommand = EventTypeListCommand;
@@ -0,0 +1,41 @@
1
+ import { GraphQlCommand } from "../../common/command.js";
2
+ import type { FlowcoreClient } from "../../common/flowcore-client.js";
3
+ /**
4
+ * The input for the event type truncate request command
5
+ */
6
+ export interface EventTypeTruncateRequestInput {
7
+ /** The id of the event type */
8
+ eventTypeId: string;
9
+ /** Wait for the event type to be truncated (default: true) */
10
+ waitForTruncate?: boolean;
11
+ }
12
+ /**
13
+ * Request to truncate a event type
14
+ */
15
+ export declare class EventTypeTruncateRequestCommand extends GraphQlCommand<EventTypeTruncateRequestInput, boolean> {
16
+ /**
17
+ * Whether the command should retry on failure
18
+ */
19
+ protected retryOnFailure: boolean;
20
+ /**
21
+ * The allowed modes for the command
22
+ */
23
+ protected allowedModes: ("apiKey" | "bearer")[];
24
+ /**
25
+ * Create a new event type truncate request command
26
+ */
27
+ constructor(input: EventTypeTruncateRequestInput);
28
+ /**
29
+ * Parse the response
30
+ */
31
+ protected parseResponse(response: unknown): boolean;
32
+ /**
33
+ * Get the body for the request
34
+ */
35
+ protected getBody(): Record<string, unknown>;
36
+ /**
37
+ * Wait for the response (timeout: 25 seconds)
38
+ */
39
+ protected processResponse(client: FlowcoreClient, response: boolean): Promise<boolean>;
40
+ }
41
+ //# sourceMappingURL=event-type.truncate-request.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"event-type.truncate-request.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/event-type/event-type.truncate-request.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AAIxD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAGrE;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC5C,+BAA+B;IAC/B,WAAW,EAAE,MAAM,CAAA;IAEnB,8DAA8D;IAC9D,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B;AA+BD;;GAEG;AACH,qBAAa,+BAAgC,SAAQ,cAAc,CAAC,6BAA6B,EAAE,OAAO,CAAC;IACzG;;OAEG;IACH,UAAmB,cAAc,EAAE,OAAO,CAAQ;IAElD;;OAEG;IACH,UAAmB,YAAY,EAAE,CAAC,QAAQ,GAAG,QAAQ,CAAC,EAAE,CAAa;IAErE;;OAEG;gBACS,KAAK,EAAE,6BAA6B;IAOhD;;OAEG;cACgB,aAAa,CAAC,QAAQ,EAAE,OAAO,GAAG,OAAO;IAW5D;;OAEG;cACgB,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAQrD;;OAEG;cACsB,eAAe,CAAC,MAAM,EAAE,cAAc,EAAE,QAAQ,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;CAkBtG"}
@@ -0,0 +1,111 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EventTypeTruncateRequestCommand = void 0;
4
+ const typebox_1 = require("@sinclair/typebox");
5
+ const command_js_1 = require("../../common/command.js");
6
+ const command_error_js_1 = require("../../exceptions/command-error.js");
7
+ const parse_response_helper_js_1 = require("../../utils/parse-response-helper.js");
8
+ const not_found_js_1 = require("../../exceptions/not-found.js");
9
+ const event_type_fetch_js_1 = require("./event-type.fetch.js");
10
+ const graphQlQuery = `
11
+ mutation FLOWCORE_SDK_EVENT_TYPE_TRUNCATE_REQUEST($eventTypeId: ID!) {
12
+ eventType(id: $eventTypeId) {
13
+ requestTruncate {
14
+ truncating
15
+ }
16
+ }
17
+ }
18
+ `;
19
+ const responseSchema = typebox_1.Type.Object({
20
+ errors: typebox_1.Type.Optional(typebox_1.Type.Array(typebox_1.Type.Object({
21
+ message: typebox_1.Type.String(),
22
+ }))),
23
+ data: typebox_1.Type.Union([
24
+ typebox_1.Type.Object({
25
+ eventType: typebox_1.Type.Object({
26
+ requestTruncate: typebox_1.Type.Union([
27
+ typebox_1.Type.Object({
28
+ truncating: typebox_1.Type.Boolean(),
29
+ }),
30
+ typebox_1.Type.Null(),
31
+ ]),
32
+ }),
33
+ }),
34
+ typebox_1.Type.Null(),
35
+ ]),
36
+ });
37
+ /**
38
+ * Request to truncate a event type
39
+ */
40
+ class EventTypeTruncateRequestCommand extends command_js_1.GraphQlCommand {
41
+ /**
42
+ * Create a new event type truncate request command
43
+ */
44
+ constructor(input) {
45
+ super({
46
+ ...input,
47
+ waitForTruncate: input.waitForTruncate ?? true,
48
+ });
49
+ /**
50
+ * Whether the command should retry on failure
51
+ */
52
+ Object.defineProperty(this, "retryOnFailure", {
53
+ enumerable: true,
54
+ configurable: true,
55
+ writable: true,
56
+ value: false
57
+ });
58
+ /**
59
+ * The allowed modes for the command
60
+ */
61
+ Object.defineProperty(this, "allowedModes", {
62
+ enumerable: true,
63
+ configurable: true,
64
+ writable: true,
65
+ value: ["bearer"]
66
+ });
67
+ }
68
+ /**
69
+ * Parse the response
70
+ */
71
+ parseResponse(response) {
72
+ const parsedResponse = (0, parse_response_helper_js_1.parseResponseHelper)(responseSchema, response);
73
+ if (parsedResponse.errors) {
74
+ throw new command_error_js_1.CommandError(this.constructor.name, parsedResponse.errors[0].message);
75
+ }
76
+ if (!parsedResponse.data?.eventType?.requestTruncate) {
77
+ throw new not_found_js_1.NotFoundException("EventType", { id: this.input.eventTypeId });
78
+ }
79
+ return parsedResponse.data.eventType.requestTruncate.truncating;
80
+ }
81
+ /**
82
+ * Get the body for the request
83
+ */
84
+ getBody() {
85
+ const { waitForTruncate: _, ...rest } = this.input;
86
+ return {
87
+ query: graphQlQuery,
88
+ variables: rest,
89
+ };
90
+ }
91
+ /**
92
+ * Wait for the response (timeout: 25 seconds)
93
+ */
94
+ async processResponse(client, response) {
95
+ if (!this.input.waitForTruncate) {
96
+ return response;
97
+ }
98
+ const start = Date.now();
99
+ while (Date.now() - start < 25_000) {
100
+ const response = await client.execute(new event_type_fetch_js_1.EventTypeFetchCommand({
101
+ eventTypeId: this.input.eventTypeId,
102
+ }));
103
+ if (response.isTruncating) {
104
+ break;
105
+ }
106
+ await new Promise((resolve) => setTimeout(resolve, 100));
107
+ }
108
+ return response;
109
+ }
110
+ }
111
+ exports.EventTypeTruncateRequestCommand = EventTypeTruncateRequestCommand;
@@ -0,0 +1,37 @@
1
+ import { Command } from "../../common/command.js";
2
+ import { type EventType } from "../../contracts/event-type.js";
3
+ /**
4
+ * The input for the event type update command
5
+ */
6
+ export type EventTypeUpdateInput = {
7
+ /** The id of the event type */
8
+ eventTypeId: string;
9
+ /** The description of the event type */
10
+ description?: string;
11
+ };
12
+ /**
13
+ * Update an event type
14
+ */
15
+ export declare class EventTypeUpdateCommand extends Command<EventTypeUpdateInput, EventType> {
16
+ /**
17
+ * Get the method
18
+ */
19
+ protected getMethod(): string;
20
+ /**
21
+ * Get the base url
22
+ */
23
+ protected getBaseUrl(): string;
24
+ /**
25
+ * Get the path
26
+ */
27
+ protected getPath(): string;
28
+ /**
29
+ * Get the body for the request
30
+ */
31
+ protected getBody(): Record<string, unknown>;
32
+ /**
33
+ * Parse the response
34
+ */
35
+ protected parseResponse(rawResponse: unknown): EventType;
36
+ }
37
+ //# sourceMappingURL=event-type.update.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"event-type.update.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/deps/jsr.io/@flowcore/sdk/1.11.4/src/commands/event-type/event-type.update.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AACjD,OAAO,EAAE,KAAK,SAAS,EAAmB,MAAM,+BAA+B,CAAA;AAG/E;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC,+BAA+B;IAC/B,WAAW,EAAE,MAAM,CAAA;IACnB,wCAAwC;IACxC,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,CAAA;AAED;;GAEG;AACH,qBAAa,sBAAuB,SAAQ,OAAO,CAAC,oBAAoB,EAAE,SAAS,CAAC;IAClF;;OAEG;cACgB,SAAS,IAAI,MAAM;IAGtC;;OAEG;cACgB,UAAU,IAAI,MAAM;IAIvC;;OAEG;cACgB,OAAO,IAAI,MAAM;IAIpC;;OAEG;cACgB,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAKrD;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,SAAS;CAGlE"}
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EventTypeUpdateCommand = void 0;
4
+ const command_js_1 = require("../../common/command.js");
5
+ const event_type_js_1 = require("../../contracts/event-type.js");
6
+ const parse_response_helper_js_1 = require("../../utils/parse-response-helper.js");
7
+ /**
8
+ * Update an event type
9
+ */
10
+ class EventTypeUpdateCommand extends command_js_1.Command {
11
+ /**
12
+ * Get the method
13
+ */
14
+ getMethod() {
15
+ return "PATCH";
16
+ }
17
+ /**
18
+ * Get the base url
19
+ */
20
+ getBaseUrl() {
21
+ return "https://event-type-2.api.flowcore.io";
22
+ }
23
+ /**
24
+ * Get the path
25
+ */
26
+ getPath() {
27
+ return `/api/v1/event-types/${this.input.eventTypeId}`;
28
+ }
29
+ /**
30
+ * Get the body for the request
31
+ */
32
+ getBody() {
33
+ const { eventTypeId: _, ...payload } = this.input;
34
+ return payload;
35
+ }
36
+ /**
37
+ * Parse the response
38
+ */
39
+ parseResponse(rawResponse) {
40
+ return (0, parse_response_helper_js_1.parseResponseHelper)(event_type_js_1.EventTypeSchema, rawResponse);
41
+ }
42
+ }
43
+ exports.EventTypeUpdateCommand = EventTypeUpdateCommand;