@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,78 @@
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
+ itemType: {
10
+ type: string;
11
+ enum: string[];
12
+ allowCustom: boolean;
13
+ };
14
+ name: {
15
+ type: string;
16
+ };
17
+ mimeType: {
18
+ type: string;
19
+ };
20
+ description: {
21
+ type: string;
22
+ };
23
+ previewUri: {
24
+ type: string;
25
+ readOnly: boolean;
26
+ };
27
+ size: {
28
+ type: string;
29
+ readOnly: boolean;
30
+ };
31
+ path: {
32
+ type: string;
33
+ readOnly: boolean;
34
+ };
35
+ folderId: {
36
+ type: string;
37
+ referenceUdm: string;
38
+ };
39
+ ownerId: {
40
+ type: string;
41
+ referenceUdm: string;
42
+ };
43
+ driveId: {
44
+ type: string;
45
+ referenceUdm: string;
46
+ };
47
+ downloadUri: {
48
+ type: string;
49
+ readOnly: boolean;
50
+ };
51
+ uri: {
52
+ type: string;
53
+ readOnly: boolean;
54
+ };
55
+ createdTime: {
56
+ type: string;
57
+ format: string;
58
+ readOnly: boolean;
59
+ };
60
+ createdBy: {
61
+ type: string;
62
+ referenceUdm: string;
63
+ readOnly: boolean;
64
+ };
65
+ updatedTime: {
66
+ type: string;
67
+ format: string;
68
+ readOnly: boolean;
69
+ };
70
+ updatedBy: {
71
+ type: string;
72
+ referenceUdm: string;
73
+ readOnly: boolean;
74
+ };
75
+ };
76
+ };
77
+ declare const udm: UnifiedDataModel;
78
+ export default udm;
@@ -0,0 +1,46 @@
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
+ name: {
10
+ type: string;
11
+ };
12
+ description: {
13
+ type: string;
14
+ };
15
+ ownerId: {
16
+ type: string;
17
+ referenceUdm: string;
18
+ };
19
+ uri: {
20
+ type: string;
21
+ readOnly: boolean;
22
+ };
23
+ createdTime: {
24
+ type: string;
25
+ format: string;
26
+ readOnly: boolean;
27
+ };
28
+ createdBy: {
29
+ type: string;
30
+ referenceUdm: string;
31
+ readOnly: boolean;
32
+ };
33
+ updatedTime: {
34
+ type: string;
35
+ format: string;
36
+ readOnly: boolean;
37
+ };
38
+ updatedBy: {
39
+ type: string;
40
+ referenceUdm: string;
41
+ readOnly: boolean;
42
+ };
43
+ };
44
+ };
45
+ declare const udm: UnifiedDataModel;
46
+ export default udm;
@@ -0,0 +1,3 @@
1
+ import { UnifiedDataModel } from './base';
2
+ declare const udm: UnifiedDataModel;
3
+ export default udm;
@@ -0,0 +1,115 @@
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
+ threadId: {
10
+ type: string;
11
+ readOnly: boolean;
12
+ };
13
+ to: {
14
+ type: string;
15
+ items: {
16
+ type: string;
17
+ };
18
+ };
19
+ cc: {
20
+ type: string;
21
+ items: {
22
+ type: string;
23
+ };
24
+ };
25
+ bcc: {
26
+ type: string;
27
+ items: {
28
+ type: string;
29
+ };
30
+ };
31
+ from: {
32
+ type: string;
33
+ };
34
+ replyTo: {
35
+ type: string;
36
+ };
37
+ subject: {
38
+ type: string;
39
+ };
40
+ body: {
41
+ type: string;
42
+ };
43
+ html_body: {
44
+ type: string;
45
+ };
46
+ status: {
47
+ type: string;
48
+ };
49
+ ownerId: {
50
+ type: string;
51
+ referenceUdm: string;
52
+ };
53
+ contactId: {
54
+ type: string;
55
+ referenceUdm: string;
56
+ };
57
+ leadId: {
58
+ type: string;
59
+ referenceUdm: string;
60
+ };
61
+ companyId: {
62
+ type: string;
63
+ referenceUdm: string;
64
+ };
65
+ dealId: {
66
+ type: string;
67
+ referenceUdm: string;
68
+ };
69
+ attachments: {
70
+ type: string;
71
+ items: {
72
+ type: string;
73
+ properties: {
74
+ id: {
75
+ type: string;
76
+ };
77
+ type: {
78
+ type: string;
79
+ };
80
+ name: {
81
+ type: string;
82
+ };
83
+ url: {
84
+ type: string;
85
+ };
86
+ content: {
87
+ type: string;
88
+ };
89
+ };
90
+ };
91
+ };
92
+ createdTime: {
93
+ type: string;
94
+ format: string;
95
+ readOnly: boolean;
96
+ };
97
+ createdBy: {
98
+ type: string;
99
+ referenceUdm: string;
100
+ readOnly: boolean;
101
+ };
102
+ updatedTime: {
103
+ type: string;
104
+ format: string;
105
+ readOnly: boolean;
106
+ };
107
+ updatedBy: {
108
+ type: string;
109
+ referenceUdm: string;
110
+ readOnly: boolean;
111
+ };
112
+ };
113
+ };
114
+ declare const udm: UnifiedDataModel;
115
+ export default udm;
@@ -0,0 +1,3 @@
1
+ import { UnifiedDataModel } from './base';
2
+ declare const udm: UnifiedDataModel;
3
+ export default udm;
@@ -0,0 +1,73 @@
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
+ mimeType: {
10
+ type: string;
11
+ };
12
+ name: {
13
+ type: string;
14
+ };
15
+ description: {
16
+ type: string;
17
+ };
18
+ previewUri: {
19
+ type: string;
20
+ readOnly: boolean;
21
+ };
22
+ size: {
23
+ type: string;
24
+ readOnly: boolean;
25
+ };
26
+ path: {
27
+ type: string;
28
+ readOnly: boolean;
29
+ };
30
+ folderId: {
31
+ type: string;
32
+ referenceUdm: string;
33
+ };
34
+ ownerId: {
35
+ type: string;
36
+ referenceUdm: string;
37
+ };
38
+ driveId: {
39
+ type: string;
40
+ referenceUdm: string;
41
+ };
42
+ downloadUri: {
43
+ type: string;
44
+ readOnly: boolean;
45
+ };
46
+ uri: {
47
+ type: string;
48
+ readOnly: boolean;
49
+ };
50
+ createdTime: {
51
+ type: string;
52
+ format: string;
53
+ readOnly: boolean;
54
+ };
55
+ createdBy: {
56
+ type: string;
57
+ referenceUdm: string;
58
+ readOnly: boolean;
59
+ };
60
+ updatedTime: {
61
+ type: string;
62
+ format: string;
63
+ readOnly: boolean;
64
+ };
65
+ updatedBy: {
66
+ type: string;
67
+ referenceUdm: string;
68
+ readOnly: boolean;
69
+ };
70
+ };
71
+ };
72
+ declare const udm: UnifiedDataModel;
73
+ export default udm;
@@ -0,0 +1,66 @@
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
+ name: {
10
+ type: string;
11
+ };
12
+ description: {
13
+ type: string;
14
+ };
15
+ size: {
16
+ type: string;
17
+ readOnly: boolean;
18
+ };
19
+ path: {
20
+ type: string;
21
+ readOnly: boolean;
22
+ };
23
+ parentFolderId: {
24
+ type: string;
25
+ referenceUdm: string;
26
+ };
27
+ ownerId: {
28
+ type: string;
29
+ referenceUdm: string;
30
+ };
31
+ driveId: {
32
+ type: string;
33
+ referenceUdm: string;
34
+ };
35
+ downloadUri: {
36
+ type: string;
37
+ readOnly: boolean;
38
+ };
39
+ uri: {
40
+ type: string;
41
+ readOnly: boolean;
42
+ };
43
+ createdTime: {
44
+ type: string;
45
+ format: string;
46
+ readOnly: boolean;
47
+ };
48
+ createdBy: {
49
+ type: string;
50
+ referenceUdm: string;
51
+ readOnly: boolean;
52
+ };
53
+ updatedTime: {
54
+ type: string;
55
+ format: string;
56
+ readOnly: boolean;
57
+ };
58
+ updatedBy: {
59
+ type: string;
60
+ referenceUdm: string;
61
+ readOnly: boolean;
62
+ };
63
+ };
64
+ };
65
+ declare const udm: UnifiedDataModel;
66
+ export default udm;
@@ -0,0 +1,53 @@
1
+ import { ConnectorSpec } from '../connectors';
2
+ import { DataLocationPointer } from '../connectors/data-locations';
3
+ import { UnifiedDataModel } from './base';
4
+ export { UnifiedDataModel } from './base';
5
+ export declare enum UDM {
6
+ ACTIVITIES = "activities",
7
+ BILLS = "bills",
8
+ CAMPAIGN_MEMBERS = "campaign-members",
9
+ CAMPAIGNS = "campaigns",
10
+ COMPANIES = "companies",
11
+ CONTACTS = "contacts",
12
+ CONTACT_LISTS = "contact-lists",
13
+ CREDIT_NOTES = "credit-notes",
14
+ CUSTOMERS = "customers",
15
+ DEAL_PRODUCTS = "deal-products",
16
+ DEALS = "deals",
17
+ DEAL_STAGES = "deal-stages",
18
+ DOCUMENTS = "documents",
19
+ DRIVES = "drives",
20
+ DRIVE_ITEMS = "drive-items",
21
+ EEOCS = "eeocs",
22
+ EMAILS = "emails",
23
+ EMPLOYEES = "employees",
24
+ FILES = "files",
25
+ FOLDERS = "folders",
26
+ INVOICES = "invoices",
27
+ JOB_APPLICATIONS = "job-applications",
28
+ JOB_CANDIDATES = "job-candidates",
29
+ JOB_INTERVIEWS = "job-interviews",
30
+ JOB_OFFERS = "job-offers",
31
+ JOBS = "jobs",
32
+ JOURNAL_ENTRIES = "journal-entries",
33
+ LEADS = "leads",
34
+ LEDGER_ACCOUNTS = "ledger-accounts",
35
+ MEETINGS = "meetings",
36
+ MESSAGES = "messages",
37
+ NOTES = "notes",
38
+ ORDERS = "orders",
39
+ PAYMENTS = "payments",
40
+ PAYROLLS = "payrolls",
41
+ PRODUCTS = "products",
42
+ PROJECTS = "projects",
43
+ SUPPLIERS = "suppliers",
44
+ TASKS = "tasks",
45
+ TAX_RATES = "tax-rates",
46
+ USERS = "users",
47
+ TIMEOFF_BALANCES = "timeoff-balances",
48
+ TIMEOFF_REQUESTS = "timeoff-requests"
49
+ }
50
+ export declare const UNIFIED_DATA_MODELS: Record<UDM, UnifiedDataModel>;
51
+ export declare function findUdmRootLocation(spec: ConnectorSpec, udm: string, useFallback?: boolean): DataLocationPointer | undefined;
52
+ export declare function findUdmDefaultCollection(spec: ConnectorSpec, udm: string, useFallback?: boolean): DataLocationPointer | undefined;
53
+ export declare function addUdmFallbackFields(fields: any, udm: string): any;
@@ -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,98 @@
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
+ durationSeconds: {
16
+ type: string;
17
+ };
18
+ location: {
19
+ type: string;
20
+ };
21
+ isRecurrent: {
22
+ type: string;
23
+ };
24
+ participants: {
25
+ type: string;
26
+ items: {
27
+ type: string;
28
+ properties: {
29
+ userId: {
30
+ type: string;
31
+ referenceUdm: string;
32
+ };
33
+ contactId: {
34
+ type: string;
35
+ referenceUdm: string;
36
+ };
37
+ leadId: {
38
+ type: string;
39
+ referenceUdm: string;
40
+ };
41
+ };
42
+ };
43
+ };
44
+ status: {
45
+ type: string;
46
+ };
47
+ contactId: {
48
+ type: string;
49
+ referenceUdm: string;
50
+ };
51
+ companyId: {
52
+ type: string;
53
+ referenceUdm: string;
54
+ };
55
+ dealId: {
56
+ type: string;
57
+ referenceUdm: string;
58
+ };
59
+ leadId: {
60
+ type: string;
61
+ referenceUdm: string;
62
+ };
63
+ ownerId: {
64
+ type: string;
65
+ referenceUdm: string;
66
+ };
67
+ startTime: {
68
+ type: string;
69
+ format: string;
70
+ };
71
+ endTime: {
72
+ type: string;
73
+ format: string;
74
+ };
75
+ createdTime: {
76
+ type: string;
77
+ format: string;
78
+ readOnly: boolean;
79
+ };
80
+ createdBy: {
81
+ type: string;
82
+ referenceUdm: string;
83
+ readOnly: boolean;
84
+ };
85
+ updatedTime: {
86
+ type: string;
87
+ format: string;
88
+ readOnly: boolean;
89
+ };
90
+ updatedBy: {
91
+ type: string;
92
+ referenceUdm: string;
93
+ readOnly: boolean;
94
+ };
95
+ };
96
+ };
97
+ declare const udm: UnifiedDataModel;
98
+ export default udm;
@@ -0,0 +1,51 @@
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
+ subject: {
10
+ type: string;
11
+ };
12
+ channelId: {
13
+ type: string;
14
+ };
15
+ threadId: {
16
+ type: string;
17
+ };
18
+ text: {
19
+ type: string;
20
+ };
21
+ ownerId: {
22
+ type: string;
23
+ referenceUdm: string;
24
+ };
25
+ status: {
26
+ type: string;
27
+ };
28
+ createdTime: {
29
+ type: string;
30
+ format: string;
31
+ readOnly: boolean;
32
+ };
33
+ createdBy: {
34
+ type: string;
35
+ referenceUdm: string;
36
+ readOnly: boolean;
37
+ };
38
+ updatedTime: {
39
+ type: string;
40
+ format: string;
41
+ readOnly: boolean;
42
+ };
43
+ updatedBy: {
44
+ type: string;
45
+ referenceUdm: string;
46
+ readOnly: boolean;
47
+ };
48
+ };
49
+ };
50
+ declare const udm: UnifiedDataModel;
51
+ export default udm;
@@ -0,0 +1,61 @@
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
+ content: {
13
+ type: string;
14
+ };
15
+ status: {
16
+ type: string;
17
+ };
18
+ ownerId: {
19
+ type: string;
20
+ referenceUdm: string;
21
+ };
22
+ contactId: {
23
+ type: string;
24
+ referenceUdm: string;
25
+ };
26
+ leadId: {
27
+ type: string;
28
+ referenceUdm: string;
29
+ };
30
+ companyId: {
31
+ type: string;
32
+ referenceUdm: string;
33
+ };
34
+ dealId: {
35
+ type: string;
36
+ referenceUdm: string;
37
+ };
38
+ createdTime: {
39
+ type: string;
40
+ format: string;
41
+ readOnly: boolean;
42
+ };
43
+ createdBy: {
44
+ type: string;
45
+ referenceUdm: string;
46
+ readOnly: boolean;
47
+ };
48
+ updatedTime: {
49
+ type: string;
50
+ format: string;
51
+ readOnly: boolean;
52
+ };
53
+ updatedBy: {
54
+ type: string;
55
+ referenceUdm: string;
56
+ readOnly: boolean;
57
+ };
58
+ };
59
+ };
60
+ declare const udm: UnifiedDataModel;
61
+ export default udm;
@@ -0,0 +1,3 @@
1
+ import { UnifiedDataModel } from './base';
2
+ declare const udm: UnifiedDataModel;
3
+ export default udm;