@integration-app/react 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (615) hide show
  1. package/contexts/integration-app-context.d.ts +9 -0
  2. package/contexts/integration-app-context.js +17 -0
  3. package/contexts/integration-app-context.js.map +1 -0
  4. package/index.d.ts +2 -0
  5. package/index.js +3 -0
  6. package/index.js.map +1 -0
  7. package/integrations/index.d.ts +6 -0
  8. package/integrations/index.js +21 -0
  9. package/integrations/index.js.map +1 -0
  10. package/node_modules/@integration-app/sdk/.DS_Store +0 -0
  11. package/node_modules/@integration-app/sdk/.gitignore +11 -0
  12. package/node_modules/@integration-app/sdk/.npmignore +0 -0
  13. package/node_modules/@integration-app/sdk/accessors.d.ts +56 -0
  14. package/node_modules/@integration-app/sdk/accessors.js +104 -0
  15. package/node_modules/@integration-app/sdk/accessors.js.map +1 -0
  16. package/node_modules/@integration-app/sdk/app-data-collections/accessors.d.ts +16 -0
  17. package/node_modules/@integration-app/sdk/app-data-collections/accessors.js +38 -0
  18. package/node_modules/@integration-app/sdk/app-data-collections/accessors.js.map +1 -0
  19. package/node_modules/@integration-app/sdk/app-data-collections/api.d.ts +18 -0
  20. package/node_modules/@integration-app/sdk/app-data-collections/api.js +3 -0
  21. package/node_modules/@integration-app/sdk/app-data-collections/api.js.map +1 -0
  22. package/node_modules/@integration-app/sdk/app-data-collections/app-data-collections.d.ts +23 -0
  23. package/node_modules/@integration-app/sdk/app-data-collections/app-data-collections.js.map +1 -0
  24. package/node_modules/@integration-app/sdk/app-data-collections/index.d.ts +26 -0
  25. package/node_modules/@integration-app/sdk/app-data-collections/index.js +3 -0
  26. package/node_modules/@integration-app/sdk/app-data-collections/index.js.map +1 -0
  27. package/node_modules/@integration-app/sdk/app-data-schemas/accessors.d.ts +16 -0
  28. package/node_modules/@integration-app/sdk/app-data-schemas/accessors.js +38 -0
  29. package/node_modules/@integration-app/sdk/app-data-schemas/accessors.js.map +1 -0
  30. package/node_modules/@integration-app/sdk/app-data-schemas/api.d.ts +18 -0
  31. package/node_modules/@integration-app/sdk/app-data-schemas/api.js +3 -0
  32. package/node_modules/@integration-app/sdk/app-data-schemas/api.js.map +1 -0
  33. package/node_modules/@integration-app/sdk/app-data-schemas/app-data-schemas.d.ts +20 -0
  34. package/node_modules/@integration-app/sdk/app-data-schemas/app-data-schemas.js.map +1 -0
  35. package/node_modules/@integration-app/sdk/app-data-schemas/index.d.ts +21 -0
  36. package/node_modules/@integration-app/sdk/app-data-schemas/index.js +3 -0
  37. package/node_modules/@integration-app/sdk/app-data-schemas/index.js.map +1 -0
  38. package/node_modules/@integration-app/sdk/app-events/accessors.d.ts +16 -0
  39. package/node_modules/@integration-app/sdk/app-events/accessors.js +38 -0
  40. package/node_modules/@integration-app/sdk/app-events/accessors.js.map +1 -0
  41. package/node_modules/@integration-app/sdk/app-events/api.d.ts +18 -0
  42. package/node_modules/@integration-app/sdk/app-events/api.js +3 -0
  43. package/node_modules/@integration-app/sdk/app-events/api.js.map +1 -0
  44. package/node_modules/@integration-app/sdk/app-events/app-events.d.ts +44 -0
  45. package/node_modules/@integration-app/sdk/app-events/app-events.js.map +1 -0
  46. package/node_modules/@integration-app/sdk/app-events/index.d.ts +46 -0
  47. package/node_modules/@integration-app/sdk/app-events/index.js +3 -0
  48. package/node_modules/@integration-app/sdk/app-events/index.js.map +1 -0
  49. package/node_modules/@integration-app/sdk/auth/accessors.d.ts +7 -0
  50. package/node_modules/@integration-app/sdk/auth/accessors.js +13 -0
  51. package/node_modules/@integration-app/sdk/auth/accessors.js.map +1 -0
  52. package/node_modules/@integration-app/sdk/auth/index.d.ts +6 -0
  53. package/node_modules/@integration-app/sdk/auth/index.js +3 -0
  54. package/node_modules/@integration-app/sdk/auth/index.js.map +1 -0
  55. package/node_modules/@integration-app/sdk/bundle-index.d.ts +1 -0
  56. package/node_modules/@integration-app/sdk/bundle-index.js +5 -0
  57. package/node_modules/@integration-app/sdk/bundle-index.js.map +1 -0
  58. package/node_modules/@integration-app/sdk/bundle.js +30021 -0
  59. package/node_modules/@integration-app/sdk/bundle.js.map +1 -0
  60. package/node_modules/@integration-app/sdk/client.d.ts +108 -0
  61. package/node_modules/@integration-app/sdk/client.js +248 -0
  62. package/node_modules/@integration-app/sdk/client.js.map +1 -0
  63. package/node_modules/@integration-app/sdk/connection-client.d.ts +12 -0
  64. package/node_modules/@integration-app/sdk/connection-client.js +31 -0
  65. package/node_modules/@integration-app/sdk/connection-client.js.map +1 -0
  66. package/node_modules/@integration-app/sdk/connections/accessors.d.ts +13 -0
  67. package/node_modules/@integration-app/sdk/connections/accessors.js +39 -0
  68. package/node_modules/@integration-app/sdk/connections/accessors.js.map +1 -0
  69. package/node_modules/@integration-app/sdk/connections/api.d.ts +20 -0
  70. package/node_modules/@integration-app/sdk/connections/api.js +17 -0
  71. package/node_modules/@integration-app/sdk/connections/api.js.map +1 -0
  72. package/node_modules/@integration-app/sdk/connections/connections.d.ts +46 -0
  73. package/node_modules/@integration-app/sdk/connections/connections.js.map +1 -0
  74. package/node_modules/@integration-app/sdk/connections/index.d.ts +39 -0
  75. package/node_modules/@integration-app/sdk/connections/index.js +13 -0
  76. package/node_modules/@integration-app/sdk/connections/index.js.map +1 -0
  77. package/node_modules/@integration-app/sdk/connector-api/connector-api.d.ts +157 -0
  78. package/node_modules/@integration-app/sdk/connector-api/connector-api.js.map +1 -0
  79. package/node_modules/@integration-app/sdk/connector-api/index.d.ts +2 -0
  80. package/node_modules/@integration-app/sdk/connector-api/index.js +9 -0
  81. package/node_modules/@integration-app/sdk/connector-api/index.js.map +1 -0
  82. package/node_modules/@integration-app/sdk/data-builder/context.d.ts +9 -0
  83. package/node_modules/@integration-app/sdk/data-builder/context.js +32 -0
  84. package/node_modules/@integration-app/sdk/data-builder/context.js.map +1 -0
  85. package/node_modules/@integration-app/sdk/data-builder/findExternalRecordId.d.ts +0 -0
  86. package/node_modules/@integration-app/sdk/data-builder/findExternalRecordId.js.map +1 -0
  87. package/node_modules/@integration-app/sdk/data-builder/first-name.test.d.ts +0 -0
  88. package/node_modules/@integration-app/sdk/data-builder/first-name.test.js +2 -0
  89. package/node_modules/@integration-app/sdk/data-builder/first-name.test.js.map +1 -0
  90. package/node_modules/@integration-app/sdk/data-builder/formulas/anyOfOption.d.ts +10 -0
  91. package/node_modules/@integration-app/sdk/data-builder/formulas/anyOfOption.js.map +1 -0
  92. package/node_modules/@integration-app/sdk/data-builder/formulas/base.d.ts +9 -0
  93. package/node_modules/@integration-app/sdk/data-builder/formulas/base.js +59 -0
  94. package/node_modules/@integration-app/sdk/data-builder/formulas/base.js.map +1 -0
  95. package/node_modules/@integration-app/sdk/data-builder/formulas/base.test.d.ts +1 -0
  96. package/node_modules/@integration-app/sdk/data-builder/formulas/base.test.js +26 -0
  97. package/node_modules/@integration-app/sdk/data-builder/formulas/base.test.js.map +1 -0
  98. package/node_modules/@integration-app/sdk/data-builder/formulas/case.d.ts +18 -0
  99. package/node_modules/@integration-app/sdk/data-builder/formulas/case.js +61 -0
  100. package/node_modules/@integration-app/sdk/data-builder/formulas/case.js.map +1 -0
  101. package/node_modules/@integration-app/sdk/data-builder/formulas/case.test.d.ts +1 -0
  102. package/node_modules/@integration-app/sdk/data-builder/formulas/case.test.js +246 -0
  103. package/node_modules/@integration-app/sdk/data-builder/formulas/case.test.js.map +1 -0
  104. package/node_modules/@integration-app/sdk/data-builder/formulas/concat.d.ts +18 -0
  105. package/node_modules/@integration-app/sdk/data-builder/formulas/concat.js +36 -0
  106. package/node_modules/@integration-app/sdk/data-builder/formulas/concat.js.map +1 -0
  107. package/node_modules/@integration-app/sdk/data-builder/formulas/concat.test.d.ts +1 -0
  108. package/node_modules/@integration-app/sdk/data-builder/formulas/concat.test.js +85 -0
  109. package/node_modules/@integration-app/sdk/data-builder/formulas/concat.test.js.map +1 -0
  110. package/node_modules/@integration-app/sdk/data-builder/formulas/copy.d.ts +10 -0
  111. package/node_modules/@integration-app/sdk/data-builder/formulas/copy.js +22 -0
  112. package/node_modules/@integration-app/sdk/data-builder/formulas/copy.js.map +1 -0
  113. package/node_modules/@integration-app/sdk/data-builder/formulas/copy.test.d.ts +1 -0
  114. package/node_modules/@integration-app/sdk/data-builder/formulas/copy.test.js +64 -0
  115. package/node_modules/@integration-app/sdk/data-builder/formulas/copy.test.js.map +1 -0
  116. package/node_modules/@integration-app/sdk/data-builder/formulas/extractDate.d.ts +11 -0
  117. package/node_modules/@integration-app/sdk/data-builder/formulas/extractDate.js +31 -0
  118. package/node_modules/@integration-app/sdk/data-builder/formulas/extractDate.js.map +1 -0
  119. package/node_modules/@integration-app/sdk/data-builder/formulas/extractDate.test.d.ts +1 -0
  120. package/node_modules/@integration-app/sdk/data-builder/formulas/extractDate.test.js +44 -0
  121. package/node_modules/@integration-app/sdk/data-builder/formulas/extractDate.test.js.map +1 -0
  122. package/node_modules/@integration-app/sdk/data-builder/formulas/extractTime.d.ts +11 -0
  123. package/node_modules/@integration-app/sdk/data-builder/formulas/extractTime.js +31 -0
  124. package/node_modules/@integration-app/sdk/data-builder/formulas/extractTime.js.map +1 -0
  125. package/node_modules/@integration-app/sdk/data-builder/formulas/extractTime.test.d.ts +1 -0
  126. package/node_modules/@integration-app/sdk/data-builder/formulas/extractTime.test.js +44 -0
  127. package/node_modules/@integration-app/sdk/data-builder/formulas/extractTime.test.js.map +1 -0
  128. package/node_modules/@integration-app/sdk/data-builder/formulas/findAppRecordId.d.ts +17 -0
  129. package/node_modules/@integration-app/sdk/data-builder/formulas/findAppRecordId.js +24 -0
  130. package/node_modules/@integration-app/sdk/data-builder/formulas/findAppRecordId.js.map +1 -0
  131. package/node_modules/@integration-app/sdk/data-builder/formulas/findAppRecordId.test.d.ts +1 -0
  132. package/node_modules/@integration-app/sdk/data-builder/formulas/findAppRecordId.test.js +26 -0
  133. package/node_modules/@integration-app/sdk/data-builder/formulas/findAppRecordId.test.js.map +1 -0
  134. package/node_modules/@integration-app/sdk/data-builder/formulas/findExternalRecordId.d.ts +17 -0
  135. package/node_modules/@integration-app/sdk/data-builder/formulas/findExternalRecordId.js +24 -0
  136. package/node_modules/@integration-app/sdk/data-builder/formulas/findExternalRecordId.js.map +1 -0
  137. package/node_modules/@integration-app/sdk/data-builder/formulas/findExternalRecordId.test.d.ts +1 -0
  138. package/node_modules/@integration-app/sdk/data-builder/formulas/findExternalRecordId.test.js +26 -0
  139. package/node_modules/@integration-app/sdk/data-builder/formulas/findExternalRecordId.test.js.map +1 -0
  140. package/node_modules/@integration-app/sdk/data-builder/formulas/first-name.d.ts +10 -0
  141. package/node_modules/@integration-app/sdk/data-builder/formulas/first-name.js +25 -0
  142. package/node_modules/@integration-app/sdk/data-builder/formulas/first-name.js.map +1 -0
  143. package/node_modules/@integration-app/sdk/data-builder/formulas/first-name.test.d.ts +1 -0
  144. package/node_modules/@integration-app/sdk/data-builder/formulas/first-name.test.js +14 -0
  145. package/node_modules/@integration-app/sdk/data-builder/formulas/first-name.test.js.map +1 -0
  146. package/node_modules/@integration-app/sdk/data-builder/formulas/index.d.ts +28 -0
  147. package/node_modules/@integration-app/sdk/data-builder/formulas/index.js +177 -0
  148. package/node_modules/@integration-app/sdk/data-builder/formulas/index.js.map +1 -0
  149. package/node_modules/@integration-app/sdk/data-builder/formulas/index.test.d.ts +1 -0
  150. package/node_modules/@integration-app/sdk/data-builder/formulas/index.test.js +63 -0
  151. package/node_modules/@integration-app/sdk/data-builder/formulas/index.test.js.map +1 -0
  152. package/node_modules/@integration-app/sdk/data-builder/formulas/iterate.d.ts +15 -0
  153. package/node_modules/@integration-app/sdk/data-builder/formulas/iterate.js +41 -0
  154. package/node_modules/@integration-app/sdk/data-builder/formulas/iterate.js.map +1 -0
  155. package/node_modules/@integration-app/sdk/data-builder/formulas/iterate.test.d.ts +1 -0
  156. package/node_modules/@integration-app/sdk/data-builder/formulas/iterate.test.js +112 -0
  157. package/node_modules/@integration-app/sdk/data-builder/formulas/iterate.test.js.map +1 -0
  158. package/node_modules/@integration-app/sdk/data-builder/formulas/last-name.d.ts +10 -0
  159. package/node_modules/@integration-app/sdk/data-builder/formulas/last-name.js +25 -0
  160. package/node_modules/@integration-app/sdk/data-builder/formulas/last-name.js.map +1 -0
  161. package/node_modules/@integration-app/sdk/data-builder/formulas/lookup.d.ts +20 -0
  162. package/node_modules/@integration-app/sdk/data-builder/formulas/lookup.js +24 -0
  163. package/node_modules/@integration-app/sdk/data-builder/formulas/lookup.js.map +1 -0
  164. package/node_modules/@integration-app/sdk/data-builder/formulas/lookup.test.d.ts +1 -0
  165. package/node_modules/@integration-app/sdk/data-builder/formulas/lookup.test.js +18 -0
  166. package/node_modules/@integration-app/sdk/data-builder/formulas/lookup.test.js.map +1 -0
  167. package/node_modules/@integration-app/sdk/data-builder/formulas/map.d.ts +17 -0
  168. package/node_modules/@integration-app/sdk/data-builder/formulas/map.js +34 -0
  169. package/node_modules/@integration-app/sdk/data-builder/formulas/map.js.map +1 -0
  170. package/node_modules/@integration-app/sdk/data-builder/formulas/map.test.d.ts +1 -0
  171. package/node_modules/@integration-app/sdk/data-builder/formulas/map.test.js +114 -0
  172. package/node_modules/@integration-app/sdk/data-builder/formulas/map.test.js.map +1 -0
  173. package/node_modules/@integration-app/sdk/data-builder/formulas/plain.d.ts +7 -0
  174. package/node_modules/@integration-app/sdk/data-builder/formulas/plain.js +20 -0
  175. package/node_modules/@integration-app/sdk/data-builder/formulas/plain.js.map +1 -0
  176. package/node_modules/@integration-app/sdk/data-builder/formulas/record.d.ts +10 -0
  177. package/node_modules/@integration-app/sdk/data-builder/formulas/record.js +23 -0
  178. package/node_modules/@integration-app/sdk/data-builder/formulas/record.js.map +1 -0
  179. package/node_modules/@integration-app/sdk/data-builder/formulas/schemaOption.d.ts +12 -0
  180. package/node_modules/@integration-app/sdk/data-builder/formulas/schemaOption.js +22 -0
  181. package/node_modules/@integration-app/sdk/data-builder/formulas/schemaOption.js.map +1 -0
  182. package/node_modules/@integration-app/sdk/data-builder/formulas/tpl.d.ts +15 -0
  183. package/node_modules/@integration-app/sdk/data-builder/formulas/tpl.js +31 -0
  184. package/node_modules/@integration-app/sdk/data-builder/formulas/tpl.js.map +1 -0
  185. package/node_modules/@integration-app/sdk/data-builder/formulas/tpl.test.d.ts +1 -0
  186. package/node_modules/@integration-app/sdk/data-builder/formulas/tpl.test.js +49 -0
  187. package/node_modules/@integration-app/sdk/data-builder/formulas/tpl.test.js.map +1 -0
  188. package/node_modules/@integration-app/sdk/data-builder/formulas/types.d.ts +0 -0
  189. package/node_modules/@integration-app/sdk/data-builder/formulas/types.js.map +1 -0
  190. package/node_modules/@integration-app/sdk/data-builder/formulas/var.d.ts +8 -0
  191. package/node_modules/@integration-app/sdk/data-builder/formulas/var.js +21 -0
  192. package/node_modules/@integration-app/sdk/data-builder/formulas/var.js.map +1 -0
  193. package/node_modules/@integration-app/sdk/data-builder/index.d.ts +2 -0
  194. package/node_modules/@integration-app/sdk/data-builder/index.js +17 -0
  195. package/node_modules/@integration-app/sdk/data-builder/index.js.map +1 -0
  196. package/node_modules/@integration-app/sdk/data-builder/index.test.d.ts +1 -0
  197. package/node_modules/@integration-app/sdk/data-builder/index.test.js +295 -0
  198. package/node_modules/@integration-app/sdk/data-builder/index.test.js.map +1 -0
  199. package/node_modules/@integration-app/sdk/data-builder/locators.d.ts +56 -0
  200. package/node_modules/@integration-app/sdk/data-builder/locators.js +560 -0
  201. package/node_modules/@integration-app/sdk/data-builder/locators.js.map +1 -0
  202. package/node_modules/@integration-app/sdk/data-builder/locators.test.d.ts +1 -0
  203. package/node_modules/@integration-app/sdk/data-builder/locators.test.js +775 -0
  204. package/node_modules/@integration-app/sdk/data-builder/locators.test.js.map +1 -0
  205. package/node_modules/@integration-app/sdk/data-collections.d.ts +36 -0
  206. package/node_modules/@integration-app/sdk/data-collections.js +16 -0
  207. package/node_modules/@integration-app/sdk/data-collections.js.map +1 -0
  208. package/node_modules/@integration-app/sdk/data-filter/conditions.d.ts +0 -0
  209. package/node_modules/@integration-app/sdk/data-filter/conditions.js.map +1 -0
  210. package/node_modules/@integration-app/sdk/data-filter/data-filter.test.d.ts +1 -0
  211. package/node_modules/@integration-app/sdk/data-filter/data-filter.test.js.map +1 -0
  212. package/node_modules/@integration-app/sdk/data-filter/index.d.ts +12 -0
  213. package/node_modules/@integration-app/sdk/data-filter/index.js +104 -0
  214. package/node_modules/@integration-app/sdk/data-filter/index.js.map +1 -0
  215. package/node_modules/@integration-app/sdk/data-filter/index.test.d.ts +1 -0
  216. package/node_modules/@integration-app/sdk/data-filter/index.test.js +43 -0
  217. package/node_modules/@integration-app/sdk/data-filter/index.test.js.map +1 -0
  218. package/node_modules/@integration-app/sdk/data-filter/operators.d.ts +13 -0
  219. package/node_modules/@integration-app/sdk/data-filter/operators.js +140 -0
  220. package/node_modules/@integration-app/sdk/data-filter/operators.js.map +1 -0
  221. package/node_modules/@integration-app/sdk/data-filter/operators.test.d.ts +1 -0
  222. package/node_modules/@integration-app/sdk/data-filter/operators.test.js +490 -0
  223. package/node_modules/@integration-app/sdk/data-filter/operators.test.js.map +1 -0
  224. package/node_modules/@integration-app/sdk/data-links/accessors.d.ts +20 -0
  225. package/node_modules/@integration-app/sdk/data-links/accessors.js +65 -0
  226. package/node_modules/@integration-app/sdk/data-links/accessors.js.map +1 -0
  227. package/node_modules/@integration-app/sdk/data-links/api.d.ts +49 -0
  228. package/node_modules/@integration-app/sdk/data-links/api.js +3 -0
  229. package/node_modules/@integration-app/sdk/data-links/api.js.map +1 -0
  230. package/node_modules/@integration-app/sdk/data-links/data-links.d.ts +58 -0
  231. package/node_modules/@integration-app/sdk/data-links/data-links.js.map +1 -0
  232. package/node_modules/@integration-app/sdk/data-links/index.d.ts +35 -0
  233. package/node_modules/@integration-app/sdk/data-links/index.js +10 -0
  234. package/node_modules/@integration-app/sdk/data-links/index.js.map +1 -0
  235. package/node_modules/@integration-app/sdk/data-locations/accessors.d.ts +10 -0
  236. package/node_modules/@integration-app/sdk/data-locations/accessors.js +22 -0
  237. package/node_modules/@integration-app/sdk/data-locations/accessors.js.map +1 -0
  238. package/node_modules/@integration-app/sdk/data-locations/api.d.ts +4 -0
  239. package/node_modules/@integration-app/sdk/data-locations/api.js +3 -0
  240. package/node_modules/@integration-app/sdk/data-locations/api.js.map +1 -0
  241. package/node_modules/@integration-app/sdk/data-locations/index.d.ts +138 -0
  242. package/node_modules/@integration-app/sdk/data-locations/index.js +17 -0
  243. package/node_modules/@integration-app/sdk/data-locations/index.js.map +1 -0
  244. package/node_modules/@integration-app/sdk/data-schema/index.d.ts +49 -0
  245. package/node_modules/@integration-app/sdk/data-schema/index.js +88 -0
  246. package/node_modules/@integration-app/sdk/data-schema/index.js.map +1 -0
  247. package/node_modules/@integration-app/sdk/data-schema/index.test.d.ts +1 -0
  248. package/node_modules/@integration-app/sdk/data-schema/index.test.js +86 -0
  249. package/node_modules/@integration-app/sdk/data-schema/index.test.js.map +1 -0
  250. package/node_modules/@integration-app/sdk/data-sources/accessors.d.ts +29 -0
  251. package/node_modules/@integration-app/sdk/data-sources/accessors.js +71 -0
  252. package/node_modules/@integration-app/sdk/data-sources/accessors.js.map +1 -0
  253. package/node_modules/@integration-app/sdk/data-sources/api.d.ts +37 -0
  254. package/node_modules/@integration-app/sdk/data-sources/api.js +3 -0
  255. package/node_modules/@integration-app/sdk/data-sources/api.js.map +1 -0
  256. package/node_modules/@integration-app/sdk/data-sources/data-sources.d.ts +41 -0
  257. package/node_modules/@integration-app/sdk/data-sources/data-sources.js.map +1 -0
  258. package/node_modules/@integration-app/sdk/data-sources/index.d.ts +55 -0
  259. package/node_modules/@integration-app/sdk/data-sources/index.js +3 -0
  260. package/node_modules/@integration-app/sdk/data-sources/index.js.map +1 -0
  261. package/node_modules/@integration-app/sdk/datetime.d.ts +1 -0
  262. package/node_modules/@integration-app/sdk/datetime.js +15 -0
  263. package/node_modules/@integration-app/sdk/datetime.js.map +1 -0
  264. package/node_modules/@integration-app/sdk/endpoints/endpoint-spec.d.ts +30 -0
  265. package/node_modules/@integration-app/sdk/endpoints/endpoint-spec.js.map +1 -0
  266. package/node_modules/@integration-app/sdk/entity-repository.d.ts +11 -0
  267. package/node_modules/@integration-app/sdk/entity-repository.js +10 -0
  268. package/node_modules/@integration-app/sdk/entity-repository.js.map +1 -0
  269. package/node_modules/@integration-app/sdk/errors.d.ts +64 -0
  270. package/node_modules/@integration-app/sdk/errors.js +141 -0
  271. package/node_modules/@integration-app/sdk/errors.js.map +1 -0
  272. package/node_modules/@integration-app/sdk/field-mappings/accessors.d.ts +25 -0
  273. package/node_modules/@integration-app/sdk/field-mappings/accessors.js +60 -0
  274. package/node_modules/@integration-app/sdk/field-mappings/accessors.js.map +1 -0
  275. package/node_modules/@integration-app/sdk/field-mappings/api.d.ts +34 -0
  276. package/node_modules/@integration-app/sdk/field-mappings/api.js +3 -0
  277. package/node_modules/@integration-app/sdk/field-mappings/api.js.map +1 -0
  278. package/node_modules/@integration-app/sdk/field-mappings/field-mappings.d.ts +29 -0
  279. package/node_modules/@integration-app/sdk/field-mappings/field-mappings.js.map +1 -0
  280. package/node_modules/@integration-app/sdk/field-mappings/index.d.ts +90 -0
  281. package/node_modules/@integration-app/sdk/field-mappings/index.js +195 -0
  282. package/node_modules/@integration-app/sdk/field-mappings/index.js.map +1 -0
  283. package/node_modules/@integration-app/sdk/flow-runs/flow-node-runs.d.ts +30 -0
  284. package/node_modules/@integration-app/sdk/flow-runs/flow-node-runs.js +11 -0
  285. package/node_modules/@integration-app/sdk/flow-runs/flow-node-runs.js.map +1 -0
  286. package/node_modules/@integration-app/sdk/flow-runs/flow-runs.d.ts +51 -0
  287. package/node_modules/@integration-app/sdk/flow-runs/flow-runs.js.map +1 -0
  288. package/node_modules/@integration-app/sdk/flow-runs/index.d.ts +59 -0
  289. package/node_modules/@integration-app/sdk/flow-runs/index.js +44 -0
  290. package/node_modules/@integration-app/sdk/flow-runs/index.js.map +1 -0
  291. package/node_modules/@integration-app/sdk/flows/accessors.d.ts +37 -0
  292. package/node_modules/@integration-app/sdk/flows/accessors.js +167 -0
  293. package/node_modules/@integration-app/sdk/flows/accessors.js.map +1 -0
  294. package/node_modules/@integration-app/sdk/flows/api.d.ts +55 -0
  295. package/node_modules/@integration-app/sdk/flows/api.js +8 -0
  296. package/node_modules/@integration-app/sdk/flows/api.js.map +1 -0
  297. package/node_modules/@integration-app/sdk/flows/flows.d.ts +156 -0
  298. package/node_modules/@integration-app/sdk/flows/flows.js.map +1 -0
  299. package/node_modules/@integration-app/sdk/flows/index.d.ts +84 -0
  300. package/node_modules/@integration-app/sdk/flows/index.js +26 -0
  301. package/node_modules/@integration-app/sdk/flows/index.js.map +1 -0
  302. package/node_modules/@integration-app/sdk/flows/nodes/api-trigger.d.ts +3 -0
  303. package/node_modules/@integration-app/sdk/flows/nodes/api-trigger.js +9 -0
  304. package/node_modules/@integration-app/sdk/flows/nodes/api-trigger.js.map +1 -0
  305. package/node_modules/@integration-app/sdk/flows/nodes/app-event-trigger.d.ts +3 -0
  306. package/node_modules/@integration-app/sdk/flows/nodes/app-event-trigger.js +9 -0
  307. package/node_modules/@integration-app/sdk/flows/nodes/app-event-trigger.js.map +1 -0
  308. package/node_modules/@integration-app/sdk/flows/nodes/create-data-link.d.ts +3 -0
  309. package/node_modules/@integration-app/sdk/flows/nodes/create-data-link.js +8 -0
  310. package/node_modules/@integration-app/sdk/flows/nodes/create-data-link.js.map +1 -0
  311. package/node_modules/@integration-app/sdk/flows/nodes/create-data-record.d.ts +3 -0
  312. package/node_modules/@integration-app/sdk/flows/nodes/create-data-record.js +8 -0
  313. package/node_modules/@integration-app/sdk/flows/nodes/create-data-record.js.map +1 -0
  314. package/node_modules/@integration-app/sdk/flows/nodes/data-record-created-trigger.d.ts +3 -0
  315. package/node_modules/@integration-app/sdk/flows/nodes/data-record-created-trigger.js +9 -0
  316. package/node_modules/@integration-app/sdk/flows/nodes/data-record-created-trigger.js.map +1 -0
  317. package/node_modules/@integration-app/sdk/flows/nodes/data-record-delete-trigger.d.ts +3 -0
  318. package/node_modules/@integration-app/sdk/flows/nodes/data-record-delete-trigger.js.map +1 -0
  319. package/node_modules/@integration-app/sdk/flows/nodes/data-record-deleted-trigger.d.ts +3 -0
  320. package/node_modules/@integration-app/sdk/flows/nodes/data-record-deleted-trigger.js +9 -0
  321. package/node_modules/@integration-app/sdk/flows/nodes/data-record-deleted-trigger.js.map +1 -0
  322. package/node_modules/@integration-app/sdk/flows/nodes/data-record-updated-trigger.d.ts +3 -0
  323. package/node_modules/@integration-app/sdk/flows/nodes/data-record-updated-trigger.js +9 -0
  324. package/node_modules/@integration-app/sdk/flows/nodes/data-record-updated-trigger.js.map +1 -0
  325. package/node_modules/@integration-app/sdk/flows/nodes/delete-data-record.d.ts +3 -0
  326. package/node_modules/@integration-app/sdk/flows/nodes/delete-data-record.js +8 -0
  327. package/node_modules/@integration-app/sdk/flows/nodes/delete-data-record.js.map +1 -0
  328. package/node_modules/@integration-app/sdk/flows/nodes/filter.d.ts +3 -0
  329. package/node_modules/@integration-app/sdk/flows/nodes/filter.js +8 -0
  330. package/node_modules/@integration-app/sdk/flows/nodes/filter.js.map +1 -0
  331. package/node_modules/@integration-app/sdk/flows/nodes/find-data-link.d.ts +3 -0
  332. package/node_modules/@integration-app/sdk/flows/nodes/find-data-link.js +8 -0
  333. package/node_modules/@integration-app/sdk/flows/nodes/find-data-link.js.map +1 -0
  334. package/node_modules/@integration-app/sdk/flows/nodes/find-data-record-by-id.d.ts +3 -0
  335. package/node_modules/@integration-app/sdk/flows/nodes/find-data-record-by-id.js +8 -0
  336. package/node_modules/@integration-app/sdk/flows/nodes/find-data-record-by-id.js.map +1 -0
  337. package/node_modules/@integration-app/sdk/flows/nodes/find-data-records.d.ts +3 -0
  338. package/node_modules/@integration-app/sdk/flows/nodes/find-data-records.js +8 -0
  339. package/node_modules/@integration-app/sdk/flows/nodes/find-data-records.js.map +1 -0
  340. package/node_modules/@integration-app/sdk/flows/nodes/http-request.d.ts +3 -0
  341. package/node_modules/@integration-app/sdk/flows/nodes/http-request.js +8 -0
  342. package/node_modules/@integration-app/sdk/flows/nodes/http-request.js.map +1 -0
  343. package/node_modules/@integration-app/sdk/flows/nodes/index.d.ts +28 -0
  344. package/node_modules/@integration-app/sdk/flows/nodes/index.js +50 -0
  345. package/node_modules/@integration-app/sdk/flows/nodes/index.js.map +1 -0
  346. package/node_modules/@integration-app/sdk/flows/nodes/list-data-records.d.ts +3 -0
  347. package/node_modules/@integration-app/sdk/flows/nodes/list-data-records.js +8 -0
  348. package/node_modules/@integration-app/sdk/flows/nodes/list-data-records.js.map +1 -0
  349. package/node_modules/@integration-app/sdk/flows/nodes/nodes.d.ts +25 -0
  350. package/node_modules/@integration-app/sdk/flows/nodes/nodes.js.map +1 -0
  351. package/node_modules/@integration-app/sdk/flows/nodes/schedule-trigger.d.ts +3 -0
  352. package/node_modules/@integration-app/sdk/flows/nodes/schedule-trigger.js +9 -0
  353. package/node_modules/@integration-app/sdk/flows/nodes/schedule-trigger.js.map +1 -0
  354. package/node_modules/@integration-app/sdk/flows/nodes/transform-data.d.ts +3 -0
  355. package/node_modules/@integration-app/sdk/flows/nodes/transform-data.js +8 -0
  356. package/node_modules/@integration-app/sdk/flows/nodes/transform-data.js.map +1 -0
  357. package/node_modules/@integration-app/sdk/flows/nodes/update-data-record.d.ts +3 -0
  358. package/node_modules/@integration-app/sdk/flows/nodes/update-data-record.js +8 -0
  359. package/node_modules/@integration-app/sdk/flows/nodes/update-data-record.js.map +1 -0
  360. package/node_modules/@integration-app/sdk/flows/utils.d.ts +10 -0
  361. package/node_modules/@integration-app/sdk/flows/utils.js +72 -0
  362. package/node_modules/@integration-app/sdk/flows/utils.js.map +1 -0
  363. package/node_modules/@integration-app/sdk/flows/utils.test.d.ts +1 -0
  364. package/node_modules/@integration-app/sdk/flows/utils.test.js +62 -0
  365. package/node_modules/@integration-app/sdk/flows/utils.test.js.map +1 -0
  366. package/node_modules/@integration-app/sdk/http-requests.d.ts +37 -0
  367. package/node_modules/@integration-app/sdk/http-requests.js +33 -0
  368. package/node_modules/@integration-app/sdk/http-requests.js.map +1 -0
  369. package/node_modules/@integration-app/sdk/iframe.d.ts +9 -0
  370. package/node_modules/@integration-app/sdk/iframe.js +112 -0
  371. package/node_modules/@integration-app/sdk/iframe.js.map +1 -0
  372. package/node_modules/@integration-app/sdk/index.d.ts +4 -0
  373. package/node_modules/@integration-app/sdk/index.js +8 -0
  374. package/node_modules/@integration-app/sdk/index.js.map +1 -0
  375. package/node_modules/@integration-app/sdk/integration-elements/index.d.ts +22 -0
  376. package/node_modules/@integration-app/sdk/integration-elements/index.js +15 -0
  377. package/node_modules/@integration-app/sdk/integration-elements/index.js.map +1 -0
  378. package/node_modules/@integration-app/sdk/integration-elements/integration-elements.d.ts +21 -0
  379. package/node_modules/@integration-app/sdk/integration-elements/integration-elements.js.map +1 -0
  380. package/node_modules/@integration-app/sdk/integrations/accessors.d.ts +23 -0
  381. package/node_modules/@integration-app/sdk/integrations/accessors.js +122 -0
  382. package/node_modules/@integration-app/sdk/integrations/accessors.js.map +1 -0
  383. package/node_modules/@integration-app/sdk/integrations/api.d.ts +10 -0
  384. package/node_modules/@integration-app/sdk/integrations/api.js +3 -0
  385. package/node_modules/@integration-app/sdk/integrations/api.js.map +1 -0
  386. package/node_modules/@integration-app/sdk/integrations/index.d.ts +27 -0
  387. package/node_modules/@integration-app/sdk/integrations/index.js +16 -0
  388. package/node_modules/@integration-app/sdk/integrations/index.js.map +1 -0
  389. package/node_modules/@integration-app/sdk/integrations/integrations.d.ts +48 -0
  390. package/node_modules/@integration-app/sdk/integrations/integrations.js.map +1 -0
  391. package/node_modules/@integration-app/sdk/json-schema/index.d.ts +32 -0
  392. package/node_modules/@integration-app/sdk/json-schema/index.js +207 -0
  393. package/node_modules/@integration-app/sdk/json-schema/index.js.map +1 -0
  394. package/node_modules/@integration-app/sdk/json-schema/json-schema.test.d.ts +1 -0
  395. package/node_modules/@integration-app/sdk/json-schema/json-schema.test.js +194 -0
  396. package/node_modules/@integration-app/sdk/json-schema/json-schema.test.js.map +1 -0
  397. package/node_modules/@integration-app/sdk/json-schema/schema-builder.d.ts +7 -0
  398. package/node_modules/@integration-app/sdk/json-schema/schema-builder.js +232 -0
  399. package/node_modules/@integration-app/sdk/json-schema/schema-builder.js.map +1 -0
  400. package/node_modules/@integration-app/sdk/json-schema/schema-builder.test.d.ts +1 -0
  401. package/node_modules/@integration-app/sdk/json-schema/schema-builder.test.js +352 -0
  402. package/node_modules/@integration-app/sdk/json-schema/schema-builder.test.js.map +1 -0
  403. package/node_modules/@integration-app/sdk/jwt.d.ts +1 -0
  404. package/node_modules/@integration-app/sdk/jwt.js +37 -0
  405. package/node_modules/@integration-app/sdk/jwt.js.map +1 -0
  406. package/node_modules/@integration-app/sdk/jwt.test.d.ts +1 -0
  407. package/node_modules/@integration-app/sdk/jwt.test.js +9 -0
  408. package/node_modules/@integration-app/sdk/jwt.test.js.map +1 -0
  409. package/node_modules/@integration-app/sdk/package-lock.json +3834 -0
  410. package/node_modules/@integration-app/sdk/package.json +63 -0
  411. package/node_modules/@integration-app/sdk/rollup.config.js +23 -0
  412. package/node_modules/@integration-app/sdk/src/accessors.ts +150 -0
  413. package/node_modules/@integration-app/sdk/src/app-data-collections/accessors.ts +69 -0
  414. package/node_modules/@integration-app/sdk/src/app-data-collections/api.ts +31 -0
  415. package/node_modules/@integration-app/sdk/src/app-data-collections/index.ts +46 -0
  416. package/node_modules/@integration-app/sdk/src/app-data-schemas/accessors.ts +69 -0
  417. package/node_modules/@integration-app/sdk/src/app-data-schemas/api.ts +28 -0
  418. package/node_modules/@integration-app/sdk/src/app-data-schemas/index.ts +35 -0
  419. package/node_modules/@integration-app/sdk/src/app-events/accessors.ts +69 -0
  420. package/node_modules/@integration-app/sdk/src/app-events/api.ts +28 -0
  421. package/node_modules/@integration-app/sdk/src/app-events/index.ts +75 -0
  422. package/node_modules/@integration-app/sdk/src/auth/accessors.ts +10 -0
  423. package/node_modules/@integration-app/sdk/src/auth/index.ts +7 -0
  424. package/node_modules/@integration-app/sdk/src/bundle-index.ts +6 -0
  425. package/node_modules/@integration-app/sdk/src/client.ts +417 -0
  426. package/node_modules/@integration-app/sdk/src/connections/accessors.ts +58 -0
  427. package/node_modules/@integration-app/sdk/src/connections/api.ts +28 -0
  428. package/node_modules/@integration-app/sdk/src/connections/index.ts +70 -0
  429. package/node_modules/@integration-app/sdk/src/connector-api/index.ts +44 -0
  430. package/node_modules/@integration-app/sdk/src/data-builder/context.ts +40 -0
  431. package/node_modules/@integration-app/sdk/src/data-builder/formulas/base.test.ts +26 -0
  432. package/node_modules/@integration-app/sdk/src/data-builder/formulas/base.ts +95 -0
  433. package/node_modules/@integration-app/sdk/src/data-builder/formulas/case.test.ts +260 -0
  434. package/node_modules/@integration-app/sdk/src/data-builder/formulas/case.ts +77 -0
  435. package/node_modules/@integration-app/sdk/src/data-builder/formulas/concat.test.ts +117 -0
  436. package/node_modules/@integration-app/sdk/src/data-builder/formulas/concat.ts +49 -0
  437. package/node_modules/@integration-app/sdk/src/data-builder/formulas/copy.test.ts +70 -0
  438. package/node_modules/@integration-app/sdk/src/data-builder/formulas/copy.ts +20 -0
  439. package/node_modules/@integration-app/sdk/src/data-builder/formulas/extractDate.test.ts +49 -0
  440. package/node_modules/@integration-app/sdk/src/data-builder/formulas/extractDate.ts +28 -0
  441. package/node_modules/@integration-app/sdk/src/data-builder/formulas/extractTime.test.ts +49 -0
  442. package/node_modules/@integration-app/sdk/src/data-builder/formulas/extractTime.ts +28 -0
  443. package/node_modules/@integration-app/sdk/src/data-builder/formulas/findAppRecordId.test.ts +30 -0
  444. package/node_modules/@integration-app/sdk/src/data-builder/formulas/findAppRecordId.ts +30 -0
  445. package/node_modules/@integration-app/sdk/src/data-builder/formulas/findExternalRecordId.test.ts +30 -0
  446. package/node_modules/@integration-app/sdk/src/data-builder/formulas/findExternalRecordId.ts +30 -0
  447. package/node_modules/@integration-app/sdk/src/data-builder/formulas/first-name.ts +21 -0
  448. package/node_modules/@integration-app/sdk/src/data-builder/formulas/index.test.ts +83 -0
  449. package/node_modules/@integration-app/sdk/src/data-builder/formulas/index.ts +190 -0
  450. package/node_modules/@integration-app/sdk/src/data-builder/formulas/iterate.test.ts +154 -0
  451. package/node_modules/@integration-app/sdk/src/data-builder/formulas/iterate.ts +46 -0
  452. package/node_modules/@integration-app/sdk/src/data-builder/formulas/last-name.ts +21 -0
  453. package/node_modules/@integration-app/sdk/src/data-builder/formulas/lookup.test.ts +20 -0
  454. package/node_modules/@integration-app/sdk/src/data-builder/formulas/lookup.ts +33 -0
  455. package/node_modules/@integration-app/sdk/src/data-builder/formulas/map.test.ts +125 -0
  456. package/node_modules/@integration-app/sdk/src/data-builder/formulas/map.ts +42 -0
  457. package/node_modules/@integration-app/sdk/src/data-builder/formulas/plain.ts +17 -0
  458. package/node_modules/@integration-app/sdk/src/data-builder/formulas/record.ts +20 -0
  459. package/node_modules/@integration-app/sdk/src/data-builder/formulas/schemaOption.ts +26 -0
  460. package/node_modules/@integration-app/sdk/src/data-builder/formulas/tpl.test.ts +51 -0
  461. package/node_modules/@integration-app/sdk/src/data-builder/formulas/tpl.ts +33 -0
  462. package/node_modules/@integration-app/sdk/src/data-builder/formulas/var.ts +19 -0
  463. package/node_modules/@integration-app/sdk/src/data-builder/index.test.ts +372 -0
  464. package/node_modules/@integration-app/sdk/src/data-builder/index.ts +16 -0
  465. package/node_modules/@integration-app/sdk/src/data-builder/locators.test.ts +1045 -0
  466. package/node_modules/@integration-app/sdk/src/data-builder/locators.ts +702 -0
  467. package/node_modules/@integration-app/sdk/src/data-collections.ts +74 -0
  468. package/node_modules/@integration-app/sdk/src/data-filter/index.test.ts +48 -0
  469. package/node_modules/@integration-app/sdk/src/data-filter/index.ts +127 -0
  470. package/node_modules/@integration-app/sdk/src/data-filter/operators.test.ts +694 -0
  471. package/node_modules/@integration-app/sdk/src/data-filter/operators.ts +163 -0
  472. package/node_modules/@integration-app/sdk/src/data-links/accessors.ts +108 -0
  473. package/node_modules/@integration-app/sdk/src/data-links/api.ts +75 -0
  474. package/node_modules/@integration-app/sdk/src/data-links/index.ts +55 -0
  475. package/node_modules/@integration-app/sdk/src/data-locations/accessors.ts +24 -0
  476. package/node_modules/@integration-app/sdk/src/data-locations/api.ts +5 -0
  477. package/node_modules/@integration-app/sdk/src/data-locations/index.ts +209 -0
  478. package/node_modules/@integration-app/sdk/src/data-schema/index.test.ts +90 -0
  479. package/node_modules/@integration-app/sdk/src/data-schema/index.ts +185 -0
  480. package/node_modules/@integration-app/sdk/src/data-sources/accessors.ts +133 -0
  481. package/node_modules/@integration-app/sdk/src/data-sources/api.ts +59 -0
  482. package/node_modules/@integration-app/sdk/src/data-sources/index.ts +103 -0
  483. package/node_modules/@integration-app/sdk/src/datetime.ts +16 -0
  484. package/node_modules/@integration-app/sdk/src/entity-repository.ts +12 -0
  485. package/node_modules/@integration-app/sdk/src/errors.ts +154 -0
  486. package/node_modules/@integration-app/sdk/src/field-mappings/accessors.ts +100 -0
  487. package/node_modules/@integration-app/sdk/src/field-mappings/api.ts +61 -0
  488. package/node_modules/@integration-app/sdk/src/field-mappings/index.ts +341 -0
  489. package/node_modules/@integration-app/sdk/src/flow-runs/flow-node-runs.ts +53 -0
  490. package/node_modules/@integration-app/sdk/src/flow-runs/index.ts +102 -0
  491. package/node_modules/@integration-app/sdk/src/flows/accessors.ts +246 -0
  492. package/node_modules/@integration-app/sdk/src/flows/api.ts +71 -0
  493. package/node_modules/@integration-app/sdk/src/flows/index.ts +233 -0
  494. package/node_modules/@integration-app/sdk/src/flows/nodes/api-trigger.ts +7 -0
  495. package/node_modules/@integration-app/sdk/src/flows/nodes/app-event-trigger.ts +7 -0
  496. package/node_modules/@integration-app/sdk/src/flows/nodes/create-data-link.ts +6 -0
  497. package/node_modules/@integration-app/sdk/src/flows/nodes/create-data-record.ts +6 -0
  498. package/node_modules/@integration-app/sdk/src/flows/nodes/data-record-created-trigger.ts +8 -0
  499. package/node_modules/@integration-app/sdk/src/flows/nodes/data-record-deleted-trigger.ts +8 -0
  500. package/node_modules/@integration-app/sdk/src/flows/nodes/data-record-updated-trigger.ts +8 -0
  501. package/node_modules/@integration-app/sdk/src/flows/nodes/delete-data-record.ts +6 -0
  502. package/node_modules/@integration-app/sdk/src/flows/nodes/filter.ts +6 -0
  503. package/node_modules/@integration-app/sdk/src/flows/nodes/find-data-link.ts +6 -0
  504. package/node_modules/@integration-app/sdk/src/flows/nodes/find-data-record-by-id.ts +6 -0
  505. package/node_modules/@integration-app/sdk/src/flows/nodes/find-data-records.ts +6 -0
  506. package/node_modules/@integration-app/sdk/src/flows/nodes/http-request.ts +6 -0
  507. package/node_modules/@integration-app/sdk/src/flows/nodes/index.ts +60 -0
  508. package/node_modules/@integration-app/sdk/src/flows/nodes/list-data-records.ts +7 -0
  509. package/node_modules/@integration-app/sdk/src/flows/nodes/schedule-trigger.ts +7 -0
  510. package/node_modules/@integration-app/sdk/src/flows/nodes/transform-data.ts +7 -0
  511. package/node_modules/@integration-app/sdk/src/flows/nodes/update-data-record.ts +6 -0
  512. package/node_modules/@integration-app/sdk/src/flows/utils.test.ts +63 -0
  513. package/node_modules/@integration-app/sdk/src/flows/utils.ts +110 -0
  514. package/node_modules/@integration-app/sdk/src/http-requests.ts +41 -0
  515. package/node_modules/@integration-app/sdk/src/iframe.ts +142 -0
  516. package/node_modules/@integration-app/sdk/src/index.ts +5 -0
  517. package/node_modules/@integration-app/sdk/src/integration-elements/index.ts +24 -0
  518. package/node_modules/@integration-app/sdk/src/integrations/accessors.ts +162 -0
  519. package/node_modules/@integration-app/sdk/src/integrations/api.ts +13 -0
  520. package/node_modules/@integration-app/sdk/src/integrations/index.ts +50 -0
  521. package/node_modules/@integration-app/sdk/src/json-schema/__snapshots__/schema-builder.test.ts.snap +167 -0
  522. package/node_modules/@integration-app/sdk/src/json-schema/index.ts +251 -0
  523. package/node_modules/@integration-app/sdk/src/json-schema/json-schema.test.ts +246 -0
  524. package/node_modules/@integration-app/sdk/src/json-schema/schema-builder.test.ts +396 -0
  525. package/node_modules/@integration-app/sdk/src/json-schema/schema-builder.ts +258 -0
  526. package/node_modules/@integration-app/sdk/src/jwt.test.ts +11 -0
  527. package/node_modules/@integration-app/sdk/src/jwt.ts +40 -0
  528. package/node_modules/@integration-app/sdk/src/udm/activities.test.ts +43 -0
  529. package/node_modules/@integration-app/sdk/src/udm/activities.ts +83 -0
  530. package/node_modules/@integration-app/sdk/src/udm/base.ts +88 -0
  531. package/node_modules/@integration-app/sdk/src/udm/campaigns.ts +72 -0
  532. package/node_modules/@integration-app/sdk/src/udm/companies.ts +80 -0
  533. package/node_modules/@integration-app/sdk/src/udm/contacts.test.ts +147 -0
  534. package/node_modules/@integration-app/sdk/src/udm/contacts.ts +106 -0
  535. package/node_modules/@integration-app/sdk/src/udm/deals.ts +90 -0
  536. package/node_modules/@integration-app/sdk/src/udm/index.ts +28 -0
  537. package/node_modules/@integration-app/sdk/src/udm/leads.ts +113 -0
  538. package/node_modules/@integration-app/sdk/src/udm/users.ts +92 -0
  539. package/node_modules/@integration-app/sdk/src/users/accessors.ts +28 -0
  540. package/node_modules/@integration-app/sdk/src/users/api.ts +8 -0
  541. package/node_modules/@integration-app/sdk/src/users/index.ts +5 -0
  542. package/node_modules/@integration-app/sdk/src/variables.ts +33 -0
  543. package/node_modules/@integration-app/sdk/src/workspaces/index.ts +5 -0
  544. package/node_modules/@integration-app/sdk/tsconfig.build.json +10 -0
  545. package/node_modules/@integration-app/sdk/tsconfig.json +19 -0
  546. package/node_modules/@integration-app/sdk/udm/activities.d.ts +30 -0
  547. package/node_modules/@integration-app/sdk/udm/activities.js +70 -0
  548. package/node_modules/@integration-app/sdk/udm/activities.js.map +1 -0
  549. package/node_modules/@integration-app/sdk/udm/activities.test.d.ts +1 -0
  550. package/node_modules/@integration-app/sdk/udm/activities.test.js +40 -0
  551. package/node_modules/@integration-app/sdk/udm/activities.test.js.map +1 -0
  552. package/node_modules/@integration-app/sdk/udm/base.d.ts +27 -0
  553. package/node_modules/@integration-app/sdk/udm/base.js +62 -0
  554. package/node_modules/@integration-app/sdk/udm/base.js.map +1 -0
  555. package/node_modules/@integration-app/sdk/udm/campaign-members.d.ts +45 -0
  556. package/node_modules/@integration-app/sdk/udm/campaign-members.js +99 -0
  557. package/node_modules/@integration-app/sdk/udm/campaign-members.js.map +1 -0
  558. package/node_modules/@integration-app/sdk/udm/campaigns.d.ts +25 -0
  559. package/node_modules/@integration-app/sdk/udm/campaigns.js +66 -0
  560. package/node_modules/@integration-app/sdk/udm/campaigns.js.map +1 -0
  561. package/node_modules/@integration-app/sdk/udm/companies.d.ts +42 -0
  562. package/node_modules/@integration-app/sdk/udm/companies.js +69 -0
  563. package/node_modules/@integration-app/sdk/udm/companies.js.map +1 -0
  564. package/node_modules/@integration-app/sdk/udm/contacts.d.ts +49 -0
  565. package/node_modules/@integration-app/sdk/udm/contacts.js +94 -0
  566. package/node_modules/@integration-app/sdk/udm/contacts.js.map +1 -0
  567. package/node_modules/@integration-app/sdk/udm/contacts.test.d.ts +1 -0
  568. package/node_modules/@integration-app/sdk/udm/contacts.test.js +136 -0
  569. package/node_modules/@integration-app/sdk/udm/contacts.test.js.map +1 -0
  570. package/node_modules/@integration-app/sdk/udm/crm-activities.d.ts +17 -0
  571. package/node_modules/@integration-app/sdk/udm/crm-activities.js.map +1 -0
  572. package/node_modules/@integration-app/sdk/udm/crm-activity.d.ts +11 -0
  573. package/node_modules/@integration-app/sdk/udm/crm-activity.js.map +1 -0
  574. package/node_modules/@integration-app/sdk/udm/crm-companies.d.ts +14 -0
  575. package/node_modules/@integration-app/sdk/udm/crm-companies.js.map +1 -0
  576. package/node_modules/@integration-app/sdk/udm/crm-contact.d.ts +10 -0
  577. package/node_modules/@integration-app/sdk/udm/crm-contact.js.map +1 -0
  578. package/node_modules/@integration-app/sdk/udm/crm-contacts.d.ts +16 -0
  579. package/node_modules/@integration-app/sdk/udm/crm-contacts.js.map +1 -0
  580. package/node_modules/@integration-app/sdk/udm/crm-deals.d.ts +15 -0
  581. package/node_modules/@integration-app/sdk/udm/crm-deals.js.map +1 -0
  582. package/node_modules/@integration-app/sdk/udm/crm-leads.d.ts +16 -0
  583. package/node_modules/@integration-app/sdk/udm/crm-leads.js.map +1 -0
  584. package/node_modules/@integration-app/sdk/udm/deals.d.ts +26 -0
  585. package/node_modules/@integration-app/sdk/udm/deals.js +84 -0
  586. package/node_modules/@integration-app/sdk/udm/deals.js.map +1 -0
  587. package/node_modules/@integration-app/sdk/udm/index.d.ts +11 -0
  588. package/node_modules/@integration-app/sdk/udm/index.js +31 -0
  589. package/node_modules/@integration-app/sdk/udm/index.js.map +1 -0
  590. package/node_modules/@integration-app/sdk/udm/leads.d.ts +52 -0
  591. package/node_modules/@integration-app/sdk/udm/leads.js +101 -0
  592. package/node_modules/@integration-app/sdk/udm/leads.js.map +1 -0
  593. package/node_modules/@integration-app/sdk/udm/members.d.ts +45 -0
  594. package/node_modules/@integration-app/sdk/udm/members.js.map +1 -0
  595. package/node_modules/@integration-app/sdk/udm/users.d.ts +31 -0
  596. package/node_modules/@integration-app/sdk/udm/users.js +81 -0
  597. package/node_modules/@integration-app/sdk/udm/users.js.map +1 -0
  598. package/node_modules/@integration-app/sdk/users/accessors.d.ts +10 -0
  599. package/node_modules/@integration-app/sdk/users/accessors.js +21 -0
  600. package/node_modules/@integration-app/sdk/users/accessors.js.map +1 -0
  601. package/node_modules/@integration-app/sdk/users/api.d.ts +6 -0
  602. package/node_modules/@integration-app/sdk/users/api.js +3 -0
  603. package/node_modules/@integration-app/sdk/users/api.js.map +1 -0
  604. package/node_modules/@integration-app/sdk/users/index.d.ts +5 -0
  605. package/node_modules/@integration-app/sdk/users/index.js +3 -0
  606. package/node_modules/@integration-app/sdk/users/index.js.map +1 -0
  607. package/node_modules/@integration-app/sdk/users/users.d.ts +5 -0
  608. package/node_modules/@integration-app/sdk/users/users.js.map +1 -0
  609. package/node_modules/@integration-app/sdk/variables.d.ts +3 -0
  610. package/node_modules/@integration-app/sdk/variables.js +30 -0
  611. package/node_modules/@integration-app/sdk/variables.js.map +1 -0
  612. package/node_modules/@integration-app/sdk/workspaces/index.d.ts +5 -0
  613. package/node_modules/@integration-app/sdk/workspaces/index.js +3 -0
  614. package/node_modules/@integration-app/sdk/workspaces/index.js.map +1 -0
  615. package/package.json +26 -0
@@ -0,0 +1,167 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FlowInstanceAccessor = exports.FlowInstancesAccessor = exports.FlowAccessor = exports.FlowsAccessor = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const flow_runs_1 = require("../flow-runs");
6
+ const iframe_1 = require("../iframe");
7
+ const _1 = require(".");
8
+ const query_string_1 = (0, tslib_1.__importDefault)(require("query-string"));
9
+ const accessors_1 = require("../accessors");
10
+ const MAX_POLLING_ERRORS = 10;
11
+ class FlowsAccessor extends accessors_1.ElementListAccessor {
12
+ constructor(client) {
13
+ super(client, 'flows');
14
+ }
15
+ }
16
+ exports.FlowsAccessor = FlowsAccessor;
17
+ class FlowAccessor extends accessors_1.ElementAccessor {
18
+ constructor(client, idOrKey) {
19
+ super({
20
+ client: client,
21
+ path: 'flows',
22
+ idOrKey,
23
+ });
24
+ this.client = client;
25
+ }
26
+ async runAll(params) {
27
+ const flow = await this.get();
28
+ const instancesPage = await this.client.flowInstances.find({
29
+ flowId: flow.id,
30
+ enabled: true,
31
+ });
32
+ const accessors = instancesPage.items.map((instance) => new FlowInstanceAccessor(this.client, instance.id));
33
+ const runs = await Promise.all(accessors.map((accessor) => accessor.run(params)));
34
+ return runs;
35
+ }
36
+ async subscribe(options) {
37
+ const flow = await this.get();
38
+ const channelKey = `${_1.FLOW_CHANNEL_PREFIX}${flow.id}`;
39
+ await this.client.subscribeToChannel(channelKey, options);
40
+ }
41
+ async unsubscribe() {
42
+ const flow = await this.get();
43
+ const channelKey = `${_1.FLOW_INSTANCE_CHANNEL_PREFIX}${flow.id}`;
44
+ await this.client.unsubscribeFromChannel(channelKey);
45
+ }
46
+ }
47
+ exports.FlowAccessor = FlowAccessor;
48
+ class FlowInstancesAccessor extends accessors_1.ElementInstanceListAccessor {
49
+ constructor(client) {
50
+ super(client, 'flow-instances');
51
+ }
52
+ }
53
+ exports.FlowInstancesAccessor = FlowInstancesAccessor;
54
+ class FlowInstanceAccessor extends accessors_1.ElementInstanceAccessor {
55
+ constructor(client, selector) {
56
+ super({
57
+ client,
58
+ selector,
59
+ listPath: 'flow-instances',
60
+ selectorPath: 'flow-instance',
61
+ });
62
+ this.client = client;
63
+ this.selector = selector;
64
+ }
65
+ async enable() {
66
+ return this.patch({ enabled: true });
67
+ }
68
+ async disable() {
69
+ return this.patch({ enabled: false });
70
+ }
71
+ async updateToLatestFlow() {
72
+ const id = await this.getId();
73
+ return this.client.post(`/flow-instances/${id}/update-to-latest-flow`);
74
+ }
75
+ async setup() {
76
+ const id = await this.getId();
77
+ return this.client.post(`/flow-instances/${id}/setup`);
78
+ }
79
+ async reset() {
80
+ const id = await this.getId();
81
+ return this.client.post(`/flow-instances/${id}/reset`);
82
+ }
83
+ async openConfiguration(options = {}) {
84
+ const id = await this.getId();
85
+ const queryParams = {
86
+ nodeKey: options.nodeKey,
87
+ };
88
+ const uri = this.client.getEmbedUri(`/flow-instances/${id}/configuration?${query_string_1.default.stringify(queryParams)}`);
89
+ return (0, iframe_1.openIframe)(uri, {
90
+ onClose: options.onClose,
91
+ });
92
+ }
93
+ async run(options = {}) {
94
+ function onUpdate(flowRun) {
95
+ options.onUpdate && options.onUpdate(flowRun);
96
+ }
97
+ const id = await this.getId();
98
+ const flowRun = await this.client.flowRuns.create({
99
+ flowInstanceId: id,
100
+ nodeKey: options.nodeKey,
101
+ input: options.input,
102
+ });
103
+ onUpdate(flowRun);
104
+ const pusher = await this.client.getPusherInstance();
105
+ const pusherChannelName = `${flow_runs_1.FLOW_RUN_CHANNEL_PREFIX}${flowRun.id}`;
106
+ const pusherEventNameFlowRun = 'flow-run-update';
107
+ let pusherChannel;
108
+ let checkFlowRunInterval;
109
+ function cleanup() {
110
+ checkFlowRunInterval && clearInterval(checkFlowRunInterval);
111
+ pusherChannel && pusherChannel.unbind(pusherEventNameFlowRun);
112
+ pusher && pusher.unsubscribe(pusherChannelName);
113
+ }
114
+ return new Promise((resolve, reject) => {
115
+ const handleFlowRunUpdate = async (flowRun) => {
116
+ var _a, _b;
117
+ onUpdate(flowRun);
118
+ if (flowRun.state === flow_runs_1.FlowRunState.COMPLETED) {
119
+ cleanup();
120
+ resolve(flowRun);
121
+ }
122
+ else if (flowRun.state === flow_runs_1.FlowRunState.FAILED) {
123
+ cleanup();
124
+ reject(new Error(`Flow run ${flowRun.id} failed: ${(_b = (_a = flowRun.errors) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.message}`));
125
+ }
126
+ };
127
+ const fetchFlowRun = async () => {
128
+ handleFlowRunUpdate(await this.client.flowRun(flowRun.id).get());
129
+ };
130
+ let pollingFlowRun = false;
131
+ let errors = 0;
132
+ checkFlowRunInterval = setInterval(async () => {
133
+ if (!pollingFlowRun) {
134
+ pollingFlowRun = true;
135
+ try {
136
+ await fetchFlowRun();
137
+ errors = 0;
138
+ }
139
+ finally {
140
+ errors += 1;
141
+ if (errors > MAX_POLLING_ERRORS) {
142
+ cleanup();
143
+ reject(new Error(`Got ${errors} errors while polling flow run ${flowRun.id} state - aborting`));
144
+ }
145
+ pollingFlowRun = false;
146
+ }
147
+ }
148
+ }, 1000);
149
+ if (pusher) {
150
+ pusherChannel = pusher.subscribe(pusherChannelName);
151
+ pusherChannel.bind(pusherEventNameFlowRun, fetchFlowRun);
152
+ }
153
+ });
154
+ }
155
+ async subscribe(options) {
156
+ const id = await this.getId();
157
+ const channelKey = `${_1.FLOW_INSTANCE_CHANNEL_PREFIX}${id}`;
158
+ await this.client.subscribeToChannel(channelKey, options);
159
+ }
160
+ async unsubscribe() {
161
+ const id = await this.getId();
162
+ const channelKey = `${_1.FLOW_INSTANCE_CHANNEL_PREFIX}${id}`;
163
+ await this.client.unsubscribeFromChannel(channelKey);
164
+ }
165
+ }
166
+ exports.FlowInstanceAccessor = FlowInstanceAccessor;
167
+ //# sourceMappingURL=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 -0,0 +1,55 @@
1
+ import { PaginationQuery, PaginationResponse } from '../entity-repository';
2
+ import { Flow, FlowInstance, FlowNodeLink } from '.';
3
+ import { ConnectionSelector } from '../connections/api';
4
+ export interface FindFlowsRequest extends PaginationQuery {
5
+ }
6
+ export interface FindFlowsResponse extends PaginationResponse<Flow> {
7
+ }
8
+ export interface CreateFlowNodeRequest {
9
+ type: string;
10
+ config?: any;
11
+ ui?: any;
12
+ links?: FlowNodeLink[];
13
+ }
14
+ export interface CreateFlowRequest {
15
+ key: string;
16
+ name: string;
17
+ nodes: Record<string, CreateFlowNodeRequest>;
18
+ }
19
+ export interface UpdateFlowRequest extends CreateFlowRequest {
20
+ }
21
+ export interface FindFlowInstancesQuery {
22
+ id?: string;
23
+ userId?: string;
24
+ flowId?: string;
25
+ flowKey?: string;
26
+ integrationKey?: string;
27
+ integrationId?: string;
28
+ connectionId?: string;
29
+ instanceKey?: string;
30
+ enabled?: boolean;
31
+ dependencyInstanceId?: string;
32
+ }
33
+ export interface FlowInstanceSelector extends ConnectionSelector {
34
+ flowId?: string;
35
+ flowKey?: string;
36
+ instanceKey?: string;
37
+ autoCreate?: boolean;
38
+ }
39
+ export declare class FindFlowInstancesResponse extends PaginationResponse<FlowInstance> {
40
+ }
41
+ export interface CreateFlowInstanceRequest {
42
+ flowKey?: string;
43
+ name?: string;
44
+ parameters?: any;
45
+ enabled?: boolean;
46
+ }
47
+ export interface UpdateFlowInstanceRequest {
48
+ name?: string;
49
+ enabled?: boolean;
50
+ }
51
+ export interface RunFlowOptions {
52
+ nodeKey?: string;
53
+ input?: any;
54
+ onUpdate?: (...args: any) => void;
55
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FindFlowInstancesResponse = void 0;
4
+ const entity_repository_1 = require("../entity-repository");
5
+ class FindFlowInstancesResponse extends entity_repository_1.PaginationResponse {
6
+ }
7
+ exports.FindFlowInstancesResponse = FindFlowInstancesResponse;
8
+ //# sourceMappingURL=api.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api.js","sourceRoot":"","sources":["../src/flows/api.ts"],"names":[],"mappings":";;;AAAA,4DAA0E;AAgD1E,MAAa,yBAA0B,SAAQ,sCAAgC;CAAG;AAAlF,8DAAkF"}
@@ -0,0 +1,156 @@
1
+ import { JSONSchema } from './json-schema';
2
+ import { PaginationQuery, PaginationResponse } from './entity-repository';
3
+ import { ErrorData } from './errors';
4
+ import { Connection } from './connections';
5
+ import { IntegrationAppClient, SubscribeOptions } from './client';
6
+ import { IntegrationAccessor } from './integrations/accessors';
7
+ import { FlowRun } from './flow-runs';
8
+ import { User } from './users';
9
+ import { IntegrationElementInstance } from './integration-elements';
10
+ import { ConnectionAccessor } from './connections/accessors';
11
+ export declare const FLOW_CHANNEL_PREFIX = "private-flows-";
12
+ export declare const FLOW_INSTANCE_CHANNEL_PREFIX = "private-flow-instances-";
13
+ export interface FlowNode {
14
+ type: string;
15
+ name: string;
16
+ config?: any;
17
+ ui?: any;
18
+ outputSchema?: JSONSchema;
19
+ links?: FlowNodeLink[];
20
+ key?: string;
21
+ }
22
+ export interface Flow {
23
+ id: string;
24
+ key: string;
25
+ version: string;
26
+ name: string;
27
+ parametersSchema?: JSONSchema;
28
+ nodes?: Record<string, FlowNode>;
29
+ instance?: FlowInstance;
30
+ instances?: FlowInstance[];
31
+ archivedAt?: Date;
32
+ }
33
+ export interface FlowInstance {
34
+ id: string;
35
+ userId: string;
36
+ user?: User;
37
+ blueprintKey?: string;
38
+ flowId?: string;
39
+ flowVersion?: string;
40
+ connectionId?: string;
41
+ connection?: Connection;
42
+ name: string;
43
+ parameters?: any;
44
+ parametersSchema?: JSONSchema;
45
+ nodes?: Record<string, FlowInstanceNode>;
46
+ enabled: boolean;
47
+ createdAt: string;
48
+ updatedAt: string;
49
+ dependencies?: IntegrationElementInstance[];
50
+ }
51
+ export declare enum FlowInstanceNodeState {
52
+ SETTING_UP = "SETTING_UP",
53
+ SETUP_FAILED = "SETUP_FAILED",
54
+ READY = "READY"
55
+ }
56
+ export interface FlowInstanceNode extends FlowNode {
57
+ state?: FlowInstanceNodeState;
58
+ stateData?: any;
59
+ errors?: ErrorData[];
60
+ inputSchema?: JSONSchema;
61
+ userConfig?: any;
62
+ testInput?: any;
63
+ testConfig?: any;
64
+ dependencies?: IntegrationElementInstance[];
65
+ }
66
+ export interface FlowNodeLink {
67
+ key: string;
68
+ }
69
+ export interface FlowsQuery extends PaginationQuery {
70
+ }
71
+ export interface FindFlowsResponse extends PaginationResponse<Flow> {
72
+ }
73
+ export interface FindFlowInstancesQuery {
74
+ flowId?: string;
75
+ flowKey?: string;
76
+ enabled?: boolean;
77
+ parameters?: Record<string, any>;
78
+ }
79
+ export declare class FindFlowInstancesResponse extends PaginationResponse<FlowInstance> {
80
+ }
81
+ export interface CreateFlowInstanceRequest {
82
+ flowKey?: string;
83
+ name?: string;
84
+ parameters?: any;
85
+ enabled?: boolean;
86
+ blueprintKey?: string;
87
+ }
88
+ export interface UpdateFlowInstanceRequest {
89
+ name?: string;
90
+ enabled?: boolean;
91
+ }
92
+ export declare function getLinkedNodes(flow: Flow, node: FlowNode): FlowNode[];
93
+ export declare function getDownstreamNodes(flow: Flow, node: FlowNode): FlowNode[];
94
+ export declare function getUpstreamNodes(flow: Flow, node: FlowNode): FlowNode[];
95
+ export declare class IntegrationFlowsAccessor {
96
+ private client;
97
+ private integrationAccessor;
98
+ constructor(client: IntegrationAppClient, integrationAccessor: IntegrationAccessor);
99
+ find(): Promise<FindFlowsResponse>;
100
+ }
101
+ export declare class FlowAccessor {
102
+ private client;
103
+ keyOrId: string;
104
+ private baseUri;
105
+ constructor(client: IntegrationAppClient, keyOrId: string);
106
+ get(): Promise<FlowInstance>;
107
+ runAll(params: RunFlowOptions): Promise<any[]>;
108
+ subscribe(options: SubscribeOptions): Promise<void>;
109
+ unsubscribe(): Promise<void>;
110
+ }
111
+ export declare class FlowInstancesAccessor {
112
+ private client;
113
+ constructor(client: IntegrationAppClient);
114
+ find(query: FindFlowInstancesQuery): Promise<FindFlowInstancesResponse>;
115
+ }
116
+ export declare class BaseFlowInstanceAccessor {
117
+ protected client: IntegrationAppClient;
118
+ protected baseUri: string;
119
+ constructor(client: IntegrationAppClient, baseUri: string);
120
+ get(): Promise<FlowInstance>;
121
+ patch(data: any): Promise<FlowInstance>;
122
+ updateToLatestFlow(): Promise<FlowInstance>;
123
+ reset(): Promise<FlowInstance>;
124
+ openConfiguration(options?: OpenFlowConfigurationOptions): Promise<void>;
125
+ run(options?: RunFlowOptions): Promise<FlowRun>;
126
+ }
127
+ export declare class FlowInstanceAccessor extends BaseFlowInstanceAccessor {
128
+ protected client: IntegrationAppClient;
129
+ id: string;
130
+ constructor(client: IntegrationAppClient, id: string);
131
+ subscribe(options: SubscribeOptions): Promise<void>;
132
+ unsubscribe(): Promise<void>;
133
+ }
134
+ export declare class ConnectionFlowInstanceAccessor extends BaseFlowInstanceAccessor {
135
+ protected client: IntegrationAppClient;
136
+ connectionAccessor: ConnectionAccessor;
137
+ identifier: string;
138
+ constructor(client: IntegrationAppClient, connectionAccessor: ConnectionAccessor, identifier: string);
139
+ }
140
+ export declare class IntegrationFlowInstanceAccessor extends BaseFlowInstanceAccessor {
141
+ protected client: IntegrationAppClient;
142
+ integrationAccessor: IntegrationAccessor;
143
+ identifier: string;
144
+ constructor(client: IntegrationAppClient, integrationAccessor: IntegrationAccessor, identifier: string);
145
+ }
146
+ export interface OpenFlowConfigurationOptions {
147
+ onClose?: (...args: any) => void;
148
+ }
149
+ export declare function getLinkedFlowNodes(flowBlueprint: Flow, node: FlowNode): FlowNode[];
150
+ export declare function getDownstreamFlowNodes(flowBlueprint: Flow, node: FlowNode): FlowNode[];
151
+ export declare function getUpstreamFlowNodes(flowBlueprint: Flow, node: FlowNode): FlowNode[];
152
+ export interface RunFlowOptions {
153
+ nodeKey?: string;
154
+ input?: any;
155
+ onUpdate?: (...args: any) => void;
156
+ }
@@ -0,0 +1 @@
1
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CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;QACjE,CAAC,CAAC,EAAE,CAAA;AACR,CAAC;AAPD,gDAOC;AAKD,SAAgB,sBAAsB,CACpC,aAAmB,EACnB,IAAc;IAEd,MAAM,WAAW,GAAG,kBAAkB,CAAC,aAAa,EAAE,IAAI,CAAC,CAAA;IAE3D,OAAO,WAAW,CAAC,MAAM,CACvB,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,kBAAkB,CAAC,aAAa,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CACpE,CAAA;AACH,CAAC;AATD,wDASC;AAKD,SAAgB,oBAAoB,CAClC,aAAmB,EACnB,IAAc;IAEd,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CACpE,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,IAAI,IAAI,CAAC,GAAG,CAAC,CACvC,CAAA;IAED,OAAO,aAAa,CAAC,MAAM,CACzB,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,oBAAoB,CAAC,aAAa,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CACxE,CAAA;AACH,CAAC;AAXD,oDAWC"}
@@ -0,0 +1,84 @@
1
+ import { JSONSchema } from '../json-schema';
2
+ import { ErrorData } from '../errors';
3
+ import { Connection } from '../connections';
4
+ import { User } from '../users';
5
+ import { IntegrationElementInstance } from '../integration-elements';
6
+ import { Integration } from '../integrations';
7
+ import { DataFilter } from '../data-filter';
8
+ export declare const FLOW_CHANNEL_PREFIX = "private-flows-";
9
+ export declare const FLOW_INSTANCE_CHANNEL_PREFIX = "private-flow-instances-";
10
+ export interface FlowNode {
11
+ type: string;
12
+ name: string;
13
+ config?: any;
14
+ ui?: any;
15
+ inputSchema?: any;
16
+ outputSchema?: any;
17
+ outputExample?: any;
18
+ links?: FlowNodeLink[];
19
+ }
20
+ export interface Flow {
21
+ id: string;
22
+ key: string;
23
+ version: string;
24
+ name: string;
25
+ parametersSchema?: JSONSchema;
26
+ nodes?: Record<string, FlowNode>;
27
+ instance?: FlowInstance;
28
+ instances?: FlowInstance[];
29
+ archivedAt?: Date;
30
+ }
31
+ export declare enum FlowInstanceState {
32
+ SETTING_UP = "SETTING_UP",
33
+ SETUP_FAILED = "SETUP_FAILED",
34
+ READY = "READY"
35
+ }
36
+ export interface FlowInstance {
37
+ id: string;
38
+ userId: string;
39
+ user?: User;
40
+ connectionId?: string;
41
+ connection?: Connection;
42
+ flowId?: string;
43
+ flowVersion?: string;
44
+ integrationId: string;
45
+ integration?: Integration;
46
+ instanceKey?: string;
47
+ name: string;
48
+ parameters?: any;
49
+ parametersSchema?: JSONSchema;
50
+ nodes?: Record<string, FlowInstanceNode>;
51
+ enabled: boolean;
52
+ createdAt: string;
53
+ updatedAt: string;
54
+ dependencies?: IntegrationElementInstance[];
55
+ state?: FlowInstanceState;
56
+ }
57
+ export declare enum FlowInstanceNodeState {
58
+ SETTING_UP = "SETTING_UP",
59
+ SETUP_FAILED = "SETUP_FAILED",
60
+ READY = "READY"
61
+ }
62
+ export interface FlowInstanceNode extends FlowNode {
63
+ state?: FlowInstanceNodeState;
64
+ stateData?: any;
65
+ errors?: ErrorData[];
66
+ userConfig?: any;
67
+ testInput?: any;
68
+ testConfig?: any;
69
+ dependencies?: IntegrationElementInstance[];
70
+ }
71
+ export interface FlowNodeLink {
72
+ key: string;
73
+ filter?: DataFilter;
74
+ }
75
+ export interface OpenFlowInstanceConfigurationOptions {
76
+ nodeKey?: string;
77
+ onClose?: (...args: any) => void;
78
+ }
79
+ export interface RunFlowOptions {
80
+ nodeKey?: string;
81
+ input?: any;
82
+ onUpdate?: (...args: any) => void;
83
+ }
84
+ export { getFlowNode, getChildNodeKeys, getDownstreamNodeKeys, getParentNodeKeys, getUpstreamNodeKeys, getRootNodeKeys, getOrderedNodeKeys, } from './utils';
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getOrderedNodeKeys = exports.getRootNodeKeys = exports.getUpstreamNodeKeys = exports.getParentNodeKeys = exports.getDownstreamNodeKeys = exports.getChildNodeKeys = exports.getFlowNode = exports.FlowInstanceNodeState = exports.FlowInstanceState = exports.FLOW_INSTANCE_CHANNEL_PREFIX = exports.FLOW_CHANNEL_PREFIX = void 0;
4
+ exports.FLOW_CHANNEL_PREFIX = 'private-flows-';
5
+ exports.FLOW_INSTANCE_CHANNEL_PREFIX = 'private-flow-instances-';
6
+ var FlowInstanceState;
7
+ (function (FlowInstanceState) {
8
+ FlowInstanceState["SETTING_UP"] = "SETTING_UP";
9
+ FlowInstanceState["SETUP_FAILED"] = "SETUP_FAILED";
10
+ FlowInstanceState["READY"] = "READY";
11
+ })(FlowInstanceState = exports.FlowInstanceState || (exports.FlowInstanceState = {}));
12
+ var FlowInstanceNodeState;
13
+ (function (FlowInstanceNodeState) {
14
+ FlowInstanceNodeState["SETTING_UP"] = "SETTING_UP";
15
+ FlowInstanceNodeState["SETUP_FAILED"] = "SETUP_FAILED";
16
+ FlowInstanceNodeState["READY"] = "READY";
17
+ })(FlowInstanceNodeState = exports.FlowInstanceNodeState || (exports.FlowInstanceNodeState = {}));
18
+ var utils_1 = require("./utils");
19
+ Object.defineProperty(exports, "getFlowNode", { enumerable: true, get: function () { return utils_1.getFlowNode; } });
20
+ Object.defineProperty(exports, "getChildNodeKeys", { enumerable: true, get: function () { return utils_1.getChildNodeKeys; } });
21
+ Object.defineProperty(exports, "getDownstreamNodeKeys", { enumerable: true, get: function () { return utils_1.getDownstreamNodeKeys; } });
22
+ Object.defineProperty(exports, "getParentNodeKeys", { enumerable: true, get: function () { return utils_1.getParentNodeKeys; } });
23
+ Object.defineProperty(exports, "getUpstreamNodeKeys", { enumerable: true, get: function () { return utils_1.getUpstreamNodeKeys; } });
24
+ Object.defineProperty(exports, "getRootNodeKeys", { enumerable: true, get: function () { return utils_1.getRootNodeKeys; } });
25
+ Object.defineProperty(exports, "getOrderedNodeKeys", { enumerable: true, get: function () { return utils_1.getOrderedNodeKeys; } });
26
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/flows/index.ts"],"names":[],"mappings":";;;AAQa,QAAA,mBAAmB,GAAG,gBAAgB,CAAA;AACtC,QAAA,4BAA4B,GAAG,yBAAyB,CAAA;AAmFrE,IAAY,iBAIX;AAJD,WAAY,iBAAiB;IAC3B,8CAAyB,CAAA;IACzB,kDAA6B,CAAA;IAC7B,oCAAe,CAAA;AACjB,CAAC,EAJW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAI5B;AA+DD,IAAY,qBAIX;AAJD,WAAY,qBAAqB;IAC/B,kDAAyB,CAAA;IACzB,sDAA6B,CAAA;IAC7B,wCAAe,CAAA;AACjB,CAAC,EAJW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAIhC;AA6DD,iCAQgB;AAPd,oGAAA,WAAW,OAAA;AACX,yGAAA,gBAAgB,OAAA;AAChB,8GAAA,qBAAqB,OAAA;AACrB,0GAAA,iBAAiB,OAAA;AACjB,4GAAA,mBAAmB,OAAA;AACnB,wGAAA,eAAe,OAAA;AACf,2GAAA,kBAAkB,OAAA"}
@@ -0,0 +1,3 @@
1
+ import { FlowNodeSpec } from '.';
2
+ declare const _default: FlowNodeSpec;
3
+ export default _default;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const _1 = require(".");
4
+ exports.default = new _1.FlowNodeSpec({
5
+ name: 'API Trigger',
6
+ description: 'Launch flow via API',
7
+ isTrigger: true,
8
+ });
9
+ //# sourceMappingURL=api-trigger.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api-trigger.js","sourceRoot":"","sources":["../../src/flows/nodes/api-trigger.ts"],"names":[],"mappings":";;AAAA,wBAAgC;AAEhC,kBAAe,IAAI,eAAY,CAAC;IAC9B,IAAI,EAAE,aAAa;IACnB,WAAW,EAAE,qBAAqB;IAClC,SAAS,EAAE,IAAI;CAChB,CAAC,CAAA"}
@@ -0,0 +1,3 @@
1
+ import { FlowNodeSpec } from '.';
2
+ declare const _default: FlowNodeSpec;
3
+ export default _default;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const _1 = require(".");
4
+ exports.default = new _1.FlowNodeSpec({
5
+ name: 'App Event Trigger',
6
+ description: 'Trigger flow when a matching App Event is received',
7
+ isTrigger: true,
8
+ });
9
+ //# sourceMappingURL=app-event-trigger.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app-event-trigger.js","sourceRoot":"","sources":["../../src/flows/nodes/app-event-trigger.ts"],"names":[],"mappings":";;AAAA,wBAAgC;AAEhC,kBAAe,IAAI,eAAY,CAAC;IAC9B,IAAI,EAAE,mBAAmB;IACzB,WAAW,EAAE,oDAAoD;IACjE,SAAS,EAAE,IAAI;CAChB,CAAC,CAAA"}
@@ -0,0 +1,3 @@
1
+ import { FlowNodeSpec } from '.';
2
+ declare const _default: FlowNodeSpec;
3
+ export default _default;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const _1 = require(".");
4
+ exports.default = new _1.FlowNodeSpec({
5
+ name: 'Create Data Link',
6
+ description: 'Link records between your app and external app',
7
+ });
8
+ //# sourceMappingURL=create-data-link.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-data-link.js","sourceRoot":"","sources":["../../src/flows/nodes/create-data-link.ts"],"names":[],"mappings":";;AAAA,wBAAgC;AAEhC,kBAAe,IAAI,eAAY,CAAC;IAC9B,IAAI,EAAE,kBAAkB;IACxB,WAAW,EAAE,gDAAgD;CAC9D,CAAC,CAAA"}
@@ -0,0 +1,3 @@
1
+ import { FlowNodeSpec } from '.';
2
+ declare const _default: FlowNodeSpec;
3
+ export default _default;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const _1 = require(".");
4
+ exports.default = new _1.FlowNodeSpec({
5
+ name: 'Create Data Record',
6
+ description: 'Create a new data record in a collection',
7
+ });
8
+ //# sourceMappingURL=create-data-record.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-data-record.js","sourceRoot":"","sources":["../../src/flows/nodes/create-data-record.ts"],"names":[],"mappings":";;AAAA,wBAAgC;AAEhC,kBAAe,IAAI,eAAY,CAAC;IAC9B,IAAI,EAAE,oBAAoB;IAC1B,WAAW,EAAE,0CAA0C;CACxD,CAAC,CAAA"}
@@ -0,0 +1,3 @@
1
+ import { FlowNodeSpec } from '.';
2
+ declare const _default: FlowNodeSpec;
3
+ export default _default;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const _1 = require(".");
4
+ exports.default = new _1.FlowNodeSpec({
5
+ name: 'Data Record Created Trigger',
6
+ description: 'Launch flow when a data record is created in a remote data collection',
7
+ isTrigger: true,
8
+ });
9
+ //# sourceMappingURL=data-record-created-trigger.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-record-created-trigger.js","sourceRoot":"","sources":["../../src/flows/nodes/data-record-created-trigger.ts"],"names":[],"mappings":";;AAAA,wBAAgC;AAEhC,kBAAe,IAAI,eAAY,CAAC;IAC9B,IAAI,EAAE,6BAA6B;IACnC,WAAW,EACT,uEAAuE;IACzE,SAAS,EAAE,IAAI;CAChB,CAAC,CAAA"}
@@ -0,0 +1,3 @@
1
+ import { FlowNodeSpec } from '.';
2
+ declare const _default: FlowNodeSpec;
3
+ export default _default;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-record-delete-trigger.js","sourceRoot":"","sources":["../../src/flows/nodes/data-record-delete-trigger.ts"],"names":[],"mappings":";;AAAA,wBAAgC;AAEhC,kBAAe,IAAI,eAAY,CAAC;IAC9B,IAAI,EAAE,6BAA6B;IACnC,WAAW,EACT,uEAAuE;IACzE,SAAS,EAAE,IAAI;CAChB,CAAC,CAAA"}
@@ -0,0 +1,3 @@
1
+ import { FlowNodeSpec } from '.';
2
+ declare const _default: FlowNodeSpec;
3
+ export default _default;