@integration-app/react 0.1.1 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (262) hide show
  1. package/node_modules/@compwright/namecase/LICENSE +26 -0
  2. package/node_modules/@compwright/namecase/README.md +49 -0
  3. package/node_modules/@compwright/namecase/bin/namecase +28 -0
  4. package/node_modules/@compwright/namecase/dist/namecase.min.js +4 -0
  5. package/node_modules/@compwright/namecase/dist/namecase.min.js.map +1 -0
  6. package/node_modules/@compwright/namecase/package.json +46 -0
  7. package/node_modules/@compwright/namecase/src/index.js +146 -0
  8. package/node_modules/@integration-app/sdk/bundle.js +404 -262
  9. package/node_modules/@integration-app/sdk/bundle.js.map +1 -1
  10. package/node_modules/@integration-app/sdk/client.d.ts +3 -3
  11. package/node_modules/@integration-app/sdk/data-builder/formulas/case.d.ts +3 -7
  12. package/node_modules/@integration-app/sdk/data-builder/formulas/case.js +16 -32
  13. package/node_modules/@integration-app/sdk/data-builder/formulas/case.js.map +1 -1
  14. package/node_modules/@integration-app/sdk/integrations/accessors.d.ts +0 -6
  15. package/node_modules/@integration-app/sdk/integrations/accessors.js +1 -87
  16. package/node_modules/@integration-app/sdk/integrations/accessors.js.map +1 -1
  17. package/node_modules/@integration-app/sdk/json-schema/index.d.ts +1 -1
  18. package/node_modules/@integration-app/sdk/src/client.ts +3 -3
  19. package/node_modules/@integration-app/sdk/src/data-builder/formulas/case.test.ts +11 -113
  20. package/node_modules/@integration-app/sdk/src/data-builder/formulas/case.ts +22 -46
  21. package/node_modules/@integration-app/sdk/src/integrations/accessors.ts +2 -122
  22. package/node_modules/@sinclair/typebox/package.json +40 -0
  23. package/node_modules/@sinclair/typebox/readme.md +740 -0
  24. package/node_modules/@sinclair/typebox/typebox.d.ts +351 -0
  25. package/node_modules/@sinclair/typebox/typebox.js +345 -0
  26. package/node_modules/@types/node/README.md +16 -0
  27. package/node_modules/@types/node/assert.d.ts +128 -0
  28. package/node_modules/@types/node/async_hooks.d.ts +229 -0
  29. package/node_modules/@types/node/buffer.d.ts +89 -0
  30. package/node_modules/@types/node/child_process.d.ts +514 -0
  31. package/node_modules/@types/node/cluster.d.ts +265 -0
  32. package/node_modules/@types/node/console.d.ts +142 -0
  33. package/node_modules/@types/node/constants.d.ts +18 -0
  34. package/node_modules/@types/node/crypto.d.ts +1283 -0
  35. package/node_modules/@types/node/dgram.d.ts +144 -0
  36. package/node_modules/@types/node/dns.d.ts +387 -0
  37. package/node_modules/@types/node/domain.d.ts +27 -0
  38. package/node_modules/@types/node/events.d.ts +82 -0
  39. package/node_modules/@types/node/fs/promises.d.ts +572 -0
  40. package/node_modules/@types/node/fs.d.ts +2281 -0
  41. package/node_modules/@types/node/globals.d.ts +747 -0
  42. package/node_modules/@types/node/globals.global.d.ts +1 -0
  43. package/node_modules/@types/node/http.d.ts +580 -0
  44. package/node_modules/@types/node/http2.d.ts +962 -0
  45. package/node_modules/@types/node/https.d.ts +271 -0
  46. package/node_modules/@types/node/index.d.ts +98 -0
  47. package/node_modules/@types/node/inspector.d.ts +3051 -0
  48. package/node_modules/@types/node/module.d.ts +56 -0
  49. package/node_modules/@types/node/net.d.ts +308 -0
  50. package/node_modules/@types/node/os.d.ts +243 -0
  51. package/node_modules/@types/node/package.json +232 -0
  52. package/node_modules/@types/node/path.d.ts +168 -0
  53. package/node_modules/@types/node/perf_hooks.d.ts +274 -0
  54. package/node_modules/@types/node/process.d.ts +413 -0
  55. package/node_modules/@types/node/punycode.d.ts +78 -0
  56. package/node_modules/@types/node/querystring.d.ts +31 -0
  57. package/node_modules/@types/node/readline.d.ts +174 -0
  58. package/node_modules/@types/node/repl.d.ts +398 -0
  59. package/node_modules/@types/node/stream.d.ts +359 -0
  60. package/node_modules/@types/node/string_decoder.d.ts +10 -0
  61. package/node_modules/@types/node/timers.d.ts +19 -0
  62. package/node_modules/@types/node/tls.d.ts +784 -0
  63. package/node_modules/@types/node/trace_events.d.ts +64 -0
  64. package/node_modules/@types/node/ts4.8/assert.d.ts +128 -0
  65. package/node_modules/@types/node/ts4.8/async_hooks.d.ts +229 -0
  66. package/node_modules/@types/node/ts4.8/buffer.d.ts +89 -0
  67. package/node_modules/@types/node/ts4.8/child_process.d.ts +514 -0
  68. package/node_modules/@types/node/ts4.8/cluster.d.ts +265 -0
  69. package/node_modules/@types/node/ts4.8/console.d.ts +142 -0
  70. package/node_modules/@types/node/ts4.8/constants.d.ts +18 -0
  71. package/node_modules/@types/node/ts4.8/crypto.d.ts +1283 -0
  72. package/node_modules/@types/node/ts4.8/dgram.d.ts +144 -0
  73. package/node_modules/@types/node/ts4.8/dns.d.ts +387 -0
  74. package/node_modules/@types/node/ts4.8/domain.d.ts +27 -0
  75. package/node_modules/@types/node/ts4.8/events.d.ts +82 -0
  76. package/node_modules/@types/node/ts4.8/fs/promises.d.ts +572 -0
  77. package/node_modules/@types/node/ts4.8/fs.d.ts +2281 -0
  78. package/node_modules/@types/node/ts4.8/globals.d.ts +746 -0
  79. package/node_modules/@types/node/ts4.8/globals.global.d.ts +1 -0
  80. package/node_modules/@types/node/ts4.8/http.d.ts +580 -0
  81. package/node_modules/@types/node/ts4.8/http2.d.ts +962 -0
  82. package/node_modules/@types/node/ts4.8/https.d.ts +271 -0
  83. package/node_modules/@types/node/ts4.8/index.d.ts +53 -0
  84. package/node_modules/@types/node/ts4.8/inspector.d.ts +3051 -0
  85. package/node_modules/@types/node/ts4.8/module.d.ts +56 -0
  86. package/node_modules/@types/node/ts4.8/net.d.ts +308 -0
  87. package/node_modules/@types/node/ts4.8/os.d.ts +243 -0
  88. package/node_modules/@types/node/ts4.8/path.d.ts +168 -0
  89. package/node_modules/@types/node/ts4.8/perf_hooks.d.ts +274 -0
  90. package/node_modules/@types/node/ts4.8/process.d.ts +413 -0
  91. package/node_modules/@types/node/ts4.8/punycode.d.ts +78 -0
  92. package/node_modules/@types/node/ts4.8/querystring.d.ts +31 -0
  93. package/node_modules/@types/node/ts4.8/readline.d.ts +174 -0
  94. package/node_modules/@types/node/ts4.8/repl.d.ts +398 -0
  95. package/node_modules/@types/node/ts4.8/stream.d.ts +359 -0
  96. package/node_modules/@types/node/ts4.8/string_decoder.d.ts +10 -0
  97. package/node_modules/@types/node/ts4.8/timers.d.ts +19 -0
  98. package/node_modules/@types/node/ts4.8/tls.d.ts +784 -0
  99. package/node_modules/@types/node/ts4.8/trace_events.d.ts +64 -0
  100. package/node_modules/@types/node/ts4.8/tty.d.ts +69 -0
  101. package/node_modules/@types/node/ts4.8/url.d.ts +149 -0
  102. package/node_modules/@types/node/ts4.8/util.d.ts +216 -0
  103. package/node_modules/@types/node/ts4.8/v8.d.ts +190 -0
  104. package/node_modules/@types/node/ts4.8/vm.d.ts +155 -0
  105. package/node_modules/@types/node/ts4.8/wasi.d.ts +89 -0
  106. package/node_modules/@types/node/ts4.8/worker_threads.d.ts +241 -0
  107. package/node_modules/@types/node/ts4.8/zlib.d.ts +364 -0
  108. package/node_modules/@types/node/tty.d.ts +69 -0
  109. package/node_modules/@types/node/url.d.ts +149 -0
  110. package/node_modules/@types/node/util.d.ts +216 -0
  111. package/node_modules/@types/node/v8.d.ts +190 -0
  112. package/node_modules/@types/node/vm.d.ts +155 -0
  113. package/node_modules/@types/node/wasi.d.ts +89 -0
  114. package/node_modules/@types/node/worker_threads.d.ts +241 -0
  115. package/node_modules/@types/node/zlib.d.ts +364 -0
  116. package/package.json +2 -5
  117. package/node_modules/@integration-app/sdk/.DS_Store +0 -0
  118. package/node_modules/@integration-app/sdk/.gitignore +0 -11
  119. package/node_modules/@integration-app/sdk/.npmignore +0 -0
  120. package/node_modules/@integration-app/sdk/app-data-collections/app-data-collections.d.ts +0 -23
  121. package/node_modules/@integration-app/sdk/app-data-collections/app-data-collections.js.map +0 -1
  122. package/node_modules/@integration-app/sdk/app-data-schemas/app-data-schemas.d.ts +0 -20
  123. package/node_modules/@integration-app/sdk/app-data-schemas/app-data-schemas.js.map +0 -1
  124. package/node_modules/@integration-app/sdk/app-events/app-events.d.ts +0 -44
  125. package/node_modules/@integration-app/sdk/app-events/app-events.js.map +0 -1
  126. package/node_modules/@integration-app/sdk/connection-client.d.ts +0 -12
  127. package/node_modules/@integration-app/sdk/connection-client.js +0 -31
  128. package/node_modules/@integration-app/sdk/connection-client.js.map +0 -1
  129. package/node_modules/@integration-app/sdk/connections/connections.d.ts +0 -46
  130. package/node_modules/@integration-app/sdk/connections/connections.js.map +0 -1
  131. package/node_modules/@integration-app/sdk/connector-api/connector-api.d.ts +0 -157
  132. package/node_modules/@integration-app/sdk/connector-api/connector-api.js.map +0 -1
  133. package/node_modules/@integration-app/sdk/data-builder/findExternalRecordId.d.ts +0 -0
  134. package/node_modules/@integration-app/sdk/data-builder/findExternalRecordId.js.map +0 -1
  135. package/node_modules/@integration-app/sdk/data-builder/first-name.test.d.ts +0 -0
  136. package/node_modules/@integration-app/sdk/data-builder/first-name.test.js +0 -2
  137. package/node_modules/@integration-app/sdk/data-builder/first-name.test.js.map +0 -1
  138. package/node_modules/@integration-app/sdk/data-builder/formulas/anyOfOption.d.ts +0 -10
  139. package/node_modules/@integration-app/sdk/data-builder/formulas/anyOfOption.js.map +0 -1
  140. package/node_modules/@integration-app/sdk/data-builder/formulas/base.test.d.ts +0 -1
  141. package/node_modules/@integration-app/sdk/data-builder/formulas/base.test.js +0 -26
  142. package/node_modules/@integration-app/sdk/data-builder/formulas/base.test.js.map +0 -1
  143. package/node_modules/@integration-app/sdk/data-builder/formulas/case.test.d.ts +0 -1
  144. package/node_modules/@integration-app/sdk/data-builder/formulas/case.test.js +0 -246
  145. package/node_modules/@integration-app/sdk/data-builder/formulas/case.test.js.map +0 -1
  146. package/node_modules/@integration-app/sdk/data-builder/formulas/concat.test.d.ts +0 -1
  147. package/node_modules/@integration-app/sdk/data-builder/formulas/concat.test.js +0 -85
  148. package/node_modules/@integration-app/sdk/data-builder/formulas/concat.test.js.map +0 -1
  149. package/node_modules/@integration-app/sdk/data-builder/formulas/copy.test.d.ts +0 -1
  150. package/node_modules/@integration-app/sdk/data-builder/formulas/copy.test.js +0 -64
  151. package/node_modules/@integration-app/sdk/data-builder/formulas/copy.test.js.map +0 -1
  152. package/node_modules/@integration-app/sdk/data-builder/formulas/extractDate.test.d.ts +0 -1
  153. package/node_modules/@integration-app/sdk/data-builder/formulas/extractDate.test.js +0 -44
  154. package/node_modules/@integration-app/sdk/data-builder/formulas/extractDate.test.js.map +0 -1
  155. package/node_modules/@integration-app/sdk/data-builder/formulas/extractTime.test.d.ts +0 -1
  156. package/node_modules/@integration-app/sdk/data-builder/formulas/extractTime.test.js +0 -44
  157. package/node_modules/@integration-app/sdk/data-builder/formulas/extractTime.test.js.map +0 -1
  158. package/node_modules/@integration-app/sdk/data-builder/formulas/findAppRecordId.test.d.ts +0 -1
  159. package/node_modules/@integration-app/sdk/data-builder/formulas/findAppRecordId.test.js +0 -26
  160. package/node_modules/@integration-app/sdk/data-builder/formulas/findAppRecordId.test.js.map +0 -1
  161. package/node_modules/@integration-app/sdk/data-builder/formulas/findExternalRecordId.test.d.ts +0 -1
  162. package/node_modules/@integration-app/sdk/data-builder/formulas/findExternalRecordId.test.js +0 -26
  163. package/node_modules/@integration-app/sdk/data-builder/formulas/findExternalRecordId.test.js.map +0 -1
  164. package/node_modules/@integration-app/sdk/data-builder/formulas/first-name.test.d.ts +0 -1
  165. package/node_modules/@integration-app/sdk/data-builder/formulas/first-name.test.js +0 -14
  166. package/node_modules/@integration-app/sdk/data-builder/formulas/first-name.test.js.map +0 -1
  167. package/node_modules/@integration-app/sdk/data-builder/formulas/index.test.d.ts +0 -1
  168. package/node_modules/@integration-app/sdk/data-builder/formulas/index.test.js +0 -63
  169. package/node_modules/@integration-app/sdk/data-builder/formulas/index.test.js.map +0 -1
  170. package/node_modules/@integration-app/sdk/data-builder/formulas/iterate.test.d.ts +0 -1
  171. package/node_modules/@integration-app/sdk/data-builder/formulas/iterate.test.js +0 -112
  172. package/node_modules/@integration-app/sdk/data-builder/formulas/iterate.test.js.map +0 -1
  173. package/node_modules/@integration-app/sdk/data-builder/formulas/lookup.test.d.ts +0 -1
  174. package/node_modules/@integration-app/sdk/data-builder/formulas/lookup.test.js +0 -18
  175. package/node_modules/@integration-app/sdk/data-builder/formulas/lookup.test.js.map +0 -1
  176. package/node_modules/@integration-app/sdk/data-builder/formulas/map.test.d.ts +0 -1
  177. package/node_modules/@integration-app/sdk/data-builder/formulas/map.test.js +0 -114
  178. package/node_modules/@integration-app/sdk/data-builder/formulas/map.test.js.map +0 -1
  179. package/node_modules/@integration-app/sdk/data-builder/formulas/tpl.test.d.ts +0 -1
  180. package/node_modules/@integration-app/sdk/data-builder/formulas/tpl.test.js +0 -49
  181. package/node_modules/@integration-app/sdk/data-builder/formulas/tpl.test.js.map +0 -1
  182. package/node_modules/@integration-app/sdk/data-builder/formulas/types.d.ts +0 -0
  183. package/node_modules/@integration-app/sdk/data-builder/formulas/types.js.map +0 -1
  184. package/node_modules/@integration-app/sdk/data-builder/index.test.d.ts +0 -1
  185. package/node_modules/@integration-app/sdk/data-builder/index.test.js +0 -295
  186. package/node_modules/@integration-app/sdk/data-builder/index.test.js.map +0 -1
  187. package/node_modules/@integration-app/sdk/data-builder/locators.test.d.ts +0 -1
  188. package/node_modules/@integration-app/sdk/data-builder/locators.test.js +0 -775
  189. package/node_modules/@integration-app/sdk/data-builder/locators.test.js.map +0 -1
  190. package/node_modules/@integration-app/sdk/data-filter/conditions.d.ts +0 -0
  191. package/node_modules/@integration-app/sdk/data-filter/conditions.js.map +0 -1
  192. package/node_modules/@integration-app/sdk/data-filter/data-filter.test.d.ts +0 -1
  193. package/node_modules/@integration-app/sdk/data-filter/data-filter.test.js.map +0 -1
  194. package/node_modules/@integration-app/sdk/data-filter/index.test.d.ts +0 -1
  195. package/node_modules/@integration-app/sdk/data-filter/index.test.js +0 -43
  196. package/node_modules/@integration-app/sdk/data-filter/index.test.js.map +0 -1
  197. package/node_modules/@integration-app/sdk/data-filter/operators.test.d.ts +0 -1
  198. package/node_modules/@integration-app/sdk/data-filter/operators.test.js +0 -490
  199. package/node_modules/@integration-app/sdk/data-filter/operators.test.js.map +0 -1
  200. package/node_modules/@integration-app/sdk/data-links/data-links.d.ts +0 -58
  201. package/node_modules/@integration-app/sdk/data-links/data-links.js.map +0 -1
  202. package/node_modules/@integration-app/sdk/data-schema/index.test.d.ts +0 -1
  203. package/node_modules/@integration-app/sdk/data-schema/index.test.js +0 -86
  204. package/node_modules/@integration-app/sdk/data-schema/index.test.js.map +0 -1
  205. package/node_modules/@integration-app/sdk/data-sources/data-sources.d.ts +0 -41
  206. package/node_modules/@integration-app/sdk/data-sources/data-sources.js.map +0 -1
  207. package/node_modules/@integration-app/sdk/endpoints/endpoint-spec.d.ts +0 -30
  208. package/node_modules/@integration-app/sdk/endpoints/endpoint-spec.js.map +0 -1
  209. package/node_modules/@integration-app/sdk/field-mappings/field-mappings.d.ts +0 -29
  210. package/node_modules/@integration-app/sdk/field-mappings/field-mappings.js.map +0 -1
  211. package/node_modules/@integration-app/sdk/flow-runs/flow-runs.d.ts +0 -51
  212. package/node_modules/@integration-app/sdk/flow-runs/flow-runs.js.map +0 -1
  213. package/node_modules/@integration-app/sdk/flows/flows.d.ts +0 -156
  214. package/node_modules/@integration-app/sdk/flows/flows.js.map +0 -1
  215. package/node_modules/@integration-app/sdk/flows/nodes/data-record-delete-trigger.d.ts +0 -3
  216. package/node_modules/@integration-app/sdk/flows/nodes/data-record-delete-trigger.js.map +0 -1
  217. package/node_modules/@integration-app/sdk/flows/nodes/nodes.d.ts +0 -25
  218. package/node_modules/@integration-app/sdk/flows/nodes/nodes.js.map +0 -1
  219. package/node_modules/@integration-app/sdk/flows/utils.test.d.ts +0 -1
  220. package/node_modules/@integration-app/sdk/flows/utils.test.js +0 -62
  221. package/node_modules/@integration-app/sdk/flows/utils.test.js.map +0 -1
  222. package/node_modules/@integration-app/sdk/integration-elements/integration-elements.d.ts +0 -21
  223. package/node_modules/@integration-app/sdk/integration-elements/integration-elements.js.map +0 -1
  224. package/node_modules/@integration-app/sdk/integrations/integrations.d.ts +0 -48
  225. package/node_modules/@integration-app/sdk/integrations/integrations.js.map +0 -1
  226. package/node_modules/@integration-app/sdk/json-schema/json-schema.test.d.ts +0 -1
  227. package/node_modules/@integration-app/sdk/json-schema/json-schema.test.js +0 -194
  228. package/node_modules/@integration-app/sdk/json-schema/json-schema.test.js.map +0 -1
  229. package/node_modules/@integration-app/sdk/json-schema/schema-builder.test.d.ts +0 -1
  230. package/node_modules/@integration-app/sdk/json-schema/schema-builder.test.js +0 -352
  231. package/node_modules/@integration-app/sdk/json-schema/schema-builder.test.js.map +0 -1
  232. package/node_modules/@integration-app/sdk/jwt.test.d.ts +0 -1
  233. package/node_modules/@integration-app/sdk/jwt.test.js +0 -9
  234. package/node_modules/@integration-app/sdk/jwt.test.js.map +0 -1
  235. package/node_modules/@integration-app/sdk/package-lock.json +0 -3834
  236. package/node_modules/@integration-app/sdk/udm/activities.test.d.ts +0 -1
  237. package/node_modules/@integration-app/sdk/udm/activities.test.js +0 -40
  238. package/node_modules/@integration-app/sdk/udm/activities.test.js.map +0 -1
  239. package/node_modules/@integration-app/sdk/udm/campaign-members.d.ts +0 -45
  240. package/node_modules/@integration-app/sdk/udm/campaign-members.js +0 -99
  241. package/node_modules/@integration-app/sdk/udm/campaign-members.js.map +0 -1
  242. package/node_modules/@integration-app/sdk/udm/contacts.test.d.ts +0 -1
  243. package/node_modules/@integration-app/sdk/udm/contacts.test.js +0 -136
  244. package/node_modules/@integration-app/sdk/udm/contacts.test.js.map +0 -1
  245. package/node_modules/@integration-app/sdk/udm/crm-activities.d.ts +0 -17
  246. package/node_modules/@integration-app/sdk/udm/crm-activities.js.map +0 -1
  247. package/node_modules/@integration-app/sdk/udm/crm-activity.d.ts +0 -11
  248. package/node_modules/@integration-app/sdk/udm/crm-activity.js.map +0 -1
  249. package/node_modules/@integration-app/sdk/udm/crm-companies.d.ts +0 -14
  250. package/node_modules/@integration-app/sdk/udm/crm-companies.js.map +0 -1
  251. package/node_modules/@integration-app/sdk/udm/crm-contact.d.ts +0 -10
  252. package/node_modules/@integration-app/sdk/udm/crm-contact.js.map +0 -1
  253. package/node_modules/@integration-app/sdk/udm/crm-contacts.d.ts +0 -16
  254. package/node_modules/@integration-app/sdk/udm/crm-contacts.js.map +0 -1
  255. package/node_modules/@integration-app/sdk/udm/crm-deals.d.ts +0 -15
  256. package/node_modules/@integration-app/sdk/udm/crm-deals.js.map +0 -1
  257. package/node_modules/@integration-app/sdk/udm/crm-leads.d.ts +0 -16
  258. package/node_modules/@integration-app/sdk/udm/crm-leads.js.map +0 -1
  259. package/node_modules/@integration-app/sdk/udm/members.d.ts +0 -45
  260. package/node_modules/@integration-app/sdk/udm/members.js.map +0 -1
  261. package/node_modules/@integration-app/sdk/users/users.d.ts +0 -5
  262. package/node_modules/@integration-app/sdk/users/users.js.map +0 -1
@@ -1,58 +0,0 @@
1
- import { User } from './users';
2
- import { PaginationQuery, PaginationResponse } from './entity-repository';
3
- import { Connection } from './connections';
4
- import { IntegrationAppClient } from './client';
5
- export declare enum DataLinkDirection {
6
- IMPORT = "import",
7
- EXPORT = "export",
8
- BOTH = "both"
9
- }
10
- export interface DataLinkTable {
11
- id: string;
12
- key: string;
13
- name: string;
14
- }
15
- export interface DataLinkTableInstance {
16
- id: string;
17
- dataLinkTableId?: string;
18
- dataLinkTable?: DataLinkTable;
19
- connectionId?: string;
20
- connection?: Connection;
21
- userId: string;
22
- user?: User;
23
- name: string;
24
- }
25
- export interface DataLink {
26
- id: string;
27
- dataLinkTableInstanceId: string;
28
- externalRecordId: string;
29
- appRecordId: string;
30
- direction: DataLinkDirection;
31
- }
32
- export declare type DataLinkCreateRequest = Omit<DataLink, 'id' | 'userId'>;
33
- export interface FindDataLinkTablesQuery extends PaginationQuery {
34
- }
35
- export declare type FindDataLinkTablesResponse = PaginationResponse<DataLinkTable>;
36
- export interface FindDataLinkTableInstancesQuery extends PaginationQuery {
37
- connectionId?: string;
38
- }
39
- export declare type FindDataLinkTableInstancesResponse = PaginationResponse<DataLinkTableInstance>;
40
- export interface FindDataLinkQuery extends PaginationQuery {
41
- dataLinkTableInstanceId: string;
42
- externalRecordId: string;
43
- appRecordId: string;
44
- direction: DataLinkDirection;
45
- }
46
- export interface FindDataLinksQuery extends PaginationQuery {
47
- dataLinkTableInstanceId: string;
48
- direction: DataLinkDirection;
49
- }
50
- export interface DataLinkTableConfig {
51
- key: string;
52
- }
53
- export declare class ConnectionDataLinkTableInstancesAccessor {
54
- private client;
55
- private connectionId;
56
- constructor(client: IntegrationAppClient, connectionId: string);
57
- find(): Promise<FindDataLinkTableInstancesResponse>;
58
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"data-links.js","sourceRoot":"","sources":["../src/data-links/data-links.ts"],"names":[],"mappings":";;;AAKA,IAAY,iBAIX;AAJD,WAAY,iBAAiB;IAC3B,sCAAiB,CAAA;IACjB,sCAAiB,CAAA;IACjB,kCAAa,CAAA;AACf,CAAC,EAJW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAI5B;AAyED,MAAa,wCAAwC;IACnD,YACU,MAA4B,EAC5B,YAAoB;QADpB,WAAM,GAAN,MAAM,CAAsB;QAC5B,iBAAY,GAAZ,YAAY,CAAQ;IAC3B,CAAC;IAEJ,KAAK,CAAC,IAAI;QACR,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,4BAA4B,EAAE;YACnD,YAAY,EAAE,IAAI,CAAC,YAAY;SAChC,CAAC,CAAA;IACJ,CAAC;CACF;AAXD,4FAWC"}
@@ -1,86 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const _1 = require(".");
4
- describe('pickFieldsFromSchema', () => {
5
- const schema = {
6
- type: 'object',
7
- properties: {
8
- key: {
9
- type: 'string',
10
- title: 'Key',
11
- },
12
- objKey: {
13
- type: 'object',
14
- title: 'Obj Key',
15
- properties: {
16
- subKey: { type: 'number', title: 'Sub Key of Obj Key' },
17
- },
18
- },
19
- },
20
- };
21
- it('should pick top-level fields', () => {
22
- expect((0, _1.pickFieldsFromSchema)(schema, ['key'])).toEqual({
23
- type: 'object',
24
- properties: {
25
- key: schema.properties.key,
26
- },
27
- });
28
- expect((0, _1.pickFieldsFromSchema)(schema, ['key', 'objKey'])).toEqual({
29
- type: 'object',
30
- properties: {
31
- key: schema.properties.key,
32
- objKey: schema.properties.objKey,
33
- },
34
- });
35
- });
36
- it('should pick a nested key', () => {
37
- expect((0, _1.pickFieldsFromSchema)(schema, ['objKey.subKey'])).toEqual({
38
- type: 'object',
39
- properties: {
40
- objKey: {
41
- type: 'object',
42
- properties: {
43
- subKey: schema.properties.objKey.properties.subKey,
44
- },
45
- },
46
- },
47
- });
48
- });
49
- });
50
- describe('excludeFieldsFromSchema', () => {
51
- it('should exclude fields', () => {
52
- const schema = {
53
- type: 'object',
54
- properties: {
55
- key: {
56
- type: 'string',
57
- title: 'Key',
58
- },
59
- objKey: {
60
- type: 'object',
61
- title: 'Obj Key',
62
- properties: {
63
- subKey: { type: 'number', title: 'Sub Key of Obj Key' },
64
- },
65
- },
66
- },
67
- };
68
- expect((0, _1.excludeFieldsFromSchema)(schema, ['key'])).toEqual({
69
- type: 'object',
70
- properties: {
71
- objKey: schema.properties.objKey,
72
- },
73
- });
74
- expect((0, _1.excludeFieldsFromSchema)(schema, ['objKey.subKey'])).toEqual({
75
- type: 'object',
76
- properties: {
77
- key: schema.properties.key,
78
- objKey: {
79
- ...schema.properties.objKey,
80
- properties: {},
81
- },
82
- },
83
- });
84
- });
85
- });
86
- //# sourceMappingURL=index.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.test.js","sourceRoot":"","sources":["../src/data-schema/index.test.ts"],"names":[],"mappings":";;AAAA,wBAAiE;AAEjE,QAAQ,CAAC,sBAAsB,EAAE,GAAG,EAAE;IACpC,MAAM,MAAM,GAAG;QACb,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,GAAG,EAAE;gBACH,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,KAAK;aACb;YACD,MAAM,EAAE;gBACN,IA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,GAAG;YACb,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,GAAG,EAAE;oBACH,IAAI,EAAE,QAAQ;oBACd,KAAK,EAAE,KAAK;iBACb;gBACD,MAAM,EAAE;oBACN,IAAI,EAAE,QAAQ;oBACd,KAAK,EAAE,SAAS;oBAChB,UAAU,EAAE;wBACV,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,oBAAoB,EAAE;qBACxD;iBACF;aACF;SACF,CAAA;QAED,MAAM,CAAC,IAAA,0BAAuB,EAAC,MAAM,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC;YACvD,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,MAAM,EAAE,MAAM,CAAC,UAAU,CAAC,MAAM;aACjC;SACF,CAAC,CAAA;QAEF,MAAM,CAAC,IAAA,0BAAuB,EAAC,MAAM,EAAE,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC;YACjE,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,GAAG,EAAE,MAAM,CAAC,UAAU,CAAC,GAAG;gBAC1B,MAAM,EAAE;oBACN,GAAG,MAAM,CAAC,UAAU,CAAC,MAAM;oBAC3B,UAAU,EAAE,EAAE;iBACf;aACF;SACF,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
@@ -1,41 +0,0 @@
1
- import { PaginationQuery, PaginationResponse } from './entity-repository';
2
- import { User } from './users';
3
- import { Connection } from './connections';
4
- export interface DataSource {
5
- id: string;
6
- name: string;
7
- key: string;
8
- udm?: string;
9
- }
10
- export interface DataSourceInstance {
11
- id: string;
12
- uuid: string;
13
- userId: string;
14
- user?: User;
15
- dataSourceId?: string;
16
- dataSource?: DataSource;
17
- connectionId: string;
18
- connection?: Connection;
19
- udm?: string;
20
- path: string;
21
- }
22
- export interface DataSourceEvent {
23
- id: string;
24
- userId: string;
25
- user?: User;
26
- dataSourceId: string;
27
- dataSource?: DataSource;
28
- dataSourceInstanceId: string;
29
- dataSourceInstance?: DataSourceInstance;
30
- event: any;
31
- datetime: string;
32
- }
33
- export interface FindDataSourceEventsQuery extends PaginationQuery {
34
- userId?: string;
35
- dataSourceId?: string;
36
- dataSourceInstanceId?: string;
37
- startDatetime?: string;
38
- endDatetime?: string;
39
- }
40
- export interface FindDataSourceEventsResponse extends PaginationResponse<DataSourceEvent> {
41
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"data-sources.js","sourceRoot":"","sources":["../src/data-sources/data-sources.ts"],"names":[],"mappings":""}
@@ -1,30 +0,0 @@
1
- import { EndpointRequest } from 'src/endpoint-requests';
2
- import { JSONSchema, JSONSchemaType } from 'src/json-schema';
3
- export interface EndpointSpecFields {
4
- name: string;
5
- key?: string;
6
- baseUri?: string;
7
- dataRequest?: EndpointRequest;
8
- registerAppUri?: string;
9
- parametersSchema?: JSONSchema;
10
- auth?: {
11
- authorizeUri?: string;
12
- tokenUri?: string;
13
- };
14
- }
15
- export declare const OAUTH_PARAMETERS_SCHEMA: {
16
- type: JSONSchemaType;
17
- properties: {
18
- client_id: {
19
- type: JSONSchemaType;
20
- };
21
- client_secret: {
22
- type: JSONSchemaType;
23
- };
24
- };
25
- };
26
- export declare class EndpointSpec {
27
- constructor(opts: EndpointSpecFields);
28
- }
29
- export interface EndpointSpec extends EndpointSpecFields {
30
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"endpoint-spec.js","sourceRoot":"","sources":["../src/endpoints/endpoint-spec.ts"],"names":[],"mappings":";;;AACA,gDAA2D;AAgB9C,QAAA,uBAAuB,GAAG;IACrC,IAAI,EAAE,4BAAc,CAAC,MAAM;IAC3B,UAAU,EAAE;QACV,SAAS,EAAE,EAAE,IAAI,EAAE,4BAAc,CAAC,MAAM,EAAE;QAC1C,aAAa,EAAE,EAAE,IAAI,EAAE,4BAAc,CAAC,MAAM,EAAE;KAC/C;CACF,CAAA;AAED,MAAM,6BAA6B,GAAG;IACpC,OAAO,EAAE,GAAG;IACZ,IAAI,EAAE;QACJ,YAAY,EAAE,YAAY;QAC1B,QAAQ,EAAE,QAAQ;KACnB;IACD,cAAc,EAAE,cAAc;CAC/B,CAAA;AAED,MAAa,YAAY;IACvB,YAAY,IAAwB;QAClC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,6BAA6B,EAAE,IAAI,CAAC,CAAA;IAC1D,CAAC;CACF;AAJD,oCAIC"}
@@ -1,29 +0,0 @@
1
- import { IntegrationElement, IntegrationElementInstance } from './integration-elements';
2
- import { User } from './users';
3
- export declare enum FieldMappingDirection {
4
- IMPORT = "import",
5
- EXPORT = "export",
6
- BIDIRECTIONAL = "bidirectional"
7
- }
8
- export interface FieldMapping {
9
- id: string;
10
- name: string;
11
- key: string;
12
- externalElement: IntegrationElement;
13
- appElement: IntegrationElement;
14
- direction: FieldMappingDirection;
15
- defaultImportValue?: any;
16
- defaultExportValue?: any;
17
- archivedAt?: Date;
18
- }
19
- export interface FieldMappingInstance {
20
- id: string;
21
- userId: string;
22
- user?: User;
23
- fieldMappingId?: string;
24
- fieldMapping?: FieldMapping;
25
- externalElementInstance?: IntegrationElementInstance;
26
- appElementInstance?: IntegrationElementInstance;
27
- importValue?: any;
28
- exportValue?: any;
29
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"field-mappings.js","sourceRoot":"","sources":["../src/field-mappings/field-mappings.ts"],"names":[],"mappings":";;;AAMA,IAAY,qBAIX;AAJD,WAAY,qBAAqB;IAC/B,0CAAiB,CAAA;IACjB,0CAAiB,CAAA;IACjB,wDAA+B,CAAA;AACjC,CAAC,EAJW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAIhC"}
@@ -1,51 +0,0 @@
1
- import { ErrorData } from './errors';
2
- import { PaginationResponse, PaginationQuery } from './entity-repository';
3
- import { FlowNodeRun } from './flow-node-runs';
4
- import { IntegrationAppClient } from './client';
5
- import { User } from './users';
6
- import { FlowInstance } from './flows';
7
- export declare const FLOW_RUN_CHANNEL_PREFIX = "private-flow-runs-";
8
- export declare enum FlowRunState {
9
- RUNNING = "running",
10
- COMPLETED = "completed",
11
- FAILED = "failed"
12
- }
13
- export interface FlowRun {
14
- id: string;
15
- flowInstanceId: string;
16
- flowInstance?: FlowInstance;
17
- startNodeKey: string;
18
- userId: string;
19
- user?: User;
20
- flowBlueprintKey?: string;
21
- input?: any;
22
- state: FlowRunState;
23
- startTime: Date;
24
- endTime?: Date;
25
- errors?: ErrorData[];
26
- nodeRuns?: FlowNodeRun[];
27
- }
28
- export interface CreateFlowRunRequest {
29
- flowInstanceId: string;
30
- nodeKey?: string;
31
- input?: any;
32
- }
33
- export declare class FlowRunsQuery extends PaginationQuery {
34
- flowInstanceId?: string;
35
- flowBlueprintKey?: string;
36
- userId?: string;
37
- }
38
- export declare class FindFlowRunsResponse extends PaginationResponse<FlowRun> {
39
- }
40
- export declare class FlowRunsAccessor {
41
- private readonly client;
42
- constructor(client: IntegrationAppClient);
43
- find(query: FlowRunsQuery): Promise<FindFlowRunsResponse>;
44
- }
45
- export declare class FlowRunAccessor {
46
- private readonly client;
47
- id: string;
48
- private baseUri;
49
- constructor(client: IntegrationAppClient, id: string);
50
- getOutput(): Promise<any>;
51
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"flow-runs.js","sourceRoot":"","sources":["../src/flow-runs/flow-runs.ts"],"names":[],"mappings":";;;AACA,2DAAyE;AAS5D,QAAA,uBAAuB,GAAG,oBAAoB,CAAA;AAE3D,IAAY,YAIX;AAJD,WAAY,YAAY;IACtB,mCAAmB,CAAA;IACnB,uCAAuB,CAAA;IACvB,iCAAiB,CAAA;AACnB,CAAC,EAJW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAIvB;AAsCD,MAAa,aAAc,SAAQ,mCAAe;CAIjD;AAJD,sCAIC;AAED,MAAa,oBAAqB,SAAQ,sCAA2B;CAAG;AAAxE,oDAAwE;AAExE,MAAa,gBAAgB;IAC3B,YAA6B,MAA4B;QAA5B,WAAM,GAAN,MAAM,CAAsB;IAAG,CAAC;IAE7D,KAAK,CAAC,IAAI,CAAC,KAAoB;QAC7B,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,YAAY,EAAE,KAAK,CAAC,CAAA;IAC7C,CAAC;CACF;AAND,4CAMC;AAED,MAAa,eAAe;IAG1B,YACmB,MAA4B,EACtC,EAAU;QADA,WAAM,GAAN,MAAM,CAAsB;QACtC,OAAE,GAAF,EAAE,CAAQ;QAEjB,IAAI,CAAC,OAAO,GAAG,cAAc,EAAE,EAAE,CAAA;IACnC,CAAC;IAED,KAAK,CAAC,SAAS;QACb,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,OAAO,SAAS,CAAC,CAAA;IAClD,CAAC;CACF;AAbD,0CAaC"}
@@ -1,156 +0,0 @@
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
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"flows.js","sourceRoot":"","sources":["../src/flows/flows.ts"],"names":[],"mappings":";;;AACA,2DAAyE;AAIzE,qCAAqC;AAErC,2CAA4E;AAM5E,MAAM,kBAAkB,GAAG,EAAE,CAAA;AAChB,QAAA,mBAAmB,GAAG,gBAAgB,CAAA;AACtC,QAAA,4BAA4B,GAAG,yBAAyB,CAAA;AAyIrE,IAAY,qBAIX;AAJD,WAAY,qBAAqB;IAC/B,kDAAyB,CAAA;IACzB,sDAA6B,CAAA;IAC7B,wCAAe,CAAA;AACjB,CAAC,EAJW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAIhC;AAmED,MAAa,yBAA0B,SAAQ,sCAAgC;CAAG;AAAlF,8DAAkF;AA0BlF,SAAgB,cAAc,CAAC,IAAU,EAAE,IAAc;IACvD,OAAO,IAAI,CAAC,KAAK;QACf,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,YAAY,CAAC,IAAI,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAC;QAChE,CAAC,CAAC,EAAE,CAAA;AACR,CAAC;AAJD,wCAIC;AAKD,SAAgB,kBAAkB,CAAC,IAAU,EAAE,IAAc;IAC3D,MAAM,WAAW,GAAG,cAAc,CAAC,IAAI,EAAE,IAAI,CAAC,CAAA;IAE9C,OAAO,WAAW,CAAC,MAAM,CACvB,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,cAAc,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CACvD,CAAA;AACH,CAAC;AAND,gDAMC;AAKD,SAAgB,gBAAgB,CAAC,IAAU,EAAE,IAAc;IACzD,MAAM,aA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CAAC;CACF;AARD,0EAQC;AASD,SAAgB,kBAAkB,CAChC,aAAmB,EACnB,IAAc;IAEd,OAAO,IAAI,CAAC,KAAK;QACf,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,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"}
@@ -1,3 +0,0 @@
1
- import { FlowNodeSpec } from '.';
2
- declare const _default: FlowNodeSpec;
3
- export default _default;
@@ -1 +0,0 @@
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"}
@@ -1,25 +0,0 @@
1
- export declare enum FlowNodeType {
2
- ApiTrigger = "api-trigger",
3
- ScheduleTrigger = "schedule-trigger",
4
- AppEventTrigger = "app-event-trigger",
5
- DataRecordCreatedTrigger = "data-record-created-trigger",
6
- DataRecordUpdatedTrigger = "data-record-updated-trigger",
7
- DataRecordDeletedTrigger = "data-record-deleted-trigger",
8
- TransformData = "transform-data",
9
- ListDataRecords = "list-data-records",
10
- FindDataRecords = "find-data-records",
11
- FindDataRecordById = "find-data-record-by-id",
12
- CreateDataRecord = "create-data-record",
13
- UpdateDataRecord = "update-data-record",
14
- DeleteDataRecord = "delete-data-record",
15
- HttpRequest = "http-request",
16
- Filter = "filter",
17
- CreateDataLink = "create-data-link",
18
- FindDataLink = "find-data-link"
19
- }
20
- export interface FlowNodeSpec {
21
- name: string;
22
- description: string;
23
- isTrigger?: boolean;
24
- }
25
- export declare const FLOW_NODE_SPECS: Record<FlowNodeType, FlowNodeSpec>;
@@ -1 +0,0 @@
1
- {"version":3,"file":"nodes.js","sourceRoot":"","sources":["../../src/flows/nodes/nodes.ts"],"names":[],"mappings":";;;AAAA,IAAY,YAmBX;AAnBD,WAAY,YAAY;IACtB,0CAA0B,CAAA;IAC1B,oDAAoC,CAAA;IACpC,qDAAqC,CAAA;IACrC,wEAAwD,CAAA;IACxD,wEAAwD,CAAA;IACxD,wEAAwD,CAAA;IAExD,gDAAgC,CAAA;IAChC,qDAAqC,CAAA;IACrC,qDAAqC,CAAA;IACrC,6DAA6C,CAAA;IAC7C,uDAAuC,CAAA;IACvC,uDAAuC,CAAA;IACvC,uDAAuC,CAAA;IACvC,4CAA4B,CAAA;IAC5B,iCAAiB,CAAA;IACjB,mDAAmC,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BAAoB;QAC1B,WAAW,EAAE,0CAA0C;KACxD;IACD,CAAC,YAAY,CAAC,gBAAgB,CAAC,EAAE;QAC/B,IAAI,EAAE,oBAAoB;QAC1B,WAAW,EAAE,uDAAuD;KACrE;IACD,CAAC,YAAY,CAAC,gBAAgB,CAAC,EAAE;QAC/B,IAAI,EAAE,oBAAoB;QAC1B,WAAW,EAAE,yDAAyD;KACvE;IACD,CAAC,YAAY,CAAC,aAAa,CAAC,EAAE;QAC5B,IAAI,EAAE,gBAAgB;QACtB,WAAW,EACT,2EAA2E;KAC9E;IACD,CAAC,YAAY,CAAC,WAAW,CAAC,EAAE;QAC1B,IAAI,EAAE,cAAc;QACpB,WAAW,EAAE,kCAAkC;KAChD;IACD,CAAC,YAAY,CAAC,MAAM,CAAC,EAAE;QACrB,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,iDAAiD;KAC/D;IACD,CAAC,YAAY,CAAC,cAAc,CAAC,EAAE;QAC7B,IAAI,EAAE,kBAAkB;QACxB,WAAW,EAAE,gDAAgD;KAC9D;IACD,CAAC,YAAY,CAAC,YAAY,CAAC,EAAE;QAC3B,IAAI,EAAE,gBAAgB;QACtB,WAAW,EAAE,0DAA0D;KACxE;CACF,CAAA"}
@@ -1,62 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const utils_1 = require("./utils");
4
- describe('flows/utils', () => {
5
- it('should return nodes in order layer by layer', () => {
6
- const flow = {
7
- nodes: {
8
- 'root-1': {
9
- links: [
10
- {
11
- key: 'child-level-1-1',
12
- },
13
- {
14
- key: 'child-level-1-2',
15
- },
16
- ],
17
- },
18
- 'root-2': {
19
- links: [
20
- {
21
- key: 'child-level-1-2',
22
- },
23
- {
24
- key: 'child-level-1-3',
25
- },
26
- ],
27
- },
28
- 'child-level-1-1': {
29
- links: [
30
- {
31
- key: 'child-level-2-1',
32
- },
33
- ],
34
- },
35
- 'child-level-1-2': {},
36
- 'child-level-1-3': {
37
- links: [
38
- {
39
- key: 'child-level-2-1',
40
- },
41
- {
42
- key: 'child-level-2-2',
43
- },
44
- ],
45
- },
46
- 'child-level-2-1': {},
47
- 'child-level-2-2': {},
48
- },
49
- };
50
- const keysInOrder = [
51
- 'root-1',
52
- 'root-2',
53
- 'child-level-1-1',
54
- 'child-level-1-2',
55
- 'child-level-1-3',
56
- 'child-level-2-1',
57
- 'child-level-2-2',
58
- ];
59
- expect((0, utils_1.getOrderedNodeKeys)(flow)).toEqual(keysInOrder);
60
- });
61
- });
62
- //# sourceMappingURL=utils.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.test.js","sourceRoot":"","sources":["../src/flows/utils.test.ts"],"names":[],"mappings":";;AACA,mCAA4C;AAE5C,QAAQ,CAAC,aAAa,EAAE,GAAG,EAAE;IAC3B,EAAE,CAAC,6CAA6C,EAAE,GAAG,EAAE;QACrD,MAAM,IAAI,GAAG;YACX,KAAK,EAAE;gBACL,QAAQ,EAAE;oBACR,KAAK,EAAE;wBACL;4BACE,GAAG,EAAE,iBAAiB;yBACvB;wBACD;4BACE,GAAG,EAAE,iBAAiB;yBACvB;qBACF;iBACF;gBACD,QAAQ,EAAE;oBACR,KAAK,EAAE;wBACL;4BACE,GAAG,EAAE,iBAAiB;yBACvB;wBACD;4BACE,GAAG,EAAE,iBAAiB;yBACvB;qBACF;iBACF;gBACD,iBAAiB,EAAE;oBACjB,KAAK,EAAE;wBACL;4BACE,GAAG,EAAE,iBAAiB;yBACvB;qBACF;iBACF;gBACD,iBAAiB,EAAE,EAAE;gBACrB,iBAAiB,EAAE;oBACjB,KAAK,EAAE;wBACL;4BACE,GAAG,EAAE,iBAAiB;yBACvB;wBACD;4BACE,GAAG,EAAE,iBAAiB;yBACvB;qBACF;iBACF;gBACD,iBAAiB,EAAE,EAAE;gBACrB,iBAAiB,EAAE,EAAE;aACtB;SACF,CAAA;QAED,MAAM,WAAW,GAAG;YAClB,QAAQ;YACR,QAAQ;YACR,iBAAiB;YACjB,iBAAiB;YACjB,iBAAiB;YACjB,iBAAiB;YACjB,iBAAiB;SAClB,CAAA;QAED,MAAM,CAAC,IAAA,0BAAkB,EAAC,IAAmB,CAAC,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC,CAAA;IACtE,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
@@ -1,21 +0,0 @@
1
- export declare enum IntegrationElementType {
2
- APP_DATA_SCHEMA = "app-data-schema",
3
- APP_EVENT_TYPE = "app-event-type",
4
- APP_DATA_COLLECTION = "app-data-collection",
5
- DATA_SOURCE = "data-source",
6
- SCHEMA = "schema",
7
- FIELD_MAPPING = "field-mapping",
8
- FLOW = "flow",
9
- INTEGRATION = "integration"
10
- }
11
- export interface IntegrationElement {
12
- type: IntegrationElementType;
13
- key?: string;
14
- config?: any;
15
- }
16
- export interface IntegrationElementInstance {
17
- type: IntegrationElementType;
18
- id?: string;
19
- instanceId?: string;
20
- config?: any;
21
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"integration-elements.js","sourceRoot":"","sources":["../src/integration-elements/integration-elements.ts"],"names":[],"mappings":";;;AAAA,IAAY,sBASX;AATD,WAAY,sBAAsB;IAChC,6DAAmC,CAAA;IACnC,2DAAiC,CAAA;IACjC,qEAA2C,CAAA;IAC3C,qDAA2B,CAAA;IAC3B,2CAAiB,CAAA;IACjB,yDAA+B,CAAA;IAC/B,uCAAa,CAAA;IACb,qDAA2B,CAAA;AAC7B,CAAC,EATW,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QASjC"}