@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,20 @@
1
+ import { type Static, type TObject, type TRecord, type TString, type TUnknown } from "@sinclair/typebox";
2
+ /**
3
+ * The schema for an event
4
+ */
5
+ export declare const FlowcoreEventSchema: TObject<{
6
+ eventId: TString;
7
+ timeBucket: TString;
8
+ tenant: TString;
9
+ dataCoreId: TString;
10
+ flowType: TString;
11
+ eventType: TString;
12
+ metadata: TRecord<TString, TUnknown>;
13
+ payload: TRecord<TString, TUnknown>;
14
+ validTime: TString;
15
+ }>;
16
+ /**
17
+ * The type for an event
18
+ */
19
+ export type FlowcoreEvent = Static<typeof FlowcoreEventSchema>;
20
+ //# sourceMappingURL=event.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"event.d.ts","sourceRoot":"","sources":["../../../../../../../../src/deps/jsr.io/@flowcore/sdk/1.11.4/src/contracts/event.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,QAAQ,EAAQ,MAAM,mBAAmB,CAAA;AAE9G;;GAEG;AACH,eAAO,MAAM,mBAAmB,EAAE,OAAO,CAAC;IACxC,OAAO,EAAE,OAAO,CAAA;IAChB,UAAU,EAAE,OAAO,CAAA;IACnB,MAAM,EAAE,OAAO,CAAA;IACf,UAAU,EAAE,OAAO,CAAA;IACnB,QAAQ,EAAE,OAAO,CAAA;IACjB,SAAS,EAAE,OAAO,CAAA;IAClB,QAAQ,EAAE,OAAO,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAA;IACpC,OAAO,EAAE,OAAO,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAA;IACnC,SAAS,EAAE,OAAO,CAAA;CACnB,CAUC,CAAA;AAEF;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,OAAO,mBAAmB,CAAC,CAAA"}
@@ -0,0 +1,15 @@
1
+ import { Type } from "@sinclair/typebox";
2
+ /**
3
+ * The schema for an event
4
+ */
5
+ export const FlowcoreEventSchema = Type.Object({
6
+ eventId: Type.String(),
7
+ timeBucket: Type.String(),
8
+ tenant: Type.String(),
9
+ dataCoreId: Type.String(),
10
+ flowType: Type.String(),
11
+ eventType: Type.String(),
12
+ metadata: Type.Record(Type.String(), Type.Unknown()),
13
+ payload: Type.Record(Type.String(), Type.Unknown()),
14
+ validTime: Type.String(),
15
+ });
@@ -0,0 +1,34 @@
1
+ import { type Static, type TBoolean, type TNull, type TObject, type TString, type TUnion } from "@sinclair/typebox";
2
+ /**
3
+ * The schema for a flow type
4
+ */
5
+ export declare const FlowTypeSchema: TObject<{
6
+ id: TString;
7
+ tenantId: TString;
8
+ dataCoreId: TString;
9
+ name: TString;
10
+ description: TString;
11
+ isDeleting: TBoolean;
12
+ }>;
13
+ /**
14
+ * The type for a flow type
15
+ */
16
+ export type FlowType = Static<typeof FlowTypeSchema>;
17
+ /**
18
+ * The schema for a flow type v0
19
+ */
20
+ export declare const FlowTypeV0Schema: TObject<{
21
+ id: TString;
22
+ aggregator: TString;
23
+ description: TUnion<[TString, TNull]>;
24
+ deleting: TBoolean;
25
+ }>;
26
+ /**
27
+ * The type for a flow type v0
28
+ */
29
+ export type FlowTypeV0 = Static<typeof FlowTypeV0Schema>;
30
+ /**
31
+ * Convert a flow type v0 to a flow type
32
+ */
33
+ export declare const flowTypeV0ToFlowType: (flowTypeV0: FlowTypeV0, organizationId: string, dataCoreId: string) => FlowType;
34
+ //# sourceMappingURL=flow-type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flow-type.d.ts","sourceRoot":"","sources":["../../../../../../../../src/deps/jsr.io/@flowcore/sdk/1.11.4/src/contracts/flow-type.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EACX,KAAK,QAAQ,EACb,KAAK,KAAK,EACV,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,MAAM,EAEZ,MAAM,mBAAmB,CAAA;AAE1B;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,OAAO,CAAC;IACnC,EAAE,EAAE,OAAO,CAAA;IACX,QAAQ,EAAE,OAAO,CAAA;IACjB,UAAU,EAAE,OAAO,CAAA;IACnB,IAAI,EAAE,OAAO,CAAA;IACb,WAAW,EAAE,OAAO,CAAA;IACpB,UAAU,EAAE,QAAQ,CAAA;CACrB,CAOC,CAAA;AAEF;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,OAAO,cAAc,CAAC,CAAA;AAEpD;;GAEG;AACH,eAAO,MAAM,gBAAgB,EAAE,OAAO,CAAC;IACrC,EAAE,EAAE,OAAO,CAAA;IACX,UAAU,EAAE,OAAO,CAAA;IACnB,WAAW,EAAE,MAAM,CAAC,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,CAAA;IACrC,QAAQ,EAAE,QAAQ,CAAA;CACnB,CAKC,CAAA;AAEF;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,OAAO,gBAAgB,CAAC,CAAA;AAExD;;GAEG;AACH,eAAO,MAAM,oBAAoB,eACnB,UAAU,kBACN,MAAM,cACV,MAAM,KACjB,QASF,CAAA"}
@@ -0,0 +1,34 @@
1
+ import { Type, } from "@sinclair/typebox";
2
+ /**
3
+ * The schema for a flow type
4
+ */
5
+ export const FlowTypeSchema = Type.Object({
6
+ id: Type.String(),
7
+ tenantId: Type.String(),
8
+ dataCoreId: Type.String(),
9
+ name: Type.String(),
10
+ description: Type.String(),
11
+ isDeleting: Type.Boolean(),
12
+ });
13
+ /**
14
+ * The schema for a flow type v0
15
+ */
16
+ export const FlowTypeV0Schema = Type.Object({
17
+ id: Type.String(),
18
+ aggregator: Type.String(),
19
+ description: Type.Union([Type.String(), Type.Null()]),
20
+ deleting: Type.Boolean(),
21
+ });
22
+ /**
23
+ * Convert a flow type v0 to a flow type
24
+ */
25
+ export const flowTypeV0ToFlowType = (flowTypeV0, organizationId, dataCoreId) => {
26
+ return {
27
+ id: flowTypeV0.id,
28
+ tenantId: organizationId,
29
+ dataCoreId,
30
+ name: flowTypeV0.aggregator,
31
+ description: flowTypeV0.description ?? "",
32
+ isDeleting: flowTypeV0.deleting,
33
+ };
34
+ };
@@ -0,0 +1,6 @@
1
+ export type { DataCore } from "./data-core.js";
2
+ export type { EventType } from "./event-type.js";
3
+ export type { FlowType } from "./flow-type.js";
4
+ export type { FlowcoreEvent } from "./event.js";
5
+ export type { Tenant } from "./tenant.js";
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/deps/jsr.io/@flowcore/sdk/1.11.4/src/contracts/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAC9C,YAAY,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAChD,YAAY,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAC9C,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AAC/C,YAAY,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA"}
@@ -0,0 +1,50 @@
1
+ import { type Static, type TObject, type TString } from "@sinclair/typebox";
2
+ interface TenantById {
3
+ tenantId: string;
4
+ tenant?: never;
5
+ }
6
+ interface TenantByName {
7
+ tenant: string;
8
+ tenantId?: never;
9
+ }
10
+ export type TenantFetchInput = TenantById | TenantByName;
11
+ /**
12
+ * The schema for a tenant
13
+ */
14
+ export declare const TenantSchema: TObject<{
15
+ id: TString;
16
+ name: TString;
17
+ displayName: TString;
18
+ description: TString;
19
+ website: TString;
20
+ }>;
21
+ /**
22
+ * The type for a tenant
23
+ */
24
+ export type Tenant = Static<typeof TenantSchema>;
25
+ /**
26
+ * The type for a tenant with a link type
27
+ */
28
+ export type TenantWithLinkType = Tenant & {
29
+ linkType: "OWNER" | "COLLABORATOR";
30
+ };
31
+ /**
32
+ * The schema for a tenant v0
33
+ */
34
+ export declare const TenantV0Schema: TObject<{
35
+ id: TString;
36
+ org: TString;
37
+ displayName: TString;
38
+ description: TString;
39
+ website: TString;
40
+ }>;
41
+ /**
42
+ * The type for a tenant v0
43
+ */
44
+ export type TenantV0 = Static<typeof TenantV0Schema>;
45
+ /**
46
+ * Convert a data core v0 to a data core
47
+ */
48
+ export declare const tenantV0ToTenant: (tenantV0: TenantV0) => Tenant;
49
+ export {};
50
+ //# sourceMappingURL=tenant.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tenant.d.ts","sourceRoot":"","sources":["../../../../../../../../src/deps/jsr.io/@flowcore/sdk/1.11.4/src/contracts/tenant.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,OAAO,EAAE,KAAK,OAAO,EAAQ,MAAM,mBAAmB,CAAA;AAEjF,UAAU,UAAU;IAClB,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,CAAC,EAAE,KAAK,CAAA;CACf;AAED,UAAU,YAAY;IACpB,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,KAAK,CAAA;CACjB;AAED,MAAM,MAAM,gBAAgB,GAAG,UAAU,GAAG,YAAY,CAAA;AAExD;;GAEG;AACH,eAAO,MAAM,YAAY,EAAE,OAAO,CAAC;IACjC,EAAE,EAAE,OAAO,CAAA;IACX,IAAI,EAAE,OAAO,CAAA;IACb,WAAW,EAAE,OAAO,CAAA;IACpB,WAAW,EAAE,OAAO,CAAA;IACpB,OAAO,EAAE,OAAO,CAAA;CACjB,CAMC,CAAA;AACF;;GAEG;AACH,MAAM,MAAM,MAAM,GAAG,MAAM,CAAC,OAAO,YAAY,CAAC,CAAA;AAEhD;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG;IACxC,QAAQ,EAAE,OAAO,GAAG,cAAc,CAAA;CACnC,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,OAAO,CAAC;IACnC,EAAE,EAAE,OAAO,CAAA;IACX,GAAG,EAAE,OAAO,CAAA;IACZ,WAAW,EAAE,OAAO,CAAA;IACpB,WAAW,EAAE,OAAO,CAAA;IACpB,OAAO,EAAE,OAAO,CAAA;CACjB,CAMC,CAAA;AAEF;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,OAAO,cAAc,CAAC,CAAA;AAEpD;;GAEG;AACH,eAAO,MAAM,gBAAgB,aACjB,QAAQ,KACjB,MAQF,CAAA"}
@@ -0,0 +1,33 @@
1
+ import { Type } from "@sinclair/typebox";
2
+ /**
3
+ * The schema for a tenant
4
+ */
5
+ export const TenantSchema = Type.Object({
6
+ id: Type.String(),
7
+ name: Type.String(),
8
+ displayName: Type.String(),
9
+ description: Type.String(),
10
+ website: Type.String(),
11
+ });
12
+ /**
13
+ * The schema for a tenant v0
14
+ */
15
+ export const TenantV0Schema = Type.Object({
16
+ id: Type.String(),
17
+ org: Type.String(),
18
+ displayName: Type.String(),
19
+ description: Type.String(),
20
+ website: Type.String(),
21
+ });
22
+ /**
23
+ * Convert a data core v0 to a data core
24
+ */
25
+ export const tenantV0ToTenant = (tenantV0) => {
26
+ return {
27
+ id: tenantV0.id,
28
+ name: tenantV0.org,
29
+ displayName: tenantV0.displayName,
30
+ description: tenantV0.description,
31
+ website: tenantV0.website,
32
+ };
33
+ };
@@ -0,0 +1,13 @@
1
+ import { type Static, type TObject, type TString } from "@sinclair/typebox";
2
+ /**
3
+ * The schema for a variable
4
+ */
5
+ export declare const VariableSchema: TObject<{
6
+ key: TString;
7
+ value: TString;
8
+ }>;
9
+ /**
10
+ * The type for a variable
11
+ */
12
+ export type Variable = Static<typeof VariableSchema>;
13
+ //# sourceMappingURL=variable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"variable.d.ts","sourceRoot":"","sources":["../../../../../../../../src/deps/jsr.io/@flowcore/sdk/1.11.4/src/contracts/variable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,OAAO,EAAE,KAAK,OAAO,EAAQ,MAAM,mBAAmB,CAAA;AAEjF;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,OAAO,CAAC;IACnC,GAAG,EAAE,OAAO,CAAA;IACZ,KAAK,EAAE,OAAO,CAAA;CACf,CAGC,CAAA;AACF;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,OAAO,cAAc,CAAC,CAAA"}
@@ -0,0 +1,8 @@
1
+ import { Type } from "@sinclair/typebox";
2
+ /**
3
+ * The schema for a variable
4
+ */
5
+ export const VariableSchema = Type.Object({
6
+ key: Type.String(),
7
+ value: Type.String(),
8
+ });
@@ -0,0 +1,9 @@
1
+ /**
2
+ * An error thrown when the client request fails
3
+ */
4
+ export declare class ClientError extends Error {
5
+ readonly status: number;
6
+ readonly body?: unknown | undefined;
7
+ constructor(message: string, status: number, body?: unknown | undefined);
8
+ }
9
+ //# sourceMappingURL=client-error.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client-error.d.ts","sourceRoot":"","sources":["../../../../../../../../src/deps/jsr.io/@flowcore/sdk/1.11.4/src/exceptions/client-error.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,qBAAa,WAAY,SAAQ,KAAK;aACS,MAAM,EAAE,MAAM;aAAkB,IAAI,CAAC,EAAE,OAAO;gBAA/E,OAAO,EAAE,MAAM,EAAkB,MAAM,EAAE,MAAM,EAAkB,IAAI,CAAC,EAAE,OAAO,YAAA;CAG5F"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * An error thrown when the client request fails
3
+ */
4
+ export class ClientError extends Error {
5
+ constructor(message, status, body) {
6
+ super(`Client failed with ${status}: ${message}`);
7
+ Object.defineProperty(this, "status", {
8
+ enumerable: true,
9
+ configurable: true,
10
+ writable: true,
11
+ value: status
12
+ });
13
+ Object.defineProperty(this, "body", {
14
+ enumerable: true,
15
+ configurable: true,
16
+ writable: true,
17
+ value: body
18
+ });
19
+ }
20
+ }
@@ -0,0 +1,7 @@
1
+ /**
2
+ * An error thrown when the command fails
3
+ */
4
+ export declare class CommandError extends Error {
5
+ constructor(commandName: string, message: string);
6
+ }
7
+ //# sourceMappingURL=command-error.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"command-error.d.ts","sourceRoot":"","sources":["../../../../../../../../src/deps/jsr.io/@flowcore/sdk/1.11.4/src/exceptions/command-error.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,qBAAa,YAAa,SAAQ,KAAK;gBACzB,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM;CAGjD"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * An error thrown when the command fails
3
+ */
4
+ export class CommandError extends Error {
5
+ constructor(commandName, message) {
6
+ super(`Command "${commandName}" failed with: ${message}`);
7
+ }
8
+ }
@@ -0,0 +1,5 @@
1
+ export * from "./client-error.js";
2
+ export * from "./invalid-response.js";
3
+ export * from "./not-found.js";
4
+ export * from "./command-error.js";
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/deps/jsr.io/@flowcore/sdk/1.11.4/src/exceptions/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AACjC,cAAc,uBAAuB,CAAA;AACrC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,oBAAoB,CAAA"}
@@ -0,0 +1,4 @@
1
+ export * from "./client-error.js";
2
+ export * from "./invalid-response.js";
3
+ export * from "./not-found.js";
4
+ export * from "./command-error.js";
@@ -0,0 +1,8 @@
1
+ /**
2
+ * An error thrown when the response from the server is invalid
3
+ */
4
+ export declare class InvalidResponseException extends Error {
5
+ readonly errors: Record<string, string>;
6
+ constructor(message: string, errors: Record<string, string>);
7
+ }
8
+ //# sourceMappingURL=invalid-response.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"invalid-response.d.ts","sourceRoot":"","sources":["../../../../../../../../src/deps/jsr.io/@flowcore/sdk/1.11.4/src/exceptions/invalid-response.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,qBAAa,wBAAyB,SAAQ,KAAK;aACJ,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;gBAA/D,OAAO,EAAE,MAAM,EAAkB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;CAI5E"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * An error thrown when the response from the server is invalid
3
+ */
4
+ export class InvalidResponseException extends Error {
5
+ constructor(message, errors) {
6
+ super(message);
7
+ Object.defineProperty(this, "errors", {
8
+ enumerable: true,
9
+ configurable: true,
10
+ writable: true,
11
+ value: errors
12
+ });
13
+ this.errors = errors;
14
+ }
15
+ }
@@ -0,0 +1,7 @@
1
+ /**
2
+ * An error thrown when a resource is not found
3
+ */
4
+ export declare class NotFoundException extends Error {
5
+ constructor(resource: string, filters: Record<string, string>);
6
+ }
7
+ //# sourceMappingURL=not-found.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"not-found.d.ts","sourceRoot":"","sources":["../../../../../../../../src/deps/jsr.io/@flowcore/sdk/1.11.4/src/exceptions/not-found.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,qBAAa,iBAAkB,SAAQ,KAAK;gBAC9B,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;CAG9D"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * An error thrown when a resource is not found
3
+ */
4
+ export class NotFoundException extends Error {
5
+ constructor(resource, filters) {
6
+ super(`${resource} not found: ${JSON.stringify(filters)}`);
7
+ }
8
+ }
@@ -0,0 +1,8 @@
1
+ export * from "./commands/index.js";
2
+ export * from "./common/command.js";
3
+ export * from "./common/flowcore-client.js";
4
+ export * from "./common/notification-client.js";
5
+ export * from "./contracts/index.js";
6
+ export * from "./exceptions/index.js";
7
+ export * from "./utils/parse-response-helper.js";
8
+ //# sourceMappingURL=mod.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@flowcore/sdk/1.11.4/src/mod.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAA;AACnC,cAAc,qBAAqB,CAAA;AACnC,cAAc,6BAA6B,CAAA;AAC3C,cAAc,iCAAiC,CAAA;AAC/C,cAAc,sBAAsB,CAAA;AACpC,cAAc,uBAAuB,CAAA;AACrC,cAAc,kCAAkC,CAAA"}
@@ -0,0 +1,7 @@
1
+ export * from "./commands/index.js";
2
+ export * from "./common/command.js";
3
+ export * from "./common/flowcore-client.js";
4
+ export * from "./common/notification-client.js";
5
+ export * from "./contracts/index.js";
6
+ export * from "./exceptions/index.js";
7
+ export * from "./utils/parse-response-helper.js";
@@ -0,0 +1,8 @@
1
+ export type Logger = {
2
+ debug: (message: string, meta?: Record<string, unknown>) => void;
3
+ info: (message: string, meta?: Record<string, unknown>) => void;
4
+ warn: (message: string, meta?: Record<string, unknown>) => void;
5
+ error: (message: string | Error, meta?: Record<string, unknown>) => void;
6
+ };
7
+ export declare const defaultLogger: Logger;
8
+ //# sourceMappingURL=logger.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../../../../../../../src/deps/jsr.io/@flowcore/sdk/1.11.4/src/utils/logger.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,MAAM,GAAG;IACnB,KAAK,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAA;IAChE,IAAI,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAA;IAC/D,IAAI,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAA;IAC/D,KAAK,EAAE,CAAC,OAAO,EAAE,MAAM,GAAG,KAAK,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAA;CACzE,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,MAa3B,CAAA"}
@@ -0,0 +1,14 @@
1
+ export const defaultLogger = {
2
+ debug: (message, meta) => {
3
+ console.debug(message, meta);
4
+ },
5
+ info: (message, meta) => {
6
+ console.info(message, meta);
7
+ },
8
+ warn: (message, meta) => {
9
+ console.warn(message, meta);
10
+ },
11
+ error: (message, meta) => {
12
+ console.error(message, meta);
13
+ },
14
+ };
@@ -0,0 +1,6 @@
1
+ import type { Static, TSchema } from "@sinclair/typebox";
2
+ /**
3
+ * Helper method for parsing the response
4
+ */
5
+ export declare const parseResponseHelper: <T extends TSchema>(schema: T, response: unknown) => Static<T>;
6
+ //# sourceMappingURL=parse-response-helper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parse-response-helper.d.ts","sourceRoot":"","sources":["../../../../../../../../src/deps/jsr.io/@flowcore/sdk/1.11.4/src/utils/parse-response-helper.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAA;AAGxD;;GAEG;AACH,eAAO,MAAM,mBAAmB,GAAI,CAAC,SAAS,OAAO,UAAU,CAAC,YAAY,OAAO,KAAG,MAAM,CAAC,CAAC,CAU7F,CAAA"}
@@ -0,0 +1,16 @@
1
+ import { Value } from "@sinclair/typebox/value";
2
+ import { InvalidResponseException } from "../exceptions/invalid-response.js";
3
+ /**
4
+ * Helper method for parsing the response
5
+ */
6
+ export const parseResponseHelper = (schema, response) => {
7
+ if (!Value.Check(schema, response)) {
8
+ const parseErrors = Value.Errors(schema, response);
9
+ const errors = {};
10
+ for (const error of parseErrors) {
11
+ errors[error.path] = error.message;
12
+ }
13
+ throw new InvalidResponseException("Invalid response", errors);
14
+ }
15
+ return response;
16
+ };
@@ -0,0 +1,30 @@
1
+ import { type FlowcoreEvent } from "../deps/jsr.io/@flowcore/sdk/1.11.4/src/mod.js";
2
+ import { DataPump, type DataPumpStateManager, type Logger } from "./data-pump.js";
3
+ export interface DataPumpClientOptions {
4
+ logger?: Logger;
5
+ auth: {
6
+ clientId: string;
7
+ clientSecret: string;
8
+ authUrl?: string;
9
+ };
10
+ dataSource: {
11
+ tenant: string;
12
+ dataCore: string;
13
+ flowType: string;
14
+ eventTypes: string[];
15
+ };
16
+ buffer?: {
17
+ size?: number;
18
+ threshold?: number;
19
+ maxDeliveryCount?: number;
20
+ achknowledgeTimeoutMs?: number;
21
+ };
22
+ stateManager?: DataPumpStateManager;
23
+ processor?: {
24
+ concurrency?: number;
25
+ onEvents: (events: FlowcoreEvent[]) => Promise<void>;
26
+ };
27
+ natsServers?: string[];
28
+ }
29
+ export declare function createDataPump(options: DataPumpClientOptions): DataPump;
30
+ //# sourceMappingURL=data-pump-client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-pump-client.d.ts","sourceRoot":"","sources":["../../src/lib/data-pump-client.ts"],"names":[],"mappings":"AACA,OAAO,EAAkB,KAAK,aAAa,EAAE,MAAM,gDAAgD,CAAA;AACnG,OAAO,EAAE,QAAQ,EAAE,KAAK,oBAAoB,EAAE,KAAK,MAAM,EAAE,MAAM,gBAAgB,CAAA;AAMjF,MAAM,WAAW,qBAAqB;IACpC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,IAAI,EAAE;QACJ,QAAQ,EAAE,MAAM,CAAA;QAChB,YAAY,EAAE,MAAM,CAAA;QACpB,OAAO,CAAC,EAAE,MAAM,CAAA;KACjB,CAAA;IACD,UAAU,EAAE;QACV,MAAM,EAAE,MAAM,CAAA;QACd,QAAQ,EAAE,MAAM,CAAA;QAChB,QAAQ,EAAE,MAAM,CAAA;QAChB,UAAU,EAAE,MAAM,EAAE,CAAA;KACrB,CAAA;IACD,MAAM,CAAC,EAAE;QACP,IAAI,CAAC,EAAE,MAAM,CAAA;QACb,SAAS,CAAC,EAAE,MAAM,CAAA;QAClB,gBAAgB,CAAC,EAAE,MAAM,CAAA;QACzB,qBAAqB,CAAC,EAAE,MAAM,CAAA;KAC/B,CAAA;IACD,YAAY,CAAC,EAAE,oBAAoB,CAAA;IACnC,SAAS,CAAC,EAAE;QACV,WAAW,CAAC,EAAE,MAAM,CAAA;QACpB,QAAQ,EAAE,CAAC,MAAM,EAAE,aAAa,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;KACrD,CAAA;IACD,WAAW,CAAC,EAAE,MAAM,EAAE,CAAA;CACvB;AAED,wBAAgB,cAAc,CAAC,OAAO,EAAE,qBAAqB,GAAG,QAAQ,CAuDvE"}
@@ -0,0 +1,52 @@
1
+ import OidcClient from "@flowcore/sdk-oidc-client";
2
+ import { FlowcoreClient } from "../deps/jsr.io/@flowcore/sdk/1.11.4/src/mod.js";
3
+ import { DataPump } from "./data-pump.js";
4
+ import { WebSocketNotifier } from "./ws-notifier.js";
5
+ import { NatsNotifier } from "./nats-notifier.js";
6
+ const defaultAuthUrl = "https://auth.flowcore.io/realms/flowcore/.well-known/openid-configuration";
7
+ export function createDataPump(options) {
8
+ const authClient = new OidcClient.OidcClient(options.auth.clientId, options.auth.clientSecret, options.auth.authUrl ?? defaultAuthUrl);
9
+ const flowcoreClient = new FlowcoreClient({
10
+ getBearerToken: async () => (await authClient.getToken()).accessToken ?? null,
11
+ });
12
+ const stateManager = options.stateManager ?? {
13
+ getState: () => null,
14
+ setState: () => { },
15
+ };
16
+ const notifier = options.natsServers
17
+ ? new NatsNotifier({
18
+ servers: options.natsServers,
19
+ })
20
+ : new WebSocketNotifier({
21
+ auth: {
22
+ clientId: options.auth.clientId,
23
+ clientSecret: options.auth.clientSecret,
24
+ authUrl: options.auth.authUrl ?? defaultAuthUrl,
25
+ },
26
+ dataSource: options.dataSource,
27
+ logger: options.logger,
28
+ });
29
+ const bufferSize = options.buffer?.size ?? 1000;
30
+ const buffer = {
31
+ size: bufferSize,
32
+ threshold: options.buffer?.threshold ?? Math.round(bufferSize * 0.1),
33
+ maxDeliveryCount: options.buffer?.maxDeliveryCount ?? 3,
34
+ achknowledgeTimeoutMs: options.buffer?.achknowledgeTimeoutMs ?? 10_000,
35
+ };
36
+ const processor = options.processor
37
+ ? {
38
+ concurrency: options.processor.concurrency ?? 1,
39
+ onEvents: options.processor.onEvents,
40
+ }
41
+ : undefined;
42
+ const dataPump = new DataPump({
43
+ flowcoreClient,
44
+ stateManager,
45
+ dataSource: options.dataSource,
46
+ buffer,
47
+ processor,
48
+ notifier: notifier.getNotifier(),
49
+ logger: options.logger,
50
+ });
51
+ return dataPump;
52
+ }
@@ -0,0 +1,75 @@
1
+ import { type FlowcoreClient, type FlowcoreEvent } from "../deps/jsr.io/@flowcore/sdk/1.11.4/src/mod.js";
2
+ export interface Logger {
3
+ debug(message: string, ...meta: unknown[]): void;
4
+ info(message: string, ...meta: unknown[]): void;
5
+ warn(message: string, ...meta: unknown[]): void;
6
+ error(message: string | Error, ...meta: unknown[]): void;
7
+ }
8
+ interface DataPumpOptions {
9
+ flowcoreClient: FlowcoreClient;
10
+ stateManager: DataPumpStateManager;
11
+ logger?: Logger;
12
+ notifier: DataPumpNotifier;
13
+ dataSource: {
14
+ tenant: string;
15
+ dataCore: string;
16
+ flowType: string;
17
+ eventTypes: string[];
18
+ };
19
+ buffer: {
20
+ size: number;
21
+ threshold: number;
22
+ maxDeliveryCount: number;
23
+ achknowledgeTimeoutMs: number;
24
+ };
25
+ processor?: {
26
+ concurrency: number;
27
+ onEvents: (events: FlowcoreEvent[]) => Promise<void>;
28
+ };
29
+ }
30
+ export interface DataPumpState {
31
+ timeBucket: string;
32
+ eventId?: string;
33
+ }
34
+ export interface DataPumpStateManager {
35
+ getState(): Promise<DataPumpState | null> | DataPumpState | null;
36
+ setState(state: DataPumpState): Promise<void> | void;
37
+ }
38
+ export interface DataPumpNotifier {
39
+ wait(dataSource: DataPumpOptions["dataSource"] & {
40
+ dataCoreId: string;
41
+ }, signal?: AbortSignal): Promise<void>;
42
+ }
43
+ export declare class DataPump {
44
+ private options;
45
+ private logger?;
46
+ private state;
47
+ private _timeBuckets;
48
+ private buffer;
49
+ private bufferWaiter;
50
+ private waiter;
51
+ private running;
52
+ private notifierAbortController?;
53
+ private dataCoreId?;
54
+ constructor(options: DataPumpOptions);
55
+ start(): Promise<void>;
56
+ stop(): void;
57
+ private proceccor;
58
+ private eventBufferLoop;
59
+ private reOpen;
60
+ private updateState;
61
+ private get timeBuckets();
62
+ private getClosestTimeBucket;
63
+ private updateTimeBuckets;
64
+ private pullInner;
65
+ private acknowledgeInner;
66
+ private waitForNotifier;
67
+ private waitForEvents;
68
+ private waitForBufferThreshold;
69
+ private getNowTimeBucket;
70
+ private getDataCoreId;
71
+ pull(amount: number): Promise<FlowcoreEvent[]>;
72
+ acknowledge(eventIds: string[]): Promise<void>;
73
+ }
74
+ export {};
75
+ //# sourceMappingURL=data-pump.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-pump.d.ts","sourceRoot":"","sources":["../../src/lib/data-pump.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,cAAc,EACnB,KAAK,aAAa,EAEnB,MAAM,gDAAgD,CAAA;AAiBvD,MAAM,WAAW,MAAM;IACrB,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI,CAAA;IAChD,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI,CAAA;IAC/C,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI,CAAA;IAC/C,KAAK,CAAC,OAAO,EAAE,MAAM,GAAG,KAAK,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI,CAAA;CACzD;AAED,UAAU,eAAe;IACvB,cAAc,EAAE,cAAc,CAAA;IAC9B,YAAY,EAAE,oBAAoB,CAAA;IAClC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,QAAQ,EAAE,gBAAgB,CAAA;IAC1B,UAAU,EAAE;QACV,MAAM,EAAE,MAAM,CAAA;QACd,QAAQ,EAAE,MAAM,CAAA;QAChB,QAAQ,EAAE,MAAM,CAAA;QAChB,UAAU,EAAE,MAAM,EAAE,CAAA;KACrB,CAAA;IACD,MAAM,EAAE;QACN,IAAI,EAAE,MAAM,CAAA;QACZ,SAAS,EAAE,MAAM,CAAA;QACjB,gBAAgB,EAAE,MAAM,CAAA;QACxB,qBAAqB,EAAE,MAAM,CAAA;KAC9B,CAAA;IACD,SAAS,CAAC,EAAE;QACV,WAAW,EAAE,MAAM,CAAA;QACnB,QAAQ,EAAE,CAAC,MAAM,EAAE,aAAa,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;KACrD,CAAA;CACF;AAED,MAAM,WAAW,aAAa;IAC5B,UAAU,EAAE,MAAM,CAAA;IAClB,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,WAAW,oBAAoB;IACnC,QAAQ,IAAI,OAAO,CAAC,aAAa,GAAG,IAAI,CAAC,GAAG,aAAa,GAAG,IAAI,CAAA;IAChE,QAAQ,CAAC,KAAK,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAA;CACrD;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,CAAC,UAAU,EAAE,eAAe,CAAC,YAAY,CAAC,GAAG;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CAC9G;AAED,qBAAa,QAAQ;IAWP,OAAO,CAAC,OAAO;IAV3B,OAAO,CAAC,MAAM,CAAC,CAAQ;IACvB,OAAO,CAAC,KAAK,CAAe;IAC5B,OAAO,CAAC,YAAY,CAAe;IACnC,OAAO,CAAC,MAAM,CAA4B;IAC1C,OAAO,CAAC,YAAY,CAA8C;IAClE,OAAO,CAAC,MAAM,CAA8C;IAC5D,OAAO,CAAC,OAAO,CAAQ;IACvB,OAAO,CAAC,uBAAuB,CAAC,CAAiB;IACjD,OAAO,CAAC,UAAU,CAAC,CAAQ;gBAEP,OAAO,EAAE,eAAe;IAO/B,KAAK;IAiCX,IAAI;YAWG,SAAS;YAmBT,eAAe;IAwF7B,OAAO,CAAC,MAAM;IAgBd,OAAO,CAAC,WAAW;IAUnB,OAAO,KAAK,WAAW,GAMtB;IAED,OAAO,CAAC,oBAAoB;YAUd,iBAAiB;YAoBjB,SAAS;YAsCT,gBAAgB;YAiBhB,eAAe;YAUf,aAAa;YAab,sBAAsB;IAepC,OAAO,CAAC,gBAAgB;YAIV,aAAa;IAmBpB,IAAI,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;IAO9C,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;CAMtD"}