@integration-app/react 0.1.2 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (614) hide show
  1. package/{dist/contexts → contexts}/integration-app-context.d.ts +0 -0
  2. package/{dist/contexts → contexts}/integration-app-context.js +0 -0
  3. package/{dist/contexts → contexts}/integration-app-context.js.map +0 -0
  4. package/{dist/index.d.ts → index.d.ts} +0 -0
  5. package/{dist/index.js → index.js} +0 -0
  6. package/{dist/index.js.map → index.js.map} +0 -0
  7. package/{dist/integrations → integrations}/index.d.ts +0 -0
  8. package/{dist/integrations → integrations}/index.js +0 -0
  9. package/{dist/integrations → integrations}/index.js.map +0 -0
  10. package/{dist/node_modules/scheduler → node_modules/@compwright/namecase}/LICENSE +8 -3
  11. package/node_modules/@compwright/namecase/README.md +49 -0
  12. package/node_modules/@compwright/namecase/bin/namecase +28 -0
  13. package/node_modules/@compwright/namecase/dist/namecase.min.js +4 -0
  14. package/node_modules/@compwright/namecase/dist/namecase.min.js.map +1 -0
  15. package/node_modules/@compwright/namecase/package.json +46 -0
  16. package/node_modules/@compwright/namecase/src/index.js +146 -0
  17. package/node_modules/@integration-app/sdk/accessors.d.ts +56 -0
  18. package/node_modules/@integration-app/sdk/accessors.js +104 -0
  19. package/node_modules/@integration-app/sdk/accessors.js.map +1 -0
  20. package/node_modules/@integration-app/sdk/app-data-collections/accessors.d.ts +16 -0
  21. package/node_modules/@integration-app/sdk/app-data-collections/accessors.js +38 -0
  22. package/node_modules/@integration-app/sdk/app-data-collections/accessors.js.map +1 -0
  23. package/node_modules/@integration-app/sdk/app-data-collections/api.d.ts +18 -0
  24. package/node_modules/@integration-app/sdk/app-data-collections/api.js +3 -0
  25. package/node_modules/@integration-app/sdk/app-data-collections/api.js.map +1 -0
  26. package/node_modules/@integration-app/sdk/app-data-collections/index.d.ts +26 -0
  27. package/node_modules/@integration-app/sdk/app-data-collections/index.js +3 -0
  28. package/node_modules/@integration-app/sdk/app-data-collections/index.js.map +1 -0
  29. package/node_modules/@integration-app/sdk/app-data-schemas/accessors.d.ts +16 -0
  30. package/node_modules/@integration-app/sdk/app-data-schemas/accessors.js +38 -0
  31. package/node_modules/@integration-app/sdk/app-data-schemas/accessors.js.map +1 -0
  32. package/node_modules/@integration-app/sdk/app-data-schemas/api.d.ts +18 -0
  33. package/node_modules/@integration-app/sdk/app-data-schemas/api.js +3 -0
  34. package/node_modules/@integration-app/sdk/app-data-schemas/api.js.map +1 -0
  35. package/node_modules/@integration-app/sdk/app-data-schemas/index.d.ts +21 -0
  36. package/node_modules/@integration-app/sdk/app-data-schemas/index.js +3 -0
  37. package/node_modules/@integration-app/sdk/app-data-schemas/index.js.map +1 -0
  38. package/node_modules/@integration-app/sdk/app-events/accessors.d.ts +16 -0
  39. package/node_modules/@integration-app/sdk/app-events/accessors.js +38 -0
  40. package/node_modules/@integration-app/sdk/app-events/accessors.js.map +1 -0
  41. package/node_modules/@integration-app/sdk/app-events/api.d.ts +18 -0
  42. package/node_modules/@integration-app/sdk/app-events/api.js +3 -0
  43. package/node_modules/@integration-app/sdk/app-events/api.js.map +1 -0
  44. package/node_modules/@integration-app/sdk/app-events/index.d.ts +46 -0
  45. package/node_modules/@integration-app/sdk/app-events/index.js +3 -0
  46. package/node_modules/@integration-app/sdk/app-events/index.js.map +1 -0
  47. package/node_modules/@integration-app/sdk/auth/accessors.d.ts +7 -0
  48. package/node_modules/@integration-app/sdk/auth/accessors.js +13 -0
  49. package/node_modules/@integration-app/sdk/auth/accessors.js.map +1 -0
  50. package/node_modules/@integration-app/sdk/auth/index.d.ts +6 -0
  51. package/node_modules/@integration-app/sdk/auth/index.js +3 -0
  52. package/node_modules/@integration-app/sdk/auth/index.js.map +1 -0
  53. package/node_modules/@integration-app/sdk/bundle-index.d.ts +1 -0
  54. package/node_modules/@integration-app/sdk/bundle-index.js +5 -0
  55. package/node_modules/@integration-app/sdk/bundle-index.js.map +1 -0
  56. package/node_modules/@integration-app/sdk/bundle.js +30163 -0
  57. package/node_modules/@integration-app/sdk/bundle.js.map +1 -0
  58. package/node_modules/@integration-app/sdk/client.d.ts +108 -0
  59. package/node_modules/@integration-app/sdk/client.js +248 -0
  60. package/node_modules/@integration-app/sdk/client.js.map +1 -0
  61. package/node_modules/@integration-app/sdk/connections/accessors.d.ts +13 -0
  62. package/node_modules/@integration-app/sdk/connections/accessors.js +39 -0
  63. package/node_modules/@integration-app/sdk/connections/accessors.js.map +1 -0
  64. package/node_modules/@integration-app/sdk/connections/api.d.ts +20 -0
  65. package/node_modules/@integration-app/sdk/connections/api.js +17 -0
  66. package/node_modules/@integration-app/sdk/connections/api.js.map +1 -0
  67. package/node_modules/@integration-app/sdk/connections/index.d.ts +39 -0
  68. package/node_modules/@integration-app/sdk/connections/index.js +13 -0
  69. package/node_modules/@integration-app/sdk/connections/index.js.map +1 -0
  70. package/node_modules/@integration-app/sdk/connector-api/index.d.ts +2 -0
  71. package/node_modules/@integration-app/sdk/connector-api/index.js +9 -0
  72. package/node_modules/@integration-app/sdk/connector-api/index.js.map +1 -0
  73. package/node_modules/@integration-app/sdk/data-builder/context.d.ts +9 -0
  74. package/node_modules/@integration-app/sdk/data-builder/context.js +32 -0
  75. package/node_modules/@integration-app/sdk/data-builder/context.js.map +1 -0
  76. package/node_modules/@integration-app/sdk/data-builder/formulas/base.d.ts +9 -0
  77. package/node_modules/@integration-app/sdk/data-builder/formulas/base.js +59 -0
  78. package/node_modules/@integration-app/sdk/data-builder/formulas/base.js.map +1 -0
  79. package/node_modules/@integration-app/sdk/data-builder/formulas/case.d.ts +14 -0
  80. package/node_modules/@integration-app/sdk/data-builder/formulas/case.js +45 -0
  81. package/node_modules/@integration-app/sdk/data-builder/formulas/case.js.map +1 -0
  82. package/node_modules/@integration-app/sdk/data-builder/formulas/concat.d.ts +18 -0
  83. package/node_modules/@integration-app/sdk/data-builder/formulas/concat.js +36 -0
  84. package/node_modules/@integration-app/sdk/data-builder/formulas/concat.js.map +1 -0
  85. package/node_modules/@integration-app/sdk/data-builder/formulas/copy.d.ts +10 -0
  86. package/node_modules/@integration-app/sdk/data-builder/formulas/copy.js +22 -0
  87. package/node_modules/@integration-app/sdk/data-builder/formulas/copy.js.map +1 -0
  88. package/node_modules/@integration-app/sdk/data-builder/formulas/extractDate.d.ts +11 -0
  89. package/node_modules/@integration-app/sdk/data-builder/formulas/extractDate.js +31 -0
  90. package/node_modules/@integration-app/sdk/data-builder/formulas/extractDate.js.map +1 -0
  91. package/node_modules/@integration-app/sdk/data-builder/formulas/extractTime.d.ts +11 -0
  92. package/node_modules/@integration-app/sdk/data-builder/formulas/extractTime.js +31 -0
  93. package/node_modules/@integration-app/sdk/data-builder/formulas/extractTime.js.map +1 -0
  94. package/node_modules/@integration-app/sdk/data-builder/formulas/findAppRecordId.d.ts +17 -0
  95. package/node_modules/@integration-app/sdk/data-builder/formulas/findAppRecordId.js +24 -0
  96. package/node_modules/@integration-app/sdk/data-builder/formulas/findAppRecordId.js.map +1 -0
  97. package/node_modules/@integration-app/sdk/data-builder/formulas/findExternalRecordId.d.ts +17 -0
  98. package/node_modules/@integration-app/sdk/data-builder/formulas/findExternalRecordId.js +24 -0
  99. package/node_modules/@integration-app/sdk/data-builder/formulas/findExternalRecordId.js.map +1 -0
  100. package/node_modules/@integration-app/sdk/data-builder/formulas/first-name.d.ts +10 -0
  101. package/node_modules/@integration-app/sdk/data-builder/formulas/first-name.js +25 -0
  102. package/node_modules/@integration-app/sdk/data-builder/formulas/first-name.js.map +1 -0
  103. package/node_modules/@integration-app/sdk/data-builder/formulas/index.d.ts +28 -0
  104. package/node_modules/@integration-app/sdk/data-builder/formulas/index.js +177 -0
  105. package/node_modules/@integration-app/sdk/data-builder/formulas/index.js.map +1 -0
  106. package/node_modules/@integration-app/sdk/data-builder/formulas/iterate.d.ts +15 -0
  107. package/node_modules/@integration-app/sdk/data-builder/formulas/iterate.js +41 -0
  108. package/node_modules/@integration-app/sdk/data-builder/formulas/iterate.js.map +1 -0
  109. package/node_modules/@integration-app/sdk/data-builder/formulas/last-name.d.ts +10 -0
  110. package/node_modules/@integration-app/sdk/data-builder/formulas/last-name.js +25 -0
  111. package/node_modules/@integration-app/sdk/data-builder/formulas/last-name.js.map +1 -0
  112. package/node_modules/@integration-app/sdk/data-builder/formulas/lookup.d.ts +20 -0
  113. package/node_modules/@integration-app/sdk/data-builder/formulas/lookup.js +24 -0
  114. package/node_modules/@integration-app/sdk/data-builder/formulas/lookup.js.map +1 -0
  115. package/node_modules/@integration-app/sdk/data-builder/formulas/map.d.ts +17 -0
  116. package/node_modules/@integration-app/sdk/data-builder/formulas/map.js +34 -0
  117. package/node_modules/@integration-app/sdk/data-builder/formulas/map.js.map +1 -0
  118. package/node_modules/@integration-app/sdk/data-builder/formulas/plain.d.ts +7 -0
  119. package/node_modules/@integration-app/sdk/data-builder/formulas/plain.js +20 -0
  120. package/node_modules/@integration-app/sdk/data-builder/formulas/plain.js.map +1 -0
  121. package/node_modules/@integration-app/sdk/data-builder/formulas/record.d.ts +10 -0
  122. package/node_modules/@integration-app/sdk/data-builder/formulas/record.js +23 -0
  123. package/node_modules/@integration-app/sdk/data-builder/formulas/record.js.map +1 -0
  124. package/node_modules/@integration-app/sdk/data-builder/formulas/schemaOption.d.ts +12 -0
  125. package/node_modules/@integration-app/sdk/data-builder/formulas/schemaOption.js +22 -0
  126. package/node_modules/@integration-app/sdk/data-builder/formulas/schemaOption.js.map +1 -0
  127. package/node_modules/@integration-app/sdk/data-builder/formulas/tpl.d.ts +15 -0
  128. package/node_modules/@integration-app/sdk/data-builder/formulas/tpl.js +31 -0
  129. package/node_modules/@integration-app/sdk/data-builder/formulas/tpl.js.map +1 -0
  130. package/node_modules/@integration-app/sdk/data-builder/formulas/var.d.ts +8 -0
  131. package/node_modules/@integration-app/sdk/data-builder/formulas/var.js +21 -0
  132. package/node_modules/@integration-app/sdk/data-builder/formulas/var.js.map +1 -0
  133. package/node_modules/@integration-app/sdk/data-builder/index.d.ts +2 -0
  134. package/node_modules/@integration-app/sdk/data-builder/index.js +17 -0
  135. package/node_modules/@integration-app/sdk/data-builder/index.js.map +1 -0
  136. package/node_modules/@integration-app/sdk/data-builder/locators.d.ts +56 -0
  137. package/node_modules/@integration-app/sdk/data-builder/locators.js +560 -0
  138. package/node_modules/@integration-app/sdk/data-builder/locators.js.map +1 -0
  139. package/node_modules/@integration-app/sdk/data-collections.d.ts +36 -0
  140. package/node_modules/@integration-app/sdk/data-collections.js +16 -0
  141. package/node_modules/@integration-app/sdk/data-collections.js.map +1 -0
  142. package/node_modules/@integration-app/sdk/data-filter/index.d.ts +12 -0
  143. package/node_modules/@integration-app/sdk/data-filter/index.js +104 -0
  144. package/node_modules/@integration-app/sdk/data-filter/index.js.map +1 -0
  145. package/node_modules/@integration-app/sdk/data-filter/operators.d.ts +13 -0
  146. package/node_modules/@integration-app/sdk/data-filter/operators.js +140 -0
  147. package/node_modules/@integration-app/sdk/data-filter/operators.js.map +1 -0
  148. package/node_modules/@integration-app/sdk/data-links/accessors.d.ts +20 -0
  149. package/node_modules/@integration-app/sdk/data-links/accessors.js +65 -0
  150. package/node_modules/@integration-app/sdk/data-links/accessors.js.map +1 -0
  151. package/node_modules/@integration-app/sdk/data-links/api.d.ts +49 -0
  152. package/node_modules/@integration-app/sdk/data-links/api.js +3 -0
  153. package/node_modules/@integration-app/sdk/data-links/api.js.map +1 -0
  154. package/node_modules/@integration-app/sdk/data-links/index.d.ts +35 -0
  155. package/node_modules/@integration-app/sdk/data-links/index.js +10 -0
  156. package/node_modules/@integration-app/sdk/data-links/index.js.map +1 -0
  157. package/node_modules/@integration-app/sdk/data-locations/accessors.d.ts +10 -0
  158. package/node_modules/@integration-app/sdk/data-locations/accessors.js +22 -0
  159. package/node_modules/@integration-app/sdk/data-locations/accessors.js.map +1 -0
  160. package/node_modules/@integration-app/sdk/data-locations/api.d.ts +4 -0
  161. package/node_modules/@integration-app/sdk/data-locations/api.js +3 -0
  162. package/node_modules/@integration-app/sdk/data-locations/api.js.map +1 -0
  163. package/node_modules/@integration-app/sdk/data-locations/index.d.ts +138 -0
  164. package/node_modules/@integration-app/sdk/data-locations/index.js +17 -0
  165. package/node_modules/@integration-app/sdk/data-locations/index.js.map +1 -0
  166. package/node_modules/@integration-app/sdk/data-schema/index.d.ts +49 -0
  167. package/node_modules/@integration-app/sdk/data-schema/index.js +88 -0
  168. package/node_modules/@integration-app/sdk/data-schema/index.js.map +1 -0
  169. package/node_modules/@integration-app/sdk/data-sources/accessors.d.ts +29 -0
  170. package/node_modules/@integration-app/sdk/data-sources/accessors.js +71 -0
  171. package/node_modules/@integration-app/sdk/data-sources/accessors.js.map +1 -0
  172. package/node_modules/@integration-app/sdk/data-sources/api.d.ts +37 -0
  173. package/node_modules/@integration-app/sdk/data-sources/api.js +3 -0
  174. package/node_modules/@integration-app/sdk/data-sources/api.js.map +1 -0
  175. package/node_modules/@integration-app/sdk/data-sources/index.d.ts +55 -0
  176. package/node_modules/@integration-app/sdk/data-sources/index.js +3 -0
  177. package/node_modules/@integration-app/sdk/data-sources/index.js.map +1 -0
  178. package/node_modules/@integration-app/sdk/datetime.d.ts +1 -0
  179. package/node_modules/@integration-app/sdk/datetime.js +15 -0
  180. package/node_modules/@integration-app/sdk/datetime.js.map +1 -0
  181. package/node_modules/@integration-app/sdk/entity-repository.d.ts +11 -0
  182. package/node_modules/@integration-app/sdk/entity-repository.js +10 -0
  183. package/node_modules/@integration-app/sdk/entity-repository.js.map +1 -0
  184. package/node_modules/@integration-app/sdk/errors.d.ts +64 -0
  185. package/node_modules/@integration-app/sdk/errors.js +141 -0
  186. package/node_modules/@integration-app/sdk/errors.js.map +1 -0
  187. package/node_modules/@integration-app/sdk/field-mappings/accessors.d.ts +25 -0
  188. package/node_modules/@integration-app/sdk/field-mappings/accessors.js +60 -0
  189. package/node_modules/@integration-app/sdk/field-mappings/accessors.js.map +1 -0
  190. package/node_modules/@integration-app/sdk/field-mappings/api.d.ts +34 -0
  191. package/node_modules/@integration-app/sdk/field-mappings/api.js +3 -0
  192. package/node_modules/@integration-app/sdk/field-mappings/api.js.map +1 -0
  193. package/node_modules/@integration-app/sdk/field-mappings/index.d.ts +90 -0
  194. package/node_modules/@integration-app/sdk/field-mappings/index.js +195 -0
  195. package/node_modules/@integration-app/sdk/field-mappings/index.js.map +1 -0
  196. package/node_modules/@integration-app/sdk/flow-runs/flow-node-runs.d.ts +30 -0
  197. package/node_modules/@integration-app/sdk/flow-runs/flow-node-runs.js +11 -0
  198. package/node_modules/@integration-app/sdk/flow-runs/flow-node-runs.js.map +1 -0
  199. package/node_modules/@integration-app/sdk/flow-runs/index.d.ts +59 -0
  200. package/node_modules/@integration-app/sdk/flow-runs/index.js +44 -0
  201. package/node_modules/@integration-app/sdk/flow-runs/index.js.map +1 -0
  202. package/node_modules/@integration-app/sdk/flows/accessors.d.ts +37 -0
  203. package/node_modules/@integration-app/sdk/flows/accessors.js +167 -0
  204. package/node_modules/@integration-app/sdk/flows/accessors.js.map +1 -0
  205. package/node_modules/@integration-app/sdk/flows/api.d.ts +55 -0
  206. package/node_modules/@integration-app/sdk/flows/api.js +8 -0
  207. package/node_modules/@integration-app/sdk/flows/api.js.map +1 -0
  208. package/node_modules/@integration-app/sdk/flows/index.d.ts +84 -0
  209. package/node_modules/@integration-app/sdk/flows/index.js +26 -0
  210. package/node_modules/@integration-app/sdk/flows/index.js.map +1 -0
  211. package/node_modules/@integration-app/sdk/flows/nodes/api-trigger.d.ts +3 -0
  212. package/node_modules/@integration-app/sdk/flows/nodes/api-trigger.js +9 -0
  213. package/node_modules/@integration-app/sdk/flows/nodes/api-trigger.js.map +1 -0
  214. package/node_modules/@integration-app/sdk/flows/nodes/app-event-trigger.d.ts +3 -0
  215. package/node_modules/@integration-app/sdk/flows/nodes/app-event-trigger.js +9 -0
  216. package/node_modules/@integration-app/sdk/flows/nodes/app-event-trigger.js.map +1 -0
  217. package/node_modules/@integration-app/sdk/flows/nodes/create-data-link.d.ts +3 -0
  218. package/node_modules/@integration-app/sdk/flows/nodes/create-data-link.js +8 -0
  219. package/node_modules/@integration-app/sdk/flows/nodes/create-data-link.js.map +1 -0
  220. package/node_modules/@integration-app/sdk/flows/nodes/create-data-record.d.ts +3 -0
  221. package/node_modules/@integration-app/sdk/flows/nodes/create-data-record.js +8 -0
  222. package/node_modules/@integration-app/sdk/flows/nodes/create-data-record.js.map +1 -0
  223. package/node_modules/@integration-app/sdk/flows/nodes/data-record-created-trigger.d.ts +3 -0
  224. package/node_modules/@integration-app/sdk/flows/nodes/data-record-created-trigger.js +9 -0
  225. package/node_modules/@integration-app/sdk/flows/nodes/data-record-created-trigger.js.map +1 -0
  226. package/node_modules/@integration-app/sdk/flows/nodes/data-record-deleted-trigger.d.ts +3 -0
  227. package/node_modules/@integration-app/sdk/flows/nodes/data-record-deleted-trigger.js +9 -0
  228. package/node_modules/@integration-app/sdk/flows/nodes/data-record-deleted-trigger.js.map +1 -0
  229. package/node_modules/@integration-app/sdk/flows/nodes/data-record-updated-trigger.d.ts +3 -0
  230. package/node_modules/@integration-app/sdk/flows/nodes/data-record-updated-trigger.js +9 -0
  231. package/node_modules/@integration-app/sdk/flows/nodes/data-record-updated-trigger.js.map +1 -0
  232. package/node_modules/@integration-app/sdk/flows/nodes/delete-data-record.d.ts +3 -0
  233. package/node_modules/@integration-app/sdk/flows/nodes/delete-data-record.js +8 -0
  234. package/node_modules/@integration-app/sdk/flows/nodes/delete-data-record.js.map +1 -0
  235. package/node_modules/@integration-app/sdk/flows/nodes/filter.d.ts +3 -0
  236. package/node_modules/@integration-app/sdk/flows/nodes/filter.js +8 -0
  237. package/node_modules/@integration-app/sdk/flows/nodes/filter.js.map +1 -0
  238. package/node_modules/@integration-app/sdk/flows/nodes/find-data-link.d.ts +3 -0
  239. package/node_modules/@integration-app/sdk/flows/nodes/find-data-link.js +8 -0
  240. package/node_modules/@integration-app/sdk/flows/nodes/find-data-link.js.map +1 -0
  241. package/node_modules/@integration-app/sdk/flows/nodes/find-data-record-by-id.d.ts +3 -0
  242. package/node_modules/@integration-app/sdk/flows/nodes/find-data-record-by-id.js +8 -0
  243. package/node_modules/@integration-app/sdk/flows/nodes/find-data-record-by-id.js.map +1 -0
  244. package/node_modules/@integration-app/sdk/flows/nodes/find-data-records.d.ts +3 -0
  245. package/node_modules/@integration-app/sdk/flows/nodes/find-data-records.js +8 -0
  246. package/node_modules/@integration-app/sdk/flows/nodes/find-data-records.js.map +1 -0
  247. package/node_modules/@integration-app/sdk/flows/nodes/http-request.d.ts +3 -0
  248. package/node_modules/@integration-app/sdk/flows/nodes/http-request.js +8 -0
  249. package/node_modules/@integration-app/sdk/flows/nodes/http-request.js.map +1 -0
  250. package/node_modules/@integration-app/sdk/flows/nodes/index.d.ts +28 -0
  251. package/node_modules/@integration-app/sdk/flows/nodes/index.js +50 -0
  252. package/node_modules/@integration-app/sdk/flows/nodes/index.js.map +1 -0
  253. package/node_modules/@integration-app/sdk/flows/nodes/list-data-records.d.ts +3 -0
  254. package/node_modules/@integration-app/sdk/flows/nodes/list-data-records.js +8 -0
  255. package/node_modules/@integration-app/sdk/flows/nodes/list-data-records.js.map +1 -0
  256. package/node_modules/@integration-app/sdk/flows/nodes/schedule-trigger.d.ts +3 -0
  257. package/node_modules/@integration-app/sdk/flows/nodes/schedule-trigger.js +9 -0
  258. package/node_modules/@integration-app/sdk/flows/nodes/schedule-trigger.js.map +1 -0
  259. package/node_modules/@integration-app/sdk/flows/nodes/transform-data.d.ts +3 -0
  260. package/node_modules/@integration-app/sdk/flows/nodes/transform-data.js +8 -0
  261. package/node_modules/@integration-app/sdk/flows/nodes/transform-data.js.map +1 -0
  262. package/node_modules/@integration-app/sdk/flows/nodes/update-data-record.d.ts +3 -0
  263. package/node_modules/@integration-app/sdk/flows/nodes/update-data-record.js +8 -0
  264. package/node_modules/@integration-app/sdk/flows/nodes/update-data-record.js.map +1 -0
  265. package/node_modules/@integration-app/sdk/flows/utils.d.ts +10 -0
  266. package/node_modules/@integration-app/sdk/flows/utils.js +72 -0
  267. package/node_modules/@integration-app/sdk/flows/utils.js.map +1 -0
  268. package/node_modules/@integration-app/sdk/http-requests.d.ts +37 -0
  269. package/node_modules/@integration-app/sdk/http-requests.js +33 -0
  270. package/node_modules/@integration-app/sdk/http-requests.js.map +1 -0
  271. package/node_modules/@integration-app/sdk/iframe.d.ts +9 -0
  272. package/node_modules/@integration-app/sdk/iframe.js +112 -0
  273. package/node_modules/@integration-app/sdk/iframe.js.map +1 -0
  274. package/node_modules/@integration-app/sdk/index.d.ts +4 -0
  275. package/node_modules/@integration-app/sdk/index.js +8 -0
  276. package/node_modules/@integration-app/sdk/index.js.map +1 -0
  277. package/node_modules/@integration-app/sdk/integration-elements/index.d.ts +22 -0
  278. package/node_modules/@integration-app/sdk/integration-elements/index.js +15 -0
  279. package/node_modules/@integration-app/sdk/integration-elements/index.js.map +1 -0
  280. package/node_modules/@integration-app/sdk/integrations/accessors.d.ts +17 -0
  281. package/node_modules/@integration-app/sdk/integrations/accessors.js +36 -0
  282. package/node_modules/@integration-app/sdk/integrations/accessors.js.map +1 -0
  283. package/node_modules/@integration-app/sdk/integrations/api.d.ts +10 -0
  284. package/node_modules/@integration-app/sdk/integrations/api.js +3 -0
  285. package/node_modules/@integration-app/sdk/integrations/api.js.map +1 -0
  286. package/node_modules/@integration-app/sdk/integrations/index.d.ts +27 -0
  287. package/node_modules/@integration-app/sdk/integrations/index.js +16 -0
  288. package/node_modules/@integration-app/sdk/integrations/index.js.map +1 -0
  289. package/node_modules/@integration-app/sdk/json-schema/index.d.ts +32 -0
  290. package/node_modules/@integration-app/sdk/json-schema/index.js +207 -0
  291. package/node_modules/@integration-app/sdk/json-schema/index.js.map +1 -0
  292. package/node_modules/@integration-app/sdk/json-schema/schema-builder.d.ts +7 -0
  293. package/node_modules/@integration-app/sdk/json-schema/schema-builder.js +232 -0
  294. package/node_modules/@integration-app/sdk/json-schema/schema-builder.js.map +1 -0
  295. package/node_modules/@integration-app/sdk/jwt.d.ts +1 -0
  296. package/node_modules/@integration-app/sdk/jwt.js +37 -0
  297. package/node_modules/@integration-app/sdk/jwt.js.map +1 -0
  298. package/node_modules/@integration-app/sdk/package.json +63 -0
  299. package/node_modules/@integration-app/sdk/rollup.config.js +23 -0
  300. package/node_modules/@integration-app/sdk/src/accessors.ts +150 -0
  301. package/node_modules/@integration-app/sdk/src/app-data-collections/accessors.ts +69 -0
  302. package/node_modules/@integration-app/sdk/src/app-data-collections/api.ts +31 -0
  303. package/node_modules/@integration-app/sdk/src/app-data-collections/index.ts +46 -0
  304. package/node_modules/@integration-app/sdk/src/app-data-schemas/accessors.ts +69 -0
  305. package/node_modules/@integration-app/sdk/src/app-data-schemas/api.ts +28 -0
  306. package/node_modules/@integration-app/sdk/src/app-data-schemas/index.ts +35 -0
  307. package/node_modules/@integration-app/sdk/src/app-events/accessors.ts +69 -0
  308. package/node_modules/@integration-app/sdk/src/app-events/api.ts +28 -0
  309. package/node_modules/@integration-app/sdk/src/app-events/index.ts +75 -0
  310. package/node_modules/@integration-app/sdk/src/auth/accessors.ts +10 -0
  311. package/node_modules/@integration-app/sdk/src/auth/index.ts +7 -0
  312. package/node_modules/@integration-app/sdk/src/bundle-index.ts +6 -0
  313. package/node_modules/@integration-app/sdk/src/client.ts +417 -0
  314. package/node_modules/@integration-app/sdk/src/connections/accessors.ts +58 -0
  315. package/node_modules/@integration-app/sdk/src/connections/api.ts +28 -0
  316. package/node_modules/@integration-app/sdk/src/connections/index.ts +70 -0
  317. package/node_modules/@integration-app/sdk/src/connector-api/index.ts +44 -0
  318. package/node_modules/@integration-app/sdk/src/data-builder/context.ts +40 -0
  319. package/node_modules/@integration-app/sdk/src/data-builder/formulas/base.test.ts +26 -0
  320. package/node_modules/@integration-app/sdk/src/data-builder/formulas/base.ts +95 -0
  321. package/node_modules/@integration-app/sdk/src/data-builder/formulas/case.test.ts +158 -0
  322. package/node_modules/@integration-app/sdk/src/data-builder/formulas/case.ts +53 -0
  323. package/node_modules/@integration-app/sdk/src/data-builder/formulas/concat.test.ts +117 -0
  324. package/node_modules/@integration-app/sdk/src/data-builder/formulas/concat.ts +49 -0
  325. package/node_modules/@integration-app/sdk/src/data-builder/formulas/copy.test.ts +70 -0
  326. package/node_modules/@integration-app/sdk/src/data-builder/formulas/copy.ts +20 -0
  327. package/node_modules/@integration-app/sdk/src/data-builder/formulas/extractDate.test.ts +49 -0
  328. package/node_modules/@integration-app/sdk/src/data-builder/formulas/extractDate.ts +28 -0
  329. package/node_modules/@integration-app/sdk/src/data-builder/formulas/extractTime.test.ts +49 -0
  330. package/node_modules/@integration-app/sdk/src/data-builder/formulas/extractTime.ts +28 -0
  331. package/node_modules/@integration-app/sdk/src/data-builder/formulas/findAppRecordId.test.ts +30 -0
  332. package/node_modules/@integration-app/sdk/src/data-builder/formulas/findAppRecordId.ts +30 -0
  333. package/node_modules/@integration-app/sdk/src/data-builder/formulas/findExternalRecordId.test.ts +30 -0
  334. package/node_modules/@integration-app/sdk/src/data-builder/formulas/findExternalRecordId.ts +30 -0
  335. package/node_modules/@integration-app/sdk/src/data-builder/formulas/first-name.ts +21 -0
  336. package/node_modules/@integration-app/sdk/src/data-builder/formulas/index.test.ts +83 -0
  337. package/node_modules/@integration-app/sdk/src/data-builder/formulas/index.ts +190 -0
  338. package/node_modules/@integration-app/sdk/src/data-builder/formulas/iterate.test.ts +154 -0
  339. package/node_modules/@integration-app/sdk/src/data-builder/formulas/iterate.ts +46 -0
  340. package/node_modules/@integration-app/sdk/src/data-builder/formulas/last-name.ts +21 -0
  341. package/node_modules/@integration-app/sdk/src/data-builder/formulas/lookup.test.ts +20 -0
  342. package/node_modules/@integration-app/sdk/src/data-builder/formulas/lookup.ts +33 -0
  343. package/node_modules/@integration-app/sdk/src/data-builder/formulas/map.test.ts +125 -0
  344. package/node_modules/@integration-app/sdk/src/data-builder/formulas/map.ts +42 -0
  345. package/node_modules/@integration-app/sdk/src/data-builder/formulas/plain.ts +17 -0
  346. package/node_modules/@integration-app/sdk/src/data-builder/formulas/record.ts +20 -0
  347. package/node_modules/@integration-app/sdk/src/data-builder/formulas/schemaOption.ts +26 -0
  348. package/node_modules/@integration-app/sdk/src/data-builder/formulas/tpl.test.ts +51 -0
  349. package/node_modules/@integration-app/sdk/src/data-builder/formulas/tpl.ts +33 -0
  350. package/node_modules/@integration-app/sdk/src/data-builder/formulas/var.ts +19 -0
  351. package/node_modules/@integration-app/sdk/src/data-builder/index.test.ts +372 -0
  352. package/node_modules/@integration-app/sdk/src/data-builder/index.ts +16 -0
  353. package/node_modules/@integration-app/sdk/src/data-builder/locators.test.ts +1045 -0
  354. package/node_modules/@integration-app/sdk/src/data-builder/locators.ts +702 -0
  355. package/node_modules/@integration-app/sdk/src/data-collections.ts +74 -0
  356. package/node_modules/@integration-app/sdk/src/data-filter/index.test.ts +48 -0
  357. package/node_modules/@integration-app/sdk/src/data-filter/index.ts +127 -0
  358. package/node_modules/@integration-app/sdk/src/data-filter/operators.test.ts +694 -0
  359. package/node_modules/@integration-app/sdk/src/data-filter/operators.ts +163 -0
  360. package/node_modules/@integration-app/sdk/src/data-links/accessors.ts +108 -0
  361. package/node_modules/@integration-app/sdk/src/data-links/api.ts +75 -0
  362. package/node_modules/@integration-app/sdk/src/data-links/index.ts +55 -0
  363. package/node_modules/@integration-app/sdk/src/data-locations/accessors.ts +24 -0
  364. package/node_modules/@integration-app/sdk/src/data-locations/api.ts +5 -0
  365. package/node_modules/@integration-app/sdk/src/data-locations/index.ts +209 -0
  366. package/node_modules/@integration-app/sdk/src/data-schema/index.test.ts +90 -0
  367. package/node_modules/@integration-app/sdk/src/data-schema/index.ts +185 -0
  368. package/node_modules/@integration-app/sdk/src/data-sources/accessors.ts +133 -0
  369. package/node_modules/@integration-app/sdk/src/data-sources/api.ts +59 -0
  370. package/node_modules/@integration-app/sdk/src/data-sources/index.ts +103 -0
  371. package/node_modules/@integration-app/sdk/src/datetime.ts +16 -0
  372. package/node_modules/@integration-app/sdk/src/entity-repository.ts +12 -0
  373. package/node_modules/@integration-app/sdk/src/errors.ts +154 -0
  374. package/node_modules/@integration-app/sdk/src/field-mappings/accessors.ts +100 -0
  375. package/node_modules/@integration-app/sdk/src/field-mappings/api.ts +61 -0
  376. package/node_modules/@integration-app/sdk/src/field-mappings/index.ts +341 -0
  377. package/node_modules/@integration-app/sdk/src/flow-runs/flow-node-runs.ts +53 -0
  378. package/node_modules/@integration-app/sdk/src/flow-runs/index.ts +102 -0
  379. package/node_modules/@integration-app/sdk/src/flows/accessors.ts +246 -0
  380. package/node_modules/@integration-app/sdk/src/flows/api.ts +71 -0
  381. package/node_modules/@integration-app/sdk/src/flows/index.ts +233 -0
  382. package/node_modules/@integration-app/sdk/src/flows/nodes/api-trigger.ts +7 -0
  383. package/node_modules/@integration-app/sdk/src/flows/nodes/app-event-trigger.ts +7 -0
  384. package/node_modules/@integration-app/sdk/src/flows/nodes/create-data-link.ts +6 -0
  385. package/node_modules/@integration-app/sdk/src/flows/nodes/create-data-record.ts +6 -0
  386. package/node_modules/@integration-app/sdk/src/flows/nodes/data-record-created-trigger.ts +8 -0
  387. package/node_modules/@integration-app/sdk/src/flows/nodes/data-record-deleted-trigger.ts +8 -0
  388. package/node_modules/@integration-app/sdk/src/flows/nodes/data-record-updated-trigger.ts +8 -0
  389. package/node_modules/@integration-app/sdk/src/flows/nodes/delete-data-record.ts +6 -0
  390. package/node_modules/@integration-app/sdk/src/flows/nodes/filter.ts +6 -0
  391. package/node_modules/@integration-app/sdk/src/flows/nodes/find-data-link.ts +6 -0
  392. package/node_modules/@integration-app/sdk/src/flows/nodes/find-data-record-by-id.ts +6 -0
  393. package/node_modules/@integration-app/sdk/src/flows/nodes/find-data-records.ts +6 -0
  394. package/node_modules/@integration-app/sdk/src/flows/nodes/http-request.ts +6 -0
  395. package/node_modules/@integration-app/sdk/src/flows/nodes/index.ts +60 -0
  396. package/node_modules/@integration-app/sdk/src/flows/nodes/list-data-records.ts +7 -0
  397. package/node_modules/@integration-app/sdk/src/flows/nodes/schedule-trigger.ts +7 -0
  398. package/node_modules/@integration-app/sdk/src/flows/nodes/transform-data.ts +7 -0
  399. package/node_modules/@integration-app/sdk/src/flows/nodes/update-data-record.ts +6 -0
  400. package/node_modules/@integration-app/sdk/src/flows/utils.test.ts +63 -0
  401. package/node_modules/@integration-app/sdk/src/flows/utils.ts +110 -0
  402. package/node_modules/@integration-app/sdk/src/http-requests.ts +41 -0
  403. package/node_modules/@integration-app/sdk/src/iframe.ts +142 -0
  404. package/node_modules/@integration-app/sdk/src/index.ts +5 -0
  405. package/node_modules/@integration-app/sdk/src/integration-elements/index.ts +24 -0
  406. package/node_modules/@integration-app/sdk/src/integrations/accessors.ts +42 -0
  407. package/node_modules/@integration-app/sdk/src/integrations/api.ts +13 -0
  408. package/node_modules/@integration-app/sdk/src/integrations/index.ts +50 -0
  409. package/node_modules/@integration-app/sdk/src/json-schema/__snapshots__/schema-builder.test.ts.snap +167 -0
  410. package/node_modules/@integration-app/sdk/src/json-schema/index.ts +251 -0
  411. package/node_modules/@integration-app/sdk/src/json-schema/json-schema.test.ts +246 -0
  412. package/node_modules/@integration-app/sdk/src/json-schema/schema-builder.test.ts +396 -0
  413. package/node_modules/@integration-app/sdk/src/json-schema/schema-builder.ts +258 -0
  414. package/node_modules/@integration-app/sdk/src/jwt.test.ts +11 -0
  415. package/node_modules/@integration-app/sdk/src/jwt.ts +40 -0
  416. package/node_modules/@integration-app/sdk/src/udm/activities.test.ts +43 -0
  417. package/node_modules/@integration-app/sdk/src/udm/activities.ts +83 -0
  418. package/node_modules/@integration-app/sdk/src/udm/base.ts +88 -0
  419. package/node_modules/@integration-app/sdk/src/udm/campaigns.ts +72 -0
  420. package/node_modules/@integration-app/sdk/src/udm/companies.ts +80 -0
  421. package/node_modules/@integration-app/sdk/src/udm/contacts.test.ts +147 -0
  422. package/node_modules/@integration-app/sdk/src/udm/contacts.ts +106 -0
  423. package/node_modules/@integration-app/sdk/src/udm/deals.ts +90 -0
  424. package/node_modules/@integration-app/sdk/src/udm/index.ts +28 -0
  425. package/node_modules/@integration-app/sdk/src/udm/leads.ts +113 -0
  426. package/node_modules/@integration-app/sdk/src/udm/users.ts +92 -0
  427. package/node_modules/@integration-app/sdk/src/users/accessors.ts +28 -0
  428. package/node_modules/@integration-app/sdk/src/users/api.ts +8 -0
  429. package/node_modules/@integration-app/sdk/src/users/index.ts +5 -0
  430. package/node_modules/@integration-app/sdk/src/variables.ts +33 -0
  431. package/node_modules/@integration-app/sdk/src/workspaces/index.ts +5 -0
  432. package/node_modules/@integration-app/sdk/tsconfig.build.json +10 -0
  433. package/node_modules/@integration-app/sdk/tsconfig.json +19 -0
  434. package/node_modules/@integration-app/sdk/udm/activities.d.ts +30 -0
  435. package/node_modules/@integration-app/sdk/udm/activities.js +70 -0
  436. package/node_modules/@integration-app/sdk/udm/activities.js.map +1 -0
  437. package/node_modules/@integration-app/sdk/udm/base.d.ts +27 -0
  438. package/node_modules/@integration-app/sdk/udm/base.js +62 -0
  439. package/node_modules/@integration-app/sdk/udm/base.js.map +1 -0
  440. package/node_modules/@integration-app/sdk/udm/campaigns.d.ts +25 -0
  441. package/node_modules/@integration-app/sdk/udm/campaigns.js +66 -0
  442. package/node_modules/@integration-app/sdk/udm/campaigns.js.map +1 -0
  443. package/node_modules/@integration-app/sdk/udm/companies.d.ts +42 -0
  444. package/node_modules/@integration-app/sdk/udm/companies.js +69 -0
  445. package/node_modules/@integration-app/sdk/udm/companies.js.map +1 -0
  446. package/node_modules/@integration-app/sdk/udm/contacts.d.ts +49 -0
  447. package/node_modules/@integration-app/sdk/udm/contacts.js +94 -0
  448. package/node_modules/@integration-app/sdk/udm/contacts.js.map +1 -0
  449. package/node_modules/@integration-app/sdk/udm/deals.d.ts +26 -0
  450. package/node_modules/@integration-app/sdk/udm/deals.js +84 -0
  451. package/node_modules/@integration-app/sdk/udm/deals.js.map +1 -0
  452. package/node_modules/@integration-app/sdk/udm/index.d.ts +11 -0
  453. package/node_modules/@integration-app/sdk/udm/index.js +31 -0
  454. package/node_modules/@integration-app/sdk/udm/index.js.map +1 -0
  455. package/node_modules/@integration-app/sdk/udm/leads.d.ts +52 -0
  456. package/node_modules/@integration-app/sdk/udm/leads.js +101 -0
  457. package/node_modules/@integration-app/sdk/udm/leads.js.map +1 -0
  458. package/node_modules/@integration-app/sdk/udm/users.d.ts +31 -0
  459. package/node_modules/@integration-app/sdk/udm/users.js +81 -0
  460. package/node_modules/@integration-app/sdk/udm/users.js.map +1 -0
  461. package/node_modules/@integration-app/sdk/users/accessors.d.ts +10 -0
  462. package/node_modules/@integration-app/sdk/users/accessors.js +21 -0
  463. package/node_modules/@integration-app/sdk/users/accessors.js.map +1 -0
  464. package/node_modules/@integration-app/sdk/users/api.d.ts +6 -0
  465. package/node_modules/@integration-app/sdk/users/api.js +3 -0
  466. package/node_modules/@integration-app/sdk/users/api.js.map +1 -0
  467. package/node_modules/@integration-app/sdk/users/index.d.ts +5 -0
  468. package/node_modules/@integration-app/sdk/users/index.js +3 -0
  469. package/node_modules/@integration-app/sdk/users/index.js.map +1 -0
  470. package/node_modules/@integration-app/sdk/variables.d.ts +3 -0
  471. package/node_modules/@integration-app/sdk/variables.js +30 -0
  472. package/node_modules/@integration-app/sdk/variables.js.map +1 -0
  473. package/node_modules/@integration-app/sdk/workspaces/index.d.ts +5 -0
  474. package/node_modules/@integration-app/sdk/workspaces/index.js +3 -0
  475. package/node_modules/@integration-app/sdk/workspaces/index.js.map +1 -0
  476. package/node_modules/@sinclair/typebox/package.json +40 -0
  477. package/node_modules/@sinclair/typebox/readme.md +740 -0
  478. package/node_modules/@sinclair/typebox/typebox.d.ts +351 -0
  479. package/node_modules/@sinclair/typebox/typebox.js +345 -0
  480. package/node_modules/@types/node/README.md +16 -0
  481. package/node_modules/@types/node/assert.d.ts +128 -0
  482. package/node_modules/@types/node/async_hooks.d.ts +229 -0
  483. package/node_modules/@types/node/buffer.d.ts +89 -0
  484. package/node_modules/@types/node/child_process.d.ts +514 -0
  485. package/node_modules/@types/node/cluster.d.ts +265 -0
  486. package/node_modules/@types/node/console.d.ts +142 -0
  487. package/node_modules/@types/node/constants.d.ts +18 -0
  488. package/node_modules/@types/node/crypto.d.ts +1283 -0
  489. package/node_modules/@types/node/dgram.d.ts +144 -0
  490. package/node_modules/@types/node/dns.d.ts +387 -0
  491. package/node_modules/@types/node/domain.d.ts +27 -0
  492. package/node_modules/@types/node/events.d.ts +82 -0
  493. package/node_modules/@types/node/fs/promises.d.ts +572 -0
  494. package/node_modules/@types/node/fs.d.ts +2281 -0
  495. package/node_modules/@types/node/globals.d.ts +747 -0
  496. package/node_modules/@types/node/globals.global.d.ts +1 -0
  497. package/node_modules/@types/node/http.d.ts +580 -0
  498. package/node_modules/@types/node/http2.d.ts +962 -0
  499. package/node_modules/@types/node/https.d.ts +271 -0
  500. package/node_modules/@types/node/index.d.ts +98 -0
  501. package/node_modules/@types/node/inspector.d.ts +3051 -0
  502. package/node_modules/@types/node/module.d.ts +56 -0
  503. package/node_modules/@types/node/net.d.ts +308 -0
  504. package/node_modules/@types/node/os.d.ts +243 -0
  505. package/node_modules/@types/node/package.json +232 -0
  506. package/node_modules/@types/node/path.d.ts +168 -0
  507. package/node_modules/@types/node/perf_hooks.d.ts +274 -0
  508. package/node_modules/@types/node/process.d.ts +413 -0
  509. package/node_modules/@types/node/punycode.d.ts +78 -0
  510. package/node_modules/@types/node/querystring.d.ts +31 -0
  511. package/node_modules/@types/node/readline.d.ts +174 -0
  512. package/node_modules/@types/node/repl.d.ts +398 -0
  513. package/node_modules/@types/node/stream.d.ts +359 -0
  514. package/node_modules/@types/node/string_decoder.d.ts +10 -0
  515. package/node_modules/@types/node/timers.d.ts +19 -0
  516. package/node_modules/@types/node/tls.d.ts +784 -0
  517. package/node_modules/@types/node/trace_events.d.ts +64 -0
  518. package/node_modules/@types/node/ts4.8/assert.d.ts +128 -0
  519. package/node_modules/@types/node/ts4.8/async_hooks.d.ts +229 -0
  520. package/node_modules/@types/node/ts4.8/buffer.d.ts +89 -0
  521. package/node_modules/@types/node/ts4.8/child_process.d.ts +514 -0
  522. package/node_modules/@types/node/ts4.8/cluster.d.ts +265 -0
  523. package/node_modules/@types/node/ts4.8/console.d.ts +142 -0
  524. package/node_modules/@types/node/ts4.8/constants.d.ts +18 -0
  525. package/node_modules/@types/node/ts4.8/crypto.d.ts +1283 -0
  526. package/node_modules/@types/node/ts4.8/dgram.d.ts +144 -0
  527. package/node_modules/@types/node/ts4.8/dns.d.ts +387 -0
  528. package/node_modules/@types/node/ts4.8/domain.d.ts +27 -0
  529. package/node_modules/@types/node/ts4.8/events.d.ts +82 -0
  530. package/node_modules/@types/node/ts4.8/fs/promises.d.ts +572 -0
  531. package/node_modules/@types/node/ts4.8/fs.d.ts +2281 -0
  532. package/node_modules/@types/node/ts4.8/globals.d.ts +746 -0
  533. package/node_modules/@types/node/ts4.8/globals.global.d.ts +1 -0
  534. package/node_modules/@types/node/ts4.8/http.d.ts +580 -0
  535. package/node_modules/@types/node/ts4.8/http2.d.ts +962 -0
  536. package/node_modules/@types/node/ts4.8/https.d.ts +271 -0
  537. package/node_modules/@types/node/ts4.8/index.d.ts +53 -0
  538. package/node_modules/@types/node/ts4.8/inspector.d.ts +3051 -0
  539. package/node_modules/@types/node/ts4.8/module.d.ts +56 -0
  540. package/node_modules/@types/node/ts4.8/net.d.ts +308 -0
  541. package/node_modules/@types/node/ts4.8/os.d.ts +243 -0
  542. package/node_modules/@types/node/ts4.8/path.d.ts +168 -0
  543. package/node_modules/@types/node/ts4.8/perf_hooks.d.ts +274 -0
  544. package/node_modules/@types/node/ts4.8/process.d.ts +413 -0
  545. package/node_modules/@types/node/ts4.8/punycode.d.ts +78 -0
  546. package/node_modules/@types/node/ts4.8/querystring.d.ts +31 -0
  547. package/node_modules/@types/node/ts4.8/readline.d.ts +174 -0
  548. package/node_modules/@types/node/ts4.8/repl.d.ts +398 -0
  549. package/node_modules/@types/node/ts4.8/stream.d.ts +359 -0
  550. package/node_modules/@types/node/ts4.8/string_decoder.d.ts +10 -0
  551. package/node_modules/@types/node/ts4.8/timers.d.ts +19 -0
  552. package/node_modules/@types/node/ts4.8/tls.d.ts +784 -0
  553. package/node_modules/@types/node/ts4.8/trace_events.d.ts +64 -0
  554. package/node_modules/@types/node/ts4.8/tty.d.ts +69 -0
  555. package/node_modules/@types/node/ts4.8/url.d.ts +149 -0
  556. package/node_modules/@types/node/ts4.8/util.d.ts +216 -0
  557. package/node_modules/@types/node/ts4.8/v8.d.ts +190 -0
  558. package/node_modules/@types/node/ts4.8/vm.d.ts +155 -0
  559. package/node_modules/@types/node/ts4.8/wasi.d.ts +89 -0
  560. package/node_modules/@types/node/ts4.8/worker_threads.d.ts +241 -0
  561. package/node_modules/@types/node/ts4.8/zlib.d.ts +364 -0
  562. package/node_modules/@types/node/tty.d.ts +69 -0
  563. package/node_modules/@types/node/url.d.ts +149 -0
  564. package/node_modules/@types/node/util.d.ts +216 -0
  565. package/node_modules/@types/node/v8.d.ts +190 -0
  566. package/node_modules/@types/node/vm.d.ts +155 -0
  567. package/node_modules/@types/node/wasi.d.ts +89 -0
  568. package/node_modules/@types/node/worker_threads.d.ts +241 -0
  569. package/node_modules/@types/node/zlib.d.ts +364 -0
  570. package/package.json +16 -40
  571. package/dist/node_modules/.package-lock.json +0 -111
  572. package/dist/node_modules/js-tokens/CHANGELOG.md +0 -151
  573. package/dist/node_modules/js-tokens/LICENSE +0 -21
  574. package/dist/node_modules/js-tokens/README.md +0 -240
  575. package/dist/node_modules/js-tokens/index.js +0 -23
  576. package/dist/node_modules/js-tokens/package.json +0 -30
  577. package/dist/node_modules/loose-envify/LICENSE +0 -21
  578. package/dist/node_modules/loose-envify/README.md +0 -45
  579. package/dist/node_modules/loose-envify/cli.js +0 -16
  580. package/dist/node_modules/loose-envify/custom.js +0 -4
  581. package/dist/node_modules/loose-envify/index.js +0 -3
  582. package/dist/node_modules/loose-envify/loose-envify.js +0 -36
  583. package/dist/node_modules/loose-envify/package.json +0 -36
  584. package/dist/node_modules/loose-envify/replace.js +0 -65
  585. package/dist/node_modules/object-assign/index.js +0 -90
  586. package/dist/node_modules/object-assign/license +0 -21
  587. package/dist/node_modules/object-assign/package.json +0 -42
  588. package/dist/node_modules/object-assign/readme.md +0 -61
  589. package/dist/node_modules/scheduler/README.md +0 -9
  590. package/dist/node_modules/scheduler/build-info.json +0 -8
  591. package/dist/node_modules/scheduler/cjs/scheduler-tracing.development.js +0 -347
  592. package/dist/node_modules/scheduler/cjs/scheduler-tracing.production.min.js +0 -9
  593. package/dist/node_modules/scheduler/cjs/scheduler-tracing.profiling.min.js +0 -16
  594. package/dist/node_modules/scheduler/cjs/scheduler-unstable_mock.development.js +0 -665
  595. package/dist/node_modules/scheduler/cjs/scheduler-unstable_mock.production.min.js +0 -19
  596. package/dist/node_modules/scheduler/cjs/scheduler-unstable_post_task.development.js +0 -206
  597. package/dist/node_modules/scheduler/cjs/scheduler-unstable_post_task.production.min.js +0 -13
  598. package/dist/node_modules/scheduler/cjs/scheduler.development.js +0 -646
  599. package/dist/node_modules/scheduler/cjs/scheduler.production.min.js +0 -20
  600. package/dist/node_modules/scheduler/index.js +0 -7
  601. package/dist/node_modules/scheduler/package.json +0 -40
  602. package/dist/node_modules/scheduler/tracing-profiling.js +0 -7
  603. package/dist/node_modules/scheduler/tracing.js +0 -7
  604. package/dist/node_modules/scheduler/umd/scheduler-tracing.development.js +0 -80
  605. package/dist/node_modules/scheduler/umd/scheduler-tracing.production.min.js +0 -80
  606. package/dist/node_modules/scheduler/umd/scheduler-tracing.profiling.min.js +0 -80
  607. package/dist/node_modules/scheduler/umd/scheduler-unstable_mock.development.js +0 -664
  608. package/dist/node_modules/scheduler/umd/scheduler-unstable_mock.production.min.js +0 -18
  609. package/dist/node_modules/scheduler/umd/scheduler.development.js +0 -152
  610. package/dist/node_modules/scheduler/umd/scheduler.production.min.js +0 -146
  611. package/dist/node_modules/scheduler/umd/scheduler.profiling.min.js +0 -146
  612. package/dist/node_modules/scheduler/unstable_mock.js +0 -7
  613. package/dist/node_modules/scheduler/unstable_post_task.js +0 -7
  614. package/dist/package.json +0 -26
@@ -0,0 +1,17 @@
1
+ import { Connection } from '../connections';
2
+ import { FindIntegrationsQuery, FindIntegrationsResponse, Integration } from '.';
3
+ import { IntegrationAppClient } from '..';
4
+ import { ElementAccessor } from '../accessors';
5
+ import { CreateIntegrationRequest, UpdateIntegrationRequest } from './api';
6
+ export declare class IntegrationsAccessor {
7
+ private client;
8
+ constructor(client: IntegrationAppClient);
9
+ find(query: FindIntegrationsQuery): Promise<FindIntegrationsResponse>;
10
+ }
11
+ export declare class IntegrationAccessor extends ElementAccessor<Integration, CreateIntegrationRequest, UpdateIntegrationRequest> {
12
+ private client;
13
+ private idOrKey;
14
+ baseUri: string;
15
+ constructor(client: IntegrationAppClient, idOrKey: string);
16
+ connect(): Promise<Connection>;
17
+ }
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IntegrationAccessor = exports.IntegrationsAccessor = void 0;
4
+ const iframe_1 = require("../iframe");
5
+ const accessors_1 = require("../accessors");
6
+ class IntegrationsAccessor {
7
+ constructor(client) {
8
+ this.client = client;
9
+ }
10
+ async find(query) {
11
+ return this.client.get('/integrations', query);
12
+ }
13
+ }
14
+ exports.IntegrationsAccessor = IntegrationsAccessor;
15
+ class IntegrationAccessor extends accessors_1.ElementAccessor {
16
+ constructor(client, idOrKey) {
17
+ super({
18
+ client,
19
+ path: 'integrations',
20
+ idOrKey,
21
+ });
22
+ this.client = client;
23
+ this.idOrKey = idOrKey;
24
+ }
25
+ async connect() {
26
+ const uri = this.client.getEmbedUri(`/integrations/${this.idOrKey}/connection/connect`);
27
+ return new Promise((resolve) => {
28
+ (0, iframe_1.openIframe)(uri, {
29
+ onClose: () => resolve(null),
30
+ onSuccess: (connection) => resolve(connection),
31
+ });
32
+ });
33
+ }
34
+ }
35
+ exports.IntegrationAccessor = IntegrationAccessor;
36
+ //# sourceMappingURL=accessors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accessors.js","sourceRoot":"","sources":["../src/integrations/accessors.ts"],"names":[],"mappings":";;;AAGA,sCAAsC;AACtC,4CAA8C;AAG9C,MAAa,oBAAoB;IAC/B,YAAoB,MAA4B;QAA5B,WAAM,GAAN,MAAM,CAAsB;IAAG,CAAC;IAEpD,KAAK,CAAC,IAAI,CAAC,KAA4B;QACrC,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,eAAe,EAAE,KAAK,CAAC,CAAA;IAChD,CAAC;CACF;AAND,oDAMC;AAED,MAAa,mBAAoB,SAAQ,2BAIxC;IAGC,YAAoB,MAA4B,EAAU,OAAe;QACvE,KAAK,CAAC;YACJ,MAAM;YACN,IAAI,EAAE,cAAc;YACpB,OAAO;SACR,CAAC,CAAA;QALgB,WAAM,GAAN,MAAM,CAAsB;QAAU,YAAO,GAAP,OAAO,CAAQ;IAMzE,CAAC;IAED,KAAK,CAAC,OAAO;QACX,MAAM,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,WAAW,CACjC,iBAAiB,IAAI,CAAC,OAAO,qBAAqB,CACnD,CAAA;QACD,OAAO,IAAI,OAAO,CAAa,CAAC,OAAO,EAAE,EAAE;YACzC,IAAA,mBAAU,EAAC,GAAG,EAAE;gBACd,OAAO,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC;gBAC5B,SAAS,EAAE,CAAC,UAAU,EAAE,EAAE,CAAC,OAAO,CAAC,UAAU,CAAC;aAC/C,CAAC,CAAA;QACJ,CAAC,CAAC,CAAA;IACJ,CAAC;CACF;AA1BD,kDA0BC"}
@@ -0,0 +1,10 @@
1
+ export interface IntegrationSelector {
2
+ integrationKey?: string;
3
+ integrationId?: string;
4
+ }
5
+ export interface CreateIntegrationRequest {
6
+ name: string;
7
+ }
8
+ export interface UpdateIntegrationRequest {
9
+ name?: string;
10
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=api.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api.js","sourceRoot":"","sources":["../src/integrations/api.ts"],"names":[],"mappings":""}
@@ -0,0 +1,27 @@
1
+ import { PaginationQuery, PaginationResponse } from '../entity-repository';
2
+ import { Connection } from '../connections';
3
+ export declare enum ConnectionMode {
4
+ POPUP = "popup",
5
+ IFRAME = "iframe"
6
+ }
7
+ export interface IntegrationAuth {
8
+ clientId: string;
9
+ clientSecret: string;
10
+ authorizeUri: string;
11
+ tokenUri: string;
12
+ }
13
+ export interface Integration {
14
+ id: string;
15
+ key: string;
16
+ name: string;
17
+ baseUri: string;
18
+ auth: IntegrationAuth;
19
+ logoUri: string;
20
+ connectionMode?: ConnectionMode;
21
+ connection?: Connection;
22
+ archivedAt?: Date;
23
+ }
24
+ export declare class FindIntegrationsQuery extends PaginationQuery {
25
+ }
26
+ export declare class FindIntegrationsResponse extends PaginationResponse<Integration> {
27
+ }
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FindIntegrationsResponse = exports.FindIntegrationsQuery = exports.ConnectionMode = void 0;
4
+ const entity_repository_1 = require("../entity-repository");
5
+ var ConnectionMode;
6
+ (function (ConnectionMode) {
7
+ ConnectionMode["POPUP"] = "popup";
8
+ ConnectionMode["IFRAME"] = "iframe";
9
+ })(ConnectionMode = exports.ConnectionMode || (exports.ConnectionMode = {}));
10
+ class FindIntegrationsQuery extends entity_repository_1.PaginationQuery {
11
+ }
12
+ exports.FindIntegrationsQuery = FindIntegrationsQuery;
13
+ class FindIntegrationsResponse extends entity_repository_1.PaginationResponse {
14
+ }
15
+ exports.FindIntegrationsResponse = FindIntegrationsResponse;
16
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/integrations/index.ts"],"names":[],"mappings":";;;AAAA,4DAA0E;AAG1E,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,iCAAe,CAAA;IACf,mCAAiB,CAAA;AACnB,CAAC,EAHW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAGzB;AAyCD,MAAa,qBAAsB,SAAQ,mCAAe;CAAG;AAA7D,sDAA6D;AAE7D,MAAa,wBAAyB,SAAQ,sCAA+B;CAAG;AAAhF,4DAAgF"}
@@ -0,0 +1,32 @@
1
+ export declare enum JSONSchemaType {
2
+ Null = "null",
3
+ Boolean = "boolean",
4
+ Integer = "integer",
5
+ Number = "number",
6
+ String = "string",
7
+ Object = "object",
8
+ Array = "array"
9
+ }
10
+ export declare type JSONSchemaTypeStr = 'null' | 'boolean' | 'integer' | 'number' | 'string' | 'object' | 'array';
11
+ export declare type JSONSchema = {
12
+ type?: JSONSchemaTypeStr | JSONSchemaTypeStr[];
13
+ items?: JSONSchema;
14
+ maxItems?: number;
15
+ properties?: Record<string, JSONSchema>;
16
+ required?: string[];
17
+ anyOf?: Array<JSONSchema>;
18
+ examples?: any[];
19
+ title?: string;
20
+ enum?: any[];
21
+ format?: string;
22
+ $ref?: string;
23
+ };
24
+ export declare type SchemaComparisonOptions = {
25
+ ignoreRequired: boolean;
26
+ };
27
+ export declare function schemaDiff(first: JSONSchema, second: JSONSchema): JSONSchema;
28
+ export declare function isScalar(schema: any): boolean;
29
+ export declare function schemaTypeFromValue(value: any): "object" | "string" | "number" | "null" | "boolean" | "array";
30
+ export declare function getUserVisibleSchema(schema: any): any;
31
+ export declare function getDefaultsFromSchema(schema: any): any;
32
+ export declare function valueToSchema(value: any, schema: any, field?: string): any;
@@ -0,0 +1,207 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.valueToSchema = exports.getDefaultsFromSchema = exports.getUserVisibleSchema = exports.schemaTypeFromValue = exports.isScalar = exports.schemaDiff = exports.JSONSchemaType = void 0;
4
+ var JSONSchemaType;
5
+ (function (JSONSchemaType) {
6
+ JSONSchemaType["Null"] = "null";
7
+ JSONSchemaType["Boolean"] = "boolean";
8
+ JSONSchemaType["Integer"] = "integer";
9
+ JSONSchemaType["Number"] = "number";
10
+ JSONSchemaType["String"] = "string";
11
+ JSONSchemaType["Object"] = "object";
12
+ JSONSchemaType["Array"] = "array";
13
+ })(JSONSchemaType = exports.JSONSchemaType || (exports.JSONSchemaType = {}));
14
+ function schemaDiff(first, second) {
15
+ if (!first) {
16
+ return null;
17
+ }
18
+ else if (first.type == JSONSchemaType.Object && first.properties) {
19
+ if ((second === null || second === void 0 ? void 0 : second.type) == JSONSchemaType.Object && second.properties) {
20
+ const diff = {
21
+ type: JSONSchemaType.Object,
22
+ properties: {},
23
+ };
24
+ Object.keys(first.properties).forEach((key) => {
25
+ const keyDiff = schemaDiff(first.properties[key], second.properties[key]);
26
+ if (keyDiff) {
27
+ diff.properties[key] = keyDiff;
28
+ }
29
+ });
30
+ return Object.keys(diff.properties).length > 0 ? diff : null;
31
+ }
32
+ else {
33
+ return first;
34
+ }
35
+ }
36
+ else if (first.type == JSONSchemaType.Array && first.items) {
37
+ if ((second === null || second === void 0 ? void 0 : second.type) == JSONSchemaType.Array && second.items) {
38
+ const itemsDiff = schemaDiff(first.items, second.items);
39
+ if (itemsDiff) {
40
+ return {
41
+ type: JSONSchemaType.Array,
42
+ items: itemsDiff,
43
+ };
44
+ }
45
+ else {
46
+ return null;
47
+ }
48
+ }
49
+ else {
50
+ return first;
51
+ }
52
+ }
53
+ else {
54
+ if (second) {
55
+ return null;
56
+ }
57
+ else {
58
+ return first;
59
+ }
60
+ }
61
+ }
62
+ exports.schemaDiff = schemaDiff;
63
+ function isScalar(schema) {
64
+ return (schema.type != 'array' && schema.type != 'object' && schema.type != 'null');
65
+ }
66
+ exports.isScalar = isScalar;
67
+ function schemaTypeFromValue(value) {
68
+ switch (typeof value) {
69
+ case 'object':
70
+ if (Array.isArray(value)) {
71
+ return 'array';
72
+ }
73
+ else if (value === null) {
74
+ return 'null';
75
+ }
76
+ else {
77
+ return 'object';
78
+ }
79
+ case 'boolean':
80
+ return 'boolean';
81
+ case 'bigint':
82
+ case 'number':
83
+ return 'number';
84
+ default:
85
+ return 'string';
86
+ }
87
+ }
88
+ exports.schemaTypeFromValue = schemaTypeFromValue;
89
+ function getUserVisibleSchema(schema) {
90
+ var _a;
91
+ if (!schema || typeof schema !== 'object') {
92
+ return null;
93
+ }
94
+ if (schema.userVisible === false) {
95
+ return null;
96
+ }
97
+ if (schema.properties && typeof schema.properties === 'object') {
98
+ const userVisibleProperties = {};
99
+ Object.entries(schema.properties).forEach(([key, propertySchema]) => {
100
+ const userVisiblePropertySchema = getUserVisibleSchema(propertySchema);
101
+ if (userVisiblePropertySchema) {
102
+ userVisibleProperties[key] = userVisiblePropertySchema;
103
+ }
104
+ });
105
+ return {
106
+ ...schema,
107
+ properties: userVisibleProperties,
108
+ };
109
+ }
110
+ if (schema.items) {
111
+ return {
112
+ ...schema,
113
+ items: (_a = getUserVisibleSchema(schema.items)) !== null && _a !== void 0 ? _a : {},
114
+ };
115
+ }
116
+ return schema;
117
+ }
118
+ exports.getUserVisibleSchema = getUserVisibleSchema;
119
+ function getDefaultsFromSchema(schema) {
120
+ if ((schema === null || schema === void 0 ? void 0 : schema.type) === 'object' && schema.properties) {
121
+ const propDefaults = {};
122
+ for (const [key, value] of Object.entries(schema.properties)) {
123
+ const defaults = getDefaultsFromSchema(value);
124
+ if (defaults !== null && defaults !== undefined) {
125
+ propDefaults[key] = defaults;
126
+ }
127
+ }
128
+ if (Object.keys(propDefaults).length > 0) {
129
+ return propDefaults;
130
+ }
131
+ else {
132
+ return undefined;
133
+ }
134
+ }
135
+ else {
136
+ return schema === null || schema === void 0 ? void 0 : schema.default;
137
+ }
138
+ }
139
+ exports.getDefaultsFromSchema = getDefaultsFromSchema;
140
+ function valueToSchema(value, schema, field = '') {
141
+ var _a;
142
+ function throwError(message) {
143
+ throw new Error(`${message}${field ? ` for field ${field}` : ''}`);
144
+ }
145
+ if (value === null || value === undefined) {
146
+ return undefined;
147
+ }
148
+ switch (schema === null || schema === void 0 ? void 0 : schema.type) {
149
+ case 'string':
150
+ return value === null || value === void 0 ? void 0 : value.toString();
151
+ case 'integer':
152
+ case 'number':
153
+ const result = Number(value);
154
+ if (result === NaN) {
155
+ throwError(`Cannot convert "${value}" to number`);
156
+ }
157
+ if (schema.type === 'integer' && !Number.isInteger(result)) {
158
+ throwError(`Expected integer but got ${value}`);
159
+ }
160
+ return result;
161
+ case 'boolean':
162
+ if (typeof value === 'boolean') {
163
+ return value;
164
+ }
165
+ else if (typeof value === 'string') {
166
+ if (value === 'true') {
167
+ return true;
168
+ }
169
+ else if (value === 'false') {
170
+ return false;
171
+ }
172
+ else {
173
+ throwError(`Expected true or false but got "${value}"`);
174
+ }
175
+ }
176
+ else if (value) {
177
+ throwError(`Expected true or false but got "${value}"`);
178
+ }
179
+ return undefined;
180
+ case 'list':
181
+ if (Array.isArray(value)) {
182
+ return value.map((item) => valueToSchema(item, schema.items, field));
183
+ }
184
+ else {
185
+ return undefined;
186
+ }
187
+ case 'object':
188
+ if (typeof value === 'object' && value) {
189
+ const result = {};
190
+ for (const [key, fieldValue] of Object.entries(value)) {
191
+ const fieldSchema = (_a = schema === null || schema === void 0 ? void 0 : schema.properties) === null || _a === void 0 ? void 0 : _a[key];
192
+ if (!fieldSchema && schema && !schema.additionalProperties) {
193
+ continue;
194
+ }
195
+ result[key] = valueToSchema(fieldValue, fieldSchema, field ? `${field}.${key}` : key);
196
+ }
197
+ return result;
198
+ }
199
+ else {
200
+ return undefined;
201
+ }
202
+ default:
203
+ return value;
204
+ }
205
+ }
206
+ exports.valueToSchema = valueToSchema;
207
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/json-schema/index.ts"],"names":[],"mappings":";;;AAAA,IAAY,cAQX;AARD,WAAY,cAAc;IACxB,+BAAa,CAAA;IACb,qCAAmB,CAAA;IACnB,qCAAmB,CAAA;IACnB,mCAAiB,CAAA;IACjB,mCAAiB,CAAA;IACjB,mCAAiB,CAAA;IACjB,iCAAe,CAAA;AACjB,CAAC,EARW,cAAc,GAAd,sBAAc,KAAd,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BACL,UAAU,CAAC,mCAAmC,KAAK,GAAG,CAAC,CAAA;iBACxD;aACF;iBAAM,IAAI,KAAK,EAAE;gBAChB,UAAU,CAAC,mCAAmC,KAAK,GAAG,CAAC,CAAA;aACxD;YACD,OAAO,SAAS,CAAA;QAClB,KAAK,MAAM;YACT,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;gBACxB,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,aAAa,CAAC,IAAI,EAAE,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CAAA;aACrE;iBAAM;gBACL,OAAO,SAAS,CAAA;aACjB;QACH,KAAK,QAAQ;YACX,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,EAAE;gBACtC,MAAM,MAAM,GAAG,EAAE,CAAA;gBACjB,KAAK,MAAM,CAAC,GAAG,EAAE,UAAU,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;oBACrD,MAAM,WAAW,GAAG,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,UAAU,0CAAG,GAAG,CAAC,CAAA;oBAE7C,IAAI,CAAC,WAAW,IAAI,MAAM,IAAI,CAAC,MAAM,CAAC,oBAAoB,EAAE;wBAE1D,SAAQ;qBACT;oBAED,MAAM,CAAC,GAAG,CAAC,GAAG,aAAa,CACzB,UAAU,EACV,WAAW,EACX,KAAK,CAAC,CAAC,CAAC,GAAG,KAAK,IAAI,GAAG,EAAE,CAAC,CAAC,CAAC,GAAG,CAChC,CAAA;iBACF;gBACD,OAAO,MAAM,CAAA;aACd;iBAAM;gBACL,OAAO,SAAS,CAAA;aACjB;QACH;YACE,OAAO,KAAK,CAAA;KACf;AACH,CAAC;AAnED,sCAmEC"}
@@ -0,0 +1,7 @@
1
+ export declare function unwrapSchema(schema: any): any[];
2
+ export declare function unwrapSchemas(schemas: any[]): any[];
3
+ export declare function wrapAnyOfSchema(schema: any): any;
4
+ export declare function createSchema(value: any): any;
5
+ export declare function mergeSchemas(schemas: any[]): any;
6
+ export declare function extendSchema(schema: any, value: any): any;
7
+ export declare function createCompoundSchema(values: any[]): any;
@@ -0,0 +1,232 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createCompoundSchema = exports.extendSchema = exports.mergeSchemas = exports.createSchema = exports.wrapAnyOfSchema = exports.unwrapSchemas = exports.unwrapSchema = void 0;
4
+ function createSchemaFor(value) {
5
+ switch (typeof value) {
6
+ case 'number':
7
+ if (Number.isInteger(value)) {
8
+ return { type: 'integer' };
9
+ }
10
+ return { type: 'number' };
11
+ case 'boolean':
12
+ return { type: 'boolean' };
13
+ case 'string':
14
+ return { type: 'string' };
15
+ case 'object':
16
+ if (value === null) {
17
+ return {};
18
+ }
19
+ if (Array.isArray(value)) {
20
+ return createSchemaForArray(value);
21
+ }
22
+ return createSchemaForObject(value);
23
+ default:
24
+ return null;
25
+ }
26
+ }
27
+ function createSchemaForArray(arr) {
28
+ if (arr.length === 0) {
29
+ return { type: 'array' };
30
+ }
31
+ const elementSchemas = arr.map((value) => createSchemaFor(value));
32
+ const items = combineSchemas(elementSchemas);
33
+ return { type: 'array', items };
34
+ }
35
+ function createSchemaForObject(obj) {
36
+ const keys = Object.keys(obj);
37
+ if (keys.length === 0) {
38
+ return {
39
+ type: 'object',
40
+ };
41
+ }
42
+ const properties = Object.entries(obj).reduce((props, [key, val]) => {
43
+ props[key] = createSchemaFor(val);
44
+ return props;
45
+ }, {});
46
+ const schema = { type: 'object', properties };
47
+ return schema;
48
+ }
49
+ function combineSchemas(schemas) {
50
+ const schemasByType = {
51
+ undefined: [],
52
+ ['null']: [],
53
+ ['boolean']: [],
54
+ ['integer']: [],
55
+ ['number']: [],
56
+ ['string']: [],
57
+ ['array']: [],
58
+ ['object']: [],
59
+ };
60
+ const unwrappedSchemas = unwrapSchemas(schemas);
61
+ for (const unwrappedSchema of unwrappedSchemas) {
62
+ const type = unwrappedSchema.type;
63
+ schemasByType[type].push(unwrappedSchema);
64
+ }
65
+ if (schemasByType['number'].length > 0) {
66
+ schemasByType['number'].push(...schemasByType['integer'].map((r) => ({
67
+ ...r,
68
+ type: 'number',
69
+ })));
70
+ delete schemasByType['integer'];
71
+ }
72
+ const resultSchemasByType = {
73
+ ['null']: combineSameTypeScalarSchemas(schemasByType['null']),
74
+ ['boolean']: combineSameTypeScalarSchemas(schemasByType['boolean']),
75
+ ['number']: combineSameTypeScalarSchemas(schemasByType['number']),
76
+ ['integer']: combineSameTypeScalarSchemas(schemasByType['integer']),
77
+ ['string']: combineSameTypeScalarSchemas(schemasByType['string']),
78
+ ['array']: combineArraySchemas(schemasByType['array']),
79
+ ['object']: combineObjectSchemas(schemasByType['object']),
80
+ };
81
+ const schemasFound = Object.values(resultSchemasByType).filter(Boolean);
82
+ const multiType = schemasFound.length > 1;
83
+ if (multiType) {
84
+ const wrapped = wrapAnyOfSchema({ anyOf: schemasFound });
85
+ return wrapped;
86
+ }
87
+ return schemasFound[0];
88
+ }
89
+ function combineSameTypeScalarSchemas(schemas) {
90
+ if (!schemas || schemas.length === 0) {
91
+ return undefined;
92
+ }
93
+ const schema = {
94
+ type: schemas[0].type,
95
+ };
96
+ addTitleFromSourceSchemas(schema, schemas);
97
+ return schema;
98
+ }
99
+ function combineArraySchemas(schemas) {
100
+ if (!schemas || schemas.length === 0) {
101
+ return undefined;
102
+ }
103
+ const itemSchemas = [];
104
+ for (const schema of schemas) {
105
+ if (!schema.items)
106
+ continue;
107
+ const unwrappedSchemas = unwrapSchema(schema.items);
108
+ itemSchemas.push(...unwrappedSchemas);
109
+ }
110
+ const schema = {
111
+ type: 'array',
112
+ };
113
+ addTitleFromSourceSchemas(schema, schemas);
114
+ if (itemSchemas.length > 0) {
115
+ schema.items = combineSchemas(itemSchemas);
116
+ }
117
+ return schema;
118
+ }
119
+ function combineObjectSchemas(schemas) {
120
+ if (!schemas || schemas.length === 0) {
121
+ return undefined;
122
+ }
123
+ const allPropSchemas = schemas.map((s) => s.properties).filter(Boolean);
124
+ const schemasByProp = Object.create(null);
125
+ for (const propSchemas of allPropSchemas) {
126
+ for (const [prop, schema] of Object.entries(propSchemas)) {
127
+ if (!schemasByProp[prop]) {
128
+ schemasByProp[prop] = [];
129
+ }
130
+ const unwrappedSchemas = unwrapSchema(schema);
131
+ schemasByProp[prop].push(...unwrappedSchemas);
132
+ }
133
+ }
134
+ const properties = Object.entries(schemasByProp).reduce((props, [prop, schemas]) => {
135
+ if (schemas.length === 1) {
136
+ props[prop] = schemas[0];
137
+ }
138
+ else {
139
+ props[prop] = combineSchemas(schemas);
140
+ }
141
+ return props;
142
+ }, {});
143
+ const combinedSchema = {
144
+ type: 'object',
145
+ };
146
+ addTitleFromSourceSchemas(combinedSchema, schemas);
147
+ if (Object.keys(properties).length > 0) {
148
+ combinedSchema.properties = properties;
149
+ }
150
+ return combinedSchema;
151
+ }
152
+ function unwrapSchema(schema) {
153
+ if (!schema)
154
+ return [];
155
+ if (schema.anyOf) {
156
+ return unwrapSchemas(schema.anyOf);
157
+ }
158
+ if (Array.isArray(schema.type)) {
159
+ return schema.type.map((x) => ({ type: x }));
160
+ }
161
+ return [schema];
162
+ }
163
+ exports.unwrapSchema = unwrapSchema;
164
+ function unwrapSchemas(schemas) {
165
+ if (!schemas || schemas.length === 0)
166
+ return [];
167
+ const unwrappedSchemas = schemas.flatMap((schema) => unwrapSchema(schema));
168
+ return unwrappedSchemas;
169
+ }
170
+ exports.unwrapSchemas = unwrapSchemas;
171
+ function wrapAnyOfSchema(schema) {
172
+ const simpleSchemas = [];
173
+ const complexSchemas = [];
174
+ for (const subSchema of schema.anyOf) {
175
+ if (Array.isArray(subSchema.type)) {
176
+ simpleSchemas.push(...subSchema.type);
177
+ }
178
+ else if (isSimpleSchema(subSchema)) {
179
+ simpleSchemas.push(subSchema.type);
180
+ }
181
+ else {
182
+ complexSchemas.push(subSchema);
183
+ }
184
+ }
185
+ if (complexSchemas.length === 0) {
186
+ return { type: simpleSchemas };
187
+ }
188
+ const anyOf = [];
189
+ if (simpleSchemas.length > 0) {
190
+ anyOf.push({
191
+ type: simpleSchemas.length > 1 ? simpleSchemas : simpleSchemas[0],
192
+ });
193
+ }
194
+ anyOf.push(...complexSchemas);
195
+ return { anyOf };
196
+ }
197
+ exports.wrapAnyOfSchema = wrapAnyOfSchema;
198
+ function isSimpleSchema(schema) {
199
+ const keys = Object.keys(schema);
200
+ return keys.length === 1 && keys[0] === 'type';
201
+ }
202
+ function createSchema(value) {
203
+ if (typeof value === 'undefined')
204
+ value = null;
205
+ const clone = JSON.parse(JSON.stringify(value));
206
+ return createSchemaFor(clone);
207
+ }
208
+ exports.createSchema = createSchema;
209
+ function mergeSchemas(schemas) {
210
+ const mergedSchema = combineSchemas(schemas);
211
+ return mergedSchema;
212
+ }
213
+ exports.mergeSchemas = mergeSchemas;
214
+ function extendSchema(schema, value) {
215
+ const valueSchema = createSchema(value);
216
+ const mergedSchema = combineSchemas([schema, valueSchema]);
217
+ return mergedSchema;
218
+ }
219
+ exports.extendSchema = extendSchema;
220
+ function createCompoundSchema(values) {
221
+ const schemas = values.map((value) => createSchema(value));
222
+ return mergeSchemas(schemas);
223
+ }
224
+ exports.createCompoundSchema = createCompoundSchema;
225
+ function addTitleFromSourceSchemas(schema, schemas) {
226
+ var _a;
227
+ const title = (_a = schemas.filter((s) => !!s.title)[0]) === null || _a === void 0 ? void 0 : _a.title;
228
+ if (title) {
229
+ schema.title = title;
230
+ }
231
+ }
232
+ //# sourceMappingURL=schema-builder.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema-builder.js","sourceRoot":"","sources":["../src/json-schema/schema-builder.ts"],"names":[],"mappings":";;;AAOA,SAAS,eAAe,CAAC,KAAU;IACjC,QAAQ,OAAO,KAAK,EAAE;QACpB,KAAK,QAAQ;YACX,IAAI,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE;gBAC3B,OAAO,EAAE,IAAI,EAAE,SA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