@membranehq/sdk 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (319) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +32 -0
  3. package/dist/bundle.d.ts +2543 -0
  4. package/dist/bundle.js +26089 -0
  5. package/dist/bundle.js.map +1 -0
  6. package/dist/dts/__mocks__/axios.d.ts +4 -0
  7. package/dist/dts/_helper.d.ts +7 -0
  8. package/dist/dts/_helper.test.d.ts +1 -0
  9. package/dist/dts/accessors.d.ts +85 -0
  10. package/dist/dts/accessors.test.d.ts +1 -0
  11. package/dist/dts/actions/accessors.d.ts +49 -0
  12. package/dist/dts/actions/action-types.d.ts +26 -0
  13. package/dist/dts/actions/index.d.ts +3 -0
  14. package/dist/dts/actions/types.d.ts +95 -0
  15. package/dist/dts/alerts/index.d.ts +1 -0
  16. package/dist/dts/alerts/types.d.ts +24 -0
  17. package/dist/dts/api-client.d.ts +32 -0
  18. package/dist/dts/api-client.test.d.ts +1 -0
  19. package/dist/dts/app-data-schemas/accessors.d.ts +18 -0
  20. package/dist/dts/app-data-schemas/api.d.ts +33 -0
  21. package/dist/dts/app-data-schemas/index.d.ts +23 -0
  22. package/dist/dts/app-events/accessors.d.ts +20 -0
  23. package/dist/dts/app-events/api.d.ts +44 -0
  24. package/dist/dts/app-events/index.d.ts +42 -0
  25. package/dist/dts/apps/index.d.ts +1 -0
  26. package/dist/dts/apps/types.d.ts +18 -0
  27. package/dist/dts/auth/accessors.d.ts +10 -0
  28. package/dist/dts/auth/index.d.ts +7 -0
  29. package/dist/dts/client.d.ts +70 -0
  30. package/dist/dts/connections/accessors.d.ts +88 -0
  31. package/dist/dts/connections/api.d.ts +27 -0
  32. package/dist/dts/connections/create-or-update-connection.d.ts +14 -0
  33. package/dist/dts/connections/index.d.ts +3 -0
  34. package/dist/dts/connections/types.d.ts +52 -0
  35. package/dist/dts/connector-copilot/index.d.ts +1 -0
  36. package/dist/dts/connector-copilot/types.d.ts +160 -0
  37. package/dist/dts/connectors/auth.d.ts +171 -0
  38. package/dist/dts/connectors/constants.d.ts +5 -0
  39. package/dist/dts/connectors/data-locations/base.d.ts +10 -0
  40. package/dist/dts/connectors/data-locations/collections/events/implementation-types/connector-event.d.ts +14 -0
  41. package/dist/dts/connectors/data-locations/collections/events/implementation-types/custom-pull.d.ts +14 -0
  42. package/dist/dts/connectors/data-locations/collections/events/implementation-types/full-scan.d.ts +7 -0
  43. package/dist/dts/connectors/data-locations/collections/events/implementation-types/pull-latest-records.d.ts +17 -0
  44. package/dist/dts/connectors/data-locations/collections/events/implementation-types/webhook.d.ts +18 -0
  45. package/dist/dts/connectors/data-locations/collections/events/index.d.ts +50 -0
  46. package/dist/dts/connectors/data-locations/collections/events/methods.d.ts +15 -0
  47. package/dist/dts/connectors/data-locations/collections/index.d.ts +70 -0
  48. package/dist/dts/connectors/data-locations/collections/methods/base.d.ts +24 -0
  49. package/dist/dts/connectors/data-locations/collections/methods/create.d.ts +7 -0
  50. package/dist/dts/connectors/data-locations/collections/methods/delete.d.ts +2 -0
  51. package/dist/dts/connectors/data-locations/collections/methods/find-by-id.d.ts +2 -0
  52. package/dist/dts/connectors/data-locations/collections/methods/find.d.ts +6 -0
  53. package/dist/dts/connectors/data-locations/collections/methods/list.d.ts +5 -0
  54. package/dist/dts/connectors/data-locations/collections/methods/match.d.ts +5 -0
  55. package/dist/dts/connectors/data-locations/collections/methods/search.d.ts +2 -0
  56. package/dist/dts/connectors/data-locations/collections/methods/update.d.ts +6 -0
  57. package/dist/dts/connectors/data-locations/directories/index.d.ts +17 -0
  58. package/dist/dts/connectors/data-locations/directories/methods/base.d.ts +18 -0
  59. package/dist/dts/connectors/data-locations/directories/methods/list.d.ts +2 -0
  60. package/dist/dts/connectors/data-locations/index.d.ts +6 -0
  61. package/dist/dts/connectors/data-locations/methods.d.ts +6 -0
  62. package/dist/dts/connectors/data-locations/types.d.ts +258 -0
  63. package/dist/dts/connectors/data-locations/utils.d.ts +17 -0
  64. package/dist/dts/connectors/data-locations/utils.test.d.ts +1 -0
  65. package/dist/dts/connectors/data-records.d.ts +7 -0
  66. package/dist/dts/connectors/events/index.d.ts +1 -0
  67. package/dist/dts/connectors/events/types.d.ts +36 -0
  68. package/dist/dts/connectors/global-webhooks/index.d.ts +1 -0
  69. package/dist/dts/connectors/global-webhooks/types.d.ts +33 -0
  70. package/dist/dts/connectors/graphql-api.d.ts +17 -0
  71. package/dist/dts/connectors/index.d.ts +13 -0
  72. package/dist/dts/connectors/methods.d.ts +44 -0
  73. package/dist/dts/connectors/openapi.d.ts +11 -0
  74. package/dist/dts/connectors/operations/handlers.d.ts +9 -0
  75. package/dist/dts/connectors/operations/index.d.ts +2 -0
  76. package/dist/dts/connectors/operations/types.d.ts +26 -0
  77. package/dist/dts/connectors/rest-api.d.ts +67 -0
  78. package/dist/dts/connectors/types.d.ts +75 -0
  79. package/dist/dts/connectors/udm.d.ts +14 -0
  80. package/dist/dts/data-builder/formula-processors.d.ts +13 -0
  81. package/dist/dts/data-builder/formula-processors.test.d.ts +1 -0
  82. package/dist/dts/data-builder/formula-types.d.ts +4 -0
  83. package/dist/dts/data-builder/formulas/and.d.ts +9 -0
  84. package/dist/dts/data-builder/formulas/and.test.d.ts +1 -0
  85. package/dist/dts/data-builder/formulas/base.d.ts +47 -0
  86. package/dist/dts/data-builder/formulas/case.d.ts +18 -0
  87. package/dist/dts/data-builder/formulas/case.test.d.ts +1 -0
  88. package/dist/dts/data-builder/formulas/concat.d.ts +19 -0
  89. package/dist/dts/data-builder/formulas/concat.test.d.ts +1 -0
  90. package/dist/dts/data-builder/formulas/copy.d.ts +10 -0
  91. package/dist/dts/data-builder/formulas/copy.test.d.ts +1 -0
  92. package/dist/dts/data-builder/formulas/dataSchemaRef.d.ts +22 -0
  93. package/dist/dts/data-builder/formulas/dataSchemaRef.test.d.ts +1 -0
  94. package/dist/dts/data-builder/formulas/domainFromEmail.d.ts +10 -0
  95. package/dist/dts/data-builder/formulas/domainFromEmail.test.d.ts +1 -0
  96. package/dist/dts/data-builder/formulas/eval.d.ts +28 -0
  97. package/dist/dts/data-builder/formulas/eval.test.d.ts +1 -0
  98. package/dist/dts/data-builder/formulas/extractDate.d.ts +11 -0
  99. package/dist/dts/data-builder/formulas/extractDate.test.d.ts +1 -0
  100. package/dist/dts/data-builder/formulas/extractTime.d.ts +11 -0
  101. package/dist/dts/data-builder/formulas/extractTime.test.d.ts +1 -0
  102. package/dist/dts/data-builder/formulas/findAppRecordId.d.ts +17 -0
  103. package/dist/dts/data-builder/formulas/findAppRecordId.test.d.ts +1 -0
  104. package/dist/dts/data-builder/formulas/findExternalRecordId.d.ts +17 -0
  105. package/dist/dts/data-builder/formulas/findExternalRecordId.test.d.ts +1 -0
  106. package/dist/dts/data-builder/formulas/first-name.d.ts +10 -0
  107. package/dist/dts/data-builder/formulas/first-name.test.d.ts +1 -0
  108. package/dist/dts/data-builder/formulas/firstNotEmpty.d.ts +7 -0
  109. package/dist/dts/data-builder/formulas/firstNotEmpty.test.d.ts +1 -0
  110. package/dist/dts/data-builder/formulas/formula.d.ts +8 -0
  111. package/dist/dts/data-builder/formulas/formula.test.d.ts +1 -0
  112. package/dist/dts/data-builder/formulas/index.d.ts +26 -0
  113. package/dist/dts/data-builder/formulas/index.test.d.ts +1 -0
  114. package/dist/dts/data-builder/formulas/iterate.d.ts +19 -0
  115. package/dist/dts/data-builder/formulas/iterate.test.d.ts +1 -0
  116. package/dist/dts/data-builder/formulas/jsonata.d.ts +8 -0
  117. package/dist/dts/data-builder/formulas/jsonata.test.d.ts +1 -0
  118. package/dist/dts/data-builder/formulas/last-name.d.ts +11 -0
  119. package/dist/dts/data-builder/formulas/last-name.test.d.ts +1 -0
  120. package/dist/dts/data-builder/formulas/lookup.d.ts +12 -0
  121. package/dist/dts/data-builder/formulas/lookup.test.d.ts +1 -0
  122. package/dist/dts/data-builder/formulas/map.d.ts +17 -0
  123. package/dist/dts/data-builder/formulas/map.test.d.ts +1 -0
  124. package/dist/dts/data-builder/formulas/mergeObjects.d.ts +12 -0
  125. package/dist/dts/data-builder/formulas/mergeObjects.test.d.ts +1 -0
  126. package/dist/dts/data-builder/formulas/or.d.ts +9 -0
  127. package/dist/dts/data-builder/formulas/or.test.d.ts +1 -0
  128. package/dist/dts/data-builder/formulas/plain.d.ts +8 -0
  129. package/dist/dts/data-builder/formulas/plain.test.d.ts +1 -0
  130. package/dist/dts/data-builder/formulas/record.d.ts +11 -0
  131. package/dist/dts/data-builder/formulas/record.test.d.ts +1 -0
  132. package/dist/dts/data-builder/formulas/tpl.d.ts +15 -0
  133. package/dist/dts/data-builder/formulas/tpl.test.d.ts +1 -0
  134. package/dist/dts/data-builder/formulas/types.d.ts +27 -0
  135. package/dist/dts/data-builder/formulas/var.d.ts +11 -0
  136. package/dist/dts/data-builder/formulas/var.test.d.ts +1 -0
  137. package/dist/dts/data-builder/index.d.ts +9 -0
  138. package/dist/dts/data-builder/index.test.d.ts +1 -0
  139. package/dist/dts/data-builder/locators.d.ts +44 -0
  140. package/dist/dts/data-builder/locators.test.d.ts +1 -0
  141. package/dist/dts/data-collections/index.d.ts +1 -0
  142. package/dist/dts/data-collections/types.d.ts +24 -0
  143. package/dist/dts/data-filter/index.d.ts +13 -0
  144. package/dist/dts/data-filter/index.test.d.ts +1 -0
  145. package/dist/dts/data-filter/operators.d.ts +13 -0
  146. package/dist/dts/data-filter/operators.test.d.ts +1 -0
  147. package/dist/dts/data-form/data-field.d.ts +7 -0
  148. package/dist/dts/data-form/index.d.ts +21 -0
  149. package/dist/dts/data-links/accessors.d.ts +20 -0
  150. package/dist/dts/data-links/api.d.ts +56 -0
  151. package/dist/dts/data-links/index.d.ts +36 -0
  152. package/dist/dts/data-schema/create.d.ts +2 -0
  153. package/dist/dts/data-schema/create.test.d.ts +1 -0
  154. package/dist/dts/data-schema/data-field.d.ts +14 -0
  155. package/dist/dts/data-schema/index.d.ts +5 -0
  156. package/dist/dts/data-schema/merge.d.ts +10 -0
  157. package/dist/dts/data-schema/merge.test.d.ts +1 -0
  158. package/dist/dts/data-schema/types.d.ts +35 -0
  159. package/dist/dts/data-schema/utils.d.ts +47 -0
  160. package/dist/dts/data-schema/utils.test.d.ts +1 -0
  161. package/dist/dts/data-sources/accessors.d.ts +64 -0
  162. package/dist/dts/data-sources/api.d.ts +90 -0
  163. package/dist/dts/data-sources/constants.d.ts +4 -0
  164. package/dist/dts/data-sources/index.d.ts +4 -0
  165. package/dist/dts/data-sources/types.d.ts +63 -0
  166. package/dist/dts/date-time/index.d.ts +1 -0
  167. package/dist/dts/date-time/parse.d.ts +1 -0
  168. package/dist/dts/date-time/parse.test.d.ts +1 -0
  169. package/dist/dts/datetime.d.ts +1 -0
  170. package/dist/dts/entity-repository.d.ts +24 -0
  171. package/dist/dts/errors/error-doc-enum.d.ts +7 -0
  172. package/dist/dts/errors/index.d.ts +105 -0
  173. package/dist/dts/external-events/accessors.d.ts +19 -0
  174. package/dist/dts/external-events/api.d.ts +22 -0
  175. package/dist/dts/external-events/index.d.ts +8 -0
  176. package/dist/dts/external-events/types.d.ts +157 -0
  177. package/dist/dts/field-mappings/accessors.d.ts +54 -0
  178. package/dist/dts/field-mappings/api.d.ts +58 -0
  179. package/dist/dts/field-mappings/index.d.ts +66 -0
  180. package/dist/dts/field-mappings/merge/is-object.test.d.ts +1 -0
  181. package/dist/dts/field-mappings/merge/merge-with-formulas.d.ts +2 -0
  182. package/dist/dts/field-mappings/merge/merge-with-formulas.test.d.ts +1 -0
  183. package/dist/dts/field-mappings/types.d.ts +12 -0
  184. package/dist/dts/flow-runs/accessors.d.ts +33 -0
  185. package/dist/dts/flow-runs/flow-node-runs.d.ts +42 -0
  186. package/dist/dts/flow-runs/index.d.ts +78 -0
  187. package/dist/dts/flows/accessors.d.ts +75 -0
  188. package/dist/dts/flows/api.d.ts +54 -0
  189. package/dist/dts/flows/index.d.ts +6 -0
  190. package/dist/dts/flows/nodes/api-request-to-external-app.d.ts +3 -0
  191. package/dist/dts/flows/nodes/api-request-to-your-app.d.ts +3 -0
  192. package/dist/dts/flows/nodes/api-trigger.d.ts +3 -0
  193. package/dist/dts/flows/nodes/app-event-trigger.d.ts +3 -0
  194. package/dist/dts/flows/nodes/base.d.ts +17 -0
  195. package/dist/dts/flows/nodes/connector-event-trigger.d.ts +3 -0
  196. package/dist/dts/flows/nodes/create-data-link.d.ts +3 -0
  197. package/dist/dts/flows/nodes/create-data-record.d.ts +3 -0
  198. package/dist/dts/flows/nodes/custom-http-request.d.ts +3 -0
  199. package/dist/dts/flows/nodes/data-record-created-trigger.d.ts +3 -0
  200. package/dist/dts/flows/nodes/data-record-deleted-trigger.d.ts +3 -0
  201. package/dist/dts/flows/nodes/data-record-updated-trigger.d.ts +3 -0
  202. package/dist/dts/flows/nodes/delete-data-link.d.ts +3 -0
  203. package/dist/dts/flows/nodes/delete-data-record.d.ts +3 -0
  204. package/dist/dts/flows/nodes/filter.d.ts +3 -0
  205. package/dist/dts/flows/nodes/find-data-link.d.ts +3 -0
  206. package/dist/dts/flows/nodes/find-data-record-by-id.d.ts +3 -0
  207. package/dist/dts/flows/nodes/find-data-records.d.ts +3 -0
  208. package/dist/dts/flows/nodes/find-or-create-data-record.d.ts +3 -0
  209. package/dist/dts/flows/nodes/for-each-v2.d.ts +3 -0
  210. package/dist/dts/flows/nodes/for-each.d.ts +3 -0
  211. package/dist/dts/flows/nodes/index.d.ts +37 -0
  212. package/dist/dts/flows/nodes/integration-specific-operation.d.ts +3 -0
  213. package/dist/dts/flows/nodes/list-data-records.d.ts +3 -0
  214. package/dist/dts/flows/nodes/lookup-data-record.d.ts +3 -0
  215. package/dist/dts/flows/nodes/run-action.d.ts +3 -0
  216. package/dist/dts/flows/nodes/run-javascript.d.ts +3 -0
  217. package/dist/dts/flows/nodes/schedule-trigger.d.ts +3 -0
  218. package/dist/dts/flows/nodes/search-data-records.d.ts +3 -0
  219. package/dist/dts/flows/nodes/transform-data.d.ts +3 -0
  220. package/dist/dts/flows/nodes/update-data-record.d.ts +3 -0
  221. package/dist/dts/flows/schemas.d.ts +240 -0
  222. package/dist/dts/flows/types.d.ts +77 -0
  223. package/dist/dts/flows/utils.d.ts +16 -0
  224. package/dist/dts/flows/utils.test.d.ts +1 -0
  225. package/dist/dts/http-requests.d.ts +37 -0
  226. package/dist/dts/iframe.d.ts +11 -0
  227. package/dist/dts/index.d.ts +41 -0
  228. package/dist/dts/index.umd.d.ts +2 -0
  229. package/dist/dts/integration-elements/common.d.ts +3 -0
  230. package/dist/dts/integration-elements/connection-level-element.accessor.d.ts +29 -0
  231. package/dist/dts/integration-elements/index.d.ts +74 -0
  232. package/dist/dts/integration-elements/integration-level-element.accessor.d.ts +25 -0
  233. package/dist/dts/integrations/accessors.d.ts +58 -0
  234. package/dist/dts/integrations/api.d.ts +23 -0
  235. package/dist/dts/integrations/index.d.ts +3 -0
  236. package/dist/dts/integrations/types.d.ts +38 -0
  237. package/dist/dts/jwt.d.ts +1 -0
  238. package/dist/dts/jwt.test.d.ts +1 -0
  239. package/dist/dts/logging/index.d.ts +8 -0
  240. package/dist/dts/logging/index.test.d.ts +1 -0
  241. package/dist/dts/logging/types.d.ts +13 -0
  242. package/dist/dts/orgs/index.d.ts +1 -0
  243. package/dist/dts/orgs/types.d.ts +59 -0
  244. package/dist/dts/scenarios/accessors.d.ts +9 -0
  245. package/dist/dts/scenarios/index.d.ts +2 -0
  246. package/dist/dts/scenarios/types.d.ts +145 -0
  247. package/dist/dts/screens/accessors.d.ts +9 -0
  248. package/dist/dts/screens/index.d.ts +2 -0
  249. package/dist/dts/screens/types.d.ts +37 -0
  250. package/dist/dts/udm/activities.d.ts +143 -0
  251. package/dist/dts/udm/activities.test.d.ts +1 -0
  252. package/dist/dts/udm/base.d.ts +62 -0
  253. package/dist/dts/udm/bills.d.ts +3 -0
  254. package/dist/dts/udm/campaign-members.d.ts +3 -0
  255. package/dist/dts/udm/campaigns.d.ts +3 -0
  256. package/dist/dts/udm/companies.d.ts +3 -0
  257. package/dist/dts/udm/contact-lists.d.ts +3 -0
  258. package/dist/dts/udm/contacts.d.ts +3 -0
  259. package/dist/dts/udm/credit-notes.d.ts +3 -0
  260. package/dist/dts/udm/customers.d.ts +3 -0
  261. package/dist/dts/udm/deal-products.d.ts +3 -0
  262. package/dist/dts/udm/deal-stages.d.ts +3 -0
  263. package/dist/dts/udm/deals.d.ts +3 -0
  264. package/dist/dts/udm/documents.d.ts +59 -0
  265. package/dist/dts/udm/drive-items.d.ts +78 -0
  266. package/dist/dts/udm/drives.d.ts +46 -0
  267. package/dist/dts/udm/eeocs.d.ts +3 -0
  268. package/dist/dts/udm/emails.d.ts +115 -0
  269. package/dist/dts/udm/employees.d.ts +3 -0
  270. package/dist/dts/udm/files.d.ts +73 -0
  271. package/dist/dts/udm/folders.d.ts +66 -0
  272. package/dist/dts/udm/index.d.ts +53 -0
  273. package/dist/dts/udm/invoices.d.ts +3 -0
  274. package/dist/dts/udm/job-applications.d.ts +3 -0
  275. package/dist/dts/udm/job-candidates.d.ts +3 -0
  276. package/dist/dts/udm/job-interviews.d.ts +3 -0
  277. package/dist/dts/udm/job-offers.d.ts +3 -0
  278. package/dist/dts/udm/jobs.d.ts +3 -0
  279. package/dist/dts/udm/journal-entries.d.ts +3 -0
  280. package/dist/dts/udm/leads.d.ts +3 -0
  281. package/dist/dts/udm/ledger-accounts.d.ts +3 -0
  282. package/dist/dts/udm/meetings.d.ts +98 -0
  283. package/dist/dts/udm/messages.d.ts +51 -0
  284. package/dist/dts/udm/notes.d.ts +61 -0
  285. package/dist/dts/udm/orders.d.ts +3 -0
  286. package/dist/dts/udm/payments.d.ts +3 -0
  287. package/dist/dts/udm/payrolls.d.ts +3 -0
  288. package/dist/dts/udm/products.d.ts +3 -0
  289. package/dist/dts/udm/projects.d.ts +3 -0
  290. package/dist/dts/udm/suppliers.d.ts +3 -0
  291. package/dist/dts/udm/tasks.d.ts +104 -0
  292. package/dist/dts/udm/tax-rates.d.ts +3 -0
  293. package/dist/dts/udm/timeoff-balances.d.ts +3 -0
  294. package/dist/dts/udm/timeoff-requests.d.ts +3 -0
  295. package/dist/dts/udm/users.d.ts +3 -0
  296. package/dist/dts/usage/index.d.ts +1 -0
  297. package/dist/dts/usage/types.d.ts +33 -0
  298. package/dist/dts/users/accessors.d.ts +10 -0
  299. package/dist/dts/users/api.d.ts +23 -0
  300. package/dist/dts/users/index.d.ts +13 -0
  301. package/dist/dts/variables.d.ts +27 -0
  302. package/dist/dts/webhooks/index.d.ts +1 -0
  303. package/dist/dts/webhooks/types.d.ts +11 -0
  304. package/dist/dts/workspace-elements/index.d.ts +1 -0
  305. package/dist/dts/workspace-elements/types.d.ts +77 -0
  306. package/dist/dts/workspace-elements-catalog/index.d.ts +27 -0
  307. package/dist/dts/workspace-updates/index.d.ts +1 -0
  308. package/dist/dts/workspace-updates/types.d.ts +6 -0
  309. package/dist/dts/workspaces/api.d.ts +5 -0
  310. package/dist/dts/workspaces/constants.d.ts +4 -0
  311. package/dist/dts/workspaces/index.d.ts +3 -0
  312. package/dist/dts/workspaces/types.d.ts +175 -0
  313. package/dist/index.d.ts +5022 -0
  314. package/dist/index.js +11815 -0
  315. package/dist/index.js.map +1 -0
  316. package/dist/index.module.d.mts +5022 -0
  317. package/dist/index.module.mjs +11551 -0
  318. package/dist/index.module.mjs.map +1 -0
  319. package/package.json +96 -0
@@ -0,0 +1,38 @@
1
+ import { Connection } from '../connections';
2
+ import { ConnectorAuthSpec, ConnectorAuthType, ConnectorSpec } from '../connectors';
3
+ import { DataSchema } from '../data-schema';
4
+ import { ErrorData } from '../errors';
5
+ import { WorkspaceElement, WorkspaceElementState } from '../workspace-elements';
6
+ export interface Integration extends WorkspaceElement {
7
+ state?: WorkspaceElementState;
8
+ errors?: ErrorData[];
9
+ logoUri: string;
10
+ connectorId?: string;
11
+ connectorVersion?: string;
12
+ authOptions?: IntegrationAuthOption[];
13
+ oAuthCallbackUri?: string;
14
+ parametersSchema?: DataSchema;
15
+ parameters?: any;
16
+ baseUri: string;
17
+ connection?: Connection;
18
+ archivedAt?: string;
19
+ spec?: ConnectorSpec;
20
+ hasMissingParameters?: boolean;
21
+ hasDocumentation?: boolean;
22
+ hasOperations?: boolean;
23
+ hasData?: boolean;
24
+ hasEvents?: boolean;
25
+ hasGlobalWebhooks?: boolean;
26
+ hasUdm?: boolean;
27
+ isTest?: boolean;
28
+ appUuid?: string;
29
+ isDeactivated?: boolean;
30
+ authType?: ConnectorAuthType;
31
+ }
32
+ export type IntegrationAuthOption = ConnectorAuthSpec & {
33
+ key: string;
34
+ };
35
+ export type AppliedToIntegrations<Element> = {
36
+ element: Element;
37
+ integration: Integration;
38
+ }[];
@@ -0,0 +1 @@
1
+ export declare function decodeJWT(token: string | undefined): any;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,8 @@
1
+ import { Readable } from 'node:stream';
2
+ export * from './types';
3
+ export type WithExecutionLogs<T extends Record<string, any>> = T & {
4
+ logs?: any[];
5
+ };
6
+ export declare function isStream(obj: any): boolean;
7
+ export declare function streamToString(stream: Readable): Promise<string>;
8
+ export declare function truncateData(data: any, depth?: number): any;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,13 @@
1
+ export declare enum LogRecordType {
2
+ MSG = "message",
3
+ TEXT = "text",
4
+ ERR = "error",
5
+ DATA = "data",
6
+ COMP = "compare",
7
+ API = "api-request"
8
+ }
9
+ export interface LogRecord {
10
+ type?: LogRecordType;
11
+ msg?: string;
12
+ data?: any;
13
+ }
@@ -0,0 +1 @@
1
+ export * from './types';
@@ -0,0 +1,59 @@
1
+ export declare enum OrgLimitsType {
2
+ NUMBER_OF_WORKSPACES = "numberOfWorkspaces",
3
+ TODAY_USAGE = "todayUsage",
4
+ LAST_THIRTY_DAY_USAGE = "lastThirtyDayUsage"
5
+ }
6
+ export interface OrgLimits {
7
+ [OrgLimitsType.NUMBER_OF_WORKSPACES]?: number;
8
+ [OrgLimitsType.TODAY_USAGE]?: number;
9
+ [OrgLimitsType.LAST_THIRTY_DAY_USAGE]?: number;
10
+ }
11
+ export interface Org {
12
+ id: string;
13
+ key: string;
14
+ secret?: string;
15
+ name: string;
16
+ createdAt: Date;
17
+ updatedAt: Date;
18
+ trialEndDate?: string;
19
+ lastTrialExtensionDate?: string;
20
+ limits?: OrgLimits;
21
+ lastThirtyDayUsagePercent?: number;
22
+ todayUsagePercent?: number;
23
+ }
24
+ export declare enum OrgUserRole {
25
+ Admin = "admin",
26
+ Member = "member"
27
+ }
28
+ export declare enum OrgUserStatus {
29
+ Invited = "invited",
30
+ Active = "active"
31
+ }
32
+ export interface PlatformUser {
33
+ id: string;
34
+ email: string;
35
+ name: string;
36
+ trialRequested: boolean;
37
+ }
38
+ export interface OrgUser {
39
+ id: string;
40
+ orgId: string;
41
+ userId: string;
42
+ role: OrgUserRole;
43
+ status: OrgUserStatus;
44
+ workspaces: string[];
45
+ user: PlatformUser;
46
+ }
47
+ export interface OrgWorkspace {
48
+ id: string;
49
+ key: string;
50
+ name: string;
51
+ orgId: string;
52
+ logoUri?: string;
53
+ secret: string;
54
+ createdAt: Date;
55
+ updatedAt: Date;
56
+ archivedAt?: Date;
57
+ trialEndDate?: string;
58
+ featureFlags?: string[];
59
+ }
@@ -0,0 +1,9 @@
1
+ import { ElementAccessor, ElementListAccessor } from '../accessors';
2
+ import { IntegrationAppApiClient } from '../api-client';
3
+ import { CreateScenarioRequest, FindScenariosQuery, UpdateScenarioRequest, Scenario } from './types';
4
+ export declare class ScenariosAccessor extends ElementListAccessor<Scenario, FindScenariosQuery, CreateScenarioRequest> {
5
+ constructor(client: IntegrationAppApiClient);
6
+ }
7
+ export declare class ScenarioAccessor extends ElementAccessor<Scenario, UpdateScenarioRequest> {
8
+ constructor(client: IntegrationAppApiClient, selector: string);
9
+ }
@@ -0,0 +1,2 @@
1
+ export * from './types';
2
+ export * from './accessors';
@@ -0,0 +1,145 @@
1
+ import { CreateActionRequest } from '../actions';
2
+ import { CreateAppDataSchemaRequest } from '../app-data-schemas';
3
+ import { CreateAppEventTypeRequest } from '../app-events';
4
+ import { MinimalConnector } from '../connectors';
5
+ import { CreateDataLinkTableRequest } from '../data-links';
6
+ import { CreateDataSourceRequest } from '../data-sources';
7
+ import { SearchQuery, PaginationQuery } from '../entity-repository';
8
+ import { CreateFieldMappingRequest } from '../field-mappings';
9
+ import { CreateFlowRequest } from '../flows';
10
+ import { IntegrationElementType } from '../integration-elements';
11
+ import { Integration } from '../integrations';
12
+ import { WorkspaceElement } from '../workspace-elements';
13
+ export interface Scenario extends WorkspaceElement {
14
+ appId: string;
15
+ scenarioTemplateId?: string;
16
+ elements?: ScenarioElement[];
17
+ connectors?: MinimalConnector[];
18
+ todos?: ScenarioToDo[];
19
+ appliedToIntegrations?: Integration[];
20
+ archivedAt?: string;
21
+ }
22
+ export type ScenarioToDo = {
23
+ name: string;
24
+ description: string;
25
+ isComplete: boolean;
26
+ };
27
+ export type ScenarioElement = {
28
+ id: string;
29
+ type: IntegrationElementType;
30
+ element?: any;
31
+ };
32
+ export interface FindScenariosQuery extends SearchQuery, PaginationQuery {
33
+ }
34
+ export interface CreateScenarioRequest {
35
+ name: string;
36
+ key: string;
37
+ elements?: ScenarioElement[];
38
+ todos?: ScenarioToDo[];
39
+ }
40
+ export interface UpdateScenarioRequest {
41
+ name?: string;
42
+ key?: string;
43
+ elements?: ScenarioElement[];
44
+ todos?: ScenarioToDo[];
45
+ }
46
+ export interface ScenarioTemplate {
47
+ id: string;
48
+ name: string;
49
+ key: string;
50
+ shortDescription?: string;
51
+ description?: string;
52
+ demoWorkspaceKey?: string;
53
+ demoAppUri?: string;
54
+ demoGithubRepo?: string;
55
+ demoVideoYoutubeUri?: string;
56
+ tags?: ScenarioTemplateCategory[];
57
+ elements?: ScenarioTemplateElements;
58
+ todos?: Omit<ScenarioToDo, 'isComplete'>[];
59
+ connectors?: MinimalConnector[];
60
+ handyElements?: HandyScenarioTemplateElement[];
61
+ }
62
+ export declare enum ScenarioTemplateCategory {
63
+ DataExport = "data-export",
64
+ DataImport = "data-import",
65
+ BiDirectionalSync = "bi-directional-sync",
66
+ UnifiedApi = "unified-api",
67
+ DataEnrichment = "data-enrichment"
68
+ }
69
+ export interface FindScenarioTemplatesQuery extends SearchQuery, PaginationQuery {
70
+ }
71
+ export interface CreateScenarioTemplateRequest {
72
+ name: string;
73
+ shortDescription?: string;
74
+ description?: string;
75
+ demoWorkspaceKey?: string;
76
+ demoAppUri?: string;
77
+ demoGithubRepo?: string;
78
+ demoVideoYoutubeUri?: string;
79
+ tags?: string[];
80
+ elements?: ScenarioTemplateElements;
81
+ todos?: Omit<ScenarioToDo, 'isComplete'>[];
82
+ }
83
+ export interface UpdateScenarioTemplateRequest {
84
+ name?: string;
85
+ key?: string;
86
+ shortDescription?: string;
87
+ description?: string;
88
+ demoWorkspaceKey?: string;
89
+ demoAppUri?: string;
90
+ demoGithubRepo?: string;
91
+ demoVideoYoutubeUri?: string;
92
+ tags?: string[];
93
+ elements?: ScenarioTemplateElements;
94
+ todos?: Omit<ScenarioToDo, 'isComplete'>[];
95
+ }
96
+ export type ScenarioTemplateElementOverride = {
97
+ type: IntegrationElementType;
98
+ originalKey: string;
99
+ name: string;
100
+ key: string;
101
+ };
102
+ export type ScenarioTemplateKeyCollision = {
103
+ type: IntegrationElementType;
104
+ key: string;
105
+ };
106
+ export type ScenarioTemplateIntegration = {
107
+ id?: string;
108
+ connectorId: string;
109
+ key: string;
110
+ name: string;
111
+ logoUri: string;
112
+ };
113
+ type WithIntegrationKeys<T> = T & {
114
+ integrationKeys?: string[];
115
+ };
116
+ type ElementsExportFeilds = {
117
+ flows?: Record<string, WithIntegrationKeys<CreateFlowRequest>>;
118
+ actions?: Record<string, WithIntegrationKeys<CreateActionRequest>>;
119
+ fieldMappings?: Record<string, WithIntegrationKeys<CreateFieldMappingRequest>>;
120
+ dataSources?: Record<string, WithIntegrationKeys<CreateDataSourceRequest>>;
121
+ dataLinkTables?: Record<string, CreateDataLinkTableRequest>;
122
+ appEventTypes?: Record<string, CreateAppEventTypeRequest>;
123
+ appDataSchemas?: Record<string, CreateAppDataSchemaRequest>;
124
+ };
125
+ export type ScenarioTemplateElements = ElementsExportFeilds & {
126
+ integrations?: Record<string, ElementsExportFeilds & {
127
+ connectorId: string;
128
+ }>;
129
+ };
130
+ export interface HandyScenarioTemplateElement {
131
+ type: IntegrationElementType;
132
+ integration?: {
133
+ key: string;
134
+ connectorId: string;
135
+ };
136
+ integrations?: {
137
+ key: string;
138
+ connectorId: string;
139
+ }[];
140
+ fields: {
141
+ key: string;
142
+ name: string;
143
+ } & Record<string, any>;
144
+ }
145
+ export {};
@@ -0,0 +1,9 @@
1
+ import { ElementAccessor, ElementListAccessor } from '../accessors';
2
+ import { IntegrationAppApiClient } from '../api-client';
3
+ import { Screen, ScreenSelector, CreateScreenRequest, FindScreensQuery, UpdateScreenRequest } from './types';
4
+ export declare class ScreensAccessor extends ElementListAccessor<Screen, FindScreensQuery, CreateScreenRequest> {
5
+ constructor(client: IntegrationAppApiClient);
6
+ }
7
+ export declare class ScreenAccessor extends ElementAccessor<Screen, UpdateScreenRequest, ScreenSelector> {
8
+ constructor(client: IntegrationAppApiClient, selector: ScreenSelector | string);
9
+ }
@@ -0,0 +1,2 @@
1
+ export * from './accessors';
2
+ export * from './types';
@@ -0,0 +1,37 @@
1
+ import { PaginationQuery } from '../entity-repository';
2
+ import { WorkspaceElement } from '../workspace-elements';
3
+ export declare enum ScreenType {
4
+ Integration = "integration"
5
+ }
6
+ export declare enum ScreenBlockType {
7
+ Flow = "flow",
8
+ FieldMapping = "field-mapping",
9
+ DataSource = "data-source",
10
+ Action = "action"
11
+ }
12
+ export interface ScreenBlock {
13
+ type: ScreenBlockType;
14
+ [key: string]: any;
15
+ }
16
+ export interface ScreenSelector {
17
+ id?: string;
18
+ type?: ScreenType;
19
+ key?: string;
20
+ autoCreate?: boolean;
21
+ connectionId?: string;
22
+ }
23
+ export interface UpdateScreenRequest {
24
+ blocks?: ScreenBlock[];
25
+ key?: string;
26
+ }
27
+ export interface CreateScreenRequest extends UpdateScreenRequest {
28
+ type: ScreenType;
29
+ }
30
+ export interface FindScreensQuery extends PaginationQuery {
31
+ type?: ScreenType;
32
+ }
33
+ export interface Screen extends Omit<WorkspaceElement, 'key'> {
34
+ type: ScreenType;
35
+ key?: string;
36
+ blocks: ScreenBlock[];
37
+ }
@@ -0,0 +1,143 @@
1
+ import { UnifiedDataModel } from './base';
2
+ export declare const FIELDS_SCHEMA: {
3
+ type: string;
4
+ properties: {
5
+ id: {
6
+ type: string;
7
+ readOnly: boolean;
8
+ };
9
+ title: {
10
+ type: string;
11
+ };
12
+ description: {
13
+ type: string;
14
+ };
15
+ type: {
16
+ type: string;
17
+ };
18
+ durationSeconds: {
19
+ type: string;
20
+ };
21
+ location: {
22
+ type: string;
23
+ };
24
+ isRecurrent: {
25
+ type: string;
26
+ };
27
+ participants: {
28
+ type: string;
29
+ items: {
30
+ type: string;
31
+ properties: {
32
+ userId: {
33
+ type: string;
34
+ };
35
+ contactId: {
36
+ type: string;
37
+ };
38
+ };
39
+ };
40
+ };
41
+ status: {
42
+ type: string;
43
+ };
44
+ contactId: {
45
+ type: string;
46
+ referenceUdm: string;
47
+ };
48
+ companyId: {
49
+ type: string;
50
+ referenceUdm: string;
51
+ };
52
+ dealId: {
53
+ type: string;
54
+ referenceUdm: string;
55
+ };
56
+ leadId: {
57
+ type: string;
58
+ referenceUdm: string;
59
+ };
60
+ ownerId: {
61
+ type: string;
62
+ referenceUdm: string;
63
+ };
64
+ startTime: {
65
+ type: string;
66
+ format: string;
67
+ };
68
+ endTime: {
69
+ type: string;
70
+ format: string;
71
+ };
72
+ dueTime: {
73
+ type: string;
74
+ format: string;
75
+ };
76
+ createdTime: {
77
+ type: string;
78
+ format: string;
79
+ readOnly: boolean;
80
+ };
81
+ createdBy: {
82
+ type: string;
83
+ referenceUdm: string;
84
+ readOnly: boolean;
85
+ };
86
+ updatedTime: {
87
+ type: string;
88
+ format: string;
89
+ readOnly: boolean;
90
+ };
91
+ updatedBy: {
92
+ type: string;
93
+ referenceUdm: string;
94
+ readOnly: boolean;
95
+ };
96
+ };
97
+ };
98
+ export declare const FallbackFieldsMap: {
99
+ fromActivitiesToTasks: {
100
+ subject: {
101
+ $var: string;
102
+ };
103
+ content: {
104
+ $var: string;
105
+ };
106
+ };
107
+ fromTasksToActivities: {
108
+ title: {
109
+ $var: string;
110
+ };
111
+ description: {
112
+ $var: string;
113
+ };
114
+ };
115
+ fromActivitiesToNotes: {
116
+ content: {
117
+ $var: string;
118
+ };
119
+ };
120
+ fromNotesToActivities: {
121
+ description: {
122
+ $var: string;
123
+ };
124
+ };
125
+ fromActivitiesToEmails: {
126
+ subject: {
127
+ $var: string;
128
+ };
129
+ body: {
130
+ $var: string;
131
+ };
132
+ };
133
+ fromEmailsToActivities: {
134
+ title: {
135
+ $var: string;
136
+ };
137
+ description: {
138
+ $var: string;
139
+ };
140
+ };
141
+ };
142
+ declare const udm: UnifiedDataModel;
143
+ export default udm;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,62 @@
1
+ import { DataCollectionCreateSpec, DataCollectionDeleteSpec, DataCollectionFindSpec, DataCollectionListSpec, DataCollectionMatchSpec, DataCollectionUpdateSpec } from '../connectors/data-locations';
2
+ import { CONNECTOR_CATEGORIES } from '../connectors/types';
3
+ export interface UnifiedDataModel {
4
+ singularName: string;
5
+ pluralName: string;
6
+ fieldsSchema: any;
7
+ description?: string;
8
+ categories?: (typeof CONNECTOR_CATEGORIES)[number][];
9
+ normalizeFields?: (fields: Record<string, any>) => Record<string, any>;
10
+ populateFields?: (fields: Record<string, any>) => Record<string, any>;
11
+ list?: DataCollectionListSpec;
12
+ find?: DataCollectionFindSpec;
13
+ match?: DataCollectionMatchSpec;
14
+ create?: DataCollectionCreateSpec;
15
+ update?: DataCollectionUpdateSpec;
16
+ delete?: DataCollectionDeleteSpec;
17
+ udmFallbacks?: Array<UDMFallback>;
18
+ fieldFallbacks?: Record<string, FieldFallbackValues>;
19
+ }
20
+ export interface UDMFallback {
21
+ udm: string;
22
+ importFields?: Record<string, any>;
23
+ exportFields?: Record<string, any>;
24
+ }
25
+ export type FieldFallbackValues = any[];
26
+ export declare const AddressSchema: {
27
+ type: string;
28
+ properties: {
29
+ type: {
30
+ type: string;
31
+ };
32
+ full: {
33
+ type: string;
34
+ };
35
+ street: {
36
+ type: string;
37
+ };
38
+ city: {
39
+ type: string;
40
+ };
41
+ state: {
42
+ type: string;
43
+ };
44
+ country: {
45
+ type: string;
46
+ };
47
+ zip: {
48
+ type: string;
49
+ };
50
+ };
51
+ };
52
+ export declare const PhoneEmailSchema: {
53
+ type: string;
54
+ properties: {
55
+ value: {
56
+ type: string;
57
+ };
58
+ type: {
59
+ type: string;
60
+ };
61
+ };
62
+ };
@@ -0,0 +1,3 @@
1
+ import { UnifiedDataModel } from './base';
2
+ declare const udm: UnifiedDataModel;
3
+ export default udm;
@@ -0,0 +1,3 @@
1
+ import { UnifiedDataModel } from './base';
2
+ declare const udm: UnifiedDataModel;
3
+ export default udm;
@@ -0,0 +1,3 @@
1
+ import { UnifiedDataModel } from './base';
2
+ declare const udm: UnifiedDataModel;
3
+ export default udm;
@@ -0,0 +1,3 @@
1
+ import { UnifiedDataModel } from './base';
2
+ declare const udm: UnifiedDataModel;
3
+ export default udm;
@@ -0,0 +1,3 @@
1
+ import { UnifiedDataModel } from './base';
2
+ declare const udm: UnifiedDataModel;
3
+ export default udm;
@@ -0,0 +1,3 @@
1
+ import { UnifiedDataModel } from './base';
2
+ declare const udm: UnifiedDataModel;
3
+ export default udm;
@@ -0,0 +1,3 @@
1
+ import { UnifiedDataModel } from './base';
2
+ declare const udm: UnifiedDataModel;
3
+ export default udm;
@@ -0,0 +1,3 @@
1
+ import { UnifiedDataModel } from './base';
2
+ declare const udm: UnifiedDataModel;
3
+ export default udm;
@@ -0,0 +1,3 @@
1
+ import { UnifiedDataModel } from './base';
2
+ declare const udm: UnifiedDataModel;
3
+ export default udm;
@@ -0,0 +1,3 @@
1
+ import { UnifiedDataModel } from './base';
2
+ declare const udm: UnifiedDataModel;
3
+ export default udm;
@@ -0,0 +1,3 @@
1
+ import { UnifiedDataModel } from './base';
2
+ declare const udm: UnifiedDataModel;
3
+ export default udm;
@@ -0,0 +1,59 @@
1
+ import { UnifiedDataModel } from './base';
2
+ export declare const FIELDS_SCHEMA: {
3
+ type: string;
4
+ properties: {
5
+ id: {
6
+ type: string;
7
+ readOnly: boolean;
8
+ };
9
+ uri: {
10
+ type: string;
11
+ readOnly: boolean;
12
+ };
13
+ title: {
14
+ type: string;
15
+ };
16
+ parentDocumentId: {
17
+ type: string;
18
+ referenceUdm: string;
19
+ };
20
+ canHaveChildren: {
21
+ type: string;
22
+ readOnly: boolean;
23
+ };
24
+ isDownloadable: {
25
+ type: string;
26
+ readOnly: boolean;
27
+ default: boolean;
28
+ };
29
+ text: {
30
+ type: string;
31
+ };
32
+ ownerId: {
33
+ type: string;
34
+ referenceUdm: string;
35
+ };
36
+ createdTime: {
37
+ type: string;
38
+ format: string;
39
+ readOnly: boolean;
40
+ };
41
+ createdBy: {
42
+ type: string;
43
+ referenceUdm: string;
44
+ readOnly: boolean;
45
+ };
46
+ updatedTime: {
47
+ type: string;
48
+ format: string;
49
+ readOnly: boolean;
50
+ };
51
+ updatedBy: {
52
+ type: string;
53
+ referenceUdm: string;
54
+ readOnly: boolean;
55
+ };
56
+ };
57
+ };
58
+ declare const udm: UnifiedDataModel;
59
+ export default udm;